RTEMS 4.11
Annotated Report
Mon Mar 21 02:42:55 2011

08003698 <_API_extensions_Run_postdriver>:                            
 *                                                                    
 *  _API_extensions_Run_postdriver                                    
 */                                                                   
                                                                      
void _API_extensions_Run_postdriver( void )                           
{                                                                     
 8003698:	37 9c ff f4 	addi sp,sp,-12                                 
 800369c:	5b 8b 00 0c 	sw (sp+12),r11                                 
 80036a0:	5b 8c 00 08 	sw (sp+8),r12                                  
 80036a4:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
    the_extension = (API_extensions_Control *) the_node;              
                                                                      
    (*the_extension->postswitch_hook)( _Thread_Executing );           
  }                                                                   
}                                                                     
 80036a8:	78 01 08 01 	mvhi r1,0x801                                  
 80036ac:	38 21 39 f0 	ori r1,r1,0x39f0                               
 80036b0:	28 2b 00 00 	lw r11,(r1+0)                                  
void _API_extensions_Run_postdriver( void )                           
{                                                                     
  Chain_Node             *the_node;                                   
  API_extensions_Control *the_extension;                              
                                                                      
  for ( the_node = _Chain_First( &_API_extensions_List );             
 80036b4:	78 0c 08 01 	mvhi r12,0x801                                 
 80036b8:	39 8c 39 f4 	ori r12,r12,0x39f4                             
 80036bc:	45 6c 00 05 	be r11,r12,80036d0 <_API_extensions_Run_postdriver+0x38><== NEVER TAKEN
     *  Currently all APIs configure this hook so it is always non-NULL.
     */                                                               
#if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)              
    if ( the_extension->postdriver_hook )                             
#endif                                                                
      (*the_extension->postdriver_hook)();                            
 80036c0:	29 61 00 08 	lw r1,(r11+8)                                  
 80036c4:	d8 20 00 00 	call r1                                        
  Chain_Node             *the_node;                                   
  API_extensions_Control *the_extension;                              
                                                                      
  for ( the_node = _Chain_First( &_API_extensions_List );             
        !_Chain_Is_tail( &_API_extensions_List, the_node ) ;          
        the_node = the_node->next ) {                                 
 80036c8:	29 6b 00 00 	lw r11,(r11+0)                                 
void _API_extensions_Run_postdriver( void )                           
{                                                                     
  Chain_Node             *the_node;                                   
  API_extensions_Control *the_extension;                              
                                                                      
  for ( the_node = _Chain_First( &_API_extensions_List );             
 80036cc:	5d 6c ff fd 	bne r11,r12,80036c0 <_API_extensions_Run_postdriver+0x28><== NEVER TAKEN
#if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)              
    if ( the_extension->postdriver_hook )                             
#endif                                                                
      (*the_extension->postdriver_hook)();                            
  }                                                                   
}                                                                     
 80036d0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80036d4:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 80036d8:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80036dc:	37 9c 00 0c 	addi sp,sp,12                                  
 80036e0:	c3 a0 00 00 	ret                                            
                                                                      

080036e4 <_API_extensions_Run_postswitch>: * * _API_extensions_Run_postswitch */ void _API_extensions_Run_postswitch( void ) {
 80036e4:	37 9c ff f0 	addi sp,sp,-16                                 
 80036e8:	5b 8b 00 10 	sw (sp+16),r11                                 
 80036ec:	5b 8c 00 0c 	sw (sp+12),r12                                 
 80036f0:	5b 8d 00 08 	sw (sp+8),r13                                  
 80036f4:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
    the_extension = (API_extensions_Control *) the_node;              
                                                                      
    (*the_extension->postswitch_hook)( _Thread_Executing );           
  }                                                                   
}                                                                     
 80036f8:	78 01 08 01 	mvhi r1,0x801                                  
 80036fc:	38 21 39 f0 	ori r1,r1,0x39f0                               
 8003700:	28 2b 00 00 	lw r11,(r1+0)                                  
void _API_extensions_Run_postswitch( void )                           
{                                                                     
  Chain_Node             *the_node;                                   
  API_extensions_Control *the_extension;                              
                                                                      
  for ( the_node = _Chain_First( &_API_extensions_List );             
 8003704:	78 0c 08 01 	mvhi r12,0x801                                 
 8003708:	39 8c 39 f4 	ori r12,r12,0x39f4                             
 800370c:	45 6c 00 08 	be r11,r12,800372c <_API_extensions_Run_postswitch+0x48><== NEVER TAKEN
 8003710:	78 0d 08 01 	mvhi r13,0x801                                 
 8003714:	39 ad 3a 28 	ori r13,r13,0x3a28                             
        !_Chain_Is_tail( &_API_extensions_List, the_node ) ;          
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (API_extensions_Control *) the_node;              
                                                                      
    (*the_extension->postswitch_hook)( _Thread_Executing );           
 8003718:	29 62 00 0c 	lw r2,(r11+12)                                 
 800371c:	29 a1 00 0c 	lw r1,(r13+12)                                 
 8003720:	d8 40 00 00 	call r2                                        
  Chain_Node             *the_node;                                   
  API_extensions_Control *the_extension;                              
                                                                      
  for ( the_node = _Chain_First( &_API_extensions_List );             
        !_Chain_Is_tail( &_API_extensions_List, the_node ) ;          
        the_node = the_node->next ) {                                 
 8003724:	29 6b 00 00 	lw r11,(r11+0)                                 
void _API_extensions_Run_postswitch( void )                           
{                                                                     
  Chain_Node             *the_node;                                   
  API_extensions_Control *the_extension;                              
                                                                      
  for ( the_node = _Chain_First( &_API_extensions_List );             
 8003728:	5d 6c ff fc 	bne r11,r12,8003718 <_API_extensions_Run_postswitch+0x34><== NEVER TAKEN
                                                                      
    the_extension = (API_extensions_Control *) the_node;              
                                                                      
    (*the_extension->postswitch_hook)( _Thread_Executing );           
  }                                                                   
}                                                                     
 800372c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003730:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8003734:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8003738:	2b 8d 00 08 	lw r13,(sp+8)                                  
 800373c:	37 9c 00 10 	addi sp,sp,16                                  
 8003740:	c3 a0 00 00 	ret                                            
                                                                      

0800ed3c <_CORE_message_queue_Initialize>: CORE_message_queue_Control *the_message_queue, CORE_message_queue_Attributes *the_message_queue_attributes, uint32_t maximum_pending_messages, size_t maximum_message_size ) {
 800ed3c:	37 9c ff e4 	addi sp,sp,-28                                 
 800ed40:	5b 8b 00 1c 	sw (sp+28),r11                                 
 800ed44:	5b 8c 00 18 	sw (sp+24),r12                                 
 800ed48:	5b 8d 00 14 	sw (sp+20),r13                                 
 800ed4c:	5b 8e 00 10 	sw (sp+16),r14                                 
 800ed50:	5b 8f 00 0c 	sw (sp+12),r15                                 
 800ed54:	5b 90 00 08 	sw (sp+8),r16                                  
 800ed58:	5b 9d 00 04 	sw (sp+4),ra                                   
 800ed5c:	b8 20 58 00 	mv r11,r1                                      
  size_t message_buffering_required;                                  
  size_t allocated_message_size;                                      
                                                                      
  the_message_queue->maximum_pending_messages   = maximum_pending_messages;
  the_message_queue->number_of_pending_messages = 0;                  
 800ed60:	58 20 00 48 	sw (r1+72),r0                                  
  the_message_queue->maximum_message_size       = maximum_message_size;
 800ed64:	58 24 00 4c 	sw (r1+76),r4                                  
)                                                                     
{                                                                     
  size_t message_buffering_required;                                  
  size_t allocated_message_size;                                      
                                                                      
  the_message_queue->maximum_pending_messages   = maximum_pending_messages;
 800ed68:	59 63 00 44 	sw (r11+68),r3                                 
  /*                                                                  
   *  Round size up to multiple of a pointer for chain init and       
   *  check for overflow on adding overhead to each message.          
   */                                                                 
  allocated_message_size = maximum_message_size;                      
  if (allocated_message_size & (sizeof(uint32_t) - 1)) {              
 800ed6c:	20 81 00 03 	andi r1,r4,0x3                                 
  CORE_message_queue_Control    *the_message_queue,                   
  CORE_message_queue_Attributes *the_message_queue_attributes,        
  uint32_t                       maximum_pending_messages,            
  size_t                         maximum_message_size                 
)                                                                     
{                                                                     
 800ed70:	b8 60 70 00 	mv r14,r3                                      
 800ed74:	b8 40 80 00 	mv r16,r2                                      
  /*                                                                  
   *  Round size up to multiple of a pointer for chain init and       
   *  check for overflow on adding overhead to each message.          
   */                                                                 
  allocated_message_size = maximum_message_size;                      
  if (allocated_message_size & (sizeof(uint32_t) - 1)) {              
 800ed78:	b8 80 60 00 	mv r12,r4                                      
 800ed7c:	44 20 00 06 	be r1,r0,800ed94 <_CORE_message_queue_Initialize+0x58>
    allocated_message_size += sizeof(uint32_t);                       
 800ed80:	34 8c 00 04 	addi r12,r4,4                                  
    allocated_message_size &= ~(sizeof(uint32_t) - 1);                
 800ed84:	34 01 ff fc 	mvi r1,-4                                      
 800ed88:	a1 81 60 00 	and r12,r12,r1                                 
  }                                                                   
                                                                      
  if (allocated_message_size < maximum_message_size)                  
    return false;                                                     
 800ed8c:	34 0d 00 00 	mvi r13,0                                      
  if (allocated_message_size & (sizeof(uint32_t) - 1)) {              
    allocated_message_size += sizeof(uint32_t);                       
    allocated_message_size &= ~(sizeof(uint32_t) - 1);                
  }                                                                   
                                                                      
  if (allocated_message_size < maximum_message_size)                  
 800ed90:	54 8c 00 1c 	bgu r4,r12,800ee00 <_CORE_message_queue_Initialize+0xc4><== NEVER TAKEN
  /*                                                                  
   *  Calculate how much total memory is required for message buffering and
   *  check for overflow on the multiplication.                       
   */                                                                 
  message_buffering_required = (size_t) maximum_pending_messages *    
       (allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
 800ed94:	35 8f 00 10 	addi r15,r12,16                                
                                                                      
  /*                                                                  
   *  Calculate how much total memory is required for message buffering and
   *  check for overflow on the multiplication.                       
   */                                                                 
  message_buffering_required = (size_t) maximum_pending_messages *    
 800ed98:	b9 e0 08 00 	mv r1,r15                                      
 800ed9c:	b9 c0 10 00 	mv r2,r14                                      
 800eda0:	f8 00 5a 78 	calli 8025780 <__mulsi3>                       
       (allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
                                                                      
  if (message_buffering_required < allocated_message_size)            
    return false;                                                     
 800eda4:	34 0d 00 00 	mvi r13,0                                      
   *  check for overflow on the multiplication.                       
   */                                                                 
  message_buffering_required = (size_t) maximum_pending_messages *    
       (allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
                                                                      
  if (message_buffering_required < allocated_message_size)            
 800eda8:	55 81 00 16 	bgu r12,r1,800ee00 <_CORE_message_queue_Initialize+0xc4><== NEVER TAKEN
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
     _Workspace_Allocate( message_buffering_required );               
 800edac:	f8 00 0e d0 	calli 80128ec <_Workspace_Allocate>            
    return false;                                                     
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
 800edb0:	59 61 00 5c 	sw (r11+92),r1                                 
     _Workspace_Allocate( message_buffering_required );               
 800edb4:	b8 20 18 00 	mv r3,r1                                       
                                                                      
  if (the_message_queue->message_buffers == 0)                        
 800edb8:	44 20 00 12 	be r1,r0,800ee00 <_CORE_message_queue_Initialize+0xc4>
                                                                      
  /*                                                                  
   *  Initialize the pool of inactive messages, pending messages,     
   *  and set of waiting threads.                                     
   */                                                                 
  _Chain_Initialize (                                                 
 800edbc:	b8 60 10 00 	mv r2,r3                                       
 800edc0:	35 61 00 60 	addi r1,r11,96                                 
 800edc4:	b9 c0 18 00 	mv r3,r14                                      
 800edc8:	b9 e0 20 00 	mv r4,r15                                      
 800edcc:	f8 00 17 9d 	calli 8014c40 <_Chain_Initialize>              
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
 800edd0:	35 62 00 54 	addi r2,r11,84                                 
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
 800edd4:	35 61 00 50 	addi r1,r11,80                                 
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
 800edd8:	59 61 00 58 	sw (r11+88),r1                                 
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 800eddc:	59 62 00 50 	sw (r11+80),r2                                 
  head->previous = NULL;                                              
 800ede0:	59 60 00 54 	sw (r11+84),r0                                 
    allocated_message_size + sizeof( CORE_message_queue_Buffer_control )
  );                                                                  
                                                                      
  _Chain_Initialize_empty( &the_message_queue->Pending_messages );    
                                                                      
  _Thread_queue_Initialize(                                           
 800ede4:	2a 02 00 00 	lw r2,(r16+0)                                  
 800ede8:	b9 60 08 00 	mv r1,r11                                      
 800edec:	34 03 00 80 	mvi r3,128                                     
 800edf0:	64 42 00 01 	cmpei r2,r2,1                                  
 800edf4:	34 04 00 06 	mvi r4,6                                       
 800edf8:	f8 00 0b 83 	calli 8011c04 <_Thread_queue_Initialize>       
       THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO,
    STATES_WAITING_FOR_MESSAGE,                                       
    CORE_MESSAGE_QUEUE_STATUS_TIMEOUT                                 
  );                                                                  
                                                                      
  return true;                                                        
 800edfc:	34 0d 00 01 	mvi r13,1                                      
}                                                                     
 800ee00:	b9 a0 08 00 	mv r1,r13                                      
 800ee04:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800ee08:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 800ee0c:	2b 8c 00 18 	lw r12,(sp+24)                                 
 800ee10:	2b 8d 00 14 	lw r13,(sp+20)                                 
 800ee14:	2b 8e 00 10 	lw r14,(sp+16)                                 
 800ee18:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 800ee1c:	2b 90 00 08 	lw r16,(sp+8)                                  
 800ee20:	37 9c 00 1c 	addi sp,sp,28                                  
 800ee24:	c3 a0 00 00 	ret                                            
                                                                      

08003a54 <_CORE_mutex_Seize>: Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) {
 8003a54:	37 9c ff e4 	addi sp,sp,-28                                 
 8003a58:	5b 8b 00 18 	sw (sp+24),r11                                 
 8003a5c:	5b 8c 00 14 	sw (sp+20),r12                                 
 8003a60:	5b 8d 00 10 	sw (sp+16),r13                                 
 8003a64:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8003a68:	5b 8f 00 08 	sw (sp+8),r15                                  
 8003a6c:	5b 9d 00 04 	sw (sp+4),ra                                   
  _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 
 8003a70:	78 0b 08 01 	mvhi r11,0x801                                 
 8003a74:	39 6b 38 88 	ori r11,r11,0x3888                             
 8003a78:	29 66 00 00 	lw r6,(r11+0)                                  
  Objects_Id           _id,                                           
  bool                 _wait,                                         
  Watchdog_Interval    _timeout,                                      
  ISR_Level            _level                                         
)                                                                     
{                                                                     
 8003a7c:	5b 85 00 1c 	sw (sp+28),r5                                  
 8003a80:	b8 20 60 00 	mv r12,r1                                      
 8003a84:	b8 40 78 00 	mv r15,r2                                      
 8003a88:	b8 80 70 00 	mv r14,r4                                      
 8003a8c:	20 6d 00 ff 	andi r13,r3,0xff                               
  _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 
 8003a90:	44 c0 00 02 	be r6,r0,8003a98 <_CORE_mutex_Seize+0x44>      
 8003a94:	5d a0 00 15 	bne r13,r0,8003ae8 <_CORE_mutex_Seize+0x94>    <== ALWAYS TAKEN
 8003a98:	b9 80 08 00 	mv r1,r12                                      
 8003a9c:	37 82 00 1c 	addi r2,sp,28                                  
 8003aa0:	f8 00 16 6c 	calli 8009450 <_CORE_mutex_Seize_interrupt_trylock>
 8003aa4:	44 20 00 09 	be r1,r0,8003ac8 <_CORE_mutex_Seize+0x74>      
 8003aa8:	5d a0 00 19 	bne r13,r0,8003b0c <_CORE_mutex_Seize+0xb8>    
 8003aac:	2b 81 00 1c 	lw r1,(sp+28)                                  
 8003ab0:	d0 01 00 00 	wcsr IE,r1                                     
 8003ab4:	78 01 08 01 	mvhi r1,0x801                                  
 8003ab8:	38 21 3a 28 	ori r1,r1,0x3a28                               
 8003abc:	28 21 00 0c 	lw r1,(r1+12)                                  
 8003ac0:	34 02 00 01 	mvi r2,1                                       
 8003ac4:	58 22 00 34 	sw (r1+52),r2                                  
}                                                                     
 8003ac8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003acc:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8003ad0:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8003ad4:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8003ad8:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8003adc:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8003ae0:	37 9c 00 1c 	addi sp,sp,28                                  
 8003ae4:	c3 a0 00 00 	ret                                            
  bool                 _wait,                                         
  Watchdog_Interval    _timeout,                                      
  ISR_Level            _level                                         
)                                                                     
{                                                                     
  _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 
 8003ae8:	78 01 08 01 	mvhi r1,0x801                                  
 8003aec:	38 21 39 e0 	ori r1,r1,0x39e0                               
 8003af0:	28 21 00 00 	lw r1,(r1+0)                                   
 8003af4:	34 02 00 01 	mvi r2,1                                       
 8003af8:	50 41 ff e8 	bgeu r2,r1,8003a98 <_CORE_mutex_Seize+0x44>    
 8003afc:	34 01 00 00 	mvi r1,0                                       
 8003b00:	34 02 00 00 	mvi r2,0                                       
 8003b04:	34 03 00 12 	mvi r3,18                                      
 8003b08:	f8 00 02 31 	calli 80043cc <_Internal_error_Occurred>       
 8003b0c:	78 01 08 01 	mvhi r1,0x801                                  
 8003b10:	29 62 00 00 	lw r2,(r11+0)                                  
 8003b14:	38 21 3a 28 	ori r1,r1,0x3a28                               
 8003b18:	28 21 00 0c 	lw r1,(r1+12)                                  
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section (      
  Thread_queue_Control *the_thread_queue                              
)                                                                     
{                                                                     
  the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
 8003b1c:	34 03 00 01 	mvi r3,1                                       
 8003b20:	59 83 00 30 	sw (r12+48),r3                                 
 8003b24:	34 42 00 01 	addi r2,r2,1                                   
 8003b28:	58 2c 00 44 	sw (r1+68),r12                                 
 8003b2c:	58 2f 00 20 	sw (r1+32),r15                                 
 8003b30:	59 62 00 00 	sw (r11+0),r2                                  
 8003b34:	2b 81 00 1c 	lw r1,(sp+28)                                  
 8003b38:	d0 01 00 00 	wcsr IE,r1                                     
 8003b3c:	b9 80 08 00 	mv r1,r12                                      
 8003b40:	b9 c0 10 00 	mv r2,r14                                      
 8003b44:	fb ff ff a3 	calli 80039d0 <_CORE_mutex_Seize_interrupt_blocking>
}                                                                     
 8003b48:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003b4c:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8003b50:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8003b54:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8003b58:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8003b5c:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8003b60:	37 9c 00 1c 	addi sp,sp,28                                  
 8003b64:	c3 a0 00 00 	ret                                            
                                                                      

08003cd4 <_CORE_semaphore_Surrender>: CORE_semaphore_Status _CORE_semaphore_Surrender( CORE_semaphore_Control *the_semaphore, Objects_Id id, CORE_semaphore_API_mp_support_callout api_semaphore_mp_support ) {
 8003cd4:	37 9c ff f8 	addi sp,sp,-8                                  
 8003cd8:	5b 8b 00 08 	sw (sp+8),r11                                  
 8003cdc:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003ce0:	b8 20 58 00 	mv r11,r1                                      
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
                                                                      
  if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) {
 8003ce4:	f8 00 08 3e 	calli 8005ddc <_Thread_queue_Dequeue>          
{                                                                     
  Thread_Control *the_thread;                                         
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
 8003ce8:	34 02 00 00 	mvi r2,0                                       
                                                                      
  if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) {
 8003cec:	44 20 00 06 	be r1,r0,8003d04 <_CORE_semaphore_Surrender+0x30>
        status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;               
    _ISR_Enable( level );                                             
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
 8003cf0:	b8 40 08 00 	mv r1,r2                                       
 8003cf4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003cf8:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8003cfc:	37 9c 00 08 	addi sp,sp,8                                   
 8003d00:	c3 a0 00 00 	ret                                            
    if ( !_Objects_Is_local_id( the_thread->Object.id ) )             
      (*api_semaphore_mp_support) ( the_thread, id );                 
#endif                                                                
                                                                      
  } else {                                                            
    _ISR_Disable( level );                                            
 8003d04:	90 00 08 00 	rcsr r1,IE                                     
 8003d08:	34 02 ff fe 	mvi r2,-2                                      
 8003d0c:	a0 22 10 00 	and r2,r1,r2                                   
 8003d10:	d0 02 00 00 	wcsr IE,r2                                     
      if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
 8003d14:	29 63 00 48 	lw r3,(r11+72)                                 
 8003d18:	29 64 00 40 	lw r4,(r11+64)                                 
        the_semaphore->count += 1;                                    
      else                                                            
        status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;               
 8003d1c:	34 02 00 04 	mvi r2,4                                       
      (*api_semaphore_mp_support) ( the_thread, id );                 
#endif                                                                
                                                                      
  } else {                                                            
    _ISR_Disable( level );                                            
      if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
 8003d20:	50 64 00 04 	bgeu r3,r4,8003d30 <_CORE_semaphore_Surrender+0x5c><== NEVER TAKEN
        the_semaphore->count += 1;                                    
 8003d24:	34 63 00 01 	addi r3,r3,1                                   
 8003d28:	59 63 00 48 	sw (r11+72),r3                                 
{                                                                     
  Thread_Control *the_thread;                                         
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
 8003d2c:	34 02 00 00 	mvi r2,0                                       
    _ISR_Disable( level );                                            
      if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
        the_semaphore->count += 1;                                    
      else                                                            
        status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;               
    _ISR_Enable( level );                                             
 8003d30:	d0 01 00 00 	wcsr IE,r1                                     
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
 8003d34:	b8 40 08 00 	mv r1,r2                                       
 8003d38:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003d3c:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8003d40:	37 9c 00 08 	addi sp,sp,8                                   
 8003d44:	c3 a0 00 00 	ret                                            
                                                                      

080093b4 <_Chain_Initialize>: Chain_Control *the_chain, void *starting_address, size_t number_nodes, size_t node_size ) {
 80093b4:	37 9c ff f0 	addi sp,sp,-16                                 
 80093b8:	5b 8b 00 10 	sw (sp+16),r11                                 
 80093bc:	5b 8c 00 0c 	sw (sp+12),r12                                 
 80093c0:	5b 8d 00 08 	sw (sp+8),r13                                  
 80093c4:	5b 9d 00 04 	sw (sp+4),ra                                   
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *current = head;                                         
  Chain_Node *next = starting_address;                                
                                                                      
  head->previous = NULL;                                              
 80093c8:	58 20 00 04 	sw (r1+4),r0                                   
  Chain_Control *the_chain,                                           
  void           *starting_address,                                   
  size_t         number_nodes,                                        
  size_t         node_size                                            
)                                                                     
{                                                                     
 80093cc:	b8 20 58 00 	mv r11,r1                                      
 80093d0:	b8 40 60 00 	mv r12,r2                                      
  size_t count = number_nodes;                                        
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
 80093d4:	34 2d 00 04 	addi r13,r1,4                                  
  Chain_Node *current = head;                                         
  Chain_Node *next = starting_address;                                
                                                                      
  head->previous = NULL;                                              
                                                                      
  while ( count-- ) {                                                 
 80093d8:	44 60 00 10 	be r3,r0,8009418 <_Chain_Initialize+0x64>      <== NEVER TAKEN
 80093dc:	34 63 ff ff 	addi r3,r3,-1                                  
 80093e0:	b8 60 10 00 	mv r2,r3                                       
{                                                                     
  size_t count = number_nodes;                                        
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *current = head;                                         
  Chain_Node *next = starting_address;                                
 80093e4:	b9 80 28 00 	mv r5,r12                                      
)                                                                     
{                                                                     
  size_t count = number_nodes;                                        
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *current = head;                                         
 80093e8:	b9 60 30 00 	mv r6,r11                                      
 80093ec:	e0 00 00 04 	bi 80093fc <_Chain_Initialize+0x48>            
  Chain_Node *next = starting_address;                                
                                                                      
  head->previous = NULL;                                              
                                                                      
  while ( count-- ) {                                                 
 80093f0:	b8 a0 30 00 	mv r6,r5                                       
 80093f4:	34 63 ff ff 	addi r3,r3,-1                                  
    current->next  = next;                                            
    next->previous = current;                                         
    current        = next;                                            
    next           = (Chain_Node *)                                   
 80093f8:	b8 e0 28 00 	mv r5,r7                                       
  Chain_Node *next = starting_address;                                
                                                                      
  head->previous = NULL;                                              
                                                                      
  while ( count-- ) {                                                 
    current->next  = next;                                            
 80093fc:	58 c5 00 00 	sw (r6+0),r5                                   
    next->previous = current;                                         
 8009400:	58 a6 00 04 	sw (r5+4),r6                                   
 *    node_size        - size of node in bytes                        
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Chain_Initialize(                                               
 8009404:	b4 a4 38 00 	add r7,r5,r4                                   
  Chain_Node *current = head;                                         
  Chain_Node *next = starting_address;                                
                                                                      
  head->previous = NULL;                                              
                                                                      
  while ( count-- ) {                                                 
 8009408:	5c 60 ff fa 	bne r3,r0,80093f0 <_Chain_Initialize+0x3c>     
 *    node_size        - size of node in bytes                        
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Chain_Initialize(                                               
 800940c:	b8 80 08 00 	mv r1,r4                                       
 8009410:	f8 00 1f 01 	calli 8011014 <__mulsi3>                       
  Chain_Node *current = head;                                         
  Chain_Node *next = starting_address;                                
                                                                      
  head->previous = NULL;                                              
                                                                      
  while ( count-- ) {                                                 
 8009414:	b5 81 08 00 	add r1,r12,r1                                  
    current        = next;                                            
    next           = (Chain_Node *)                                   
                        _Addresses_Add_offset( (void *) next, node_size );
  }                                                                   
                                                                      
  current->next = tail;                                               
 8009418:	58 2d 00 00 	sw (r1+0),r13                                  
  tail->previous = current;                                           
 800941c:	59 61 00 08 	sw (r11+8),r1                                  
}                                                                     
 8009420:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009424:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8009428:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 800942c:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8009430:	37 9c 00 10 	addi sp,sp,16                                  
 8009434:	c3 a0 00 00 	ret                                            
                                                                      

0800d6c0 <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) {
 800d6c0:	37 9c ff f8 	addi sp,sp,-8                                  
 800d6c4:	5b 8b 00 08 	sw (sp+8),r11                                  
 800d6c8:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_event_set     event_condition;                                
  rtems_event_set     seized_events;                                  
  rtems_option        option_set;                                     
  RTEMS_API_Control  *api;                                            
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_RTEMS ];               
 800d6cc:	28 25 01 18 	lw r5,(r1+280)                                 
                                                                      
  option_set = (rtems_option) the_thread->Wait.option;                
 800d6d0:	28 28 00 30 	lw r8,(r1+48)                                  
 */                                                                   
                                                                      
void _Event_Surrender(                                                
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
 800d6d4:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_RTEMS ];               
                                                                      
  option_set = (rtems_option) the_thread->Wait.option;                
                                                                      
  _ISR_Disable( level );                                              
 800d6d8:	90 00 08 00 	rcsr r1,IE                                     
 800d6dc:	34 07 ff fe 	mvi r7,-2                                      
 800d6e0:	a0 27 38 00 	and r7,r1,r7                                   
 800d6e4:	d0 07 00 00 	wcsr IE,r7                                     
  pending_events  = api->pending_events;                              
 800d6e8:	28 a6 00 00 	lw r6,(r5+0)                                   
  event_condition = (rtems_event_set) the_thread->Wait.count;         
 800d6ec:	29 64 00 24 	lw r4,(r11+36)                                 
RTEMS_INLINE_ROUTINE rtems_event_set _Event_sets_Get(                 
  rtems_event_set the_event_set,                                      
  rtems_event_set the_event_condition                                 
)                                                                     
{                                                                     
   return ( the_event_set & the_event_condition );                    
 800d6f0:	a0 86 10 00 	and r2,r4,r6                                   
  seized_events = _Event_sets_Get( pending_events, event_condition ); 
                                                                      
  /*                                                                  
   *  No events were seized in this operation                         
   */                                                                 
  if ( _Event_sets_Is_empty( seized_events ) ) {                      
 800d6f4:	44 40 00 27 	be r2,r0,800d790 <_Event_Surrender+0xd0>       
                                                                      
  /*                                                                  
   *  If we are in an ISR and sending to the current thread, then     
   *  we have a critical section issue to deal with.                  
   */                                                                 
  if ( _ISR_Is_in_progress() &&                                       
 800d6f8:	78 03 08 01 	mvhi r3,0x801                                  
 800d6fc:	38 63 9a a8 	ori r3,r3,0x9aa8                               
 800d700:	28 69 00 08 	lw r9,(r3+8)                                   
 800d704:	45 20 00 03 	be r9,r0,800d710 <_Event_Surrender+0x50>       
 800d708:	28 63 00 0c 	lw r3,(r3+12)                                  
 800d70c:	45 63 00 31 	be r11,r3,800d7d0 <_Event_Surrender+0x110>     <== NEVER TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_event (              
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_WAITING_FOR_EVENT);                    
 800d710:	29 63 00 10 	lw r3,(r11+16)                                 
 800d714:	20 63 01 00 	andi r3,r3,0x100                               
  }                                                                   
                                                                      
  /*                                                                  
   *  Otherwise, this is a normal send to another thread              
   */                                                                 
  if ( _States_Is_waiting_for_event( the_thread->current_state ) ) {  
 800d718:	44 60 00 19 	be r3,r0,800d77c <_Event_Surrender+0xbc>       
    if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
 800d71c:	44 82 00 03 	be r4,r2,800d728 <_Event_Surrender+0x68>       
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Options_Is_any (                           
  rtems_option option_set                                             
)                                                                     
{                                                                     
   return (option_set & RTEMS_EVENT_ANY) ? true : false;              
 800d720:	21 08 00 02 	andi r8,r8,0x2                                 
 800d724:	45 00 00 16 	be r8,r0,800d77c <_Event_Surrender+0xbc>       <== NEVER TAKEN
RTEMS_INLINE_ROUTINE rtems_event_set _Event_sets_Clear(               
 rtems_event_set the_event_set,                                       
 rtems_event_set the_mask                                             
)                                                                     
{                                                                     
   return ( the_event_set & ~(the_mask) );                            
 800d728:	a4 40 18 00 	not r3,r2                                      
      api->pending_events = _Event_sets_Clear( pending_events, seized_events );
      the_thread->Wait.count = 0;                                     
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
 800d72c:	29 64 00 28 	lw r4,(r11+40)                                 
 800d730:	a0 66 30 00 	and r6,r3,r6                                   
  /*                                                                  
   *  Otherwise, this is a normal send to another thread              
   */                                                                 
  if ( _States_Is_waiting_for_event( the_thread->current_state ) ) {  
    if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
      api->pending_events = _Event_sets_Clear( pending_events, seized_events );
 800d734:	58 a6 00 00 	sw (r5+0),r6                                   
      the_thread->Wait.count = 0;                                     
 800d738:	59 60 00 24 	sw (r11+36),r0                                 
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
 800d73c:	58 82 00 00 	sw (r4+0),r2                                   
                                                                      
      _ISR_Flash( level );                                            
 800d740:	d0 01 00 00 	wcsr IE,r1                                     
 800d744:	d0 07 00 00 	wcsr IE,r7                                     
                                                                      
      if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {             
 800d748:	29 63 00 50 	lw r3,(r11+80)                                 
 800d74c:	34 02 00 02 	mvi r2,2                                       
 800d750:	44 62 00 15 	be r3,r2,800d7a4 <_Event_Surrender+0xe4>       
        _ISR_Enable( level );                                         
 800d754:	d0 01 00 00 	wcsr IE,r1                                     
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
 800d758:	78 01 08 01 	mvhi r1,0x801                                  
 800d75c:	38 21 78 80 	ori r1,r1,0x7880                               
 800d760:	28 22 00 00 	lw r2,(r1+0)                                   
 800d764:	b9 60 08 00 	mv r1,r11                                      
 800d768:	f8 00 05 31 	calli 800ec2c <_Thread_Clear_state>            
      }                                                               
      return;                                                         
    }                                                                 
  }                                                                   
  _ISR_Enable( level );                                               
}                                                                     
 800d76c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800d770:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800d774:	37 9c 00 08 	addi sp,sp,8                                   
 800d778:	c3 a0 00 00 	ret                                            
        _Thread_Unblock( the_thread );                                
      }                                                               
      return;                                                         
    }                                                                 
  }                                                                   
  _ISR_Enable( level );                                               
 800d77c:	d0 01 00 00 	wcsr IE,r1                                     
}                                                                     
 800d780:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800d784:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800d788:	37 9c 00 08 	addi sp,sp,8                                   
 800d78c:	c3 a0 00 00 	ret                                            
                                                                      
  /*                                                                  
   *  No events were seized in this operation                         
   */                                                                 
  if ( _Event_sets_Is_empty( seized_events ) ) {                      
    _ISR_Enable( level );                                             
 800d790:	d0 01 00 00 	wcsr IE,r1                                     
      }                                                               
      return;                                                         
    }                                                                 
  }                                                                   
  _ISR_Enable( level );                                               
}                                                                     
 800d794:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800d798:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800d79c:	37 9c 00 08 	addi sp,sp,8                                   
 800d7a0:	c3 a0 00 00 	ret                                            
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(                       
  Watchdog_Control *the_watchdog                                      
)                                                                     
{                                                                     
                                                                      
  the_watchdog->state = WATCHDOG_REMOVE_IT;                           
 800d7a4:	34 02 00 03 	mvi r2,3                                       
 800d7a8:	59 62 00 50 	sw (r11+80),r2                                 
      if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {             
        _ISR_Enable( level );                                         
        _Thread_Unblock( the_thread );                                
      } else {                                                        
        _Watchdog_Deactivate( &the_thread->Timer );                   
        _ISR_Enable( level );                                         
 800d7ac:	d0 01 00 00 	wcsr IE,r1                                     
        (void) _Watchdog_Remove( &the_thread->Timer );                
 800d7b0:	35 61 00 48 	addi r1,r11,72                                 
 800d7b4:	fb ff ea 0b 	calli 8007fe0 <_Watchdog_Remove>               
 800d7b8:	78 03 08 01 	mvhi r3,0x801                                  
 800d7bc:	38 63 78 80 	ori r3,r3,0x7880                               
 800d7c0:	28 62 00 00 	lw r2,(r3+0)                                   
 800d7c4:	b9 60 08 00 	mv r1,r11                                      
 800d7c8:	f8 00 05 19 	calli 800ec2c <_Thread_Clear_state>            
 800d7cc:	e3 ff ff ed 	bi 800d780 <_Event_Surrender+0xc0>             
   *  If we are in an ISR and sending to the current thread, then     
   *  we have a critical section issue to deal with.                  
   */                                                                 
  if ( _ISR_Is_in_progress() &&                                       
       _Thread_Is_executing( the_thread ) &&                          
       ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||   
 800d7d0:	78 03 08 01 	mvhi r3,0x801                                  <== NOT EXECUTED
 800d7d4:	38 63 9c 00 	ori r3,r3,0x9c00                               <== NOT EXECUTED
 800d7d8:	28 6a 00 00 	lw r10,(r3+0)                                  <== NOT EXECUTED
  /*                                                                  
   *  If we are in an ISR and sending to the current thread, then     
   *  we have a critical section issue to deal with.                  
   */                                                                 
  if ( _ISR_Is_in_progress() &&                                       
       _Thread_Is_executing( the_thread ) &&                          
 800d7dc:	34 09 00 02 	mvi r9,2                                       <== NOT EXECUTED
 800d7e0:	45 49 00 04 	be r10,r9,800d7f0 <_Event_Surrender+0x130>     <== NOT EXECUTED
       ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||   
        (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
 800d7e4:	28 6a 00 00 	lw r10,(r3+0)                                  <== NOT EXECUTED
   *  If we are in an ISR and sending to the current thread, then     
   *  we have a critical section issue to deal with.                  
   */                                                                 
  if ( _ISR_Is_in_progress() &&                                       
       _Thread_Is_executing( the_thread ) &&                          
       ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||   
 800d7e8:	34 09 00 01 	mvi r9,1                                       <== NOT EXECUTED
 800d7ec:	5d 49 ff c9 	bne r10,r9,800d710 <_Event_Surrender+0x50>     <== NOT EXECUTED
        (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
    if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
 800d7f0:	44 82 00 03 	be r4,r2,800d7fc <_Event_Surrender+0x13c>      <== NOT EXECUTED
 800d7f4:	21 08 00 02 	andi r8,r8,0x2                                 <== NOT EXECUTED
 800d7f8:	45 00 00 09 	be r8,r0,800d81c <_Event_Surrender+0x15c>      <== NOT EXECUTED
 800d7fc:	a4 40 20 00 	not r4,r2                                      <== NOT EXECUTED
 800d800:	a0 86 30 00 	and r6,r4,r6                                   <== NOT EXECUTED
      api->pending_events = _Event_sets_Clear( pending_events,seized_events );
      the_thread->Wait.count = 0;                                     
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
 800d804:	29 64 00 28 	lw r4,(r11+40)                                 <== NOT EXECUTED
  if ( _ISR_Is_in_progress() &&                                       
       _Thread_Is_executing( the_thread ) &&                          
       ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||   
        (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
    if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
      api->pending_events = _Event_sets_Clear( pending_events,seized_events );
 800d808:	58 a6 00 00 	sw (r5+0),r6                                   <== NOT EXECUTED
      the_thread->Wait.count = 0;                                     
 800d80c:	59 60 00 24 	sw (r11+36),r0                                 <== NOT EXECUTED
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
 800d810:	58 82 00 00 	sw (r4+0),r2                                   <== NOT EXECUTED
      _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;        
 800d814:	34 02 00 03 	mvi r2,3                                       <== NOT EXECUTED
 800d818:	58 62 00 00 	sw (r3+0),r2                                   <== NOT EXECUTED
    }                                                                 
    _ISR_Enable( level );                                             
 800d81c:	d0 01 00 00 	wcsr IE,r1                                     <== NOT EXECUTED
    return;                                                           
 800d820:	e3 ff ff d8 	bi 800d780 <_Event_Surrender+0xc0>             <== NOT EXECUTED
                                                                      

0800d824 <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) {
 800d824:	37 9c ff f8 	addi sp,sp,-8                                  
 800d828:	5b 9d 00 04 	sw (sp+4),ra                                   
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
  ISR_Level          level;                                           
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 800d82c:	37 82 00 08 	addi r2,sp,8                                   
 800d830:	fb ff e5 57 	calli 8006d8c <_Thread_Get>                    
  switch ( location ) {                                               
 800d834:	2b 82 00 08 	lw r2,(sp+8)                                   
 800d838:	44 40 00 04 	be r2,r0,800d848 <_Event_Timeout+0x24>         <== ALWAYS TAKEN
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
}                                                                     
 800d83c:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 800d840:	37 9c 00 08 	addi sp,sp,8                                   <== NOT EXECUTED
 800d844:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
       *                                                              
       *  If it is not satisfied, then it is "nothing happened" and   
       *  this is the "timeout" transition.  After a request is satisfied,
       *  a timeout is not allowed to occur.                          
       */                                                             
      _ISR_Disable( level );                                          
 800d848:	90 00 18 00 	rcsr r3,IE                                     
 800d84c:	34 02 ff fe 	mvi r2,-2                                      
 800d850:	a0 62 10 00 	and r2,r3,r2                                   
 800d854:	d0 02 00 00 	wcsr IE,r2                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
 800d858:	78 02 08 01 	mvhi r2,0x801                                  
 800d85c:	38 42 9a a8 	ori r2,r2,0x9aa8                               
            return;                                                   
          }                                                           
        #endif                                                        
                                                                      
        the_thread->Wait.count = 0;                                   
        if ( _Thread_Is_executing( the_thread ) ) {                   
 800d860:	28 42 00 0c 	lw r2,(r2+12)                                  
            _ISR_Enable( level );                                     
            return;                                                   
          }                                                           
        #endif                                                        
                                                                      
        the_thread->Wait.count = 0;                                   
 800d864:	58 20 00 24 	sw (r1+36),r0                                  
        if ( _Thread_Is_executing( the_thread ) ) {                   
 800d868:	44 22 00 10 	be r1,r2,800d8a8 <_Event_Timeout+0x84>         
          if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
            _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;    
        }                                                             
                                                                      
        the_thread->Wait.return_code = RTEMS_TIMEOUT;                 
 800d86c:	34 02 00 06 	mvi r2,6                                       
 800d870:	58 22 00 34 	sw (r1+52),r2                                  
      _ISR_Enable( level );                                           
 800d874:	d0 03 00 00 	wcsr IE,r3                                     
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
 800d878:	78 03 08 01 	mvhi r3,0x801                                  
 800d87c:	38 63 78 80 	ori r3,r3,0x7880                               
 800d880:	28 62 00 00 	lw r2,(r3+0)                                   
 800d884:	f8 00 04 ea 	calli 800ec2c <_Thread_Clear_state>            
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
 800d888:	78 01 08 01 	mvhi r1,0x801                                  
 800d88c:	38 21 99 08 	ori r1,r1,0x9908                               
 800d890:	28 22 00 00 	lw r2,(r1+0)                                   
 800d894:	34 42 ff ff 	addi r2,r2,-1                                  
 800d898:	58 22 00 00 	sw (r1+0),r2                                   
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
}                                                                     
 800d89c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800d8a0:	37 9c 00 08 	addi sp,sp,8                                   
 800d8a4:	c3 a0 00 00 	ret                                            
          }                                                           
        #endif                                                        
                                                                      
        the_thread->Wait.count = 0;                                   
        if ( _Thread_Is_executing( the_thread ) ) {                   
          if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
 800d8a8:	78 02 08 01 	mvhi r2,0x801                                  
 800d8ac:	38 42 9c 00 	ori r2,r2,0x9c00                               
 800d8b0:	28 45 00 00 	lw r5,(r2+0)                                   
 800d8b4:	34 04 00 01 	mvi r4,1                                       
 800d8b8:	5c a4 ff ed 	bne r5,r4,800d86c <_Event_Timeout+0x48>        <== NEVER TAKEN
            _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;    
 800d8bc:	34 04 00 02 	mvi r4,2                                       
 800d8c0:	58 44 00 00 	sw (r2+0),r4                                   
 800d8c4:	e3 ff ff ea 	bi 800d86c <_Event_Timeout+0x48>               
                                                                      

0800962c <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) {
 800962c:	37 9c ff bc 	addi sp,sp,-68                                 
 8009630:	5b 8b 00 44 	sw (sp+68),r11                                 
 8009634:	5b 8c 00 40 	sw (sp+64),r12                                 
 8009638:	5b 8d 00 3c 	sw (sp+60),r13                                 
 800963c:	5b 8e 00 38 	sw (sp+56),r14                                 
 8009640:	5b 8f 00 34 	sw (sp+52),r15                                 
 8009644:	5b 90 00 30 	sw (sp+48),r16                                 
 8009648:	5b 91 00 2c 	sw (sp+44),r17                                 
 800964c:	5b 92 00 28 	sw (sp+40),r18                                 
 8009650:	5b 93 00 24 	sw (sp+36),r19                                 
 8009654:	5b 94 00 20 	sw (sp+32),r20                                 
 8009658:	5b 95 00 1c 	sw (sp+28),r21                                 
 800965c:	5b 96 00 18 	sw (sp+24),r22                                 
 8009660:	5b 97 00 14 	sw (sp+20),r23                                 
 8009664:	5b 98 00 10 	sw (sp+16),r24                                 
 8009668:	5b 99 00 0c 	sw (sp+12),r25                                 
 800966c:	5b 9b 00 08 	sw (sp+8),fp                                   
 8009670:	5b 9d 00 04 	sw (sp+4),ra                                   
  Heap_Statistics *const stats = &heap->stats;                        
  uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE
 8009674:	34 54 00 04 	addi r20,r2,4                                  
  Heap_Control *heap,                                                 
  uintptr_t alloc_size,                                               
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
 8009678:	b8 20 78 00 	mv r15,r1                                      
  Heap_Statistics *const stats = &heap->stats;                        
  uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE
    - HEAP_ALLOC_BONUS;                                               
  uintptr_t const page_size = heap->page_size;                        
 800967c:	28 37 00 10 	lw r23,(r1+16)                                 
  Heap_Control *heap,                                                 
  uintptr_t alloc_size,                                               
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
 8009680:	b8 40 70 00 	mv r14,r2                                      
 8009684:	b8 60 80 00 	mv r16,r3                                      
 8009688:	b8 80 90 00 	mv r18,r4                                      
  uint32_t search_count = 0;                                          
  bool search_again = false;                                          
                                                                      
  if ( block_size_floor < alloc_size ) {                              
    /* Integer overflow occured */                                    
    return NULL;                                                      
 800968c:	34 01 00 00 	mvi r1,0                                       
  Heap_Block *block = NULL;                                           
  uintptr_t alloc_begin = 0;                                          
  uint32_t search_count = 0;                                          
  bool search_again = false;                                          
                                                                      
  if ( block_size_floor < alloc_size ) {                              
 8009690:	54 54 00 5b 	bgu r2,r20,80097fc <_Heap_Allocate_aligned_with_boundary+0x1d0>
    /* Integer overflow occured */                                    
    return NULL;                                                      
  }                                                                   
                                                                      
  if ( boundary != 0 ) {                                              
 8009694:	5c 80 00 6f 	bne r4,r0,8009850 <_Heap_Allocate_aligned_with_boundary+0x224>
  if ( stats->max_search < search_count ) {                           
    stats->max_search = search_count;                                 
  }                                                                   
                                                                      
  return (void *) alloc_begin;                                        
}                                                                     
 8009698:	29 ec 00 08 	lw r12,(r15+8)                                 
                                                                      
  do {                                                                
    Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );  
                                                                      
    block = _Heap_Free_list_first( heap );                            
    while ( block != free_list_tail ) {                               
 800969c:	34 01 00 00 	mvi r1,0                                       
 80096a0:	45 ec 00 57 	be r15,r12,80097fc <_Heap_Allocate_aligned_with_boundary+0x1d0>
                                                                      
  uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
  uintptr_t const alloc_begin_ceiling = block_end - min_block_size    
    + HEAP_BLOCK_HEADER_SIZE + page_size - 1;                         
                                                                      
  uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;                 
 80096a4:	34 18 00 04 	mvi r24,4                                      
                                                                      
  do {                                                                
    Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );  
                                                                      
    block = _Heap_Free_list_first( heap );                            
    while ( block != free_list_tail ) {                               
 80096a8:	34 11 00 01 	mvi r17,1                                      
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 80096ac:	34 1b ff fe 	mvi fp,-2                                      
  uintptr_t const block_begin = (uintptr_t) block;                    
  uintptr_t const block_size = _Heap_Block_size( block );             
  uintptr_t const block_end = block_begin + block_size;               
                                                                      
  uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
  uintptr_t const alloc_begin_ceiling = block_end - min_block_size    
 80096b0:	36 f9 00 07 	addi r25,r23,7                                 
    + HEAP_BLOCK_HEADER_SIZE + page_size - 1;                         
                                                                      
  uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;                 
 80096b4:	cb 0e c0 00 	sub r24,r24,r14                                
      /*                                                              
       * The HEAP_PREV_BLOCK_USED flag is always set in the block size_and_flag
       * field.  Thus the value is about one unit larger than the real block
       * size.  The greater than operator takes this into account.    
       */                                                             
      if ( block->size_and_flag > block_size_floor ) {                
 80096b8:	29 81 00 04 	lw r1,(r12+4)                                  
 80096bc:	52 81 00 3b 	bgeu r20,r1,80097a8 <_Heap_Allocate_aligned_with_boundary+0x17c>
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(             
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;                  
 80096c0:	35 8b 00 08 	addi r11,r12,8                                 
        if ( alignment == 0 ) {                                       
 80096c4:	46 00 00 3e 	be r16,r0,80097bc <_Heap_Allocate_aligned_with_boundary+0x190>
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 80096c8:	a0 3b 68 00 	and r13,r1,fp                                  
  if ( stats->max_search < search_count ) {                           
    stats->max_search = search_count;                                 
  }                                                                   
                                                                      
  return (void *) alloc_begin;                                        
}                                                                     
 80096cc:	29 f5 00 14 	lw r21,(r15+20)                                
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const min_block_size = heap->min_block_size;              
                                                                      
  uintptr_t const block_begin = (uintptr_t) block;                    
  uintptr_t const block_size = _Heap_Block_size( block );             
  uintptr_t const block_end = block_begin + block_size;               
 80096d0:	b5 8d 68 00 	add r13,r12,r13                                
  uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
  uintptr_t const alloc_begin_ceiling = block_end - min_block_size    
    + HEAP_BLOCK_HEADER_SIZE + page_size - 1;                         
                                                                      
  uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;                 
  uintptr_t alloc_begin = alloc_end - alloc_size;                     
 80096d4:	b7 0d 58 00 	add r11,r24,r13                                
  uintptr_t const block_size = _Heap_Block_size( block );             
  uintptr_t const block_end = block_begin + block_size;               
                                                                      
  uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
  uintptr_t const alloc_begin_ceiling = block_end - min_block_size    
    + HEAP_BLOCK_HEADER_SIZE + page_size - 1;                         
 80096d8:	cb 35 18 00 	sub r3,r25,r21                                 
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 80096dc:	b9 60 08 00 	mv r1,r11                                      
 80096e0:	ba 00 10 00 	mv r2,r16                                      
  uintptr_t const block_begin = (uintptr_t) block;                    
  uintptr_t const block_size = _Heap_Block_size( block );             
  uintptr_t const block_end = block_begin + block_size;               
                                                                      
  uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
  uintptr_t const alloc_begin_ceiling = block_end - min_block_size    
 80096e4:	b4 6d 68 00 	add r13,r3,r13                                 
 80096e8:	f8 00 1e c0 	calli 80111e8 <__umodsi3>                      
 80096ec:	c9 61 58 00 	sub r11,r11,r1                                 
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(             
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;                  
 80096f0:	35 96 00 08 	addi r22,r12,8                                 
  uintptr_t alloc_begin = alloc_end - alloc_size;                     
                                                                      
  alloc_begin = _Heap_Align_down( alloc_begin, alignment );           
                                                                      
  /* Ensure that the we have a valid new block at the end */          
  if ( alloc_begin > alloc_begin_ceiling ) {                          
 80096f4:	51 ab 00 05 	bgeu r13,r11,8009708 <_Heap_Allocate_aligned_with_boundary+0xdc>
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 80096f8:	b9 a0 08 00 	mv r1,r13                                      
 80096fc:	ba 00 10 00 	mv r2,r16                                      
 8009700:	f8 00 1e ba 	calli 80111e8 <__umodsi3>                      
 8009704:	c9 a1 58 00 	sub r11,r13,r1                                 
  }                                                                   
                                                                      
  alloc_end = alloc_begin + alloc_size;                               
                                                                      
  /* Ensure boundary constaint */                                     
  if ( boundary != 0 ) {                                              
 8009708:	46 40 00 1c 	be r18,r0,8009778 <_Heap_Allocate_aligned_with_boundary+0x14c>
  /* Ensure that the we have a valid new block at the end */          
  if ( alloc_begin > alloc_begin_ceiling ) {                          
    alloc_begin = _Heap_Align_down( alloc_begin_ceiling, alignment ); 
  }                                                                   
                                                                      
  alloc_end = alloc_begin + alloc_size;                               
 800970c:	b5 6e 68 00 	add r13,r11,r14                                
 8009710:	b9 a0 08 00 	mv r1,r13                                      
 8009714:	ba 40 10 00 	mv r2,r18                                      
 8009718:	f8 00 1e b4 	calli 80111e8 <__umodsi3>                      
 800971c:	c9 a1 28 00 	sub r5,r13,r1                                  
  /* Ensure boundary constaint */                                     
  if ( boundary != 0 ) {                                              
    uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;  
    uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
                                                                      
    while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
 8009720:	f5 a5 68 00 	cmpgu r13,r13,r5                               
 8009724:	f4 ab 08 00 	cmpgu r1,r5,r11                                
 8009728:	a1 a1 68 00 	and r13,r13,r1                                 
 800972c:	45 a0 00 13 	be r13,r0,8009778 <_Heap_Allocate_aligned_with_boundary+0x14c>
                                                                      
  alloc_end = alloc_begin + alloc_size;                               
                                                                      
  /* Ensure boundary constaint */                                     
  if ( boundary != 0 ) {                                              
    uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;  
 8009730:	b6 ce 98 00 	add r19,r22,r14                                
    uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
                                                                      
    while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
      if ( boundary_line < boundary_floor ) {                         
 8009734:	56 65 00 1d 	bgu r19,r5,80097a8 <_Heap_Allocate_aligned_with_boundary+0x17c>
 8009738:	e0 00 00 02 	bi 8009740 <_Heap_Allocate_aligned_with_boundary+0x114>
 800973c:	56 65 00 1b 	bgu r19,r5,80097a8 <_Heap_Allocate_aligned_with_boundary+0x17c><== NEVER TAKEN
        return 0;                                                     
      }                                                               
      alloc_begin = boundary_line - alloc_size;                       
 8009740:	c8 ae 58 00 	sub r11,r5,r14                                 
 8009744:	ba 00 10 00 	mv r2,r16                                      
 8009748:	b9 60 08 00 	mv r1,r11                                      
 800974c:	f8 00 1e a7 	calli 80111e8 <__umodsi3>                      
 8009750:	c9 61 58 00 	sub r11,r11,r1                                 
      alloc_begin = _Heap_Align_down( alloc_begin, alignment );       
      alloc_end = alloc_begin + alloc_size;                           
 8009754:	b5 6e 68 00 	add r13,r11,r14                                
 8009758:	b9 a0 08 00 	mv r1,r13                                      
 800975c:	ba 40 10 00 	mv r2,r18                                      
 8009760:	f8 00 1e a2 	calli 80111e8 <__umodsi3>                      
 8009764:	c9 a1 28 00 	sub r5,r13,r1                                  
  /* Ensure boundary constaint */                                     
  if ( boundary != 0 ) {                                              
    uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;  
    uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
                                                                      
    while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
 8009768:	f5 a5 68 00 	cmpgu r13,r13,r5                               
 800976c:	f4 ab 08 00 	cmpgu r1,r5,r11                                
 8009770:	a1 a1 68 00 	and r13,r13,r1                                 
 8009774:	5d a0 ff f2 	bne r13,r0,800973c <_Heap_Allocate_aligned_with_boundary+0x110>
      boundary_line = _Heap_Align_down( alloc_end, boundary );        
    }                                                                 
  }                                                                   
                                                                      
  /* Ensure that the we have a valid new block at the beginning */    
  if ( alloc_begin >= alloc_begin_floor ) {                           
 8009778:	56 cb 00 0c 	bgu r22,r11,80097a8 <_Heap_Allocate_aligned_with_boundary+0x17c>
 800977c:	34 01 ff f8 	mvi r1,-8                                      
 8009780:	c8 2c 68 00 	sub r13,r1,r12                                 
 8009784:	ba e0 10 00 	mv r2,r23                                      
 8009788:	b9 60 08 00 	mv r1,r11                                      
 800978c:	f8 00 1e 97 	calli 80111e8 <__umodsi3>                      
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
 8009790:	b5 ab 68 00 	add r13,r13,r11                                
    uintptr_t const alloc_block_begin =                               
      (uintptr_t) _Heap_Block_of_alloc_area( alloc_begin, page_size );
    uintptr_t const free_size = alloc_block_begin - block_begin;      
 8009794:	c9 a1 08 00 	sub r1,r13,r1                                  
                                                                      
    if ( free_size >= min_block_size || free_size == 0 ) {            
 8009798:	64 22 00 00 	cmpei r2,r1,0                                  
 800979c:	f0 35 a8 00 	cmpgeu r21,r1,r21                              
 80097a0:	b8 55 08 00 	or r1,r2,r21                                   
 80097a4:	5c 20 00 06 	bne r1,r0,80097bc <_Heap_Allocate_aligned_with_boundary+0x190>
                                                                      
      if ( alloc_begin != 0 ) {                                       
        break;                                                        
      }                                                               
                                                                      
      block = block->next;                                            
 80097a8:	29 8c 00 08 	lw r12,(r12+8)                                 
 80097ac:	36 21 00 01 	addi r1,r17,1                                  
                                                                      
  do {                                                                
    Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );  
                                                                      
    block = _Heap_Free_list_first( heap );                            
    while ( block != free_list_tail ) {                               
 80097b0:	45 ec 00 26 	be r15,r12,8009848 <_Heap_Allocate_aligned_with_boundary+0x21c>
 80097b4:	b8 20 88 00 	mv r17,r1                                      
 80097b8:	e3 ff ff c0 	bi 80096b8 <_Heap_Allocate_aligned_with_boundary+0x8c>
      }                                                               
                                                                      
      /* Statistics */                                                
      ++search_count;                                                 
                                                                      
      if ( alloc_begin != 0 ) {                                       
 80097bc:	45 60 ff fb 	be r11,r0,80097a8 <_Heap_Allocate_aligned_with_boundary+0x17c><== NEVER TAKEN
    search_again = _Heap_Protection_free_delayed_blocks( heap, alloc_begin );
  } while ( search_again );                                           
                                                                      
  if ( alloc_begin != 0 ) {                                           
    /* Statistics */                                                  
    ++stats->allocs;                                                  
 80097c0:	29 e3 00 48 	lw r3,(r15+72)                                 
    stats->searches += search_count;                                  
 80097c4:	29 e2 00 4c 	lw r2,(r15+76)                                 
                                                                      
    block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
 80097c8:	b9 e0 08 00 	mv r1,r15                                      
    search_again = _Heap_Protection_free_delayed_blocks( heap, alloc_begin );
  } while ( search_again );                                           
                                                                      
  if ( alloc_begin != 0 ) {                                           
    /* Statistics */                                                  
    ++stats->allocs;                                                  
 80097cc:	34 63 00 01 	addi r3,r3,1                                   
    stats->searches += search_count;                                  
 80097d0:	b4 51 10 00 	add r2,r2,r17                                  
    search_again = _Heap_Protection_free_delayed_blocks( heap, alloc_begin );
  } while ( search_again );                                           
                                                                      
  if ( alloc_begin != 0 ) {                                           
    /* Statistics */                                                  
    ++stats->allocs;                                                  
 80097d4:	59 e3 00 48 	sw (r15+72),r3                                 
    stats->searches += search_count;                                  
 80097d8:	59 e2 00 4c 	sw (r15+76),r2                                 
                                                                      
    block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
 80097dc:	b9 60 18 00 	mv r3,r11                                      
 80097e0:	b9 80 10 00 	mv r2,r12                                      
 80097e4:	b9 c0 20 00 	mv r4,r14                                      
 80097e8:	fb ff ea 9d 	calli 800425c <_Heap_Block_allocate>           
 80097ec:	b9 60 08 00 	mv r1,r11                                      
      boundary                                                        
    );                                                                
  }                                                                   
                                                                      
  /* Statistics */                                                    
  if ( stats->max_search < search_count ) {                           
 80097f0:	29 e2 00 44 	lw r2,(r15+68)                                 
 80097f4:	50 51 00 02 	bgeu r2,r17,80097fc <_Heap_Allocate_aligned_with_boundary+0x1d0>
    stats->max_search = search_count;                                 
 80097f8:	59 f1 00 44 	sw (r15+68),r17                                
  }                                                                   
                                                                      
  return (void *) alloc_begin;                                        
}                                                                     
 80097fc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009800:	2b 8b 00 44 	lw r11,(sp+68)                                 
 8009804:	2b 8c 00 40 	lw r12,(sp+64)                                 
 8009808:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 800980c:	2b 8e 00 38 	lw r14,(sp+56)                                 
 8009810:	2b 8f 00 34 	lw r15,(sp+52)                                 
 8009814:	2b 90 00 30 	lw r16,(sp+48)                                 
 8009818:	2b 91 00 2c 	lw r17,(sp+44)                                 
 800981c:	2b 92 00 28 	lw r18,(sp+40)                                 
 8009820:	2b 93 00 24 	lw r19,(sp+36)                                 
 8009824:	2b 94 00 20 	lw r20,(sp+32)                                 
 8009828:	2b 95 00 1c 	lw r21,(sp+28)                                 
 800982c:	2b 96 00 18 	lw r22,(sp+24)                                 
 8009830:	2b 97 00 14 	lw r23,(sp+20)                                 
 8009834:	2b 98 00 10 	lw r24,(sp+16)                                 
 8009838:	2b 99 00 0c 	lw r25,(sp+12)                                 
 800983c:	2b 9b 00 08 	lw fp,(sp+8)                                   
 8009840:	37 9c 00 44 	addi sp,sp,68                                  
 8009844:	c3 a0 00 00 	ret                                            
                                                                      
  do {                                                                
    Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );  
                                                                      
    block = _Heap_Free_list_first( heap );                            
    while ( block != free_list_tail ) {                               
 8009848:	34 01 00 00 	mvi r1,0                                       
 800984c:	e3 ff ff e9 	bi 80097f0 <_Heap_Allocate_aligned_with_boundary+0x1c4>
    /* Integer overflow occured */                                    
    return NULL;                                                      
  }                                                                   
                                                                      
  if ( boundary != 0 ) {                                              
    if ( boundary < alloc_size ) {                                    
 8009850:	54 44 ff eb 	bgu r2,r4,80097fc <_Heap_Allocate_aligned_with_boundary+0x1d0>
      return NULL;                                                    
    }                                                                 
                                                                      
    if ( alignment == 0 ) {                                           
 8009854:	5c 60 ff 91 	bne r3,r0,8009698 <_Heap_Allocate_aligned_with_boundary+0x6c>
      alignment = page_size;                                          
 8009858:	ba e0 80 00 	mv r16,r23                                     
 800985c:	e3 ff ff 8f 	bi 8009698 <_Heap_Allocate_aligned_with_boundary+0x6c>
                                                                      

08009ac0 <_Heap_Extend>: Heap_Control *heap, void *extend_area_begin_ptr, uintptr_t extend_area_size, uintptr_t *extended_size_ptr ) {
 8009ac0:	37 9c ff b8 	addi sp,sp,-72                                 
 8009ac4:	5b 8b 00 40 	sw (sp+64),r11                                 
 8009ac8:	5b 8c 00 3c 	sw (sp+60),r12                                 
 8009acc:	5b 8d 00 38 	sw (sp+56),r13                                 
 8009ad0:	5b 8e 00 34 	sw (sp+52),r14                                 
 8009ad4:	5b 8f 00 30 	sw (sp+48),r15                                 
 8009ad8:	5b 90 00 2c 	sw (sp+44),r16                                 
 8009adc:	5b 91 00 28 	sw (sp+40),r17                                 
 8009ae0:	5b 92 00 24 	sw (sp+36),r18                                 
 8009ae4:	5b 93 00 20 	sw (sp+32),r19                                 
 8009ae8:	5b 94 00 1c 	sw (sp+28),r20                                 
 8009aec:	5b 95 00 18 	sw (sp+24),r21                                 
 8009af0:	5b 96 00 14 	sw (sp+20),r22                                 
 8009af4:	5b 97 00 10 	sw (sp+16),r23                                 
 8009af8:	5b 98 00 0c 	sw (sp+12),r24                                 
 8009afc:	5b 99 00 08 	sw (sp+8),r25                                  
 8009b00:	5b 9d 00 04 	sw (sp+4),ra                                   
  Heap_Block *start_block = first_block;                              
  Heap_Block *merge_below_block = NULL;                               
  Heap_Block *merge_above_block = NULL;                               
  Heap_Block *link_below_block = NULL;                                
  Heap_Block *link_above_block = NULL;                                
  Heap_Block *extend_first_block = NULL;                              
 8009b04:	5b 80 00 48 	sw (sp+72),r0                                  
  Heap_Block *extend_last_block = NULL;                               
 8009b08:	5b 80 00 44 	sw (sp+68),r0                                  
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const min_block_size = heap->min_block_size;              
  uintptr_t const extend_area_begin = (uintptr_t) extend_area_begin_ptr;
  uintptr_t const extend_area_end = extend_area_begin + extend_area_size;
 8009b0c:	b4 43 70 00 	add r14,r2,r3                                  
  Heap_Control *heap,                                                 
  void *extend_area_begin_ptr,                                        
  uintptr_t extend_area_size,                                         
  uintptr_t *extended_size_ptr                                        
)                                                                     
{                                                                     
 8009b10:	b8 40 68 00 	mv r13,r2                                      
 8009b14:	b8 20 58 00 	mv r11,r1                                      
 8009b18:	b8 80 b8 00 	mv r23,r4                                      
  Heap_Statistics *const stats = &heap->stats;                        
  Heap_Block *const first_block = heap->first_block;                  
 8009b1c:	28 30 00 20 	lw r16,(r1+32)                                 
  Heap_Block *merge_above_block = NULL;                               
  Heap_Block *link_below_block = NULL;                                
  Heap_Block *link_above_block = NULL;                                
  Heap_Block *extend_first_block = NULL;                              
  Heap_Block *extend_last_block = NULL;                               
  uintptr_t const page_size = heap->page_size;                        
 8009b20:	28 32 00 10 	lw r18,(r1+16)                                 
  uintptr_t const min_block_size = heap->min_block_size;              
 8009b24:	28 25 00 14 	lw r5,(r1+20)                                  
  uintptr_t const extend_area_begin = (uintptr_t) extend_area_begin_ptr;
  uintptr_t const extend_area_end = extend_area_begin + extend_area_size;
  uintptr_t const free_size = stats->free_size;                       
 8009b28:	28 38 00 30 	lw r24,(r1+48)                                 
  uintptr_t extend_first_block_size = 0;                              
  uintptr_t extended_size = 0;                                        
  bool extend_area_ok = false;                                        
                                                                      
  if ( extend_area_end < extend_area_begin ) {                        
    return false;                                                     
 8009b2c:	34 0c 00 00 	mvi r12,0                                      
  uintptr_t const free_size = stats->free_size;                       
  uintptr_t extend_first_block_size = 0;                              
  uintptr_t extended_size = 0;                                        
  bool extend_area_ok = false;                                        
                                                                      
  if ( extend_area_end < extend_area_begin ) {                        
 8009b30:	54 4e 00 76 	bgu r2,r14,8009d08 <_Heap_Extend+0x248>        
    return false;                                                     
  }                                                                   
                                                                      
  extend_area_ok = _Heap_Get_first_and_last_block(                    
 8009b34:	b8 40 08 00 	mv r1,r2                                       
 8009b38:	b8 a0 20 00 	mv r4,r5                                       
 8009b3c:	b8 60 10 00 	mv r2,r3                                       
 8009b40:	37 85 00 48 	addi r5,sp,72                                  
 8009b44:	ba 40 18 00 	mv r3,r18                                      
 8009b48:	37 86 00 44 	addi r6,sp,68                                  
 8009b4c:	fb ff ea 2c 	calli 80043fc <_Heap_Get_first_and_last_block> 
    page_size,                                                        
    min_block_size,                                                   
    &extend_first_block,                                              
    &extend_last_block                                                
  );                                                                  
  if (!extend_area_ok ) {                                             
 8009b50:	44 20 00 6e 	be r1,r0,8009d08 <_Heap_Extend+0x248>          
 8009b54:	ba 00 60 00 	mv r12,r16                                     
 8009b58:	34 16 00 00 	mvi r22,0                                      
 8009b5c:	34 19 00 00 	mvi r25,0                                      
 8009b60:	34 11 00 00 	mvi r17,0                                      
 8009b64:	34 14 00 00 	mvi r20,0                                      
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 8009b68:	34 15 ff fe 	mvi r21,-2                                     
 8009b6c:	e0 00 00 0d 	bi 8009ba0 <_Heap_Extend+0xe0>                 
      return false;                                                   
    }                                                                 
                                                                      
    if ( extend_area_end == sub_area_begin ) {                        
      merge_below_block = start_block;                                
    } else if ( extend_area_end < sub_area_end ) {                    
 8009b70:	55 ee 00 7b 	bgu r15,r14,8009d5c <_Heap_Extend+0x29c>       
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 8009b74:	b9 e0 08 00 	mv r1,r15                                      
 8009b78:	ba 40 10 00 	mv r2,r18                                      
 8009b7c:	35 f3 ff f8 	addi r19,r15,-8                                
 8009b80:	f8 00 1e bc 	calli 8011670 <__umodsi3>                      
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
 8009b84:	ca 61 08 00 	sub r1,r19,r1                                  
      link_below_block = start_block;                                 
    }                                                                 
                                                                      
    if ( sub_area_end == extend_area_begin ) {                        
 8009b88:	45 af 00 15 	be r13,r15,8009bdc <_Heap_Extend+0x11c>        
      start_block->prev_size = extend_area_end;                       
                                                                      
      merge_above_block = end_block;                                  
    } else if ( sub_area_end < extend_area_begin ) {                  
 8009b8c:	55 af 00 72 	bgu r13,r15,8009d54 <_Heap_Extend+0x294>       
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 8009b90:	28 2c 00 04 	lw r12,(r1+4)                                  
 8009b94:	a2 ac 60 00 	and r12,r21,r12                                
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 8009b98:	b4 2c 60 00 	add r12,r1,r12                                 
      link_above_block = end_block;                                   
    }                                                                 
                                                                      
    start_block = _Heap_Block_at( end_block, _Heap_Block_size( end_block ) );
  } while ( start_block != first_block );                             
 8009b9c:	46 0c 00 16 	be r16,r12,8009bf4 <_Heap_Extend+0x134>        
    return false;                                                     
  }                                                                   
                                                                      
  do {                                                                
    uintptr_t const sub_area_begin = (start_block != first_block) ?   
      (uintptr_t) start_block : heap->area_begin;                     
 8009ba0:	b9 80 08 00 	mv r1,r12                                      
 8009ba4:	45 90 00 70 	be r12,r16,8009d64 <_Heap_Extend+0x2a4>        
    uintptr_t const sub_area_end = start_block->prev_size;            
 8009ba8:	29 8f 00 00 	lw r15,(r12+0)                                 
    Heap_Block *const end_block =                                     
      _Heap_Block_of_alloc_area( sub_area_end, page_size );           
                                                                      
    if (                                                              
      sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
 8009bac:	f5 c1 30 00 	cmpgu r6,r14,r1                                
 8009bb0:	f5 ed 28 00 	cmpgu r5,r15,r13                               
      (uintptr_t) start_block : heap->area_begin;                     
    uintptr_t const sub_area_end = start_block->prev_size;            
    Heap_Block *const end_block =                                     
      _Heap_Block_of_alloc_area( sub_area_end, page_size );           
                                                                      
    if (                                                              
 8009bb4:	a0 c5 28 00 	and r5,r6,r5                                   
 8009bb8:	5c a0 00 75 	bne r5,r0,8009d8c <_Heap_Extend+0x2cc>         
      sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
    ) {                                                               
      return false;                                                   
    }                                                                 
                                                                      
    if ( extend_area_end == sub_area_begin ) {                        
 8009bbc:	5c 2e ff ed 	bne r1,r14,8009b70 <_Heap_Extend+0xb0>         
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 8009bc0:	b9 e0 08 00 	mv r1,r15                                      
 8009bc4:	ba 40 10 00 	mv r2,r18                                      
 8009bc8:	35 f3 ff f8 	addi r19,r15,-8                                
 8009bcc:	f8 00 1e a9 	calli 8011670 <__umodsi3>                      
 8009bd0:	b9 80 a0 00 	mv r20,r12                                     
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
 8009bd4:	ca 61 08 00 	sub r1,r19,r1                                  
      merge_below_block = start_block;                                
    } else if ( extend_area_end < sub_area_end ) {                    
      link_below_block = start_block;                                 
    }                                                                 
                                                                      
    if ( sub_area_end == extend_area_begin ) {                        
 8009bd8:	5d af ff ed 	bne r13,r15,8009b8c <_Heap_Extend+0xcc>        <== ALWAYS TAKEN
      start_block->prev_size = extend_area_end;                       
 8009bdc:	59 8e 00 00 	sw (r12+0),r14                                 
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 8009be0:	28 2c 00 04 	lw r12,(r1+4)                                  
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area(           
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
 8009be4:	b8 20 88 00 	mv r17,r1                                      
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 8009be8:	a2 ac 60 00 	and r12,r21,r12                                
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 8009bec:	b4 2c 60 00 	add r12,r1,r12                                 
    } else if ( sub_area_end < extend_area_begin ) {                  
      link_above_block = end_block;                                   
    }                                                                 
                                                                      
    start_block = _Heap_Block_at( end_block, _Heap_Block_size( end_block ) );
  } while ( start_block != first_block );                             
 8009bf0:	5e 0c ff ec 	bne r16,r12,8009ba0 <_Heap_Extend+0xe0>        <== NEVER TAKEN
                                                                      
  if ( extend_area_begin < heap->area_begin ) {                       
 8009bf4:	29 61 00 18 	lw r1,(r11+24)                                 
 8009bf8:	51 a1 00 61 	bgeu r13,r1,8009d7c <_Heap_Extend+0x2bc>       
    heap->area_begin = extend_area_begin;                             
 8009bfc:	59 6d 00 18 	sw (r11+24),r13                                
  } else if ( heap->area_end < extend_area_end ) {                    
    heap->area_end = extend_area_end;                                 
  }                                                                   
                                                                      
  extend_first_block_size =                                           
    (uintptr_t) extend_last_block - (uintptr_t) extend_first_block;   
 8009c00:	2b 81 00 44 	lw r1,(sp+68)                                  
 8009c04:	2b 82 00 48 	lw r2,(sp+72)                                  
                                                                      
  extend_last_block->prev_size = extend_first_block_size;             
  extend_last_block->size_and_flag = 0;                               
  _Heap_Protection_block_initialize( heap, extend_last_block );       
                                                                      
  if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) {
 8009c08:	29 65 00 20 	lw r5,(r11+32)                                 
    heap->area_begin = extend_area_begin;                             
  } else if ( heap->area_end < extend_area_end ) {                    
    heap->area_end = extend_area_end;                                 
  }                                                                   
                                                                      
  extend_first_block_size =                                           
 8009c0c:	c8 22 18 00 	sub r3,r1,r2                                   
    (uintptr_t) extend_last_block - (uintptr_t) extend_first_block;   
                                                                      
  extend_first_block->prev_size = extend_area_end;                    
  extend_first_block->size_and_flag =                                 
    extend_first_block_size | HEAP_PREV_BLOCK_USED;                   
 8009c10:	38 64 00 01 	ori r4,r3,0x1                                  
  }                                                                   
                                                                      
  extend_first_block_size =                                           
    (uintptr_t) extend_last_block - (uintptr_t) extend_first_block;   
                                                                      
  extend_first_block->prev_size = extend_area_end;                    
 8009c14:	58 4e 00 00 	sw (r2+0),r14                                  
  extend_first_block->size_and_flag =                                 
 8009c18:	58 44 00 04 	sw (r2+4),r4                                   
    extend_first_block_size | HEAP_PREV_BLOCK_USED;                   
  _Heap_Protection_block_initialize( heap, extend_first_block );      
                                                                      
  extend_last_block->prev_size = extend_first_block_size;             
 8009c1c:	58 23 00 00 	sw (r1+0),r3                                   
  extend_last_block->size_and_flag = 0;                               
 8009c20:	58 20 00 04 	sw (r1+4),r0                                   
  _Heap_Protection_block_initialize( heap, extend_last_block );       
                                                                      
  if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) {
 8009c24:	50 45 00 52 	bgeu r2,r5,8009d6c <_Heap_Extend+0x2ac>        
    heap->first_block = extend_first_block;                           
 8009c28:	59 62 00 20 	sw (r11+32),r2                                 
  } else if ( (uintptr_t) extend_last_block > (uintptr_t) heap->last_block ) {
    heap->last_block = extend_last_block;                             
  }                                                                   
                                                                      
  if ( merge_below_block != NULL ) {                                  
 8009c2c:	46 80 00 6a 	be r20,r0,8009dd4 <_Heap_Extend+0x314>         
  Heap_Control *heap,                                                 
  uintptr_t extend_area_begin,                                        
  Heap_Block *first_block                                             
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
 8009c30:	29 6c 00 10 	lw r12,(r11+16)                                
  uintptr_t const new_first_block_alloc_begin =                       
    _Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size );
 8009c34:	35 ad 00 08 	addi r13,r13,8                                 
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up(                        
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  uintptr_t remainder = value % alignment;                            
 8009c38:	b9 a0 08 00 	mv r1,r13                                      
 8009c3c:	b9 80 10 00 	mv r2,r12                                      
 8009c40:	f8 00 1e 8c 	calli 8011670 <__umodsi3>                      
                                                                      
  if ( remainder != 0 ) {                                             
 8009c44:	44 20 00 03 	be r1,r0,8009c50 <_Heap_Extend+0x190>          <== NEVER TAKEN
    return value - remainder + alignment;                             
 8009c48:	b5 ac 68 00 	add r13,r13,r12                                
 8009c4c:	c9 a1 68 00 	sub r13,r13,r1                                 
  uintptr_t const new_first_block_begin =                             
 8009c50:	35 a2 ff f8 	addi r2,r13,-8                                 
  uintptr_t const first_block_begin = (uintptr_t) first_block;        
  uintptr_t const new_first_block_size =                              
    first_block_begin - new_first_block_begin;                        
  Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin;
                                                                      
  new_first_block->prev_size = first_block->prev_size;                
 8009c54:	2a 83 00 00 	lw r3,(r20+0)                                  
  uintptr_t const new_first_block_alloc_begin =                       
    _Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size );
  uintptr_t const new_first_block_begin =                             
    new_first_block_alloc_begin - HEAP_BLOCK_HEADER_SIZE;             
  uintptr_t const first_block_begin = (uintptr_t) first_block;        
  uintptr_t const new_first_block_size =                              
 8009c58:	ca 82 08 00 	sub r1,r20,r2                                  
    first_block_begin - new_first_block_begin;                        
  Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin;
                                                                      
  new_first_block->prev_size = first_block->prev_size;                
  new_first_block->size_and_flag = new_first_block_size | HEAP_PREV_BLOCK_USED;
 8009c5c:	38 21 00 01 	ori r1,r1,0x1                                  
 8009c60:	58 41 00 04 	sw (r2+4),r1                                   
  uintptr_t const first_block_begin = (uintptr_t) first_block;        
  uintptr_t const new_first_block_size =                              
    first_block_begin - new_first_block_begin;                        
  Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin;
                                                                      
  new_first_block->prev_size = first_block->prev_size;                
 8009c64:	59 a3 ff f8 	sw (r13+-8),r3                                 
  new_first_block->size_and_flag = new_first_block_size | HEAP_PREV_BLOCK_USED;
                                                                      
  _Heap_Free_block( heap, new_first_block );                          
 8009c68:	b9 60 08 00 	mv r1,r11                                      
 8009c6c:	fb ff ff 88 	calli 8009a8c <_Heap_Free_block>               
      link_below_block,                                               
      extend_last_block                                               
    );                                                                
  }                                                                   
                                                                      
  if ( merge_above_block != NULL ) {                                  
 8009c70:	46 20 00 49 	be r17,r0,8009d94 <_Heap_Extend+0x2d4>         
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 8009c74:	29 62 00 10 	lw r2,(r11+16)                                 
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const last_block_begin = (uintptr_t) last_block;          
  uintptr_t const last_block_new_size = _Heap_Align_down(             
    extend_area_end - last_block_begin - HEAP_BLOCK_HEADER_SIZE,      
 8009c78:	35 ce ff f8 	addi r14,r14,-8                                
  uintptr_t extend_area_end                                           
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const last_block_begin = (uintptr_t) last_block;          
  uintptr_t const last_block_new_size = _Heap_Align_down(             
 8009c7c:	c9 d1 70 00 	sub r14,r14,r17                                
 8009c80:	b9 c0 08 00 	mv r1,r14                                      
 8009c84:	f8 00 1e 7b 	calli 8011670 <__umodsi3>                      
  );                                                                  
  Heap_Block *const new_last_block =                                  
    _Heap_Block_at( last_block, last_block_new_size );                
                                                                      
  new_last_block->size_and_flag =                                     
    (last_block->size_and_flag - last_block_new_size)                 
 8009c88:	2a 22 00 04 	lw r2,(r17+4)                                  
 8009c8c:	c9 c1 70 00 	sub r14,r14,r1                                 
    page_size                                                         
  );                                                                  
  Heap_Block *const new_last_block =                                  
    _Heap_Block_at( last_block, last_block_new_size );                
                                                                      
  new_last_block->size_and_flag =                                     
 8009c90:	b5 d1 08 00 	add r1,r14,r17                                 
    (last_block->size_and_flag - last_block_new_size)                 
 8009c94:	c8 4e 10 00 	sub r2,r2,r14                                  
      | HEAP_PREV_BLOCK_USED;                                         
 8009c98:	38 42 00 01 	ori r2,r2,0x1                                  
    page_size                                                         
  );                                                                  
  Heap_Block *const new_last_block =                                  
    _Heap_Block_at( last_block, last_block_new_size );                
                                                                      
  new_last_block->size_and_flag =                                     
 8009c9c:	58 22 00 04 	sw (r1+4),r2                                   
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(                       
  Heap_Block *block,                                                  
  uintptr_t size                                                      
)                                                                     
{                                                                     
  uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;       
 8009ca0:	2a 23 00 04 	lw r3,(r17+4)                                  
    (last_block->size_and_flag - last_block_new_size)                 
      | HEAP_PREV_BLOCK_USED;                                         
                                                                      
  _Heap_Block_set_size( last_block, last_block_new_size );            
                                                                      
  _Heap_Free_block( heap, last_block );                               
 8009ca4:	b9 60 08 00 	mv r1,r11                                      
 8009ca8:	ba 20 10 00 	mv r2,r17                                      
 8009cac:	20 63 00 01 	andi r3,r3,0x1                                 
                                                                      
  block->size_and_flag = size | flag;                                 
 8009cb0:	b9 c3 70 00 	or r14,r14,r3                                  
 8009cb4:	5a 2e 00 04 	sw (r17+4),r14                                 
 8009cb8:	fb ff ff 75 	calli 8009a8c <_Heap_Free_block>               
      extend_first_block,                                             
      extend_last_block                                               
    );                                                                
  }                                                                   
                                                                      
  if ( merge_below_block == NULL && merge_above_block == NULL ) {     
 8009cbc:	66 31 00 00 	cmpei r17,r17,0                                
 8009cc0:	66 94 00 00 	cmpei r20,r20,0                                
 8009cc4:	a2 34 88 00 	and r17,r17,r20                                
 8009cc8:	5e 20 00 3f 	bne r17,r0,8009dc4 <_Heap_Extend+0x304>        
                                                                      
  if ( extended_size_ptr != NULL )                                    
    *extended_size_ptr = extended_size;                               
                                                                      
  return true;                                                        
}                                                                     
 8009ccc:	29 61 00 24 	lw r1,(r11+36)                                 
 * This feature will be used to terminate the scattered heap area list.  See
 * also _Heap_Extend().                                               
 */                                                                   
RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap )
{                                                                     
  _Heap_Block_set_size(                                               
 8009cd0:	29 63 00 20 	lw r3,(r11+32)                                 
    _Heap_Free_block( heap, extend_first_block );                     
  }                                                                   
                                                                      
  _Heap_Set_last_block_size( heap );                                  
                                                                      
  extended_size = stats->free_size - free_size;                       
 8009cd4:	29 65 00 30 	lw r5,(r11+48)                                 
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(                       
  Heap_Block *block,                                                  
  uintptr_t size                                                      
)                                                                     
{                                                                     
  uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;       
 8009cd8:	28 22 00 04 	lw r2,(r1+4)                                   
                                                                      
  /* Statistics */                                                    
  stats->size += extended_size;                                       
 8009cdc:	29 64 00 2c 	lw r4,(r11+44)                                 
 * This feature will be used to terminate the scattered heap area list.  See
 * also _Heap_Extend().                                               
 */                                                                   
RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap )
{                                                                     
  _Heap_Block_set_size(                                               
 8009ce0:	c8 61 18 00 	sub r3,r3,r1                                   
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(                       
  Heap_Block *block,                                                  
  uintptr_t size                                                      
)                                                                     
{                                                                     
  uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;       
 8009ce4:	20 42 00 01 	andi r2,r2,0x1                                 
                                                                      
  block->size_and_flag = size | flag;                                 
 8009ce8:	b8 62 10 00 	or r2,r3,r2                                    
    _Heap_Free_block( heap, extend_first_block );                     
  }                                                                   
                                                                      
  _Heap_Set_last_block_size( heap );                                  
                                                                      
  extended_size = stats->free_size - free_size;                       
 8009cec:	c8 b8 c0 00 	sub r24,r5,r24                                 
 8009cf0:	58 22 00 04 	sw (r1+4),r2                                   
                                                                      
  /* Statistics */                                                    
  stats->size += extended_size;                                       
 8009cf4:	b4 98 08 00 	add r1,r4,r24                                  
 8009cf8:	59 61 00 2c 	sw (r11+44),r1                                 
                                                                      
  if ( extended_size_ptr != NULL )                                    
    *extended_size_ptr = extended_size;                               
                                                                      
  return true;                                                        
 8009cfc:	34 0c 00 01 	mvi r12,1                                      
  extended_size = stats->free_size - free_size;                       
                                                                      
  /* Statistics */                                                    
  stats->size += extended_size;                                       
                                                                      
  if ( extended_size_ptr != NULL )                                    
 8009d00:	46 e0 00 02 	be r23,r0,8009d08 <_Heap_Extend+0x248>         <== NEVER TAKEN
    *extended_size_ptr = extended_size;                               
 8009d04:	5a f8 00 00 	sw (r23+0),r24                                 
                                                                      
  return true;                                                        
}                                                                     
 8009d08:	b9 80 08 00 	mv r1,r12                                      
 8009d0c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009d10:	2b 8b 00 40 	lw r11,(sp+64)                                 
 8009d14:	2b 8c 00 3c 	lw r12,(sp+60)                                 
 8009d18:	2b 8d 00 38 	lw r13,(sp+56)                                 
 8009d1c:	2b 8e 00 34 	lw r14,(sp+52)                                 
 8009d20:	2b 8f 00 30 	lw r15,(sp+48)                                 
 8009d24:	2b 90 00 2c 	lw r16,(sp+44)                                 
 8009d28:	2b 91 00 28 	lw r17,(sp+40)                                 
 8009d2c:	2b 92 00 24 	lw r18,(sp+36)                                 
 8009d30:	2b 93 00 20 	lw r19,(sp+32)                                 
 8009d34:	2b 94 00 1c 	lw r20,(sp+28)                                 
 8009d38:	2b 95 00 18 	lw r21,(sp+24)                                 
 8009d3c:	2b 96 00 14 	lw r22,(sp+20)                                 
 8009d40:	2b 97 00 10 	lw r23,(sp+16)                                 
 8009d44:	2b 98 00 0c 	lw r24,(sp+12)                                 
 8009d48:	2b 99 00 08 	lw r25,(sp+8)                                  
 8009d4c:	37 9c 00 48 	addi sp,sp,72                                  
 8009d50:	c3 a0 00 00 	ret                                            
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area(           
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
 8009d54:	b8 20 b0 00 	mv r22,r1                                      
 8009d58:	e3 ff ff 8e 	bi 8009b90 <_Heap_Extend+0xd0>                 
      return false;                                                   
    }                                                                 
                                                                      
    if ( extend_area_end == sub_area_begin ) {                        
      merge_below_block = start_block;                                
    } else if ( extend_area_end < sub_area_end ) {                    
 8009d5c:	b9 80 c8 00 	mv r25,r12                                     
 8009d60:	e3 ff ff 85 	bi 8009b74 <_Heap_Extend+0xb4>                 
    return false;                                                     
  }                                                                   
                                                                      
  do {                                                                
    uintptr_t const sub_area_begin = (start_block != first_block) ?   
      (uintptr_t) start_block : heap->area_begin;                     
 8009d64:	29 61 00 18 	lw r1,(r11+24)                                 
 8009d68:	e3 ff ff 90 	bi 8009ba8 <_Heap_Extend+0xe8>                 
  extend_last_block->size_and_flag = 0;                               
  _Heap_Protection_block_initialize( heap, extend_last_block );       
                                                                      
  if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) {
    heap->first_block = extend_first_block;                           
  } else if ( (uintptr_t) extend_last_block > (uintptr_t) heap->last_block ) {
 8009d6c:	29 62 00 24 	lw r2,(r11+36)                                 
 8009d70:	50 41 ff af 	bgeu r2,r1,8009c2c <_Heap_Extend+0x16c>        
    heap->last_block = extend_last_block;                             
 8009d74:	59 61 00 24 	sw (r11+36),r1                                 
 8009d78:	e3 ff ff ad 	bi 8009c2c <_Heap_Extend+0x16c>                
    start_block = _Heap_Block_at( end_block, _Heap_Block_size( end_block ) );
  } while ( start_block != first_block );                             
                                                                      
  if ( extend_area_begin < heap->area_begin ) {                       
    heap->area_begin = extend_area_begin;                             
  } else if ( heap->area_end < extend_area_end ) {                    
 8009d7c:	29 61 00 1c 	lw r1,(r11+28)                                 
 8009d80:	50 2e ff a0 	bgeu r1,r14,8009c00 <_Heap_Extend+0x140>       
    heap->area_end = extend_area_end;                                 
 8009d84:	59 6e 00 1c 	sw (r11+28),r14                                
 8009d88:	e3 ff ff 9e 	bi 8009c00 <_Heap_Extend+0x140>                
      _Heap_Block_of_alloc_area( sub_area_end, page_size );           
                                                                      
    if (                                                              
      sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
    ) {                                                               
      return false;                                                   
 8009d8c:	34 0c 00 00 	mvi r12,0                                      
 8009d90:	e3 ff ff de 	bi 8009d08 <_Heap_Extend+0x248>                
    );                                                                
  }                                                                   
                                                                      
  if ( merge_above_block != NULL ) {                                  
    _Heap_Merge_above( heap, merge_above_block, extend_area_end );    
  } else if ( link_above_block != NULL ) {                            
 8009d94:	46 d1 ff ca 	be r22,r17,8009cbc <_Heap_Extend+0x1fc>        
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(                       
  Heap_Block *block,                                                  
  uintptr_t size                                                      
)                                                                     
{                                                                     
  uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;       
 8009d98:	2a c3 00 04 	lw r3,(r22+4)                                  
)                                                                     
{                                                                     
  uintptr_t const link_begin = (uintptr_t) link;                      
  uintptr_t const first_block_begin = (uintptr_t) first_block;        
                                                                      
  _Heap_Block_set_size( link, first_block_begin - link_begin );       
 8009d9c:	2b 82 00 48 	lw r2,(sp+72)                                  
  }                                                                   
                                                                      
  if ( merge_above_block != NULL ) {                                  
    _Heap_Merge_above( heap, merge_above_block, extend_area_end );    
  } else if ( link_above_block != NULL ) {                            
    _Heap_Link_above(                                                 
 8009da0:	2b 81 00 44 	lw r1,(sp+68)                                  
 8009da4:	20 63 00 01 	andi r3,r3,0x1                                 
)                                                                     
{                                                                     
  uintptr_t const link_begin = (uintptr_t) link;                      
  uintptr_t const first_block_begin = (uintptr_t) first_block;        
                                                                      
  _Heap_Block_set_size( link, first_block_begin - link_begin );       
 8009da8:	c8 56 10 00 	sub r2,r2,r22                                  
                                                                      
  block->size_and_flag = size | flag;                                 
 8009dac:	b8 43 10 00 	or r2,r2,r3                                    
 8009db0:	5a c2 00 04 	sw (r22+4),r2                                  
                                                                      
  last_block->size_and_flag |= HEAP_PREV_BLOCK_USED;                  
 8009db4:	28 22 00 04 	lw r2,(r1+4)                                   
 8009db8:	38 42 00 01 	ori r2,r2,0x1                                  
 8009dbc:	58 22 00 04 	sw (r1+4),r2                                   
 8009dc0:	e3 ff ff bf 	bi 8009cbc <_Heap_Extend+0x1fc>                
      extend_last_block                                               
    );                                                                
  }                                                                   
                                                                      
  if ( merge_below_block == NULL && merge_above_block == NULL ) {     
    _Heap_Free_block( heap, extend_first_block );                     
 8009dc4:	2b 82 00 48 	lw r2,(sp+72)                                  
 8009dc8:	b9 60 08 00 	mv r1,r11                                      
 8009dcc:	fb ff ff 30 	calli 8009a8c <_Heap_Free_block>               
 8009dd0:	e3 ff ff bf 	bi 8009ccc <_Heap_Extend+0x20c>                
    heap->last_block = extend_last_block;                             
  }                                                                   
                                                                      
  if ( merge_below_block != NULL ) {                                  
    _Heap_Merge_below( heap, extend_area_begin, merge_below_block );  
  } else if ( link_below_block != NULL ) {                            
 8009dd4:	47 34 ff a7 	be r25,r20,8009c70 <_Heap_Extend+0x1b0>        
{                                                                     
  uintptr_t const last_block_begin = (uintptr_t) last_block;          
  uintptr_t const link_begin = (uintptr_t) link;                      
                                                                      
  last_block->size_and_flag =                                         
    (link_begin - last_block_begin) | HEAP_PREV_BLOCK_USED;           
 8009dd8:	cb 21 c8 00 	sub r25,r25,r1                                 
 8009ddc:	3b 39 00 01 	ori r25,r25,0x1                                
)                                                                     
{                                                                     
  uintptr_t const last_block_begin = (uintptr_t) last_block;          
  uintptr_t const link_begin = (uintptr_t) link;                      
                                                                      
  last_block->size_and_flag =                                         
 8009de0:	58 39 00 04 	sw (r1+4),r25                                  
 8009de4:	e3 ff ff a3 	bi 8009c70 <_Heap_Extend+0x1b0>                
                                                                      

08009860 <_Heap_Free>: return do_free; } #endif bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) {
 8009860:	37 9c ff f4 	addi sp,sp,-12                                 
 8009864:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8009868:	5b 8c 00 08 	sw (sp+8),r12                                  
 800986c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8009870:	b8 20 58 00 	mv r11,r1                                      
 8009874:	b8 40 18 00 	mv r3,r2                                       
   * If NULL return true so a free on NULL is considered a valid release. This
   * is a special case that could be handled by the in heap check how-ever that
   * would result in false being returned which is wrong.             
   */                                                                 
  if ( alloc_begin_ptr == NULL ) {                                    
    return true;                                                      
 8009878:	34 01 00 01 	mvi r1,1                                       
  /*                                                                  
   * If NULL return true so a free on NULL is considered a valid release. This
   * is a special case that could be handled by the in heap check how-ever that
   * would result in false being returned which is wrong.             
   */                                                                 
  if ( alloc_begin_ptr == NULL ) {                                    
 800987c:	44 40 00 4b 	be r2,r0,80099a8 <_Heap_Free+0x148>            
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 8009880:	29 62 00 10 	lw r2,(r11+16)                                 
 8009884:	b8 60 08 00 	mv r1,r3                                       
 8009888:	34 6c ff f8 	addi r12,r3,-8                                 
 800988c:	f8 00 1e 57 	calli 80111e8 <__umodsi3>                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(                     
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
 8009890:	29 64 00 20 	lw r4,(r11+32)                                 
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
 8009894:	c9 81 10 00 	sub r2,r12,r1                                  
                                                                      
  alloc_begin = (uintptr_t) alloc_begin_ptr;                          
  block = _Heap_Block_of_alloc_area( alloc_begin, heap->page_size );  
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, block ) ) {                     
    return false;                                                     
 8009898:	34 01 00 00 	mvi r1,0                                       
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
 800989c:	54 82 00 43 	bgu r4,r2,80099a8 <_Heap_Free+0x148>           
 80098a0:	29 65 00 24 	lw r5,(r11+36)                                 
 80098a4:	54 45 00 41 	bgu r2,r5,80099a8 <_Heap_Free+0x148>           <== NEVER TAKEN
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 80098a8:	28 48 00 04 	lw r8,(r2+4)                                   
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 80098ac:	34 07 ff fe 	mvi r7,-2                                      
 80098b0:	a1 07 30 00 	and r6,r8,r7                                   
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 80098b4:	b4 46 18 00 	add r3,r2,r6                                   
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
 80098b8:	54 83 00 3c 	bgu r4,r3,80099a8 <_Heap_Free+0x148>           <== NEVER TAKEN
 80098bc:	54 65 00 3b 	bgu r3,r5,80099a8 <_Heap_Free+0x148>           <== NEVER TAKEN
 80098c0:	28 69 00 04 	lw r9,(r3+4)                                   
  block->size_and_flag = size | flag;                                 
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & HEAP_PREV_BLOCK_USED;                 
 80098c4:	21 2a 00 01 	andi r10,r9,0x1                                
    return false;                                                     
  }                                                                   
                                                                      
  _Heap_Protection_block_check( heap, next_block );                   
                                                                      
  if ( !_Heap_Is_prev_used( next_block ) ) {                          
 80098c8:	45 40 00 38 	be r10,r0,80099a8 <_Heap_Free+0x148>           <== NEVER TAKEN
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 80098cc:	a1 27 48 00 	and r9,r9,r7                                   
    return true;                                                      
  }                                                                   
                                                                      
  next_block_size = _Heap_Block_size( next_block );                   
  next_is_free = next_block != heap->last_block                       
    && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
 80098d0:	34 07 00 00 	mvi r7,0                                       
 80098d4:	44 a3 00 05 	be r5,r3,80098e8 <_Heap_Free+0x88>             
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 80098d8:	b4 69 08 00 	add r1,r3,r9                                   
  block->size_and_flag = size | flag;                                 
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & HEAP_PREV_BLOCK_USED;                 
 80098dc:	28 27 00 04 	lw r7,(r1+4)                                   
 80098e0:	20 e7 00 01 	andi r7,r7,0x1                                 
                                                                      
    return do_free;                                                   
  }                                                                   
#endif                                                                
                                                                      
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )          
 80098e4:	18 e7 00 01 	xori r7,r7,0x1                                 
 80098e8:	21 08 00 01 	andi r8,r8,0x1                                 
                                                                      
  next_block_size = _Heap_Block_size( next_block );                   
  next_is_free = next_block != heap->last_block                       
    && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
                                                                      
  if ( !_Heap_Is_prev_used( block ) ) {                               
 80098ec:	5d 00 00 19 	bne r8,r0,8009950 <_Heap_Free+0xf0>            
    uintptr_t const prev_size = block->prev_size;                     
 80098f0:	28 4a 00 00 	lw r10,(r2+0)                                  
    Heap_Block * const prev_block = _Heap_Block_at( block, -prev_size );
                                                                      
    if ( !_Heap_Is_block_in_heap( heap, prev_block ) ) {              
      _HAssert( false );                                              
      return( false );                                                
 80098f4:	34 01 00 00 	mvi r1,0                                       
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 80098f8:	c8 4a 10 00 	sub r2,r2,r10                                  
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
 80098fc:	54 82 00 2b 	bgu r4,r2,80099a8 <_Heap_Free+0x148>           <== NEVER TAKEN
 8009900:	b9 00 08 00 	mv r1,r8                                       
 8009904:	54 45 00 29 	bgu r2,r5,80099a8 <_Heap_Free+0x148>           <== NEVER TAKEN
  block->size_and_flag = size | flag;                                 
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & HEAP_PREV_BLOCK_USED;                 
 8009908:	28 44 00 04 	lw r4,(r2+4)                                   
 800990c:	20 84 00 01 	andi r4,r4,0x1                                 
    }                                                                 
                                                                      
    /* As we always coalesce free blocks, the block that preceedes prev_block
       must have been used. */                                        
    if ( !_Heap_Is_prev_used ( prev_block) ) {                        
 8009910:	44 80 00 26 	be r4,r0,80099a8 <_Heap_Free+0x148>            <== NEVER TAKEN
      _HAssert( false );                                              
      return( false );                                                
    }                                                                 
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
 8009914:	44 e0 00 3d 	be r7,r0,8009a08 <_Heap_Free+0x1a8>            
      uintptr_t const size = block_size + prev_size + next_block_size;
      _Heap_Free_list_remove( next_block );                           
      stats->free_blocks -= 1;                                        
 8009918:	29 64 00 38 	lw r4,(r11+56)                                 
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 800991c:	28 61 00 08 	lw r1,(r3+8)                                   
 8009920:	28 63 00 0c 	lw r3,(r3+12)                                  
      _HAssert( false );                                              
      return( false );                                                
    }                                                                 
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
      uintptr_t const size = block_size + prev_size + next_block_size;
 8009924:	b4 c9 48 00 	add r9,r6,r9                                   
 8009928:	b5 2a 50 00 	add r10,r9,r10                                 
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) 
{                                                                     
  Heap_Block *next = block->next;                                     
  Heap_Block *prev = block->prev;                                     
                                                                      
  prev->next = next;                                                  
 800992c:	58 61 00 08 	sw (r3+8),r1                                   
  next->prev = prev;                                                  
 8009930:	58 23 00 0c 	sw (r1+12),r3                                  
      _Heap_Free_list_remove( next_block );                           
      stats->free_blocks -= 1;                                        
 8009934:	34 81 ff ff 	addi r1,r4,-1                                  
 8009938:	59 61 00 38 	sw (r11+56),r1                                 
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
 800993c:	39 43 00 01 	ori r3,r10,0x1                                 
      next_block = _Heap_Block_at( prev_block, size );                
      _HAssert(!_Heap_Is_prev_used( next_block));                     
      next_block->prev_size = size;                                   
 8009940:	b4 4a 08 00 	add r1,r2,r10                                  
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
      uintptr_t const size = block_size + prev_size + next_block_size;
      _Heap_Free_list_remove( next_block );                           
      stats->free_blocks -= 1;                                        
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
 8009944:	58 43 00 04 	sw (r2+4),r3                                   
      next_block = _Heap_Block_at( prev_block, size );                
      _HAssert(!_Heap_Is_prev_used( next_block));                     
      next_block->prev_size = size;                                   
 8009948:	58 2a 00 00 	sw (r1+0),r10                                  
 800994c:	e0 00 00 0d 	bi 8009980 <_Heap_Free+0x120>                  
      uintptr_t const size = block_size + prev_size;                  
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
      next_block->prev_size = size;                                   
    }                                                                 
  } else if ( next_is_free ) {    /* coalesce next */                 
 8009950:	44 e0 00 1b 	be r7,r0,80099bc <_Heap_Free+0x15c>            
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 8009954:	28 64 00 08 	lw r4,(r3+8)                                   
 8009958:	28 61 00 0c 	lw r1,(r3+12)                                  
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
      next_block->prev_size = size;                                   
    }                                                                 
  } else if ( next_is_free ) {    /* coalesce next */                 
    uintptr_t const size = block_size + next_block_size;              
 800995c:	b5 26 48 00 	add r9,r9,r6                                   
)                                                                     
{                                                                     
  Heap_Block *next = old_block->next;                                 
  Heap_Block *prev = old_block->prev;                                 
                                                                      
  new_block->next = next;                                             
 8009960:	58 44 00 08 	sw (r2+8),r4                                   
  new_block->prev = prev;                                             
 8009964:	58 41 00 0c 	sw (r2+12),r1                                  
    _Heap_Free_list_replace( next_block, block );                     
    block->size_and_flag = size | HEAP_PREV_BLOCK_USED;               
 8009968:	39 25 00 01 	ori r5,r9,0x1                                  
    next_block  = _Heap_Block_at( block, size );                      
    next_block->prev_size = size;                                     
 800996c:	b4 49 18 00 	add r3,r2,r9                                   
                                                                      
  next->prev = new_block;                                             
 8009970:	58 82 00 0c 	sw (r4+12),r2                                  
  prev->next = new_block;                                             
 8009974:	58 22 00 08 	sw (r1+8),r2                                   
      next_block->prev_size = size;                                   
    }                                                                 
  } else if ( next_is_free ) {    /* coalesce next */                 
    uintptr_t const size = block_size + next_block_size;              
    _Heap_Free_list_replace( next_block, block );                     
    block->size_and_flag = size | HEAP_PREV_BLOCK_USED;               
 8009978:	58 45 00 04 	sw (r2+4),r5                                   
    next_block  = _Heap_Block_at( block, size );                      
    next_block->prev_size = size;                                     
 800997c:	58 69 00 00 	sw (r3+0),r9                                   
      stats->max_free_blocks = stats->free_blocks;                    
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
 8009980:	29 62 00 40 	lw r2,(r11+64)                                 
  ++stats->frees;                                                     
 8009984:	29 61 00 50 	lw r1,(r11+80)                                 
  stats->free_size += block_size;                                     
 8009988:	29 63 00 30 	lw r3,(r11+48)                                 
      stats->max_free_blocks = stats->free_blocks;                    
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
 800998c:	34 42 ff ff 	addi r2,r2,-1                                  
  ++stats->frees;                                                     
 8009990:	34 21 00 01 	addi r1,r1,1                                   
  stats->free_size += block_size;                                     
 8009994:	b4 66 30 00 	add r6,r3,r6                                   
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
 8009998:	59 61 00 50 	sw (r11+80),r1                                 
      stats->max_free_blocks = stats->free_blocks;                    
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
 800999c:	59 62 00 40 	sw (r11+64),r2                                 
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
 80099a0:	59 66 00 30 	sw (r11+48),r6                                 
                                                                      
  return( true );                                                     
 80099a4:	34 01 00 01 	mvi r1,1                                       
}                                                                     
 80099a8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80099ac:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 80099b0:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80099b4:	37 9c 00 0c 	addi sp,sp,12                                  
 80099b8:	c3 a0 00 00 	ret                                            
    next_block->prev_size = size;                                     
  } else {                        /* no coalesce */                   
    /* Add 'block' to the head of the free blocks list as it tends to 
       produce less fragmentation than adding to the tail. */         
    _Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block );
    block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;         
 80099bc:	38 c1 00 01 	ori r1,r6,0x1                                  
 80099c0:	58 41 00 04 	sw (r2+4),r1                                   
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
 80099c4:	28 67 00 04 	lw r7,(r3+4)                                   
    next_block->prev_size = block_size;                               
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
 80099c8:	29 61 00 38 	lw r1,(r11+56)                                 
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after(               
  Heap_Block *block_before,                                           
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = block_before->next;                              
 80099cc:	29 64 00 08 	lw r4,(r11+8)                                  
  } else {                        /* no coalesce */                   
    /* Add 'block' to the head of the free blocks list as it tends to 
       produce less fragmentation than adding to the tail. */         
    _Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block );
    block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;         
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
 80099d0:	34 05 ff fe 	mvi r5,-2                                      
                                                                      
  new_block->next = next;                                             
  new_block->prev = block_before;                                     
 80099d4:	58 4b 00 0c 	sw (r2+12),r11                                 
 80099d8:	a0 e5 28 00 	and r5,r7,r5                                   
    next_block->prev_size = block_size;                               
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
    if ( stats->max_free_blocks < stats->free_blocks ) {              
 80099dc:	29 67 00 3c 	lw r7,(r11+60)                                 
    block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;         
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
    next_block->prev_size = block_size;                               
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
 80099e0:	34 21 00 01 	addi r1,r1,1                                   
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = block_before->next;                              
                                                                      
  new_block->next = next;                                             
 80099e4:	58 44 00 08 	sw (r2+8),r4                                   
  new_block->prev = block_before;                                     
  block_before->next = new_block;                                     
  next->prev = new_block;                                             
 80099e8:	58 82 00 0c 	sw (r4+12),r2                                  
  } else {                        /* no coalesce */                   
    /* Add 'block' to the head of the free blocks list as it tends to 
       produce less fragmentation than adding to the tail. */         
    _Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block );
    block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;         
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
 80099ec:	58 65 00 04 	sw (r3+4),r5                                   
    next_block->prev_size = block_size;                               
 80099f0:	58 66 00 00 	sw (r3+0),r6                                   
{                                                                     
  Heap_Block *next = block_before->next;                              
                                                                      
  new_block->next = next;                                             
  new_block->prev = block_before;                                     
  block_before->next = new_block;                                     
 80099f4:	59 62 00 08 	sw (r11+8),r2                                  
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
 80099f8:	59 61 00 38 	sw (r11+56),r1                                 
    if ( stats->max_free_blocks < stats->free_blocks ) {              
 80099fc:	50 e1 ff e1 	bgeu r7,r1,8009980 <_Heap_Free+0x120>          
      stats->max_free_blocks = stats->free_blocks;                    
 8009a00:	59 61 00 3c 	sw (r11+60),r1                                 
 8009a04:	e3 ff ff df 	bi 8009980 <_Heap_Free+0x120>                  
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
      next_block = _Heap_Block_at( prev_block, size );                
      _HAssert(!_Heap_Is_prev_used( next_block));                     
      next_block->prev_size = size;                                   
    } else {                      /* coalesce prev */                 
      uintptr_t const size = block_size + prev_size;                  
 8009a08:	b4 ca 50 00 	add r10,r6,r10                                 
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
 8009a0c:	39 41 00 01 	ori r1,r10,0x1                                 
 8009a10:	58 41 00 04 	sw (r2+4),r1                                   
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
 8009a14:	28 62 00 04 	lw r2,(r3+4)                                   
 8009a18:	34 01 ff fe 	mvi r1,-2                                      
      next_block->prev_size = size;                                   
 8009a1c:	58 6a 00 00 	sw (r3+0),r10                                  
      _HAssert(!_Heap_Is_prev_used( next_block));                     
      next_block->prev_size = size;                                   
    } else {                      /* coalesce prev */                 
      uintptr_t const size = block_size + prev_size;                  
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
 8009a20:	a0 41 08 00 	and r1,r2,r1                                   
 8009a24:	58 61 00 04 	sw (r3+4),r1                                   
 8009a28:	e3 ff ff d6 	bi 8009980 <_Heap_Free+0x120>                  
                                                                      

0800a444 <_Heap_Get_information>: void _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { Heap_Block *the_block = the_heap->first_block;
 800a444:	28 24 00 20 	lw r4,(r1+32)                                  
  Heap_Block *const end = the_heap->last_block;                       
 800a448:	28 28 00 24 	lw r8,(r1+36)                                  
                                                                      
  memset(the_info, 0, sizeof(*the_info));                             
 800a44c:	58 40 00 00 	sw (r2+0),r0                                   
 800a450:	58 40 00 04 	sw (r2+4),r0                                   
 800a454:	58 40 00 08 	sw (r2+8),r0                                   
 800a458:	58 40 00 0c 	sw (r2+12),r0                                  
 800a45c:	58 40 00 10 	sw (r2+16),r0                                  
 800a460:	58 40 00 14 	sw (r2+20),r0                                  
                                                                      
  while ( the_block != end ) {                                        
 800a464:	44 88 00 14 	be r4,r8,800a4b4 <_Heap_Get_information+0x70>  <== NEVER TAKEN
 800a468:	28 85 00 04 	lw r5,(r4+4)                                   
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 800a46c:	34 09 ff fe 	mvi r9,-2                                      
 800a470:	a0 a9 18 00 	and r3,r5,r9                                   
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 800a474:	b4 83 20 00 	add r4,r4,r3                                   
    if ( info->largest < the_size )                                   
      info->largest = the_size;                                       
                                                                      
    the_block = next_block;                                           
  }                                                                   
}                                                                     
 800a478:	28 85 00 04 	lw r5,(r4+4)                                   
    Heap_Information  *info;                                          
                                                                      
    if ( _Heap_Is_prev_used(next_block) )                             
      info = &the_info->Used;                                         
    else                                                              
      info = &the_info->Free;                                         
 800a47c:	b8 40 08 00 	mv r1,r2                                       
  block->size_and_flag = size | flag;                                 
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & HEAP_PREV_BLOCK_USED;                 
 800a480:	20 a6 00 01 	andi r6,r5,0x1                                 
  while ( the_block != end ) {                                        
    uintptr_t const     the_size = _Heap_Block_size(the_block);       
    Heap_Block *const  next_block = _Heap_Block_at(the_block, the_size);
    Heap_Information  *info;                                          
                                                                      
    if ( _Heap_Is_prev_used(next_block) )                             
 800a484:	44 c0 00 02 	be r6,r0,800a48c <_Heap_Get_information+0x48>  
      info = &the_info->Used;                                         
 800a488:	34 41 00 0c 	addi r1,r2,12                                  
    else                                                              
      info = &the_info->Free;                                         
                                                                      
    info->number++;                                                   
 800a48c:	28 27 00 00 	lw r7,(r1+0)                                   
    info->total += the_size;                                          
 800a490:	28 26 00 08 	lw r6,(r1+8)                                   
    if ( info->largest < the_size )                                   
 800a494:	28 2a 00 04 	lw r10,(r1+4)                                  
    if ( _Heap_Is_prev_used(next_block) )                             
      info = &the_info->Used;                                         
    else                                                              
      info = &the_info->Free;                                         
                                                                      
    info->number++;                                                   
 800a498:	34 e7 00 01 	addi r7,r7,1                                   
    info->total += the_size;                                          
 800a49c:	b4 c3 30 00 	add r6,r6,r3                                   
    if ( _Heap_Is_prev_used(next_block) )                             
      info = &the_info->Used;                                         
    else                                                              
      info = &the_info->Free;                                         
                                                                      
    info->number++;                                                   
 800a4a0:	58 27 00 00 	sw (r1+0),r7                                   
    info->total += the_size;                                          
 800a4a4:	58 26 00 08 	sw (r1+8),r6                                   
    if ( info->largest < the_size )                                   
 800a4a8:	51 43 00 02 	bgeu r10,r3,800a4b0 <_Heap_Get_information+0x6c>
      info->largest = the_size;                                       
 800a4ac:	58 23 00 04 	sw (r1+4),r3                                   
  Heap_Block *the_block = the_heap->first_block;                      
  Heap_Block *const end = the_heap->last_block;                       
                                                                      
  memset(the_info, 0, sizeof(*the_info));                             
                                                                      
  while ( the_block != end ) {                                        
 800a4b0:	5d 04 ff f0 	bne r8,r4,800a470 <_Heap_Get_information+0x2c> 
 800a4b4:	c3 a0 00 00 	ret                                            
                                                                      

08011c14 <_Heap_Size_of_alloc_area>: bool _Heap_Size_of_alloc_area( Heap_Control *heap, void *alloc_begin_ptr, uintptr_t *alloc_size ) {
 8011c14:	37 9c ff f0 	addi sp,sp,-16                                 
 8011c18:	5b 8b 00 10 	sw (sp+16),r11                                 
 8011c1c:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8011c20:	5b 8d 00 08 	sw (sp+8),r13                                  
 8011c24:	5b 9d 00 04 	sw (sp+4),ra                                   
 8011c28:	b8 40 60 00 	mv r12,r2                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 8011c2c:	28 22 00 10 	lw r2,(r1+16)                                  
 8011c30:	b8 20 58 00 	mv r11,r1                                      
 8011c34:	b9 80 08 00 	mv r1,r12                                      
 8011c38:	b8 60 68 00 	mv r13,r3                                      
 8011c3c:	fb ff fd 6b 	calli 80111e8 <__umodsi3>                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(                     
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
 8011c40:	29 62 00 20 	lw r2,(r11+32)                                 
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 8011c44:	35 84 ff f8 	addi r4,r12,-8                                 
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
 8011c48:	c8 81 20 00 	sub r4,r4,r1                                   
  Heap_Block *block = _Heap_Block_of_alloc_area( alloc_begin, page_size );
  Heap_Block *next_block = NULL;                                      
  uintptr_t block_size = 0;                                           
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, block ) ) {                     
    return false;                                                     
 8011c4c:	34 01 00 00 	mvi r1,0                                       
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
 8011c50:	54 44 00 10 	bgu r2,r4,8011c90 <_Heap_Size_of_alloc_area+0x7c>
 8011c54:	29 65 00 24 	lw r5,(r11+36)                                 
 8011c58:	54 85 00 0e 	bgu r4,r5,8011c90 <_Heap_Size_of_alloc_area+0x7c><== NEVER TAKEN
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 8011c5c:	28 86 00 04 	lw r6,(r4+4)                                   
 8011c60:	34 03 ff fe 	mvi r3,-2                                      
 8011c64:	a0 66 18 00 	and r3,r3,r6                                   
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 8011c68:	b4 83 20 00 	add r4,r4,r3                                   
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
 8011c6c:	54 44 00 09 	bgu r2,r4,8011c90 <_Heap_Size_of_alloc_area+0x7c><== NEVER TAKEN
 8011c70:	54 85 00 08 	bgu r4,r5,8011c90 <_Heap_Size_of_alloc_area+0x7c><== NEVER TAKEN
  block->size_and_flag = size | flag;                                 
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & HEAP_PREV_BLOCK_USED;                 
 8011c74:	28 82 00 04 	lw r2,(r4+4)                                   
 8011c78:	20 42 00 01 	andi r2,r2,0x1                                 
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if (                                                                
    !_Heap_Is_block_in_heap( heap, next_block )                       
      || !_Heap_Is_prev_used( next_block )                            
 8011c7c:	44 40 00 05 	be r2,r0,8011c90 <_Heap_Size_of_alloc_area+0x7c><== NEVER TAKEN
  ) {                                                                 
    return false;                                                     
  }                                                                   
                                                                      
  *alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin;
 8011c80:	c8 8c 20 00 	sub r4,r4,r12                                  
 8011c84:	34 84 00 04 	addi r4,r4,4                                   
 8011c88:	59 a4 00 00 	sw (r13+0),r4                                  
                                                                      
  return true;                                                        
 8011c8c:	34 01 00 01 	mvi r1,1                                       
}                                                                     
 8011c90:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8011c94:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8011c98:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8011c9c:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8011ca0:	37 9c 00 10 	addi sp,sp,16                                  
 8011ca4:	c3 a0 00 00 	ret                                            
                                                                      

08004e7c <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) {
 8004e7c:	37 9c ff 9c 	addi sp,sp,-100                                
 8004e80:	5b 8b 00 50 	sw (sp+80),r11                                 
 8004e84:	5b 8c 00 4c 	sw (sp+76),r12                                 
 8004e88:	5b 8d 00 48 	sw (sp+72),r13                                 
 8004e8c:	5b 8e 00 44 	sw (sp+68),r14                                 
 8004e90:	5b 8f 00 40 	sw (sp+64),r15                                 
 8004e94:	5b 90 00 3c 	sw (sp+60),r16                                 
 8004e98:	5b 91 00 38 	sw (sp+56),r17                                 
 8004e9c:	5b 92 00 34 	sw (sp+52),r18                                 
 8004ea0:	5b 93 00 30 	sw (sp+48),r19                                 
 8004ea4:	5b 94 00 2c 	sw (sp+44),r20                                 
 8004ea8:	5b 95 00 28 	sw (sp+40),r21                                 
 8004eac:	5b 96 00 24 	sw (sp+36),r22                                 
 8004eb0:	5b 97 00 20 	sw (sp+32),r23                                 
 8004eb4:	5b 98 00 1c 	sw (sp+28),r24                                 
 8004eb8:	5b 99 00 18 	sw (sp+24),r25                                 
 8004ebc:	5b 9b 00 14 	sw (sp+20),fp                                  
 8004ec0:	5b 9d 00 10 	sw (sp+16),ra                                  
  uintptr_t const min_block_size = heap->min_block_size;              
  Heap_Block *const first_block = heap->first_block;                  
  Heap_Block *const last_block = heap->last_block;                    
  Heap_Block *block = first_block;                                    
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
 8004ec4:	78 0f 08 00 	mvhi r15,0x800                                 
bool _Heap_Walk(                                                      
  Heap_Control *heap,                                                 
  int source,                                                         
  bool dump                                                           
)                                                                     
{                                                                     
 8004ec8:	20 63 00 ff 	andi r3,r3,0xff                                
 8004ecc:	b8 20 68 00 	mv r13,r1                                      
 8004ed0:	b8 40 98 00 	mv r19,r2                                      
  uintptr_t const page_size = heap->page_size;                        
 8004ed4:	28 35 00 10 	lw r21,(r1+16)                                 
  uintptr_t const min_block_size = heap->min_block_size;              
 8004ed8:	28 36 00 14 	lw r22,(r1+20)                                 
  Heap_Block *const first_block = heap->first_block;                  
 8004edc:	28 34 00 20 	lw r20,(r1+32)                                 
  Heap_Block *const last_block = heap->last_block;                    
 8004ee0:	28 37 00 24 	lw r23,(r1+36)                                 
  Heap_Block *block = first_block;                                    
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
 8004ee4:	39 ef 4d d4 	ori r15,r15,0x4dd4                             
 8004ee8:	44 60 00 03 	be r3,r0,8004ef4 <_Heap_Walk+0x78>             
 8004eec:	78 0f 08 00 	mvhi r15,0x800                                 
 8004ef0:	39 ef 4d f8 	ori r15,r15,0x4df8                             
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
 8004ef4:	78 03 08 01 	mvhi r3,0x801                                  
 8004ef8:	38 63 5a 28 	ori r3,r3,0x5a28                               
 8004efc:	28 69 00 00 	lw r9,(r3+0)                                   
 8004f00:	34 07 00 03 	mvi r7,3                                       
    return true;                                                      
 8004f04:	34 03 00 01 	mvi r3,1                                       
  Heap_Block *const last_block = heap->last_block;                    
  Heap_Block *block = first_block;                                    
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
 8004f08:	45 27 00 15 	be r9,r7,8004f5c <_Heap_Walk+0xe0>             
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 8004f0c:	b8 60 08 00 	mv r1,r3                                       
 8004f10:	2b 9d 00 10 	lw ra,(sp+16)                                  
 8004f14:	2b 8b 00 50 	lw r11,(sp+80)                                 
 8004f18:	2b 8c 00 4c 	lw r12,(sp+76)                                 
 8004f1c:	2b 8d 00 48 	lw r13,(sp+72)                                 
 8004f20:	2b 8e 00 44 	lw r14,(sp+68)                                 
 8004f24:	2b 8f 00 40 	lw r15,(sp+64)                                 
 8004f28:	2b 90 00 3c 	lw r16,(sp+60)                                 
 8004f2c:	2b 91 00 38 	lw r17,(sp+56)                                 
 8004f30:	2b 92 00 34 	lw r18,(sp+52)                                 
 8004f34:	2b 93 00 30 	lw r19,(sp+48)                                 
 8004f38:	2b 94 00 2c 	lw r20,(sp+44)                                 
 8004f3c:	2b 95 00 28 	lw r21,(sp+40)                                 
 8004f40:	2b 96 00 24 	lw r22,(sp+36)                                 
 8004f44:	2b 97 00 20 	lw r23,(sp+32)                                 
 8004f48:	2b 98 00 1c 	lw r24,(sp+28)                                 
 8004f4c:	2b 99 00 18 	lw r25,(sp+24)                                 
 8004f50:	2b 9b 00 14 	lw fp,(sp+20)                                  
 8004f54:	37 9c 00 64 	addi sp,sp,100                                 
 8004f58:	c3 a0 00 00 	ret                                            
  Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); 
  Heap_Block *const last_free_block = _Heap_Free_list_last( heap );   
  Heap_Block *const first_block = heap->first_block;                  
  Heap_Block *const last_block = heap->last_block;                    
                                                                      
  (*printer)(                                                         
 8004f5c:	29 a2 00 08 	lw r2,(r13+8)                                  
 8004f60:	29 a1 00 0c 	lw r1,(r13+12)                                 
 8004f64:	29 a6 00 18 	lw r6,(r13+24)                                 
 8004f68:	29 a7 00 1c 	lw r7,(r13+28)                                 
 8004f6c:	78 03 08 01 	mvhi r3,0x801                                  
 8004f70:	5b 82 00 08 	sw (sp+8),r2                                   
 8004f74:	5b 81 00 0c 	sw (sp+12),r1                                  
 8004f78:	5b 97 00 04 	sw (sp+4),r23                                  
 8004f7c:	ba 60 08 00 	mv r1,r19                                      
 8004f80:	34 02 00 00 	mvi r2,0                                       
 8004f84:	38 63 34 a0 	ori r3,r3,0x34a0                               
 8004f88:	ba a0 20 00 	mv r4,r21                                      
 8004f8c:	ba c0 28 00 	mv r5,r22                                      
 8004f90:	ba 80 40 00 	mv r8,r20                                      
 8004f94:	d9 e0 00 00 	call r15                                       
    heap->area_begin, heap->area_end,                                 
    first_block, last_block,                                          
    first_free_block, last_free_block                                 
  );                                                                  
                                                                      
  if ( page_size == 0 ) {                                             
 8004f98:	46 a0 00 26 	be r21,r0,8005030 <_Heap_Walk+0x1b4>           <== NEVER TAKEN
)                                                                     
{                                                                     
#if (CPU_ALIGNMENT == 0)                                              
    return true;                                                      
#else                                                                 
    return (((uintptr_t)address % CPU_ALIGNMENT) == 0);               
 8004f9c:	22 ab 00 07 	andi r11,r21,0x7                               
    (*printer)( source, true, "page size is zero\n" );                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Addresses_Is_aligned( (void *) page_size ) ) {               
 8004fa0:	5d 60 00 2b 	bne r11,r0,800504c <_Heap_Walk+0x1d0>          <== NEVER TAKEN
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
 8004fa4:	ba c0 08 00 	mv r1,r22                                      
 8004fa8:	ba a0 10 00 	mv r2,r21                                      
 8004fac:	fb ff ee 9d 	calli 8000a20 <__umodsi3>                      
 8004fb0:	b8 20 60 00 	mv r12,r1                                      
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {             
 8004fb4:	5c 2b 00 2e 	bne r1,r11,800506c <_Heap_Walk+0x1f0>          <== NEVER TAKEN
 8004fb8:	36 81 00 08 	addi r1,r20,8                                  
 8004fbc:	ba a0 10 00 	mv r2,r21                                      
 8004fc0:	fb ff ee 98 	calli 8000a20 <__umodsi3>                      
 8004fc4:	b8 20 18 00 	mv r3,r1                                       
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
 8004fc8:	5c 2c 00 31 	bne r1,r12,800508c <_Heap_Walk+0x210>          <== NEVER TAKEN
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 8004fcc:	2a 8c 00 04 	lw r12,(r20+4)                                 
  block->size_and_flag = size | flag;                                 
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & HEAP_PREV_BLOCK_USED;                 
 8004fd0:	21 81 00 01 	andi r1,r12,0x1                                
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( first_block ) ) {                         
 8004fd4:	44 23 00 fe 	be r1,r3,80053cc <_Heap_Walk+0x550>            <== NEVER TAKEN
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 8004fd8:	2a e2 00 04 	lw r2,(r23+4)                                  
 8004fdc:	34 01 ff fe 	mvi r1,-2                                      
 8004fe0:	a0 22 08 00 	and r1,r1,r2                                   
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 8004fe4:	b6 e1 08 00 	add r1,r23,r1                                  
  block->size_and_flag = size | flag;                                 
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & HEAP_PREV_BLOCK_USED;                 
 8004fe8:	28 22 00 04 	lw r2,(r1+4)                                   
 8004fec:	20 42 00 01 	andi r2,r2,0x1                                 
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( _Heap_Is_free( last_block ) ) {                                
 8004ff0:	44 43 00 09 	be r2,r3,8005014 <_Heap_Walk+0x198>            <== NEVER TAKEN
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
 8004ff4:	46 81 00 2e 	be r20,r1,80050ac <_Heap_Walk+0x230>           
    _Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block
  ) {                                                                 
    (*printer)(                                                       
 8004ff8:	78 03 08 01 	mvhi r3,0x801                                  
 8004ffc:	38 63 36 08 	ori r3,r3,0x3608                               
 8005000:	ba 60 08 00 	mv r1,r19                                      
 8005004:	34 02 00 01 	mvi r2,1                                       
 8005008:	d9 e0 00 00 	call r15                                       
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
 800500c:	34 03 00 00 	mvi r3,0                                       
 8005010:	e3 ff ff bf 	bi 8004f0c <_Heap_Walk+0x90>                   
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( _Heap_Is_free( last_block ) ) {                                
    (*printer)(                                                       
 8005014:	78 03 08 01 	mvhi r3,0x801                                  
 8005018:	38 63 35 f0 	ori r3,r3,0x35f0                               
 800501c:	ba 60 08 00 	mv r1,r19                                      
 8005020:	34 02 00 01 	mvi r2,1                                       
 8005024:	d9 e0 00 00 	call r15                                       
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
 8005028:	34 03 00 00 	mvi r3,0                                       
 800502c:	e3 ff ff b8 	bi 8004f0c <_Heap_Walk+0x90>                   
    first_block, last_block,                                          
    first_free_block, last_free_block                                 
  );                                                                  
                                                                      
  if ( page_size == 0 ) {                                             
    (*printer)( source, true, "page size is zero\n" );                
 8005030:	78 03 08 01 	mvhi r3,0x801                                  
 8005034:	38 63 35 34 	ori r3,r3,0x3534                               
 8005038:	ba 60 08 00 	mv r1,r19                                      
 800503c:	34 02 00 01 	mvi r2,1                                       
 8005040:	d9 e0 00 00 	call r15                                       
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
 8005044:	34 03 00 00 	mvi r3,0                                       
 8005048:	e3 ff ff b1 	bi 8004f0c <_Heap_Walk+0x90>                   
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Addresses_Is_aligned( (void *) page_size ) ) {               
    (*printer)(                                                       
 800504c:	78 03 08 01 	mvhi r3,0x801                                  
 8005050:	38 63 35 48 	ori r3,r3,0x3548                               
 8005054:	ba 60 08 00 	mv r1,r19                                      
 8005058:	34 02 00 01 	mvi r2,1                                       
 800505c:	ba a0 20 00 	mv r4,r21                                      
 8005060:	d9 e0 00 00 	call r15                                       
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
 8005064:	34 03 00 00 	mvi r3,0                                       
 8005068:	e3 ff ff a9 	bi 8004f0c <_Heap_Walk+0x90>                   
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {             
    (*printer)(                                                       
 800506c:	78 03 08 01 	mvhi r3,0x801                                  
 8005070:	38 63 35 68 	ori r3,r3,0x3568                               
 8005074:	ba 60 08 00 	mv r1,r19                                      
 8005078:	34 02 00 01 	mvi r2,1                                       
 800507c:	ba c0 20 00 	mv r4,r22                                      
 8005080:	d9 e0 00 00 	call r15                                       
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
 8005084:	34 03 00 00 	mvi r3,0                                       
 8005088:	e3 ff ff a1 	bi 8004f0c <_Heap_Walk+0x90>                   
  }                                                                   
                                                                      
  if (                                                                
    !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
  ) {                                                                 
    (*printer)(                                                       
 800508c:	78 03 08 01 	mvhi r3,0x801                                  
 8005090:	38 63 35 8c 	ori r3,r3,0x358c                               
 8005094:	ba 60 08 00 	mv r1,r19                                      
 8005098:	34 02 00 01 	mvi r2,1                                       
 800509c:	ba 80 20 00 	mv r4,r20                                      
 80050a0:	d9 e0 00 00 	call r15                                       
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
 80050a4:	34 03 00 00 	mvi r3,0                                       
 80050a8:	e3 ff ff 99 	bi 8004f0c <_Heap_Walk+0x90>                   
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 80050ac:	29 b0 00 08 	lw r16,(r13+8)                                 
  int source,                                                         
  Heap_Walk_printer printer,                                          
  Heap_Control *heap                                                  
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
 80050b0:	29 b2 00 10 	lw r18,(r13+16)                                
  const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
  const Heap_Block *const first_free_block = _Heap_Free_list_first( heap );
  const Heap_Block *prev_block = free_list_tail;                      
  const Heap_Block *free_block = first_free_block;                    
                                                                      
  while ( free_block != free_list_tail ) {                            
 80050b4:	45 b0 00 2f 	be r13,r16,8005170 <_Heap_Walk+0x2f4>          
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 80050b8:	29 ae 00 20 	lw r14,(r13+32)                                
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
 80050bc:	ba 00 58 00 	mv r11,r16                                     
 80050c0:	55 d0 00 dc 	bgu r14,r16,8005430 <_Heap_Walk+0x5b4>         <== NEVER TAKEN
 80050c4:	29 b8 00 24 	lw r24,(r13+36)                                
 80050c8:	56 18 00 da 	bgu r16,r24,8005430 <_Heap_Walk+0x5b4>         <== NEVER TAKEN
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
 80050cc:	36 01 00 08 	addi r1,r16,8                                  
 80050d0:	ba 40 10 00 	mv r2,r18                                      
 80050d4:	fb ff ee 53 	calli 8000a20 <__umodsi3>                      
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if (                                                              
 80050d8:	5c 20 00 de 	bne r1,r0,8005450 <_Heap_Walk+0x5d4>           <== NEVER TAKEN
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 80050dc:	2a 03 00 04 	lw r3,(r16+4)                                  
 80050e0:	34 02 ff fe 	mvi r2,-2                                      
 80050e4:	34 11 ff fe 	mvi r17,-2                                     
 80050e8:	a0 43 10 00 	and r2,r2,r3                                   
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 80050ec:	b6 02 10 00 	add r2,r16,r2                                  
  block->size_and_flag = size | flag;                                 
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & HEAP_PREV_BLOCK_USED;                 
 80050f0:	28 42 00 04 	lw r2,(r2+4)                                   
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
 80050f4:	b9 a0 18 00 	mv r3,r13                                      
 80050f8:	20 42 00 01 	andi r2,r2,0x1                                 
 80050fc:	44 41 00 12 	be r2,r1,8005144 <_Heap_Walk+0x2c8>            <== ALWAYS TAKEN
 8005100:	e0 00 00 dc 	bi 8005470 <_Heap_Walk+0x5f4>                  <== NOT EXECUTED
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    prev_block = free_block;                                          
    free_block = free_block->next;                                    
 8005104:	2a 0b 00 08 	lw r11,(r16+8)                                 
  const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
  const Heap_Block *const first_free_block = _Heap_Free_list_first( heap );
  const Heap_Block *prev_block = free_list_tail;                      
  const Heap_Block *free_block = first_free_block;                    
                                                                      
  while ( free_block != free_list_tail ) {                            
 8005108:	45 ab 00 1b 	be r13,r11,8005174 <_Heap_Walk+0x2f8>          
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
 800510c:	55 cb 00 c9 	bgu r14,r11,8005430 <_Heap_Walk+0x5b4>         
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
 8005110:	35 61 00 08 	addi r1,r11,8                                  
 8005114:	ba 40 10 00 	mv r2,r18                                      
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
 8005118:	55 78 00 c6 	bgu r11,r24,8005430 <_Heap_Walk+0x5b4>         <== NEVER TAKEN
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
 800511c:	fb ff ee 41 	calli 8000a20 <__umodsi3>                      
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if (                                                              
 8005120:	5c 20 00 cc 	bne r1,r0,8005450 <_Heap_Walk+0x5d4>           
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 8005124:	29 64 00 04 	lw r4,(r11+4)                                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
 8005128:	ba 00 18 00 	mv r3,r16                                      
 800512c:	b9 60 80 00 	mv r16,r11                                     
 8005130:	a2 24 20 00 	and r4,r17,r4                                  
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 8005134:	b4 8b 20 00 	add r4,r4,r11                                  
  block->size_and_flag = size | flag;                                 
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & HEAP_PREV_BLOCK_USED;                 
 8005138:	28 84 00 04 	lw r4,(r4+4)                                   
 800513c:	20 84 00 01 	andi r4,r4,0x1                                 
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
 8005140:	5c 81 00 cc 	bne r4,r1,8005470 <_Heap_Walk+0x5f4>           
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( free_block->prev != prev_block ) {                           
 8005144:	2a 07 00 0c 	lw r7,(r16+12)                                 
 8005148:	44 e3 ff ef 	be r7,r3,8005104 <_Heap_Walk+0x288>            
      (*printer)(                                                     
 800514c:	78 03 08 01 	mvhi r3,0x801                                  
 8005150:	38 63 36 a4 	ori r3,r3,0x36a4                               
 8005154:	ba 60 08 00 	mv r1,r19                                      
 8005158:	34 02 00 01 	mvi r2,1                                       
 800515c:	ba 00 20 00 	mv r4,r16                                      
 8005160:	b8 e0 28 00 	mv r5,r7                                       
 8005164:	d9 e0 00 00 	call r15                                       
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
 8005168:	34 03 00 00 	mvi r3,0                                       
 800516c:	e3 ff ff 68 	bi 8004f0c <_Heap_Walk+0x90>                   
  const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
  const Heap_Block *const first_free_block = _Heap_Free_list_first( heap );
  const Heap_Block *prev_block = free_list_tail;                      
  const Heap_Block *free_block = first_free_block;                    
                                                                      
  while ( free_block != free_list_tail ) {                            
 8005170:	29 ae 00 20 	lw r14,(r13+32)                                
  Heap_Block *const last_free_block = _Heap_Free_list_last( heap );   
  bool const prev_used = _Heap_Is_prev_used( block );                 
  uintptr_t const block_size = _Heap_Block_size( block );             
  Heap_Block *const next_block = _Heap_Block_at( block, block_size ); 
                                                                      
  (*printer)(                                                         
 8005174:	78 01 08 01 	mvhi r1,0x801                                  
 8005178:	5b 81 00 54 	sw (sp+84),r1                                  
 800517c:	78 01 08 01 	mvhi r1,0x801                                  
 8005180:	5b 81 00 58 	sw (sp+88),r1                                  
 8005184:	78 01 08 01 	mvhi r1,0x801                                  
 8005188:	5b 81 00 5c 	sw (sp+92),r1                                  
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
 800518c:	78 01 08 01 	mvhi r1,0x801                                  
 8005190:	5b 81 00 60 	sw (sp+96),r1                                  
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
 8005194:	78 01 08 01 	mvhi r1,0x801                                  
 8005198:	5b 81 00 64 	sw (sp+100),r1                                 
  Heap_Block *const last_free_block = _Heap_Free_list_last( heap );   
  bool const prev_used = _Heap_Is_prev_used( block );                 
  uintptr_t const block_size = _Heap_Block_size( block );             
  Heap_Block *const next_block = _Heap_Block_at( block, block_size ); 
                                                                      
  (*printer)(                                                         
 800519c:	2b 81 00 54 	lw r1,(sp+84)                                  
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
 80051a0:	78 1b 08 01 	mvhi fp,0x801                                  
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
      }                                                               
    } else if (prev_used) {                                           
      (*printer)(                                                     
 80051a4:	78 19 08 01 	mvhi r25,0x801                                 
  Heap_Block *const last_free_block = _Heap_Free_list_last( heap );   
  bool const prev_used = _Heap_Is_prev_used( block );                 
  uintptr_t const block_size = _Heap_Block_size( block );             
  Heap_Block *const next_block = _Heap_Block_at( block, block_size ); 
                                                                      
  (*printer)(                                                         
 80051a8:	38 21 34 68 	ori r1,r1,0x3468                               
 80051ac:	5b 81 00 54 	sw (sp+84),r1                                  
 80051b0:	2b 81 00 58 	lw r1,(sp+88)                                  
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
 80051b4:	78 18 08 01 	mvhi r24,0x801                                 
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
 80051b8:	ba 80 88 00 	mv r17,r20                                     
  Heap_Block *const last_free_block = _Heap_Free_list_last( heap );   
  bool const prev_used = _Heap_Is_prev_used( block );                 
  uintptr_t const block_size = _Heap_Block_size( block );             
  Heap_Block *const next_block = _Heap_Block_at( block, block_size ); 
                                                                      
  (*printer)(                                                         
 80051bc:	38 21 34 84 	ori r1,r1,0x3484                               
 80051c0:	5b 81 00 58 	sw (sp+88),r1                                  
 80051c4:	2b 81 00 5c 	lw r1,(sp+92)                                  
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
 80051c8:	3b 7b 38 54 	ori fp,fp,0x3854                               
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
      }                                                               
    } else if (prev_used) {                                           
      (*printer)(                                                     
 80051cc:	3b 39 38 3c 	ori r25,r25,0x383c                             
  Heap_Block *const last_free_block = _Heap_Free_list_last( heap );   
  bool const prev_used = _Heap_Is_prev_used( block );                 
  uintptr_t const block_size = _Heap_Block_size( block );             
  Heap_Block *const next_block = _Heap_Block_at( block, block_size ); 
                                                                      
  (*printer)(                                                         
 80051d0:	38 21 37 98 	ori r1,r1,0x3798                               
 80051d4:	5b 81 00 5c 	sw (sp+92),r1                                  
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
 80051d8:	2b 81 00 60 	lw r1,(sp+96)                                  
 80051dc:	3b 18 38 08 	ori r24,r24,0x3808                             
 80051e0:	38 21 34 94 	ori r1,r1,0x3494                               
 80051e4:	5b 81 00 60 	sw (sp+96),r1                                  
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
 80051e8:	2b 81 00 64 	lw r1,(sp+100)                                 
 80051ec:	38 21 34 78 	ori r1,r1,0x3478                               
 80051f0:	5b 81 00 64 	sw (sp+100),r1                                 
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 80051f4:	34 01 ff fe 	mvi r1,-2                                      
 80051f8:	a1 81 90 00 	and r18,r12,r1                                 
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 80051fc:	b6 51 80 00 	add r16,r18,r17                                
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
 8005200:	55 d0 00 7a 	bgu r14,r16,80053e8 <_Heap_Walk+0x56c>         <== NEVER TAKEN
 8005204:	29 a4 00 24 	lw r4,(r13+36)                                 
 8005208:	56 04 00 78 	bgu r16,r4,80053e8 <_Heap_Walk+0x56c>          
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
 800520c:	ba 40 08 00 	mv r1,r18                                      
 8005210:	ba a0 10 00 	mv r2,r21                                      
    uintptr_t const block_begin = (uintptr_t) block;                  
    uintptr_t const block_size = _Heap_Block_size( block );           
    bool const prev_used = _Heap_Is_prev_used( block );               
    Heap_Block *const next_block = _Heap_Block_at( block, block_size );
    uintptr_t const next_block_begin = (uintptr_t) next_block;        
    bool const is_not_last_block = block != last_block;               
 8005214:	fe 37 58 00 	cmpne r11,r17,r23                              
 8005218:	fb ff ee 02 	calli 8000a20 <__umodsi3>                      
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
 800521c:	44 20 00 02 	be r1,r0,8005224 <_Heap_Walk+0x3a8>            
 8005220:	5d 60 00 15 	bne r11,r0,8005274 <_Heap_Walk+0x3f8>          
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( block_size < min_block_size && is_not_last_block ) {         
 8005224:	52 56 00 02 	bgeu r18,r22,800522c <_Heap_Walk+0x3b0>        
 8005228:	5d 60 00 1c 	bne r11,r0,8005298 <_Heap_Walk+0x41c>          <== ALWAYS TAKEN
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( next_block_begin <= block_begin && is_not_last_block ) {     
 800522c:	56 11 00 02 	bgu r16,r17,8005234 <_Heap_Walk+0x3b8>         
 8005230:	5d 60 00 77 	bne r11,r0,800540c <_Heap_Walk+0x590>          
  block->size_and_flag = size | flag;                                 
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & HEAP_PREV_BLOCK_USED;                 
 8005234:	2a 06 00 04 	lw r6,(r16+4)                                  
 8005238:	21 8c 00 01 	andi r12,r12,0x1                               
 800523c:	20 c6 00 01 	andi r6,r6,0x1                                 
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
 8005240:	44 c0 00 28 	be r6,r0,80052e0 <_Heap_Walk+0x464>            
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
      }                                                               
    } else if (prev_used) {                                           
 8005244:	45 80 00 1f 	be r12,r0,80052c0 <_Heap_Walk+0x444>           
      (*printer)(                                                     
 8005248:	ba 60 08 00 	mv r1,r19                                      
 800524c:	34 02 00 00 	mvi r2,0                                       
 8005250:	bb 20 18 00 	mv r3,r25                                      
 8005254:	ba 20 20 00 	mv r4,r17                                      
 8005258:	ba 40 28 00 	mv r5,r18                                      
 800525c:	d9 e0 00 00 	call r15                                       
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
 8005260:	46 90 00 43 	be r20,r16,800536c <_Heap_Walk+0x4f0>          
 8005264:	2a 0c 00 04 	lw r12,(r16+4)                                 
 8005268:	29 ae 00 20 	lw r14,(r13+32)                                
 800526c:	ba 00 88 00 	mv r17,r16                                     
 8005270:	e3 ff ff e1 	bi 80051f4 <_Heap_Walk+0x378>                  
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
      (*printer)(                                                     
 8005274:	78 03 08 01 	mvhi r3,0x801                                  
 8005278:	38 63 37 08 	ori r3,r3,0x3708                               
 800527c:	ba 60 08 00 	mv r1,r19                                      
 8005280:	34 02 00 01 	mvi r2,1                                       
 8005284:	ba 20 20 00 	mv r4,r17                                      
 8005288:	ba 40 28 00 	mv r5,r18                                      
 800528c:	d9 e0 00 00 	call r15                                       
        "block 0x%08x: block size %u not page aligned\n",             
        block,                                                        
        block_size                                                    
      );                                                              
                                                                      
      return false;                                                   
 8005290:	34 03 00 00 	mvi r3,0                                       
 8005294:	e3 ff ff 1e 	bi 8004f0c <_Heap_Walk+0x90>                   
    }                                                                 
                                                                      
    if ( block_size < min_block_size && is_not_last_block ) {         
      (*printer)(                                                     
 8005298:	78 03 08 01 	mvhi r3,0x801                                  
 800529c:	38 63 37 38 	ori r3,r3,0x3738                               
 80052a0:	ba 60 08 00 	mv r1,r19                                      
 80052a4:	34 02 00 01 	mvi r2,1                                       
 80052a8:	ba 20 20 00 	mv r4,r17                                      
 80052ac:	ba 40 28 00 	mv r5,r18                                      
 80052b0:	ba c0 30 00 	mv r6,r22                                      
 80052b4:	d9 e0 00 00 	call r15                                       
        block,                                                        
        block_size,                                                   
        min_block_size                                                
      );                                                              
                                                                      
      return false;                                                   
 80052b8:	34 03 00 00 	mvi r3,0                                       
 80052bc:	e3 ff ff 14 	bi 8004f0c <_Heap_Walk+0x90>                   
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
 80052c0:	2a 26 00 00 	lw r6,(r17+0)                                  
 80052c4:	ba 20 20 00 	mv r4,r17                                      
 80052c8:	ba 60 08 00 	mv r1,r19                                      
 80052cc:	34 02 00 00 	mvi r2,0                                       
 80052d0:	bb 60 18 00 	mv r3,fp                                       
 80052d4:	ba 40 28 00 	mv r5,r18                                      
 80052d8:	d9 e0 00 00 	call r15                                       
 80052dc:	e3 ff ff e1 	bi 8005260 <_Heap_Walk+0x3e4>                  
    false,                                                            
    "block 0x%08x: size %u, prev 0x%08x%s, next 0x%08x%s\n",          
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
 80052e0:	2a 26 00 0c 	lw r6,(r17+12)                                 
  Heap_Block *const last_free_block = _Heap_Free_list_last( heap );   
  bool const prev_used = _Heap_Is_prev_used( block );                 
  uintptr_t const block_size = _Heap_Block_size( block );             
  Heap_Block *const next_block = _Heap_Block_at( block, block_size ); 
                                                                      
  (*printer)(                                                         
 80052e4:	29 a4 00 08 	lw r4,(r13+8)                                  
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 80052e8:	29 a5 00 0c 	lw r5,(r13+12)                                 
  Heap_Block *const last_free_block = _Heap_Free_list_last( heap );   
  bool const prev_used = _Heap_Is_prev_used( block );                 
  uintptr_t const block_size = _Heap_Block_size( block );             
  Heap_Block *const next_block = _Heap_Block_at( block, block_size ); 
                                                                      
  (*printer)(                                                         
 80052ec:	2b 87 00 54 	lw r7,(sp+84)                                  
 80052f0:	44 86 00 03 	be r4,r6,80052fc <_Heap_Walk+0x480>            
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
 80052f4:	bb 00 38 00 	mv r7,r24                                      
 80052f8:	45 a6 00 29 	be r13,r6,800539c <_Heap_Walk+0x520>           
    block->next,                                                      
    block->next == last_free_block ?                                  
 80052fc:	2a 28 00 08 	lw r8,(r17+8)                                  
  Heap_Block *const last_free_block = _Heap_Free_list_last( heap );   
  bool const prev_used = _Heap_Is_prev_used( block );                 
  uintptr_t const block_size = _Heap_Block_size( block );             
  Heap_Block *const next_block = _Heap_Block_at( block, block_size ); 
                                                                      
  (*printer)(                                                         
 8005300:	2b 84 00 58 	lw r4,(sp+88)                                  
 8005304:	44 a8 00 03 	be r5,r8,8005310 <_Heap_Walk+0x494>            
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
 8005308:	bb 00 20 00 	mv r4,r24                                      
 800530c:	45 a8 00 26 	be r13,r8,80053a4 <_Heap_Walk+0x528>           
  Heap_Block *const last_free_block = _Heap_Free_list_last( heap );   
  bool const prev_used = _Heap_Is_prev_used( block );                 
  uintptr_t const block_size = _Heap_Block_size( block );             
  Heap_Block *const next_block = _Heap_Block_at( block, block_size ); 
                                                                      
  (*printer)(                                                         
 8005310:	2b 83 00 5c 	lw r3,(sp+92)                                  
 8005314:	5b 84 00 04 	sw (sp+4),r4                                   
 8005318:	ba 60 08 00 	mv r1,r19                                      
 800531c:	34 02 00 00 	mvi r2,0                                       
 8005320:	ba 20 20 00 	mv r4,r17                                      
 8005324:	ba 40 28 00 	mv r5,r18                                      
 8005328:	d9 e0 00 00 	call r15                                       
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
  );                                                                  
                                                                      
  if ( block_size != next_block->prev_size ) {                        
 800532c:	2a 06 00 00 	lw r6,(r16+0)                                  
 8005330:	5e 46 00 11 	bne r18,r6,8005374 <_Heap_Walk+0x4f8>          
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !prev_used ) {                                                 
 8005334:	45 80 00 1e 	be r12,r0,80053ac <_Heap_Walk+0x530>           
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 8005338:	29 a5 00 08 	lw r5,(r13+8)                                  
)                                                                     
{                                                                     
  const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
  const Heap_Block *free_block = _Heap_Free_list_first( heap );       
                                                                      
  while ( free_block != free_list_tail ) {                            
 800533c:	45 a5 00 04 	be r13,r5,800534c <_Heap_Walk+0x4d0>           <== NEVER TAKEN
    if ( free_block == block ) {                                      
 8005340:	46 25 ff c8 	be r17,r5,8005260 <_Heap_Walk+0x3e4>           
      return true;                                                    
    }                                                                 
    free_block = free_block->next;                                    
 8005344:	28 a5 00 08 	lw r5,(r5+8)                                   
)                                                                     
{                                                                     
  const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
  const Heap_Block *free_block = _Heap_Free_list_first( heap );       
                                                                      
  while ( free_block != free_list_tail ) {                            
 8005348:	5d a5 ff fe 	bne r13,r5,8005340 <_Heap_Walk+0x4c4>          
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {                 
    (*printer)(                                                       
 800534c:	78 03 08 01 	mvhi r3,0x801                                  
 8005350:	38 63 38 7c 	ori r3,r3,0x387c                               
 8005354:	ba 60 08 00 	mv r1,r19                                      
 8005358:	34 02 00 01 	mvi r2,1                                       
 800535c:	ba 20 20 00 	mv r4,r17                                      
 8005360:	d9 e0 00 00 	call r15                                       
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
 8005364:	34 03 00 00 	mvi r3,0                                       
 8005368:	e3 ff fe e9 	bi 8004f0c <_Heap_Walk+0x90>                   
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
 800536c:	34 03 00 01 	mvi r3,1                                       
 8005370:	e3 ff fe e7 	bi 8004f0c <_Heap_Walk+0x90>                   
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
  );                                                                  
                                                                      
  if ( block_size != next_block->prev_size ) {                        
    (*printer)(                                                       
 8005374:	78 03 08 01 	mvhi r3,0x801                                  
 8005378:	38 63 37 d0 	ori r3,r3,0x37d0                               
 800537c:	ba 60 08 00 	mv r1,r19                                      
 8005380:	34 02 00 01 	mvi r2,1                                       
 8005384:	ba 20 20 00 	mv r4,r17                                      
 8005388:	ba 40 28 00 	mv r5,r18                                      
 800538c:	ba 00 38 00 	mv r7,r16                                      
 8005390:	d9 e0 00 00 	call r15                                       
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
 8005394:	34 03 00 00 	mvi r3,0                                       
 8005398:	e3 ff fe dd 	bi 8004f0c <_Heap_Walk+0x90>                   
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
 800539c:	2b 87 00 64 	lw r7,(sp+100)                                 
 80053a0:	e3 ff ff d7 	bi 80052fc <_Heap_Walk+0x480>                  
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
 80053a4:	2b 84 00 60 	lw r4,(sp+96)                                  
 80053a8:	e3 ff ff da 	bi 8005310 <_Heap_Walk+0x494>                  
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !prev_used ) {                                                 
    (*printer)(                                                       
 80053ac:	78 03 08 01 	mvhi r3,0x801                                  
 80053b0:	38 63 38 0c 	ori r3,r3,0x380c                               
 80053b4:	ba 60 08 00 	mv r1,r19                                      
 80053b8:	34 02 00 01 	mvi r2,1                                       
 80053bc:	ba 20 20 00 	mv r4,r17                                      
 80053c0:	d9 e0 00 00 	call r15                                       
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
 80053c4:	34 03 00 00 	mvi r3,0                                       
 80053c8:	e3 ff fe d1 	bi 8004f0c <_Heap_Walk+0x90>                   
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( first_block ) ) {                         
    (*printer)(                                                       
 80053cc:	78 03 08 01 	mvhi r3,0x801                                  
 80053d0:	38 63 35 c0 	ori r3,r3,0x35c0                               
 80053d4:	ba 60 08 00 	mv r1,r19                                      
 80053d8:	34 02 00 01 	mvi r2,1                                       
 80053dc:	d9 e0 00 00 	call r15                                       
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
 80053e0:	34 03 00 00 	mvi r3,0                                       
 80053e4:	e3 ff fe ca 	bi 8004f0c <_Heap_Walk+0x90>                   
    Heap_Block *const next_block = _Heap_Block_at( block, block_size );
    uintptr_t const next_block_begin = (uintptr_t) next_block;        
    bool const is_not_last_block = block != last_block;               
                                                                      
    if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {              
      (*printer)(                                                     
 80053e8:	78 03 08 01 	mvhi r3,0x801                                  
 80053ec:	38 63 36 d8 	ori r3,r3,0x36d8                               
 80053f0:	ba 60 08 00 	mv r1,r19                                      
 80053f4:	34 02 00 01 	mvi r2,1                                       
 80053f8:	ba 20 20 00 	mv r4,r17                                      
 80053fc:	ba 00 28 00 	mv r5,r16                                      
 8005400:	d9 e0 00 00 	call r15                                       
        "block 0x%08x: next block 0x%08x not in heap\n",              
        block,                                                        
        next_block                                                    
      );                                                              
                                                                      
      return false;                                                   
 8005404:	34 03 00 00 	mvi r3,0                                       
 8005408:	e3 ff fe c1 	bi 8004f0c <_Heap_Walk+0x90>                   
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( next_block_begin <= block_begin && is_not_last_block ) {     
      (*printer)(                                                     
 800540c:	78 03 08 01 	mvhi r3,0x801                                  
 8005410:	38 63 37 64 	ori r3,r3,0x3764                               
 8005414:	ba 60 08 00 	mv r1,r19                                      
 8005418:	34 02 00 01 	mvi r2,1                                       
 800541c:	ba 20 20 00 	mv r4,r17                                      
 8005420:	ba 00 28 00 	mv r5,r16                                      
 8005424:	d9 e0 00 00 	call r15                                       
        "block 0x%08x: next block 0x%08x is not a successor\n",       
        block,                                                        
        next_block                                                    
      );                                                              
                                                                      
      return false;                                                   
 8005428:	34 03 00 00 	mvi r3,0                                       
 800542c:	e3 ff fe b8 	bi 8004f0c <_Heap_Walk+0x90>                   
  const Heap_Block *prev_block = free_list_tail;                      
  const Heap_Block *free_block = first_free_block;                    
                                                                      
  while ( free_block != free_list_tail ) {                            
    if ( !_Heap_Is_block_in_heap( heap, free_block ) ) {              
      (*printer)(                                                     
 8005430:	78 03 08 01 	mvhi r3,0x801                                  
 8005434:	38 63 36 38 	ori r3,r3,0x3638                               
 8005438:	ba 60 08 00 	mv r1,r19                                      
 800543c:	34 02 00 01 	mvi r2,1                                       
 8005440:	b9 60 20 00 	mv r4,r11                                      
 8005444:	d9 e0 00 00 	call r15                                       
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
 8005448:	34 03 00 00 	mvi r3,0                                       
 800544c:	e3 ff fe b0 	bi 8004f0c <_Heap_Walk+0x90>                   
    }                                                                 
                                                                      
    if (                                                              
      !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
    ) {                                                               
      (*printer)(                                                     
 8005450:	78 03 08 01 	mvhi r3,0x801                                  
 8005454:	38 63 36 58 	ori r3,r3,0x3658                               
 8005458:	ba 60 08 00 	mv r1,r19                                      
 800545c:	34 02 00 01 	mvi r2,1                                       
 8005460:	b9 60 20 00 	mv r4,r11                                      
 8005464:	d9 e0 00 00 	call r15                                       
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
 8005468:	34 03 00 00 	mvi r3,0                                       
 800546c:	e3 ff fe a8 	bi 8004f0c <_Heap_Walk+0x90>                   
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
      (*printer)(                                                     
 8005470:	78 03 08 01 	mvhi r3,0x801                                  
 8005474:	38 63 36 88 	ori r3,r3,0x3688                               
 8005478:	ba 60 08 00 	mv r1,r19                                      
 800547c:	34 02 00 01 	mvi r2,1                                       
 8005480:	b9 60 20 00 	mv r4,r11                                      
 8005484:	d9 e0 00 00 	call r15                                       
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
 8005488:	34 03 00 00 	mvi r3,0                                       
 800548c:	e3 ff fe a0 	bi 8004f0c <_Heap_Walk+0x90>                   
                                                                      

080035ac <_IO_Initialize_all_drivers>: * * Output Parameters: NONE */ void _IO_Initialize_all_drivers( void ) {
 80035ac:	37 9c ff f4 	addi sp,sp,-12                                 
 80035b0:	5b 8b 00 0c 	sw (sp+12),r11                                 
 80035b4:	5b 8c 00 08 	sw (sp+8),r12                                  
 80035b8:	5b 9d 00 04 	sw (sp+4),ra                                   
   rtems_device_major_number major;                                   
                                                                      
   for ( major=0 ; major < _IO_Number_of_drivers ; major ++ )         
 80035bc:	78 0c 08 01 	mvhi r12,0x801                                 
 80035c0:	39 8c 3a b8 	ori r12,r12,0x3ab8                             
 80035c4:	29 81 00 00 	lw r1,(r12+0)                                  
 80035c8:	44 20 00 09 	be r1,r0,80035ec <_IO_Initialize_all_drivers+0x40><== NEVER TAKEN
 80035cc:	34 0b 00 00 	mvi r11,0                                      
     (void) rtems_io_initialize( major, 0, NULL );                    
 80035d0:	b9 60 08 00 	mv r1,r11                                      
 80035d4:	34 02 00 00 	mvi r2,0                                       
 80035d8:	34 03 00 00 	mvi r3,0                                       
 80035dc:	f8 00 17 5d 	calli 8009350 <rtems_io_initialize>            
                                                                      
void _IO_Initialize_all_drivers( void )                               
{                                                                     
   rtems_device_major_number major;                                   
                                                                      
   for ( major=0 ; major < _IO_Number_of_drivers ; major ++ )         
 80035e0:	29 81 00 00 	lw r1,(r12+0)                                  
 80035e4:	35 6b 00 01 	addi r11,r11,1                                 
 80035e8:	54 2b ff fa 	bgu r1,r11,80035d0 <_IO_Initialize_all_drivers+0x24>
     (void) rtems_io_initialize( major, 0, NULL );                    
}                                                                     
 80035ec:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80035f0:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 80035f4:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80035f8:	37 9c 00 0c 	addi sp,sp,12                                  
 80035fc:	c3 a0 00 00 	ret                                            
                                                                      

0800348c <_IO_Manager_initialization>: * workspace. * */ void _IO_Manager_initialization(void) {
 800348c:	37 9c ff e8 	addi sp,sp,-24                                 
 8003490:	5b 8b 00 18 	sw (sp+24),r11                                 
 8003494:	5b 8c 00 14 	sw (sp+20),r12                                 
 8003498:	5b 8d 00 10 	sw (sp+16),r13                                 
 800349c:	5b 8e 00 0c 	sw (sp+12),r14                                 
 80034a0:	5b 8f 00 08 	sw (sp+8),r15                                  
 80034a4:	5b 9d 00 04 	sw (sp+4),ra                                   
  uint32_t                    index;                                  
  rtems_driver_address_table *driver_table;                           
  uint32_t                    drivers_in_table;                       
  uint32_t                    number_of_drivers;                      
                                                                      
  driver_table      = Configuration.Device_driver_table;              
 80034a8:	78 01 08 01 	mvhi r1,0x801                                  
 80034ac:	38 21 30 f4 	ori r1,r1,0x30f4                               
  drivers_in_table  = Configuration.number_of_device_drivers;         
 80034b0:	28 2b 00 30 	lw r11,(r1+48)                                 
  number_of_drivers = Configuration.maximum_drivers;                  
 80034b4:	28 2e 00 2c 	lw r14,(r1+44)                                 
  uint32_t                    index;                                  
  rtems_driver_address_table *driver_table;                           
  uint32_t                    drivers_in_table;                       
  uint32_t                    number_of_drivers;                      
                                                                      
  driver_table      = Configuration.Device_driver_table;              
 80034b8:	28 2d 00 34 	lw r13,(r1+52)                                 
                                                                      
  /*                                                                  
   *  If the user claims there are less drivers than are actually in  
   *  the table, then let's just go with the table's count.           
   */                                                                 
  if ( number_of_drivers <= drivers_in_table )                        
 80034bc:	51 6e 00 2e 	bgeu r11,r14,8003574 <_IO_Manager_initialization+0xe8>
   *  have to allocate a new driver table and copy theirs to it.      
   */                                                                 
                                                                      
  _IO_Driver_address_table = (rtems_driver_address_table *)           
      _Workspace_Allocate_or_fatal_error(                             
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
 80034c0:	b5 ce 60 00 	add r12,r14,r14                                
 80034c4:	b5 8e 60 00 	add r12,r12,r14                                
 80034c8:	b5 8c 60 00 	add r12,r12,r12                                
 80034cc:	b5 8c 60 00 	add r12,r12,r12                                
 80034d0:	b5 8c 60 00 	add r12,r12,r12                                
   *  The application requested extra slots in the driver table, so we
   *  have to allocate a new driver table and copy theirs to it.      
   */                                                                 
                                                                      
  _IO_Driver_address_table = (rtems_driver_address_table *)           
      _Workspace_Allocate_or_fatal_error(                             
 80034d4:	b9 80 08 00 	mv r1,r12                                      
 80034d8:	f8 00 0e c7 	calli 8006ff4 <_Workspace_Allocate_or_fatal_error>
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
 80034dc:	78 04 08 01 	mvhi r4,0x801                                  
  /*                                                                  
   *  The application requested extra slots in the driver table, so we
   *  have to allocate a new driver table and copy theirs to it.      
   */                                                                 
                                                                      
  _IO_Driver_address_table = (rtems_driver_address_table *)           
 80034e0:	78 0f 08 01 	mvhi r15,0x801                                 
      _Workspace_Allocate_or_fatal_error(                             
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
 80034e4:	38 84 3a b8 	ori r4,r4,0x3ab8                               
  /*                                                                  
   *  The application requested extra slots in the driver table, so we
   *  have to allocate a new driver table and copy theirs to it.      
   */                                                                 
                                                                      
  _IO_Driver_address_table = (rtems_driver_address_table *)           
 80034e8:	39 ef 3a bc 	ori r15,r15,0x3abc                             
      _Workspace_Allocate_or_fatal_error(                             
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
                                                                      
  memset(                                                             
 80034ec:	34 02 00 00 	mvi r2,0                                       
 80034f0:	b9 80 18 00 	mv r3,r12                                      
                                                                      
  _IO_Driver_address_table = (rtems_driver_address_table *)           
      _Workspace_Allocate_or_fatal_error(                             
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
 80034f4:	58 8e 00 00 	sw (r4+0),r14                                  
  /*                                                                  
   *  The application requested extra slots in the driver table, so we
   *  have to allocate a new driver table and copy theirs to it.      
   */                                                                 
                                                                      
  _IO_Driver_address_table = (rtems_driver_address_table *)           
 80034f8:	59 e1 00 00 	sw (r15+0),r1                                  
      _Workspace_Allocate_or_fatal_error(                             
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
                                                                      
  memset(                                                             
 80034fc:	f8 00 24 5a 	calli 800c664 <memset>                         
    _IO_Driver_address_table, 0,                                      
    sizeof( rtems_driver_address_table ) * ( number_of_drivers )      
  );                                                                  
                                                                      
  for ( index = 0 ; index < drivers_in_table ; index++ )              
 8003500:	45 60 00 15 	be r11,r0,8003554 <_IO_Manager_initialization+0xc8><== NEVER TAKEN
 8003504:	29 e5 00 00 	lw r5,(r15+0)                                  
 8003508:	34 03 00 00 	mvi r3,0                                       
 800350c:	34 04 00 00 	mvi r4,0                                       
 *  registration. The driver table is now allocated in the            
 *  workspace.                                                        
 *                                                                    
 */                                                                   
                                                                      
void _IO_Manager_initialization(void)                                 
 8003510:	b5 a3 08 00 	add r1,r13,r3                                  
    _IO_Driver_address_table, 0,                                      
    sizeof( rtems_driver_address_table ) * ( number_of_drivers )      
  );                                                                  
                                                                      
  for ( index = 0 ; index < drivers_in_table ; index++ )              
    _IO_Driver_address_table[index] = driver_table[index];            
 8003514:	28 26 00 00 	lw r6,(r1+0)                                   
 *  registration. The driver table is now allocated in the            
 *  workspace.                                                        
 *                                                                    
 */                                                                   
                                                                      
void _IO_Manager_initialization(void)                                 
 8003518:	b4 a3 10 00 	add r2,r5,r3                                   
  memset(                                                             
    _IO_Driver_address_table, 0,                                      
    sizeof( rtems_driver_address_table ) * ( number_of_drivers )      
  );                                                                  
                                                                      
  for ( index = 0 ; index < drivers_in_table ; index++ )              
 800351c:	34 84 00 01 	addi r4,r4,1                                   
    _IO_Driver_address_table[index] = driver_table[index];            
 8003520:	58 46 00 00 	sw (r2+0),r6                                   
 8003524:	28 26 00 04 	lw r6,(r1+4)                                   
  memset(                                                             
    _IO_Driver_address_table, 0,                                      
    sizeof( rtems_driver_address_table ) * ( number_of_drivers )      
  );                                                                  
                                                                      
  for ( index = 0 ; index < drivers_in_table ; index++ )              
 8003528:	34 63 00 18 	addi r3,r3,24                                  
    _IO_Driver_address_table[index] = driver_table[index];            
 800352c:	58 46 00 04 	sw (r2+4),r6                                   
 8003530:	28 26 00 08 	lw r6,(r1+8)                                   
 8003534:	58 46 00 08 	sw (r2+8),r6                                   
 8003538:	28 26 00 0c 	lw r6,(r1+12)                                  
 800353c:	58 46 00 0c 	sw (r2+12),r6                                  
 8003540:	28 26 00 10 	lw r6,(r1+16)                                  
 8003544:	58 46 00 10 	sw (r2+16),r6                                  
 8003548:	28 21 00 14 	lw r1,(r1+20)                                  
 800354c:	58 41 00 14 	sw (r2+20),r1                                  
  memset(                                                             
    _IO_Driver_address_table, 0,                                      
    sizeof( rtems_driver_address_table ) * ( number_of_drivers )      
  );                                                                  
                                                                      
  for ( index = 0 ; index < drivers_in_table ; index++ )              
 8003550:	55 64 ff f0 	bgu r11,r4,8003510 <_IO_Manager_initialization+0x84>
    _IO_Driver_address_table[index] = driver_table[index];            
}                                                                     
 8003554:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003558:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800355c:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8003560:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8003564:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8003568:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800356c:	37 9c 00 18 	addi sp,sp,24                                  
 8003570:	c3 a0 00 00 	ret                                            
   *  If the maximum number of driver is the same as the number in the
   *  table, then we do not have to copy the driver table.  They can't
   *  register any dynamically.                                       
   */                                                                 
  if ( number_of_drivers == drivers_in_table ) {                      
    _IO_Driver_address_table = driver_table;                          
 8003574:	78 02 08 01 	mvhi r2,0x801                                  
    _IO_Number_of_drivers = number_of_drivers;                        
 8003578:	78 01 08 01 	mvhi r1,0x801                                  
   *  If the maximum number of driver is the same as the number in the
   *  table, then we do not have to copy the driver table.  They can't
   *  register any dynamically.                                       
   */                                                                 
  if ( number_of_drivers == drivers_in_table ) {                      
    _IO_Driver_address_table = driver_table;                          
 800357c:	38 42 3a bc 	ori r2,r2,0x3abc                               
    _IO_Number_of_drivers = number_of_drivers;                        
 8003580:	38 21 3a b8 	ori r1,r1,0x3ab8                               
   *  If the maximum number of driver is the same as the number in the
   *  table, then we do not have to copy the driver table.  They can't
   *  register any dynamically.                                       
   */                                                                 
  if ( number_of_drivers == drivers_in_table ) {                      
    _IO_Driver_address_table = driver_table;                          
 8003584:	58 4d 00 00 	sw (r2+0),r13                                  
    _IO_Number_of_drivers = number_of_drivers;                        
 8003588:	58 2b 00 00 	sw (r1+0),r11                                  
    sizeof( rtems_driver_address_table ) * ( number_of_drivers )      
  );                                                                  
                                                                      
  for ( index = 0 ; index < drivers_in_table ; index++ )              
    _IO_Driver_address_table[index] = driver_table[index];            
}                                                                     
 800358c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003590:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8003594:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8003598:	2b 8d 00 10 	lw r13,(sp+16)                                 
 800359c:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 80035a0:	2b 8f 00 08 	lw r15,(sp+8)                                  
 80035a4:	37 9c 00 18 	addi sp,sp,24                                  
 80035a8:	c3 a0 00 00 	ret                                            
                                                                      

08004498 <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) {
 8004498:	37 9c ff ec 	addi sp,sp,-20                                 
 800449c:	5b 8b 00 14 	sw (sp+20),r11                                 
 80044a0:	5b 8c 00 10 	sw (sp+16),r12                                 
 80044a4:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80044a8:	5b 8e 00 08 	sw (sp+8),r14                                  
 80044ac:	5b 9d 00 04 	sw (sp+4),ra                                   
 80044b0:	b8 20 58 00 	mv r11,r1                                      
   *  If the application is using the optional manager stubs and      
   *  still attempts to create the object, the information block      
   *  should be all zeroed out because it is in the BSS.  So let's    
   *  check that code for this manager is even present.               
   */                                                                 
  if ( information->size == 0 )                                       
 80044b4:	28 21 00 18 	lw r1,(r1+24)                                  
    return NULL;                                                      
 80044b8:	34 0c 00 00 	mvi r12,0                                      
   *  If the application is using the optional manager stubs and      
   *  still attempts to create the object, the information block      
   *  should be all zeroed out because it is in the BSS.  So let's    
   *  check that code for this manager is even present.               
   */                                                                 
  if ( information->size == 0 )                                       
 80044bc:	5c 20 00 09 	bne r1,r0,80044e0 <_Objects_Allocate+0x48>     <== ALWAYS TAKEN
    );                                                                
  }                                                                   
#endif                                                                
                                                                      
  return the_object;                                                  
}                                                                     
 80044c0:	b9 80 08 00 	mv r1,r12                                      
 80044c4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80044c8:	2b 8b 00 14 	lw r11,(sp+20)                                 
 80044cc:	2b 8c 00 10 	lw r12,(sp+16)                                 
 80044d0:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 80044d4:	2b 8e 00 08 	lw r14,(sp+8)                                  
 80044d8:	37 9c 00 14 	addi sp,sp,20                                  
 80044dc:	c3 a0 00 00 	ret                                            
                                                                      
  /*                                                                  
   *  OK.  The manager should be initialized and configured to have objects.
   *  With any luck, it is safe to attempt to allocate an object.     
   */                                                                 
  the_object = (Objects_Control *) _Chain_Get( &information->Inactive );
 80044e0:	35 6d 00 20 	addi r13,r11,32                                
 80044e4:	b9 a0 08 00 	mv r1,r13                                      
 80044e8:	fb ff fc fb 	calli 80038d4 <_Chain_Get>                     
 80044ec:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  if ( information->auto_extend ) {                                   
 80044f0:	41 61 00 12 	lbu r1,(r11+18)                                
                                                                      
  /*                                                                  
   *  OK.  The manager should be initialized and configured to have objects.
   *  With any luck, it is safe to attempt to allocate an object.     
   */                                                                 
  the_object = (Objects_Control *) _Chain_Get( &information->Inactive );
 80044f4:	b9 80 70 00 	mv r14,r12                                     
                                                                      
  if ( information->auto_extend ) {                                   
 80044f8:	44 20 ff f2 	be r1,r0,80044c0 <_Objects_Allocate+0x28>      
    /*                                                                
     *  If the list is empty then we are out of objects and need to   
     *  extend information base.                                      
     */                                                               
                                                                      
    if ( !the_object ) {                                              
 80044fc:	45 80 00 18 	be r12,r0,800455c <_Objects_Allocate+0xc4>     
    }                                                                 
                                                                      
    if ( the_object ) {                                               
      uint32_t   block;                                               
                                                                      
      block = (uint32_t) _Objects_Get_index( the_object->id ) -       
 8004500:	2d 83 00 0a 	lhu r3,(r12+10)                                
 8004504:	2d 61 00 0a 	lhu r1,(r11+10)                                
              _Objects_Get_index( information->minimum_id );          
      block /= information->allocation_size;                          
 8004508:	2d 62 00 14 	lhu r2,(r11+20)                                
 800450c:	c8 61 08 00 	sub r1,r3,r1                                   
 8004510:	f8 00 33 26 	calli 80111a8 <__udivsi3>                      
                                                                      
      information->inactive_per_block[ block ]--;                     
 8004514:	29 62 00 30 	lw r2,(r11+48)                                 
 8004518:	b4 21 08 00 	add r1,r1,r1                                   
 800451c:	b4 21 08 00 	add r1,r1,r1                                   
 8004520:	b4 41 08 00 	add r1,r2,r1                                   
 8004524:	28 22 00 00 	lw r2,(r1+0)                                   
      information->inactive--;                                        
 8004528:	2d 63 00 2c 	lhu r3,(r11+44)                                
                                                                      
      block = (uint32_t) _Objects_Get_index( the_object->id ) -       
              _Objects_Get_index( information->minimum_id );          
      block /= information->allocation_size;                          
                                                                      
      information->inactive_per_block[ block ]--;                     
 800452c:	34 42 ff ff 	addi r2,r2,-1                                  
 8004530:	58 22 00 00 	sw (r1+0),r2                                   
      information->inactive--;                                        
 8004534:	34 61 ff ff 	addi r1,r3,-1                                  
 8004538:	0d 61 00 2c 	sh (r11+44),r1                                 
    );                                                                
  }                                                                   
#endif                                                                
                                                                      
  return the_object;                                                  
}                                                                     
 800453c:	b9 80 08 00 	mv r1,r12                                      
 8004540:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004544:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8004548:	2b 8c 00 10 	lw r12,(sp+16)                                 
 800454c:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8004550:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8004554:	37 9c 00 14 	addi sp,sp,20                                  
 8004558:	c3 a0 00 00 	ret                                            
     *  If the list is empty then we are out of objects and need to   
     *  extend information base.                                      
     */                                                               
                                                                      
    if ( !the_object ) {                                              
      _Objects_Extend_information( information );                     
 800455c:	b9 60 08 00 	mv r1,r11                                      
 8004560:	f8 00 00 06 	calli 8004578 <_Objects_Extend_information>    
      the_object =  (Objects_Control *) _Chain_Get( &information->Inactive );
 8004564:	b9 a0 08 00 	mv r1,r13                                      
 8004568:	fb ff fc db 	calli 80038d4 <_Chain_Get>                     
 800456c:	b8 20 60 00 	mv r12,r1                                      
    }                                                                 
                                                                      
    if ( the_object ) {                                               
 8004570:	44 2e ff d4 	be r1,r14,80044c0 <_Objects_Allocate+0x28>     
 8004574:	e3 ff ff e3 	bi 8004500 <_Objects_Allocate+0x68>            
                                                                      

08004578 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) {
 8004578:	37 9c ff c8 	addi sp,sp,-56                                 
 800457c:	5b 8b 00 2c 	sw (sp+44),r11                                 
 8004580:	5b 8c 00 28 	sw (sp+40),r12                                 
 8004584:	5b 8d 00 24 	sw (sp+36),r13                                 
 8004588:	5b 8e 00 20 	sw (sp+32),r14                                 
 800458c:	5b 8f 00 1c 	sw (sp+28),r15                                 
 8004590:	5b 90 00 18 	sw (sp+24),r16                                 
 8004594:	5b 91 00 14 	sw (sp+20),r17                                 
 8004598:	5b 92 00 10 	sw (sp+16),r18                                 
 800459c:	5b 93 00 0c 	sw (sp+12),r19                                 
 80045a0:	5b 94 00 08 	sw (sp+8),r20                                  
 80045a4:	5b 9d 00 04 	sw (sp+4),ra                                   
  minimum_index = _Objects_Get_index( information->minimum_id );      
  index_base    = minimum_index;                                      
  block         = 0;                                                  
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
 80045a8:	28 2c 00 34 	lw r12,(r1+52)                                 
 */                                                                   
                                                                      
void _Objects_Extend_information(                                     
  Objects_Information *information                                    
)                                                                     
{                                                                     
 80045ac:	b8 20 58 00 	mv r11,r1                                      
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
  minimum_index = _Objects_Get_index( information->minimum_id );      
 80045b0:	2c 30 00 0a 	lhu r16,(r1+10)                                
  index_base    = minimum_index;                                      
  block         = 0;                                                  
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
 80045b4:	45 80 00 a9 	be r12,r0,8004858 <_Objects_Extend_information+0x2e0>
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
 80045b8:	2c 2f 00 14 	lhu r15,(r1+20)                                
 80045bc:	2c 31 00 10 	lhu r17,(r1+16)                                
 80045c0:	b9 e0 10 00 	mv r2,r15                                      
 80045c4:	ba 20 08 00 	mv r1,r17                                      
 80045c8:	f8 00 32 f8 	calli 80111a8 <__udivsi3>                      
 80045cc:	20 2e ff ff 	andi r14,r1,0xffff                             
                                                                      
    for ( ; block < block_count; block++ ) {                          
 80045d0:	45 c0 00 a8 	be r14,r0,8004870 <_Objects_Extend_information+0x2f8><== NEVER TAKEN
      if ( information->object_blocks[ block ] == NULL ) {            
 80045d4:	29 81 00 00 	lw r1,(r12+0)                                  
 80045d8:	44 20 00 ab 	be r1,r0,8004884 <_Objects_Extend_information+0x30c><== NEVER TAKEN
 80045dc:	b9 80 18 00 	mv r3,r12                                      
 80045e0:	b9 e0 08 00 	mv r1,r15                                      
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
  minimum_index = _Objects_Get_index( information->minimum_id );      
 80045e4:	ba 00 68 00 	mv r13,r16                                     
  index_base    = minimum_index;                                      
  block         = 0;                                                  
 80045e8:	34 0c 00 00 	mvi r12,0                                      
  if ( information->object_blocks == NULL )                           
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
                                                                      
    for ( ; block < block_count; block++ ) {                          
 80045ec:	35 8c 00 01 	addi r12,r12,1                                 
      if ( information->object_blocks[ block ] == NULL ) {            
        do_extend = false;                                            
        break;                                                        
      } else                                                          
        index_base += information->allocation_size;                   
 80045f0:	b5 af 68 00 	add r13,r13,r15                                
  if ( information->object_blocks == NULL )                           
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
                                                                      
    for ( ; block < block_count; block++ ) {                          
 80045f4:	55 cc 00 80 	bgu r14,r12,80047f4 <_Objects_Extend_information+0x27c>
                                                                      
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
 80045f8:	34 12 00 01 	mvi r18,1                                      
      } else                                                          
        index_base += information->allocation_size;                   
    }                                                                 
  }                                                                   
                                                                      
  maximum = (uint32_t) information->maximum + information->allocation_size;
 80045fc:	b6 21 88 00 	add r17,r17,r1                                 
  /*                                                                  
   *  We need to limit the number of objects to the maximum number    
   *  representable in the index portion of the object Id.  In the    
   *  case of 16-bit Ids, this is only 256 object instances.          
   */                                                                 
  if ( maximum > OBJECTS_ID_FINAL_INDEX ) {                           
 8004600:	38 02 ff ff 	mvu r2,0xffff                                  
 8004604:	56 22 00 6f 	bgu r17,r2,80047c0 <_Objects_Extend_information+0x248>
                                                                      
  /*                                                                  
   * Allocate the name table, and the objects and if it fails either return or
   * generate a fatal error depending on auto-extending being active. 
   */                                                                 
  block_size = information->allocation_size * information->size;      
 8004608:	29 62 00 18 	lw r2,(r11+24)                                 
 800460c:	f8 00 32 82 	calli 8011014 <__mulsi3>                       
  if ( information->auto_extend ) {                                   
 8004610:	41 62 00 12 	lbu r2,(r11+18)                                
 8004614:	44 40 00 7d 	be r2,r0,8004808 <_Objects_Extend_information+0x290>
    new_object_block = _Workspace_Allocate( block_size );             
 8004618:	f8 00 0a 63 	calli 8006fa4 <_Workspace_Allocate>            
 800461c:	b8 20 78 00 	mv r15,r1                                      
    if ( !new_object_block )                                          
 8004620:	44 20 00 68 	be r1,r0,80047c0 <_Objects_Extend_information+0x248>
  }                                                                   
                                                                      
  /*                                                                  
   *  Do we need to grow the tables?                                  
   */                                                                 
  if ( do_extend ) {                                                  
 8004624:	46 40 00 40 	be r18,r0,8004724 <_Objects_Extend_information+0x1ac>
     */                                                               
                                                                      
    /*                                                                
     *  Up the block count and maximum                                
     */                                                               
    block_count++;                                                    
 8004628:	35 c1 00 01 	addi r1,r14,1                                  
                                                                      
    /*                                                                
     *  Allocate the tables and break it up.                          
     */                                                               
    block_size = block_count *                                        
           (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
 800462c:	b4 21 98 00 	add r19,r1,r1                                  
 8004630:	b6 61 08 00 	add r1,r19,r1                                  
          ((maximum + minimum_index) * sizeof(Objects_Control *));    
 8004634:	b6 21 08 00 	add r1,r17,r1                                  
                                                                      
    /*                                                                
     *  Allocate the tables and break it up.                          
     */                                                               
    block_size = block_count *                                        
           (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
 8004638:	b4 30 08 00 	add r1,r1,r16                                  
    block_count++;                                                    
                                                                      
    /*                                                                
     *  Allocate the tables and break it up.                          
     */                                                               
    block_size = block_count *                                        
 800463c:	b4 21 08 00 	add r1,r1,r1                                   
 8004640:	b4 21 08 00 	add r1,r1,r1                                   
           (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
          ((maximum + minimum_index) * sizeof(Objects_Control *));    
    object_blocks = (void**) _Workspace_Allocate( block_size );       
 8004644:	f8 00 0a 58 	calli 8006fa4 <_Workspace_Allocate>            
 8004648:	b8 20 90 00 	mv r18,r1                                      
                                                                      
    if ( !object_blocks ) {                                           
 800464c:	44 20 00 93 	be r1,r0,8004898 <_Objects_Extend_information+0x320>
     *  Take the block count down. Saves all the (block_count - 1)    
     *  in the copies.                                                
     */                                                               
    block_count--;                                                    
                                                                      
    if ( information->maximum > minimum_index ) {                     
 8004650:	2d 62 00 10 	lhu r2,(r11+16)                                
    }                                                                 
                                                                      
    /*                                                                
     *  Break the block into the various sections.                    
     */                                                               
    inactive_per_block = (uint32_t *) _Addresses_Add_offset(          
 8004654:	b6 73 a0 00 	add r20,r19,r19                                
 8004658:	b4 34 98 00 	add r19,r1,r20                                 
 800465c:	b6 74 a0 00 	add r20,r19,r20                                
     *  Take the block count down. Saves all the (block_count - 1)    
     *  in the copies.                                                
     */                                                               
    block_count--;                                                    
                                                                      
    if ( information->maximum > minimum_index ) {                     
 8004660:	54 50 00 6d 	bgu r2,r16,8004814 <_Objects_Extend_information+0x29c>
    } else {                                                          
                                                                      
      /*                                                              
       *  Deal with the special case of the 0 to minimum_index        
       */                                                             
      for ( index = 0; index < minimum_index; index++ ) {             
 8004664:	ba 80 20 00 	mv r4,r20                                      
 8004668:	34 03 00 00 	mvi r3,0                                       
 800466c:	46 00 00 05 	be r16,r0,8004680 <_Objects_Extend_information+0x108><== NEVER TAKEN
        local_table[ index ] = NULL;                                  
 8004670:	58 80 00 00 	sw (r4+0),r0                                   
    } else {                                                          
                                                                      
      /*                                                              
       *  Deal with the special case of the 0 to minimum_index        
       */                                                             
      for ( index = 0; index < minimum_index; index++ ) {             
 8004674:	34 63 00 01 	addi r3,r3,1                                   
 8004678:	34 84 00 04 	addi r4,r4,4                                   
 800467c:	56 03 ff fd 	bgu r16,r3,8004670 <_Objects_Extend_information+0xf8><== NEVER TAKEN
 8004680:	b5 ce 70 00 	add r14,r14,r14                                
 8004684:	b5 ce 70 00 	add r14,r14,r14                                
     */                                                               
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
 8004688:	2d 65 00 14 	lhu r5,(r11+20)                                
    }                                                                 
                                                                      
    /*                                                                
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
 800468c:	b6 4e 08 00 	add r1,r18,r14                                 
 8004690:	58 20 00 00 	sw (r1+0),r0                                   
    inactive_per_block[block_count] = 0;                              
 8004694:	b6 6e 70 00 	add r14,r19,r14                                
 8004698:	59 c0 00 00 	sw (r14+0),r0                                  
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
 800469c:	b5 a5 28 00 	add r5,r13,r5                                  
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
 80046a0:	51 a5 00 09 	bgeu r13,r5,80046c4 <_Objects_Extend_information+0x14c><== NEVER TAKEN
 *    information     - object information table                      
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Objects_Extend_information(                                     
 80046a4:	b5 ad 20 00 	add r4,r13,r13                                 
 80046a8:	b4 84 20 00 	add r4,r4,r4                                   
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
 80046ac:	b6 84 20 00 	add r4,r20,r4                                  
 *    information     - object information table                      
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Objects_Extend_information(                                     
 80046b0:	b9 a0 18 00 	mv r3,r13                                      
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
          index++ ) {                                                 
      local_table[ index ] = NULL;                                    
 80046b4:	58 80 00 00 	sw (r4+0),r0                                   
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
          index++ ) {                                                 
 80046b8:	34 63 00 01 	addi r3,r3,1                                   
 80046bc:	34 84 00 04 	addi r4,r4,4                                   
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
 80046c0:	54 a3 ff fd 	bgu r5,r3,80046b4 <_Objects_Extend_information+0x13c>
          index < ( information->allocation_size + index_base );      
          index++ ) {                                                 
      local_table[ index ] = NULL;                                    
    }                                                                 
                                                                      
    _ISR_Disable( level );                                            
 80046c4:	90 00 70 00 	rcsr r14,IE                                    
 80046c8:	34 01 ff fe 	mvi r1,-2                                      
 80046cc:	a1 c1 08 00 	and r1,r14,r1                                  
 80046d0:	d0 01 00 00 	wcsr IE,r1                                     
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
 80046d4:	29 61 00 00 	lw r1,(r11+0)                                  
    old_tables = information->object_blocks;                          
                                                                      
    information->object_blocks = object_blocks;                       
    information->inactive_per_block = inactive_per_block;             
    information->local_table = local_table;                           
    information->maximum = (Objects_Maximum) maximum;                 
 80046d8:	22 31 ff ff 	andi r17,r17,0xffff                            
 80046dc:	0d 71 00 10 	sh (r11+16),r17                                
      local_table[ index ] = NULL;                                    
    }                                                                 
                                                                      
    _ISR_Disable( level );                                            
                                                                      
    old_tables = information->object_blocks;                          
 80046e0:	29 70 00 34 	lw r16,(r11+52)                                
                                                                      
    information->object_blocks = object_blocks;                       
    information->inactive_per_block = inactive_per_block;             
 80046e4:	59 73 00 30 	sw (r11+48),r19                                
                                                                      
    _ISR_Disable( level );                                            
                                                                      
    old_tables = information->object_blocks;                          
                                                                      
    information->object_blocks = object_blocks;                       
 80046e8:	59 72 00 34 	sw (r11+52),r18                                
    information->inactive_per_block = inactive_per_block;             
    information->local_table = local_table;                           
 80046ec:	59 74 00 1c 	sw (r11+28),r20                                
 80046f0:	34 02 00 18 	mvi r2,24                                      
 80046f4:	f8 00 31 d3 	calli 8010e40 <__ashlsi3>                      
 80046f8:	78 12 00 01 	mvhi r18,0x1                                   
 80046fc:	b8 32 90 00 	or r18,r1,r18                                  
         (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |    
 8004700:	2d 61 00 04 	lhu r1,(r11+4)                                 
 8004704:	34 02 00 1b 	mvi r2,27                                      
 8004708:	f8 00 31 ce 	calli 8010e40 <__ashlsi3>                      
 800470c:	ba 41 10 00 	or r2,r18,r1                                   
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
 8004710:	b8 51 88 00 	or r17,r2,r17                                  
    information->maximum = (Objects_Maximum) maximum;                 
    information->maximum_id = _Objects_Build_id(                      
 8004714:	59 71 00 0c 	sw (r11+12),r17                                
        information->the_class,                                       
        _Objects_Local_node,                                          
        information->maximum                                          
      );                                                              
                                                                      
    _ISR_Enable( level );                                             
 8004718:	d0 0e 00 00 	wcsr IE,r14                                    
                                                                      
    _Workspace_Free( old_tables );                                    
 800471c:	ba 00 08 00 	mv r1,r16                                      
 8004720:	f8 00 0a 2c 	calli 8006fd0 <_Workspace_Free>                
  }                                                                   
                                                                      
  /*                                                                  
   *  Assign the new object block to the object block table.          
   */                                                                 
  information->object_blocks[ block ] = new_object_block;             
 8004724:	29 61 00 34 	lw r1,(r11+52)                                 
 8004728:	b5 8c 60 00 	add r12,r12,r12                                
                                                                      
  /*                                                                  
   *  Initialize objects .. add to a local chain first.               
   */                                                                 
  _Chain_Initialize(                                                  
 800472c:	2d 63 00 14 	lhu r3,(r11+20)                                
 8004730:	29 64 00 18 	lw r4,(r11+24)                                 
  }                                                                   
                                                                      
  /*                                                                  
   *  Assign the new object block to the object block table.          
   */                                                                 
  information->object_blocks[ block ] = new_object_block;             
 8004734:	b5 8c 60 00 	add r12,r12,r12                                
 8004738:	b4 2c 08 00 	add r1,r1,r12                                  
                                                                      
  /*                                                                  
   *  Initialize objects .. add to a local chain first.               
   */                                                                 
  _Chain_Initialize(                                                  
 800473c:	37 90 00 30 	addi r16,sp,48                                 
  }                                                                   
                                                                      
  /*                                                                  
   *  Assign the new object block to the object block table.          
   */                                                                 
  information->object_blocks[ block ] = new_object_block;             
 8004740:	58 2f 00 00 	sw (r1+0),r15                                  
                                                                      
  /*                                                                  
   *  Initialize objects .. add to a local chain first.               
   */                                                                 
  _Chain_Initialize(                                                  
 8004744:	b9 e0 10 00 	mv r2,r15                                      
 8004748:	ba 00 08 00 	mv r1,r16                                      
 800474c:	f8 00 13 1a 	calli 80093b4 <_Chain_Initialize>              
 8004750:	78 12 00 01 	mvhi r18,0x1                                   
        information->the_class,                                       
        _Objects_Local_node,                                          
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
 8004754:	35 71 00 20 	addi r17,r11,32                                
  /*                                                                  
   *  Move from the local chain, initialise, then append to the inactive chain
   */                                                                 
  index = index_base;                                                 
                                                                      
  while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
 8004758:	e0 00 00 0e 	bi 8004790 <_Objects_Extend_information+0x218> 
 800475c:	29 61 00 00 	lw r1,(r11+0)                                  
 8004760:	f8 00 31 b8 	calli 8010e40 <__ashlsi3>                      
 8004764:	b8 32 78 00 	or r15,r1,r18                                  
         (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |    
 8004768:	2d 61 00 04 	lhu r1,(r11+4)                                 
 800476c:	34 02 00 1b 	mvi r2,27                                      
 8004770:	f8 00 31 b4 	calli 8010e40 <__ashlsi3>                      
 8004774:	b9 e1 10 00 	or r2,r15,r1                                   
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
 8004778:	b8 4d 10 00 	or r2,r2,r13                                   
                                                                      
    the_object->id = _Objects_Build_id(                               
 800477c:	59 c2 00 08 	sw (r14+8),r2                                  
        information->the_class,                                       
        _Objects_Local_node,                                          
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
 8004780:	ba 20 08 00 	mv r1,r17                                      
 8004784:	b9 c0 10 00 	mv r2,r14                                      
 8004788:	fb ff fc 3d 	calli 800387c <_Chain_Append>                  
                                                                      
    index++;                                                          
 800478c:	35 ad 00 01 	addi r13,r13,1                                 
  /*                                                                  
   *  Move from the local chain, initialise, then append to the inactive chain
   */                                                                 
  index = index_base;                                                 
                                                                      
  while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
 8004790:	ba 00 08 00 	mv r1,r16                                      
 8004794:	fb ff fc 50 	calli 80038d4 <_Chain_Get>                     
 8004798:	b8 20 70 00 	mv r14,r1                                      
 800479c:	34 02 00 18 	mvi r2,24                                      
 80047a0:	5c 20 ff ef 	bne r1,r0,800475c <_Objects_Extend_information+0x1e4>
    _Chain_Append( &information->Inactive, &the_object->Node );       
                                                                      
    index++;                                                          
  }                                                                   
                                                                      
  information->inactive_per_block[ block ] = information->allocation_size;
 80047a4:	29 63 00 30 	lw r3,(r11+48)                                 
  information->inactive =                                             
    (Objects_Maximum)(information->inactive + information->allocation_size);
 80047a8:	2d 62 00 2c 	lhu r2,(r11+44)                                
    _Chain_Append( &information->Inactive, &the_object->Node );       
                                                                      
    index++;                                                          
  }                                                                   
                                                                      
  information->inactive_per_block[ block ] = information->allocation_size;
 80047ac:	2d 61 00 14 	lhu r1,(r11+20)                                
 80047b0:	b4 6c 60 00 	add r12,r3,r12                                 
 80047b4:	59 81 00 00 	sw (r12+0),r1                                  
  information->inactive =                                             
    (Objects_Maximum)(information->inactive + information->allocation_size);
 80047b8:	b4 22 08 00 	add r1,r1,r2                                   
                                                                      
    index++;                                                          
  }                                                                   
                                                                      
  information->inactive_per_block[ block ] = information->allocation_size;
  information->inactive =                                             
 80047bc:	0d 61 00 2c 	sh (r11+44),r1                                 
    (Objects_Maximum)(information->inactive + information->allocation_size);
}                                                                     
 80047c0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80047c4:	2b 8b 00 2c 	lw r11,(sp+44)                                 
 80047c8:	2b 8c 00 28 	lw r12,(sp+40)                                 
 80047cc:	2b 8d 00 24 	lw r13,(sp+36)                                 
 80047d0:	2b 8e 00 20 	lw r14,(sp+32)                                 
 80047d4:	2b 8f 00 1c 	lw r15,(sp+28)                                 
 80047d8:	2b 90 00 18 	lw r16,(sp+24)                                 
 80047dc:	2b 91 00 14 	lw r17,(sp+20)                                 
 80047e0:	2b 92 00 10 	lw r18,(sp+16)                                 
 80047e4:	2b 93 00 0c 	lw r19,(sp+12)                                 
 80047e8:	2b 94 00 08 	lw r20,(sp+8)                                  
 80047ec:	37 9c 00 38 	addi sp,sp,56                                  
 80047f0:	c3 a0 00 00 	ret                                            
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
                                                                      
    for ( ; block < block_count; block++ ) {                          
      if ( information->object_blocks[ block ] == NULL ) {            
 80047f4:	28 62 00 04 	lw r2,(r3+4)                                   
 80047f8:	34 63 00 04 	addi r3,r3,4                                   
 80047fc:	5c 40 ff 7c 	bne r2,r0,80045ec <_Objects_Extend_information+0x74>
        do_extend = false;                                            
 8004800:	34 12 00 00 	mvi r18,0                                      
 8004804:	e3 ff ff 7e 	bi 80045fc <_Objects_Extend_information+0x84>  
  if ( information->auto_extend ) {                                   
    new_object_block = _Workspace_Allocate( block_size );             
    if ( !new_object_block )                                          
      return;                                                         
  } else {                                                            
    new_object_block = _Workspace_Allocate_or_fatal_error( block_size );
 8004808:	f8 00 09 fb 	calli 8006ff4 <_Workspace_Allocate_or_fatal_error>
 800480c:	b8 20 78 00 	mv r15,r1                                      
 8004810:	e3 ff ff 85 	bi 8004624 <_Objects_Extend_information+0xac>  
      /*                                                              
       *  Copy each section of the table over. This has to be performed as
       *  separate parts as size of each block has changed.           
       */                                                             
                                                                      
      memcpy( object_blocks,                                          
 8004814:	29 62 00 34 	lw r2,(r11+52)                                 
              information->object_blocks,                             
              block_count * sizeof(void*) );                          
 8004818:	b5 ce 70 00 	add r14,r14,r14                                
 800481c:	b5 ce 70 00 	add r14,r14,r14                                
      /*                                                              
       *  Copy each section of the table over. This has to be performed as
       *  separate parts as size of each block has changed.           
       */                                                             
                                                                      
      memcpy( object_blocks,                                          
 8004820:	b9 c0 18 00 	mv r3,r14                                      
 8004824:	f8 00 1f 4f 	calli 800c560 <memcpy>                         
              information->object_blocks,                             
              block_count * sizeof(void*) );                          
      memcpy( inactive_per_block,                                     
 8004828:	29 62 00 30 	lw r2,(r11+48)                                 
 800482c:	b9 c0 18 00 	mv r3,r14                                      
 8004830:	ba 60 08 00 	mv r1,r19                                      
 8004834:	f8 00 1f 4b 	calli 800c560 <memcpy>                         
              information->inactive_per_block,                        
              block_count * sizeof(uint32_t) );                       
      memcpy( local_table,                                            
              information->local_table,                               
              (information->maximum + minimum_index) * sizeof(Objects_Control *) );
 8004838:	2d 63 00 10 	lhu r3,(r11+16)                                
              information->object_blocks,                             
              block_count * sizeof(void*) );                          
      memcpy( inactive_per_block,                                     
              information->inactive_per_block,                        
              block_count * sizeof(uint32_t) );                       
      memcpy( local_table,                                            
 800483c:	29 62 00 1c 	lw r2,(r11+28)                                 
 8004840:	ba 80 08 00 	mv r1,r20                                      
              information->local_table,                               
              (information->maximum + minimum_index) * sizeof(Objects_Control *) );
 8004844:	b6 03 18 00 	add r3,r16,r3                                  
 8004848:	b4 63 18 00 	add r3,r3,r3                                   
 800484c:	b4 63 18 00 	add r3,r3,r3                                   
              information->object_blocks,                             
              block_count * sizeof(void*) );                          
      memcpy( inactive_per_block,                                     
              information->inactive_per_block,                        
              block_count * sizeof(uint32_t) );                       
      memcpy( local_table,                                            
 8004850:	f8 00 1f 44 	calli 800c560 <memcpy>                         
 8004854:	e3 ff ff 8d 	bi 8004688 <_Objects_Extend_information+0x110> 
  minimum_index = _Objects_Get_index( information->minimum_id );      
  index_base    = minimum_index;                                      
  block         = 0;                                                  
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
 8004858:	2c 31 00 10 	lhu r17,(r1+16)                                
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
  minimum_index = _Objects_Get_index( information->minimum_id );      
 800485c:	ba 00 68 00 	mv r13,r16                                     
  index_base    = minimum_index;                                      
  block         = 0;                                                  
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
 8004860:	2c 21 00 14 	lhu r1,(r1+20)                                 
                                                                      
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
 8004864:	34 12 00 01 	mvi r18,1                                      
  index_base    = minimum_index;                                      
  block         = 0;                                                  
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
    block_count = 0;                                                  
 8004868:	34 0e 00 00 	mvi r14,0                                      
 800486c:	e3 ff ff 64 	bi 80045fc <_Objects_Extend_information+0x84>  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
                                                                      
    for ( ; block < block_count; block++ ) {                          
 8004870:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
  minimum_index = _Objects_Get_index( information->minimum_id );      
 8004874:	ba 00 68 00 	mv r13,r16                                     <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
 8004878:	34 12 00 01 	mvi r18,1                                      <== NOT EXECUTED
  minimum_index = _Objects_Get_index( information->minimum_id );      
  index_base    = minimum_index;                                      
  block         = 0;                                                  
 800487c:	34 0c 00 00 	mvi r12,0                                      <== NOT EXECUTED
 8004880:	e3 ff ff 5f 	bi 80045fc <_Objects_Extend_information+0x84>  <== NOT EXECUTED
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
                                                                      
    for ( ; block < block_count; block++ ) {                          
      if ( information->object_blocks[ block ] == NULL ) {            
 8004884:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
  minimum_index = _Objects_Get_index( information->minimum_id );      
 8004888:	ba 00 68 00 	mv r13,r16                                     <== NOT EXECUTED
  else {                                                              
    block_count = information->maximum / information->allocation_size;
                                                                      
    for ( ; block < block_count; block++ ) {                          
      if ( information->object_blocks[ block ] == NULL ) {            
        do_extend = false;                                            
 800488c:	34 12 00 00 	mvi r18,0                                      <== NOT EXECUTED
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
  minimum_index = _Objects_Get_index( information->minimum_id );      
  index_base    = minimum_index;                                      
  block         = 0;                                                  
 8004890:	34 0c 00 00 	mvi r12,0                                      <== NOT EXECUTED
 8004894:	e3 ff ff 5a 	bi 80045fc <_Objects_Extend_information+0x84>  <== NOT EXECUTED
           (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
          ((maximum + minimum_index) * sizeof(Objects_Control *));    
    object_blocks = (void**) _Workspace_Allocate( block_size );       
                                                                      
    if ( !object_blocks ) {                                           
      _Workspace_Free( new_object_block );                            
 8004898:	b9 e0 08 00 	mv r1,r15                                      
 800489c:	f8 00 09 cd 	calli 8006fd0 <_Workspace_Free>                
      return;                                                         
 80048a0:	e3 ff ff c8 	bi 80047c0 <_Objects_Extend_information+0x248> 
                                                                      

0800498c <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint16_t the_class ) {
 800498c:	37 9c ff f0 	addi sp,sp,-16                                 
 8004990:	5b 8b 00 10 	sw (sp+16),r11                                 
 8004994:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8004998:	5b 8d 00 08 	sw (sp+8),r13                                  
 800499c:	5b 9d 00 04 	sw (sp+4),ra                                   
 80049a0:	20 4c ff ff 	andi r12,r2,0xffff                             
 80049a4:	b8 20 68 00 	mv r13,r1                                      
  Objects_Information *info;                                          
  int the_class_api_maximum;                                          
                                                                      
  if ( !the_class )                                                   
    return NULL;                                                      
 80049a8:	34 0b 00 00 	mvi r11,0                                      
)                                                                     
{                                                                     
  Objects_Information *info;                                          
  int the_class_api_maximum;                                          
                                                                      
  if ( !the_class )                                                   
 80049ac:	5d 80 00 08 	bne r12,r0,80049cc <_Objects_Get_information+0x40>
    if ( info->maximum == 0 )                                         
      return NULL;                                                    
  #endif                                                              
                                                                      
  return info;                                                        
}                                                                     
 80049b0:	b9 60 08 00 	mv r1,r11                                      
 80049b4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80049b8:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80049bc:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80049c0:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80049c4:	37 9c 00 10 	addi sp,sp,16                                  
 80049c8:	c3 a0 00 00 	ret                                            
                                                                      
  /*                                                                  
   *  This call implicitly validates the_api so we do not call        
   *  _Objects_Is_api_valid above here.                               
   */                                                                 
  the_class_api_maximum = _Objects_API_maximum_class( the_api );      
 80049cc:	f8 00 14 18 	calli 8009a2c <_Objects_API_maximum_class>     
  if ( the_class_api_maximum == 0 )                                   
 80049d0:	44 20 ff f8 	be r1,r0,80049b0 <_Objects_Get_information+0x24>
    return NULL;                                                      
                                                                      
  if ( the_class > (uint32_t) the_class_api_maximum )                 
 80049d4:	55 81 ff f7 	bgu r12,r1,80049b0 <_Objects_Get_information+0x24>
    return NULL;                                                      
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
 80049d8:	78 01 08 01 	mvhi r1,0x801                                  
 80049dc:	b5 ad 68 00 	add r13,r13,r13                                
 80049e0:	38 21 38 24 	ori r1,r1,0x3824                               
 80049e4:	b5 ad 68 00 	add r13,r13,r13                                
 80049e8:	b4 2d 08 00 	add r1,r1,r13                                  
 80049ec:	28 21 00 00 	lw r1,(r1+0)                                   
 80049f0:	44 20 ff f0 	be r1,r0,80049b0 <_Objects_Get_information+0x24><== NEVER TAKEN
    return NULL;                                                      
                                                                      
  info = _Objects_Information_table[ the_api ][ the_class ];          
 80049f4:	b5 8c 60 00 	add r12,r12,r12                                
 80049f8:	b5 8c 60 00 	add r12,r12,r12                                
 80049fc:	b4 2c 08 00 	add r1,r1,r12                                  
 8004a00:	28 2b 00 00 	lw r11,(r1+0)                                  
  if ( !info )                                                        
 8004a04:	45 60 ff eb 	be r11,r0,80049b0 <_Objects_Get_information+0x24><== NEVER TAKEN
   *  In a multprocessing configuration, we may access remote objects.
   *  Thus we may have 0 local instances and still have a valid object
   *  pointer.                                                        
   */                                                                 
  #if !defined(RTEMS_MULTIPROCESSING)                                 
    if ( info->maximum == 0 )                                         
 8004a08:	2d 61 00 10 	lhu r1,(r11+16)                                
      return NULL;                                                    
 8004a0c:	7c 21 00 00 	cmpnei r1,r1,0                                 
 8004a10:	c8 01 08 00 	sub r1,r0,r1                                   
 8004a14:	a1 61 58 00 	and r11,r11,r1                                 
 8004a18:	e3 ff ff e6 	bi 80049b0 <_Objects_Get_information+0x24>     
                                                                      

08006a08 <_Objects_Get_name_as_string>: char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) {
 8006a08:	37 9c ff dc 	addi sp,sp,-36                                 
 8006a0c:	5b 8b 00 18 	sw (sp+24),r11                                 
 8006a10:	5b 8c 00 14 	sw (sp+20),r12                                 
 8006a14:	5b 8d 00 10 	sw (sp+16),r13                                 
 8006a18:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8006a1c:	5b 8f 00 08 	sw (sp+8),r15                                  
 8006a20:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006a24:	b8 40 60 00 	mv r12,r2                                      
 8006a28:	b8 60 58 00 	mv r11,r3                                      
  char                   lname[5];                                    
  Objects_Control       *the_object;                                  
  Objects_Locations      location;                                    
  Objects_Id             tmpId;                                       
                                                                      
  if ( length == 0 )                                                  
 8006a2c:	5c 40 00 0b 	bne r2,r0,8006a58 <_Objects_Get_name_as_string+0x50>
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:                                              
      /* not supported */                                             
#endif                                                                
    case OBJECTS_ERROR:                                               
      return NULL;                                                    
 8006a30:	34 0b 00 00 	mvi r11,0                                      
                                                                      
      _Thread_Enable_dispatch();                                      
      return name;                                                    
  }                                                                   
  return NULL;                  /* unreachable path */                
}                                                                     
 8006a34:	b9 60 08 00 	mv r1,r11                                      
 8006a38:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006a3c:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8006a40:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8006a44:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8006a48:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8006a4c:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8006a50:	37 9c 00 24 	addi sp,sp,36                                  
 8006a54:	c3 a0 00 00 	ret                                            
  Objects_Id             tmpId;                                       
                                                                      
  if ( length == 0 )                                                  
    return NULL;                                                      
                                                                      
  if ( name == NULL )                                                 
 8006a58:	44 60 ff f7 	be r3,r0,8006a34 <_Objects_Get_name_as_string+0x2c>
    return NULL;                                                      
                                                                      
  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
 8006a5c:	b8 20 68 00 	mv r13,r1                                      
 8006a60:	5c 20 00 05 	bne r1,r0,8006a74 <_Objects_Get_name_as_string+0x6c>
 8006a64:	78 01 08 02 	mvhi r1,0x802                                  
 8006a68:	38 21 0e 80 	ori r1,r1,0xe80                                
 8006a6c:	28 21 00 0c 	lw r1,(r1+12)                                  
 8006a70:	28 2d 00 08 	lw r13,(r1+8)                                  
                                                                      
  information = _Objects_Get_information_id( tmpId );                 
 8006a74:	b9 a0 08 00 	mv r1,r13                                      
 8006a78:	fb ff ff 92 	calli 80068c0 <_Objects_Get_information_id>    
  if ( !information )                                                 
 8006a7c:	44 20 ff ed 	be r1,r0,8006a30 <_Objects_Get_name_as_string+0x28>
    return NULL;                                                      
                                                                      
  the_object = _Objects_Get( information, tmpId, &location );         
 8006a80:	b9 a0 10 00 	mv r2,r13                                      
 8006a84:	37 83 00 24 	addi r3,sp,36                                  
 8006a88:	f8 00 00 31 	calli 8006b4c <_Objects_Get>                   
  switch ( location ) {                                               
 8006a8c:	2b 8f 00 24 	lw r15,(sp+36)                                 
 8006a90:	5d e0 ff e8 	bne r15,r0,8006a30 <_Objects_Get_name_as_string+0x28>
        if ( information->is_string ) {                               
          s = the_object->name.name_p;                                
        } else                                                        
      #endif                                                          
      {                                                               
        uint32_t  u32_name = (uint32_t) the_object->name.name_u32;    
 8006a94:	28 2d 00 0c 	lw r13,(r1+12)                                 
                                                                      
        lname[ 0 ] = (u32_name >> 24) & 0xff;                         
 8006a98:	34 02 00 18 	mvi r2,24                                      
        s = lname;                                                    
      }                                                               
                                                                      
      d = name;                                                       
      if ( s ) {                                                      
        for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {            
 8006a9c:	35 8c ff ff 	addi r12,r12,-1                                
        } else                                                        
      #endif                                                          
      {                                                               
        uint32_t  u32_name = (uint32_t) the_object->name.name_u32;    
                                                                      
        lname[ 0 ] = (u32_name >> 24) & 0xff;                         
 8006aa0:	b9 a0 08 00 	mv r1,r13                                      
 8006aa4:	fb ff e9 c2 	calli 80011ac <__lshrsi3>                      
 8006aa8:	20 2e 00 ff 	andi r14,r1,0xff                               
        lname[ 1 ] = (u32_name >> 16) & 0xff;                         
 8006aac:	34 02 00 10 	mvi r2,16                                      
 8006ab0:	b9 a0 08 00 	mv r1,r13                                      
        } else                                                        
      #endif                                                          
      {                                                               
        uint32_t  u32_name = (uint32_t) the_object->name.name_u32;    
                                                                      
        lname[ 0 ] = (u32_name >> 24) & 0xff;                         
 8006ab4:	33 8e 00 1c 	sb (sp+28),r14                                 
        lname[ 1 ] = (u32_name >> 16) & 0xff;                         
 8006ab8:	fb ff e9 bd 	calli 80011ac <__lshrsi3>                      
        lname[ 2 ] = (u32_name >>  8) & 0xff;                         
 8006abc:	01 a4 00 01 	srui r4,r13,1                                  
      #endif                                                          
      {                                                               
        uint32_t  u32_name = (uint32_t) the_object->name.name_u32;    
                                                                      
        lname[ 0 ] = (u32_name >> 24) & 0xff;                         
        lname[ 1 ] = (u32_name >> 16) & 0xff;                         
 8006ac0:	33 81 00 1d 	sb (sp+29),r1                                  
        lname[ 2 ] = (u32_name >>  8) & 0xff;                         
 8006ac4:	00 84 00 01 	srui r4,r4,1                                   
        lname[ 3 ] = (u32_name >>  0) & 0xff;                         
 8006ac8:	33 8d 00 1f 	sb (sp+31),r13                                 
      {                                                               
        uint32_t  u32_name = (uint32_t) the_object->name.name_u32;    
                                                                      
        lname[ 0 ] = (u32_name >> 24) & 0xff;                         
        lname[ 1 ] = (u32_name >> 16) & 0xff;                         
        lname[ 2 ] = (u32_name >>  8) & 0xff;                         
 8006acc:	00 84 00 01 	srui r4,r4,1                                   
        lname[ 3 ] = (u32_name >>  0) & 0xff;                         
        lname[ 4 ] = '\0';                                            
 8006ad0:	33 80 00 20 	sb (sp+32),r0                                  
      {                                                               
        uint32_t  u32_name = (uint32_t) the_object->name.name_u32;    
                                                                      
        lname[ 0 ] = (u32_name >> 24) & 0xff;                         
        lname[ 1 ] = (u32_name >> 16) & 0xff;                         
        lname[ 2 ] = (u32_name >>  8) & 0xff;                         
 8006ad4:	00 84 00 01 	srui r4,r4,1                                   
        s = lname;                                                    
      }                                                               
                                                                      
      d = name;                                                       
      if ( s ) {                                                      
        for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {            
 8006ad8:	b9 60 18 00 	mv r3,r11                                      
      {                                                               
        uint32_t  u32_name = (uint32_t) the_object->name.name_u32;    
                                                                      
        lname[ 0 ] = (u32_name >> 24) & 0xff;                         
        lname[ 1 ] = (u32_name >> 16) & 0xff;                         
        lname[ 2 ] = (u32_name >>  8) & 0xff;                         
 8006adc:	00 84 00 01 	srui r4,r4,1                                   
 8006ae0:	00 84 00 01 	srui r4,r4,1                                   
 8006ae4:	00 84 00 01 	srui r4,r4,1                                   
 8006ae8:	00 84 00 01 	srui r4,r4,1                                   
 8006aec:	33 84 00 1e 	sb (sp+30),r4                                  
        s = lname;                                                    
      }                                                               
                                                                      
      d = name;                                                       
      if ( s ) {                                                      
        for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {            
 8006af0:	45 8f 00 14 	be r12,r15,8006b40 <_Objects_Get_name_as_string+0x138><== NEVER TAKEN
 8006af4:	45 c0 00 13 	be r14,r0,8006b40 <_Objects_Get_name_as_string+0x138><== NEVER TAKEN
 8006af8:	78 04 08 02 	mvhi r4,0x802                                  
 8006afc:	b9 c0 10 00 	mv r2,r14                                      
 8006b00:	34 01 00 00 	mvi r1,0                                       
 8006b04:	38 84 01 ec 	ori r4,r4,0x1ec                                
 *  This method objects the name of an object and returns its name    
 *  in the form of a C string.  It attempts to be careful about       
 *  overflowing the user's string and about returning unprintable characters.
 */                                                                   
                                                                      
char *_Objects_Get_name_as_string(                                    
 8006b08:	37 87 00 1c 	addi r7,sp,28                                  
      }                                                               
                                                                      
      d = name;                                                       
      if ( s ) {                                                      
        for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {            
          *d = (isprint((unsigned char)*s)) ? *s : '*';               
 8006b0c:	28 85 00 00 	lw r5,(r4+0)                                   
        s = lname;                                                    
      }                                                               
                                                                      
      d = name;                                                       
      if ( s ) {                                                      
        for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {            
 8006b10:	34 21 00 01 	addi r1,r1,1                                   
 *  This method objects the name of an object and returns its name    
 *  in the form of a C string.  It attempts to be careful about       
 *  overflowing the user's string and about returning unprintable characters.
 */                                                                   
                                                                      
char *_Objects_Get_name_as_string(                                    
 8006b14:	b4 e1 30 00 	add r6,r7,r1                                   
      }                                                               
                                                                      
      d = name;                                                       
      if ( s ) {                                                      
        for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {            
          *d = (isprint((unsigned char)*s)) ? *s : '*';               
 8006b18:	b4 a2 28 00 	add r5,r5,r2                                   
 8006b1c:	40 a5 00 01 	lbu r5,(r5+1)                                  
 8006b20:	20 a5 00 97 	andi r5,r5,0x97                                
 8006b24:	5c a0 00 02 	bne r5,r0,8006b2c <_Objects_Get_name_as_string+0x124>
 8006b28:	34 02 00 2a 	mvi r2,42                                      
 8006b2c:	30 62 00 00 	sb (r3+0),r2                                   
        s = lname;                                                    
      }                                                               
                                                                      
      d = name;                                                       
      if ( s ) {                                                      
        for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {            
 8006b30:	34 63 00 01 	addi r3,r3,1                                   
 8006b34:	50 2c 00 03 	bgeu r1,r12,8006b40 <_Objects_Get_name_as_string+0x138>
 8006b38:	40 c2 00 00 	lbu r2,(r6+0)                                  
 8006b3c:	5c 40 ff f4 	bne r2,r0,8006b0c <_Objects_Get_name_as_string+0x104>
          *d = (isprint((unsigned char)*s)) ? *s : '*';               
        }                                                             
      }                                                               
      *d = '\0';                                                      
 8006b40:	30 60 00 00 	sb (r3+0),r0                                   
                                                                      
      _Thread_Enable_dispatch();                                      
 8006b44:	f8 00 03 a5 	calli 80079d8 <_Thread_Enable_dispatch>        
      return name;                                                    
 8006b48:	e3 ff ff bb 	bi 8006a34 <_Objects_Get_name_as_string+0x2c>  
                                                                      

0801759c <_Objects_Get_no_protection>: /* * You can't just extract the index portion or you can get tricked * by a value between 1 and maximum. */ index = id - information->minimum_id + 1;
 801759c:	28 25 00 08 	lw r5,(r1+8)                                   
                                                                      
  if ( information->maximum >= index ) {                              
 80175a0:	2c 24 00 10 	lhu r4,(r1+16)                                 
                                                                      
  /*                                                                  
   * You can't just extract the index portion or you can get tricked  
   * by a value between 1 and maximum.                                
   */                                                                 
  index = id - information->minimum_id + 1;                           
 80175a4:	c8 45 10 00 	sub r2,r2,r5                                   
 80175a8:	34 42 00 01 	addi r2,r2,1                                   
                                                                      
  if ( information->maximum >= index ) {                              
 80175ac:	54 44 00 09 	bgu r2,r4,80175d0 <_Objects_Get_no_protection+0x34>
    if ( (the_object = information->local_table[ index ]) != NULL ) { 
 80175b0:	28 24 00 1c 	lw r4,(r1+28)                                  
 80175b4:	b4 42 08 00 	add r1,r2,r2                                   
 80175b8:	b4 21 08 00 	add r1,r1,r1                                   
 80175bc:	b4 81 08 00 	add r1,r4,r1                                   
 80175c0:	28 21 00 00 	lw r1,(r1+0)                                   
 80175c4:	44 20 00 03 	be r1,r0,80175d0 <_Objects_Get_no_protection+0x34><== NEVER TAKEN
      *location = OBJECTS_LOCAL;                                      
 80175c8:	58 60 00 00 	sw (r3+0),r0                                   
      return the_object;                                              
 80175cc:	c3 a0 00 00 	ret                                            
                                                                      
  /*                                                                  
   *  This isn't supported or required yet for Global objects so      
   *  if it isn't local, we don't find it.                            
   */                                                                 
  *location = OBJECTS_ERROR;                                          
 80175d0:	34 01 00 01 	mvi r1,1                                       
 80175d4:	58 61 00 00 	sw (r3+0),r1                                   
  return NULL;                                                        
 80175d8:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 80175dc:	c3 a0 00 00 	ret                                            
                                                                      

08006524 <_Objects_Id_to_name>: */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) {
 8006524:	37 9c ff e8 	addi sp,sp,-24                                 
 8006528:	5b 8b 00 14 	sw (sp+20),r11                                 
 800652c:	5b 8c 00 10 	sw (sp+16),r12                                 
 8006530:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8006534:	5b 8e 00 08 	sw (sp+8),r14                                  
 8006538:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
  /*                                                                  
   *  Caller is trusted for name != NULL.                             
   */                                                                 
                                                                      
  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
 800653c:	b8 20 58 00 	mv r11,r1                                      
 */                                                                   
Objects_Name_or_id_lookup_errors _Objects_Id_to_name (                
  Objects_Id      id,                                                 
  Objects_Name   *name                                                
)                                                                     
{                                                                     
 8006540:	b8 40 70 00 	mv r14,r2                                      
                                                                      
  /*                                                                  
   *  Caller is trusted for name != NULL.                             
   */                                                                 
                                                                      
  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
 8006544:	5c 20 00 05 	bne r1,r0,8006558 <_Objects_Id_to_name+0x34>   
 8006548:	78 01 08 01 	mvhi r1,0x801                                  
 800654c:	38 21 fa 88 	ori r1,r1,0xfa88                               
 8006550:	28 21 00 0c 	lw r1,(r1+12)                                  
 8006554:	28 2b 00 08 	lw r11,(r1+8)                                  
 */                                                                   
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(                   
  Objects_Id id                                                       
)                                                                     
{                                                                     
  return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
 8006558:	b9 60 08 00 	mv r1,r11                                      
 800655c:	34 02 00 18 	mvi r2,24                                      
 8006560:	f8 00 54 a5 	calli 801b7f4 <__lshrsi3>                      
 8006564:	20 23 00 07 	andi r3,r1,0x7                                 
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(                      
  uint32_t   the_api                                                  
)                                                                     
{                                                                     
  if ( !the_api || the_api > OBJECTS_APIS_LAST )                      
 8006568:	34 64 ff ff 	addi r4,r3,-1                                  
 800656c:	34 01 00 02 	mvi r1,2                                       
                                                                      
  the_api = _Objects_Get_API( tmpId );                                
  if ( !_Objects_Is_api_valid( the_api ) )                            
    return OBJECTS_INVALID_ID;                                        
 8006570:	34 0c 00 03 	mvi r12,3                                      
 8006574:	54 81 00 18 	bgu r4,r1,80065d4 <_Objects_Id_to_name+0xb0>   
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
 8006578:	78 04 08 01 	mvhi r4,0x801                                  
 800657c:	b4 63 18 00 	add r3,r3,r3                                   
 8006580:	38 84 f8 84 	ori r4,r4,0xf884                               
 8006584:	b4 63 18 00 	add r3,r3,r3                                   
 8006588:	b4 83 18 00 	add r3,r4,r3                                   
 800658c:	28 6d 00 00 	lw r13,(r3+0)                                  
 8006590:	45 a0 00 11 	be r13,r0,80065d4 <_Objects_Id_to_name+0xb0>   
 */                                                                   
RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class(                     
  Objects_Id id                                                       
)                                                                     
{                                                                     
  return (uint32_t)                                                   
 8006594:	b9 60 08 00 	mv r1,r11                                      
 8006598:	34 02 00 1b 	mvi r2,27                                      
 800659c:	f8 00 54 96 	calli 801b7f4 <__lshrsi3>                      
    return OBJECTS_INVALID_ID;                                        
                                                                      
  the_class = _Objects_Get_class( tmpId );                            
                                                                      
  information = _Objects_Information_table[ the_api ][ the_class ];   
 80065a0:	b4 21 18 00 	add r3,r1,r1                                   
 80065a4:	b4 63 18 00 	add r3,r3,r3                                   
 80065a8:	b5 a3 18 00 	add r3,r13,r3                                  
 80065ac:	28 61 00 00 	lw r1,(r3+0)                                   
  if ( !information )                                                 
 80065b0:	44 20 00 09 	be r1,r0,80065d4 <_Objects_Id_to_name+0xb0>    <== NEVER TAKEN
  #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)                 
    if ( information->is_string )                                     
      return OBJECTS_INVALID_ID;                                      
  #endif                                                              
                                                                      
  the_object = _Objects_Get( information, tmpId, &ignored_location ); 
 80065b4:	b9 60 10 00 	mv r2,r11                                      
 80065b8:	37 83 00 18 	addi r3,sp,24                                  
 80065bc:	fb ff ff b4 	calli 800648c <_Objects_Get>                   
  if ( !the_object )                                                  
 80065c0:	44 20 00 05 	be r1,r0,80065d4 <_Objects_Id_to_name+0xb0>    
    return OBJECTS_INVALID_ID;                                        
                                                                      
  *name = the_object->name;                                           
 80065c4:	28 21 00 0c 	lw r1,(r1+12)                                  
  _Thread_Enable_dispatch();                                          
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
 80065c8:	34 0c 00 00 	mvi r12,0                                      
                                                                      
  the_object = _Objects_Get( information, tmpId, &ignored_location ); 
  if ( !the_object )                                                  
    return OBJECTS_INVALID_ID;                                        
                                                                      
  *name = the_object->name;                                           
 80065cc:	59 c1 00 00 	sw (r14+0),r1                                  
  _Thread_Enable_dispatch();                                          
 80065d0:	f8 00 03 d2 	calli 8007518 <_Thread_Enable_dispatch>        
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
}                                                                     
 80065d4:	b9 80 08 00 	mv r1,r12                                      
 80065d8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80065dc:	2b 8b 00 14 	lw r11,(sp+20)                                 
 80065e0:	2b 8c 00 10 	lw r12,(sp+16)                                 
 80065e4:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 80065e8:	2b 8e 00 08 	lw r14,(sp+8)                                  
 80065ec:	37 9c 00 18 	addi sp,sp,24                                  
 80065f0:	c3 a0 00 00 	ret                                            
                                                                      

08004b20 <_Objects_Initialize_information>: , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) {
 8004b20:	37 9c ff e8 	addi sp,sp,-24                                 
 8004b24:	5b 8b 00 18 	sw (sp+24),r11                                 
 8004b28:	5b 8c 00 14 	sw (sp+20),r12                                 
 8004b2c:	5b 8d 00 10 	sw (sp+16),r13                                 
 8004b30:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8004b34:	5b 8f 00 08 	sw (sp+8),r15                                  
 8004b38:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004b3c:	b8 40 68 00 	mv r13,r2                                      
  information->maximum = 0;                                           
                                                                      
  /*                                                                  
   *  Register this Object Class in the Object Information Table.     
   */                                                                 
  _Objects_Information_table[ the_api ][ the_class ] = information;   
 8004b40:	b5 ad 30 00 	add r6,r13,r13                                 
 8004b44:	78 02 08 01 	mvhi r2,0x801                                  
 8004b48:	38 42 38 24 	ori r2,r2,0x3824                               
 8004b4c:	b4 c6 30 00 	add r6,r6,r6                                   
 8004b50:	b4 46 30 00 	add r6,r2,r6                                   
 8004b54:	28 c2 00 00 	lw r2,(r6+0)                                   
  ,                                                                   
  bool                 supports_global,                               
  Objects_Thread_queue_Extract_callout extract                        
#endif                                                                
)                                                                     
{                                                                     
 8004b58:	20 6c ff ff 	andi r12,r3,0xffff                             
  information->maximum = 0;                                           
                                                                      
  /*                                                                  
   *  Register this Object Class in the Object Information Table.     
   */                                                                 
  _Objects_Information_table[ the_api ][ the_class ] = information;   
 8004b5c:	b5 8c 30 00 	add r6,r12,r12                                 
  ,                                                                   
  bool                 supports_global,                               
  Objects_Thread_queue_Extract_callout extract                        
#endif                                                                
)                                                                     
{                                                                     
 8004b60:	20 a5 ff ff 	andi r5,r5,0xffff                              
  information->maximum = 0;                                           
                                                                      
  /*                                                                  
   *  Register this Object Class in the Object Information Table.     
   */                                                                 
  _Objects_Information_table[ the_api ][ the_class ] = information;   
 8004b64:	b4 c6 30 00 	add r6,r6,r6                                   
  uint32_t                maximum_per_allocation;                     
  #if defined(RTEMS_MULTIPROCESSING)                                  
    uint32_t              index;                                      
  #endif                                                              
                                                                      
  information->the_api            = the_api;                          
 8004b68:	58 2d 00 00 	sw (r1+0),r13                                  
  information->the_class          = the_class;                        
 8004b6c:	0c 2c 00 04 	sh (r1+4),r12                                  
  information->size               = size;                             
 8004b70:	58 25 00 18 	sw (r1+24),r5                                  
  information->local_table        = 0;                                
 8004b74:	58 20 00 1c 	sw (r1+28),r0                                  
  information->inactive_per_block = 0;                                
 8004b78:	58 20 00 30 	sw (r1+48),r0                                  
  information->object_blocks      = 0;                                
 8004b7c:	58 20 00 34 	sw (r1+52),r0                                  
  information->inactive           = 0;                                
 8004b80:	0c 20 00 2c 	sh (r1+44),r0                                  
                                                                      
  /*                                                                  
   *  Set the maximum value to 0. It will be updated when objects are 
   *  added to the inactive set from _Objects_Extend_information()    
   */                                                                 
  information->maximum = 0;                                           
 8004b84:	0c 20 00 10 	sh (r1+16),r0                                  
                                                                      
  /*                                                                  
   *  Register this Object Class in the Object Information Table.     
   */                                                                 
  _Objects_Information_table[ the_api ][ the_class ] = information;   
 8004b88:	b4 46 30 00 	add r6,r2,r6                                   
  ,                                                                   
  bool                 supports_global,                               
  Objects_Thread_queue_Extract_callout extract                        
#endif                                                                
)                                                                     
{                                                                     
 8004b8c:	b8 20 58 00 	mv r11,r1                                      
  information->maximum = 0;                                           
                                                                      
  /*                                                                  
   *  Register this Object Class in the Object Information Table.     
   */                                                                 
  _Objects_Information_table[ the_api ][ the_class ] = information;   
 8004b90:	58 c1 00 00 	sw (r6+0),r1                                   
                                                                      
  /*                                                                  
   *  Are we operating in limited or unlimited (e.g. auto-extend) mode.
   */                                                                 
  information->auto_extend =                                          
        (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;         
 8004b94:	34 02 00 1f 	mvi r2,31                                      
 8004b98:	b8 80 08 00 	mv r1,r4                                       
  ,                                                                   
  bool                 supports_global,                               
  Objects_Thread_queue_Extract_callout extract                        
#endif                                                                
)                                                                     
{                                                                     
 8004b9c:	b8 80 70 00 	mv r14,r4                                      
 8004ba0:	b8 e0 78 00 	mv r15,r7                                      
                                                                      
  /*                                                                  
   *  Are we operating in limited or unlimited (e.g. auto-extend) mode.
   */                                                                 
  information->auto_extend =                                          
        (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;         
 8004ba4:	f8 00 30 f5 	calli 8010f78 <__lshrsi3>                      
  maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS;      
 8004ba8:	78 03 08 01 	mvhi r3,0x801                                  
 8004bac:	38 63 23 b8 	ori r3,r3,0x23b8                               
                                                                      
  /*                                                                  
   *  Are we operating in limited or unlimited (e.g. auto-extend) mode.
   */                                                                 
  information->auto_extend =                                          
        (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;         
 8004bb0:	20 22 00 ff 	andi r2,r1,0xff                                
  maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS;      
 8004bb4:	28 61 00 00 	lw r1,(r3+0)                                   
  _Objects_Information_table[ the_api ][ the_class ] = information;   
                                                                      
  /*                                                                  
   *  Are we operating in limited or unlimited (e.g. auto-extend) mode.
   */                                                                 
  information->auto_extend =                                          
 8004bb8:	31 62 00 12 	sb (r11+18),r2                                 
        (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;         
  maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS;      
 8004bbc:	a1 c1 70 00 	and r14,r14,r1                                 
                                                                      
  /*                                                                  
   *  Unlimited and maximum of zero is illogical.                     
   */                                                                 
  if ( information->auto_extend && maximum_per_allocation == 0) {     
 8004bc0:	44 40 00 02 	be r2,r0,8004bc8 <_Objects_Initialize_information+0xa8>
 8004bc4:	45 c0 00 22 	be r14,r0,8004c4c <_Objects_Initialize_information+0x12c><== NEVER TAKEN
  information->allocation_size = maximum_per_allocation;              
                                                                      
  /*                                                                  
   *  Provide a null local table entry for the case of any empty table.
   */                                                                 
  information->local_table = &null_local_table;                       
 8004bc8:	78 01 08 01 	mvhi r1,0x801                                  
 8004bcc:	38 21 36 98 	ori r1,r1,0x3698                               
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
 8004bd0:	34 02 00 18 	mvi r2,24                                      
 8004bd4:	59 61 00 1c 	sw (r11+28),r1                                 
  }                                                                   
                                                                      
  /*                                                                  
   *  The allocation unit is the maximum value                        
   */                                                                 
  information->allocation_size = maximum_per_allocation;              
 8004bd8:	0d 6e 00 14 	sh (r11+20),r14                                
 8004bdc:	b9 a0 08 00 	mv r1,r13                                      
 8004be0:	f8 00 30 98 	calli 8010e40 <__ashlsi3>                      
 8004be4:	78 0d 00 01 	mvhi r13,0x1                                   
 8004be8:	b8 2d 68 00 	or r13,r1,r13                                  
         (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |    
 8004bec:	34 02 00 1b 	mvi r2,27                                      
 8004bf0:	b9 80 08 00 	mv r1,r12                                      
 8004bf4:	f8 00 30 93 	calli 8010e40 <__ashlsi3>                      
  information->local_table = &null_local_table;                       
                                                                      
  /*                                                                  
   *  Calculate minimum and maximum Id's                              
   */                                                                 
  minimum_index = (maximum_per_allocation == 0) ? 0 : 1;              
 8004bf8:	7d c2 00 00 	cmpnei r2,r14,0                                
 8004bfc:	b9 a1 08 00 	or r1,r13,r1                                   
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
 8004c00:	b8 22 08 00 	or r1,r1,r2                                    
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
 8004c04:	35 63 00 24 	addi r3,r11,36                                 
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
 8004c08:	35 62 00 20 	addi r2,r11,32                                 
  information->minimum_id =                                           
 8004c0c:	59 61 00 08 	sw (r11+8),r1                                  
    if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )                   
      name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &          
                    ~(OBJECTS_NAME_ALIGNMENT-1);                      
  #endif                                                              
                                                                      
  information->name_length = name_length;                             
 8004c10:	0d 6f 00 38 	sh (r11+56),r15                                
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 8004c14:	59 63 00 20 	sw (r11+32),r3                                 
  head->previous = NULL;                                              
 8004c18:	59 60 00 24 	sw (r11+36),r0                                 
  tail->previous = head;                                              
 8004c1c:	59 62 00 28 	sw (r11+40),r2                                 
  _Chain_Initialize_empty( &information->Inactive );                  
                                                                      
  /*                                                                  
   *  Initialize objects .. if there are any                          
   */                                                                 
  if ( maximum_per_allocation ) {                                     
 8004c20:	45 c0 00 03 	be r14,r0,8004c2c <_Objects_Initialize_information+0x10c>
    /*                                                                
     *  Always have the maximum size available so the current performance
     *  figures are create are met.  If the user moves past the maximum
     *  number then a performance hit is taken.                       
     */                                                               
    _Objects_Extend_information( information );                       
 8004c24:	b9 60 08 00 	mv r1,r11                                      
 8004c28:	fb ff fe 54 	calli 8004578 <_Objects_Extend_information>    
	_Chain_Initialize_empty( &information->global_table[ index ] );      
     }                                                                
     else                                                             
       information->global_table = NULL;                              
  #endif                                                              
}                                                                     
 8004c2c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004c30:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8004c34:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8004c38:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8004c3c:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8004c40:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8004c44:	37 9c 00 18 	addi sp,sp,24                                  
 8004c48:	c3 a0 00 00 	ret                                            
                                                                      
  /*                                                                  
   *  Unlimited and maximum of zero is illogical.                     
   */                                                                 
  if ( information->auto_extend && maximum_per_allocation == 0) {     
    _Internal_error_Occurred(                                         
 8004c4c:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 8004c50:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 8004c54:	34 03 00 13 	mvi r3,19                                      <== NOT EXECUTED
 8004c58:	fb ff fd dd 	calli 80043cc <_Internal_error_Occurred>       <== NOT EXECUTED
                                                                      

08004cd8 <_Objects_Shrink_information>: */ void _Objects_Shrink_information( Objects_Information *information ) {
 8004cd8:	37 9c ff ec 	addi sp,sp,-20                                 
 8004cdc:	5b 8b 00 14 	sw (sp+20),r11                                 
 8004ce0:	5b 8c 00 10 	sw (sp+16),r12                                 
 8004ce4:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8004ce8:	5b 8e 00 08 	sw (sp+8),r14                                  
 8004cec:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
  /*                                                                  
   * Search the list to find block or chunk with all objects inactive.
   */                                                                 
                                                                      
  index_base = _Objects_Get_index( information->minimum_id );         
 8004cf0:	2c 2c 00 0a 	lhu r12,(r1+10)                                
  block_count = (information->maximum - index_base) /                 
 8004cf4:	2c 2d 00 14 	lhu r13,(r1+20)                                
 */                                                                   
                                                                      
void _Objects_Shrink_information(                                     
  Objects_Information *information                                    
)                                                                     
{                                                                     
 8004cf8:	b8 20 70 00 	mv r14,r1                                      
  /*                                                                  
   * Search the list to find block or chunk with all objects inactive.
   */                                                                 
                                                                      
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
 8004cfc:	2c 21 00 10 	lhu r1,(r1+16)                                 
 8004d00:	b9 a0 10 00 	mv r2,r13                                      
 8004d04:	c8 2c 08 00 	sub r1,r1,r12                                  
 8004d08:	f8 00 31 28 	calli 80111a8 <__udivsi3>                      
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
 8004d0c:	44 20 00 09 	be r1,r0,8004d30 <_Objects_Shrink_information+0x58><== NEVER TAKEN
    if ( information->inactive_per_block[ block ] ==                  
 8004d10:	29 c5 00 30 	lw r5,(r14+48)                                 
 8004d14:	34 0b 00 04 	mvi r11,4                                      
 8004d18:	34 03 00 00 	mvi r3,0                                       
 8004d1c:	28 a2 00 00 	lw r2,(r5+0)                                   
 8004d20:	45 a2 00 11 	be r13,r2,8004d64 <_Objects_Shrink_information+0x8c><== NEVER TAKEN
                                                                      
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
 8004d24:	34 63 00 01 	addi r3,r3,1                                   
 *    the_block       - the block to remove                           
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Objects_Shrink_information(                                     
 8004d28:	b4 ab 10 00 	add r2,r5,r11                                  
                                                                      
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
 8004d2c:	54 23 00 08 	bgu r1,r3,8004d4c <_Objects_Shrink_information+0x74>
      return;                                                         
    }                                                                 
                                                                      
    index_base += information->allocation_size;                       
  }                                                                   
}                                                                     
 8004d30:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004d34:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8004d38:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8004d3c:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8004d40:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8004d44:	37 9c 00 14 	addi sp,sp,20                                  
 8004d48:	c3 a0 00 00 	ret                                            
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
    if ( information->inactive_per_block[ block ] ==                  
 8004d4c:	28 42 00 00 	lw r2,(r2+0)                                   
      information->inactive -= information->allocation_size;          
                                                                      
      return;                                                         
    }                                                                 
                                                                      
    index_base += information->allocation_size;                       
 8004d50:	35 64 00 04 	addi r4,r11,4                                  
 8004d54:	b5 8d 60 00 	add r12,r12,r13                                
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
    if ( information->inactive_per_block[ block ] ==                  
 8004d58:	45 a2 00 04 	be r13,r2,8004d68 <_Objects_Shrink_information+0x90>
 8004d5c:	b8 80 58 00 	mv r11,r4                                      
 8004d60:	e3 ff ff f1 	bi 8004d24 <_Objects_Shrink_information+0x4c>  
 8004d64:	34 0b 00 00 	mvi r11,0                                      <== NOT EXECUTED
         information->allocation_size ) {                             
                                                                      
      /*                                                              
       *  Assume the Inactive chain is never empty at this point      
       */                                                             
      the_object = (Objects_Control *) _Chain_First( &information->Inactive );
 8004d68:	29 c1 00 20 	lw r1,(r14+32)                                 
                                                                      
      do {                                                            
         index = _Objects_Get_index( the_object->id );                
 8004d6c:	2c 22 00 0a 	lhu r2,(r1+10)                                 
         /*                                                           
          *  Get the next node before the node is extracted           
          */                                                          
         extract_me = the_object;                                     
         the_object = (Objects_Control *) the_object->Node.next;      
 8004d70:	28 2d 00 00 	lw r13,(r1+0)                                  
         if ((index >= index_base) &&                                 
 8004d74:	55 82 00 05 	bgu r12,r2,8004d88 <_Objects_Shrink_information+0xb0>
             (index < (index_base + information->allocation_size))) { 
 8004d78:	2d c3 00 14 	lhu r3,(r14+20)                                
 8004d7c:	b5 83 18 00 	add r3,r12,r3                                  
         /*                                                           
          *  Get the next node before the node is extracted           
          */                                                          
         extract_me = the_object;                                     
         the_object = (Objects_Control *) the_object->Node.next;      
         if ((index >= index_base) &&                                 
 8004d80:	50 43 00 02 	bgeu r2,r3,8004d88 <_Objects_Shrink_information+0xb0>
             (index < (index_base + information->allocation_size))) { 
           _Chain_Extract( &extract_me->Node );                       
 8004d84:	fb ff fa ca 	calli 80038ac <_Chain_Extract>                 
         }                                                            
       }                                                              
       while ( the_object );                                          
 8004d88:	45 a0 00 03 	be r13,r0,8004d94 <_Objects_Shrink_information+0xbc>
         index = _Objects_Get_index( the_object->id );                
         /*                                                           
          *  Get the next node before the node is extracted           
          */                                                          
         extract_me = the_object;                                     
         the_object = (Objects_Control *) the_object->Node.next;      
 8004d8c:	b9 a0 08 00 	mv r1,r13                                      
 8004d90:	e3 ff ff f7 	bi 8004d6c <_Objects_Shrink_information+0x94>  
       while ( the_object );                                          
      /*                                                              
       *  Free the memory and reset the structures in the object' information
       */                                                             
                                                                      
      _Workspace_Free( information->object_blocks[ block ] );         
 8004d94:	29 c1 00 34 	lw r1,(r14+52)                                 
 8004d98:	b4 2b 08 00 	add r1,r1,r11                                  
 8004d9c:	28 21 00 00 	lw r1,(r1+0)                                   
 8004da0:	f8 00 08 8c 	calli 8006fd0 <_Workspace_Free>                
      information->object_blocks[ block ] = NULL;                     
 8004da4:	29 c2 00 34 	lw r2,(r14+52)                                 
      information->inactive_per_block[ block ] = 0;                   
 8004da8:	29 c4 00 30 	lw r4,(r14+48)                                 
                                                                      
      information->inactive -= information->allocation_size;          
 8004dac:	2d c3 00 2c 	lhu r3,(r14+44)                                
 8004db0:	2d c1 00 14 	lhu r1,(r14+20)                                
      /*                                                              
       *  Free the memory and reset the structures in the object' information
       */                                                             
                                                                      
      _Workspace_Free( information->object_blocks[ block ] );         
      information->object_blocks[ block ] = NULL;                     
 8004db4:	b4 4b 10 00 	add r2,r2,r11                                  
 8004db8:	58 40 00 00 	sw (r2+0),r0                                   
      information->inactive_per_block[ block ] = 0;                   
 8004dbc:	b4 8b 58 00 	add r11,r4,r11                                 
 8004dc0:	59 60 00 00 	sw (r11+0),r0                                  
                                                                      
      information->inactive -= information->allocation_size;          
 8004dc4:	c8 61 08 00 	sub r1,r3,r1                                   
 8004dc8:	0d c1 00 2c 	sh (r14+44),r1                                 
      return;                                                         
    }                                                                 
                                                                      
    index_base += information->allocation_size;                       
  }                                                                   
}                                                                     
 8004dcc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004dd0:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8004dd4:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8004dd8:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8004ddc:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8004de0:	37 9c 00 14 	addi sp,sp,20                                  
 8004de4:	c3 a0 00 00 	ret                                            
                                                                      

080031c0 <_RTEMS_tasks_Initialize_user_tasks_body>: * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) {
 80031c0:	37 9c ff e8 	addi sp,sp,-24                                 
 80031c4:	5b 8b 00 14 	sw (sp+20),r11                                 
 80031c8:	5b 8c 00 10 	sw (sp+16),r12                                 
 80031cc:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80031d0:	5b 8e 00 08 	sw (sp+8),r14                                  
 80031d4:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_initialization_tasks_table *user_tasks;                       
                                                                      
  /*                                                                  
   *  Move information into local variables                           
   */                                                                 
  user_tasks = Configuration_RTEMS_API.User_initialization_tasks_table;
 80031d8:	78 01 08 01 	mvhi r1,0x801                                  
 80031dc:	38 21 30 bc 	ori r1,r1,0x30bc                               
 80031e0:	28 2b 00 2c 	lw r11,(r1+44)                                 
  maximum    = Configuration_RTEMS_API.number_of_initialization_tasks;
 80031e4:	28 2e 00 28 	lw r14,(r1+40)                                 
                                                                      
  /*                                                                  
   *  Verify that we have a set of user tasks to iterate              
   */                                                                 
  if ( !user_tasks )                                                  
 80031e8:	45 60 00 15 	be r11,r0,800323c <_RTEMS_tasks_Initialize_user_tasks_body+0x7c>
    return;                                                           
                                                                      
  /*                                                                  
   *  Now iterate over the initialization tasks and create/start them.
   */                                                                 
  for ( index=0 ; index < maximum ; index++ ) {                       
 80031ec:	45 c0 00 14 	be r14,r0,800323c <_RTEMS_tasks_Initialize_user_tasks_body+0x7c><== NEVER TAKEN
 80031f0:	34 0c 00 00 	mvi r12,0                                      
    return_value = rtems_task_create(                                 
 80031f4:	29 61 00 00 	lw r1,(r11+0)                                  
 80031f8:	29 62 00 08 	lw r2,(r11+8)                                  
 80031fc:	29 63 00 04 	lw r3,(r11+4)                                  
 8003200:	29 64 00 14 	lw r4,(r11+20)                                 
 8003204:	29 65 00 0c 	lw r5,(r11+12)                                 
 8003208:	37 86 00 18 	addi r6,sp,24                                  
 800320c:	fb ff ff 52 	calli 8002f54 <rtems_task_create>              
 8003210:	b8 20 68 00 	mv r13,r1                                      
      user_tasks[ index ].stack_size,                                 
      user_tasks[ index ].mode_set,                                   
      user_tasks[ index ].attribute_set,                              
      &id                                                             
    );                                                                
    if ( !rtems_is_status_successful( return_value ) )                
 8003214:	5c 20 00 11 	bne r1,r0,8003258 <_RTEMS_tasks_Initialize_user_tasks_body+0x98><== NEVER TAKEN
      _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
                                                                      
    return_value = rtems_task_start(                                  
 8003218:	29 63 00 18 	lw r3,(r11+24)                                 
 800321c:	2b 81 00 18 	lw r1,(sp+24)                                  
 8003220:	29 62 00 10 	lw r2,(r11+16)                                 
 8003224:	f8 00 00 14 	calli 8003274 <rtems_task_start>               
 8003228:	b8 20 18 00 	mv r3,r1                                       
      id,                                                             
      user_tasks[ index ].entry_point,                                
      user_tasks[ index ].argument                                    
    );                                                                
    if ( !rtems_is_status_successful( return_value ) )                
 800322c:	5c 2d 00 0f 	bne r1,r13,8003268 <_RTEMS_tasks_Initialize_user_tasks_body+0xa8><== NEVER TAKEN
    return;                                                           
                                                                      
  /*                                                                  
   *  Now iterate over the initialization tasks and create/start them.
   */                                                                 
  for ( index=0 ; index < maximum ; index++ ) {                       
 8003230:	35 8c 00 01 	addi r12,r12,1                                 
 8003234:	35 6b 00 1c 	addi r11,r11,28                                
 8003238:	55 cc ff ef 	bgu r14,r12,80031f4 <_RTEMS_tasks_Initialize_user_tasks_body+0x34><== NEVER TAKEN
      user_tasks[ index ].argument                                    
    );                                                                
    if ( !rtems_is_status_successful( return_value ) )                
      _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
  }                                                                   
}                                                                     
 800323c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003240:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8003244:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8003248:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800324c:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8003250:	37 9c 00 18 	addi sp,sp,24                                  
 8003254:	c3 a0 00 00 	ret                                            
      user_tasks[ index ].mode_set,                                   
      user_tasks[ index ].attribute_set,                              
      &id                                                             
    );                                                                
    if ( !rtems_is_status_successful( return_value ) )                
      _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
 8003258:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
 800325c:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 8003260:	b9 a0 18 00 	mv r3,r13                                      <== NOT EXECUTED
 8003264:	f8 00 04 5a 	calli 80043cc <_Internal_error_Occurred>       <== NOT EXECUTED
      id,                                                             
      user_tasks[ index ].entry_point,                                
      user_tasks[ index ].argument                                    
    );                                                                
    if ( !rtems_is_status_successful( return_value ) )                
      _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
 8003268:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
 800326c:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 8003270:	f8 00 04 57 	calli 80043cc <_Internal_error_Occurred>       <== NOT EXECUTED
                                                                      

080090b4 <_RTEMS_tasks_Post_switch_extension>: */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) {
 80090b4:	37 9c ff f0 	addi sp,sp,-16                                 
 80090b8:	5b 8b 00 0c 	sw (sp+12),r11                                 
 80090bc:	5b 8c 00 08 	sw (sp+8),r12                                  
 80090c0:	5b 9d 00 04 	sw (sp+4),ra                                   
  RTEMS_API_Control *api;                                             
  ASR_Information   *asr;                                             
  rtems_signal_set   signal_set;                                      
  Modes_Control      prev_mode;                                       
                                                                      
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
 80090c4:	28 2b 01 18 	lw r11,(r1+280)                                
  if ( !api )                                                         
 80090c8:	45 60 00 1a 	be r11,r0,8009130 <_RTEMS_tasks_Post_switch_extension+0x7c><== NEVER TAKEN
   *  Signal Processing                                               
   */                                                                 
                                                                      
  asr = &api->Signal;                                                 
                                                                      
  _ISR_Disable( level );                                              
 80090cc:	90 00 10 00 	rcsr r2,IE                                     
 80090d0:	34 01 ff fe 	mvi r1,-2                                      
 80090d4:	a0 41 08 00 	and r1,r2,r1                                   
 80090d8:	d0 01 00 00 	wcsr IE,r1                                     
    signal_set = asr->signals_posted;                                 
 80090dc:	29 6c 00 14 	lw r12,(r11+20)                                
    asr->signals_posted = 0;                                          
 80090e0:	59 60 00 14 	sw (r11+20),r0                                 
  _ISR_Enable( level );                                               
 80090e4:	d0 02 00 00 	wcsr IE,r2                                     
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
 80090e8:	45 80 00 12 	be r12,r0,8009130 <_RTEMS_tasks_Post_switch_extension+0x7c>
    return;                                                           
                                                                      
  asr->nest_level += 1;                                               
 80090ec:	29 64 00 1c 	lw r4,(r11+28)                                 
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
 80090f0:	29 61 00 10 	lw r1,(r11+16)                                 
 80090f4:	37 83 00 10 	addi r3,sp,16                                  
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
    return;                                                           
                                                                      
  asr->nest_level += 1;                                               
 80090f8:	34 84 00 01 	addi r4,r4,1                                   
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
 80090fc:	38 02 ff ff 	mvu r2,0xffff                                  
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
    return;                                                           
                                                                      
  asr->nest_level += 1;                                               
 8009100:	59 64 00 1c 	sw (r11+28),r4                                 
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
 8009104:	f8 00 09 04 	calli 800b514 <rtems_task_mode>                
                                                                      
  (*asr->handler)( signal_set );                                      
 8009108:	29 62 00 0c 	lw r2,(r11+12)                                 
 800910c:	b9 80 08 00 	mv r1,r12                                      
 8009110:	d8 40 00 00 	call r2                                        
                                                                      
  asr->nest_level -= 1;                                               
 8009114:	29 63 00 1c 	lw r3,(r11+28)                                 
  rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );     
 8009118:	2b 81 00 10 	lw r1,(sp+16)                                  
 800911c:	38 02 ff ff 	mvu r2,0xffff                                  
  asr->nest_level += 1;                                               
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
                                                                      
  (*asr->handler)( signal_set );                                      
                                                                      
  asr->nest_level -= 1;                                               
 8009120:	34 63 ff ff 	addi r3,r3,-1                                  
 8009124:	59 63 00 1c 	sw (r11+28),r3                                 
  rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );     
 8009128:	37 83 00 10 	addi r3,sp,16                                  
 800912c:	f8 00 08 fa 	calli 800b514 <rtems_task_mode>                
                                                                      
}                                                                     
 8009130:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009134:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8009138:	2b 8c 00 08 	lw r12,(sp+8)                                  
 800913c:	37 9c 00 10 	addi sp,sp,16                                  
 8009140:	c3 a0 00 00 	ret                                            
                                                                      

08009040 <_RTEMS_tasks_Switch_extension>: /* * Per Task Variables */ tvp = executing->task_variables;
 8009040:	28 21 01 24 	lw r1,(r1+292)                                 
  while (tvp) {                                                       
 8009044:	44 20 00 08 	be r1,r0,8009064 <_RTEMS_tasks_Switch_extension+0x24>
    tvp->tval = *tvp->ptr;                                            
 8009048:	28 23 00 04 	lw r3,(r1+4)                                   
    *tvp->ptr = tvp->gval;                                            
 800904c:	28 24 00 08 	lw r4,(r1+8)                                   
   *  Per Task Variables                                              
   */                                                                 
                                                                      
  tvp = executing->task_variables;                                    
  while (tvp) {                                                       
    tvp->tval = *tvp->ptr;                                            
 8009050:	28 65 00 00 	lw r5,(r3+0)                                   
 8009054:	58 25 00 0c 	sw (r1+12),r5                                  
    *tvp->ptr = tvp->gval;                                            
    tvp = (rtems_task_variable_t *)tvp->next;                         
 8009058:	28 21 00 00 	lw r1,(r1+0)                                   
   */                                                                 
                                                                      
  tvp = executing->task_variables;                                    
  while (tvp) {                                                       
    tvp->tval = *tvp->ptr;                                            
    *tvp->ptr = tvp->gval;                                            
 800905c:	58 64 00 00 	sw (r3+0),r4                                   
  /*                                                                  
   *  Per Task Variables                                              
   */                                                                 
                                                                      
  tvp = executing->task_variables;                                    
  while (tvp) {                                                       
 8009060:	5c 20 ff fa 	bne r1,r0,8009048 <_RTEMS_tasks_Switch_extension+0x8><== NEVER TAKEN
    tvp->tval = *tvp->ptr;                                            
    *tvp->ptr = tvp->gval;                                            
    tvp = (rtems_task_variable_t *)tvp->next;                         
  }                                                                   
                                                                      
  tvp = heir->task_variables;                                         
 8009064:	28 41 01 24 	lw r1,(r2+292)                                 
  while (tvp) {                                                       
 8009068:	44 20 00 08 	be r1,r0,8009088 <_RTEMS_tasks_Switch_extension+0x48>
    tvp->gval = *tvp->ptr;                                            
 800906c:	28 22 00 04 	lw r2,(r1+4)                                   
    *tvp->ptr = tvp->tval;                                            
 8009070:	28 23 00 0c 	lw r3,(r1+12)                                  
    tvp = (rtems_task_variable_t *)tvp->next;                         
  }                                                                   
                                                                      
  tvp = heir->task_variables;                                         
  while (tvp) {                                                       
    tvp->gval = *tvp->ptr;                                            
 8009074:	28 44 00 00 	lw r4,(r2+0)                                   
 8009078:	58 24 00 08 	sw (r1+8),r4                                   
    *tvp->ptr = tvp->tval;                                            
    tvp = (rtems_task_variable_t *)tvp->next;                         
 800907c:	28 21 00 00 	lw r1,(r1+0)                                   
  }                                                                   
                                                                      
  tvp = heir->task_variables;                                         
  while (tvp) {                                                       
    tvp->gval = *tvp->ptr;                                            
    *tvp->ptr = tvp->tval;                                            
 8009080:	58 43 00 00 	sw (r2+0),r3                                   
    *tvp->ptr = tvp->gval;                                            
    tvp = (rtems_task_variable_t *)tvp->next;                         
  }                                                                   
                                                                      
  tvp = heir->task_variables;                                         
  while (tvp) {                                                       
 8009084:	5c 20 ff fa 	bne r1,r0,800906c <_RTEMS_tasks_Switch_extension+0x2c><== NEVER TAKEN
 8009088:	c3 a0 00 00 	ret                                            
                                                                      

080048a8 <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) {
 80048a8:	37 9c ff f4 	addi sp,sp,-12                                 
 80048ac:	5b 8b 00 08 	sw (sp+8),r11                                  
 80048b0:	5b 9d 00 04 	sw (sp+4),ra                                   
 80048b4:	b8 20 10 00 	mv r2,r1                                       
 80048b8:	78 01 08 02 	mvhi r1,0x802                                  
 80048bc:	38 21 08 78 	ori r1,r1,0x878                                
 80048c0:	37 83 00 0c 	addi r3,sp,12                                  
 80048c4:	f8 00 09 11 	calli 8006d08 <_Objects_Get>                   
  /*                                                                  
   *  When we get here, the Timer is already off the chain so we do not
   *  have to worry about that -- hence no _Watchdog_Remove().        
   */                                                                 
  the_period = _Rate_monotonic_Get( id, &location );                  
  switch ( location ) {                                               
 80048c8:	2b 82 00 0c 	lw r2,(sp+12)                                  
 80048cc:	b8 20 58 00 	mv r11,r1                                      
 80048d0:	44 40 00 05 	be r2,r0,80048e4 <_Rate_monotonic_Timeout+0x3c><== ALWAYS TAKEN
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
}                                                                     
 80048d4:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 80048d8:	2b 8b 00 08 	lw r11,(sp+8)                                  <== NOT EXECUTED
 80048dc:	37 9c 00 0c 	addi sp,sp,12                                  <== NOT EXECUTED
 80048e0:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
   */                                                                 
  the_period = _Rate_monotonic_Get( id, &location );                  
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      the_thread = the_period->owner;                                 
 80048e4:	28 21 00 40 	lw r1,(r1+64)                                  
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_period (             
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_WAITING_FOR_PERIOD);                   
 80048e8:	28 23 00 10 	lw r3,(r1+16)                                  
 80048ec:	20 63 40 00 	andi r3,r3,0x4000                              
      if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
 80048f0:	44 62 00 04 	be r3,r2,8004900 <_Rate_monotonic_Timeout+0x58>
 80048f4:	28 23 00 20 	lw r3,(r1+32)                                  
 80048f8:	29 62 00 08 	lw r2,(r11+8)                                  
 80048fc:	44 62 00 1a 	be r3,r2,8004964 <_Rate_monotonic_Timeout+0xbc>
        _Thread_Unblock( the_thread );                                
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
      } else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) {
 8004900:	29 62 00 38 	lw r2,(r11+56)                                 
 8004904:	34 01 00 01 	mvi r1,1                                       
 8004908:	44 41 00 0c 	be r2,r1,8004938 <_Rate_monotonic_Timeout+0x90><== NEVER TAKEN
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
      } else                                                          
        the_period->state = RATE_MONOTONIC_EXPIRED;                   
 800490c:	34 01 00 04 	mvi r1,4                                       
 8004910:	59 61 00 38 	sw (r11+56),r1                                 
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
 8004914:	78 01 08 02 	mvhi r1,0x802                                  
 8004918:	38 21 09 a0 	ori r1,r1,0x9a0                                
 800491c:	28 22 00 00 	lw r2,(r1+0)                                   
 8004920:	34 42 ff ff 	addi r2,r2,-1                                  
 8004924:	58 22 00 00 	sw (r1+0),r2                                   
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
}                                                                     
 8004928:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800492c:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8004930:	37 9c 00 0c 	addi sp,sp,12                                  
 8004934:	c3 a0 00 00 	ret                                            
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
      } else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) {
        the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING;    
 8004938:	34 02 00 03 	mvi r2,3                                       <== NOT EXECUTED
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
 800493c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
      } else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) {
        the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING;    
 8004940:	59 62 00 38 	sw (r11+56),r2                                 <== NOT EXECUTED
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
 8004944:	fb ff fe 00 	calli 8004144 <_Rate_monotonic_Initiate_statistics>
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 8004948:	29 62 00 3c 	lw r2,(r11+60)                                 
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 800494c:	78 01 08 02 	mvhi r1,0x802                                  
 8004950:	38 21 0a 60 	ori r1,r1,0xa60                                
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 8004954:	59 62 00 1c 	sw (r11+28),r2                                 
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 8004958:	35 62 00 10 	addi r2,r11,16                                 
 800495c:	f8 00 11 e4 	calli 80090ec <_Watchdog_Insert>               
 8004960:	e3 ff ff ed 	bi 8004914 <_Rate_monotonic_Timeout+0x6c>      
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
 8004964:	78 03 08 01 	mvhi r3,0x801                                  
 8004968:	38 63 db 04 	ori r3,r3,0xdb04                               
 800496c:	28 62 00 00 	lw r2,(r3+0)                                   
 8004970:	f8 00 0b e1 	calli 80078f4 <_Thread_Clear_state>            
      the_thread = the_period->owner;                                 
      if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
            the_thread->Wait.id == the_period->Object.id ) {          
        _Thread_Unblock( the_thread );                                
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
 8004974:	b9 60 08 00 	mv r1,r11                                      
 8004978:	e3 ff ff f3 	bi 8004944 <_Rate_monotonic_Timeout+0x9c>      
                                                                      

080041f0 <_Rate_monotonic_Update_statistics>: void _Rate_monotonic_Update_statistics( Rate_monotonic_Control *the_period ) {
 80041f0:	37 9c ff e0 	addi sp,sp,-32                                 
 80041f4:	5b 8b 00 10 	sw (sp+16),r11                                 
 80041f8:	5b 8c 00 0c 	sw (sp+12),r12                                 
 80041fc:	5b 8d 00 08 	sw (sp+8),r13                                  
 8004200:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004204:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  /*                                                                  
   *  Update the counts.                                              
   */                                                                 
  stats = &the_period->Statistics;                                    
  stats->count++;                                                     
 8004208:	28 21 00 54 	lw r1,(r1+84)                                  
                                                                      
  if ( the_period->state == RATE_MONOTONIC_EXPIRED )                  
 800420c:	29 62 00 38 	lw r2,(r11+56)                                 
                                                                      
  /*                                                                  
   *  Update the counts.                                              
   */                                                                 
  stats = &the_period->Statistics;                                    
  stats->count++;                                                     
 8004210:	34 21 00 01 	addi r1,r1,1                                   
 8004214:	59 61 00 54 	sw (r11+84),r1                                 
                                                                      
  if ( the_period->state == RATE_MONOTONIC_EXPIRED )                  
 8004218:	34 01 00 04 	mvi r1,4                                       
 800421c:	44 41 00 36 	be r2,r1,80042f4 <_Rate_monotonic_Update_statistics+0x104>
                                                                      
  /*                                                                  
   *  Grab status for time statistics.                                
   */                                                                 
  valid_status =                                                      
    _Rate_monotonic_Get_status( the_period, &since_last_period, &executed );
 8004220:	37 8c 00 14 	addi r12,sp,20                                 
 8004224:	37 8d 00 1c 	addi r13,sp,28                                 
    stats->missed_count++;                                            
                                                                      
  /*                                                                  
   *  Grab status for time statistics.                                
   */                                                                 
  valid_status =                                                      
 8004228:	b9 60 08 00 	mv r1,r11                                      
 800422c:	b9 80 10 00 	mv r2,r12                                      
 8004230:	b9 a0 18 00 	mv r3,r13                                      
 8004234:	fb ff ff 8a 	calli 800405c <_Rate_monotonic_Get_status>     
    _Rate_monotonic_Get_status( the_period, &since_last_period, &executed );
  if (!valid_status)                                                  
 8004238:	5c 20 00 07 	bne r1,r0,8004254 <_Rate_monotonic_Update_statistics+0x64><== ALWAYS TAKEN
      stats->min_wall_time = since_last_period;                       
                                                                      
    if ( since_last_period > stats->max_wall_time )                   
      stats->max_wall_time = since_last_period;                       
  #endif                                                              
}                                                                     
 800423c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004240:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8004244:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8004248:	2b 8d 00 08 	lw r13,(sp+8)                                  
 800424c:	37 9c 00 20 	addi sp,sp,32                                  
 8004250:	c3 a0 00 00 	ret                                            
                                                                      
  /*                                                                  
   *  Update CPU time                                                 
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Add_to( &stats->total_cpu_time, &executed );           
 8004254:	b9 a0 10 00 	mv r2,r13                                      
 8004258:	35 61 00 6c 	addi r1,r11,108                                
 800425c:	f8 00 11 a6 	calli 80088f4 <_Timespec_Add_to>               
                                                                      
    if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) )    
 8004260:	b9 a0 08 00 	mv r1,r13                                      
 8004264:	35 62 00 5c 	addi r2,r11,92                                 
 8004268:	f8 00 12 8f 	calli 8008ca4 <_Timespec_Less_than>            
 800426c:	44 20 00 05 	be r1,r0,8004280 <_Rate_monotonic_Update_statistics+0x90>
      stats->min_cpu_time = executed;                                 
 8004270:	2b 81 00 1c 	lw r1,(sp+28)                                  
 8004274:	59 61 00 5c 	sw (r11+92),r1                                 
 8004278:	2b 81 00 20 	lw r1,(sp+32)                                  
 800427c:	59 61 00 60 	sw (r11+96),r1                                 
                                                                      
    if ( _Timestamp_Greater_than( &executed, &stats->max_cpu_time ) ) 
 8004280:	b9 a0 08 00 	mv r1,r13                                      
 8004284:	35 62 00 64 	addi r2,r11,100                                
 8004288:	f8 00 12 7c 	calli 8008c78 <_Timespec_Greater_than>         
 800428c:	44 20 00 05 	be r1,r0,80042a0 <_Rate_monotonic_Update_statistics+0xb0>
      stats->max_cpu_time = executed;                                 
 8004290:	2b 81 00 1c 	lw r1,(sp+28)                                  
 8004294:	59 61 00 64 	sw (r11+100),r1                                
 8004298:	2b 81 00 20 	lw r1,(sp+32)                                  
 800429c:	59 61 00 68 	sw (r11+104),r1                                
                                                                      
  /*                                                                  
   *  Update Wall time                                                
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Add_to( &stats->total_wall_time, &since_last_period ); 
 80042a0:	b9 80 10 00 	mv r2,r12                                      
 80042a4:	35 61 00 84 	addi r1,r11,132                                
 80042a8:	f8 00 11 93 	calli 80088f4 <_Timespec_Add_to>               
                                                                      
    if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) )
 80042ac:	b9 80 08 00 	mv r1,r12                                      
 80042b0:	35 62 00 74 	addi r2,r11,116                                
 80042b4:	f8 00 12 7c 	calli 8008ca4 <_Timespec_Less_than>            
 80042b8:	5c 20 00 13 	bne r1,r0,8004304 <_Rate_monotonic_Update_statistics+0x114>
      stats->min_wall_time = since_last_period;                       
                                                                      
    if ( _Timestamp_Greater_than( &since_last_period, &stats->max_wall_time ) )
 80042bc:	b9 80 08 00 	mv r1,r12                                      
 80042c0:	35 62 00 7c 	addi r2,r11,124                                
 80042c4:	f8 00 12 6d 	calli 8008c78 <_Timespec_Greater_than>         
 80042c8:	44 20 ff dd 	be r1,r0,800423c <_Rate_monotonic_Update_statistics+0x4c>
      stats->max_wall_time = since_last_period;                       
 80042cc:	2b 81 00 14 	lw r1,(sp+20)                                  
 80042d0:	59 61 00 7c 	sw (r11+124),r1                                
 80042d4:	2b 81 00 18 	lw r1,(sp+24)                                  
 80042d8:	59 61 00 80 	sw (r11+128),r1                                
      stats->min_wall_time = since_last_period;                       
                                                                      
    if ( since_last_period > stats->max_wall_time )                   
      stats->max_wall_time = since_last_period;                       
  #endif                                                              
}                                                                     
 80042dc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80042e0:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80042e4:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80042e8:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80042ec:	37 9c 00 20 	addi sp,sp,32                                  
 80042f0:	c3 a0 00 00 	ret                                            
   */                                                                 
  stats = &the_period->Statistics;                                    
  stats->count++;                                                     
                                                                      
  if ( the_period->state == RATE_MONOTONIC_EXPIRED )                  
    stats->missed_count++;                                            
 80042f4:	29 61 00 58 	lw r1,(r11+88)                                 
 80042f8:	34 21 00 01 	addi r1,r1,1                                   
 80042fc:	59 61 00 58 	sw (r11+88),r1                                 
 8004300:	e3 ff ff c8 	bi 8004220 <_Rate_monotonic_Update_statistics+0x30>
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Add_to( &stats->total_wall_time, &since_last_period ); 
                                                                      
    if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) )
      stats->min_wall_time = since_last_period;                       
 8004304:	2b 81 00 14 	lw r1,(sp+20)                                  
 8004308:	59 61 00 74 	sw (r11+116),r1                                
 800430c:	2b 81 00 18 	lw r1,(sp+24)                                  
 8004310:	59 61 00 78 	sw (r11+120),r1                                
 8004314:	e3 ff ff ea 	bi 80042bc <_Rate_monotonic_Update_statistics+0xcc>
                                                                      

08004f00 <_Scheduler_priority_Block>: ) { Scheduler_priority_Per_thread *sched_info; Chain_Control *ready; sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info;
 8004f00:	28 23 00 8c 	lw r3,(r1+140)                                 
  ready      = sched_info->ready_chain;                               
 8004f04:	28 62 00 00 	lw r2,(r3+0)                                   
                                                                      
  if ( _Chain_Has_only_one_node( ready ) ) {                          
 8004f08:	28 45 00 00 	lw r5,(r2+0)                                   
 8004f0c:	28 44 00 08 	lw r4,(r2+8)                                   
 8004f10:	44 a4 00 37 	be r5,r4,8004fec <_Scheduler_priority_Block+0xec>
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
 8004f14:	28 23 00 00 	lw r3,(r1+0)                                   
  previous       = the_node->previous;                                
 8004f18:	28 22 00 04 	lw r2,(r1+4)                                   
  next->previous = previous;                                          
 8004f1c:	58 62 00 04 	sw (r3+4),r2                                   
  previous->next = next;                                              
 8004f20:	58 43 00 00 	sw (r2+0),r3                                   
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_heir (                           
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Heir );                              
 8004f24:	78 02 08 01 	mvhi r2,0x801                                  
 8004f28:	38 42 3a 28 	ori r2,r2,0x3a28                               
{                                                                     
  _Scheduler_priority_Ready_queue_extract( the_thread );              
                                                                      
  /* TODO: flash critical section? */                                 
                                                                      
  if ( _Thread_Is_heir( the_thread ) )                                
 8004f2c:	28 43 00 10 	lw r3,(r2+16)                                  
 8004f30:	44 23 00 07 	be r1,r3,8004f4c <_Scheduler_priority_Block+0x4c>
     _Scheduler_priority_Schedule_body();                             
                                                                      
  if ( _Thread_Is_executing( the_thread ) )                           
 8004f34:	28 43 00 0c 	lw r3,(r2+12)                                  
 8004f38:	44 23 00 02 	be r1,r3,8004f40 <_Scheduler_priority_Block+0x40>
 8004f3c:	c3 a0 00 00 	ret                                            
    _Thread_Dispatch_necessary = true;                                
 8004f40:	34 01 00 01 	mvi r1,1                                       
 8004f44:	30 41 00 18 	sb (r2+24),r1                                  
 8004f48:	c3 a0 00 00 	ret                                            
RTEMS_INLINE_ROUTINE Priority_Control _Priority_bit_map_Get_highest( void )
{                                                                     
  Priority_bit_map_Control minor;                                     
  Priority_bit_map_Control major;                                     
                                                                      
  _Bitfield_Find_first_bit( _Priority_Major_bit_map, major );         
 8004f4c:	78 03 08 01 	mvhi r3,0x801                                  
 8004f50:	38 63 3a 48 	ori r3,r3,0x3a48                               
 8004f54:	2c 64 00 00 	lhu r4,(r3+0)                                  
 *  @param[in] the_thread  - pointer to thread                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)     
{                                                                     
  _Thread_Heir = _Scheduler_priority_Ready_queue_first(               
    (Chain_Control *) _Scheduler.information                          
 8004f58:	78 03 08 01 	mvhi r3,0x801                                  
 8004f5c:	38 63 30 1c 	ori r3,r3,0x301c                               
 *                                                                    
 *  @param[in] the_thread  - pointer to thread                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)     
{                                                                     
  _Thread_Heir = _Scheduler_priority_Ready_queue_first(               
 8004f60:	28 67 00 00 	lw r7,(r3+0)                                   
 8004f64:	20 84 ff ff 	andi r4,r4,0xffff                              
 8004f68:	34 03 00 ff 	mvi r3,255                                     
 8004f6c:	54 83 00 3c 	bgu r4,r3,800505c <_Scheduler_priority_Block+0x15c>
 8004f70:	78 05 08 01 	mvhi r5,0x801                                  
 8004f74:	38 a5 22 54 	ori r5,r5,0x2254                               
 8004f78:	b4 a4 20 00 	add r4,r5,r4                                   
 8004f7c:	40 84 00 00 	lbu r4,(r4+0)                                  
 8004f80:	34 84 00 08 	addi r4,r4,8                                   
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
 8004f84:	78 06 08 01 	mvhi r6,0x801                                  
 8004f88:	38 c6 3a 50 	ori r6,r6,0x3a50                               
 8004f8c:	b4 84 20 00 	add r4,r4,r4                                   
 8004f90:	b4 c4 30 00 	add r6,r6,r4                                   
 8004f94:	2c c3 00 00 	lhu r3,(r6+0)                                  
 8004f98:	34 06 00 ff 	mvi r6,255                                     
 8004f9c:	54 66 00 25 	bgu r3,r6,8005030 <_Scheduler_priority_Block+0x130>
 8004fa0:	b4 a3 18 00 	add r3,r5,r3                                   
 8004fa4:	40 65 00 00 	lbu r5,(r3+0)                                  
 8004fa8:	34 a5 00 08 	addi r5,r5,8                                   
                                                                      
  return (_Priority_Bits_index( major ) << 4) +                       
 8004fac:	b4 84 18 00 	add r3,r4,r4                                   
 8004fb0:	b4 63 18 00 	add r3,r3,r3                                   
 8004fb4:	b4 63 18 00 	add r3,r3,r3                                   
 8004fb8:	b4 a3 18 00 	add r3,r5,r3                                   
  Chain_Control       *the_ready_queue                                
)                                                                     
{                                                                     
  Priority_Control index = _Priority_bit_map_Get_highest();           
                                                                      
  if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )                
 8004fbc:	b4 63 20 00 	add r4,r3,r3                                   
 8004fc0:	b4 83 18 00 	add r3,r4,r3                                   
 8004fc4:	b4 63 18 00 	add r3,r3,r3                                   
 8004fc8:	b4 63 18 00 	add r3,r3,r3                                   
 8004fcc:	b4 e3 18 00 	add r3,r7,r3                                   
                                                                      
}                                                                     
 8004fd0:	28 65 00 00 	lw r5,(r3+0)                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 8004fd4:	34 63 00 04 	addi r3,r3,4                                   
    return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
                                                                      
  return NULL;                                                        
 8004fd8:	34 04 00 00 	mvi r4,0                                       
  Chain_Control       *the_ready_queue                                
)                                                                     
{                                                                     
  Priority_Control index = _Priority_bit_map_Get_highest();           
                                                                      
  if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )                
 8004fdc:	44 a3 00 02 	be r5,r3,8004fe4 <_Scheduler_priority_Block+0xe4><== NEVER TAKEN
    return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
 8004fe0:	b8 a0 20 00 	mv r4,r5                                       
 *                                                                    
 *  @param[in] the_thread  - pointer to thread                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)     
{                                                                     
  _Thread_Heir = _Scheduler_priority_Ready_queue_first(               
 8004fe4:	58 44 00 10 	sw (r2+16),r4                                  
 8004fe8:	e3 ff ff d3 	bi 8004f34 <_Scheduler_priority_Block+0x34>    
                                                                      
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove (                  
  Priority_bit_map_Information *the_priority_map                      
)                                                                     
{                                                                     
  *the_priority_map->minor &= the_priority_map->block_minor;          
 8004fec:	28 64 00 04 	lw r4,(r3+4)                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
 8004ff0:	34 45 00 04 	addi r5,r2,4                                   
                                                                      
  head->next = tail;                                                  
 8004ff4:	58 45 00 00 	sw (r2+0),r5                                   
  head->previous = NULL;                                              
 8004ff8:	58 40 00 04 	sw (r2+4),r0                                   
  tail->previous = head;                                              
 8004ffc:	58 42 00 08 	sw (r2+8),r2                                   
 8005000:	2c 65 00 0e 	lhu r5,(r3+14)                                 
 8005004:	2c 82 00 00 	lhu r2,(r4+0)                                  
 8005008:	a0 45 10 00 	and r2,r2,r5                                   
 800500c:	0c 82 00 00 	sh (r4+0),r2                                   
  if ( *the_priority_map->minor == 0 )                                
 8005010:	5c 40 ff c5 	bne r2,r0,8004f24 <_Scheduler_priority_Block+0x24>
    _Priority_Major_bit_map &= the_priority_map->block_major;         
 8005014:	78 02 08 01 	mvhi r2,0x801                                  
 8005018:	38 42 3a 48 	ori r2,r2,0x3a48                               
 800501c:	2c 44 00 00 	lhu r4,(r2+0)                                  
 8005020:	2c 63 00 0c 	lhu r3,(r3+12)                                 
 8005024:	a0 64 18 00 	and r3,r3,r4                                   
 8005028:	0c 43 00 00 	sh (r2+0),r3                                   
 800502c:	e3 ff ff be 	bi 8004f24 <_Scheduler_priority_Block+0x24>    
{                                                                     
  Priority_bit_map_Control minor;                                     
  Priority_bit_map_Control major;                                     
                                                                      
  _Bitfield_Find_first_bit( _Priority_Major_bit_map, major );         
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
 8005030:	00 63 00 01 	srui r3,r3,1                                   
 8005034:	00 63 00 01 	srui r3,r3,1                                   
 8005038:	00 63 00 01 	srui r3,r3,1                                   
 800503c:	00 63 00 01 	srui r3,r3,1                                   
 8005040:	00 63 00 01 	srui r3,r3,1                                   
 8005044:	00 63 00 01 	srui r3,r3,1                                   
 8005048:	00 63 00 01 	srui r3,r3,1                                   
 800504c:	00 63 00 01 	srui r3,r3,1                                   
 8005050:	b4 a3 18 00 	add r3,r5,r3                                   
 8005054:	40 65 00 00 	lbu r5,(r3+0)                                  
 8005058:	e3 ff ff d5 	bi 8004fac <_Scheduler_priority_Block+0xac>    
RTEMS_INLINE_ROUTINE Priority_Control _Priority_bit_map_Get_highest( void )
{                                                                     
  Priority_bit_map_Control minor;                                     
  Priority_bit_map_Control major;                                     
                                                                      
  _Bitfield_Find_first_bit( _Priority_Major_bit_map, major );         
 800505c:	00 84 00 01 	srui r4,r4,1                                   
 8005060:	78 05 08 01 	mvhi r5,0x801                                  
 8005064:	00 84 00 01 	srui r4,r4,1                                   
 8005068:	38 a5 22 54 	ori r5,r5,0x2254                               
 800506c:	00 84 00 01 	srui r4,r4,1                                   
 8005070:	00 84 00 01 	srui r4,r4,1                                   
 8005074:	00 84 00 01 	srui r4,r4,1                                   
 8005078:	00 84 00 01 	srui r4,r4,1                                   
 800507c:	00 84 00 01 	srui r4,r4,1                                   
 8005080:	00 84 00 01 	srui r4,r4,1                                   
 8005084:	b4 a4 20 00 	add r4,r5,r4                                   
 8005088:	40 84 00 00 	lbu r4,(r4+0)                                  
 800508c:	e3 ff ff be 	bi 8004f84 <_Scheduler_priority_Block+0x84>    
                                                                      

08005250 <_Scheduler_priority_Schedule>: RTEMS_INLINE_ROUTINE Priority_Control _Priority_bit_map_Get_highest( void ) { Priority_bit_map_Control minor; Priority_bit_map_Control major; _Bitfield_Find_first_bit( _Priority_Major_bit_map, major );
 8005250:	78 01 08 01 	mvhi r1,0x801                                  
 8005254:	38 21 3a 48 	ori r1,r1,0x3a48                               
 8005258:	2c 22 00 00 	lhu r2,(r1+0)                                  
 *  @param[in] the_thread  - pointer to thread                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)     
{                                                                     
  _Thread_Heir = _Scheduler_priority_Ready_queue_first(               
    (Chain_Control *) _Scheduler.information                          
 800525c:	78 01 08 01 	mvhi r1,0x801                                  
 8005260:	38 21 30 1c 	ori r1,r1,0x301c                               
 *                                                                    
 *  @param[in] the_thread  - pointer to thread                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)     
{                                                                     
  _Thread_Heir = _Scheduler_priority_Ready_queue_first(               
 8005264:	28 25 00 00 	lw r5,(r1+0)                                   
 8005268:	20 42 ff ff 	andi r2,r2,0xffff                              
 800526c:	34 01 00 ff 	mvi r1,255                                     
 8005270:	54 41 00 2d 	bgu r2,r1,8005324 <_Scheduler_priority_Schedule+0xd4>
 8005274:	78 03 08 01 	mvhi r3,0x801                                  
 8005278:	38 63 22 54 	ori r3,r3,0x2254                               
 800527c:	b4 62 10 00 	add r2,r3,r2                                   
 8005280:	40 42 00 00 	lbu r2,(r2+0)                                  
 8005284:	34 42 00 08 	addi r2,r2,8                                   
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
 8005288:	78 04 08 01 	mvhi r4,0x801                                  
 800528c:	38 84 3a 50 	ori r4,r4,0x3a50                               
 8005290:	b4 42 10 00 	add r2,r2,r2                                   
 8005294:	b4 82 20 00 	add r4,r4,r2                                   
 8005298:	2c 81 00 00 	lhu r1,(r4+0)                                  
 800529c:	34 04 00 ff 	mvi r4,255                                     
 80052a0:	54 24 00 16 	bgu r1,r4,80052f8 <_Scheduler_priority_Schedule+0xa8>
 80052a4:	b4 61 08 00 	add r1,r3,r1                                   
 80052a8:	40 23 00 00 	lbu r3,(r1+0)                                  
 80052ac:	34 63 00 08 	addi r3,r3,8                                   
                                                                      
  return (_Priority_Bits_index( major ) << 4) +                       
 80052b0:	b4 42 08 00 	add r1,r2,r2                                   
 80052b4:	b4 21 08 00 	add r1,r1,r1                                   
 80052b8:	b4 21 08 00 	add r1,r1,r1                                   
 80052bc:	b4 61 08 00 	add r1,r3,r1                                   
  Chain_Control       *the_ready_queue                                
)                                                                     
{                                                                     
  Priority_Control index = _Priority_bit_map_Get_highest();           
                                                                      
  if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )                
 80052c0:	b4 21 10 00 	add r2,r1,r1                                   
 80052c4:	b4 41 08 00 	add r1,r2,r1                                   
 80052c8:	b4 21 08 00 	add r1,r1,r1                                   
 80052cc:	b4 21 08 00 	add r1,r1,r1                                   
 80052d0:	b4 a1 08 00 	add r1,r5,r1                                   
#include <rtems/score/schedulerpriority.h>                            
                                                                      
void _Scheduler_priority_Schedule(void)                               
{                                                                     
  _Scheduler_priority_Schedule_body();                                
}                                                                     
 80052d4:	28 23 00 00 	lw r3,(r1+0)                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 80052d8:	34 21 00 04 	addi r1,r1,4                                   
    return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
                                                                      
  return NULL;                                                        
 80052dc:	34 02 00 00 	mvi r2,0                                       
  Chain_Control       *the_ready_queue                                
)                                                                     
{                                                                     
  Priority_Control index = _Priority_bit_map_Get_highest();           
                                                                      
  if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )                
 80052e0:	44 61 00 02 	be r3,r1,80052e8 <_Scheduler_priority_Schedule+0x98><== NEVER TAKEN
    return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
 80052e4:	b8 60 10 00 	mv r2,r3                                       
 *                                                                    
 *  @param[in] the_thread  - pointer to thread                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)     
{                                                                     
  _Thread_Heir = _Scheduler_priority_Ready_queue_first(               
 80052e8:	78 01 08 01 	mvhi r1,0x801                                  
 80052ec:	38 21 3a 28 	ori r1,r1,0x3a28                               
 80052f0:	58 22 00 10 	sw (r1+16),r2                                  
 80052f4:	c3 a0 00 00 	ret                                            
{                                                                     
  Priority_bit_map_Control minor;                                     
  Priority_bit_map_Control major;                                     
                                                                      
  _Bitfield_Find_first_bit( _Priority_Major_bit_map, major );         
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
 80052f8:	00 21 00 01 	srui r1,r1,1                                   
 80052fc:	00 21 00 01 	srui r1,r1,1                                   
 8005300:	00 21 00 01 	srui r1,r1,1                                   
 8005304:	00 21 00 01 	srui r1,r1,1                                   
 8005308:	00 21 00 01 	srui r1,r1,1                                   
 800530c:	00 21 00 01 	srui r1,r1,1                                   
 8005310:	00 21 00 01 	srui r1,r1,1                                   
 8005314:	00 21 00 01 	srui r1,r1,1                                   
 8005318:	b4 61 08 00 	add r1,r3,r1                                   
 800531c:	40 23 00 00 	lbu r3,(r1+0)                                  
 8005320:	e3 ff ff e4 	bi 80052b0 <_Scheduler_priority_Schedule+0x60> 
RTEMS_INLINE_ROUTINE Priority_Control _Priority_bit_map_Get_highest( void )
{                                                                     
  Priority_bit_map_Control minor;                                     
  Priority_bit_map_Control major;                                     
                                                                      
  _Bitfield_Find_first_bit( _Priority_Major_bit_map, major );         
 8005324:	00 42 00 01 	srui r2,r2,1                                   
 8005328:	78 03 08 01 	mvhi r3,0x801                                  
 800532c:	00 42 00 01 	srui r2,r2,1                                   
 8005330:	38 63 22 54 	ori r3,r3,0x2254                               
 8005334:	00 42 00 01 	srui r2,r2,1                                   
 8005338:	00 42 00 01 	srui r2,r2,1                                   
 800533c:	00 42 00 01 	srui r2,r2,1                                   
 8005340:	00 42 00 01 	srui r2,r2,1                                   
 8005344:	00 42 00 01 	srui r2,r2,1                                   
 8005348:	00 42 00 01 	srui r2,r2,1                                   
 800534c:	b4 62 10 00 	add r2,r3,r2                                   
 8005350:	40 42 00 00 	lbu r2,(r2+0)                                  
 8005354:	e3 ff ff cd 	bi 8005288 <_Scheduler_priority_Schedule+0x38> 
                                                                      

08005498 <_Scheduler_priority_Yield>: Scheduler_priority_Per_thread *sched_info; ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing;
 8005498:	78 02 08 01 	mvhi r2,0x801                                  
 800549c:	38 42 3a 28 	ori r2,r2,0x3a28                               
 80054a0:	28 41 00 0c 	lw r1,(r2+12)                                  
  sched_info = (Scheduler_priority_Per_thread *) executing->scheduler_info;
  ready      = sched_info->ready_chain;                               
 80054a4:	28 23 00 8c 	lw r3,(r1+140)                                 
 80054a8:	28 63 00 00 	lw r3,(r3+0)                                   
  _ISR_Disable( level );                                              
 80054ac:	90 00 20 00 	rcsr r4,IE                                     
 80054b0:	34 05 ff fe 	mvi r5,-2                                      
 80054b4:	a0 85 28 00 	and r5,r4,r5                                   
 80054b8:	d0 05 00 00 	wcsr IE,r5                                     
    if ( !_Chain_Has_only_one_node( ready ) ) {                       
 80054bc:	28 67 00 00 	lw r7,(r3+0)                                   
 80054c0:	28 66 00 08 	lw r6,(r3+8)                                   
 80054c4:	44 e6 00 16 	be r7,r6,800551c <_Scheduler_priority_Yield+0x84>
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
 80054c8:	28 29 00 00 	lw r9,(r1+0)                                   
  previous       = the_node->previous;                                
 80054cc:	28 27 00 04 	lw r7,(r1+4)                                   
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(                  
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
 80054d0:	34 68 00 04 	addi r8,r3,4                                   
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
  next->previous = previous;                                          
 80054d4:	59 27 00 04 	sw (r9+4),r7                                   
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
 80054d8:	28 66 00 08 	lw r6,(r3+8)                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
  next->previous = previous;                                          
  previous->next = next;                                              
 80054dc:	58 e9 00 00 	sw (r7+0),r9                                   
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
  tail->previous = the_node;                                          
 80054e0:	58 61 00 08 	sw (r3+8),r1                                   
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
 80054e4:	58 28 00 00 	sw (r1+0),r8                                   
  tail->previous = the_node;                                          
  old_last->next = the_node;                                          
 80054e8:	58 c1 00 00 	sw (r6+0),r1                                   
  the_node->previous = old_last;                                      
 80054ec:	58 26 00 04 	sw (r1+4),r6                                   
      _Chain_Extract_unprotected( &executing->Object.Node );          
      _Chain_Append_unprotected( ready, &executing->Object.Node );    
                                                                      
      _ISR_Flash( level );                                            
 80054f0:	d0 04 00 00 	wcsr IE,r4                                     
 80054f4:	d0 05 00 00 	wcsr IE,r5                                     
                                                                      
      if ( _Thread_Is_heir( executing ) )                             
 80054f8:	28 45 00 10 	lw r5,(r2+16)                                  
 80054fc:	44 25 00 05 	be r1,r5,8005510 <_Scheduler_priority_Yield+0x78><== ALWAYS TAKEN
        _Thread_Heir = (Thread_Control *) _Chain_First( ready );      
      _Thread_Dispatch_necessary = true;                              
    }                                                                 
    else if ( !_Thread_Is_heir( executing ) )                         
      _Thread_Dispatch_necessary = true;                              
 8005500:	34 01 00 01 	mvi r1,1                                       
 8005504:	30 41 00 18 	sb (r2+24),r1                                  
                                                                      
  _ISR_Enable( level );                                               
 8005508:	d0 04 00 00 	wcsr IE,r4                                     
}                                                                     
 800550c:	c3 a0 00 00 	ret                                            
      _Chain_Append_unprotected( ready, &executing->Object.Node );    
                                                                      
      _ISR_Flash( level );                                            
                                                                      
      if ( _Thread_Is_heir( executing ) )                             
        _Thread_Heir = (Thread_Control *) _Chain_First( ready );      
 8005510:	28 61 00 00 	lw r1,(r3+0)                                   
 8005514:	58 41 00 10 	sw (r2+16),r1                                  
 8005518:	e3 ff ff fa 	bi 8005500 <_Scheduler_priority_Yield+0x68>    
      _Thread_Dispatch_necessary = true;                              
    }                                                                 
    else if ( !_Thread_Is_heir( executing ) )                         
 800551c:	28 43 00 10 	lw r3,(r2+16)                                  
 8005520:	5c 23 ff f8 	bne r1,r3,8005500 <_Scheduler_priority_Yield+0x68><== NEVER TAKEN
 8005524:	e3 ff ff f9 	bi 8005508 <_Scheduler_priority_Yield+0x70>    
                                                                      

08003e10 <_TOD_Tickle_ticks>: * * Output parameters: NONE */ void _TOD_Tickle_ticks( void ) {
 8003e10:	37 9c ff ec 	addi sp,sp,-20                                 
 8003e14:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8003e18:	5b 8c 00 08 	sw (sp+8),r12                                  
 8003e1c:	5b 9d 00 04 	sw (sp+4),ra                                   
  Timestamp_Control tick;                                             
  uint32_t          seconds;                                          
                                                                      
  /* Convert the tick quantum to a timestamp */                       
  _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
 8003e20:	78 01 08 01 	mvhi r1,0x801                                  
 8003e24:	38 21 30 f4 	ori r1,r1,0x30f4                               
 8003e28:	28 21 00 0c 	lw r1,(r1+12)                                  
                                                                      
  /* Update the counter of ticks since boot */                        
  _Watchdog_Ticks_since_boot += 1;                                    
 8003e2c:	78 03 08 01 	mvhi r3,0x801                                  
 8003e30:	38 63 39 98 	ori r3,r3,0x3998                               
{                                                                     
  Timestamp_Control tick;                                             
  uint32_t          seconds;                                          
                                                                      
  /* Convert the tick quantum to a timestamp */                       
  _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
 8003e34:	b4 21 08 00 	add r1,r1,r1                                   
 8003e38:	b4 21 08 00 	add r1,r1,r1                                   
 8003e3c:	b4 21 08 00 	add r1,r1,r1                                   
 8003e40:	b4 21 10 00 	add r2,r1,r1                                   
 8003e44:	b4 42 10 00 	add r2,r2,r2                                   
 8003e48:	b4 22 08 00 	add r1,r1,r2                                   
 8003e4c:	b4 21 10 00 	add r2,r1,r1                                   
 8003e50:	b4 42 10 00 	add r2,r2,r2                                   
 8003e54:	b4 22 08 00 	add r1,r1,r2                                   
                                                                      
  /* Update the counter of ticks since boot */                        
  _Watchdog_Ticks_since_boot += 1;                                    
 8003e58:	28 65 00 00 	lw r5,(r3+0)                                   
{                                                                     
  Timestamp_Control tick;                                             
  uint32_t          seconds;                                          
                                                                      
  /* Convert the tick quantum to a timestamp */                       
  _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
 8003e5c:	b4 21 20 00 	add r4,r1,r1                                   
 8003e60:	b4 84 20 00 	add r4,r4,r4                                   
 8003e64:	b4 24 20 00 	add r4,r1,r4                                   
                                                                      
  /* Update the counter of ticks since boot */                        
  _Watchdog_Ticks_since_boot += 1;                                    
                                                                      
  /* Update the timespec format uptime */                             
  _Timestamp_Add_to( &_TOD_Uptime, &tick );                           
 8003e68:	37 8b 00 10 	addi r11,sp,16                                 
                                                                      
  /* Convert the tick quantum to a timestamp */                       
  _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
                                                                      
  /* Update the counter of ticks since boot */                        
  _Watchdog_Ticks_since_boot += 1;                                    
 8003e6c:	34 a5 00 01 	addi r5,r5,1                                   
                                                                      
  /* Update the timespec format uptime */                             
  _Timestamp_Add_to( &_TOD_Uptime, &tick );                           
 8003e70:	78 01 08 01 	mvhi r1,0x801                                  
 8003e74:	b9 60 10 00 	mv r2,r11                                      
                                                                      
  /* Convert the tick quantum to a timestamp */                       
  _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
                                                                      
  /* Update the counter of ticks since boot */                        
  _Watchdog_Ticks_since_boot += 1;                                    
 8003e78:	58 65 00 00 	sw (r3+0),r5                                   
                                                                      
  /* Update the timespec format uptime */                             
  _Timestamp_Add_to( &_TOD_Uptime, &tick );                           
 8003e7c:	38 21 39 04 	ori r1,r1,0x3904                               
{                                                                     
  Timestamp_Control tick;                                             
  uint32_t          seconds;                                          
                                                                      
  /* Convert the tick quantum to a timestamp */                       
  _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
 8003e80:	5b 84 00 14 	sw (sp+20),r4                                  
 8003e84:	5b 80 00 10 	sw (sp+16),r0                                  
                                                                      
  /* Update the counter of ticks since boot */                        
  _Watchdog_Ticks_since_boot += 1;                                    
                                                                      
  /* Update the timespec format uptime */                             
  _Timestamp_Add_to( &_TOD_Uptime, &tick );                           
 8003e88:	f8 00 0a 14 	calli 80066d8 <_Timespec_Add_to>               
  /* we do not care how much the uptime changed */                    
                                                                      
  /* Update the timespec format TOD */                                
  seconds = _Timestamp_Add_to_at_tick( &_TOD_Now, &tick );            
 8003e8c:	78 01 08 01 	mvhi r1,0x801                                  
 8003e90:	b9 60 10 00 	mv r2,r11                                      
 8003e94:	38 21 39 10 	ori r1,r1,0x3910                               
 8003e98:	f8 00 0a 10 	calli 80066d8 <_Timespec_Add_to>               
 8003e9c:	b8 20 58 00 	mv r11,r1                                      
  while ( seconds ) {                                                 
 8003ea0:	44 20 00 07 	be r1,r0,8003ebc <_TOD_Tickle_ticks+0xac>      
 8003ea4:	78 0c 08 01 	mvhi r12,0x801                                 
 8003ea8:	39 8c 39 3c 	ori r12,r12,0x393c                             
    _Watchdog_Tickle_seconds();                                       
    seconds--;                                                        
 8003eac:	35 6b ff ff 	addi r11,r11,-1                                
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_seconds( void )            
{                                                                     
                                                                      
  _Watchdog_Tickle( &_Watchdog_Seconds_chain );                       
 8003eb0:	b9 80 08 00 	mv r1,r12                                      
 8003eb4:	f8 00 0b e2 	calli 8006e3c <_Watchdog_Tickle>               
  _Timestamp_Add_to( &_TOD_Uptime, &tick );                           
  /* we do not care how much the uptime changed */                    
                                                                      
  /* Update the timespec format TOD */                                
  seconds = _Timestamp_Add_to_at_tick( &_TOD_Now, &tick );            
  while ( seconds ) {                                                 
 8003eb8:	5d 60 ff fd 	bne r11,r0,8003eac <_TOD_Tickle_ticks+0x9c>    <== NEVER TAKEN
    _Watchdog_Tickle_seconds();                                       
    seconds--;                                                        
  }                                                                   
}                                                                     
 8003ebc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003ec0:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8003ec4:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8003ec8:	37 9c 00 14 	addi sp,sp,20                                  
 8003ecc:	c3 a0 00 00 	ret                                            
                                                                      

080044a4 <_TOD_Validate>: */ bool _TOD_Validate( const rtems_time_of_day *the_tod ) {
 80044a4:	37 9c ff f4 	addi sp,sp,-12                                 
 80044a8:	5b 8b 00 0c 	sw (sp+12),r11                                 
 80044ac:	5b 8c 00 08 	sw (sp+8),r12                                  
 80044b0:	5b 9d 00 04 	sw (sp+4),ra                                   
  uint32_t   days_in_month;                                           
  uint32_t   ticks_per_second;                                        
                                                                      
  ticks_per_second = TOD_MICROSECONDS_PER_SECOND /                    
	    rtems_configuration_get_microseconds_per_tick();                 
 80044b4:	78 02 08 02 	mvhi r2,0x802                                  
 80044b8:	38 42 00 f4 	ori r2,r2,0xf4                                 
 */                                                                   
                                                                      
bool _TOD_Validate(                                                   
  const rtems_time_of_day *the_tod                                    
)                                                                     
{                                                                     
 80044bc:	b8 20 58 00 	mv r11,r1                                      
  uint32_t   days_in_month;                                           
  uint32_t   ticks_per_second;                                        
                                                                      
  ticks_per_second = TOD_MICROSECONDS_PER_SECOND /                    
	    rtems_configuration_get_microseconds_per_tick();                 
 80044c0:	28 42 00 0c 	lw r2,(r2+12)                                  
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
      (the_tod->month  == 0)                      ||                  
      (the_tod->month  >  TOD_MONTHS_PER_YEAR)    ||                  
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
      (the_tod->day    == 0) )                                        
     return false;                                                    
 80044c4:	34 0c 00 00 	mvi r12,0                                      
  uint32_t   days_in_month;                                           
  uint32_t   ticks_per_second;                                        
                                                                      
  ticks_per_second = TOD_MICROSECONDS_PER_SECOND /                    
	    rtems_configuration_get_microseconds_per_tick();                 
  if ((!the_tod)                                  ||                  
 80044c8:	44 20 00 22 	be r1,r0,8004550 <_TOD_Validate+0xac>          <== NEVER TAKEN
)                                                                     
{                                                                     
  uint32_t   days_in_month;                                           
  uint32_t   ticks_per_second;                                        
                                                                      
  ticks_per_second = TOD_MICROSECONDS_PER_SECOND /                    
 80044cc:	78 03 08 01 	mvhi r3,0x801                                  
 80044d0:	38 63 db a8 	ori r3,r3,0xdba8                               
 80044d4:	28 61 00 00 	lw r1,(r3+0)                                   
 80044d8:	f8 00 61 76 	calli 801cab0 <__udivsi3>                      
	    rtems_configuration_get_microseconds_per_tick();                 
  if ((!the_tod)                                  ||                  
 80044dc:	29 62 00 18 	lw r2,(r11+24)                                 
 80044e0:	50 41 00 1c 	bgeu r2,r1,8004550 <_TOD_Validate+0xac>        
      (the_tod->ticks  >= ticks_per_second)       ||                  
 80044e4:	29 62 00 14 	lw r2,(r11+20)                                 
 80044e8:	34 01 00 3b 	mvi r1,59                                      
 80044ec:	54 41 00 19 	bgu r2,r1,8004550 <_TOD_Validate+0xac>         
      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||                  
 80044f0:	29 62 00 10 	lw r2,(r11+16)                                 
 80044f4:	54 41 00 17 	bgu r2,r1,8004550 <_TOD_Validate+0xac>         
      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||                  
 80044f8:	29 62 00 0c 	lw r2,(r11+12)                                 
 80044fc:	34 01 00 17 	mvi r1,23                                      
 8004500:	54 41 00 14 	bgu r2,r1,8004550 <_TOD_Validate+0xac>         
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
      (the_tod->month  == 0)                      ||                  
 8004504:	29 61 00 04 	lw r1,(r11+4)                                  
	    rtems_configuration_get_microseconds_per_tick();                 
  if ((!the_tod)                                  ||                  
      (the_tod->ticks  >= ticks_per_second)       ||                  
      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||                  
      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||                  
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
 8004508:	44 20 00 12 	be r1,r0,8004550 <_TOD_Validate+0xac>          <== NEVER TAKEN
      (the_tod->month  == 0)                      ||                  
 800450c:	34 02 00 0c 	mvi r2,12                                      
 8004510:	54 22 00 10 	bgu r1,r2,8004550 <_TOD_Validate+0xac>         
      (the_tod->month  >  TOD_MONTHS_PER_YEAR)    ||                  
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
 8004514:	29 62 00 00 	lw r2,(r11+0)                                  
      (the_tod->ticks  >= ticks_per_second)       ||                  
      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||                  
      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||                  
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
      (the_tod->month  == 0)                      ||                  
      (the_tod->month  >  TOD_MONTHS_PER_YEAR)    ||                  
 8004518:	34 03 07 c3 	mvi r3,1987                                    
 800451c:	50 62 00 0d 	bgeu r3,r2,8004550 <_TOD_Validate+0xac>        
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
      (the_tod->day    == 0) )                                        
 8004520:	29 63 00 08 	lw r3,(r11+8)                                  
      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||                  
      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||                  
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
      (the_tod->month  == 0)                      ||                  
      (the_tod->month  >  TOD_MONTHS_PER_YEAR)    ||                  
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
 8004524:	44 60 00 0b 	be r3,r0,8004550 <_TOD_Validate+0xac>          <== NEVER TAKEN
      (the_tod->day    == 0) )                                        
     return false;                                                    
                                                                      
  if ( (the_tod->year % 4) == 0 )                                     
 8004528:	20 42 00 03 	andi r2,r2,0x3                                 
 800452c:	5c 40 00 02 	bne r2,r0,8004534 <_TOD_Validate+0x90>         
    days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];       
 8004530:	34 21 00 0d 	addi r1,r1,13                                  
  else                                                                
    days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];       
 8004534:	78 02 08 01 	mvhi r2,0x801                                  
 8004538:	b4 21 08 00 	add r1,r1,r1                                   
 800453c:	38 42 e4 58 	ori r2,r2,0xe458                               
 8004540:	b4 21 08 00 	add r1,r1,r1                                   
 8004544:	b4 41 08 00 	add r1,r2,r1                                   
 8004548:	28 2c 00 00 	lw r12,(r1+0)                                  
 *    false - if the the_tod is invalid                               
 *                                                                    
 *  NOTE: This routine only works for leap-years through 2099.        
 */                                                                   
                                                                      
bool _TOD_Validate(                                                   
 800454c:	f1 83 60 00 	cmpgeu r12,r12,r3                              
                                                                      
  if ( the_tod->day > days_in_month )                                 
    return false;                                                     
                                                                      
  return true;                                                        
}                                                                     
 8004550:	b9 80 08 00 	mv r1,r12                                      
 8004554:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004558:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 800455c:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8004560:	37 9c 00 0c 	addi sp,sp,12                                  
 8004564:	c3 a0 00 00 	ret                                            
                                                                      

08005528 <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) {
 8005528:	37 9c ff e4 	addi sp,sp,-28                                 
 800552c:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8005530:	5b 8c 00 18 	sw (sp+24),r12                                 
 8005534:	5b 8d 00 14 	sw (sp+20),r13                                 
 8005538:	5b 8e 00 10 	sw (sp+16),r14                                 
 800553c:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8005540:	5b 90 00 08 	sw (sp+8),r16                                  
 8005544:	5b 9d 00 04 	sw (sp+4),ra                                   
 8005548:	b8 20 58 00 	mv r11,r1                                      
  States_Control state, original_state;                               
                                                                      
  /*                                                                  
   * Save original state                                              
   */                                                                 
  original_state = the_thread->current_state;                         
 800554c:	28 2f 00 10 	lw r15,(r1+16)                                 
void _Thread_Change_priority(                                         
  Thread_Control   *the_thread,                                       
  Priority_Control  new_priority,                                     
  bool              prepend_it                                        
)                                                                     
{                                                                     
 8005550:	b8 40 60 00 	mv r12,r2                                      
 8005554:	20 70 00 ff 	andi r16,r3,0xff                               
  /*                                                                  
   * Set a transient state for the thread so it is pulled off the Ready chains.
   * This will prevent it from being scheduled no matter what happens in an
   * ISR.                                                             
   */                                                                 
  _Thread_Set_transient( the_thread );                                
 8005558:	f8 00 03 d5 	calli 80064ac <_Thread_Set_transient>          
                                                                      
  /*                                                                  
   *  Do not bother recomputing all the priority related information if
   *  we are not REALLY changing priority.                            
   */                                                                 
 if ( the_thread->current_priority != new_priority )                  
 800555c:	29 61 00 14 	lw r1,(r11+20)                                 
 8005560:	44 2c 00 04 	be r1,r12,8005570 <_Thread_Change_priority+0x48>
    _Thread_Set_priority( the_thread, new_priority );                 
 8005564:	b9 60 08 00 	mv r1,r11                                      
 8005568:	b9 80 10 00 	mv r2,r12                                      
 800556c:	f8 00 03 ac 	calli 800641c <_Thread_Set_priority>           
                                                                      
  _ISR_Disable( level );                                              
 8005570:	90 00 60 00 	rcsr r12,IE                                    
 8005574:	34 0d ff fe 	mvi r13,-2                                     
 8005578:	a1 8d 68 00 	and r13,r12,r13                                
 800557c:	d0 0d 00 00 	wcsr IE,r13                                    
                                                                      
  /*                                                                  
   *  If the thread has more than STATES_TRANSIENT set, then it is blocked,
   *  If it is blocked on a thread queue, then we need to requeue it. 
   */                                                                 
  state = the_thread->current_state;                                  
 8005580:	29 61 00 10 	lw r1,(r11+16)                                 
  if ( state != STATES_TRANSIENT ) {                                  
 8005584:	34 02 00 04 	mvi r2,4                                       
 8005588:	44 22 00 1f 	be r1,r2,8005604 <_Thread_Change_priority+0xdc>
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_transient (                      
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_TRANSIENT);                            
 800558c:	21 ef 00 04 	andi r15,r15,0x4                               
    /* Only clear the transient state if it wasn't set already */     
    if ( ! _States_Is_transient( original_state ) )                   
 8005590:	45 e0 00 10 	be r15,r0,80055d0 <_Thread_Change_priority+0xa8><== ALWAYS TAKEN
      the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
    _ISR_Enable( level );                                             
 8005594:	d0 0c 00 00 	wcsr IE,r12                                    <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (        
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_WAITING_ON_THREAD_QUEUE);              
 8005598:	78 03 08 01 	mvhi r3,0x801                                  <== NOT EXECUTED
 800559c:	38 63 23 bc 	ori r3,r3,0x23bc                               <== NOT EXECUTED
 80055a0:	28 62 00 00 	lw r2,(r3+0)                                   <== NOT EXECUTED
 80055a4:	a0 22 08 00 	and r1,r1,r2                                   <== NOT EXECUTED
    if ( _States_Is_waiting_on_thread_queue( state ) ) {              
 80055a8:	5c 20 00 13 	bne r1,r0,80055f4 <_Thread_Change_priority+0xcc><== NOT EXECUTED
                                                                      
  if ( !_Thread_Is_executing_also_the_heir() &&                       
       _Thread_Executing->is_preemptible )                            
    _Thread_Dispatch_necessary = true;                                
  _ISR_Enable( level );                                               
}                                                                     
 80055ac:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80055b0:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 80055b4:	2b 8c 00 18 	lw r12,(sp+24)                                 
 80055b8:	2b 8d 00 14 	lw r13,(sp+20)                                 
 80055bc:	2b 8e 00 10 	lw r14,(sp+16)                                 
 80055c0:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 80055c4:	2b 90 00 08 	lw r16,(sp+8)                                  
 80055c8:	37 9c 00 1c 	addi sp,sp,28                                  
 80055cc:	c3 a0 00 00 	ret                                            
RTEMS_INLINE_ROUTINE States_Control _States_Clear (                   
  States_Control states_to_clear,                                     
  States_Control current_state                                        
)                                                                     
{                                                                     
   return (current_state & ~states_to_clear);                         
 80055d0:	34 02 ff fb 	mvi r2,-5                                      
 80055d4:	a0 22 10 00 	and r2,r1,r2                                   
   */                                                                 
  state = the_thread->current_state;                                  
  if ( state != STATES_TRANSIENT ) {                                  
    /* Only clear the transient state if it wasn't set already */     
    if ( ! _States_Is_transient( original_state ) )                   
      the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
 80055d8:	59 62 00 10 	sw (r11+16),r2                                 
    _ISR_Enable( level );                                             
 80055dc:	d0 0c 00 00 	wcsr IE,r12                                    
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (        
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_WAITING_ON_THREAD_QUEUE);              
 80055e0:	78 03 08 01 	mvhi r3,0x801                                  
 80055e4:	38 63 23 bc 	ori r3,r3,0x23bc                               
 80055e8:	28 62 00 00 	lw r2,(r3+0)                                   
 80055ec:	a0 22 08 00 	and r1,r1,r2                                   
    if ( _States_Is_waiting_on_thread_queue( state ) ) {              
 80055f0:	44 20 ff ef 	be r1,r0,80055ac <_Thread_Change_priority+0x84>
      _Thread_queue_Requeue( the_thread->Wait.queue, the_thread );    
 80055f4:	29 61 00 44 	lw r1,(r11+68)                                 
 80055f8:	b9 60 10 00 	mv r2,r11                                      
 80055fc:	f8 00 03 4b 	calli 8006328 <_Thread_queue_Requeue>          
 8005600:	e3 ff ff eb 	bi 80055ac <_Thread_Change_priority+0x84>      
 8005604:	78 0e 08 01 	mvhi r14,0x801                                 
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_transient (                      
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_TRANSIENT);                            
 8005608:	21 ef 00 04 	andi r15,r15,0x4                               
 800560c:	39 ce 30 1c 	ori r14,r14,0x301c                             
    }                                                                 
    return;                                                           
  }                                                                   
                                                                      
  /* Only clear the transient state if it wasn't set already */       
  if ( ! _States_Is_transient( original_state ) ) {                   
 8005610:	5d e0 00 06 	bne r15,r0,8005628 <_Thread_Change_priority+0x100><== NEVER TAKEN
     *  Interrupts are STILL disabled.                                
     *  We now know the thread will be in the READY state when we remove
     *  the TRANSIENT state.  So we have to place it on the appropriate
     *  Ready Queue with interrupts off.                              
     */                                                               
    the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
 8005614:	59 60 00 10 	sw (r11+16),r0                                 
                                                                      
    if ( prepend_it )                                                 
 8005618:	46 0f 00 13 	be r16,r15,8005664 <_Thread_Change_priority+0x13c>
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue_first(                   
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  _Scheduler.Operations.enqueue_first( the_thread );                  
 800561c:	29 c2 00 28 	lw r2,(r14+40)                                 
 8005620:	b9 60 08 00 	mv r1,r11                                      
 8005624:	d8 40 00 00 	call r2                                        
      _Scheduler_Enqueue_first( the_thread );                         
    else                                                              
      _Scheduler_Enqueue( the_thread );                               
  }                                                                   
                                                                      
  _ISR_Flash( level );                                                
 8005628:	d0 0c 00 00 	wcsr IE,r12                                    
 800562c:	d0 0d 00 00 	wcsr IE,r13                                    
 *  This kernel routine implements the scheduling decision logic for  
 *  the scheduler. It does NOT dispatch.                              
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_Schedule( void )                 
{                                                                     
  _Scheduler.Operations.schedule();                                   
 8005630:	29 c1 00 08 	lw r1,(r14+8)                                  
 8005634:	d8 20 00 00 	call r1                                        
 *  is also the heir thread, and false otherwise.                     
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void )  
{                                                                     
  return ( _Thread_Executing == _Thread_Heir );                       
 8005638:	78 01 08 01 	mvhi r1,0x801                                  
 800563c:	38 21 3a 28 	ori r1,r1,0x3a28                               
 8005640:	28 22 00 0c 	lw r2,(r1+12)                                  
   *  We altered the set of thread priorities.  So let's figure out   
   *  who is the heir and if we need to switch to them.               
   */                                                                 
  _Scheduler_Schedule();                                              
                                                                      
  if ( !_Thread_Is_executing_also_the_heir() &&                       
 8005644:	28 23 00 10 	lw r3,(r1+16)                                  
 8005648:	44 43 00 05 	be r2,r3,800565c <_Thread_Change_priority+0x134>
 800564c:	40 42 00 74 	lbu r2,(r2+116)                                
 8005650:	44 40 00 03 	be r2,r0,800565c <_Thread_Change_priority+0x134>
       _Thread_Executing->is_preemptible )                            
    _Thread_Dispatch_necessary = true;                                
 8005654:	34 02 00 01 	mvi r2,1                                       
 8005658:	30 22 00 18 	sb (r1+24),r2                                  
  _ISR_Enable( level );                                               
 800565c:	d0 0c 00 00 	wcsr IE,r12                                    
 8005660:	e3 ff ff d3 	bi 80055ac <_Thread_Change_priority+0x84>      
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue(                         
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  _Scheduler.Operations.enqueue( the_thread );                        
 8005664:	29 c2 00 24 	lw r2,(r14+36)                                 
 8005668:	b9 60 08 00 	mv r1,r11                                      
 800566c:	d8 40 00 00 	call r2                                        
 8005670:	e3 ff ff ee 	bi 8005628 <_Thread_Change_priority+0x100>     
                                                                      

0800c92c <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) {
 800c92c:	37 9c ff f8 	addi sp,sp,-8                                  
 800c930:	5b 9d 00 04 	sw (sp+4),ra                                   
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 800c934:	37 82 00 08 	addi r2,sp,8                                   
 800c938:	f8 00 00 8a 	calli 800cb60 <_Thread_Get>                    
  switch ( location ) {                                               
 800c93c:	2b 82 00 08 	lw r2,(sp+8)                                   
 800c940:	5c 40 00 0a 	bne r2,r0,800c968 <_Thread_Delay_ended+0x3c>   <== NEVER TAKEN
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
      break;                                                          
    case OBJECTS_LOCAL:                                               
      _Thread_Clear_state(                                            
 800c944:	78 03 08 02 	mvhi r3,0x802                                  
 800c948:	38 63 6a c4 	ori r3,r3,0x6ac4                               
 800c94c:	28 62 00 00 	lw r2,(r3+0)                                   
 800c950:	fb ff ff 67 	calli 800c6ec <_Thread_Clear_state>            
 800c954:	78 01 08 02 	mvhi r1,0x802                                  
 800c958:	38 21 9a 08 	ori r1,r1,0x9a08                               
 800c95c:	28 22 00 00 	lw r2,(r1+0)                                   
 800c960:	34 42 ff ff 	addi r2,r2,-1                                  
 800c964:	58 22 00 00 	sw (r1+0),r2                                   
          | STATES_INTERRUPTIBLE_BY_SIGNAL                            
      );                                                              
      _Thread_Unnest_dispatch();                                      
      break;                                                          
  }                                                                   
}                                                                     
 800c968:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800c96c:	37 9c 00 08 	addi sp,sp,8                                   
 800c970:	c3 a0 00 00 	ret                                            
                                                                      

08005844 <_Thread_Dispatch>: * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) {
 8005844:	37 9c ff bc 	addi sp,sp,-68                                 
 8005848:	5b 8b 00 34 	sw (sp+52),r11                                 
 800584c:	5b 8c 00 30 	sw (sp+48),r12                                 
 8005850:	5b 8d 00 2c 	sw (sp+44),r13                                 
 8005854:	5b 8e 00 28 	sw (sp+40),r14                                 
 8005858:	5b 8f 00 24 	sw (sp+36),r15                                 
 800585c:	5b 90 00 20 	sw (sp+32),r16                                 
 8005860:	5b 91 00 1c 	sw (sp+28),r17                                 
 8005864:	5b 92 00 18 	sw (sp+24),r18                                 
 8005868:	5b 93 00 14 	sw (sp+20),r19                                 
 800586c:	5b 94 00 10 	sw (sp+16),r20                                 
 8005870:	5b 95 00 0c 	sw (sp+12),r21                                 
 8005874:	5b 96 00 08 	sw (sp+8),r22                                  
 8005878:	5b 9d 00 04 	sw (sp+4),ra                                   
  Thread_Control   *executing;                                        
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
 800587c:	78 01 08 01 	mvhi r1,0x801                                  
 8005880:	38 21 3a 28 	ori r1,r1,0x3a28                               
 8005884:	28 2c 00 0c 	lw r12,(r1+12)                                 
  _ISR_Disable( level );                                              
 8005888:	90 00 08 00 	rcsr r1,IE                                     
 800588c:	34 02 ff fe 	mvi r2,-2                                      
 8005890:	a0 22 10 00 	and r2,r1,r2                                   
 8005894:	d0 02 00 00 	wcsr IE,r2                                     
  while ( _Thread_Dispatch_necessary == true ) {                      
 8005898:	78 0e 08 01 	mvhi r14,0x801                                 
 800589c:	39 ce 3a 28 	ori r14,r14,0x3a28                             
 80058a0:	41 c2 00 18 	lbu r2,(r14+24)                                
 80058a4:	78 10 08 01 	mvhi r16,0x801                                 
  Thread_Control   *executing;                                        
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
 80058a8:	b8 20 20 00 	mv r4,r1                                       
  while ( _Thread_Dispatch_necessary == true ) {                      
 80058ac:	20 42 00 ff 	andi r2,r2,0xff                                
 80058b0:	3a 10 38 88 	ori r16,r16,0x3888                             
 80058b4:	44 40 00 40 	be r2,r0,80059b4 <_Thread_Dispatch+0x170>      
    heir = _Thread_Heir;                                              
 80058b8:	29 cb 00 10 	lw r11,(r14+16)                                
    _Thread_Dispatch_disable_level = 1;                               
 80058bc:	34 02 00 01 	mvi r2,1                                       
 80058c0:	5a 02 00 00 	sw (r16+0),r2                                  
    _Thread_Dispatch_necessary = false;                               
 80058c4:	31 c0 00 18 	sb (r14+24),r0                                 
    _Thread_Executing = heir;                                         
 80058c8:	59 cb 00 0c 	sw (r14+12),r11                                
    /*                                                                
     *  When the heir and executing are the same, then we are being   
     *  requested to do the post switch dispatching.  This is normally
     *  done to dispatch signals.                                     
     */                                                               
    if ( heir == executing )                                          
 80058cc:	45 8b 00 3a 	be r12,r11,80059b4 <_Thread_Dispatch+0x170>    
 80058d0:	78 0f 08 01 	mvhi r15,0x801                                 
 80058d4:	78 14 08 01 	mvhi r20,0x801                                 
#if __RTEMS_ADA__                                                     
    executing->rtems_ada_self = rtems_ada_self;                       
    rtems_ada_self = heir->rtems_ada_self;                            
#endif                                                                
    if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE )
      heir->cpu_time_budget = _Thread_Ticks_per_timeslice;            
 80058d8:	78 15 08 01 	mvhi r21,0x801                                 
 80058dc:	37 92 00 40 	addi r18,sp,64                                 
 80058e0:	39 ef 39 34 	ori r15,r15,0x3934                             
 80058e4:	37 91 00 38 	addi r17,sp,56                                 
 80058e8:	3a 94 39 0c 	ori r20,r20,0x390c                             
     */                                                               
#if __RTEMS_ADA__                                                     
    executing->rtems_ada_self = rtems_ada_self;                       
    rtems_ada_self = heir->rtems_ada_self;                            
#endif                                                                
    if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE )
 80058ec:	34 13 00 01 	mvi r19,1                                      
      heir->cpu_time_budget = _Thread_Ticks_per_timeslice;            
 80058f0:	3a b5 38 20 	ori r21,r21,0x3820                             
#endif                                                                
#endif                                                                
                                                                      
    executing = _Thread_Executing;                                    
                                                                      
    _ISR_Disable( level );                                            
 80058f4:	34 16 ff fe 	mvi r22,-2                                     
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Thread_Dispatch_necessary == true ) {                      
 80058f8:	b9 c0 68 00 	mv r13,r14                                     
 80058fc:	e0 00 00 29 	bi 80059a0 <_Thread_Dispatch+0x15c>            
    rtems_ada_self = heir->rtems_ada_self;                            
#endif                                                                
    if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE )
      heir->cpu_time_budget = _Thread_Ticks_per_timeslice;            
                                                                      
    _ISR_Enable( level );                                             
 8005900:	d0 01 00 00 	wcsr IE,r1                                     
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
 8005904:	ba 40 08 00 	mv r1,r18                                      
 8005908:	f8 00 0f 26 	calli 80095a0 <_TOD_Get_uptime>                
        _Timestamp_Subtract(                                          
 800590c:	ba 20 18 00 	mv r3,r17                                      
 8005910:	b9 e0 08 00 	mv r1,r15                                      
 8005914:	ba 40 10 00 	mv r2,r18                                      
 8005918:	f8 00 03 87 	calli 8006734 <_Timespec_Subtract>             
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
 800591c:	ba 20 10 00 	mv r2,r17                                      
 8005920:	35 81 00 84 	addi r1,r12,132                                
 8005924:	f8 00 03 6d 	calli 80066d8 <_Timespec_Add_to>               
        _Thread_Time_of_last_context_switch = uptime;                 
 8005928:	2b 83 00 40 	lw r3,(sp+64)                                  
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
 800592c:	2a 84 00 00 	lw r4,(r20+0)                                  
      executing->libc_reent = *_Thread_libc_reent;                    
      *_Thread_libc_reent = heir->libc_reent;                         
    }                                                                 
                                                                      
    _User_extensions_Thread_switch( executing, heir );                
 8005930:	b9 80 08 00 	mv r1,r12                                      
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
        _Thread_Time_of_last_context_switch = uptime;                 
 8005934:	59 e3 00 00 	sw (r15+0),r3                                  
 8005938:	2b 83 00 44 	lw r3,(sp+68)                                  
    if ( _Thread_libc_reent ) {                                       
      executing->libc_reent = *_Thread_libc_reent;                    
      *_Thread_libc_reent = heir->libc_reent;                         
    }                                                                 
                                                                      
    _User_extensions_Thread_switch( executing, heir );                
 800593c:	b9 60 10 00 	mv r2,r11                                      
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
        _Thread_Time_of_last_context_switch = uptime;                 
 8005940:	59 e3 00 04 	sw (r15+4),r3                                  
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
 8005944:	44 80 00 05 	be r4,r0,8005958 <_Thread_Dispatch+0x114>      <== NEVER TAKEN
      executing->libc_reent = *_Thread_libc_reent;                    
 8005948:	28 83 00 00 	lw r3,(r4+0)                                   
 800594c:	59 83 01 14 	sw (r12+276),r3                                
      *_Thread_libc_reent = heir->libc_reent;                         
 8005950:	29 63 01 14 	lw r3,(r11+276)                                
 8005954:	58 83 00 00 	sw (r4+0),r3                                   
    }                                                                 
                                                                      
    _User_extensions_Thread_switch( executing, heir );                
 8005958:	f8 00 04 7e 	calli 8006b50 <_User_extensions_Thread_switch> 
    if ( executing->fp_context != NULL )                              
      _Context_Save_fp( &executing->fp_context );                     
#endif                                                                
#endif                                                                
                                                                      
    _Context_Switch( &executing->Registers, &heir->Registers );       
 800595c:	35 81 00 c0 	addi r1,r12,192                                
 8005960:	35 62 00 c0 	addi r2,r11,192                                
 8005964:	f8 00 05 b3 	calli 8007030 <_CPU_Context_switch>            
    if ( executing->fp_context != NULL )                              
      _Context_Restore_fp( &executing->fp_context );                  
#endif                                                                
#endif                                                                
                                                                      
    executing = _Thread_Executing;                                    
 8005968:	29 cc 00 0c 	lw r12,(r14+12)                                
                                                                      
    _ISR_Disable( level );                                            
 800596c:	90 00 20 00 	rcsr r4,IE                                     
 8005970:	a0 96 08 00 	and r1,r4,r22                                  
 8005974:	d0 01 00 00 	wcsr IE,r1                                     
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Thread_Dispatch_necessary == true ) {                      
 8005978:	41 a2 00 18 	lbu r2,(r13+24)                                
 800597c:	b9 a0 70 00 	mv r14,r13                                     
#endif                                                                
#endif                                                                
                                                                      
    executing = _Thread_Executing;                                    
                                                                      
    _ISR_Disable( level );                                            
 8005980:	b8 80 08 00 	mv r1,r4                                       
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Thread_Dispatch_necessary == true ) {                      
 8005984:	20 42 00 ff 	andi r2,r2,0xff                                
 8005988:	44 40 00 0b 	be r2,r0,80059b4 <_Thread_Dispatch+0x170>      <== ALWAYS TAKEN
    heir = _Thread_Heir;                                              
 800598c:	29 ab 00 10 	lw r11,(r13+16)                                <== NOT EXECUTED
    _Thread_Dispatch_disable_level = 1;                               
 8005990:	5a 13 00 00 	sw (r16+0),r19                                 <== NOT EXECUTED
    _Thread_Dispatch_necessary = false;                               
 8005994:	31 a0 00 18 	sb (r13+24),r0                                 <== NOT EXECUTED
    _Thread_Executing = heir;                                         
 8005998:	59 ab 00 0c 	sw (r13+12),r11                                <== NOT EXECUTED
    /*                                                                
     *  When the heir and executing are the same, then we are being   
     *  requested to do the post switch dispatching.  This is normally
     *  done to dispatch signals.                                     
     */                                                               
    if ( heir == executing )                                          
 800599c:	45 6c 00 06 	be r11,r12,80059b4 <_Thread_Dispatch+0x170>    <== NOT EXECUTED
     */                                                               
#if __RTEMS_ADA__                                                     
    executing->rtems_ada_self = rtems_ada_self;                       
    rtems_ada_self = heir->rtems_ada_self;                            
#endif                                                                
    if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE )
 80059a0:	29 62 00 7c 	lw r2,(r11+124)                                
 80059a4:	5c 53 ff d7 	bne r2,r19,8005900 <_Thread_Dispatch+0xbc>     
      heir->cpu_time_budget = _Thread_Ticks_per_timeslice;            
 80059a8:	2a a2 00 00 	lw r2,(r21+0)                                  
 80059ac:	59 62 00 78 	sw (r11+120),r2                                
 80059b0:	e3 ff ff d4 	bi 8005900 <_Thread_Dispatch+0xbc>             
                                                                      
    _ISR_Disable( level );                                            
  }                                                                   
                                                                      
post_switch:                                                          
  _Thread_Dispatch_disable_level = 0;                                 
 80059b4:	5a 00 00 00 	sw (r16+0),r0                                  
                                                                      
  _ISR_Enable( level );                                               
 80059b8:	d0 04 00 00 	wcsr IE,r4                                     
                                                                      
  _API_extensions_Run_postswitch();                                   
 80059bc:	fb ff f7 4a 	calli 80036e4 <_API_extensions_Run_postswitch> 
}                                                                     
 80059c0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80059c4:	2b 8b 00 34 	lw r11,(sp+52)                                 
 80059c8:	2b 8c 00 30 	lw r12,(sp+48)                                 
 80059cc:	2b 8d 00 2c 	lw r13,(sp+44)                                 
 80059d0:	2b 8e 00 28 	lw r14,(sp+40)                                 
 80059d4:	2b 8f 00 24 	lw r15,(sp+36)                                 
 80059d8:	2b 90 00 20 	lw r16,(sp+32)                                 
 80059dc:	2b 91 00 1c 	lw r17,(sp+28)                                 
 80059e0:	2b 92 00 18 	lw r18,(sp+24)                                 
 80059e4:	2b 93 00 14 	lw r19,(sp+20)                                 
 80059e8:	2b 94 00 10 	lw r20,(sp+16)                                 
 80059ec:	2b 95 00 0c 	lw r21,(sp+12)                                 
 80059f0:	2b 96 00 08 	lw r22,(sp+8)                                  
 80059f4:	37 9c 00 44 	addi sp,sp,68                                  
 80059f8:	c3 a0 00 00 	ret                                            
                                                                      

0800b8cc <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) {
 800b8cc:	37 9c ff f4 	addi sp,sp,-12                                 
 800b8d0:	5b 8b 00 0c 	sw (sp+12),r11                                 
 800b8d4:	5b 8c 00 08 	sw (sp+8),r12                                  
 800b8d8:	5b 9d 00 04 	sw (sp+4),ra                                   
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    static char doneConstructors;                                     
    char doneCons;                                                    
  #endif                                                              
                                                                      
  executing = _Thread_Executing;                                      
 800b8dc:	78 01 08 01 	mvhi r1,0x801                                  
 800b8e0:	38 21 3a 28 	ori r1,r1,0x3a28                               
 800b8e4:	28 2b 00 0c 	lw r11,(r1+12)                                 
  /*                                                                  
   * have to put level into a register for those cpu's that use       
   * inline asm here                                                  
   */                                                                 
                                                                      
  level = executing->Start.isr_level;                                 
 800b8e8:	29 61 00 ac 	lw r1,(r11+172)                                
  _ISR_Set_level(level);                                              
 800b8ec:	64 21 00 00 	cmpei r1,r1,0                                  
 800b8f0:	d0 01 00 00 	wcsr IE,r1                                     
                                                                      
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    doneCons = doneConstructors;                                      
 800b8f4:	78 02 08 01 	mvhi r2,0x801                                  
 800b8f8:	38 42 36 a0 	ori r2,r2,0x36a0                               
 800b8fc:	40 4c 00 00 	lbu r12,(r2+0)                                 
    doneConstructors = 1;                                             
 800b900:	34 03 00 01 	mvi r3,1                                       
  /*                                                                  
   * Take care that 'begin' extensions get to complete before         
   * 'switch' extensions can run.  This means must keep dispatch      
   * disabled until all 'begin' extensions complete.                  
   */                                                                 
  _User_extensions_Thread_begin( executing );                         
 800b904:	b9 60 08 00 	mv r1,r11                                      
  level = executing->Start.isr_level;                                 
  _ISR_Set_level(level);                                              
                                                                      
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    doneCons = doneConstructors;                                      
    doneConstructors = 1;                                             
 800b908:	30 43 00 00 	sb (r2+0),r3                                   
  /*                                                                  
   * Take care that 'begin' extensions get to complete before         
   * 'switch' extensions can run.  This means must keep dispatch      
   * disabled until all 'begin' extensions complete.                  
   */                                                                 
  _User_extensions_Thread_begin( executing );                         
 800b90c:	fb ff eb e5 	calli 80068a0 <_User_extensions_Thread_begin>  
                                                                      
  /*                                                                  
   *  At this point, the dispatch disable level BETTER be 1.          
   */                                                                 
  _Thread_Enable_dispatch();                                          
 800b910:	fb ff e8 3b 	calli 80059fc <_Thread_Enable_dispatch>        
    /*                                                                
     *  _init could be a weak symbol and we SHOULD test it but it isn't
     *  in any configuration I know of and it generates a warning on every
     *  RTEMS target configuration.  --joel (12 May 2007)             
     */                                                               
    if (!doneCons) /* && (volatile void *)_init) */ {                 
 800b914:	45 80 00 09 	be r12,r0,800b938 <_Thread_Handler+0x6c>       
      INIT_NAME ();                                                   
    }                                                                 
  #endif                                                              
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
 800b918:	29 61 00 94 	lw r1,(r11+148)                                
 800b91c:	44 20 00 0a 	be r1,r0,800b944 <_Thread_Handler+0x78>        <== ALWAYS TAKEN
   *  was placed in return_argument.  This assumed that if it returned
   *  anything (which is not supporting in all APIs), then it would be
   *  able to fit in a (void *).                                      
   */                                                                 
                                                                      
  _User_extensions_Thread_exitted( executing );                       
 800b920:	b9 60 08 00 	mv r1,r11                                      
 800b924:	fb ff eb f7 	calli 8006900 <_User_extensions_Thread_exitted>
                                                                      
  _Internal_error_Occurred(                                           
 800b928:	34 01 00 00 	mvi r1,0                                       
 800b92c:	34 02 00 01 	mvi r2,1                                       
 800b930:	34 03 00 05 	mvi r3,5                                       
 800b934:	fb ff e2 a6 	calli 80043cc <_Internal_error_Occurred>       
     *  _init could be a weak symbol and we SHOULD test it but it isn't
     *  in any configuration I know of and it generates a warning on every
     *  RTEMS target configuration.  --joel (12 May 2007)             
     */                                                               
    if (!doneCons) /* && (volatile void *)_init) */ {                 
      INIT_NAME ();                                                   
 800b938:	fb ff d1 b2 	calli 8000000 <RamBase>                        
    }                                                                 
  #endif                                                              
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
 800b93c:	29 61 00 94 	lw r1,(r11+148)                                
 800b940:	5c 20 ff f8 	bne r1,r0,800b920 <_Thread_Handler+0x54>       <== NEVER TAKEN
    executing->Wait.return_argument =                                 
      (*(Thread_Entry_numeric) executing->Start.entry_point)(         
 800b944:	29 62 00 90 	lw r2,(r11+144)                                
 800b948:	29 61 00 9c 	lw r1,(r11+156)                                
 800b94c:	d8 40 00 00 	call r2                                        
      INIT_NAME ();                                                   
    }                                                                 
  #endif                                                              
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
    executing->Wait.return_argument =                                 
 800b950:	59 61 00 28 	sw (r11+40),r1                                 
 800b954:	e3 ff ff f3 	bi 800b920 <_Thread_Handler+0x54>              
                                                                      

08005b50 <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) {
 8005b50:	37 9c ff e0 	addi sp,sp,-32                                 
 8005b54:	5b 8b 00 20 	sw (sp+32),r11                                 
 8005b58:	5b 8c 00 1c 	sw (sp+28),r12                                 
 8005b5c:	5b 8d 00 18 	sw (sp+24),r13                                 
 8005b60:	5b 8e 00 14 	sw (sp+20),r14                                 
 8005b64:	5b 8f 00 10 	sw (sp+16),r15                                 
 8005b68:	5b 90 00 0c 	sw (sp+12),r16                                 
 8005b6c:	5b 91 00 08 	sw (sp+8),r17                                  
 8005b70:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
  /*                                                                  
   *  Zero out all the allocated memory fields                        
   */                                                                 
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    the_thread->API_Extensions[i] = NULL;                             
 8005b74:	58 40 01 18 	sw (r2+280),r0                                 
 8005b78:	58 40 01 1c 	sw (r2+284),r0                                 
                                                                      
  extensions_area = NULL;                                             
  the_thread->libc_reent = NULL;                                      
 8005b7c:	58 40 01 14 	sw (r2+276),r0                                 
  Thread_CPU_budget_algorithms          budget_algorithm,             
  Thread_CPU_budget_algorithm_callout   budget_callout,               
  uint32_t                              isr_level,                    
  Objects_Name                          name                          
)                                                                     
{                                                                     
 8005b80:	b8 40 58 00 	mv r11,r2                                      
 8005b84:	b8 20 88 00 	mv r17,r1                                      
                                                                      
  /*                                                                  
   *  Allocate and Initialize the stack for this thread.              
   */                                                                 
  #if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) 
    actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
 8005b88:	b8 40 08 00 	mv r1,r2                                       
 8005b8c:	b8 80 10 00 	mv r2,r4                                       
  Thread_CPU_budget_algorithms          budget_algorithm,             
  Thread_CPU_budget_algorithm_callout   budget_callout,               
  uint32_t                              isr_level,                    
  Objects_Name                          name                          
)                                                                     
{                                                                     
 8005b90:	b8 80 60 00 	mv r12,r4                                      
 8005b94:	b8 c0 70 00 	mv r14,r6                                      
 8005b98:	b9 00 80 00 	mv r16,r8                                      
 8005b9c:	20 ef 00 ff 	andi r15,r7,0xff                               
                                                                      
  /*                                                                  
   *  Allocate and Initialize the stack for this thread.              
   */                                                                 
  #if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) 
    actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
 8005ba0:	f8 00 02 57 	calli 80064fc <_Thread_Stack_Allocate>         
    if ( !actual_stack_size || actual_stack_size < stack_size )       
 8005ba4:	f5 81 60 00 	cmpgu r12,r12,r1                               
 8005ba8:	64 22 00 00 	cmpei r2,r1,0                                  
                                                                      
  /*                                                                  
   *  Allocate and Initialize the stack for this thread.              
   */                                                                 
  #if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) 
    actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
 8005bac:	b8 20 18 00 	mv r3,r1                                       
    if ( !actual_stack_size || actual_stack_size < stack_size )       
 8005bb0:	b9 82 60 00 	or r12,r12,r2                                  
      return false;                     /* stack allocation failed */ 
 8005bb4:	34 05 00 00 	mvi r5,0                                       
  /*                                                                  
   *  Allocate and Initialize the stack for this thread.              
   */                                                                 
  #if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) 
    actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
    if ( !actual_stack_size || actual_stack_size < stack_size )       
 8005bb8:	5d 80 00 3f 	bne r12,r0,8005cb4 <_Thread_Initialize+0x164>  
  #endif                                                              
                                                                      
  /*                                                                  
   *  Allocate the extensions area for this thread                    
   */                                                                 
  if ( _Thread_Maximum_extensions ) {                                 
 8005bbc:	78 0d 08 01 	mvhi r13,0x801                                 
  Stack_Control *the_stack,                                           
  void          *starting_address,                                    
  size_t         size                                                 
)                                                                     
{                                                                     
  the_stack->area = starting_address;                                 
 8005bc0:	29 61 00 bc 	lw r1,(r11+188)                                
 8005bc4:	39 ad 39 18 	ori r13,r13,0x3918                             
 8005bc8:	29 a2 00 00 	lw r2,(r13+0)                                  
 8005bcc:	59 61 00 b8 	sw (r11+184),r1                                
  the_stack->size = size;                                             
 8005bd0:	59 63 00 b4 	sw (r11+180),r3                                
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 8005bd4:	59 60 00 50 	sw (r11+80),r0                                 
  the_watchdog->routine   = routine;                                  
 8005bd8:	59 60 00 64 	sw (r11+100),r0                                
  the_watchdog->id        = id;                                       
 8005bdc:	59 60 00 68 	sw (r11+104),r0                                
  the_watchdog->user_data = user_data;                                
 8005be0:	59 60 00 6c 	sw (r11+108),r0                                
 8005be4:	5c 4c 00 3f 	bne r2,r12,8005ce0 <_Thread_Initialize+0x190>  
      (_Thread_Maximum_extensions + 1) * sizeof( void * )             
    );                                                                
    if ( !extensions_area )                                           
      goto failed;                                                    
  }                                                                   
  the_thread->extensions = (void **) extensions_area;                 
 8005be8:	59 60 01 20 	sw (r11+288),r0                                
   *  Zero out all the allocated memory fields                        
   */                                                                 
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    the_thread->API_Extensions[i] = NULL;                             
                                                                      
  extensions_area = NULL;                                             
 8005bec:	34 0c 00 00 	mvi r12,0                                      
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
  the_thread->Start.budget_algorithm = budget_algorithm;              
  the_thread->Start.budget_callout   = budget_callout;                
 8005bf0:	2b 81 00 24 	lw r1,(sp+36)                                  
 */                                                                   
RTEMS_INLINE_ROUTINE void* _Scheduler_Allocate(                       
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  return _Scheduler.Operations.allocate( the_thread );                
 8005bf4:	78 02 08 01 	mvhi r2,0x801                                  
 8005bf8:	38 42 30 1c 	ori r2,r2,0x301c                               
 8005bfc:	59 61 00 a8 	sw (r11+168),r1                                
      case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:                       
	break;                                                               
    #endif                                                            
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
 8005c00:	2b 81 00 28 	lw r1,(sp+40)                                  
 8005c04:	28 42 00 18 	lw r2,(r2+24)                                  
                                                                      
  /*                                                                  
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
 8005c08:	31 6f 00 a0 	sb (r11+160),r15                               
      case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:                       
	break;                                                               
    #endif                                                            
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
 8005c0c:	59 61 00 ac 	sw (r11+172),r1                                
                                                                      
  the_thread->current_state           = STATES_DORMANT;               
 8005c10:	34 01 00 01 	mvi r1,1                                       
 8005c14:	59 61 00 10 	sw (r11+16),r1                                 
  /*                                                                  
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
  the_thread->Start.budget_algorithm = budget_algorithm;              
 8005c18:	59 70 00 a4 	sw (r11+164),r16                               
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
                                                                      
  the_thread->current_state           = STATES_DORMANT;               
  the_thread->Wait.queue              = NULL;                         
 8005c1c:	59 60 00 44 	sw (r11+68),r0                                 
  the_thread->resource_count          = 0;                            
 8005c20:	59 60 00 1c 	sw (r11+28),r0                                 
  the_thread->real_priority           = priority;                     
 8005c24:	59 6e 00 18 	sw (r11+24),r14                                
  the_thread->Start.initial_priority  = priority;                     
 8005c28:	59 6e 00 b0 	sw (r11+176),r14                               
 8005c2c:	b9 60 08 00 	mv r1,r11                                      
 8005c30:	d8 40 00 00 	call r2                                        
 8005c34:	b8 20 68 00 	mv r13,r1                                      
  sched =_Scheduler_Allocate( the_thread );                           
  if ( !sched )                                                       
 8005c38:	44 20 00 12 	be r1,r0,8005c80 <_Thread_Initialize+0x130>    <== NEVER TAKEN
    goto failed;                                                      
  _Thread_Set_priority( the_thread, priority );                       
 8005c3c:	b9 60 08 00 	mv r1,r11                                      
 8005c40:	b9 c0 10 00 	mv r2,r14                                      
 8005c44:	f8 00 01 f6 	calli 800641c <_Thread_Set_priority>           
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 8005c48:	2d 62 00 0a 	lhu r2,(r11+10)                                
                                                                      
   _Workspace_Free( sched );                                          
                                                                      
   _Thread_Stack_Free( the_thread );                                  
  return false;                                                       
}                                                                     
 8005c4c:	2a 21 00 1c 	lw r1,(r17+28)                                 
                                                                      
  /*                                                                  
   *  Initialize the CPU usage statistics                             
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Set_to_zero( &the_thread->cpu_time_used );             
 8005c50:	59 60 00 84 	sw (r11+132),r0                                
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 8005c54:	b4 42 10 00 	add r2,r2,r2                                   
 8005c58:	b4 42 10 00 	add r2,r2,r2                                   
 8005c5c:	b4 22 10 00 	add r2,r1,r2                                   
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
 8005c60:	2b 81 00 2c 	lw r1,(sp+44)                                  
 8005c64:	59 60 00 88 	sw (r11+136),r0                                
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 8005c68:	58 4b 00 00 	sw (r2+0),r11                                  
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
 8005c6c:	59 61 00 0c 	sw (r11+12),r1                                 
   *  enabled when we get here.  We want to be able to run the        
   *  user extensions with dispatching enabled.  The Allocator        
   *  Mutex provides sufficient protection to let the user extensions 
   *  run safely.                                                     
   */                                                                 
  extension_status = _User_extensions_Thread_create( the_thread );    
 8005c70:	b9 60 08 00 	mv r1,r11                                      
 8005c74:	f8 00 03 57 	calli 80069d0 <_User_extensions_Thread_create> 
  if ( extension_status )                                             
    return true;                                                      
 8005c78:	34 05 00 01 	mvi r5,1                                       
   *  user extensions with dispatching enabled.  The Allocator        
   *  Mutex provides sufficient protection to let the user extensions 
   *  run safely.                                                     
   */                                                                 
  extension_status = _User_extensions_Thread_create( the_thread );    
  if ( extension_status )                                             
 8005c7c:	5c 20 00 0e 	bne r1,r0,8005cb4 <_Thread_Initialize+0x164>   
    return true;                                                      
                                                                      
failed:                                                               
  _Workspace_Free( the_thread->libc_reent );                          
 8005c80:	29 61 01 14 	lw r1,(r11+276)                                
 8005c84:	f8 00 04 d3 	calli 8006fd0 <_Workspace_Free>                
                                                                      
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    _Workspace_Free( the_thread->API_Extensions[i] );                 
 8005c88:	29 61 01 18 	lw r1,(r11+280)                                
 8005c8c:	f8 00 04 d1 	calli 8006fd0 <_Workspace_Free>                
 8005c90:	29 61 01 1c 	lw r1,(r11+284)                                
 8005c94:	f8 00 04 cf 	calli 8006fd0 <_Workspace_Free>                
                                                                      
  _Workspace_Free( extensions_area );                                 
 8005c98:	b9 80 08 00 	mv r1,r12                                      
 8005c9c:	f8 00 04 cd 	calli 8006fd0 <_Workspace_Free>                
                                                                      
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    _Workspace_Free( fp_area );                                       
  #endif                                                              
                                                                      
   _Workspace_Free( sched );                                          
 8005ca0:	b9 a0 08 00 	mv r1,r13                                      
 8005ca4:	f8 00 04 cb 	calli 8006fd0 <_Workspace_Free>                
                                                                      
   _Thread_Stack_Free( the_thread );                                  
 8005ca8:	b9 60 08 00 	mv r1,r11                                      
 8005cac:	f8 00 02 34 	calli 800657c <_Thread_Stack_Free>             
  return false;                                                       
 8005cb0:	34 05 00 00 	mvi r5,0                                       
}                                                                     
 8005cb4:	b8 a0 08 00 	mv r1,r5                                       
 8005cb8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005cbc:	2b 8b 00 20 	lw r11,(sp+32)                                 
 8005cc0:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 8005cc4:	2b 8d 00 18 	lw r13,(sp+24)                                 
 8005cc8:	2b 8e 00 14 	lw r14,(sp+20)                                 
 8005ccc:	2b 8f 00 10 	lw r15,(sp+16)                                 
 8005cd0:	2b 90 00 0c 	lw r16,(sp+12)                                 
 8005cd4:	2b 91 00 08 	lw r17,(sp+8)                                  
 8005cd8:	37 9c 00 20 	addi sp,sp,32                                  
 8005cdc:	c3 a0 00 00 	ret                                            
                                                                      
  /*                                                                  
   *  Allocate the extensions area for this thread                    
   */                                                                 
  if ( _Thread_Maximum_extensions ) {                                 
    extensions_area = _Workspace_Allocate(                            
 8005ce0:	34 42 00 01 	addi r2,r2,1                                   
      (_Thread_Maximum_extensions + 1) * sizeof( void * )             
 8005ce4:	b4 42 10 00 	add r2,r2,r2                                   
 8005ce8:	b4 42 10 00 	add r2,r2,r2                                   
                                                                      
  /*                                                                  
   *  Allocate the extensions area for this thread                    
   */                                                                 
  if ( _Thread_Maximum_extensions ) {                                 
    extensions_area = _Workspace_Allocate(                            
 8005cec:	b8 40 08 00 	mv r1,r2                                       
 8005cf0:	f8 00 04 ad 	calli 8006fa4 <_Workspace_Allocate>            
 8005cf4:	b8 20 60 00 	mv r12,r1                                      
      (_Thread_Maximum_extensions + 1) * sizeof( void * )             
    );                                                                
    if ( !extensions_area )                                           
 8005cf8:	44 20 00 0d 	be r1,r0,8005d2c <_Thread_Initialize+0x1dc>    
      goto failed;                                                    
  }                                                                   
  the_thread->extensions = (void **) extensions_area;                 
 8005cfc:	29 a5 00 00 	lw r5,(r13+0)                                  
 8005d00:	59 61 01 20 	sw (r11+288),r1                                
   * create the extension long after tasks have been created          
   * so they cannot rely on the thread create user extension          
   * call.                                                            
   */                                                                 
  if ( the_thread->extensions ) {                                     
    for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )              
 8005d04:	34 03 00 00 	mvi r3,0                                       
      (_Thread_Maximum_extensions + 1) * sizeof( void * )             
    );                                                                
    if ( !extensions_area )                                           
      goto failed;                                                    
  }                                                                   
  the_thread->extensions = (void **) extensions_area;                 
 8005d08:	34 04 00 00 	mvi r4,0                                       
   * so they cannot rely on the thread create user extension          
   * call.                                                            
   */                                                                 
  if ( the_thread->extensions ) {                                     
    for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )              
      the_thread->extensions[i] = NULL;                               
 8005d0c:	b4 63 18 00 	add r3,r3,r3                                   
 8005d10:	b4 63 18 00 	add r3,r3,r3                                   
 8005d14:	b5 83 18 00 	add r3,r12,r3                                  
   * create the extension long after tasks have been created          
   * so they cannot rely on the thread create user extension          
   * call.                                                            
   */                                                                 
  if ( the_thread->extensions ) {                                     
    for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )              
 8005d18:	34 84 00 01 	addi r4,r4,1                                   
      the_thread->extensions[i] = NULL;                               
 8005d1c:	58 60 00 00 	sw (r3+0),r0                                   
   * create the extension long after tasks have been created          
   * so they cannot rely on the thread create user extension          
   * call.                                                            
   */                                                                 
  if ( the_thread->extensions ) {                                     
    for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )              
 8005d20:	b8 80 18 00 	mv r3,r4                                       
 8005d24:	50 a4 ff fa 	bgeu r5,r4,8005d0c <_Thread_Initialize+0x1bc>  
 8005d28:	e3 ff ff b2 	bi 8005bf0 <_Thread_Initialize+0xa0>           
  size_t               actual_stack_size = 0;                         
  void                *stack = NULL;                                  
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    void              *fp_area;                                       
  #endif                                                              
  void                *sched = NULL;                                  
 8005d2c:	34 0d 00 00 	mvi r13,0                                      
 8005d30:	e3 ff ff d4 	bi 8005c80 <_Thread_Initialize+0x130>          
                                                                      

08006088 <_Thread_queue_Enqueue_priority>: Thread_blocking_operation_States _Thread_queue_Enqueue_priority ( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, ISR_Level *level_p ) {
 8006088:	37 9c ff f4 	addi sp,sp,-12                                 
 800608c:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8006090:	5b 8c 00 08 	sw (sp+8),r12                                  
 8006094:	5b 8d 00 04 	sw (sp+4),r13                                  
  Priority_Control     priority;                                      
  States_Control       block_state;                                   
                                                                      
  _Chain_Initialize_empty( &the_thread->Wait.Block2n );               
                                                                      
  priority     = the_thread->current_priority;                        
 8006098:	28 45 00 14 	lw r5,(r2+20)                                  
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
 800609c:	34 47 00 3c 	addi r7,r2,60                                  
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
 80060a0:	34 46 00 38 	addi r6,r2,56                                  
                                                                      
RTEMS_INLINE_ROUTINE uint32_t   _Thread_queue_Header_number (         
  Priority_Control the_priority                                       
)                                                                     
{                                                                     
  return (the_priority / TASK_QUEUE_DATA_PRIORITIES_PER_HEADER);      
 80060a4:	00 a4 00 01 	srui r4,r5,1                                   
 80060a8:	78 0c 08 01 	mvhi r12,0x801                                 
 80060ac:	00 84 00 01 	srui r4,r4,1                                   
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 80060b0:	58 47 00 38 	sw (r2+56),r7                                  
 80060b4:	00 84 00 01 	srui r4,r4,1                                   
  head->previous = NULL;                                              
  tail->previous = head;                                              
 80060b8:	58 46 00 40 	sw (r2+64),r6                                  
 80060bc:	00 84 00 01 	srui r4,r4,1                                   
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
 80060c0:	58 40 00 3c 	sw (r2+60),r0                                  
 80060c4:	00 84 00 01 	srui r4,r4,1                                   
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_queue_Is_reverse_search (           
  Priority_Control the_priority                                       
)                                                                     
{                                                                     
  return ( the_priority & TASK_QUEUE_DATA_REVERSE_SEARCH_MASK );      
 80060c8:	20 a8 00 20 	andi r8,r5,0x20                                
                                                                      
RTEMS_INLINE_ROUTINE uint32_t   _Thread_queue_Header_number (         
  Priority_Control the_priority                                       
)                                                                     
{                                                                     
  return (the_priority / TASK_QUEUE_DATA_PRIORITIES_PER_HEADER);      
 80060cc:	00 84 00 01 	srui r4,r4,1                                   
  header_index = _Thread_queue_Header_number( priority );             
  header       = &the_thread_queue->Queues.Priority[ header_index ];  
  block_state  = the_thread_queue->state;                             
 80060d0:	28 27 00 38 	lw r7,(r1+56)                                  
 80060d4:	b4 84 30 00 	add r6,r4,r4                                   
 80060d8:	39 8c 30 f0 	ori r12,r12,0x30f0                             
                                                                      
  if ( _Thread_queue_Is_reverse_search( priority ) )                  
 80060dc:	5d 00 00 18 	bne r8,r0,800613c <_Thread_queue_Enqueue_priority+0xb4>
   *                                                                  
   *  WARNING! Returning with interrupts disabled!                    
   */                                                                 
  *level_p = level;                                                   
  return the_thread_queue->sync_state;                                
}                                                                     
 80060e0:	b4 c4 20 00 	add r4,r6,r4                                   
 80060e4:	b4 84 20 00 	add r4,r4,r4                                   
 80060e8:	b4 84 20 00 	add r4,r4,r4                                   
 80060ec:	b4 24 60 00 	add r12,r1,r4                                  
  if ( _Thread_queue_Is_reverse_search( priority ) )                  
    goto restart_reverse_search;                                      
                                                                      
restart_forward_search:                                               
  search_priority = PRIORITY_MINIMUM - 1;                             
  _ISR_Disable( level );                                              
 80060f0:	34 0d ff fe 	mvi r13,-2                                     
RTEMS_INLINE_ROUTINE bool _Chain_Is_tail(                             
  Chain_Control *the_chain,                                           
  const Chain_Node    *the_node                                       
)                                                                     
{                                                                     
  return (the_node == _Chain_Tail(the_chain));                        
 80060f4:	35 8b 00 04 	addi r11,r12,4                                 
 80060f8:	90 00 40 00 	rcsr r8,IE                                     
 80060fc:	a1 0d 50 00 	and r10,r8,r13                                 
 8006100:	d0 0a 00 00 	wcsr IE,r10                                    
   *                                                                  
   *  WARNING! Returning with interrupts disabled!                    
   */                                                                 
  *level_p = level;                                                   
  return the_thread_queue->sync_state;                                
}                                                                     
 8006104:	29 84 00 00 	lw r4,(r12+0)                                  
                                                                      
restart_forward_search:                                               
  search_priority = PRIORITY_MINIMUM - 1;                             
  _ISR_Disable( level );                                              
  search_thread = (Thread_Control *) _Chain_First( header );          
  while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {  
 8006108:	5c 8b 00 04 	bne r4,r11,8006118 <_Thread_queue_Enqueue_priority+0x90>
 800610c:	e0 00 00 24 	bi 800619c <_Thread_queue_Enqueue_priority+0x114>
    if ( !_States_Are_set( search_thread->current_state, block_state) ) {
      _ISR_Enable( level );                                           
      goto restart_forward_search;                                    
    }                                                                 
    search_thread =                                                   
       (Thread_Control *)search_thread->Object.Node.next;             
 8006110:	28 84 00 00 	lw r4,(r4+0)                                   
                                                                      
restart_forward_search:                                               
  search_priority = PRIORITY_MINIMUM - 1;                             
  _ISR_Disable( level );                                              
  search_thread = (Thread_Control *) _Chain_First( header );          
  while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {  
 8006114:	44 8b 00 23 	be r4,r11,80061a0 <_Thread_queue_Enqueue_priority+0x118>
    search_priority = search_thread->current_priority;                
 8006118:	28 86 00 14 	lw r6,(r4+20)                                  
    if ( priority <= search_priority )                                
 800611c:	50 c5 00 21 	bgeu r6,r5,80061a0 <_Thread_queue_Enqueue_priority+0x118>
      break;                                                          
    search_priority = search_thread->current_priority;                
    if ( priority <= search_priority )                                
      break;                                                          
#endif                                                                
    _ISR_Flash( level );                                              
 8006120:	d0 08 00 00 	wcsr IE,r8                                     
 8006124:	d0 0a 00 00 	wcsr IE,r10                                    
RTEMS_INLINE_ROUTINE bool _States_Are_set (                           
  States_Control the_states,                                          
  States_Control mask                                                 
)                                                                     
{                                                                     
   return ( (the_states & mask) != STATES_READY);                     
 8006128:	28 89 00 10 	lw r9,(r4+16)                                  
 800612c:	a0 e9 48 00 	and r9,r7,r9                                   
    if ( !_States_Are_set( search_thread->current_state, block_state) ) {
 8006130:	5d 20 ff f8 	bne r9,r0,8006110 <_Thread_queue_Enqueue_priority+0x88><== ALWAYS TAKEN
      _ISR_Enable( level );                                           
 8006134:	d0 08 00 00 	wcsr IE,r8                                     <== NOT EXECUTED
      goto restart_forward_search;                                    
 8006138:	e3 ff ff f0 	bi 80060f8 <_Thread_queue_Enqueue_priority+0x70><== NOT EXECUTED
   *                                                                  
   *  WARNING! Returning with interrupts disabled!                    
   */                                                                 
  *level_p = level;                                                   
  return the_thread_queue->sync_state;                                
}                                                                     
 800613c:	b4 c4 20 00 	add r4,r6,r4                                   
 8006140:	b4 84 20 00 	add r4,r4,r4                                   
 8006144:	b4 84 20 00 	add r4,r4,r4                                   
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
                                                                      
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
                                                                      
  _ISR_Disable( level );                                              
 8006148:	34 0d ff fe 	mvi r13,-2                                     
   *                                                                  
   *  WARNING! Returning with interrupts disabled!                    
   */                                                                 
  *level_p = level;                                                   
  return the_thread_queue->sync_state;                                
}                                                                     
 800614c:	b4 24 50 00 	add r10,r1,r4                                  
  the_thread->Wait.queue = the_thread_queue;                          
  _ISR_Enable( level );                                               
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
                                                                      
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
 8006150:	41 86 00 00 	lbu r6,(r12+0)                                 
 8006154:	34 c6 00 01 	addi r6,r6,1                                   
                                                                      
  _ISR_Disable( level );                                              
 8006158:	90 00 40 00 	rcsr r8,IE                                     
 800615c:	a1 0d 58 00 	and r11,r8,r13                                 
 8006160:	d0 0b 00 00 	wcsr IE,r11                                    
   *                                                                  
   *  WARNING! Returning with interrupts disabled!                    
   */                                                                 
  *level_p = level;                                                   
  return the_thread_queue->sync_state;                                
}                                                                     
 8006164:	29 44 00 08 	lw r4,(r10+8)                                  
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
                                                                      
  _ISR_Disable( level );                                              
  search_thread = (Thread_Control *) _Chain_Last( header );           
  while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {  
 8006168:	5c 8a 00 04 	bne r4,r10,8006178 <_Thread_queue_Enqueue_priority+0xf0>
 800616c:	e0 00 00 18 	bi 80061cc <_Thread_queue_Enqueue_priority+0x144>
    if ( !_States_Are_set( search_thread->current_state, block_state) ) {
      _ISR_Enable( level );                                           
      goto restart_reverse_search;                                    
    }                                                                 
    search_thread = (Thread_Control *)                                
                         search_thread->Object.Node.previous;         
 8006170:	28 84 00 04 	lw r4,(r4+4)                                   
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
                                                                      
  _ISR_Disable( level );                                              
  search_thread = (Thread_Control *) _Chain_Last( header );           
  while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {  
 8006174:	44 8a 00 16 	be r4,r10,80061cc <_Thread_queue_Enqueue_priority+0x144>
    search_priority = search_thread->current_priority;                
 8006178:	28 86 00 14 	lw r6,(r4+20)                                  
    if ( priority >= search_priority )                                
 800617c:	50 a6 00 14 	bgeu r5,r6,80061cc <_Thread_queue_Enqueue_priority+0x144>
      break;                                                          
    search_priority = search_thread->current_priority;                
    if ( priority >= search_priority )                                
      break;                                                          
#endif                                                                
    _ISR_Flash( level );                                              
 8006180:	d0 08 00 00 	wcsr IE,r8                                     
 8006184:	d0 0b 00 00 	wcsr IE,r11                                    
 8006188:	28 89 00 10 	lw r9,(r4+16)                                  
 800618c:	a0 e9 48 00 	and r9,r7,r9                                   
    if ( !_States_Are_set( search_thread->current_state, block_state) ) {
 8006190:	5d 20 ff f8 	bne r9,r0,8006170 <_Thread_queue_Enqueue_priority+0xe8><== ALWAYS TAKEN
      _ISR_Enable( level );                                           
 8006194:	d0 08 00 00 	wcsr IE,r8                                     <== NOT EXECUTED
      goto restart_reverse_search;                                    
 8006198:	e3 ff ff ee 	bi 8006150 <_Thread_queue_Enqueue_priority+0xc8><== NOT EXECUTED
                                                                      
  if ( _Thread_queue_Is_reverse_search( priority ) )                  
    goto restart_reverse_search;                                      
                                                                      
restart_forward_search:                                               
  search_priority = PRIORITY_MINIMUM - 1;                             
 800619c:	34 06 ff ff 	mvi r6,-1                                      
    }                                                                 
    search_thread =                                                   
       (Thread_Control *)search_thread->Object.Node.next;             
  }                                                                   
                                                                      
  if ( the_thread_queue->sync_state !=                                
 80061a0:	28 27 00 30 	lw r7,(r1+48)                                  
 80061a4:	34 0a 00 01 	mvi r10,1                                      
 80061a8:	b9 00 48 00 	mv r9,r8                                       
 80061ac:	44 ea 00 1b 	be r7,r10,8006218 <_Thread_queue_Enqueue_priority+0x190>
   *  For example, the blocking thread could have been given          
   *  the mutex by an ISR or timed out.                               
   *                                                                  
   *  WARNING! Returning with interrupts disabled!                    
   */                                                                 
  *level_p = level;                                                   
 80061b0:	58 69 00 00 	sw (r3+0),r9                                   
  return the_thread_queue->sync_state;                                
}                                                                     
 80061b4:	b8 e0 08 00 	mv r1,r7                                       
 80061b8:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 80061bc:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80061c0:	2b 8d 00 04 	lw r13,(sp+4)                                  
 80061c4:	37 9c 00 0c 	addi sp,sp,12                                  
 80061c8:	c3 a0 00 00 	ret                                            
    }                                                                 
    search_thread = (Thread_Control *)                                
                         search_thread->Object.Node.previous;         
  }                                                                   
                                                                      
  if ( the_thread_queue->sync_state !=                                
 80061cc:	28 27 00 30 	lw r7,(r1+48)                                  
 80061d0:	34 0a 00 01 	mvi r10,1                                      
 80061d4:	b9 00 48 00 	mv r9,r8                                       
 80061d8:	5c ea ff f6 	bne r7,r10,80061b0 <_Thread_queue_Enqueue_priority+0x128><== NEVER TAKEN
       THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )                   
    goto synchronize;                                                 
                                                                      
  the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
 80061dc:	58 20 00 30 	sw (r1+48),r0                                  
                                                                      
  if ( priority == search_priority )                                  
 80061e0:	44 a6 00 1d 	be r5,r6,8006254 <_Thread_queue_Enqueue_priority+0x1cc>
    goto equal_priority;                                              
                                                                      
  search_node = (Chain_Node *) search_thread;                         
  next_node   = search_node->next;                                    
 80061e4:	28 83 00 00 	lw r3,(r4+0)                                   
  the_node    = (Chain_Node *) the_thread;                            
                                                                      
  the_node->next          = next_node;                                
  the_node->previous      = search_node;                              
 80061e8:	58 44 00 04 	sw (r2+4),r4                                   
                                                                      
  search_node = (Chain_Node *) search_thread;                         
  next_node   = search_node->next;                                    
  the_node    = (Chain_Node *) the_thread;                            
                                                                      
  the_node->next          = next_node;                                
 80061ec:	58 43 00 00 	sw (r2+0),r3                                   
  the_node->previous      = search_node;                              
  search_node->next       = the_node;                                 
 80061f0:	58 82 00 00 	sw (r4+0),r2                                   
  next_node->previous    = the_node;                                  
 80061f4:	58 62 00 04 	sw (r3+4),r2                                   
  the_thread->Wait.queue = the_thread_queue;                          
 80061f8:	58 41 00 44 	sw (r2+68),r1                                  
  _ISR_Enable( level );                                               
 80061fc:	d0 08 00 00 	wcsr IE,r8                                     
   *                                                                  
   *  WARNING! Returning with interrupts disabled!                    
   */                                                                 
  *level_p = level;                                                   
  return the_thread_queue->sync_state;                                
}                                                                     
 8006200:	b8 e0 08 00 	mv r1,r7                                       
 8006204:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8006208:	2b 8c 00 08 	lw r12,(sp+8)                                  
 800620c:	2b 8d 00 04 	lw r13,(sp+4)                                  
 8006210:	37 9c 00 0c 	addi sp,sp,12                                  
 8006214:	c3 a0 00 00 	ret                                            
                                                                      
  if ( the_thread_queue->sync_state !=                                
       THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )                   
    goto synchronize;                                                 
                                                                      
  the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
 8006218:	58 20 00 30 	sw (r1+48),r0                                  
                                                                      
  if ( priority == search_priority )                                  
 800621c:	44 a6 00 0e 	be r5,r6,8006254 <_Thread_queue_Enqueue_priority+0x1cc>
    goto equal_priority;                                              
                                                                      
  search_node   = (Chain_Node *) search_thread;                       
  previous_node = search_node->previous;                              
 8006220:	28 83 00 04 	lw r3,(r4+4)                                   
  the_node      = (Chain_Node *) the_thread;                          
                                                                      
  the_node->next         = search_node;                               
 8006224:	58 44 00 00 	sw (r2+0),r4                                   
  the_node->previous     = previous_node;                             
 8006228:	58 43 00 04 	sw (r2+4),r3                                   
  previous_node->next    = the_node;                                  
 800622c:	58 62 00 00 	sw (r3+0),r2                                   
  search_node->previous  = the_node;                                  
 8006230:	58 82 00 04 	sw (r4+4),r2                                   
  the_thread->Wait.queue = the_thread_queue;                          
 8006234:	58 41 00 44 	sw (r2+68),r1                                  
  _ISR_Enable( level );                                               
 8006238:	d0 08 00 00 	wcsr IE,r8                                     
   *                                                                  
   *  WARNING! Returning with interrupts disabled!                    
   */                                                                 
  *level_p = level;                                                   
  return the_thread_queue->sync_state;                                
}                                                                     
 800623c:	b8 e0 08 00 	mv r1,r7                                       
 8006240:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8006244:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8006248:	2b 8d 00 04 	lw r13,(sp+4)                                  
 800624c:	37 9c 00 0c 	addi sp,sp,12                                  
 8006250:	c3 a0 00 00 	ret                                            
  _ISR_Enable( level );                                               
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
                                                                      
equal_priority:               /* add at end of priority group */      
  search_node   = _Chain_Tail( &search_thread->Wait.Block2n );        
  previous_node = search_node->previous;                              
 8006254:	28 83 00 40 	lw r3,(r4+64)                                  
  the_thread->Wait.queue = the_thread_queue;                          
  _ISR_Enable( level );                                               
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
                                                                      
equal_priority:               /* add at end of priority group */      
  search_node   = _Chain_Tail( &search_thread->Wait.Block2n );        
 8006258:	34 85 00 3c 	addi r5,r4,60                                  
  previous_node = search_node->previous;                              
  the_node      = (Chain_Node *) the_thread;                          
                                                                      
  the_node->next         = search_node;                               
 800625c:	58 45 00 00 	sw (r2+0),r5                                   
  the_node->previous     = previous_node;                             
 8006260:	58 43 00 04 	sw (r2+4),r3                                   
  previous_node->next    = the_node;                                  
 8006264:	58 62 00 00 	sw (r3+0),r2                                   
  search_node->previous  = the_node;                                  
 8006268:	58 82 00 40 	sw (r4+64),r2                                  
  the_thread->Wait.queue = the_thread_queue;                          
 800626c:	58 41 00 44 	sw (r2+68),r1                                  
  _ISR_Enable( level );                                               
 8006270:	d0 08 00 00 	wcsr IE,r8                                     
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
 8006274:	34 07 00 01 	mvi r7,1                                       
 8006278:	e3 ff ff cf 	bi 80061b4 <_Thread_queue_Enqueue_priority+0x12c>
                                                                      

08009e58 <_Thread_queue_Process_timeout>: #include <rtems/score/tqdata.h> void _Thread_queue_Process_timeout( Thread_Control *the_thread ) {
 8009e58:	37 9c ff fc 	addi sp,sp,-4                                  
 8009e5c:	5b 9d 00 04 	sw (sp+4),ra                                   
  Thread_queue_Control *the_thread_queue = the_thread->Wait.queue;    
 8009e60:	28 23 00 44 	lw r3,(r1+68)                                  
#include <rtems/score/tqdata.h>                                       
                                                                      
void _Thread_queue_Process_timeout(                                   
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
 8009e64:	b8 20 20 00 	mv r4,r1                                       
   *  If it is not satisfied, then it is "nothing happened" and       
   *  this is the "timeout" transition.  After a request is satisfied,
   *  a timeout is not allowed to occur.                              
   */                                                                 
                                                                      
  if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SYNCHRONIZED &&
 8009e68:	28 62 00 30 	lw r2,(r3+48)                                  
 8009e6c:	44 40 00 05 	be r2,r0,8009e80 <_Thread_queue_Process_timeout+0x28>
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
 8009e70:	78 01 08 01 	mvhi r1,0x801                                  
 8009e74:	38 21 3a 28 	ori r1,r1,0x3a28                               
 8009e78:	28 21 00 0c 	lw r1,(r1+12)                                  
 8009e7c:	44 81 00 09 	be r4,r1,8009ea0 <_Thread_queue_Process_timeout+0x48><== NEVER TAKEN
    if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) {
      the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
      the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
    }                                                                 
  } else {                                                            
    the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
 8009e80:	28 65 00 3c 	lw r5,(r3+60)                                  
    _Thread_queue_Extract( the_thread->Wait.queue, the_thread );      
 8009e84:	b8 60 08 00 	mv r1,r3                                       
 8009e88:	b8 80 10 00 	mv r2,r4                                       
    if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) {
      the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
      the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
    }                                                                 
  } else {                                                            
    the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
 8009e8c:	58 85 00 34 	sw (r4+52),r5                                  
    _Thread_queue_Extract( the_thread->Wait.queue, the_thread );      
 8009e90:	fb ff ff 8f 	calli 8009ccc <_Thread_queue_Extract>          
  }                                                                   
}                                                                     
 8009e94:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009e98:	37 9c 00 04 	addi sp,sp,4                                   
 8009e9c:	c3 a0 00 00 	ret                                            
   *  a timeout is not allowed to occur.                              
   */                                                                 
                                                                      
  if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SYNCHRONIZED &&
       _Thread_Is_executing( the_thread ) ) {                         
    if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) {
 8009ea0:	34 01 00 03 	mvi r1,3                                       <== NOT EXECUTED
 8009ea4:	44 41 ff fc 	be r2,r1,8009e94 <_Thread_queue_Process_timeout+0x3c><== NOT EXECUTED
      the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
 8009ea8:	28 61 00 3c 	lw r1,(r3+60)                                  <== NOT EXECUTED
 8009eac:	58 81 00 34 	sw (r4+52),r1                                  <== NOT EXECUTED
      the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
 8009eb0:	34 01 00 02 	mvi r1,2                                       <== NOT EXECUTED
 8009eb4:	58 61 00 30 	sw (r3+48),r1                                  <== NOT EXECUTED
 8009eb8:	e3 ff ff f7 	bi 8009e94 <_Thread_queue_Process_timeout+0x3c><== NOT EXECUTED
                                                                      

08006328 <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) {
 8006328:	37 9c ff ec 	addi sp,sp,-20                                 
 800632c:	5b 8b 00 10 	sw (sp+16),r11                                 
 8006330:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8006334:	5b 8d 00 08 	sw (sp+8),r13                                  
 8006338:	5b 9d 00 04 	sw (sp+4),ra                                   
 800633c:	b8 20 58 00 	mv r11,r1                                      
 8006340:	b8 40 60 00 	mv r12,r2                                      
  /*                                                                  
   * Just in case the thread really wasn't blocked on a thread queue  
   * when we get here.                                                
   */                                                                 
  if ( !the_thread_queue )                                            
 8006344:	44 20 00 04 	be r1,r0,8006354 <_Thread_queue_Requeue+0x2c>  <== NEVER TAKEN
                                                                      
  /*                                                                  
   * If queueing by FIFO, there is nothing to do. This only applies to
   * priority blocking discipline.                                    
   */                                                                 
  if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) {
 8006348:	28 22 00 34 	lw r2,(r1+52)                                  
 800634c:	34 01 00 01 	mvi r1,1                                       
 8006350:	44 41 00 07 	be r2,r1,800636c <_Thread_queue_Requeue+0x44>  <== ALWAYS TAKEN
      _Thread_queue_Extract_priority_helper( tq, the_thread, true );  
      (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
    }                                                                 
    _ISR_Enable( level );                                             
  }                                                                   
}                                                                     
 8006354:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 8006358:	2b 8b 00 10 	lw r11,(sp+16)                                 <== NOT EXECUTED
 800635c:	2b 8c 00 0c 	lw r12,(sp+12)                                 <== NOT EXECUTED
 8006360:	2b 8d 00 08 	lw r13,(sp+8)                                  <== NOT EXECUTED
 8006364:	37 9c 00 14 	addi sp,sp,20                                  <== NOT EXECUTED
 8006368:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
  if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) {
    Thread_queue_Control *tq = the_thread_queue;                      
    ISR_Level             level;                                      
    ISR_Level             level_ignored;                              
                                                                      
    _ISR_Disable( level );                                            
 800636c:	90 00 68 00 	rcsr r13,IE                                    
 8006370:	34 01 ff fe 	mvi r1,-2                                      
 8006374:	a1 a1 08 00 	and r1,r13,r1                                  
 8006378:	d0 01 00 00 	wcsr IE,r1                                     
 800637c:	78 03 08 01 	mvhi r3,0x801                                  
 8006380:	38 63 23 bc 	ori r3,r3,0x23bc                               
 8006384:	29 82 00 10 	lw r2,(r12+16)                                 
 8006388:	28 61 00 00 	lw r1,(r3+0)                                   
 800638c:	a0 41 08 00 	and r1,r2,r1                                   
    if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
 8006390:	5c 20 00 08 	bne r1,r0,80063b0 <_Thread_queue_Requeue+0x88> <== ALWAYS TAKEN
      _Thread_queue_Enter_critical_section( tq );                     
      _Thread_queue_Extract_priority_helper( tq, the_thread, true );  
      (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
    }                                                                 
    _ISR_Enable( level );                                             
 8006394:	d0 0d 00 00 	wcsr IE,r13                                    <== NOT EXECUTED
  }                                                                   
}                                                                     
 8006398:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800639c:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80063a0:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80063a4:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80063a8:	37 9c 00 14 	addi sp,sp,20                                  
 80063ac:	c3 a0 00 00 	ret                                            
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section (      
  Thread_queue_Control *the_thread_queue                              
)                                                                     
{                                                                     
  the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
 80063b0:	34 01 00 01 	mvi r1,1                                       
 80063b4:	59 61 00 30 	sw (r11+48),r1                                 
    ISR_Level             level_ignored;                              
                                                                      
    _ISR_Disable( level );                                            
    if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
      _Thread_queue_Enter_critical_section( tq );                     
      _Thread_queue_Extract_priority_helper( tq, the_thread, true );  
 80063b8:	b9 80 10 00 	mv r2,r12                                      
 80063bc:	b9 60 08 00 	mv r1,r11                                      
 80063c0:	34 03 00 01 	mvi r3,1                                       
 80063c4:	f8 00 0e 50 	calli 8009d04 <_Thread_queue_Extract_priority_helper>
      (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
 80063c8:	b9 60 08 00 	mv r1,r11                                      
 80063cc:	b9 80 10 00 	mv r2,r12                                      
 80063d0:	37 83 00 14 	addi r3,sp,20                                  
 80063d4:	fb ff ff 2d 	calli 8006088 <_Thread_queue_Enqueue_priority> 
    }                                                                 
    _ISR_Enable( level );                                             
 80063d8:	d0 0d 00 00 	wcsr IE,r13                                    
 80063dc:	e3 ff ff ef 	bi 8006398 <_Thread_queue_Requeue+0x70>        
                                                                      

080063e0 <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) {
 80063e0:	37 9c ff f8 	addi sp,sp,-8                                  
 80063e4:	5b 9d 00 04 	sw (sp+4),ra                                   
  Thread_Control       *the_thread;                                   
  Objects_Locations     location;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 80063e8:	37 82 00 08 	addi r2,sp,8                                   
 80063ec:	fb ff fd 91 	calli 8005a30 <_Thread_Get>                    
  switch ( location ) {                                               
 80063f0:	2b 82 00 08 	lw r2,(sp+8)                                   
 80063f4:	5c 40 00 07 	bne r2,r0,8006410 <_Thread_queue_Timeout+0x30> <== NEVER TAKEN
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
      break;                                                          
    case OBJECTS_LOCAL:                                               
      _Thread_queue_Process_timeout( the_thread );                    
 80063f8:	f8 00 0e 98 	calli 8009e58 <_Thread_queue_Process_timeout>  
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
 80063fc:	78 01 08 01 	mvhi r1,0x801                                  
 8006400:	38 21 38 88 	ori r1,r1,0x3888                               
 8006404:	28 22 00 00 	lw r2,(r1+0)                                   
 8006408:	34 42 ff ff 	addi r2,r2,-1                                  
 800640c:	58 22 00 00 	sw (r1+0),r2                                   
      _Thread_Unnest_dispatch();                                      
      break;                                                          
  }                                                                   
}                                                                     
 8006410:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006414:	37 9c 00 08 	addi sp,sp,8                                   
 8006418:	c3 a0 00 00 	ret                                            
                                                                      

0801456c <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) {
 801456c:	37 9c ff a4 	addi sp,sp,-92                                 
 8014570:	5b 8b 00 44 	sw (sp+68),r11                                 
 8014574:	5b 8c 00 40 	sw (sp+64),r12                                 
 8014578:	5b 8d 00 3c 	sw (sp+60),r13                                 
 801457c:	5b 8e 00 38 	sw (sp+56),r14                                 
 8014580:	5b 8f 00 34 	sw (sp+52),r15                                 
 8014584:	5b 90 00 30 	sw (sp+48),r16                                 
 8014588:	5b 91 00 2c 	sw (sp+44),r17                                 
 801458c:	5b 92 00 28 	sw (sp+40),r18                                 
 8014590:	5b 93 00 24 	sw (sp+36),r19                                 
 8014594:	5b 94 00 20 	sw (sp+32),r20                                 
 8014598:	5b 95 00 1c 	sw (sp+28),r21                                 
 801459c:	5b 96 00 18 	sw (sp+24),r22                                 
 80145a0:	5b 97 00 14 	sw (sp+20),r23                                 
 80145a4:	5b 98 00 10 	sw (sp+16),r24                                 
 80145a8:	5b 99 00 0c 	sw (sp+12),r25                                 
 80145ac:	5b 9b 00 08 	sw (sp+8),fp                                   
 80145b0:	5b 9d 00 04 	sw (sp+4),ra                                   
 80145b4:	78 13 08 03 	mvhi r19,0x803                                 
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 80145b8:	37 96 00 54 	addi r22,sp,84                                 
 80145bc:	37 95 00 58 	addi r21,sp,88                                 
 80145c0:	37 8e 00 48 	addi r14,sp,72                                 
 80145c4:	37 94 00 4c 	addi r20,sp,76                                 
 80145c8:	78 12 08 03 	mvhi r18,0x803                                 
 80145cc:	78 17 08 03 	mvhi r23,0x803                                 
 80145d0:	b8 20 58 00 	mv r11,r1                                      
 80145d4:	5b 95 00 54 	sw (sp+84),r21                                 
  head->previous = NULL;                                              
 80145d8:	5b 80 00 58 	sw (sp+88),r0                                  
  tail->previous = head;                                              
 80145dc:	5b 96 00 5c 	sw (sp+92),r22                                 
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 80145e0:	5b 94 00 48 	sw (sp+72),r20                                 
  head->previous = NULL;                                              
 80145e4:	5b 80 00 4c 	sw (sp+76),r0                                  
  tail->previous = head;                                              
 80145e8:	5b 8e 00 50 	sw (sp+80),r14                                 
 80145ec:	3a 73 ed a8 	ori r19,r19,0xeda8                             
 80145f0:	34 30 00 30 	addi r16,r1,48                                 
 80145f4:	3a 52 ed 20 	ori r18,r18,0xed20                             
 80145f8:	34 2f 00 68 	addi r15,r1,104                                
 80145fc:	3a f7 ec 98 	ori r23,r23,0xec98                             
 8014600:	34 3b 00 08 	addi fp,r1,8                                   
 8014604:	34 39 00 40 	addi r25,r1,64                                 
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
 8014608:	34 0d 00 03 	mvi r13,3                                      
     *  of zero it will be processed in the next iteration of the timer server
     *  body loop.                                                    
     */                                                               
    _Timer_server_Process_insertions( ts );                           
                                                                      
    _ISR_Disable( level );                                            
 801460c:	34 11 ff fe 	mvi r17,-2                                     
        _Thread_Set_state( ts->thread, STATES_DELAYING );             
        _Timer_server_Reset_interval_system_watchdog( ts );           
        _Timer_server_Reset_tod_system_watchdog( ts );                
      _Thread_Enable_dispatch();                                      
                                                                      
      ts->active = true;                                              
 8014610:	34 18 00 01 	mvi r24,1                                      
{                                                                     
  /*                                                                  
   *  Afterwards all timer inserts are directed to this chain and the interval
   *  and TOD chains will be no more modified by other parties.       
   */                                                                 
  ts->insert_chain = insert_chain;                                    
 8014614:	59 76 00 78 	sw (r11+120),r22                               
static void _Timer_server_Process_interval_watchdogs(                 
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;            
 8014618:	2a 62 00 00 	lw r2,(r19+0)                                  
                                                                      
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
 801461c:	29 63 00 3c 	lw r3,(r11+60)                                 
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
 8014620:	ba 00 08 00 	mv r1,r16                                      
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
 8014624:	59 62 00 3c 	sw (r11+60),r2                                 
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
 8014628:	c8 43 10 00 	sub r2,r2,r3                                   
 801462c:	b9 c0 18 00 	mv r3,r14                                      
 8014630:	f8 00 15 23 	calli 8019abc <_Watchdog_Adjust_to_chain>      
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
  Watchdog_Interval last_snapshot = watchdogs->last_snapshot;         
 8014634:	29 64 00 74 	lw r4,(r11+116)                                
static void _Timer_server_Process_tod_watchdogs(                      
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
 8014638:	2a 4c 00 00 	lw r12,(r18+0)                                 
  /*                                                                  
   *  Process the seconds chain.  Start by checking that the Time     
   *  of Day (TOD) has not been set backwards.  If it has then        
   *  we want to adjust the watchdogs->Chain to indicate this.        
   */                                                                 
  if ( snapshot > last_snapshot ) {                                   
 801463c:	50 8c 00 1c 	bgeu r4,r12,80146ac <_Timer_server_Body+0x140> 
    /*                                                                
     *  This path is for normal forward movement and cases where the  
     *  TOD has been set forward.                                     
     */                                                               
    delta = snapshot - last_snapshot;                                 
    _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
 8014640:	b9 e0 08 00 	mv r1,r15                                      
 8014644:	c9 84 10 00 	sub r2,r12,r4                                  
 8014648:	b9 c0 18 00 	mv r3,r14                                      
 801464c:	f8 00 15 1c 	calli 8019abc <_Watchdog_Adjust_to_chain>      
      */                                                              
     delta = last_snapshot - snapshot;                                
     _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); 
  }                                                                   
                                                                      
  watchdogs->last_snapshot = snapshot;                                
 8014650:	59 6c 00 74 	sw (r11+116),r12                               
static void _Timer_server_Insert_timer(                               
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
 8014654:	34 0c 00 01 	mvi r12,1                                      
}                                                                     
                                                                      
static void _Timer_server_Process_insertions( Timer_server_Control *ts )
{                                                                     
  while ( true ) {                                                    
    Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain );
 8014658:	29 61 00 78 	lw r1,(r11+120)                                
 801465c:	f8 00 03 35 	calli 8015330 <_Chain_Get>                     
 8014660:	b8 20 10 00 	mv r2,r1                                       
                                                                      
    if ( timer == NULL ) {                                            
 8014664:	44 20 00 0b 	be r1,r0,8014690 <_Timer_server_Body+0x124>    <== ALWAYS TAKEN
static void _Timer_server_Insert_timer(                               
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
 8014668:	28 24 00 38 	lw r4,(r1+56)                                  <== NOT EXECUTED
 801466c:	44 8c 00 16 	be r4,r12,80146c4 <_Timer_server_Body+0x158>   <== NOT EXECUTED
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
 8014670:	5c 8d ff fa 	bne r4,r13,8014658 <_Timer_server_Body+0xec>   <== NOT EXECUTED
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
 8014674:	34 42 00 10 	addi r2,r2,16                                  <== NOT EXECUTED
 8014678:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
 801467c:	f8 00 15 36 	calli 8019b54 <_Watchdog_Insert>               <== NOT EXECUTED
}                                                                     
                                                                      
static void _Timer_server_Process_insertions( Timer_server_Control *ts )
{                                                                     
  while ( true ) {                                                    
    Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain );
 8014680:	29 61 00 78 	lw r1,(r11+120)                                <== NOT EXECUTED
 8014684:	f8 00 03 2b 	calli 8015330 <_Chain_Get>                     <== NOT EXECUTED
 8014688:	b8 20 10 00 	mv r2,r1                                       <== NOT EXECUTED
                                                                      
    if ( timer == NULL ) {                                            
 801468c:	5c 20 ff f7 	bne r1,r0,8014668 <_Timer_server_Body+0xfc>    <== NOT EXECUTED
     *  of zero it will be processed in the next iteration of the timer server
     *  body loop.                                                    
     */                                                               
    _Timer_server_Process_insertions( ts );                           
                                                                      
    _ISR_Disable( level );                                            
 8014690:	90 00 10 00 	rcsr r2,IE                                     
 8014694:	a0 51 18 00 	and r3,r2,r17                                  
 8014698:	d0 03 00 00 	wcsr IE,r3                                     
    if ( _Chain_Is_empty( insert_chain ) ) {                          
 801469c:	2b 83 00 54 	lw r3,(sp+84)                                  
 80146a0:	44 75 00 0d 	be r3,r21,80146d4 <_Timer_server_Body+0x168>   <== ALWAYS TAKEN
      ts->insert_chain = NULL;                                        
      _ISR_Enable( level );                                           
                                                                      
      break;                                                          
    } else {                                                          
      _ISR_Enable( level );                                           
 80146a4:	d0 02 00 00 	wcsr IE,r2                                     <== NOT EXECUTED
 80146a8:	e3 ff ff dc 	bi 8014618 <_Timer_server_Body+0xac>           <== NOT EXECUTED
     *  TOD has been set forward.                                     
     */                                                               
    delta = snapshot - last_snapshot;                                 
    _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
                                                                      
  } else if ( snapshot < last_snapshot ) {                            
 80146ac:	51 84 ff e9 	bgeu r12,r4,8014650 <_Timer_server_Body+0xe4>  
     /*                                                               
      *  The current TOD is before the last TOD which indicates that  
      *  TOD has been set backwards.                                  
      */                                                              
     delta = last_snapshot - snapshot;                                
     _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); 
 80146b0:	b9 e0 08 00 	mv r1,r15                                      
 80146b4:	34 02 00 01 	mvi r2,1                                       
 80146b8:	c8 8c 18 00 	sub r3,r4,r12                                  
 80146bc:	f8 00 14 c2 	calli 80199c4 <_Watchdog_Adjust>               
 80146c0:	e3 ff ff e4 	bi 8014650 <_Timer_server_Body+0xe4>           
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
 80146c4:	ba 00 08 00 	mv r1,r16                                      <== NOT EXECUTED
 80146c8:	34 42 00 10 	addi r2,r2,16                                  <== NOT EXECUTED
 80146cc:	f8 00 15 22 	calli 8019b54 <_Watchdog_Insert>               <== NOT EXECUTED
 80146d0:	e3 ff ff e2 	bi 8014658 <_Timer_server_Body+0xec>           <== NOT EXECUTED
     */                                                               
    _Timer_server_Process_insertions( ts );                           
                                                                      
    _ISR_Disable( level );                                            
    if ( _Chain_Is_empty( insert_chain ) ) {                          
      ts->insert_chain = NULL;                                        
 80146d4:	59 60 00 78 	sw (r11+120),r0                                
      _ISR_Enable( level );                                           
 80146d8:	d0 02 00 00 	wcsr IE,r2                                     
  _Chain_Initialize_empty( &fire_chain );                             
                                                                      
  while ( true ) {                                                    
    _Timer_server_Get_watchdogs_that_fire_now( ts, &insert_chain, &fire_chain );
                                                                      
    if ( !_Chain_Is_empty( &fire_chain ) ) {                          
 80146dc:	2b 82 00 48 	lw r2,(sp+72)                                  
 80146e0:	5c 54 00 0b 	bne r2,r20,801470c <_Timer_server_Body+0x1a0>  
 80146e4:	e0 00 00 11 	bi 8014728 <_Timer_server_Body+0x1bc>          
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
 80146e8:	28 43 00 00 	lw r3,(r2+0)                                   
                                                                      
  head->next = new_first;                                             
  new_first->previous = head;                                         
 80146ec:	58 6e 00 04 	sw (r3+4),r14                                  
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
                                                                      
  head->next = new_first;                                             
 80146f0:	5b 83 00 48 	sw (sp+72),r3                                  
         *  service routine may remove a watchdog from the chain.     
         */                                                           
        _ISR_Disable( level );                                        
        watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
        if ( watchdog != NULL ) {                                     
          watchdog->state = WATCHDOG_INACTIVE;                        
 80146f4:	58 40 00 08 	sw (r2+8),r0                                   
          _ISR_Enable( level );                                       
 80146f8:	d0 04 00 00 	wcsr IE,r4                                     
        /*                                                            
         *  The timer server may block here and wait for resources or time.
         *  The system watchdogs are inactive and will remain inactive since
         *  the active flag of the timer server is true.              
         */                                                           
        (*watchdog->routine)( watchdog->id, watchdog->user_data );    
 80146fc:	28 43 00 1c 	lw r3,(r2+28)                                  
 8014700:	28 41 00 20 	lw r1,(r2+32)                                  
 8014704:	28 42 00 24 	lw r2,(r2+36)                                  
 8014708:	d8 60 00 00 	call r3                                        
                                                                      
        /*                                                            
         *  It is essential that interrupts are disable here since an interrupt
         *  service routine may remove a watchdog from the chain.     
         */                                                           
        _ISR_Disable( level );                                        
 801470c:	90 00 20 00 	rcsr r4,IE                                     
 8014710:	a0 91 10 00 	and r2,r4,r17                                  
 8014714:	d0 02 00 00 	wcsr IE,r2                                     
      initialized = false;                                            
    }                                                                 
  #endif                                                              
                                                                      
  return status;                                                      
}                                                                     
 8014718:	2b 82 00 48 	lw r2,(sp+72)                                  
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
 801471c:	5c 54 ff f3 	bne r2,r20,80146e8 <_Timer_server_Body+0x17c>  
        watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
        if ( watchdog != NULL ) {                                     
          watchdog->state = WATCHDOG_INACTIVE;                        
          _ISR_Enable( level );                                       
        } else {                                                      
          _ISR_Enable( level );                                       
 8014720:	d0 04 00 00 	wcsr IE,r4                                     
 8014724:	e3 ff ff bc 	bi 8014614 <_Timer_server_Body+0xa8>           
         *  the active flag of the timer server is true.              
         */                                                           
        (*watchdog->routine)( watchdog->id, watchdog->user_data );    
      }                                                               
    } else {                                                          
      ts->active = false;                                             
 8014728:	31 60 00 7c 	sb (r11+124),r0                                
 801472c:	2a e1 00 00 	lw r1,(r23+0)                                  
 8014730:	34 21 00 01 	addi r1,r1,1                                   
 8014734:	5a e1 00 00 	sw (r23+0),r1                                  
                                                                      
      /*                                                              
       *  Block until there is something to do.                       
       */                                                             
      _Thread_Disable_dispatch();                                     
        _Thread_Set_state( ts->thread, STATES_DELAYING );             
 8014738:	29 61 00 00 	lw r1,(r11+0)                                  
 801473c:	34 02 00 08 	mvi r2,8                                       
 8014740:	f8 00 12 90 	calli 8019180 <_Thread_Set_state>              
        _Timer_server_Reset_interval_system_watchdog( ts );           
 8014744:	b9 60 08 00 	mv r1,r11                                      
 8014748:	fb ff ff 47 	calli 8014464 <_Timer_server_Reset_interval_system_watchdog>
        _Timer_server_Reset_tod_system_watchdog( ts );                
 801474c:	b9 60 08 00 	mv r1,r11                                      
 8014750:	fb ff ff 66 	calli 80144e8 <_Timer_server_Reset_tod_system_watchdog>
      _Thread_Enable_dispatch();                                      
 8014754:	f8 00 0f c8 	calli 8018674 <_Thread_Enable_dispatch>        
                                                                      
static void _Timer_server_Stop_interval_system_watchdog(              
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );        
 8014758:	bb 60 08 00 	mv r1,fp                                       
        _Thread_Set_state( ts->thread, STATES_DELAYING );             
        _Timer_server_Reset_interval_system_watchdog( ts );           
        _Timer_server_Reset_tod_system_watchdog( ts );                
      _Thread_Enable_dispatch();                                      
                                                                      
      ts->active = true;                                              
 801475c:	31 78 00 7c 	sb (r11+124),r24                               
                                                                      
static void _Timer_server_Stop_interval_system_watchdog(              
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );        
 8014760:	f8 00 15 68 	calli 8019d00 <_Watchdog_Remove>               
                                                                      
static void _Timer_server_Stop_tod_system_watchdog(                   
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );             
 8014764:	bb 20 08 00 	mv r1,r25                                      
 8014768:	f8 00 15 66 	calli 8019d00 <_Watchdog_Remove>               
 801476c:	e3 ff ff aa 	bi 8014614 <_Timer_server_Body+0xa8>           
                                                                      

08014770 <_Timer_server_Schedule_operation_method>: static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) {
 8014770:	37 9c ff f8 	addi sp,sp,-8                                  
 8014774:	5b 8b 00 08 	sw (sp+8),r11                                  
 8014778:	5b 9d 00 04 	sw (sp+4),ra                                   
 801477c:	b8 20 58 00 	mv r11,r1                                      
  if ( ts->insert_chain == NULL ) {                                   
 8014780:	28 21 00 78 	lw r1,(r1+120)                                 
                                                                      
static void _Timer_server_Schedule_operation_method(                  
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
 8014784:	b8 40 18 00 	mv r3,r2                                       
  if ( ts->insert_chain == NULL ) {                                   
 8014788:	44 20 00 07 	be r1,r0,80147a4 <_Timer_server_Schedule_operation_method+0x34><== ALWAYS TAKEN
     *  server is not preemptible, so we must be in interrupt context here.  No
     *  thread dispatch will happen until the timer server finishes its
     *  critical section.  We have to use the protected chain methods because
     *  we may be interrupted by a higher priority interrupt.         
     */                                                               
    _Chain_Append( ts->insert_chain, &timer->Object.Node );           
 801478c:	29 61 00 78 	lw r1,(r11+120)                                <== NOT EXECUTED
 8014790:	f8 00 02 d2 	calli 80152d8 <_Chain_Append>                  <== NOT EXECUTED
  }                                                                   
}                                                                     
 8014794:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 8014798:	2b 8b 00 08 	lw r11,(sp+8)                                  <== NOT EXECUTED
 801479c:	37 9c 00 08 	addi sp,sp,8                                   <== NOT EXECUTED
 80147a0:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
 80147a4:	78 01 08 03 	mvhi r1,0x803                                  
 80147a8:	38 21 ec 98 	ori r1,r1,0xec98                               
 80147ac:	28 22 00 00 	lw r2,(r1+0)                                   
 80147b0:	34 42 00 01 	addi r2,r2,1                                   
 80147b4:	58 22 00 00 	sw (r1+0),r2                                   
   *  being inserted.  This could result in an integer overflow.      
   */                                                                 
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
 80147b8:	28 61 00 38 	lw r1,(r3+56)                                  
 80147bc:	34 02 00 01 	mvi r2,1                                       
 80147c0:	44 22 00 28 	be r1,r2,8014860 <_Timer_server_Schedule_operation_method+0xf0>
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
                                                                      
    if ( !ts->active ) {                                              
      _Timer_server_Reset_interval_system_watchdog( ts );             
    }                                                                 
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
 80147c4:	34 02 00 03 	mvi r2,3                                       
 80147c8:	44 22 00 06 	be r1,r2,80147e0 <_Timer_server_Schedule_operation_method+0x70>
    if ( !ts->active ) {                                              
      _Timer_server_Reset_tod_system_watchdog( ts );                  
    }                                                                 
  }                                                                   
                                                                      
  _Thread_Enable_dispatch();                                          
 80147cc:	f8 00 0f aa 	calli 8018674 <_Thread_Enable_dispatch>        
     *  critical section.  We have to use the protected chain methods because
     *  we may be interrupted by a higher priority interrupt.         
     */                                                               
    _Chain_Append( ts->insert_chain, &timer->Object.Node );           
  }                                                                   
}                                                                     
 80147d0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80147d4:	2b 8b 00 08 	lw r11,(sp+8)                                  
 80147d8:	37 9c 00 08 	addi sp,sp,8                                   
 80147dc:	c3 a0 00 00 	ret                                            
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
    /*                                                                
     *  We have to advance the last known seconds value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
 80147e0:	90 00 38 00 	rcsr r7,IE                                     
 80147e4:	34 01 ff fe 	mvi r1,-2                                      
 80147e8:	a0 e1 08 00 	and r1,r7,r1                                   
 80147ec:	d0 01 00 00 	wcsr IE,r1                                     
      initialized = false;                                            
    }                                                                 
  #endif                                                              
                                                                      
  return status;                                                      
}                                                                     
 80147f0:	29 62 00 68 	lw r2,(r11+104)                                
    /*                                                                
     *  We have to advance the last known seconds value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
    snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();        
 80147f4:	78 01 08 03 	mvhi r1,0x803                                  
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
 80147f8:	29 64 00 74 	lw r4,(r11+116)                                
    /*                                                                
     *  We have to advance the last known seconds value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
    snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();        
 80147fc:	38 21 ed 20 	ori r1,r1,0xed20                               
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 8014800:	35 65 00 6c 	addi r5,r11,108                                
 8014804:	28 21 00 00 	lw r1,(r1+0)                                   
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
    if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {             
 8014808:	44 45 00 0a 	be r2,r5,8014830 <_Timer_server_Schedule_operation_method+0xc0>
      first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );   
      delta_interval = first_watchdog->delta_interval;                
 801480c:	28 46 00 10 	lw r6,(r2+16)                                  
        }                                                             
      } else {                                                        
        /*                                                            
         *  Someone put us in the past.                               
         */                                                           
        delta = last_snapshot - snapshot;                             
 8014810:	b4 c4 28 00 	add r5,r6,r4                                   
        delta_interval += delta;                                      
 8014814:	c8 a1 28 00 	sub r5,r5,r1                                   
    snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();        
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
    if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {             
      first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );   
      delta_interval = first_watchdog->delta_interval;                
      if ( snapshot > last_snapshot ) {                               
 8014818:	50 81 00 05 	bgeu r4,r1,801482c <_Timer_server_Schedule_operation_method+0xbc>
        /*                                                            
         *  We advanced in time.                                      
         */                                                           
        delta = snapshot - last_snapshot;                             
 801481c:	c8 24 20 00 	sub r4,r1,r4                                   
        if (delta_interval > delta) {                                 
          delta_interval -= delta;                                    
        } else {                                                      
          delta_interval = 0;                                         
 8014820:	34 05 00 00 	mvi r5,0                                       
      if ( snapshot > last_snapshot ) {                               
        /*                                                            
         *  We advanced in time.                                      
         */                                                           
        delta = snapshot - last_snapshot;                             
        if (delta_interval > delta) {                                 
 8014824:	50 86 00 02 	bgeu r4,r6,801482c <_Timer_server_Schedule_operation_method+0xbc><== NEVER TAKEN
          delta_interval -= delta;                                    
 8014828:	c8 c4 28 00 	sub r5,r6,r4                                   
         *  Someone put us in the past.                               
         */                                                           
        delta = last_snapshot - snapshot;                             
        delta_interval += delta;                                      
      }                                                               
      first_watchdog->delta_interval = delta_interval;                
 801482c:	58 45 00 10 	sw (r2+16),r5                                  
    }                                                                 
    ts->TOD_watchdogs.last_snapshot = snapshot;                       
 8014830:	59 61 00 74 	sw (r11+116),r1                                
    _ISR_Enable( level );                                             
 8014834:	d0 07 00 00 	wcsr IE,r7                                     
                                                                      
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
 8014838:	35 61 00 68 	addi r1,r11,104                                
 801483c:	34 62 00 10 	addi r2,r3,16                                  
 8014840:	f8 00 14 c5 	calli 8019b54 <_Watchdog_Insert>               
                                                                      
    if ( !ts->active ) {                                              
 8014844:	41 61 00 7c 	lbu r1,(r11+124)                               
 8014848:	20 21 00 ff 	andi r1,r1,0xff                                
 801484c:	5c 20 ff e0 	bne r1,r0,80147cc <_Timer_server_Schedule_operation_method+0x5c>
      _Timer_server_Reset_tod_system_watchdog( ts );                  
 8014850:	b9 60 08 00 	mv r1,r11                                      
 8014854:	fb ff ff 25 	calli 80144e8 <_Timer_server_Reset_tod_system_watchdog>
    }                                                                 
  }                                                                   
                                                                      
  _Thread_Enable_dispatch();                                          
 8014858:	f8 00 0f 87 	calli 8018674 <_Thread_Enable_dispatch>        
 801485c:	e3 ff ff dd 	bi 80147d0 <_Timer_server_Schedule_operation_method+0x60>
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
    /*                                                                
     *  We have to advance the last known ticks value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
 8014860:	90 00 20 00 	rcsr r4,IE                                     
 8014864:	34 01 ff fe 	mvi r1,-2                                      
 8014868:	a0 81 08 00 	and r1,r4,r1                                   
 801486c:	d0 01 00 00 	wcsr IE,r1                                     
    snapshot = _Watchdog_Ticks_since_boot;                            
 8014870:	78 01 08 03 	mvhi r1,0x803                                  
 8014874:	38 21 ed a8 	ori r1,r1,0xeda8                               
      initialized = false;                                            
    }                                                                 
  #endif                                                              
                                                                      
  return status;                                                      
}                                                                     
 8014878:	29 62 00 30 	lw r2,(r11+48)                                 
    /*                                                                
     *  We have to advance the last known ticks value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
    snapshot = _Watchdog_Ticks_since_boot;                            
 801487c:	28 21 00 00 	lw r1,(r1+0)                                   
    last_snapshot = ts->Interval_watchdogs.last_snapshot;             
 8014880:	29 66 00 3c 	lw r6,(r11+60)                                 
 8014884:	35 65 00 34 	addi r5,r11,52                                 
    if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) {        
 8014888:	44 45 00 07 	be r2,r5,80148a4 <_Timer_server_Schedule_operation_method+0x134>
      /*                                                              
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
                                                                      
      delta_interval = first_watchdog->delta_interval;                
 801488c:	28 47 00 10 	lw r7,(r2+16)                                  
      first_watchdog = _Watchdog_First( &ts->Interval_watchdogs.Chain );
                                                                      
      /*                                                              
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
 8014890:	c8 26 30 00 	sub r6,r1,r6                                   
                                                                      
      delta_interval = first_watchdog->delta_interval;                
      if (delta_interval > delta) {                                   
        delta_interval -= delta;                                      
      } else {                                                        
        delta_interval = 0;                                           
 8014894:	34 05 00 00 	mvi r5,0                                       
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
                                                                      
      delta_interval = first_watchdog->delta_interval;                
      if (delta_interval > delta) {                                   
 8014898:	50 c7 00 02 	bgeu r6,r7,80148a0 <_Timer_server_Schedule_operation_method+0x130>
        delta_interval -= delta;                                      
 801489c:	c8 e6 28 00 	sub r5,r7,r6                                   
      } else {                                                        
        delta_interval = 0;                                           
      }                                                               
      first_watchdog->delta_interval = delta_interval;                
 80148a0:	58 45 00 10 	sw (r2+16),r5                                  
    }                                                                 
    ts->Interval_watchdogs.last_snapshot = snapshot;                  
 80148a4:	59 61 00 3c 	sw (r11+60),r1                                 
    _ISR_Enable( level );                                             
 80148a8:	d0 04 00 00 	wcsr IE,r4                                     
                                                                      
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
 80148ac:	35 61 00 30 	addi r1,r11,48                                 
 80148b0:	34 62 00 10 	addi r2,r3,16                                  
 80148b4:	f8 00 14 a8 	calli 8019b54 <_Watchdog_Insert>               
                                                                      
    if ( !ts->active ) {                                              
 80148b8:	41 61 00 7c 	lbu r1,(r11+124)                               
 80148bc:	20 21 00 ff 	andi r1,r1,0xff                                
 80148c0:	5c 20 ff c3 	bne r1,r0,80147cc <_Timer_server_Schedule_operation_method+0x5c>
      _Timer_server_Reset_interval_system_watchdog( ts );             
 80148c4:	b9 60 08 00 	mv r1,r11                                      
 80148c8:	fb ff fe e7 	calli 8014464 <_Timer_server_Reset_interval_system_watchdog>
    if ( !ts->active ) {                                              
      _Timer_server_Reset_tod_system_watchdog( ts );                  
    }                                                                 
  }                                                                   
                                                                      
  _Thread_Enable_dispatch();                                          
 80148cc:	f8 00 0f 6a 	calli 8018674 <_Thread_Enable_dispatch>        
 80148d0:	e3 ff ff c0 	bi 80147d0 <_Timer_server_Schedule_operation_method+0x60>
                                                                      

080066d8 <_Timespec_Add_to>: uint32_t _Timespec_Add_to( struct timespec *time, const struct timespec *add ) {
 80066d8:	b8 20 20 00 	mv r4,r1                                       
  uint32_t seconds = add->tv_sec;                                     
                                                                      
  /* Add the basics */                                                
  time->tv_sec += add->tv_sec;                                        
 80066dc:	28 83 00 00 	lw r3,(r4+0)                                   
uint32_t _Timespec_Add_to(                                            
  struct timespec       *time,                                        
  const struct timespec *add                                          
)                                                                     
{                                                                     
  uint32_t seconds = add->tv_sec;                                     
 80066e0:	28 41 00 00 	lw r1,(r2+0)                                   
                                                                      
  /* Add the basics */                                                
  time->tv_sec += add->tv_sec;                                        
  time->tv_nsec += add->tv_nsec;                                      
 80066e4:	28 86 00 04 	lw r6,(r4+4)                                   
 80066e8:	28 42 00 04 	lw r2,(r2+4)                                   
                                                                      
  /* Now adjust it so nanoseconds is in range */                      
  while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {             
 80066ec:	78 07 08 01 	mvhi r7,0x801                                  
 80066f0:	38 e7 23 c8 	ori r7,r7,0x23c8                               
 80066f4:	28 e5 00 00 	lw r5,(r7+0)                                   
)                                                                     
{                                                                     
  uint32_t seconds = add->tv_sec;                                     
                                                                      
  /* Add the basics */                                                
  time->tv_sec += add->tv_sec;                                        
 80066f8:	b4 61 18 00 	add r3,r3,r1                                   
  time->tv_nsec += add->tv_nsec;                                      
 80066fc:	b4 46 10 00 	add r2,r2,r6                                   
)                                                                     
{                                                                     
  uint32_t seconds = add->tv_sec;                                     
                                                                      
  /* Add the basics */                                                
  time->tv_sec += add->tv_sec;                                        
 8006700:	58 83 00 00 	sw (r4+0),r3                                   
  time->tv_nsec += add->tv_nsec;                                      
 8006704:	58 82 00 04 	sw (r4+4),r2                                   
                                                                      
  /* Now adjust it so nanoseconds is in range */                      
  while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {             
 8006708:	50 a2 00 0a 	bgeu r5,r2,8006730 <_Timespec_Add_to+0x58>     
    time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND;                      
 800670c:	78 07 08 01 	mvhi r7,0x801                                  
 8006710:	38 e7 23 cc 	ori r7,r7,0x23cc                               
 8006714:	28 e6 00 00 	lw r6,(r7+0)                                   
 8006718:	b4 46 10 00 	add r2,r2,r6                                   
 *                                                                    
 *  This routines adds two timespecs.  The second argument is added   
 *  to the first.                                                     
 */                                                                   
                                                                      
uint32_t _Timespec_Add_to(                                            
 800671c:	34 63 00 01 	addi r3,r3,1                                   
                                                                      
  /* Now adjust it so nanoseconds is in range */                      
  while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {             
    time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND;                      
    time->tv_sec++;                                                   
    seconds++;                                                        
 8006720:	34 21 00 01 	addi r1,r1,1                                   
  /* Add the basics */                                                
  time->tv_sec += add->tv_sec;                                        
  time->tv_nsec += add->tv_nsec;                                      
                                                                      
  /* Now adjust it so nanoseconds is in range */                      
  while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {             
 8006724:	54 45 ff fd 	bgu r2,r5,8006718 <_Timespec_Add_to+0x40>      <== NEVER TAKEN
 8006728:	58 82 00 04 	sw (r4+4),r2                                   
 800672c:	58 83 00 00 	sw (r4+0),r3                                   
    time->tv_sec++;                                                   
    seconds++;                                                        
  }                                                                   
                                                                      
  return seconds;                                                     
}                                                                     
 8006730:	c3 a0 00 00 	ret                                            
                                                                      

08006958 <_User_extensions_Fatal>: void _User_extensions_Fatal ( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) {
 8006958:	37 9c ff e8 	addi sp,sp,-24                                 
 800695c:	5b 8b 00 18 	sw (sp+24),r11                                 
 8006960:	5b 8c 00 14 	sw (sp+20),r12                                 
 8006964:	5b 8d 00 10 	sw (sp+16),r13                                 
 8006968:	5b 8e 00 0c 	sw (sp+12),r14                                 
 800696c:	5b 8f 00 08 	sw (sp+8),r15                                  
 8006970:	5b 9d 00 04 	sw (sp+4),ra                                   
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.fatal != NULL )                      
      (*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
  }                                                                   
}                                                                     
 8006974:	78 0c 08 01 	mvhi r12,0x801                                 
 8006978:	39 8c 39 e4 	ori r12,r12,0x39e4                             
 800697c:	29 8b 00 08 	lw r11,(r12+8)                                 
void _User_extensions_Fatal (                                         
  Internal_errors_Source  the_source,                                 
  bool                    is_internal,                                
  Internal_errors_t       the_error                                   
)                                                                     
{                                                                     
 8006980:	b8 20 78 00 	mv r15,r1                                      
 8006984:	b8 60 70 00 	mv r14,r3                                      
 8006988:	20 4d 00 ff 	andi r13,r2,0xff                               
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_Last( &_User_extensions_List );             
 800698c:	45 6c 00 09 	be r11,r12,80069b0 <_User_extensions_Fatal+0x58><== NEVER TAKEN
        !_Chain_Is_head( &_User_extensions_List, the_node ) ;         
        the_node = the_node->previous ) {                             
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.fatal != NULL )                      
 8006990:	29 64 00 30 	lw r4,(r11+48)                                 
      (*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
 8006994:	b9 e0 08 00 	mv r1,r15                                      
 8006998:	b9 a0 10 00 	mv r2,r13                                      
 800699c:	b9 c0 18 00 	mv r3,r14                                      
        !_Chain_Is_head( &_User_extensions_List, the_node ) ;         
        the_node = the_node->previous ) {                             
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.fatal != NULL )                      
 80069a0:	44 80 00 02 	be r4,r0,80069a8 <_User_extensions_Fatal+0x50> 
      (*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
 80069a4:	d8 80 00 00 	call r4                                        
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_Last( &_User_extensions_List );             
        !_Chain_Is_head( &_User_extensions_List, the_node ) ;         
        the_node = the_node->previous ) {                             
 80069a8:	29 6b 00 04 	lw r11,(r11+4)                                 
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_Last( &_User_extensions_List );             
 80069ac:	5d 6c ff f9 	bne r11,r12,8006990 <_User_extensions_Fatal+0x38>
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.fatal != NULL )                      
      (*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
  }                                                                   
}                                                                     
 80069b0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80069b4:	2b 8b 00 18 	lw r11,(sp+24)                                 
 80069b8:	2b 8c 00 14 	lw r12,(sp+20)                                 
 80069bc:	2b 8d 00 10 	lw r13,(sp+16)                                 
 80069c0:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 80069c4:	2b 8f 00 08 	lw r15,(sp+8)                                  
 80069c8:	37 9c 00 18 	addi sp,sp,24                                  
 80069cc:	c3 a0 00 00 	ret                                            
                                                                      

0800678c <_User_extensions_Handler_initialization>: #include <rtems/score/userext.h> #include <rtems/score/wkspace.h> #include <string.h> void _User_extensions_Handler_initialization(void) {
 800678c:	37 9c ff ec 	addi sp,sp,-20                                 
 8006790:	5b 8b 00 14 	sw (sp+20),r11                                 
 8006794:	5b 8c 00 10 	sw (sp+16),r12                                 
 8006798:	5b 8d 00 0c 	sw (sp+12),r13                                 
 800679c:	5b 8e 00 08 	sw (sp+8),r14                                  
 80067a0:	5b 9d 00 04 	sw (sp+4),ra                                   
  User_extensions_Control *extension;                                 
  uint32_t                 i;                                         
  uint32_t                 number_of_extensions;                      
  User_extensions_Table   *initial_extensions;                        
                                                                      
  number_of_extensions = Configuration.number_of_initial_extensions;  
 80067a4:	78 03 08 01 	mvhi r3,0x801                                  
 80067a8:	38 63 30 f4 	ori r3,r3,0x30f4                               
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 80067ac:	78 02 08 01 	mvhi r2,0x801                                  
 80067b0:	78 05 08 01 	mvhi r5,0x801                                  
 80067b4:	78 01 08 01 	mvhi r1,0x801                                  
 80067b8:	78 04 08 01 	mvhi r4,0x801                                  
  initial_extensions   = Configuration.User_extension_table;          
 80067bc:	28 6b 00 3c 	lw r11,(r3+60)                                 
 80067c0:	38 42 39 e4 	ori r2,r2,0x39e4                               
 80067c4:	38 21 38 8c 	ori r1,r1,0x388c                               
 80067c8:	38 a5 39 e8 	ori r5,r5,0x39e8                               
 80067cc:	38 84 38 90 	ori r4,r4,0x3890                               
 80067d0:	58 45 00 00 	sw (r2+0),r5                                   
  head->previous = NULL;                                              
 80067d4:	58 40 00 04 	sw (r2+4),r0                                   
  tail->previous = head;                                              
 80067d8:	58 42 00 08 	sw (r2+8),r2                                   
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 80067dc:	58 24 00 00 	sw (r1+0),r4                                   
  head->previous = NULL;                                              
 80067e0:	58 20 00 04 	sw (r1+4),r0                                   
  tail->previous = head;                                              
 80067e4:	58 21 00 08 	sw (r1+8),r1                                   
  User_extensions_Control *extension;                                 
  uint32_t                 i;                                         
  uint32_t                 number_of_extensions;                      
  User_extensions_Table   *initial_extensions;                        
                                                                      
  number_of_extensions = Configuration.number_of_initial_extensions;  
 80067e8:	28 6e 00 38 	lw r14,(r3+56)                                 
  initial_extensions   = Configuration.User_extension_table;          
                                                                      
  _Chain_Initialize_empty( &_User_extensions_List );                  
  _Chain_Initialize_empty( &_User_extensions_Switches_list );         
                                                                      
  if ( initial_extensions ) {                                         
 80067ec:	45 60 00 26 	be r11,r0,8006884 <_User_extensions_Handler_initialization+0xf8><== NEVER TAKEN
    extension = (User_extensions_Control *)                           
      _Workspace_Allocate_or_fatal_error(                             
        number_of_extensions * sizeof( User_extensions_Control )      
 80067f0:	b5 ce 68 00 	add r13,r14,r14                                
 80067f4:	b5 ae 68 00 	add r13,r13,r14                                
 80067f8:	b5 ad 68 00 	add r13,r13,r13                                
 80067fc:	b5 ad 68 00 	add r13,r13,r13                                
 8006800:	b5 ae 68 00 	add r13,r13,r14                                
 8006804:	b5 ad 68 00 	add r13,r13,r13                                
 8006808:	b5 ad 68 00 	add r13,r13,r13                                
  _Chain_Initialize_empty( &_User_extensions_List );                  
  _Chain_Initialize_empty( &_User_extensions_Switches_list );         
                                                                      
  if ( initial_extensions ) {                                         
    extension = (User_extensions_Control *)                           
      _Workspace_Allocate_or_fatal_error(                             
 800680c:	b9 a0 08 00 	mv r1,r13                                      
 8006810:	f8 00 01 f9 	calli 8006ff4 <_Workspace_Allocate_or_fatal_error>
        number_of_extensions * sizeof( User_extensions_Control )      
      );                                                              
                                                                      
    memset (                                                          
 8006814:	34 02 00 00 	mvi r2,0                                       
 8006818:	b9 a0 18 00 	mv r3,r13                                      
  _Chain_Initialize_empty( &_User_extensions_List );                  
  _Chain_Initialize_empty( &_User_extensions_Switches_list );         
                                                                      
  if ( initial_extensions ) {                                         
    extension = (User_extensions_Control *)                           
      _Workspace_Allocate_or_fatal_error(                             
 800681c:	b8 20 60 00 	mv r12,r1                                      
        number_of_extensions * sizeof( User_extensions_Control )      
      );                                                              
                                                                      
    memset (                                                          
 8006820:	f8 00 17 91 	calli 800c664 <memset>                         
      extension,                                                      
      0,                                                              
      number_of_extensions * sizeof( User_extensions_Control )        
    );                                                                
                                                                      
    for ( i = 0 ; i < number_of_extensions ; i++ ) {                  
 8006824:	45 c0 00 18 	be r14,r0,8006884 <_User_extensions_Handler_initialization+0xf8><== NEVER TAKEN
 8006828:	34 0d 00 00 	mvi r13,0                                      
RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table(        
  User_extensions_Control     *extension,                             
  const User_extensions_Table *extension_table                        
)                                                                     
{                                                                     
  extension->Callouts = *extension_table;                             
 800682c:	29 62 00 00 	lw r2,(r11+0)                                  
                                                                      
  _User_extensions_Add_set( extension );                              
 8006830:	b9 80 08 00 	mv r1,r12                                      
 8006834:	35 ad 00 01 	addi r13,r13,1                                 
RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table(        
  User_extensions_Control     *extension,                             
  const User_extensions_Table *extension_table                        
)                                                                     
{                                                                     
  extension->Callouts = *extension_table;                             
 8006838:	59 82 00 14 	sw (r12+20),r2                                 
 800683c:	29 62 00 04 	lw r2,(r11+4)                                  
 8006840:	59 82 00 18 	sw (r12+24),r2                                 
 8006844:	29 62 00 08 	lw r2,(r11+8)                                  
 8006848:	59 82 00 1c 	sw (r12+28),r2                                 
 800684c:	29 62 00 0c 	lw r2,(r11+12)                                 
 8006850:	59 82 00 20 	sw (r12+32),r2                                 
 8006854:	29 62 00 10 	lw r2,(r11+16)                                 
 8006858:	59 82 00 24 	sw (r12+36),r2                                 
 800685c:	29 62 00 14 	lw r2,(r11+20)                                 
 8006860:	59 82 00 28 	sw (r12+40),r2                                 
 8006864:	29 62 00 18 	lw r2,(r11+24)                                 
 8006868:	59 82 00 2c 	sw (r12+44),r2                                 
 800686c:	29 62 00 1c 	lw r2,(r11+28)                                 
 8006870:	35 6b 00 20 	addi r11,r11,32                                
 8006874:	59 82 00 30 	sw (r12+48),r2                                 
                                                                      
  _User_extensions_Add_set( extension );                              
 8006878:	f8 00 0d a2 	calli 8009f00 <_User_extensions_Add_set>       
      _User_extensions_Add_set_with_table (extension, &initial_extensions[i]);
      extension++;                                                    
 800687c:	35 8c 00 34 	addi r12,r12,52                                
      extension,                                                      
      0,                                                              
      number_of_extensions * sizeof( User_extensions_Control )        
    );                                                                
                                                                      
    for ( i = 0 ; i < number_of_extensions ; i++ ) {                  
 8006880:	55 cd ff eb 	bgu r14,r13,800682c <_User_extensions_Handler_initialization+0xa0>
      _User_extensions_Add_set_with_table (extension, &initial_extensions[i]);
      extension++;                                                    
    }                                                                 
  }                                                                   
}                                                                     
 8006884:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006888:	2b 8b 00 14 	lw r11,(sp+20)                                 
 800688c:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8006890:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8006894:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8006898:	37 9c 00 14 	addi sp,sp,20                                  
 800689c:	c3 a0 00 00 	ret                                            
                                                                      

080068a0 <_User_extensions_Thread_begin>: #include <rtems/score/userext.h> void _User_extensions_Thread_begin ( Thread_Control *executing ) {
 80068a0:	37 9c ff f0 	addi sp,sp,-16                                 
 80068a4:	5b 8b 00 10 	sw (sp+16),r11                                 
 80068a8:	5b 8c 00 0c 	sw (sp+12),r12                                 
 80068ac:	5b 8d 00 08 	sw (sp+8),r13                                  
 80068b0:	5b 9d 00 04 	sw (sp+4),ra                                   
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.fatal != NULL )                      
      (*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
  }                                                                   
}                                                                     
 80068b4:	78 02 08 01 	mvhi r2,0x801                                  
 80068b8:	38 42 39 e4 	ori r2,r2,0x39e4                               
 80068bc:	28 4b 00 00 	lw r11,(r2+0)                                  
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 80068c0:	78 0c 08 01 	mvhi r12,0x801                                 
 80068c4:	39 8c 39 e8 	ori r12,r12,0x39e8                             
#include <rtems/score/userext.h>                                      
                                                                      
void _User_extensions_Thread_begin (                                  
  Thread_Control *executing                                           
)                                                                     
{                                                                     
 80068c8:	b8 20 68 00 	mv r13,r1                                      
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 80068cc:	45 6c 00 07 	be r11,r12,80068e8 <_User_extensions_Thread_begin+0x48><== NEVER TAKEN
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_begin != NULL )               
 80068d0:	29 62 00 28 	lw r2,(r11+40)                                 
      (*the_extension->Callouts.thread_begin)( executing );           
 80068d4:	b9 a0 08 00 	mv r1,r13                                      
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_begin != NULL )               
 80068d8:	44 40 00 02 	be r2,r0,80068e0 <_User_extensions_Thread_begin+0x40>
      (*the_extension->Callouts.thread_begin)( executing );           
 80068dc:	d8 40 00 00 	call r2                                        
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
 80068e0:	29 6b 00 00 	lw r11,(r11+0)                                 
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 80068e4:	5d 6c ff fb 	bne r11,r12,80068d0 <_User_extensions_Thread_begin+0x30>
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_begin != NULL )               
      (*the_extension->Callouts.thread_begin)( executing );           
  }                                                                   
}                                                                     
 80068e8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80068ec:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80068f0:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80068f4:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80068f8:	37 9c 00 10 	addi sp,sp,16                                  
 80068fc:	c3 a0 00 00 	ret                                            
                                                                      

080069d0 <_User_extensions_Thread_create>: #include <rtems/score/userext.h> bool _User_extensions_Thread_create ( Thread_Control *the_thread ) {
 80069d0:	37 9c ff ec 	addi sp,sp,-20                                 
 80069d4:	5b 8b 00 14 	sw (sp+20),r11                                 
 80069d8:	5b 8c 00 10 	sw (sp+16),r12                                 
 80069dc:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80069e0:	5b 8e 00 08 	sw (sp+8),r14                                  
 80069e4:	5b 9d 00 04 	sw (sp+4),ra                                   
        return false;                                                 
    }                                                                 
  }                                                                   
                                                                      
  return true;                                                        
}                                                                     
 80069e8:	78 02 08 01 	mvhi r2,0x801                                  
 80069ec:	38 42 39 e4 	ori r2,r2,0x39e4                               
 80069f0:	28 4b 00 00 	lw r11,(r2+0)                                  
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
  bool                     status;                                    
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 80069f4:	78 0c 08 01 	mvhi r12,0x801                                 
 80069f8:	39 8c 39 e8 	ori r12,r12,0x39e8                             
#include <rtems/score/userext.h>                                      
                                                                      
bool _User_extensions_Thread_create (                                 
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
 80069fc:	b8 20 70 00 	mv r14,r1                                      
      if ( !status )                                                  
        return false;                                                 
    }                                                                 
  }                                                                   
                                                                      
  return true;                                                        
 8006a00:	34 01 00 01 	mvi r1,1                                       
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
  bool                     status;                                    
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 8006a04:	45 6c 00 0c 	be r11,r12,8006a34 <_User_extensions_Thread_create+0x64><== NEVER TAKEN
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_create != NULL ) {            
      status = (*the_extension->Callouts.thread_create)(              
 8006a08:	78 0d 08 01 	mvhi r13,0x801                                 
 8006a0c:	39 ad 3a 28 	ori r13,r13,0x3a28                             
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_create != NULL ) {            
 8006a10:	29 63 00 14 	lw r3,(r11+20)                                 
      status = (*the_extension->Callouts.thread_create)(              
 8006a14:	b9 c0 10 00 	mv r2,r14                                      
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_create != NULL ) {            
 8006a18:	44 60 00 04 	be r3,r0,8006a28 <_User_extensions_Thread_create+0x58>
      status = (*the_extension->Callouts.thread_create)(              
 8006a1c:	29 a1 00 0c 	lw r1,(r13+12)                                 
 8006a20:	d8 60 00 00 	call r3                                        
        _Thread_Executing,                                            
        the_thread                                                    
      );                                                              
      if ( !status )                                                  
 8006a24:	44 20 00 0b 	be r1,r0,8006a50 <_User_extensions_Thread_create+0x80>
  User_extensions_Control *the_extension;                             
  bool                     status;                                    
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
 8006a28:	29 6b 00 00 	lw r11,(r11+0)                                 
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
  bool                     status;                                    
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 8006a2c:	5d 6c ff f9 	bne r11,r12,8006a10 <_User_extensions_Thread_create+0x40>
      if ( !status )                                                  
        return false;                                                 
    }                                                                 
  }                                                                   
                                                                      
  return true;                                                        
 8006a30:	34 01 00 01 	mvi r1,1                                       
}                                                                     
 8006a34:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006a38:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8006a3c:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8006a40:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8006a44:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8006a48:	37 9c 00 14 	addi sp,sp,20                                  
 8006a4c:	c3 a0 00 00 	ret                                            
      status = (*the_extension->Callouts.thread_create)(              
        _Thread_Executing,                                            
        the_thread                                                    
      );                                                              
      if ( !status )                                                  
        return false;                                                 
 8006a50:	34 01 00 00 	mvi r1,0                                       
    }                                                                 
  }                                                                   
                                                                      
  return true;                                                        
}                                                                     
 8006a54:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006a58:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8006a5c:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8006a60:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8006a64:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8006a68:	37 9c 00 14 	addi sp,sp,20                                  
 8006a6c:	c3 a0 00 00 	ret                                            
                                                                      

08006a70 <_User_extensions_Thread_delete>: #include <rtems/score/userext.h> void _User_extensions_Thread_delete ( Thread_Control *the_thread ) {
 8006a70:	37 9c ff ec 	addi sp,sp,-20                                 
 8006a74:	5b 8b 00 14 	sw (sp+20),r11                                 
 8006a78:	5b 8c 00 10 	sw (sp+16),r12                                 
 8006a7c:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8006a80:	5b 8e 00 08 	sw (sp+8),r14                                  
 8006a84:	5b 9d 00 04 	sw (sp+4),ra                                   
      (*the_extension->Callouts.thread_delete)(                       
        _Thread_Executing,                                            
        the_thread                                                    
      );                                                              
  }                                                                   
}                                                                     
 8006a88:	78 0c 08 01 	mvhi r12,0x801                                 
 8006a8c:	39 8c 39 e4 	ori r12,r12,0x39e4                             
 8006a90:	29 8b 00 08 	lw r11,(r12+8)                                 
#include <rtems/score/userext.h>                                      
                                                                      
void _User_extensions_Thread_delete (                                 
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
 8006a94:	b8 20 70 00 	mv r14,r1                                      
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_Last( &_User_extensions_List );             
 8006a98:	45 6c 00 0a 	be r11,r12,8006ac0 <_User_extensions_Thread_delete+0x50><== NEVER TAKEN
        the_node = the_node->previous ) {                             
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_delete != NULL )              
      (*the_extension->Callouts.thread_delete)(                       
 8006a9c:	78 0d 08 01 	mvhi r13,0x801                                 
 8006aa0:	39 ad 3a 28 	ori r13,r13,0x3a28                             
        !_Chain_Is_head( &_User_extensions_List, the_node ) ;         
        the_node = the_node->previous ) {                             
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_delete != NULL )              
 8006aa4:	29 63 00 20 	lw r3,(r11+32)                                 
      (*the_extension->Callouts.thread_delete)(                       
 8006aa8:	b9 c0 10 00 	mv r2,r14                                      
        !_Chain_Is_head( &_User_extensions_List, the_node ) ;         
        the_node = the_node->previous ) {                             
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_delete != NULL )              
 8006aac:	44 60 00 03 	be r3,r0,8006ab8 <_User_extensions_Thread_delete+0x48>
      (*the_extension->Callouts.thread_delete)(                       
 8006ab0:	29 a1 00 0c 	lw r1,(r13+12)                                 
 8006ab4:	d8 60 00 00 	call r3                                        
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_Last( &_User_extensions_List );             
        !_Chain_Is_head( &_User_extensions_List, the_node ) ;         
        the_node = the_node->previous ) {                             
 8006ab8:	29 6b 00 04 	lw r11,(r11+4)                                 
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_Last( &_User_extensions_List );             
 8006abc:	5d 6c ff fa 	bne r11,r12,8006aa4 <_User_extensions_Thread_delete+0x34>
      (*the_extension->Callouts.thread_delete)(                       
        _Thread_Executing,                                            
        the_thread                                                    
      );                                                              
  }                                                                   
}                                                                     
 8006ac0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006ac4:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8006ac8:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8006acc:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8006ad0:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8006ad4:	37 9c 00 14 	addi sp,sp,20                                  
 8006ad8:	c3 a0 00 00 	ret                                            
                                                                      

08006900 <_User_extensions_Thread_exitted>: void _User_extensions_Thread_exitted ( Thread_Control *executing ) {
 8006900:	37 9c ff f0 	addi sp,sp,-16                                 
 8006904:	5b 8b 00 10 	sw (sp+16),r11                                 
 8006908:	5b 8c 00 0c 	sw (sp+12),r12                                 
 800690c:	5b 8d 00 08 	sw (sp+8),r13                                  
 8006910:	5b 9d 00 04 	sw (sp+4),ra                                   
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.fatal != NULL )                      
      (*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
  }                                                                   
}                                                                     
 8006914:	78 0c 08 01 	mvhi r12,0x801                                 
 8006918:	39 8c 39 e4 	ori r12,r12,0x39e4                             
 800691c:	29 8b 00 08 	lw r11,(r12+8)                                 
}                                                                     
                                                                      
void _User_extensions_Thread_exitted (                                
  Thread_Control *executing                                           
)                                                                     
{                                                                     
 8006920:	b8 20 68 00 	mv r13,r1                                      
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_Last( &_User_extensions_List );             
 8006924:	45 6c 00 07 	be r11,r12,8006940 <_User_extensions_Thread_exitted+0x40><== NEVER TAKEN
        !_Chain_Is_head( &_User_extensions_List, the_node ) ;         
        the_node = the_node->previous ) {                             
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_exitted != NULL )             
 8006928:	29 62 00 2c 	lw r2,(r11+44)                                 
      (*the_extension->Callouts.thread_exitted)( executing );         
 800692c:	b9 a0 08 00 	mv r1,r13                                      
        !_Chain_Is_head( &_User_extensions_List, the_node ) ;         
        the_node = the_node->previous ) {                             
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_exitted != NULL )             
 8006930:	44 40 00 02 	be r2,r0,8006938 <_User_extensions_Thread_exitted+0x38>
      (*the_extension->Callouts.thread_exitted)( executing );         
 8006934:	d8 40 00 00 	call r2                                        
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_Last( &_User_extensions_List );             
        !_Chain_Is_head( &_User_extensions_List, the_node ) ;         
        the_node = the_node->previous ) {                             
 8006938:	29 6b 00 04 	lw r11,(r11+4)                                 
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_Last( &_User_extensions_List );             
 800693c:	5d 6c ff fb 	bne r11,r12,8006928 <_User_extensions_Thread_exitted+0x28>
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_exitted != NULL )             
      (*the_extension->Callouts.thread_exitted)( executing );         
  }                                                                   
}                                                                     
 8006940:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006944:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8006948:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 800694c:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8006950:	37 9c 00 10 	addi sp,sp,16                                  
 8006954:	c3 a0 00 00 	ret                                            
                                                                      

08007ac8 <_User_extensions_Thread_restart>: #include <rtems/score/userext.h> void _User_extensions_Thread_restart ( Thread_Control *the_thread ) {
 8007ac8:	37 9c ff ec 	addi sp,sp,-20                                 
 8007acc:	5b 8b 00 14 	sw (sp+20),r11                                 
 8007ad0:	5b 8c 00 10 	sw (sp+16),r12                                 
 8007ad4:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8007ad8:	5b 8e 00 08 	sw (sp+8),r14                                  
 8007adc:	5b 9d 00 04 	sw (sp+4),ra                                   
      (*the_extension->Callouts.thread_restart)(                      
        _Thread_Executing,                                            
        the_thread                                                    
      );                                                              
  }                                                                   
}                                                                     
 8007ae0:	78 02 08 01 	mvhi r2,0x801                                  
 8007ae4:	38 42 ea 44 	ori r2,r2,0xea44                               
 8007ae8:	28 4b 00 00 	lw r11,(r2+0)                                  
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 8007aec:	78 0c 08 01 	mvhi r12,0x801                                 
 8007af0:	39 8c ea 48 	ori r12,r12,0xea48                             
#include <rtems/score/userext.h>                                      
                                                                      
void _User_extensions_Thread_restart (                                
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
 8007af4:	b8 20 70 00 	mv r14,r1                                      
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 8007af8:	45 6c 00 0a 	be r11,r12,8007b20 <_User_extensions_Thread_restart+0x58><== NEVER TAKEN
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_restart != NULL )             
      (*the_extension->Callouts.thread_restart)(                      
 8007afc:	78 0d 08 01 	mvhi r13,0x801                                 
 8007b00:	39 ad ea 88 	ori r13,r13,0xea88                             
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_restart != NULL )             
 8007b04:	29 63 00 1c 	lw r3,(r11+28)                                 
      (*the_extension->Callouts.thread_restart)(                      
 8007b08:	b9 c0 10 00 	mv r2,r14                                      
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_restart != NULL )             
 8007b0c:	44 60 00 03 	be r3,r0,8007b18 <_User_extensions_Thread_restart+0x50>
      (*the_extension->Callouts.thread_restart)(                      
 8007b10:	29 a1 00 0c 	lw r1,(r13+12)                                 
 8007b14:	d8 60 00 00 	call r3                                        
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
 8007b18:	29 6b 00 00 	lw r11,(r11+0)                                 
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 8007b1c:	5d 6c ff fa 	bne r11,r12,8007b04 <_User_extensions_Thread_restart+0x3c>
      (*the_extension->Callouts.thread_restart)(                      
        _Thread_Executing,                                            
        the_thread                                                    
      );                                                              
  }                                                                   
}                                                                     
 8007b20:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8007b24:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8007b28:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8007b2c:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8007b30:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8007b34:	37 9c 00 14 	addi sp,sp,20                                  
 8007b38:	c3 a0 00 00 	ret                                            
                                                                      

08006adc <_User_extensions_Thread_start>: #include <rtems/score/userext.h> void _User_extensions_Thread_start ( Thread_Control *the_thread ) {
 8006adc:	37 9c ff ec 	addi sp,sp,-20                                 
 8006ae0:	5b 8b 00 14 	sw (sp+20),r11                                 
 8006ae4:	5b 8c 00 10 	sw (sp+16),r12                                 
 8006ae8:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8006aec:	5b 8e 00 08 	sw (sp+8),r14                                  
 8006af0:	5b 9d 00 04 	sw (sp+4),ra                                   
      (*the_extension->Callouts.thread_start)(                        
        _Thread_Executing,                                            
        the_thread                                                    
      );                                                              
  }                                                                   
}                                                                     
 8006af4:	78 02 08 01 	mvhi r2,0x801                                  
 8006af8:	38 42 39 e4 	ori r2,r2,0x39e4                               
 8006afc:	28 4b 00 00 	lw r11,(r2+0)                                  
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 8006b00:	78 0c 08 01 	mvhi r12,0x801                                 
 8006b04:	39 8c 39 e8 	ori r12,r12,0x39e8                             
#include <rtems/score/userext.h>                                      
                                                                      
void _User_extensions_Thread_start (                                  
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
 8006b08:	b8 20 70 00 	mv r14,r1                                      
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 8006b0c:	45 6c 00 0a 	be r11,r12,8006b34 <_User_extensions_Thread_start+0x58><== NEVER TAKEN
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_start != NULL )               
      (*the_extension->Callouts.thread_start)(                        
 8006b10:	78 0d 08 01 	mvhi r13,0x801                                 
 8006b14:	39 ad 3a 28 	ori r13,r13,0x3a28                             
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_start != NULL )               
 8006b18:	29 63 00 18 	lw r3,(r11+24)                                 
      (*the_extension->Callouts.thread_start)(                        
 8006b1c:	b9 c0 10 00 	mv r2,r14                                      
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_start != NULL )               
 8006b20:	44 60 00 03 	be r3,r0,8006b2c <_User_extensions_Thread_start+0x50>
      (*the_extension->Callouts.thread_start)(                        
 8006b24:	29 a1 00 0c 	lw r1,(r13+12)                                 
 8006b28:	d8 60 00 00 	call r3                                        
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
 8006b2c:	29 6b 00 00 	lw r11,(r11+0)                                 
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 8006b30:	5d 6c ff fa 	bne r11,r12,8006b18 <_User_extensions_Thread_start+0x3c>
      (*the_extension->Callouts.thread_start)(                        
        _Thread_Executing,                                            
        the_thread                                                    
      );                                                              
  }                                                                   
}                                                                     
 8006b34:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006b38:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8006b3c:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8006b40:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8006b44:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8006b48:	37 9c 00 14 	addi sp,sp,20                                  
 8006b4c:	c3 a0 00 00 	ret                                            
                                                                      

08006b50 <_User_extensions_Thread_switch>: void _User_extensions_Thread_switch ( Thread_Control *executing, Thread_Control *heir ) {
 8006b50:	37 9c ff ec 	addi sp,sp,-20                                 
 8006b54:	5b 8b 00 14 	sw (sp+20),r11                                 
 8006b58:	5b 8c 00 10 	sw (sp+16),r12                                 
 8006b5c:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8006b60:	5b 8e 00 08 	sw (sp+8),r14                                  
 8006b64:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
    the_extension_switch = (User_extensions_Switch_control *) the_node;
                                                                      
    (*the_extension_switch->thread_switch)( executing, heir );        
  }                                                                   
}                                                                     
 8006b68:	78 03 08 01 	mvhi r3,0x801                                  
 8006b6c:	38 63 38 8c 	ori r3,r3,0x388c                               
 8006b70:	28 6b 00 00 	lw r11,(r3+0)                                  
)                                                                     
{                                                                     
  Chain_Node                     *the_node;                           
  User_extensions_Switch_control *the_extension_switch;               
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_Switches_list );   
 8006b74:	78 0c 08 01 	mvhi r12,0x801                                 
 8006b78:	39 8c 38 90 	ori r12,r12,0x3890                             
                                                                      
void _User_extensions_Thread_switch (                                 
  Thread_Control *executing,                                          
  Thread_Control *heir                                                
)                                                                     
{                                                                     
 8006b7c:	b8 20 70 00 	mv r14,r1                                      
 8006b80:	b8 40 68 00 	mv r13,r2                                      
  Chain_Node                     *the_node;                           
  User_extensions_Switch_control *the_extension_switch;               
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_Switches_list );   
 8006b84:	45 6c 00 07 	be r11,r12,8006ba0 <_User_extensions_Thread_switch+0x50><== NEVER TAKEN
        !_Chain_Is_tail( &_User_extensions_Switches_list, the_node ) ;
        the_node = the_node->next ) {                                 
                                                                      
    the_extension_switch = (User_extensions_Switch_control *) the_node;
                                                                      
    (*the_extension_switch->thread_switch)( executing, heir );        
 8006b88:	29 63 00 08 	lw r3,(r11+8)                                  
 8006b8c:	b9 c0 08 00 	mv r1,r14                                      
 8006b90:	b9 a0 10 00 	mv r2,r13                                      
 8006b94:	d8 60 00 00 	call r3                                        
  Chain_Node                     *the_node;                           
  User_extensions_Switch_control *the_extension_switch;               
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_Switches_list );   
        !_Chain_Is_tail( &_User_extensions_Switches_list, the_node ) ;
        the_node = the_node->next ) {                                 
 8006b98:	29 6b 00 00 	lw r11,(r11+0)                                 
)                                                                     
{                                                                     
  Chain_Node                     *the_node;                           
  User_extensions_Switch_control *the_extension_switch;               
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_Switches_list );   
 8006b9c:	5d 6c ff fb 	bne r11,r12,8006b88 <_User_extensions_Thread_switch+0x38>
                                                                      
    the_extension_switch = (User_extensions_Switch_control *) the_node;
                                                                      
    (*the_extension_switch->thread_switch)( executing, heir );        
  }                                                                   
}                                                                     
 8006ba0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006ba4:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8006ba8:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8006bac:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8006bb0:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8006bb4:	37 9c 00 14 	addi sp,sp,20                                  
 8006bb8:	c3 a0 00 00 	ret                                            
                                                                      

08009254 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) {
 8009254:	37 9c ff e4 	addi sp,sp,-28                                 
 8009258:	5b 8b 00 1c 	sw (sp+28),r11                                 
 800925c:	5b 8c 00 18 	sw (sp+24),r12                                 
 8009260:	5b 8d 00 14 	sw (sp+20),r13                                 
 8009264:	5b 8e 00 10 	sw (sp+16),r14                                 
 8009268:	5b 8f 00 0c 	sw (sp+12),r15                                 
 800926c:	5b 90 00 08 	sw (sp+8),r16                                  
 8009270:	5b 9d 00 04 	sw (sp+4),ra                                   
 8009274:	b8 20 60 00 	mv r12,r1                                      
 8009278:	b8 60 58 00 	mv r11,r3                                      
  ISR_Level level;                                                    
                                                                      
  _ISR_Disable( level );                                              
 800927c:	90 00 18 00 	rcsr r3,IE                                     
 8009280:	34 01 ff fe 	mvi r1,-2                                      
 8009284:	a0 61 08 00 	and r1,r3,r1                                   
 8009288:	d0 01 00 00 	wcsr IE,r1                                     
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
                                                                      
}                                                                     
 800928c:	29 81 00 00 	lw r1,(r12+0)                                  
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 8009290:	35 8e 00 04 	addi r14,r12,4                                 
  Watchdog_Interval            units                                  
)                                                                     
{                                                                     
  ISR_Level level;                                                    
                                                                      
  _ISR_Disable( level );                                              
 8009294:	b8 60 20 00 	mv r4,r3                                       
   *       hence the compiler must not assume *header to remain       
   *       unmodified across that call.                               
   *                                                                  
   *       Till Straumann, 7/2003                                     
   */                                                                 
  if ( !_Chain_Is_empty( header ) ) {                                 
 8009298:	44 2e 00 04 	be r1,r14,80092a8 <_Watchdog_Adjust+0x54>      
    switch ( direction ) {                                            
 800929c:	44 40 00 11 	be r2,r0,80092e0 <_Watchdog_Adjust+0x8c>       
 80092a0:	34 03 00 01 	mvi r3,1                                       
 80092a4:	44 43 00 0b 	be r2,r3,80092d0 <_Watchdog_Adjust+0x7c>       <== ALWAYS TAKEN
        }                                                             
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
 80092a8:	d0 04 00 00 	wcsr IE,r4                                     
                                                                      
}                                                                     
 80092ac:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80092b0:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 80092b4:	2b 8c 00 18 	lw r12,(sp+24)                                 
 80092b8:	2b 8d 00 14 	lw r13,(sp+20)                                 
 80092bc:	2b 8e 00 10 	lw r14,(sp+16)                                 
 80092c0:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 80092c4:	2b 90 00 08 	lw r16,(sp+8)                                  
 80092c8:	37 9c 00 1c 	addi sp,sp,28                                  
 80092cc:	c3 a0 00 00 	ret                                            
   *       Till Straumann, 7/2003                                     
   */                                                                 
  if ( !_Chain_Is_empty( header ) ) {                                 
    switch ( direction ) {                                            
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
 80092d0:	28 22 00 10 	lw r2,(r1+16)                                  
 80092d4:	b4 4b 58 00 	add r11,r2,r11                                 
 80092d8:	58 2b 00 10 	sw (r1+16),r11                                 
        break;                                                        
 80092dc:	e3 ff ff f3 	bi 80092a8 <_Watchdog_Adjust+0x54>             
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
 80092e0:	b8 60 20 00 	mv r4,r3                                       
 80092e4:	45 62 ff f1 	be r11,r2,80092a8 <_Watchdog_Adjust+0x54>      <== NEVER TAKEN
          if ( units < _Watchdog_First( header )->delta_interval ) {  
 80092e8:	28 2d 00 10 	lw r13,(r1+16)                                 
 80092ec:	55 ab 00 13 	bgu r13,r11,8009338 <_Watchdog_Adjust+0xe4>    <== NEVER TAKEN
            _Watchdog_First( header )->delta_interval -= units;       
            break;                                                    
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
            _Watchdog_First( header )->delta_interval = 1;            
 80092f0:	34 10 00 01 	mvi r16,1                                      
                                                                      
            _ISR_Enable( level );                                     
                                                                      
            _Watchdog_Tickle( header );                               
                                                                      
            _ISR_Disable( level );                                    
 80092f4:	34 0f ff fe 	mvi r15,-2                                     
          if ( units < _Watchdog_First( header )->delta_interval ) {  
            _Watchdog_First( header )->delta_interval -= units;       
            break;                                                    
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
            _Watchdog_First( header )->delta_interval = 1;            
 80092f8:	58 30 00 10 	sw (r1+16),r16                                 
                                                                      
            _ISR_Enable( level );                                     
 80092fc:	d0 03 00 00 	wcsr IE,r3                                     
                                                                      
            _Watchdog_Tickle( header );                               
 8009300:	b9 80 08 00 	mv r1,r12                                      
 8009304:	f8 00 00 b2 	calli 80095cc <_Watchdog_Tickle>               
                                                                      
            _ISR_Disable( level );                                    
 8009308:	90 00 10 00 	rcsr r2,IE                                     
 800930c:	a0 4f 08 00 	and r1,r2,r15                                  
 8009310:	d0 01 00 00 	wcsr IE,r1                                     
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
                                                                      
}                                                                     
 8009314:	29 84 00 00 	lw r4,(r12+0)                                  
        while ( units ) {                                             
          if ( units < _Watchdog_First( header )->delta_interval ) {  
            _Watchdog_First( header )->delta_interval -= units;       
            break;                                                    
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
 8009318:	c9 6d 58 00 	sub r11,r11,r13                                
                                                                      
            _ISR_Enable( level );                                     
                                                                      
            _Watchdog_Tickle( header );                               
                                                                      
            _ISR_Disable( level );                                    
 800931c:	b8 40 18 00 	mv r3,r2                                       
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First(               
  Chain_Control *header                                               
)                                                                     
{                                                                     
                                                                      
  return ( (Watchdog_Control *) _Chain_First( header ) );             
 8009320:	b8 80 08 00 	mv r1,r4                                       
                                                                      
            if ( _Chain_Is_empty( header ) )                          
 8009324:	45 c4 00 08 	be r14,r4,8009344 <_Watchdog_Adjust+0xf0>      
    switch ( direction ) {                                            
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
 8009328:	45 60 00 07 	be r11,r0,8009344 <_Watchdog_Adjust+0xf0>      <== NEVER TAKEN
          if ( units < _Watchdog_First( header )->delta_interval ) {  
 800932c:	28 2d 00 10 	lw r13,(r1+16)                                 
 8009330:	51 6d ff f2 	bgeu r11,r13,80092f8 <_Watchdog_Adjust+0xa4>   
                                                                      
            _ISR_Enable( level );                                     
                                                                      
            _Watchdog_Tickle( header );                               
                                                                      
            _ISR_Disable( level );                                    
 8009334:	b8 40 20 00 	mv r4,r2                                       
        _Watchdog_First( header )->delta_interval += units;           
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
          if ( units < _Watchdog_First( header )->delta_interval ) {  
            _Watchdog_First( header )->delta_interval -= units;       
 8009338:	c9 ab 58 00 	sub r11,r13,r11                                
 800933c:	58 2b 00 10 	sw (r1+16),r11                                 
            break;                                                    
 8009340:	e3 ff ff da 	bi 80092a8 <_Watchdog_Adjust+0x54>             
                                                                      
            _ISR_Enable( level );                                     
                                                                      
            _Watchdog_Tickle( header );                               
                                                                      
            _ISR_Disable( level );                                    
 8009344:	b8 40 20 00 	mv r4,r2                                       
 8009348:	e3 ff ff d8 	bi 80092a8 <_Watchdog_Adjust+0x54>             
                                                                      

08006bbc <_Watchdog_Insert>: void _Watchdog_Insert( Chain_Control *header, Watchdog_Control *the_watchdog ) {
 8006bbc:	37 9c ff f8 	addi sp,sp,-8                                  
 8006bc0:	5b 8b 00 08 	sw (sp+8),r11                                  
 8006bc4:	5b 8c 00 04 	sw (sp+4),r12                                  
  Watchdog_Control  *after;                                           
  uint32_t           insert_isr_nest_level;                           
  Watchdog_Interval  delta_interval;                                  
                                                                      
                                                                      
  insert_isr_nest_level   = _ISR_Nest_level;                          
 8006bc8:	78 03 08 01 	mvhi r3,0x801                                  
 8006bcc:	38 63 3a 28 	ori r3,r3,0x3a28                               
 8006bd0:	28 69 00 08 	lw r9,(r3+8)                                   
                                                                      
  _ISR_Disable( level );                                              
 8006bd4:	90 00 30 00 	rcsr r6,IE                                     
 8006bd8:	34 08 ff fe 	mvi r8,-2                                      
 8006bdc:	a0 c8 40 00 	and r8,r6,r8                                   
 8006be0:	d0 08 00 00 	wcsr IE,r8                                     
  /*                                                                  
   *  Check to see if the watchdog has just been inserted by a        
   *  higher priority interrupt.  If so, abandon this insert.         
   */                                                                 
                                                                      
  if ( the_watchdog->state != WATCHDOG_INACTIVE ) {                   
 8006be4:	28 43 00 08 	lw r3,(r2+8)                                   
 8006be8:	5c 60 00 3f 	bne r3,r0,8006ce4 <_Watchdog_Insert+0x128>     
    _ISR_Enable( level );                                             
    return;                                                           
  }                                                                   
                                                                      
  the_watchdog->state = WATCHDOG_BEING_INSERTED;                      
  _Watchdog_Sync_count++;                                             
 8006bec:	78 0c 08 01 	mvhi r12,0x801                                 
 8006bf0:	39 8c 39 94 	ori r12,r12,0x3994                             
 8006bf4:	29 83 00 00 	lw r3,(r12+0)                                  
 8006bf8:	78 07 08 01 	mvhi r7,0x801                                  
  if ( the_watchdog->state != WATCHDOG_INACTIVE ) {                   
    _ISR_Enable( level );                                             
    return;                                                           
  }                                                                   
                                                                      
  the_watchdog->state = WATCHDOG_BEING_INSERTED;                      
 8006bfc:	34 04 00 01 	mvi r4,1                                       
  _Watchdog_Sync_count++;                                             
 8006c00:	34 63 00 01 	addi r3,r3,1                                   
  if ( the_watchdog->state != WATCHDOG_INACTIVE ) {                   
    _ISR_Enable( level );                                             
    return;                                                           
  }                                                                   
                                                                      
  the_watchdog->state = WATCHDOG_BEING_INSERTED;                      
 8006c04:	58 44 00 08 	sw (r2+8),r4                                   
  _Watchdog_Sync_count++;                                             
 8006c08:	59 83 00 00 	sw (r12+0),r3                                  
 8006c0c:	38 e7 39 2c 	ori r7,r7,0x392c                               
                                                                      
     delta_interval -= after->delta_interval;                         
                                                                      
     _ISR_Flash( level );                                             
                                                                      
     if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {          
 8006c10:	34 0a 00 01 	mvi r10,1                                      
                                                                      
  the_watchdog->state = WATCHDOG_BEING_INSERTED;                      
  _Watchdog_Sync_count++;                                             
                                                                      
restart:                                                              
  delta_interval = the_watchdog->initial;                             
 8006c14:	28 44 00 0c 	lw r4,(r2+12)                                  
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First(               
  Chain_Control *header                                               
)                                                                     
{                                                                     
                                                                      
  return ( (Watchdog_Control *) _Chain_First( header ) );             
 8006c18:	28 23 00 00 	lw r3,(r1+0)                                   
                                                                      
  for ( after = _Watchdog_First( header ) ;                           
        ;                                                             
        after = _Watchdog_Next( after ) ) {                           
                                                                      
     if ( delta_interval == 0 || !_Watchdog_Next( after ) )           
 8006c1c:	44 80 00 14 	be r4,r0,8006c6c <_Watchdog_Insert+0xb0>       
 8006c20:	28 65 00 00 	lw r5,(r3+0)                                   
 8006c24:	44 a0 00 12 	be r5,r0,8006c6c <_Watchdog_Insert+0xb0>       
       break;                                                         
                                                                      
     if ( delta_interval < after->delta_interval ) {                  
 8006c28:	28 65 00 10 	lw r5,(r3+16)                                  
 8006c2c:	54 a4 00 0e 	bgu r5,r4,8006c64 <_Watchdog_Insert+0xa8>      
       break;                                                         
     }                                                                
                                                                      
     delta_interval -= after->delta_interval;                         
                                                                      
     _ISR_Flash( level );                                             
 8006c30:	d0 06 00 00 	wcsr IE,r6                                     
 8006c34:	d0 08 00 00 	wcsr IE,r8                                     
                                                                      
     if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {          
 8006c38:	28 4b 00 08 	lw r11,(r2+8)                                  
 8006c3c:	5d 6a 00 19 	bne r11,r10,8006ca0 <_Watchdog_Insert+0xe4>    
       goto exit_insert;                                              
     }                                                                
                                                                      
     if ( _Watchdog_Sync_level > insert_isr_nest_level ) {            
 8006c40:	28 eb 00 00 	lw r11,(r7+0)                                  
 8006c44:	55 69 00 2d 	bgu r11,r9,8006cf8 <_Watchdog_Insert+0x13c>    
     if ( delta_interval < after->delta_interval ) {                  
       after->delta_interval -= delta_interval;                       
       break;                                                         
     }                                                                
                                                                      
     delta_interval -= after->delta_interval;                         
 8006c48:	c8 85 20 00 	sub r4,r4,r5                                   
                                                                      
exit_insert:                                                          
  _Watchdog_Sync_level = insert_isr_nest_level;                       
  _Watchdog_Sync_count--;                                             
  _ISR_Enable( level );                                               
}                                                                     
 8006c4c:	28 63 00 00 	lw r3,(r3+0)                                   
                                                                      
  for ( after = _Watchdog_First( header ) ;                           
        ;                                                             
        after = _Watchdog_Next( after ) ) {                           
                                                                      
     if ( delta_interval == 0 || !_Watchdog_Next( after ) )           
 8006c50:	44 80 00 07 	be r4,r0,8006c6c <_Watchdog_Insert+0xb0>       
 8006c54:	28 65 00 00 	lw r5,(r3+0)                                   
 8006c58:	44 a0 00 05 	be r5,r0,8006c6c <_Watchdog_Insert+0xb0>       
       break;                                                         
                                                                      
     if ( delta_interval < after->delta_interval ) {                  
 8006c5c:	28 65 00 10 	lw r5,(r3+16)                                  
 8006c60:	50 85 00 19 	bgeu r4,r5,8006cc4 <_Watchdog_Insert+0x108>    
       after->delta_interval -= delta_interval;                       
 8006c64:	c8 a4 28 00 	sub r5,r5,r4                                   
 8006c68:	58 65 00 10 	sw (r3+16),r5                                  
                                                                      
  _Watchdog_Activate( the_watchdog );                                 
                                                                      
  the_watchdog->delta_interval = delta_interval;                      
                                                                      
  _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node );
 8006c6c:	28 63 00 04 	lw r3,(r3+4)                                   
                                                                      
  the_watchdog->start_time = _Watchdog_Ticks_since_boot;              
 8006c70:	78 01 08 01 	mvhi r1,0x801                                  
 8006c74:	38 21 39 98 	ori r1,r1,0x3998                               
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
 8006c78:	28 65 00 00 	lw r5,(r3+0)                                   
 8006c7c:	28 28 00 00 	lw r8,(r1+0)                                   
RTEMS_INLINE_ROUTINE void _Watchdog_Activate(                         
  Watchdog_Control *the_watchdog                                      
)                                                                     
{                                                                     
                                                                      
  the_watchdog->state = WATCHDOG_ACTIVE;                              
 8006c80:	34 01 00 02 	mvi r1,2                                       
 8006c84:	58 41 00 08 	sw (r2+8),r1                                   
     }                                                                
  }                                                                   
                                                                      
  _Watchdog_Activate( the_watchdog );                                 
                                                                      
  the_watchdog->delta_interval = delta_interval;                      
 8006c88:	58 44 00 10 	sw (r2+16),r4                                  
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
 8006c8c:	58 43 00 04 	sw (r2+4),r3                                   
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
 8006c90:	58 62 00 00 	sw (r3+0),r2                                   
  the_node->next        = before_node;                                
  before_node->previous = the_node;                                   
 8006c94:	58 a2 00 04 	sw (r5+4),r2                                   
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
  the_node->next        = before_node;                                
 8006c98:	58 45 00 00 	sw (r2+0),r5                                   
                                                                      
  _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node );
                                                                      
  the_watchdog->start_time = _Watchdog_Ticks_since_boot;              
 8006c9c:	58 48 00 14 	sw (r2+20),r8                                  
                                                                      
exit_insert:                                                          
  _Watchdog_Sync_level = insert_isr_nest_level;                       
 8006ca0:	58 e9 00 00 	sw (r7+0),r9                                   
  _Watchdog_Sync_count--;                                             
 8006ca4:	29 81 00 00 	lw r1,(r12+0)                                  
 8006ca8:	34 21 ff ff 	addi r1,r1,-1                                  
 8006cac:	59 81 00 00 	sw (r12+0),r1                                  
  _ISR_Enable( level );                                               
 8006cb0:	d0 06 00 00 	wcsr IE,r6                                     
}                                                                     
 8006cb4:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8006cb8:	2b 8c 00 04 	lw r12,(sp+4)                                  
 8006cbc:	37 9c 00 08 	addi sp,sp,8                                   
 8006cc0:	c3 a0 00 00 	ret                                            
       break;                                                         
     }                                                                
                                                                      
     delta_interval -= after->delta_interval;                         
                                                                      
     _ISR_Flash( level );                                             
 8006cc4:	d0 06 00 00 	wcsr IE,r6                                     
 8006cc8:	d0 08 00 00 	wcsr IE,r8                                     
                                                                      
     if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {          
 8006ccc:	28 4b 00 08 	lw r11,(r2+8)                                  
     if ( delta_interval < after->delta_interval ) {                  
       after->delta_interval -= delta_interval;                       
       break;                                                         
     }                                                                
                                                                      
     delta_interval -= after->delta_interval;                         
 8006cd0:	c8 85 20 00 	sub r4,r4,r5                                   
                                                                      
     _ISR_Flash( level );                                             
                                                                      
     if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {          
 8006cd4:	5d 6a ff f3 	bne r11,r10,8006ca0 <_Watchdog_Insert+0xe4>    <== NEVER TAKEN
       goto exit_insert;                                              
     }                                                                
                                                                      
     if ( _Watchdog_Sync_level > insert_isr_nest_level ) {            
 8006cd8:	28 e5 00 00 	lw r5,(r7+0)                                   
 8006cdc:	54 a9 00 07 	bgu r5,r9,8006cf8 <_Watchdog_Insert+0x13c>     <== NEVER TAKEN
 8006ce0:	e3 ff ff db 	bi 8006c4c <_Watchdog_Insert+0x90>             
   *  Check to see if the watchdog has just been inserted by a        
   *  higher priority interrupt.  If so, abandon this insert.         
   */                                                                 
                                                                      
  if ( the_watchdog->state != WATCHDOG_INACTIVE ) {                   
    _ISR_Enable( level );                                             
 8006ce4:	d0 06 00 00 	wcsr IE,r6                                     
                                                                      
exit_insert:                                                          
  _Watchdog_Sync_level = insert_isr_nest_level;                       
  _Watchdog_Sync_count--;                                             
  _ISR_Enable( level );                                               
}                                                                     
 8006ce8:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8006cec:	2b 8c 00 04 	lw r12,(sp+4)                                  
 8006cf0:	37 9c 00 08 	addi sp,sp,8                                   
 8006cf4:	c3 a0 00 00 	ret                                            
     if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {          
       goto exit_insert;                                              
     }                                                                
                                                                      
     if ( _Watchdog_Sync_level > insert_isr_nest_level ) {            
       _Watchdog_Sync_level = insert_isr_nest_level;                  
 8006cf8:	58 e9 00 00 	sw (r7+0),r9                                   
       goto restart;                                                  
 8006cfc:	e3 ff ff c6 	bi 8006c14 <_Watchdog_Insert+0x58>             
                                                                      

08006d68 <_Watchdog_Remove>: { ISR_Level level; Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level );
 8006d68:	90 00 20 00 	rcsr r4,IE                                     
 8006d6c:	34 02 ff fe 	mvi r2,-2                                      
 8006d70:	a0 82 10 00 	and r2,r4,r2                                   
 8006d74:	d0 02 00 00 	wcsr IE,r2                                     
  previous_state = the_watchdog->state;                               
 8006d78:	28 22 00 08 	lw r2,(r1+8)                                   
  switch ( previous_state ) {                                         
 8006d7c:	34 03 00 01 	mvi r3,1                                       
 8006d80:	44 43 00 27 	be r2,r3,8006e1c <_Watchdog_Remove+0xb4>       
 8006d84:	5c 40 00 08 	bne r2,r0,8006da4 <_Watchdog_Remove+0x3c>      
        _Watchdog_Sync_level = _ISR_Nest_level;                       
                                                                      
      _Chain_Extract_unprotected( &the_watchdog->Node );              
      break;                                                          
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
 8006d88:	78 03 08 01 	mvhi r3,0x801                                  
 8006d8c:	38 63 39 98 	ori r3,r3,0x3998                               
 8006d90:	28 63 00 00 	lw r3,(r3+0)                                   
 8006d94:	58 23 00 18 	sw (r1+24),r3                                  
                                                                      
  _ISR_Enable( level );                                               
 8006d98:	d0 04 00 00 	wcsr IE,r4                                     
  return( previous_state );                                           
}                                                                     
 8006d9c:	b8 40 08 00 	mv r1,r2                                       
 8006da0:	c3 a0 00 00 	ret                                            
  Watchdog_States   previous_state;                                   
  Watchdog_Control *next_watchdog;                                    
                                                                      
  _ISR_Disable( level );                                              
  previous_state = the_watchdog->state;                               
  switch ( previous_state ) {                                         
 8006da4:	34 03 00 03 	mvi r3,3                                       
 8006da8:	54 43 ff f8 	bgu r2,r3,8006d88 <_Watchdog_Remove+0x20>      <== NEVER TAKEN
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
                                                                      
  _ISR_Enable( level );                                               
  return( previous_state );                                           
}                                                                     
 8006dac:	28 23 00 00 	lw r3,(r1+0)                                   
      break;                                                          
                                                                      
    case WATCHDOG_ACTIVE:                                             
    case WATCHDOG_REMOVE_IT:                                          
                                                                      
      the_watchdog->state = WATCHDOG_INACTIVE;                        
 8006db0:	58 20 00 08 	sw (r1+8),r0                                   
      next_watchdog = _Watchdog_Next( the_watchdog );                 
                                                                      
      if ( _Watchdog_Next(next_watchdog) )                            
 8006db4:	28 65 00 00 	lw r5,(r3+0)                                   
 8006db8:	44 a0 00 05 	be r5,r0,8006dcc <_Watchdog_Remove+0x64>       
        next_watchdog->delta_interval += the_watchdog->delta_interval;
 8006dbc:	28 66 00 10 	lw r6,(r3+16)                                  
 8006dc0:	28 25 00 10 	lw r5,(r1+16)                                  
 8006dc4:	b4 c5 28 00 	add r5,r6,r5                                   
 8006dc8:	58 65 00 10 	sw (r3+16),r5                                  
                                                                      
      if ( _Watchdog_Sync_count )                                     
 8006dcc:	78 05 08 01 	mvhi r5,0x801                                  
 8006dd0:	38 a5 39 94 	ori r5,r5,0x3994                               
 8006dd4:	28 a5 00 00 	lw r5,(r5+0)                                   
 8006dd8:	44 a0 00 07 	be r5,r0,8006df4 <_Watchdog_Remove+0x8c>       
        _Watchdog_Sync_level = _ISR_Nest_level;                       
 8006ddc:	78 05 08 01 	mvhi r5,0x801                                  
 8006de0:	38 a5 3a 28 	ori r5,r5,0x3a28                               
 8006de4:	28 a6 00 08 	lw r6,(r5+8)                                   
 8006de8:	78 05 08 01 	mvhi r5,0x801                                  
 8006dec:	38 a5 39 2c 	ori r5,r5,0x392c                               
 8006df0:	58 a6 00 00 	sw (r5+0),r6                                   
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
 8006df4:	28 25 00 04 	lw r5,(r1+4)                                   
  next->previous = previous;                                          
 8006df8:	58 65 00 04 	sw (r3+4),r5                                   
  previous->next = next;                                              
 8006dfc:	58 a3 00 00 	sw (r5+0),r3                                   
                                                                      
      _Chain_Extract_unprotected( &the_watchdog->Node );              
      break;                                                          
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
 8006e00:	78 03 08 01 	mvhi r3,0x801                                  
 8006e04:	38 63 39 98 	ori r3,r3,0x3998                               
 8006e08:	28 63 00 00 	lw r3,(r3+0)                                   
 8006e0c:	58 23 00 18 	sw (r1+24),r3                                  
                                                                      
  _ISR_Enable( level );                                               
 8006e10:	d0 04 00 00 	wcsr IE,r4                                     
  return( previous_state );                                           
}                                                                     
 8006e14:	b8 40 08 00 	mv r1,r2                                       
 8006e18:	c3 a0 00 00 	ret                                            
        _Watchdog_Sync_level = _ISR_Nest_level;                       
                                                                      
      _Chain_Extract_unprotected( &the_watchdog->Node );              
      break;                                                          
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
 8006e1c:	78 03 08 01 	mvhi r3,0x801                                  
 8006e20:	38 63 39 98 	ori r3,r3,0x3998                               
 8006e24:	28 63 00 00 	lw r3,(r3+0)                                   
                                                                      
      /*                                                              
       *  It is not actually on the chain so just change the state and
       *  the Insert operation we interrupted will be aborted.        
       */                                                             
      the_watchdog->state = WATCHDOG_INACTIVE;                        
 8006e28:	58 20 00 08 	sw (r1+8),r0                                   
        _Watchdog_Sync_level = _ISR_Nest_level;                       
                                                                      
      _Chain_Extract_unprotected( &the_watchdog->Node );              
      break;                                                          
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
 8006e2c:	58 23 00 18 	sw (r1+24),r3                                  
                                                                      
  _ISR_Enable( level );                                               
 8006e30:	d0 04 00 00 	wcsr IE,r4                                     
  return( previous_state );                                           
}                                                                     
 8006e34:	b8 40 08 00 	mv r1,r2                                       
 8006e38:	c3 a0 00 00 	ret                                            
                                                                      

08008980 <_Watchdog_Report_chain>: void _Watchdog_Report_chain( const char *name, Chain_Control *header ) {
 8008980:	37 9c ff ec 	addi sp,sp,-20                                 
 8008984:	5b 8b 00 14 	sw (sp+20),r11                                 
 8008988:	5b 8c 00 10 	sw (sp+16),r12                                 
 800898c:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8008990:	5b 8e 00 08 	sw (sp+8),r14                                  
 8008994:	5b 9d 00 04 	sw (sp+4),ra                                   
 8008998:	b8 20 70 00 	mv r14,r1                                      
 800899c:	b8 40 60 00 	mv r12,r2                                      
  ISR_Level          level;                                           
  Chain_Node        *node;                                            
                                                                      
  _ISR_Disable( level );                                              
 80089a0:	90 00 68 00 	rcsr r13,IE                                    
 80089a4:	34 01 ff fe 	mvi r1,-2                                      
 80089a8:	a1 a1 08 00 	and r1,r13,r1                                  
 80089ac:	d0 01 00 00 	wcsr IE,r1                                     
    printk( "Watchdog Chain: %s %p\n", name, header );                
 80089b0:	78 01 08 01 	mvhi r1,0x801                                  
 80089b4:	b9 80 18 00 	mv r3,r12                                      
 80089b8:	38 21 db f4 	ori r1,r1,0xdbf4                               
 80089bc:	b9 c0 10 00 	mv r2,r14                                      
 80089c0:	fb ff ea f4 	calli 8003590 <printk>                         
      printk( "== end of %s \n", name );                              
    } else {                                                          
      printk( "Chain is empty\n" );                                   
    }                                                                 
  _ISR_Enable( level );                                               
}                                                                     
 80089c4:	29 8b 00 00 	lw r11,(r12+0)                                 
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 80089c8:	35 8c 00 04 	addi r12,r12,4                                 
  ISR_Level          level;                                           
  Chain_Node        *node;                                            
                                                                      
  _ISR_Disable( level );                                              
    printk( "Watchdog Chain: %s %p\n", name, header );                
    if ( !_Chain_Is_empty( header ) ) {                               
 80089cc:	45 6c 00 12 	be r11,r12,8008a14 <_Watchdog_Report_chain+0x94>
            node != _Chain_Tail(header) ;                             
            node = node->next )                                       
      {                                                               
        Watchdog_Control *watch = (Watchdog_Control *) node;          
                                                                      
        _Watchdog_Report( NULL, watch );                              
 80089d0:	b9 60 10 00 	mv r2,r11                                      
 80089d4:	34 01 00 00 	mvi r1,0                                       
 80089d8:	f8 00 00 13 	calli 8008a24 <_Watchdog_Report>               
  _ISR_Disable( level );                                              
    printk( "Watchdog Chain: %s %p\n", name, header );                
    if ( !_Chain_Is_empty( header ) ) {                               
      for ( node = _Chain_First( header ) ;                           
            node != _Chain_Tail(header) ;                             
            node = node->next )                                       
 80089dc:	29 6b 00 00 	lw r11,(r11+0)                                 
  Chain_Node        *node;                                            
                                                                      
  _ISR_Disable( level );                                              
    printk( "Watchdog Chain: %s %p\n", name, header );                
    if ( !_Chain_Is_empty( header ) ) {                               
      for ( node = _Chain_First( header ) ;                           
 80089e0:	5d 6c ff fc 	bne r11,r12,80089d0 <_Watchdog_Report_chain+0x50><== NEVER TAKEN
      {                                                               
        Watchdog_Control *watch = (Watchdog_Control *) node;          
                                                                      
        _Watchdog_Report( NULL, watch );                              
      }                                                               
      printk( "== end of %s \n", name );                              
 80089e4:	78 01 08 01 	mvhi r1,0x801                                  
 80089e8:	38 21 dc 0c 	ori r1,r1,0xdc0c                               
 80089ec:	b9 c0 10 00 	mv r2,r14                                      
 80089f0:	fb ff ea e8 	calli 8003590 <printk>                         
    } else {                                                          
      printk( "Chain is empty\n" );                                   
    }                                                                 
  _ISR_Enable( level );                                               
 80089f4:	d0 0d 00 00 	wcsr IE,r13                                    
}                                                                     
 80089f8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80089fc:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8008a00:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8008a04:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8008a08:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8008a0c:	37 9c 00 14 	addi sp,sp,20                                  
 8008a10:	c3 a0 00 00 	ret                                            
                                                                      
        _Watchdog_Report( NULL, watch );                              
      }                                                               
      printk( "== end of %s \n", name );                              
    } else {                                                          
      printk( "Chain is empty\n" );                                   
 8008a14:	78 01 08 01 	mvhi r1,0x801                                  
 8008a18:	38 21 dc 1c 	ori r1,r1,0xdc1c                               
 8008a1c:	fb ff ea dd 	calli 8003590 <printk>                         
 8008a20:	e3 ff ff f5 	bi 80089f4 <_Watchdog_Report_chain+0x74>       
                                                                      

08006e3c <_Watchdog_Tickle>: */ void _Watchdog_Tickle( Chain_Control *header ) {
 8006e3c:	37 9c ff e4 	addi sp,sp,-28                                 
 8006e40:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8006e44:	5b 8c 00 18 	sw (sp+24),r12                                 
 8006e48:	5b 8d 00 14 	sw (sp+20),r13                                 
 8006e4c:	5b 8e 00 10 	sw (sp+16),r14                                 
 8006e50:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8006e54:	5b 90 00 08 	sw (sp+8),r16                                  
 8006e58:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006e5c:	b8 20 60 00 	mv r12,r1                                      
   * See the comment in watchdoginsert.c and watchdogadjust.c         
   * about why it's safe not to declare header a pointer to           
   * volatile data - till, 2003/7                                     
   */                                                                 
                                                                      
  _ISR_Disable( level );                                              
 8006e60:	90 00 68 00 	rcsr r13,IE                                    
 8006e64:	34 01 ff fe 	mvi r1,-2                                      
 8006e68:	a1 a1 08 00 	and r1,r13,r1                                  
 8006e6c:	d0 01 00 00 	wcsr IE,r1                                     
   } while ( !_Chain_Is_empty( header ) &&                            
             (the_watchdog->delta_interval == 0) );                   
                                                                      
leave:                                                                
   _ISR_Enable(level);                                                
}                                                                     
 8006e70:	29 8b 00 00 	lw r11,(r12+0)                                 
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 8006e74:	35 8e 00 04 	addi r14,r12,4                                 
   * See the comment in watchdoginsert.c and watchdogadjust.c         
   * about why it's safe not to declare header a pointer to           
   * volatile data - till, 2003/7                                     
   */                                                                 
                                                                      
  _ISR_Disable( level );                                              
 8006e78:	b9 a0 10 00 	mv r2,r13                                      
                                                                      
  if ( _Chain_Is_empty( header ) )                                    
 8006e7c:	45 6e 00 1e 	be r11,r14,8006ef4 <_Watchdog_Tickle+0xb8>     
   * to be inserted has already had its delta_interval adjusted to 0, and
   * so is added to the head of the chain with a delta_interval of 0. 
   *                                                                  
   * Steven Johnson - 12/2005 (gcc-3.2.3 -O3 on powerpc)              
   */                                                                 
  if (the_watchdog->delta_interval != 0) {                            
 8006e80:	29 61 00 10 	lw r1,(r11+16)                                 
 8006e84:	5c 20 00 26 	bne r1,r0,8006f1c <_Watchdog_Tickle+0xe0>      
  do {                                                                
     watchdog_state = _Watchdog_Remove( the_watchdog );               
                                                                      
     _ISR_Enable( level );                                            
                                                                      
     switch( watchdog_state ) {                                       
 8006e88:	34 10 00 02 	mvi r16,2                                      
                                                                      
       case WATCHDOG_REMOVE_IT:                                       
         break;                                                       
     }                                                                
                                                                      
     _ISR_Disable( level );                                           
 8006e8c:	34 0f ff fe 	mvi r15,-2                                     
 8006e90:	e0 00 00 0a 	bi 8006eb8 <_Watchdog_Tickle+0x7c>             
 8006e94:	90 00 10 00 	rcsr r2,IE                                     <== NOT EXECUTED
 8006e98:	a0 4f 08 00 	and r1,r2,r15                                  <== NOT EXECUTED
 8006e9c:	d0 01 00 00 	wcsr IE,r1                                     <== NOT EXECUTED
   } while ( !_Chain_Is_empty( header ) &&                            
             (the_watchdog->delta_interval == 0) );                   
                                                                      
leave:                                                                
   _ISR_Enable(level);                                                
}                                                                     
 8006ea0:	29 81 00 00 	lw r1,(r12+0)                                  <== NOT EXECUTED
                                                                      
       case WATCHDOG_REMOVE_IT:                                       
         break;                                                       
     }                                                                
                                                                      
     _ISR_Disable( level );                                           
 8006ea4:	b8 40 68 00 	mv r13,r2                                      <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First(               
  Chain_Control *header                                               
)                                                                     
{                                                                     
                                                                      
  return ( (Watchdog_Control *) _Chain_First( header ) );             
 8006ea8:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
                                                                      
     the_watchdog = _Watchdog_First( header );                        
   } while ( !_Chain_Is_empty( header ) &&                            
             (the_watchdog->delta_interval == 0) );                   
 8006eac:	44 2e 00 12 	be r1,r14,8006ef4 <_Watchdog_Tickle+0xb8>      <== NOT EXECUTED
     }                                                                
                                                                      
     _ISR_Disable( level );                                           
                                                                      
     the_watchdog = _Watchdog_First( header );                        
   } while ( !_Chain_Is_empty( header ) &&                            
 8006eb0:	28 21 00 10 	lw r1,(r1+16)                                  
 8006eb4:	5c 20 00 10 	bne r1,r0,8006ef4 <_Watchdog_Tickle+0xb8>      
    if ( the_watchdog->delta_interval != 0 )                          
      goto leave;                                                     
  }                                                                   
                                                                      
  do {                                                                
     watchdog_state = _Watchdog_Remove( the_watchdog );               
 8006eb8:	b9 60 08 00 	mv r1,r11                                      
 8006ebc:	fb ff ff ab 	calli 8006d68 <_Watchdog_Remove>               
                                                                      
     _ISR_Enable( level );                                            
 8006ec0:	d0 0d 00 00 	wcsr IE,r13                                    
                                                                      
     switch( watchdog_state ) {                                       
 8006ec4:	5c 30 ff f4 	bne r1,r16,8006e94 <_Watchdog_Tickle+0x58>     <== NEVER TAKEN
       case WATCHDOG_ACTIVE:                                          
         (*the_watchdog->routine)(                                    
 8006ec8:	29 63 00 1c 	lw r3,(r11+28)                                 
 8006ecc:	29 61 00 20 	lw r1,(r11+32)                                 
 8006ed0:	29 62 00 24 	lw r2,(r11+36)                                 
 8006ed4:	d8 60 00 00 	call r3                                        
                                                                      
       case WATCHDOG_REMOVE_IT:                                       
         break;                                                       
     }                                                                
                                                                      
     _ISR_Disable( level );                                           
 8006ed8:	90 00 10 00 	rcsr r2,IE                                     
 8006edc:	a0 4f 08 00 	and r1,r2,r15                                  
 8006ee0:	d0 01 00 00 	wcsr IE,r1                                     
   } while ( !_Chain_Is_empty( header ) &&                            
             (the_watchdog->delta_interval == 0) );                   
                                                                      
leave:                                                                
   _ISR_Enable(level);                                                
}                                                                     
 8006ee4:	29 81 00 00 	lw r1,(r12+0)                                  
                                                                      
       case WATCHDOG_REMOVE_IT:                                       
         break;                                                       
     }                                                                
                                                                      
     _ISR_Disable( level );                                           
 8006ee8:	b8 40 68 00 	mv r13,r2                                      
 8006eec:	b8 20 58 00 	mv r11,r1                                      
                                                                      
     the_watchdog = _Watchdog_First( header );                        
   } while ( !_Chain_Is_empty( header ) &&                            
             (the_watchdog->delta_interval == 0) );                   
 8006ef0:	5c 2e ff f0 	bne r1,r14,8006eb0 <_Watchdog_Tickle+0x74>     
                                                                      
leave:                                                                
   _ISR_Enable(level);                                                
 8006ef4:	d0 02 00 00 	wcsr IE,r2                                     
}                                                                     
 8006ef8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006efc:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8006f00:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8006f04:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8006f08:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8006f0c:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8006f10:	2b 90 00 08 	lw r16,(sp+8)                                  
 8006f14:	37 9c 00 1c 	addi sp,sp,28                                  
 8006f18:	c3 a0 00 00 	ret                                            
   * so is added to the head of the chain with a delta_interval of 0. 
   *                                                                  
   * Steven Johnson - 12/2005 (gcc-3.2.3 -O3 on powerpc)              
   */                                                                 
  if (the_watchdog->delta_interval != 0) {                            
    the_watchdog->delta_interval--;                                   
 8006f1c:	34 21 ff ff 	addi r1,r1,-1                                  
 8006f20:	59 61 00 10 	sw (r11+16),r1                                 
    if ( the_watchdog->delta_interval != 0 )                          
 8006f24:	44 20 ff d9 	be r1,r0,8006e88 <_Watchdog_Tickle+0x4c>       
 8006f28:	e3 ff ff f3 	bi 8006ef4 <_Watchdog_Tickle+0xb8>             
                                                                      

08003c80 <rtems_chain_get_with_wait>: rtems_chain_control *chain, rtems_event_set events, rtems_interval timeout, rtems_chain_node **node_ptr ) {
 8003c80:	37 9c ff e4 	addi sp,sp,-28                                 
 8003c84:	5b 8b 00 18 	sw (sp+24),r11                                 
 8003c88:	5b 8c 00 14 	sw (sp+20),r12                                 
 8003c8c:	5b 8d 00 10 	sw (sp+16),r13                                 
 8003c90:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8003c94:	5b 8f 00 08 	sw (sp+8),r15                                  
 8003c98:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003c9c:	b8 20 70 00 	mv r14,r1                                      
 8003ca0:	b8 40 68 00 	mv r13,r2                                      
 8003ca4:	b8 60 60 00 	mv r12,r3                                      
 8003ca8:	b8 80 78 00 	mv r15,r4                                      
 */                                                                   
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(               
  rtems_chain_control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Get( the_chain );                                     
 8003cac:	b9 c0 08 00 	mv r1,r14                                      
 8003cb0:	f8 00 01 97 	calli 800430c <_Chain_Get>                     
 8003cb4:	b8 20 58 00 	mv r11,r1                                      
  while (                                                             
    sc == RTEMS_SUCCESSFUL                                            
      && (node = rtems_chain_get( chain )) == NULL                    
  ) {                                                                 
    rtems_event_set out;                                              
    sc = rtems_event_receive(                                         
 8003cb8:	34 02 00 00 	mvi r2,0                                       
 8003cbc:	b9 a0 08 00 	mv r1,r13                                      
 8003cc0:	b9 80 18 00 	mv r3,r12                                      
 8003cc4:	37 84 00 1c 	addi r4,sp,28                                  
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_chain_node *node = NULL;                                      
                                                                      
  while (                                                             
    sc == RTEMS_SUCCESSFUL                                            
      && (node = rtems_chain_get( chain )) == NULL                    
 8003cc8:	5d 60 00 0e 	bne r11,r0,8003d00 <rtems_chain_get_with_wait+0x80>
  ) {                                                                 
    rtems_event_set out;                                              
    sc = rtems_event_receive(                                         
 8003ccc:	fb ff fd 9e 	calli 8003344 <rtems_event_receive>            
 8003cd0:	b8 20 28 00 	mv r5,r1                                       
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_chain_node *node = NULL;                                      
                                                                      
  while (                                                             
 8003cd4:	44 2b ff f6 	be r1,r11,8003cac <rtems_chain_get_with_wait+0x2c><== NEVER TAKEN
  }                                                                   
                                                                      
  *node_ptr = node;                                                   
                                                                      
  return sc;                                                          
}                                                                     
 8003cd8:	b8 a0 08 00 	mv r1,r5                                       
      timeout,                                                        
      &out                                                            
    );                                                                
  }                                                                   
                                                                      
  *node_ptr = node;                                                   
 8003cdc:	59 eb 00 00 	sw (r15+0),r11                                 
                                                                      
  return sc;                                                          
}                                                                     
 8003ce0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003ce4:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8003ce8:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8003cec:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8003cf0:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8003cf4:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8003cf8:	37 9c 00 1c 	addi sp,sp,28                                  
 8003cfc:	c3 a0 00 00 	ret                                            
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_chain_node *node = NULL;                                      
                                                                      
  while (                                                             
    sc == RTEMS_SUCCESSFUL                                            
      && (node = rtems_chain_get( chain )) == NULL                    
 8003d00:	34 05 00 00 	mvi r5,0                                       
 8003d04:	e3 ff ff f5 	bi 8003cd8 <rtems_chain_get_with_wait+0x58>    
                                                                      

080103c0 <rtems_clock_set_nanoseconds_extension>: * error code - if unsuccessful */ rtems_status_code rtems_clock_set_nanoseconds_extension( rtems_nanoseconds_extension_routine routine ) {
 80103c0:	b8 20 18 00 	mv r3,r1                                       
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
 80103c4:	34 01 00 09 	mvi r1,9                                       
 */                                                                   
rtems_status_code rtems_clock_set_nanoseconds_extension(              
  rtems_nanoseconds_extension_routine routine                         
)                                                                     
{                                                                     
  if ( !routine )                                                     
 80103c8:	44 60 00 05 	be r3,r0,80103dc <rtems_clock_set_nanoseconds_extension+0x1c><== ALWAYS TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  _Watchdog_Nanoseconds_since_tick_handler = routine;                 
 80103cc:	78 02 08 03 	mvhi r2,0x803                                  <== NOT EXECUTED
 80103d0:	38 42 a1 6c 	ori r2,r2,0xa16c                               <== NOT EXECUTED
 80103d4:	58 43 00 00 	sw (r2+0),r3                                   <== NOT EXECUTED
  return RTEMS_SUCCESSFUL;                                            
 80103d8:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
}                                                                     
 80103dc:	c3 a0 00 00 	ret                                            
                                                                      

08004984 <rtems_io_register_driver>: rtems_status_code rtems_io_register_driver( rtems_device_major_number major, const rtems_driver_address_table *driver_table, rtems_device_major_number *registered_major ) {
 8004984:	37 9c ff f8 	addi sp,sp,-8                                  
 8004988:	5b 8b 00 08 	sw (sp+8),r11                                  
 800498c:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_device_major_number major_limit = _IO_Number_of_drivers;      
                                                                      
  if ( rtems_interrupt_is_in_progress() )                             
 8004990:	78 04 08 01 	mvhi r4,0x801                                  
 8004994:	38 84 9a a8 	ori r4,r4,0x9aa8                               
 8004998:	28 85 00 08 	lw r5,(r4+8)                                   
  rtems_device_major_number         major,                            
  const rtems_driver_address_table *driver_table,                     
  rtems_device_major_number        *registered_major                  
)                                                                     
{                                                                     
  rtems_device_major_number major_limit = _IO_Number_of_drivers;      
 800499c:	78 04 08 01 	mvhi r4,0x801                                  
 80049a0:	38 84 9b 78 	ori r4,r4,0x9b78                               
rtems_status_code rtems_io_register_driver(                           
  rtems_device_major_number         major,                            
  const rtems_driver_address_table *driver_table,                     
  rtems_device_major_number        *registered_major                  
)                                                                     
{                                                                     
 80049a4:	b8 20 58 00 	mv r11,r1                                      
  rtems_device_major_number major_limit = _IO_Number_of_drivers;      
 80049a8:	28 86 00 00 	lw r6,(r4+0)                                   
                                                                      
  if ( rtems_interrupt_is_in_progress() )                             
    return RTEMS_CALLED_FROM_ISR;                                     
 80049ac:	34 01 00 12 	mvi r1,18                                      
  rtems_device_major_number        *registered_major                  
)                                                                     
{                                                                     
  rtems_device_major_number major_limit = _IO_Number_of_drivers;      
                                                                      
  if ( rtems_interrupt_is_in_progress() )                             
 80049b0:	5c a0 00 33 	bne r5,r0,8004a7c <rtems_io_register_driver+0xf8>
    return RTEMS_CALLED_FROM_ISR;                                     
                                                                      
  if ( registered_major == NULL )                                     
    return RTEMS_INVALID_ADDRESS;                                     
 80049b4:	34 01 00 09 	mvi r1,9                                       
  rtems_device_major_number major_limit = _IO_Number_of_drivers;      
                                                                      
  if ( rtems_interrupt_is_in_progress() )                             
    return RTEMS_CALLED_FROM_ISR;                                     
                                                                      
  if ( registered_major == NULL )                                     
 80049b8:	44 65 00 31 	be r3,r5,8004a7c <rtems_io_register_driver+0xf8>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  /* Set it to an invalid value */                                    
  *registered_major = major_limit;                                    
 80049bc:	58 66 00 00 	sw (r3+0),r6                                   
                                                                      
  if ( driver_table == NULL )                                         
 80049c0:	44 40 00 2f 	be r2,r0,8004a7c <rtems_io_register_driver+0xf8>
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
 80049c4:	28 45 00 00 	lw r5,(r2+0)                                   
 80049c8:	44 a0 00 42 	be r5,r0,8004ad0 <rtems_io_register_driver+0x14c>
                                                                      
  if ( rtems_io_is_empty_table( driver_table ) )                      
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( major >= major_limit )                                         
    return RTEMS_INVALID_NUMBER;                                      
 80049cc:	34 01 00 0a 	mvi r1,10                                      
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( rtems_io_is_empty_table( driver_table ) )                      
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( major >= major_limit )                                         
 80049d0:	51 66 00 2b 	bgeu r11,r6,8004a7c <rtems_io_register_driver+0xf8>
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
 80049d4:	78 01 08 01 	mvhi r1,0x801                                  
 80049d8:	38 21 99 08 	ori r1,r1,0x9908                               
 80049dc:	28 25 00 00 	lw r5,(r1+0)                                   
 80049e0:	34 a5 00 01 	addi r5,r5,1                                   
 80049e4:	58 25 00 00 	sw (r1+0),r5                                   
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( major == 0 ) {                                                 
 80049e8:	5d 60 00 29 	bne r11,r0,8004a8c <rtems_io_register_driver+0x108>
                                                                      
static rtems_status_code rtems_io_obtain_major_number(                
  rtems_device_major_number *major                                    
)                                                                     
{                                                                     
  rtems_device_major_number n = _IO_Number_of_drivers;                
 80049ec:	28 85 00 00 	lw r5,(r4+0)                                   
  rtems_device_major_number m = 0;                                    
                                                                      
  /* major is error checked by caller */                              
                                                                      
  for ( m = 0; m < n; ++m ) {                                         
 80049f0:	44 ab 00 3e 	be r5,r11,8004ae8 <rtems_io_register_driver+0x164><== NEVER TAKEN
 80049f4:	78 06 08 01 	mvhi r6,0x801                                  
 80049f8:	38 c6 9b 7c 	ori r6,r6,0x9b7c                               
 80049fc:	28 c1 00 00 	lw r1,(r6+0)                                   
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
 8004a00:	28 24 00 00 	lw r4,(r1+0)                                   
 8004a04:	44 80 00 36 	be r4,r0,8004adc <rtems_io_register_driver+0x158>
  rtems_device_major_number n = _IO_Number_of_drivers;                
  rtems_device_major_number m = 0;                                    
                                                                      
  /* major is error checked by caller */                              
                                                                      
  for ( m = 0; m < n; ++m ) {                                         
 8004a08:	35 6b 00 01 	addi r11,r11,1                                 
 8004a0c:	34 21 00 18 	addi r1,r1,24                                  
 8004a10:	54 ab ff fc 	bgu r5,r11,8004a00 <rtems_io_register_driver+0x7c>
    if ( rtems_io_is_empty_table( table ) )                           
      break;                                                          
  }                                                                   
                                                                      
  /* Assigns invalid value in case of failure */                      
  *major = m;                                                         
 8004a14:	58 6b 00 00 	sw (r3+0),r11                                  
                                                                      
  if ( m != n )                                                       
 8004a18:	44 ab 00 35 	be r5,r11,8004aec <rtems_io_register_driver+0x168>
 8004a1c:	b5 6b 08 00 	add r1,r11,r11                                 
 8004a20:	b4 2b 08 00 	add r1,r1,r11                                  
 8004a24:	b4 21 08 00 	add r1,r1,r1                                   
 8004a28:	b4 21 08 00 	add r1,r1,r1                                   
 8004a2c:	b4 21 08 00 	add r1,r1,r1                                   
    }                                                                 
                                                                      
    *registered_major = major;                                        
  }                                                                   
                                                                      
  _IO_Driver_address_table [major] = *driver_table;                   
 8004a30:	28 c3 00 00 	lw r3,(r6+0)                                   
 8004a34:	28 44 00 00 	lw r4,(r2+0)                                   
 8004a38:	b4 61 08 00 	add r1,r3,r1                                   
 8004a3c:	58 24 00 00 	sw (r1+0),r4                                   
 8004a40:	28 43 00 04 	lw r3,(r2+4)                                   
 8004a44:	58 23 00 04 	sw (r1+4),r3                                   
 8004a48:	28 43 00 08 	lw r3,(r2+8)                                   
 8004a4c:	58 23 00 08 	sw (r1+8),r3                                   
 8004a50:	28 43 00 0c 	lw r3,(r2+12)                                  
 8004a54:	58 23 00 0c 	sw (r1+12),r3                                  
 8004a58:	28 43 00 10 	lw r3,(r2+16)                                  
 8004a5c:	58 23 00 10 	sw (r1+16),r3                                  
 8004a60:	28 42 00 14 	lw r2,(r2+20)                                  
 8004a64:	58 22 00 14 	sw (r1+20),r2                                  
                                                                      
  _Thread_Enable_dispatch();                                          
 8004a68:	f8 00 08 bc 	calli 8006d58 <_Thread_Enable_dispatch>        
                                                                      
  return rtems_io_initialize( major, 0, NULL );                       
 8004a6c:	b9 60 08 00 	mv r1,r11                                      
 8004a70:	34 02 00 00 	mvi r2,0                                       
 8004a74:	34 03 00 00 	mvi r3,0                                       
 8004a78:	f8 00 25 cf 	calli 800e1b4 <rtems_io_initialize>            
}                                                                     
 8004a7c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004a80:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8004a84:	37 9c 00 08 	addi sp,sp,8                                   
 8004a88:	c3 a0 00 00 	ret                                            
      _Thread_Enable_dispatch();                                      
      return sc;                                                      
    }                                                                 
    major = *registered_major;                                        
  } else {                                                            
    rtems_driver_address_table *const table = _IO_Driver_address_table + major;
 8004a8c:	b5 6b 08 00 	add r1,r11,r11                                 
 8004a90:	78 06 08 01 	mvhi r6,0x801                                  
 8004a94:	b4 2b 08 00 	add r1,r1,r11                                  
 8004a98:	38 c6 9b 7c 	ori r6,r6,0x9b7c                               
 8004a9c:	b4 21 08 00 	add r1,r1,r1                                   
 8004aa0:	28 c5 00 00 	lw r5,(r6+0)                                   
 8004aa4:	b4 21 08 00 	add r1,r1,r1                                   
 8004aa8:	b4 21 08 00 	add r1,r1,r1                                   
 8004aac:	b4 a1 28 00 	add r5,r5,r1                                   
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
 8004ab0:	28 a4 00 00 	lw r4,(r5+0)                                   
 8004ab4:	44 80 00 11 	be r4,r0,8004af8 <rtems_io_register_driver+0x174>
    major = *registered_major;                                        
  } else {                                                            
    rtems_driver_address_table *const table = _IO_Driver_address_table + major;
                                                                      
    if ( !rtems_io_is_empty_table( table ) ) {                        
      _Thread_Enable_dispatch();                                      
 8004ab8:	f8 00 08 a8 	calli 8006d58 <_Thread_Enable_dispatch>        
      return RTEMS_RESOURCE_IN_USE;                                   
 8004abc:	34 01 00 0c 	mvi r1,12                                      
  _IO_Driver_address_table [major] = *driver_table;                   
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return rtems_io_initialize( major, 0, NULL );                       
}                                                                     
 8004ac0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004ac4:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8004ac8:	37 9c 00 08 	addi sp,sp,8                                   
 8004acc:	c3 a0 00 00 	ret                                            
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
 8004ad0:	28 47 00 04 	lw r7,(r2+4)                                   
 8004ad4:	5c e5 ff be 	bne r7,r5,80049cc <rtems_io_register_driver+0x48>
 8004ad8:	e3 ff ff e9 	bi 8004a7c <rtems_io_register_driver+0xf8>     
 8004adc:	28 27 00 04 	lw r7,(r1+4)                                   
 8004ae0:	5c e4 ff ca 	bne r7,r4,8004a08 <rtems_io_register_driver+0x84>
 8004ae4:	e3 ff ff cc 	bi 8004a14 <rtems_io_register_driver+0x90>     
    if ( rtems_io_is_empty_table( table ) )                           
      break;                                                          
  }                                                                   
                                                                      
  /* Assigns invalid value in case of failure */                      
  *major = m;                                                         
 8004ae8:	58 60 00 00 	sw (r3+0),r0                                   <== NOT EXECUTED
                                                                      
  if ( major == 0 ) {                                                 
    rtems_status_code sc = rtems_io_obtain_major_number( registered_major );
                                                                      
    if ( sc != RTEMS_SUCCESSFUL ) {                                   
      _Thread_Enable_dispatch();                                      
 8004aec:	f8 00 08 9b 	calli 8006d58 <_Thread_Enable_dispatch>        
  *major = m;                                                         
                                                                      
  if ( m != n )                                                       
    return RTEMS_SUCCESSFUL;                                          
                                                                      
  return RTEMS_TOO_MANY;                                              
 8004af0:	34 01 00 05 	mvi r1,5                                       
  if ( major == 0 ) {                                                 
    rtems_status_code sc = rtems_io_obtain_major_number( registered_major );
                                                                      
    if ( sc != RTEMS_SUCCESSFUL ) {                                   
      _Thread_Enable_dispatch();                                      
      return sc;                                                      
 8004af4:	e3 ff ff e2 	bi 8004a7c <rtems_io_register_driver+0xf8>     
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
 8004af8:	28 a5 00 04 	lw r5,(r5+4)                                   
 8004afc:	5c a4 ff ef 	bne r5,r4,8004ab8 <rtems_io_register_driver+0x134>
    if ( !rtems_io_is_empty_table( table ) ) {                        
      _Thread_Enable_dispatch();                                      
      return RTEMS_RESOURCE_IN_USE;                                   
    }                                                                 
                                                                      
    *registered_major = major;                                        
 8004b00:	58 6b 00 00 	sw (r3+0),r11                                  
 8004b04:	e3 ff ff cb 	bi 8004a30 <rtems_io_register_driver+0xac>     
                                                                      

08004b08 <rtems_io_unregister_driver>: */ rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) {
 8004b08:	37 9c ff fc 	addi sp,sp,-4                                  
 8004b0c:	5b 9d 00 04 	sw (sp+4),ra                                   
  if ( rtems_interrupt_is_in_progress() )                             
 8004b10:	78 02 08 01 	mvhi r2,0x801                                  
 8004b14:	38 42 9a a8 	ori r2,r2,0x9aa8                               
 8004b18:	28 43 00 08 	lw r3,(r2+8)                                   
    return RTEMS_CALLED_FROM_ISR;                                     
 8004b1c:	34 02 00 12 	mvi r2,18                                      
                                                                      
rtems_status_code rtems_io_unregister_driver(                         
  rtems_device_major_number major                                     
)                                                                     
{                                                                     
  if ( rtems_interrupt_is_in_progress() )                             
 8004b20:	5c 60 00 19 	bne r3,r0,8004b84 <rtems_io_unregister_driver+0x7c><== NEVER TAKEN
    return RTEMS_CALLED_FROM_ISR;                                     
                                                                      
  if ( major < _IO_Number_of_drivers ) {                              
 8004b24:	78 02 08 01 	mvhi r2,0x801                                  
 8004b28:	38 42 9b 78 	ori r2,r2,0x9b78                               
 8004b2c:	28 43 00 00 	lw r3,(r2+0)                                   
    _Thread_Enable_dispatch();                                        
                                                                      
    return RTEMS_SUCCESSFUL;                                          
  }                                                                   
                                                                      
  return RTEMS_UNSATISFIED;                                           
 8004b30:	34 02 00 0d 	mvi r2,13                                      
)                                                                     
{                                                                     
  if ( rtems_interrupt_is_in_progress() )                             
    return RTEMS_CALLED_FROM_ISR;                                     
                                                                      
  if ( major < _IO_Number_of_drivers ) {                              
 8004b34:	50 23 00 14 	bgeu r1,r3,8004b84 <rtems_io_unregister_driver+0x7c><== NEVER TAKEN
 8004b38:	78 02 08 01 	mvhi r2,0x801                                  
 8004b3c:	38 42 99 08 	ori r2,r2,0x9908                               
 8004b40:	28 43 00 00 	lw r3,(r2+0)                                   
 8004b44:	34 63 00 01 	addi r3,r3,1                                   
 8004b48:	58 43 00 00 	sw (r2+0),r3                                   
    _Thread_Disable_dispatch();                                       
    memset(                                                           
 8004b4c:	78 02 08 01 	mvhi r2,0x801                                  
      &_IO_Driver_address_table[major],                               
 8004b50:	b4 21 18 00 	add r3,r1,r1                                   
  if ( rtems_interrupt_is_in_progress() )                             
    return RTEMS_CALLED_FROM_ISR;                                     
                                                                      
  if ( major < _IO_Number_of_drivers ) {                              
    _Thread_Disable_dispatch();                                       
    memset(                                                           
 8004b54:	38 42 9b 7c 	ori r2,r2,0x9b7c                               
      &_IO_Driver_address_table[major],                               
 8004b58:	b4 61 08 00 	add r1,r3,r1                                   
  if ( rtems_interrupt_is_in_progress() )                             
    return RTEMS_CALLED_FROM_ISR;                                     
                                                                      
  if ( major < _IO_Number_of_drivers ) {                              
    _Thread_Disable_dispatch();                                       
    memset(                                                           
 8004b5c:	28 44 00 00 	lw r4,(r2+0)                                   
      &_IO_Driver_address_table[major],                               
 8004b60:	b4 21 08 00 	add r1,r1,r1                                   
 8004b64:	b4 21 08 00 	add r1,r1,r1                                   
 8004b68:	b4 21 08 00 	add r1,r1,r1                                   
  if ( rtems_interrupt_is_in_progress() )                             
    return RTEMS_CALLED_FROM_ISR;                                     
                                                                      
  if ( major < _IO_Number_of_drivers ) {                              
    _Thread_Disable_dispatch();                                       
    memset(                                                           
 8004b6c:	34 02 00 00 	mvi r2,0                                       
 8004b70:	34 03 00 18 	mvi r3,24                                      
 8004b74:	b4 81 08 00 	add r1,r4,r1                                   
 8004b78:	f8 00 32 ec 	calli 8011728 <memset>                         
      &_IO_Driver_address_table[major],                               
      0,                                                              
      sizeof( rtems_driver_address_table )                            
    );                                                                
    _Thread_Enable_dispatch();                                        
 8004b7c:	f8 00 08 77 	calli 8006d58 <_Thread_Enable_dispatch>        
                                                                      
    return RTEMS_SUCCESSFUL;                                          
 8004b80:	34 02 00 00 	mvi r2,0                                       
  }                                                                   
                                                                      
  return RTEMS_UNSATISFIED;                                           
}                                                                     
 8004b84:	b8 40 08 00 	mv r1,r2                                       
 8004b88:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004b8c:	37 9c 00 04 	addi sp,sp,4                                   
 8004b90:	c3 a0 00 00 	ret                                            
                                                                      

08006368 <rtems_iterate_over_all_threads>: #include <rtems/system.h> #include <rtems/score/thread.h> void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) {
 8006368:	37 9c ff e4 	addi sp,sp,-28                                 
 800636c:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8006370:	5b 8c 00 18 	sw (sp+24),r12                                 
 8006374:	5b 8d 00 14 	sw (sp+20),r13                                 
 8006378:	5b 8e 00 10 	sw (sp+16),r14                                 
 800637c:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8006380:	5b 90 00 08 	sw (sp+8),r16                                  
 8006384:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006388:	b8 20 78 00 	mv r15,r1                                      
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
 800638c:	44 20 00 1a 	be r1,r0,80063f4 <rtems_iterate_over_all_threads+0x8c><== NEVER TAKEN
#endif                                                                
                                                                      
#include <rtems/system.h>                                             
#include <rtems/score/thread.h>                                       
                                                                      
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) 
 8006390:	78 01 08 02 	mvhi r1,0x802                                  
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
 8006394:	78 0e 08 02 	mvhi r14,0x802                                 
#endif                                                                
                                                                      
#include <rtems/system.h>                                             
#include <rtems/score/thread.h>                                       
                                                                      
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) 
 8006398:	38 21 0c 3c 	ori r1,r1,0xc3c                                
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
 800639c:	39 ce 0c 40 	ori r14,r14,0xc40                              
#endif                                                                
                                                                      
#include <rtems/system.h>                                             
#include <rtems/score/thread.h>                                       
                                                                      
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) 
 80063a0:	34 30 00 10 	addi r16,r1,16                                 
  if ( !routine )                                                     
    return;                                                           
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
    #if !defined(RTEMS_POSIX_API) || defined(RTEMS_DEBUG)             
      if ( !_Objects_Information_table[ api_index ] )                 
 80063a4:	29 c1 00 00 	lw r1,(r14+0)                                  
 80063a8:	44 20 00 11 	be r1,r0,80063ec <rtems_iterate_over_all_threads+0x84>
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
 80063ac:	28 2d 00 04 	lw r13,(r1+4)                                  
    if ( !information )                                               
 80063b0:	45 a0 00 0f 	be r13,r0,80063ec <rtems_iterate_over_all_threads+0x84>
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
 80063b4:	2d a3 00 10 	lhu r3,(r13+16)                                
 80063b8:	44 60 00 0d 	be r3,r0,80063ec <rtems_iterate_over_all_threads+0x84><== NEVER TAKEN
 80063bc:	34 0c 00 04 	mvi r12,4                                      
 80063c0:	34 0b 00 01 	mvi r11,1                                      
      the_thread = (Thread_Control *)information->local_table[ i ];   
 80063c4:	29 a2 00 1c 	lw r2,(r13+28)                                 
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( !information )                                               
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
 80063c8:	35 6b 00 01 	addi r11,r11,1                                 
      the_thread = (Thread_Control *)information->local_table[ i ];   
 80063cc:	b4 4c 10 00 	add r2,r2,r12                                  
 80063d0:	28 42 00 00 	lw r2,(r2+0)                                   
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( !information )                                               
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
 80063d4:	35 8c 00 04 	addi r12,r12,4                                 
      the_thread = (Thread_Control *)information->local_table[ i ];   
                                                                      
      if ( !the_thread )                                              
	continue;                                                            
                                                                      
      (*routine)(the_thread);                                         
 80063d8:	b8 40 08 00 	mv r1,r2                                       
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
      the_thread = (Thread_Control *)information->local_table[ i ];   
                                                                      
      if ( !the_thread )                                              
 80063dc:	44 40 00 03 	be r2,r0,80063e8 <rtems_iterate_over_all_threads+0x80>
	continue;                                                            
                                                                      
      (*routine)(the_thread);                                         
 80063e0:	d9 e0 00 00 	call r15                                       
 80063e4:	2d a3 00 10 	lhu r3,(r13+16)                                
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( !information )                                               
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
 80063e8:	50 6b ff f7 	bgeu r3,r11,80063c4 <rtems_iterate_over_all_threads+0x5c>
 80063ec:	35 ce 00 04 	addi r14,r14,4                                 
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
    return;                                                           
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
 80063f0:	5d d0 ff ed 	bne r14,r16,80063a4 <rtems_iterate_over_all_threads+0x3c>
                                                                      
      (*routine)(the_thread);                                         
    }                                                                 
  }                                                                   
                                                                      
}                                                                     
 80063f4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80063f8:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 80063fc:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8006400:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8006404:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8006408:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 800640c:	2b 90 00 08 	lw r16,(sp+8)                                  
 8006410:	37 9c 00 1c 	addi sp,sp,28                                  
 8006414:	c3 a0 00 00 	ret                                            
                                                                      

0800d6f4 <rtems_message_queue_create>: uint32_t count, size_t max_message_size, rtems_attribute attribute_set, rtems_id *id ) {
 800d6f4:	37 9c ff e0 	addi sp,sp,-32                                 
 800d6f8:	5b 8b 00 14 	sw (sp+20),r11                                 
 800d6fc:	5b 8c 00 10 	sw (sp+16),r12                                 
 800d700:	5b 8d 00 0c 	sw (sp+12),r13                                 
 800d704:	5b 8e 00 08 	sw (sp+8),r14                                  
 800d708:	5b 9d 00 04 	sw (sp+4),ra                                   
 800d70c:	b8 20 58 00 	mv r11,r1                                      
 800d710:	b8 40 60 00 	mv r12,r2                                      
 800d714:	b8 60 68 00 	mv r13,r3                                      
#if defined(RTEMS_MULTIPROCESSING)                                    
  bool                            is_global;                          
#endif                                                                
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
 800d718:	34 01 00 03 	mvi r1,3                                       
  CORE_message_queue_Attributes   the_msgq_attributes;                
#if defined(RTEMS_MULTIPROCESSING)                                    
  bool                            is_global;                          
#endif                                                                
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
 800d71c:	45 60 00 07 	be r11,r0,800d738 <rtems_message_queue_create+0x44>
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !id )                                                          
    return RTEMS_INVALID_ADDRESS;                                     
 800d720:	34 01 00 09 	mvi r1,9                                       
#endif                                                                
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !id )                                                          
 800d724:	44 a0 00 05 	be r5,r0,800d738 <rtems_message_queue_create+0x44>
       !_System_state_Is_multiprocessing )                            
    return RTEMS_MP_NOT_CONFIGURED;                                   
#endif                                                                
                                                                      
  if ( count == 0 )                                                   
      return RTEMS_INVALID_NUMBER;                                    
 800d728:	34 01 00 0a 	mvi r1,10                                      
  if ( (is_global = _Attributes_Is_global( attribute_set ) ) &&       
       !_System_state_Is_multiprocessing )                            
    return RTEMS_MP_NOT_CONFIGURED;                                   
#endif                                                                
                                                                      
  if ( count == 0 )                                                   
 800d72c:	44 40 00 03 	be r2,r0,800d738 <rtems_message_queue_create+0x44>
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  if ( max_message_size == 0 )                                        
      return RTEMS_INVALID_SIZE;                                      
 800d730:	34 01 00 08 	mvi r1,8                                       
#endif                                                                
                                                                      
  if ( count == 0 )                                                   
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  if ( max_message_size == 0 )                                        
 800d734:	5c 60 00 08 	bne r3,r0,800d754 <rtems_message_queue_create+0x60>
    );                                                                
#endif                                                                
                                                                      
  _Thread_Enable_dispatch();                                          
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 800d738:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800d73c:	2b 8b 00 14 	lw r11,(sp+20)                                 
 800d740:	2b 8c 00 10 	lw r12,(sp+16)                                 
 800d744:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800d748:	2b 8e 00 08 	lw r14,(sp+8)                                  
 800d74c:	37 9c 00 20 	addi sp,sp,32                                  
 800d750:	c3 a0 00 00 	ret                                            
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
 800d754:	78 01 08 02 	mvhi r1,0x802                                  
 800d758:	38 21 8a 28 	ori r1,r1,0x8a28                               
 800d75c:	28 22 00 00 	lw r2,(r1+0)                                   
 800d760:	34 42 00 01 	addi r2,r2,1                                   
 800d764:	58 22 00 00 	sw (r1+0),r2                                   
#endif                                                                
#endif                                                                
                                                                      
  _Thread_Disable_dispatch();              /* protects object pointer */
                                                                      
  the_message_queue = _Message_queue_Allocate();                      
 800d768:	5b 84 00 1c 	sw (sp+28),r4                                  
 800d76c:	5b 85 00 18 	sw (sp+24),r5                                  
 800d770:	f8 00 1b f8 	calli 8014750 <_Message_queue_Allocate>        
 800d774:	b8 20 70 00 	mv r14,r1                                      
                                                                      
  if ( !the_message_queue ) {                                         
 800d778:	2b 84 00 1c 	lw r4,(sp+28)                                  
 800d77c:	2b 85 00 18 	lw r5,(sp+24)                                  
 800d780:	44 20 00 25 	be r1,r0,800d814 <rtems_message_queue_create+0x120><== NEVER TAKEN
    _Thread_Enable_dispatch();                                        
    return RTEMS_TOO_MANY;                                            
  }                                                                   
#endif                                                                
                                                                      
  the_message_queue->attribute_set = attribute_set;                   
 800d784:	58 24 00 10 	sw (r1+16),r4                                  
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Attributes_Is_priority(                    
  rtems_attribute attribute_set                                       
)                                                                     
{                                                                     
   return ( attribute_set & RTEMS_PRIORITY ) ? true : false;          
 800d788:	20 84 00 04 	andi r4,r4,0x4                                 
                                                                      
  if (_Attributes_Is_priority( attribute_set ) )                      
 800d78c:	44 80 00 12 	be r4,r0,800d7d4 <rtems_message_queue_create+0xe0>
    the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY;
 800d790:	34 01 00 01 	mvi r1,1                                       
 800d794:	5b 81 00 20 	sw (sp+32),r1                                  
  else                                                                
    the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO;
                                                                      
  if ( ! _CORE_message_queue_Initialize(                              
 800d798:	35 c1 00 14 	addi r1,r14,20                                 
 800d79c:	37 82 00 20 	addi r2,sp,32                                  
 800d7a0:	b9 80 18 00 	mv r3,r12                                      
 800d7a4:	b9 a0 20 00 	mv r4,r13                                      
 800d7a8:	5b 85 00 18 	sw (sp+24),r5                                  
 800d7ac:	f8 00 05 64 	calli 800ed3c <_CORE_message_queue_Initialize> 
 800d7b0:	2b 85 00 18 	lw r5,(sp+24)                                  
 800d7b4:	5c 20 00 0a 	bne r1,r0,800d7dc <rtems_message_queue_create+0xe8>
 */                                                                   
RTEMS_INLINE_ROUTINE void _Message_queue_Free (                       
  Message_queue_Control *the_message_queue                            
)                                                                     
{                                                                     
  _Objects_Free( &_Message_queue_Information, &the_message_queue->Object );
 800d7b8:	78 01 08 02 	mvhi r1,0x802                                  
 800d7bc:	38 21 8c 1c 	ori r1,r1,0x8c1c                               
 800d7c0:	b9 c0 10 00 	mv r2,r14                                      
 800d7c4:	f8 00 0a 12 	calli 801000c <_Objects_Free>                  
        _Objects_MP_Close(                                            
          &_Message_queue_Information, the_message_queue->Object.id); 
#endif                                                                
                                                                      
    _Message_queue_Free( the_message_queue );                         
    _Thread_Enable_dispatch();                                        
 800d7c8:	f8 00 0e cf 	calli 8011304 <_Thread_Enable_dispatch>        
    return RTEMS_UNSATISFIED;                                         
 800d7cc:	34 01 00 0d 	mvi r1,13                                      
 800d7d0:	e3 ff ff da 	bi 800d738 <rtems_message_queue_create+0x44>   
  the_message_queue->attribute_set = attribute_set;                   
                                                                      
  if (_Attributes_Is_priority( attribute_set ) )                      
    the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY;
  else                                                                
    the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO;
 800d7d4:	5b 80 00 20 	sw (sp+32),r0                                  
 800d7d8:	e3 ff ff f0 	bi 800d798 <rtems_message_queue_create+0xa4>   
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
 800d7dc:	29 c2 00 08 	lw r2,(r14+8)                                  
    );                                                                
#endif                                                                
                                                                      
  _Thread_Enable_dispatch();                                          
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 800d7e0:	78 01 08 02 	mvhi r1,0x802                                  
 800d7e4:	38 21 8c 1c 	ori r1,r1,0x8c1c                               
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 800d7e8:	28 23 00 1c 	lw r3,(r1+28)                                  
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 800d7ec:	20 41 ff ff 	andi r1,r2,0xffff                              
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 800d7f0:	b4 21 08 00 	add r1,r1,r1                                   
 800d7f4:	b4 21 08 00 	add r1,r1,r1                                   
 800d7f8:	b4 61 08 00 	add r1,r3,r1                                   
 800d7fc:	58 2e 00 00 	sw (r1+0),r14                                  
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
 800d800:	59 cb 00 0c 	sw (r14+12),r11                                
    &_Message_queue_Information,                                      
    &the_message_queue->Object,                                       
    (Objects_Name) name                                               
  );                                                                  
                                                                      
  *id = the_message_queue->Object.id;                                 
 800d804:	58 a2 00 00 	sw (r5+0),r2                                   
      name,                                                           
      0                                                               
    );                                                                
#endif                                                                
                                                                      
  _Thread_Enable_dispatch();                                          
 800d808:	f8 00 0e bf 	calli 8011304 <_Thread_Enable_dispatch>        
  return RTEMS_SUCCESSFUL;                                            
 800d80c:	34 01 00 00 	mvi r1,0                                       
 800d810:	e3 ff ff ca 	bi 800d738 <rtems_message_queue_create+0x44>   
  _Thread_Disable_dispatch();              /* protects object pointer */
                                                                      
  the_message_queue = _Message_queue_Allocate();                      
                                                                      
  if ( !the_message_queue ) {                                         
    _Thread_Enable_dispatch();                                        
 800d814:	f8 00 0e bc 	calli 8011304 <_Thread_Enable_dispatch>        
    return RTEMS_TOO_MANY;                                            
 800d818:	34 01 00 05 	mvi r1,5                                       
 800d81c:	e3 ff ff c7 	bi 800d738 <rtems_message_queue_create+0x44>   
                                                                      

08004f18 <rtems_object_get_class_information>: rtems_status_code rtems_object_get_class_information( int the_api, int the_class, rtems_object_api_class_information *info ) {
 8004f18:	37 9c ff f8 	addi sp,sp,-8                                  
 8004f1c:	5b 8b 00 08 	sw (sp+8),r11                                  
 8004f20:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004f24:	b8 60 58 00 	mv r11,r3                                      
                                                                      
  /*                                                                  
   * Validate parameters and look up information structure.           
   */                                                                 
  if ( !info )                                                        
    return RTEMS_INVALID_ADDRESS;                                     
 8004f28:	34 03 00 09 	mvi r3,9                                       
  int                  i;                                             
                                                                      
  /*                                                                  
   * Validate parameters and look up information structure.           
   */                                                                 
  if ( !info )                                                        
 8004f2c:	45 60 00 1e 	be r11,r0,8004fa4 <rtems_object_get_class_information+0x8c>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  obj_info = _Objects_Get_information( the_api, the_class );          
 8004f30:	20 42 ff ff 	andi r2,r2,0xffff                              
 8004f34:	f8 00 07 aa 	calli 8006ddc <_Objects_Get_information>       
 8004f38:	b8 20 10 00 	mv r2,r1                                       
  if ( !obj_info )                                                    
    return RTEMS_INVALID_NUMBER;                                      
 8004f3c:	34 03 00 0a 	mvi r3,10                                      
   */                                                                 
  if ( !info )                                                        
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  obj_info = _Objects_Get_information( the_api, the_class );          
  if ( !obj_info )                                                    
 8004f40:	44 20 00 19 	be r1,r0,8004fa4 <rtems_object_get_class_information+0x8c>
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  /*                                                                  
   * Return information about this object class to the user.          
   */                                                                 
  info->minimum_id  = obj_info->minimum_id;                           
 8004f44:	28 24 00 08 	lw r4,(r1+8)                                   
  info->maximum_id  = obj_info->maximum_id;                           
 8004f48:	28 23 00 0c 	lw r3,(r1+12)                                  
  info->auto_extend = obj_info->auto_extend;                          
  info->maximum     = obj_info->maximum;                              
 8004f4c:	2c 46 00 10 	lhu r6,(r2+16)                                 
  /*                                                                  
   * Return information about this object class to the user.          
   */                                                                 
  info->minimum_id  = obj_info->minimum_id;                           
  info->maximum_id  = obj_info->maximum_id;                           
  info->auto_extend = obj_info->auto_extend;                          
 8004f50:	40 21 00 12 	lbu r1,(r1+18)                                 
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  /*                                                                  
   * Return information about this object class to the user.          
   */                                                                 
  info->minimum_id  = obj_info->minimum_id;                           
 8004f54:	59 64 00 00 	sw (r11+0),r4                                  
  info->maximum_id  = obj_info->maximum_id;                           
 8004f58:	59 63 00 04 	sw (r11+4),r3                                  
  info->auto_extend = obj_info->auto_extend;                          
 8004f5c:	31 61 00 0c 	sb (r11+12),r1                                 
  info->maximum     = obj_info->maximum;                              
 8004f60:	59 66 00 08 	sw (r11+8),r6                                  
                                                                      
  for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )               
 8004f64:	34 04 00 00 	mvi r4,0                                       
 8004f68:	44 c0 00 0d 	be r6,r0,8004f9c <rtems_object_get_class_information+0x84><== NEVER TAKEN
 8004f6c:	28 43 00 1c 	lw r3,(r2+28)                                  
 8004f70:	34 01 00 01 	mvi r1,1                                       
 8004f74:	34 02 00 01 	mvi r2,1                                       
    if ( !obj_info->local_table[i] )                                  
 8004f78:	b4 21 08 00 	add r1,r1,r1                                   
 8004f7c:	b4 21 08 00 	add r1,r1,r1                                   
 8004f80:	b4 61 08 00 	add r1,r3,r1                                   
 8004f84:	28 25 00 00 	lw r5,(r1+0)                                   
  info->minimum_id  = obj_info->minimum_id;                           
  info->maximum_id  = obj_info->maximum_id;                           
  info->auto_extend = obj_info->auto_extend;                          
  info->maximum     = obj_info->maximum;                              
                                                                      
  for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )               
 8004f88:	34 42 00 01 	addi r2,r2,1                                   
 8004f8c:	b8 40 08 00 	mv r1,r2                                       
    if ( !obj_info->local_table[i] )                                  
      unallocated++;                                                  
 8004f90:	64 a5 00 00 	cmpei r5,r5,0                                  
 8004f94:	b4 85 20 00 	add r4,r4,r5                                   
  info->minimum_id  = obj_info->minimum_id;                           
  info->maximum_id  = obj_info->maximum_id;                           
  info->auto_extend = obj_info->auto_extend;                          
  info->maximum     = obj_info->maximum;                              
                                                                      
  for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )               
 8004f98:	50 c2 ff f8 	bgeu r6,r2,8004f78 <rtems_object_get_class_information+0x60>
    if ( !obj_info->local_table[i] )                                  
      unallocated++;                                                  
                                                                      
  info->unallocated = unallocated;                                    
 8004f9c:	59 64 00 10 	sw (r11+16),r4                                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 8004fa0:	34 03 00 00 	mvi r3,0                                       
}                                                                     
 8004fa4:	b8 60 08 00 	mv r1,r3                                       
 8004fa8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004fac:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8004fb0:	37 9c 00 08 	addi sp,sp,8                                   
 8004fb4:	c3 a0 00 00 	ret                                            
                                                                      

08011480 <rtems_partition_create>: uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) {
 8011480:	37 9c ff d8 	addi sp,sp,-40                                 
 8011484:	5b 8b 00 18 	sw (sp+24),r11                                 
 8011488:	5b 8c 00 14 	sw (sp+20),r12                                 
 801148c:	5b 8d 00 10 	sw (sp+16),r13                                 
 8011490:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8011494:	5b 8f 00 08 	sw (sp+8),r15                                  
 8011498:	5b 9d 00 04 	sw (sp+4),ra                                   
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
 801149c:	34 07 00 03 	mvi r7,3                                       
  uint32_t         length,                                            
  uint32_t         buffer_size,                                       
  rtems_attribute  attribute_set,                                     
  rtems_id        *id                                                 
)                                                                     
{                                                                     
 80114a0:	b8 20 60 00 	mv r12,r1                                      
 80114a4:	b8 40 58 00 	mv r11,r2                                      
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
 80114a8:	44 20 00 3e 	be r1,r0,80115a0 <rtems_partition_create+0x120>
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !starting_address )                                            
    return RTEMS_INVALID_ADDRESS;                                     
 80114ac:	34 07 00 09 	mvi r7,9                                       
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !starting_address )                                            
 80114b0:	44 40 00 3c 	be r2,r0,80115a0 <rtems_partition_create+0x120>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !id )                                                          
 80114b4:	44 c0 00 3b 	be r6,r0,80115a0 <rtems_partition_create+0x120><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( length == 0 || buffer_size == 0 || length < buffer_size ||     
 80114b8:	64 82 00 00 	cmpei r2,r4,0                                  
 80114bc:	64 61 00 00 	cmpei r1,r3,0                                  
         !_Partition_Is_buffer_size_aligned( buffer_size ) )          
    return RTEMS_INVALID_SIZE;                                        
 80114c0:	34 07 00 08 	mvi r7,8                                       
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !id )                                                          
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( length == 0 || buffer_size == 0 || length < buffer_size ||     
 80114c4:	b8 41 08 00 	or r1,r2,r1                                    
 80114c8:	5c 20 00 36 	bne r1,r0,80115a0 <rtems_partition_create+0x120>
 80114cc:	54 83 00 35 	bgu r4,r3,80115a0 <rtems_partition_create+0x120>
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Partition_Is_buffer_size_aligned (         
   uint32_t   buffer_size                                             
)                                                                     
{                                                                     
  return ((buffer_size % CPU_PARTITION_ALIGNMENT) == 0);              
 80114d0:	20 81 00 07 	andi r1,r4,0x7                                 
 80114d4:	5c 20 00 33 	bne r1,r0,80115a0 <rtems_partition_create+0x120>
)                                                                     
{                                                                     
#if (CPU_ALIGNMENT == 0)                                              
    return true;                                                      
#else                                                                 
    return (((uintptr_t)address % CPU_ALIGNMENT) == 0);               
 80114d8:	21 6f 00 07 	andi r15,r11,0x7                               
         !_Partition_Is_buffer_size_aligned( buffer_size ) )          
    return RTEMS_INVALID_SIZE;                                        
                                                                      
  if ( !_Addresses_Is_aligned( starting_address ) )                   
     return RTEMS_INVALID_ADDRESS;                                    
 80114dc:	34 07 00 09 	mvi r7,9                                       
                                                                      
  if ( length == 0 || buffer_size == 0 || length < buffer_size ||     
         !_Partition_Is_buffer_size_aligned( buffer_size ) )          
    return RTEMS_INVALID_SIZE;                                        
                                                                      
  if ( !_Addresses_Is_aligned( starting_address ) )                   
 80114e0:	5d e1 00 30 	bne r15,r1,80115a0 <rtems_partition_create+0x120>
 80114e4:	78 01 08 03 	mvhi r1,0x803                                  
 80114e8:	38 21 ec 98 	ori r1,r1,0xec98                               
 80114ec:	28 22 00 00 	lw r2,(r1+0)                                   
 80114f0:	34 42 00 01 	addi r2,r2,1                                   
 80114f4:	58 22 00 00 	sw (r1+0),r2                                   
 *  This function allocates a partition control block from            
 *  the inactive chain of free partition control blocks.              
 */                                                                   
RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Allocate ( void )  
{                                                                     
  return (Partition_Control *) _Objects_Allocate( &_Partition_Information );
 80114f8:	78 0e 08 03 	mvhi r14,0x803                                 
 80114fc:	39 ce ea f0 	ori r14,r14,0xeaf0                             
 8011500:	b9 c0 08 00 	mv r1,r14                                      
 8011504:	5b 83 00 28 	sw (sp+40),r3                                  
 8011508:	5b 84 00 20 	sw (sp+32),r4                                  
 801150c:	5b 85 00 24 	sw (sp+36),r5                                  
 8011510:	5b 86 00 1c 	sw (sp+28),r6                                  
 8011514:	f8 00 16 9a 	calli 8016f7c <_Objects_Allocate>              
 8011518:	b8 20 68 00 	mv r13,r1                                      
                                                                      
  _Thread_Disable_dispatch();               /* prevents deletion */   
                                                                      
  the_partition = _Partition_Allocate();                              
                                                                      
  if ( !the_partition ) {                                             
 801151c:	2b 83 00 28 	lw r3,(sp+40)                                  
 8011520:	2b 84 00 20 	lw r4,(sp+32)                                  
 8011524:	2b 85 00 24 	lw r5,(sp+36)                                  
 8011528:	2b 86 00 1c 	lw r6,(sp+28)                                  
 801152c:	44 2f 00 26 	be r1,r15,80115c4 <rtems_partition_create+0x144>
#endif                                                                
                                                                      
  the_partition->starting_address      = starting_address;            
  the_partition->length                = length;                      
  the_partition->buffer_size           = buffer_size;                 
  the_partition->attribute_set         = attribute_set;               
 8011530:	58 25 00 1c 	sw (r1+28),r5                                  
    return RTEMS_TOO_MANY;                                            
  }                                                                   
#endif                                                                
                                                                      
  the_partition->starting_address      = starting_address;            
  the_partition->length                = length;                      
 8011534:	58 23 00 14 	sw (r1+20),r3                                  
  the_partition->buffer_size           = buffer_size;                 
 8011538:	58 24 00 18 	sw (r1+24),r4                                  
    _Thread_Enable_dispatch();                                        
    return RTEMS_TOO_MANY;                                            
  }                                                                   
#endif                                                                
                                                                      
  the_partition->starting_address      = starting_address;            
 801153c:	58 2b 00 10 	sw (r1+16),r11                                 
  the_partition->length                = length;                      
  the_partition->buffer_size           = buffer_size;                 
  the_partition->attribute_set         = attribute_set;               
  the_partition->number_of_used_blocks = 0;                           
 8011540:	58 20 00 20 	sw (r1+32),r0                                  
                                                                      
  _Chain_Initialize( &the_partition->Memory, starting_address,        
                        length / buffer_size, buffer_size );          
 8011544:	b8 80 10 00 	mv r2,r4                                       
  the_partition->length                = length;                      
  the_partition->buffer_size           = buffer_size;                 
  the_partition->attribute_set         = attribute_set;               
  the_partition->number_of_used_blocks = 0;                           
                                                                      
  _Chain_Initialize( &the_partition->Memory, starting_address,        
 8011548:	34 2f 00 24 	addi r15,r1,36                                 
                        length / buffer_size, buffer_size );          
 801154c:	b8 60 08 00 	mv r1,r3                                       
 8011550:	5b 86 00 1c 	sw (sp+28),r6                                  
 8011554:	5b 84 00 20 	sw (sp+32),r4                                  
 8011558:	f8 00 7c 22 	calli 80305e0 <__udivsi3>                      
  the_partition->length                = length;                      
  the_partition->buffer_size           = buffer_size;                 
  the_partition->attribute_set         = attribute_set;               
  the_partition->number_of_used_blocks = 0;                           
                                                                      
  _Chain_Initialize( &the_partition->Memory, starting_address,        
 801155c:	2b 84 00 20 	lw r4,(sp+32)                                  
                        length / buffer_size, buffer_size );          
 8011560:	b8 20 18 00 	mv r3,r1                                       
  the_partition->length                = length;                      
  the_partition->buffer_size           = buffer_size;                 
  the_partition->attribute_set         = attribute_set;               
  the_partition->number_of_used_blocks = 0;                           
                                                                      
  _Chain_Initialize( &the_partition->Memory, starting_address,        
 8011564:	b9 60 10 00 	mv r2,r11                                      
 8011568:	b9 e0 08 00 	mv r1,r15                                      
 801156c:	f8 00 0f 82 	calli 8015374 <_Chain_Initialize>              
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
 8011570:	29 a2 00 08 	lw r2,(r13+8)                                  
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 8011574:	29 c3 00 1c 	lw r3,(r14+28)                                 
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 8011578:	20 41 ff ff 	andi r1,r2,0xffff                              
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 801157c:	b4 21 08 00 	add r1,r1,r1                                   
 8011580:	b4 21 08 00 	add r1,r1,r1                                   
 8011584:	b4 61 08 00 	add r1,r3,r1                                   
 8011588:	58 2d 00 00 	sw (r1+0),r13                                  
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
 801158c:	59 ac 00 0c 	sw (r13+12),r12                                
    &_Partition_Information,                                          
    &the_partition->Object,                                           
    (Objects_Name) name                                               
  );                                                                  
                                                                      
  *id = the_partition->Object.id;                                     
 8011590:	2b 86 00 1c 	lw r6,(sp+28)                                  
 8011594:	58 c2 00 00 	sw (r6+0),r2                                   
      name,                                                           
      0                  /* Not used */                               
    );                                                                
#endif                                                                
                                                                      
  _Thread_Enable_dispatch();                                          
 8011598:	f8 00 1c 37 	calli 8018674 <_Thread_Enable_dispatch>        
  return RTEMS_SUCCESSFUL;                                            
 801159c:	34 07 00 00 	mvi r7,0                                       
}                                                                     
 80115a0:	b8 e0 08 00 	mv r1,r7                                       
 80115a4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80115a8:	2b 8b 00 18 	lw r11,(sp+24)                                 
 80115ac:	2b 8c 00 14 	lw r12,(sp+20)                                 
 80115b0:	2b 8d 00 10 	lw r13,(sp+16)                                 
 80115b4:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 80115b8:	2b 8f 00 08 	lw r15,(sp+8)                                  
 80115bc:	37 9c 00 28 	addi sp,sp,40                                  
 80115c0:	c3 a0 00 00 	ret                                            
  _Thread_Disable_dispatch();               /* prevents deletion */   
                                                                      
  the_partition = _Partition_Allocate();                              
                                                                      
  if ( !the_partition ) {                                             
    _Thread_Enable_dispatch();                                        
 80115c4:	f8 00 1c 2c 	calli 8018674 <_Thread_Enable_dispatch>        
    return RTEMS_TOO_MANY;                                            
 80115c8:	34 07 00 05 	mvi r7,5                                       
 80115cc:	e3 ff ff f5 	bi 80115a0 <rtems_partition_create+0x120>      
                                                                      

08004318 <rtems_rate_monotonic_period>: rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) {
 8004318:	37 9c ff e0 	addi sp,sp,-32                                 
 800431c:	5b 8b 00 18 	sw (sp+24),r11                                 
 8004320:	5b 8c 00 14 	sw (sp+20),r12                                 
 8004324:	5b 8d 00 10 	sw (sp+16),r13                                 
 8004328:	5b 8e 00 0c 	sw (sp+12),r14                                 
 800432c:	5b 8f 00 08 	sw (sp+8),r15                                  
 8004330:	5b 9d 00 04 	sw (sp+4),ra                                   
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Rate_monotonic_Control *)                                   
    _Objects_Get( &_Rate_monotonic_Information, id, location );       
 8004334:	78 03 08 02 	mvhi r3,0x802                                  
 8004338:	b8 20 68 00 	mv r13,r1                                      
 800433c:	b8 60 08 00 	mv r1,r3                                       
 8004340:	b8 40 70 00 	mv r14,r2                                      
 8004344:	38 21 08 78 	ori r1,r1,0x878                                
 8004348:	b9 a0 10 00 	mv r2,r13                                      
 800434c:	37 83 00 20 	addi r3,sp,32                                  
 8004350:	f8 00 0a 6e 	calli 8006d08 <_Objects_Get>                   
 8004354:	b8 20 58 00 	mv r11,r1                                      
  rtems_rate_monotonic_period_states   local_state;                   
  ISR_Level                            level;                         
                                                                      
  the_period = _Rate_monotonic_Get( id, &location );                  
                                                                      
  switch ( location ) {                                               
 8004358:	2b 81 00 20 	lw r1,(sp+32)                                  
 800435c:	44 20 00 0a 	be r1,r0,8004384 <rtems_rate_monotonic_period+0x6c>
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8004360:	34 01 00 04 	mvi r1,4                                       
}                                                                     
 8004364:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004368:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800436c:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8004370:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8004374:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8004378:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800437c:	37 9c 00 20 	addi sp,sp,32                                  
 8004380:	c3 a0 00 00 	ret                                            
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
 8004384:	78 0c 08 02 	mvhi r12,0x802                                 
 8004388:	39 8c 0b 40 	ori r12,r12,0xb40                              
                                                                      
  the_period = _Rate_monotonic_Get( id, &location );                  
                                                                      
  switch ( location ) {                                               
    case OBJECTS_LOCAL:                                               
      if ( !_Thread_Is_executing( the_period->owner ) ) {             
 800438c:	29 62 00 40 	lw r2,(r11+64)                                 
 8004390:	29 81 00 0c 	lw r1,(r12+12)                                 
 8004394:	44 41 00 0b 	be r2,r1,80043c0 <rtems_rate_monotonic_period+0xa8>
        _Thread_Enable_dispatch();                                    
 8004398:	f8 00 0e 30 	calli 8007c58 <_Thread_Enable_dispatch>        
        return RTEMS_NOT_OWNER_OF_RESOURCE;                           
 800439c:	34 01 00 17 	mvi r1,23                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 80043a0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80043a4:	2b 8b 00 18 	lw r11,(sp+24)                                 
 80043a8:	2b 8c 00 14 	lw r12,(sp+20)                                 
 80043ac:	2b 8d 00 10 	lw r13,(sp+16)                                 
 80043b0:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 80043b4:	2b 8f 00 08 	lw r15,(sp+8)                                  
 80043b8:	37 9c 00 20 	addi sp,sp,32                                  
 80043bc:	c3 a0 00 00 	ret                                            
      if ( !_Thread_Is_executing( the_period->owner ) ) {             
        _Thread_Enable_dispatch();                                    
        return RTEMS_NOT_OWNER_OF_RESOURCE;                           
      }                                                               
                                                                      
      if ( length == RTEMS_PERIOD_STATUS ) {                          
 80043c0:	5d c0 00 0f 	bne r14,r0,80043fc <rtems_rate_monotonic_period+0xe4>
        switch ( the_period->state ) {                                
 80043c4:	29 62 00 38 	lw r2,(r11+56)                                 
 80043c8:	34 03 00 04 	mvi r3,4                                       
 80043cc:	34 01 00 00 	mvi r1,0                                       
 80043d0:	54 43 00 07 	bgu r2,r3,80043ec <rtems_rate_monotonic_period+0xd4><== NEVER TAKEN
 80043d4:	78 01 08 01 	mvhi r1,0x801                                  
 80043d8:	b4 42 10 00 	add r2,r2,r2                                   
 80043dc:	38 21 d9 98 	ori r1,r1,0xd998                               
 80043e0:	b4 42 10 00 	add r2,r2,r2                                   
 80043e4:	b4 22 10 00 	add r2,r1,r2                                   
 80043e8:	28 41 00 00 	lw r1,(r2+0)                                   
        );                                                            
                                                                      
        the_period->next_length = length;                             
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, length );         
        _Thread_Enable_dispatch();                                    
 80043ec:	5b 81 00 1c 	sw (sp+28),r1                                  
 80043f0:	f8 00 0e 1a 	calli 8007c58 <_Thread_Enable_dispatch>        
        return RTEMS_SUCCESSFUL;                                      
 80043f4:	2b 81 00 1c 	lw r1,(sp+28)                                  
 80043f8:	e3 ff ff db 	bi 8004364 <rtems_rate_monotonic_period+0x4c>  
        }                                                             
        _Thread_Enable_dispatch();                                    
        return( return_value );                                       
      }                                                               
                                                                      
      _ISR_Disable( level );                                          
 80043fc:	90 00 78 00 	rcsr r15,IE                                    
 8004400:	34 01 ff fe 	mvi r1,-2                                      
 8004404:	a1 e1 08 00 	and r1,r15,r1                                  
 8004408:	d0 01 00 00 	wcsr IE,r1                                     
      if ( the_period->state == RATE_MONOTONIC_INACTIVE ) {           
 800440c:	29 62 00 38 	lw r2,(r11+56)                                 
 8004410:	44 40 00 15 	be r2,r0,8004464 <rtems_rate_monotonic_period+0x14c>
        _Watchdog_Insert_ticks( &the_period->Timer, length );         
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
                                                                      
      if ( the_period->state == RATE_MONOTONIC_ACTIVE ) {             
 8004414:	34 01 00 02 	mvi r1,2                                       
 8004418:	44 41 00 26 	be r2,r1,80044b0 <rtems_rate_monotonic_period+0x198>
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 800441c:	34 01 00 04 	mvi r1,4                                       
                                                                      
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
                                                                      
      if ( the_period->state == RATE_MONOTONIC_EXPIRED ) {            
 8004420:	5c 41 ff d1 	bne r2,r1,8004364 <rtems_rate_monotonic_period+0x4c><== NEVER TAKEN
        /*                                                            
         *  Update statistics from the concluding period              
         */                                                           
        _Rate_monotonic_Update_statistics( the_period );              
 8004424:	b9 60 08 00 	mv r1,r11                                      
 8004428:	fb ff ff 72 	calli 80041f0 <_Rate_monotonic_Update_statistics>
                                                                      
        _ISR_Enable( level );                                         
 800442c:	d0 0f 00 00 	wcsr IE,r15                                    
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
 8004430:	34 03 00 02 	mvi r3,2                                       
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 8004434:	78 01 08 02 	mvhi r1,0x802                                  
 8004438:	38 21 0a 60 	ori r1,r1,0xa60                                
 800443c:	35 62 00 10 	addi r2,r11,16                                 
 8004440:	59 63 00 38 	sw (r11+56),r3                                 
        the_period->next_length = length;                             
 8004444:	59 6e 00 3c 	sw (r11+60),r14                                
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 8004448:	59 6e 00 1c 	sw (r11+28),r14                                
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 800444c:	f8 00 13 28 	calli 80090ec <_Watchdog_Insert>               
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, length );         
        _Thread_Enable_dispatch();                                    
        return RTEMS_TIMEOUT;                                         
 8004450:	34 01 00 06 	mvi r1,6                                       
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
        the_period->next_length = length;                             
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, length );         
        _Thread_Enable_dispatch();                                    
 8004454:	5b 81 00 1c 	sw (sp+28),r1                                  
 8004458:	f8 00 0e 00 	calli 8007c58 <_Thread_Enable_dispatch>        
        return RTEMS_TIMEOUT;                                         
 800445c:	2b 81 00 1c 	lw r1,(sp+28)                                  
 8004460:	e3 ff ff c1 	bi 8004364 <rtems_rate_monotonic_period+0x4c>  
        return( return_value );                                       
      }                                                               
                                                                      
      _ISR_Disable( level );                                          
      if ( the_period->state == RATE_MONOTONIC_INACTIVE ) {           
        _ISR_Enable( level );                                         
 8004464:	d0 0f 00 00 	wcsr IE,r15                                    
                                                                      
        /*                                                            
         *  Baseline statistics information for the beginning of a period.
         */                                                           
        _Rate_monotonic_Initiate_statistics( the_period );            
 8004468:	b9 60 08 00 	mv r1,r11                                      
 800446c:	fb ff ff 36 	calli 8004144 <_Rate_monotonic_Initiate_statistics>
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
 8004470:	78 03 08 00 	mvhi r3,0x800                                  
 8004474:	38 63 48 a8 	ori r3,r3,0x48a8                               
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
 8004478:	34 04 00 02 	mvi r4,2                                       
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 800447c:	78 01 08 02 	mvhi r1,0x802                                  
 8004480:	38 21 0a 60 	ori r1,r1,0xa60                                
 8004484:	35 62 00 10 	addi r2,r11,16                                 
 8004488:	59 64 00 38 	sw (r11+56),r4                                 
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 800448c:	59 60 00 18 	sw (r11+24),r0                                 
  the_watchdog->routine   = routine;                                  
 8004490:	59 63 00 2c 	sw (r11+44),r3                                 
  the_watchdog->id        = id;                                       
 8004494:	59 6d 00 30 	sw (r11+48),r13                                
  the_watchdog->user_data = user_data;                                
 8004498:	59 60 00 34 	sw (r11+52),r0                                 
          _Rate_monotonic_Timeout,                                    
          id,                                                         
          NULL                                                        
        );                                                            
                                                                      
        the_period->next_length = length;                             
 800449c:	59 6e 00 3c 	sw (r11+60),r14                                
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 80044a0:	59 6e 00 1c 	sw (r11+28),r14                                
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 80044a4:	f8 00 13 12 	calli 80090ec <_Watchdog_Insert>               
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, length );         
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
 80044a8:	34 01 00 00 	mvi r1,0                                       
 80044ac:	e3 ff ff d0 	bi 80043ec <rtems_rate_monotonic_period+0xd4>  
                                                                      
      if ( the_period->state == RATE_MONOTONIC_ACTIVE ) {             
        /*                                                            
         *  Update statistics from the concluding period.             
         */                                                           
        _Rate_monotonic_Update_statistics( the_period );              
 80044b0:	b9 60 08 00 	mv r1,r11                                      
 80044b4:	fb ff ff 4f 	calli 80041f0 <_Rate_monotonic_Update_statistics>
        /*                                                            
         *  This tells the _Rate_monotonic_Timeout that this task is  
         *  in the process of blocking on the period and that we      
         *  may be changing the length of the next period.            
         */                                                           
        the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING;         
 80044b8:	34 01 00 01 	mvi r1,1                                       
 80044bc:	59 61 00 38 	sw (r11+56),r1                                 
        the_period->next_length = length;                             
 80044c0:	59 6e 00 3c 	sw (r11+60),r14                                
                                                                      
        _ISR_Enable( level );                                         
 80044c4:	d0 0f 00 00 	wcsr IE,r15                                    
                                                                      
        _Thread_Executing->Wait.id = the_period->Object.id;           
 80044c8:	29 83 00 0c 	lw r3,(r12+12)                                 
 80044cc:	29 64 00 08 	lw r4,(r11+8)                                  
        _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
 80044d0:	34 02 40 00 	mvi r2,16384                                   
 80044d4:	b8 60 08 00 	mv r1,r3                                       
        the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING;         
        the_period->next_length = length;                             
                                                                      
        _ISR_Enable( level );                                         
                                                                      
        _Thread_Executing->Wait.id = the_period->Object.id;           
 80044d8:	58 64 00 20 	sw (r3+32),r4                                  
        _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
 80044dc:	f8 00 10 61 	calli 8008660 <_Thread_Set_state>              
                                                                      
        /*                                                            
         *  Did the watchdog timer expire while we were actually blocking
         *  on it?                                                    
         */                                                           
        _ISR_Disable( level );                                        
 80044e0:	90 00 08 00 	rcsr r1,IE                                     
 80044e4:	34 02 ff fe 	mvi r2,-2                                      
 80044e8:	a0 22 10 00 	and r2,r1,r2                                   
 80044ec:	d0 02 00 00 	wcsr IE,r2                                     
          local_state = the_period->state;                            
          the_period->state = RATE_MONOTONIC_ACTIVE;                  
 80044f0:	34 03 00 02 	mvi r3,2                                       
        /*                                                            
         *  Did the watchdog timer expire while we were actually blocking
         *  on it?                                                    
         */                                                           
        _ISR_Disable( level );                                        
          local_state = the_period->state;                            
 80044f4:	29 62 00 38 	lw r2,(r11+56)                                 
          the_period->state = RATE_MONOTONIC_ACTIVE;                  
 80044f8:	59 63 00 38 	sw (r11+56),r3                                 
        _ISR_Enable( level );                                         
 80044fc:	d0 01 00 00 	wcsr IE,r1                                     
                                                                      
        /*                                                            
         *  If it did, then we want to unblock ourself and continue as
         *  if nothing happen.  The period was reset in the timeout routine.
         */                                                           
        if ( local_state == RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING )   
 8004500:	34 01 00 03 	mvi r1,3                                       
 8004504:	44 41 00 04 	be r2,r1,8004514 <rtems_rate_monotonic_period+0x1fc><== NEVER TAKEN
          _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
                                                                      
        _Thread_Enable_dispatch();                                    
 8004508:	f8 00 0d d4 	calli 8007c58 <_Thread_Enable_dispatch>        
        return RTEMS_SUCCESSFUL;                                      
 800450c:	34 01 00 00 	mvi r1,0                                       
 8004510:	e3 ff ff 95 	bi 8004364 <rtems_rate_monotonic_period+0x4c>  
        /*                                                            
         *  If it did, then we want to unblock ourself and continue as
         *  if nothing happen.  The period was reset in the timeout routine.
         */                                                           
        if ( local_state == RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING )   
          _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
 8004514:	29 81 00 0c 	lw r1,(r12+12)                                 <== NOT EXECUTED
 8004518:	34 02 40 00 	mvi r2,16384                                   <== NOT EXECUTED
 800451c:	f8 00 0c f6 	calli 80078f4 <_Thread_Clear_state>            <== NOT EXECUTED
 8004520:	e3 ff ff fa 	bi 8004508 <rtems_rate_monotonic_period+0x1f0> <== NOT EXECUTED
                                                                      

08004524 <rtems_rate_monotonic_report_statistics_with_plugin>: */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) {
 8004524:	37 9c ff 5c 	addi sp,sp,-164                                
 8004528:	5b 8b 00 44 	sw (sp+68),r11                                 
 800452c:	5b 8c 00 40 	sw (sp+64),r12                                 
 8004530:	5b 8d 00 3c 	sw (sp+60),r13                                 
 8004534:	5b 8e 00 38 	sw (sp+56),r14                                 
 8004538:	5b 8f 00 34 	sw (sp+52),r15                                 
 800453c:	5b 90 00 30 	sw (sp+48),r16                                 
 8004540:	5b 91 00 2c 	sw (sp+44),r17                                 
 8004544:	5b 92 00 28 	sw (sp+40),r18                                 
 8004548:	5b 93 00 24 	sw (sp+36),r19                                 
 800454c:	5b 94 00 20 	sw (sp+32),r20                                 
 8004550:	5b 95 00 1c 	sw (sp+28),r21                                 
 8004554:	5b 96 00 18 	sw (sp+24),r22                                 
 8004558:	5b 97 00 14 	sw (sp+20),r23                                 
 800455c:	5b 98 00 10 	sw (sp+16),r24                                 
 8004560:	5b 99 00 0c 	sw (sp+12),r25                                 
 8004564:	5b 9b 00 08 	sw (sp+8),fp                                   
 8004568:	5b 9d 00 04 	sw (sp+4),ra                                   
 800456c:	b8 40 68 00 	mv r13,r2                                      
 8004570:	b8 20 78 00 	mv r15,r1                                      
  rtems_id                               id;                          
  rtems_rate_monotonic_period_statistics the_stats;                   
  rtems_rate_monotonic_period_status     the_status;                  
  char                                   name[5];                     
                                                                      
  if ( !print )                                                       
 8004574:	44 40 00 2f 	be r2,r0,8004630 <rtems_rate_monotonic_report_statistics_with_plugin+0x10c><== NEVER TAKEN
    return;                                                           
                                                                      
  (*print)( context, "Period information by period\n" );              
 8004578:	78 02 08 01 	mvhi r2,0x801                                  
 800457c:	38 42 d9 ac 	ori r2,r2,0xd9ac                               
 8004580:	d9 a0 00 00 	call r13                                       
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    (*print)( context, "--- CPU times are in seconds ---\n" );        
 8004584:	78 02 08 01 	mvhi r2,0x801                                  
 8004588:	38 42 d9 cc 	ori r2,r2,0xd9cc                               
 800458c:	b9 e0 08 00 	mv r1,r15                                      
 8004590:	d9 a0 00 00 	call r13                                       
    (*print)( context, "--- Wall times are in seconds ---\n" );       
 8004594:	78 02 08 01 	mvhi r2,0x801                                  
 8004598:	38 42 d9 f0 	ori r2,r2,0xd9f0                               
 800459c:	b9 e0 08 00 	mv r1,r15                                      
 80045a0:	d9 a0 00 00 	call r13                                       
  Be sure to test the various cases.                                  
  (*print)( context,"\                                                
1234567890123456789012345678901234567890123456789012345678901234567890123456789\
\n");                                                                 
*/                                                                    
  (*print)( context, "   ID     OWNER COUNT MISSED     "              
 80045a4:	78 02 08 01 	mvhi r2,0x801                                  
 80045a8:	38 42 da 14 	ori r2,r2,0xda14                               
 80045ac:	b9 e0 08 00 	mv r1,r15                                      
 80045b0:	d9 a0 00 00 	call r13                                       
       #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                     
          "          "                                                
       #endif                                                         
          "   WALL TIME\n"                                            
  );                                                                  
  (*print)( context, "                               "                
 80045b4:	78 02 08 01 	mvhi r2,0x801                                  
                                                                      
  /*                                                                  
   * Cycle through all possible ids and try to report on each one.  If it
   * is a period that is inactive, we just get an error back.  No big deal.
   */                                                                 
  for ( id=_Rate_monotonic_Information.minimum_id ;                   
 80045b8:	78 0c 08 02 	mvhi r12,0x802                                 
       #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                     
          "          "                                                
       #endif                                                         
          "   WALL TIME\n"                                            
  );                                                                  
  (*print)( context, "                               "                
 80045bc:	b9 e0 08 00 	mv r1,r15                                      
 80045c0:	38 42 da 60 	ori r2,r2,0xda60                               
                                                                      
  /*                                                                  
   * Cycle through all possible ids and try to report on each one.  If it
   * is a period that is inactive, we just get an error back.  No big deal.
   */                                                                 
  for ( id=_Rate_monotonic_Information.minimum_id ;                   
 80045c4:	39 8c 08 78 	ori r12,r12,0x878                              
       #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                     
          "          "                                                
       #endif                                                         
          "   WALL TIME\n"                                            
  );                                                                  
  (*print)( context, "                               "                
 80045c8:	d9 a0 00 00 	call r13                                       
                                                                      
  /*                                                                  
   * Cycle through all possible ids and try to report on each one.  If it
   * is a period that is inactive, we just get an error back.  No big deal.
   */                                                                 
  for ( id=_Rate_monotonic_Information.minimum_id ;                   
 80045cc:	29 81 00 0c 	lw r1,(r12+12)                                 
 80045d0:	29 8b 00 08 	lw r11,(r12+8)                                 
 80045d4:	55 61 00 17 	bgu r11,r1,8004630 <rtems_rate_monotonic_report_statistics_with_plugin+0x10c><== NEVER TAKEN
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
 80045d8:	78 12 08 01 	mvhi r18,0x801                                 
      struct timespec *min_cpu = &the_stats.min_cpu_time;             
      struct timespec *max_cpu = &the_stats.max_cpu_time;             
      struct timespec *total_cpu = &the_stats.total_cpu_time;         
                                                                      
      _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average );
      (*print)( context,                                              
 80045dc:	78 15 08 01 	mvhi r21,0x801                                 
      struct timespec *min_wall = &the_stats.min_wall_time;           
      struct timespec *max_wall = &the_stats.max_wall_time;           
      struct timespec *total_wall = &the_stats.total_wall_time;       
                                                                      
      _Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average);
      (*print)( context,                                              
 80045e0:	78 14 08 01 	mvhi r20,0x801                                 
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
 80045e4:	78 11 08 01 	mvhi r17,0x801                                 
 80045e8:	37 90 00 48 	addi r16,sp,72                                 
    #if defined(RTEMS_DEBUG)                                          
      status = rtems_rate_monotonic_get_status( id, &the_status );    
      if ( status != RTEMS_SUCCESSFUL )                               
        continue;                                                     
    #else                                                             
      (void) rtems_rate_monotonic_get_status( id, &the_status );      
 80045ec:	37 98 00 80 	addi r24,sp,128                                
    #endif                                                            
                                                                      
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
 80045f0:	37 93 00 a0 	addi r19,sp,160                                
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
 80045f4:	3a 52 da ac 	ori r18,r18,0xdaac                             
    {                                                                 
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      struct timespec  cpu_average;                                   
      struct timespec *min_cpu = &the_stats.min_cpu_time;             
      struct timespec *max_cpu = &the_stats.max_cpu_time;             
      struct timespec *total_cpu = &the_stats.total_cpu_time;         
 80045f8:	37 97 00 60 	addi r23,sp,96                                 
                                                                      
      _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average );
 80045fc:	37 96 00 98 	addi r22,sp,152                                
      (*print)( context,                                              
 8004600:	3a b5 da c4 	ori r21,r21,0xdac4                             
    {                                                                 
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      struct timespec  wall_average;                                  
      struct timespec *min_wall = &the_stats.min_wall_time;           
      struct timespec *max_wall = &the_stats.max_wall_time;           
      struct timespec *total_wall = &the_stats.total_wall_time;       
 8004604:	37 9b 00 78 	addi fp,sp,120                                 
                                                                      
      _Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average);
      (*print)( context,                                              
 8004608:	3a 94 da e4 	ori r20,r20,0xdae4                             
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
 800460c:	3a 31 cf f0 	ori r17,r17,0xcff0                             
   * is a period that is inactive, we just get an error back.  No big deal.
   */                                                                 
  for ( id=_Rate_monotonic_Information.minimum_id ;                   
        id <= _Rate_monotonic_Information.maximum_id ;                
        id++ ) {                                                      
    status = rtems_rate_monotonic_get_statistics( id, &the_stats );   
 8004610:	b9 60 08 00 	mv r1,r11                                      
 8004614:	ba 00 10 00 	mv r2,r16                                      
 8004618:	f8 00 1b a6 	calli 800b4b0 <rtems_rate_monotonic_get_statistics>
 800461c:	b8 20 70 00 	mv r14,r1                                      
    if ( status != RTEMS_SUCCESSFUL )                                 
 8004620:	44 20 00 17 	be r1,r0,800467c <rtems_rate_monotonic_report_statistics_with_plugin+0x158>
                                                                      
  /*                                                                  
   * Cycle through all possible ids and try to report on each one.  If it
   * is a period that is inactive, we just get an error back.  No big deal.
   */                                                                 
  for ( id=_Rate_monotonic_Information.minimum_id ;                   
 8004624:	29 85 00 0c 	lw r5,(r12+12)                                 
        id <= _Rate_monotonic_Information.maximum_id ;                
        id++ ) {                                                      
 8004628:	35 6b 00 01 	addi r11,r11,1                                 
                                                                      
  /*                                                                  
   * Cycle through all possible ids and try to report on each one.  If it
   * is a period that is inactive, we just get an error back.  No big deal.
   */                                                                 
  for ( id=_Rate_monotonic_Information.minimum_id ;                   
 800462c:	50 ab ff f9 	bgeu r5,r11,8004610 <rtems_rate_monotonic_report_statistics_with_plugin+0xec>
        the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall
      );                                                              
    #endif                                                            
    }                                                                 
  }                                                                   
}                                                                     
 8004630:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004634:	2b 8b 00 44 	lw r11,(sp+68)                                 
 8004638:	2b 8c 00 40 	lw r12,(sp+64)                                 
 800463c:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 8004640:	2b 8e 00 38 	lw r14,(sp+56)                                 
 8004644:	2b 8f 00 34 	lw r15,(sp+52)                                 
 8004648:	2b 90 00 30 	lw r16,(sp+48)                                 
 800464c:	2b 91 00 2c 	lw r17,(sp+44)                                 
 8004650:	2b 92 00 28 	lw r18,(sp+40)                                 
 8004654:	2b 93 00 24 	lw r19,(sp+36)                                 
 8004658:	2b 94 00 20 	lw r20,(sp+32)                                 
 800465c:	2b 95 00 1c 	lw r21,(sp+28)                                 
 8004660:	2b 96 00 18 	lw r22,(sp+24)                                 
 8004664:	2b 97 00 14 	lw r23,(sp+20)                                 
 8004668:	2b 98 00 10 	lw r24,(sp+16)                                 
 800466c:	2b 99 00 0c 	lw r25,(sp+12)                                 
 8004670:	2b 9b 00 08 	lw fp,(sp+8)                                   
 8004674:	37 9c 00 a4 	addi sp,sp,164                                 
 8004678:	c3 a0 00 00 	ret                                            
    #if defined(RTEMS_DEBUG)                                          
      status = rtems_rate_monotonic_get_status( id, &the_status );    
      if ( status != RTEMS_SUCCESSFUL )                               
        continue;                                                     
    #else                                                             
      (void) rtems_rate_monotonic_get_status( id, &the_status );      
 800467c:	bb 00 10 00 	mv r2,r24                                      
 8004680:	b9 60 08 00 	mv r1,r11                                      
 8004684:	f8 00 1b cb 	calli 800b5b0 <rtems_rate_monotonic_get_status>
    #endif                                                            
                                                                      
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
 8004688:	2b 81 00 80 	lw r1,(sp+128)                                 
 800468c:	ba 60 18 00 	mv r3,r19                                      
 8004690:	34 02 00 05 	mvi r2,5                                       
 8004694:	f8 00 00 ba 	calli 800497c <rtems_object_get_name>          
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
 8004698:	2b 85 00 48 	lw r5,(sp+72)                                  
 800469c:	2b 86 00 4c 	lw r6,(sp+76)                                  
 80046a0:	ba 40 10 00 	mv r2,r18                                      
 80046a4:	b9 60 18 00 	mv r3,r11                                      
 80046a8:	b9 e0 08 00 	mv r1,r15                                      
 80046ac:	ba 60 20 00 	mv r4,r19                                      
 80046b0:	d9 a0 00 00 	call r13                                       
    );                                                                
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
 80046b4:	2b 85 00 48 	lw r5,(sp+72)                                  
      struct timespec  cpu_average;                                   
      struct timespec *min_cpu = &the_stats.min_cpu_time;             
      struct timespec *max_cpu = &the_stats.max_cpu_time;             
      struct timespec *total_cpu = &the_stats.total_cpu_time;         
                                                                      
      _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average );
 80046b8:	ba c0 18 00 	mv r3,r22                                      
 80046bc:	ba e0 08 00 	mv r1,r23                                      
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
 80046c0:	ba 20 10 00 	mv r2,r17                                      
    );                                                                
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
 80046c4:	5c ae 00 04 	bne r5,r14,80046d4 <rtems_rate_monotonic_report_statistics_with_plugin+0x1b0>
      (*print)( context, "\n" );                                      
 80046c8:	b9 e0 08 00 	mv r1,r15                                      
 80046cc:	d9 a0 00 00 	call r13                                       
      continue;                                                       
 80046d0:	e3 ff ff d5 	bi 8004624 <rtems_rate_monotonic_report_statistics_with_plugin+0x100>
      struct timespec  cpu_average;                                   
      struct timespec *min_cpu = &the_stats.min_cpu_time;             
      struct timespec *max_cpu = &the_stats.max_cpu_time;             
      struct timespec *total_cpu = &the_stats.total_cpu_time;         
                                                                      
      _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average );
 80046d4:	b8 a0 10 00 	mv r2,r5                                       
 80046d8:	f8 00 10 9e 	calli 8008950 <_Timespec_Divide_by_integer>    
      (*print)( context,                                              
 80046dc:	2b 81 00 54 	lw r1,(sp+84)                                  
 80046e0:	34 02 03 e8 	mvi r2,1000                                    
 80046e4:	f8 00 5e a7 	calli 801c180 <__divsi3>                       
 80046e8:	b8 20 c8 00 	mv r25,r1                                      
 80046ec:	2b 81 00 5c 	lw r1,(sp+92)                                  
 80046f0:	34 02 03 e8 	mvi r2,1000                                    
 80046f4:	f8 00 5e a3 	calli 801c180 <__divsi3>                       
 80046f8:	b8 20 70 00 	mv r14,r1                                      
 80046fc:	2b 81 00 9c 	lw r1,(sp+156)                                 
 8004700:	34 02 03 e8 	mvi r2,1000                                    
 8004704:	f8 00 5e 9f 	calli 801c180 <__divsi3>                       
 8004708:	2b 85 00 58 	lw r5,(sp+88)                                  
 800470c:	2b 87 00 98 	lw r7,(sp+152)                                 
 8004710:	2b 83 00 50 	lw r3,(sp+80)                                  
 8004714:	b8 20 40 00 	mv r8,r1                                       
 8004718:	bb 20 20 00 	mv r4,r25                                      
 800471c:	b9 c0 30 00 	mv r6,r14                                      
 8004720:	ba a0 10 00 	mv r2,r21                                      
 8004724:	b9 e0 08 00 	mv r1,r15                                      
 8004728:	d9 a0 00 00 	call r13                                       
      struct timespec  wall_average;                                  
      struct timespec *min_wall = &the_stats.min_wall_time;           
      struct timespec *max_wall = &the_stats.max_wall_time;           
      struct timespec *total_wall = &the_stats.total_wall_time;       
                                                                      
      _Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average);
 800472c:	2b 82 00 48 	lw r2,(sp+72)                                  
 8004730:	ba c0 18 00 	mv r3,r22                                      
 8004734:	bb 60 08 00 	mv r1,fp                                       
 8004738:	f8 00 10 86 	calli 8008950 <_Timespec_Divide_by_integer>    
      (*print)( context,                                              
 800473c:	2b 81 00 6c 	lw r1,(sp+108)                                 
 8004740:	34 02 03 e8 	mvi r2,1000                                    
 8004744:	f8 00 5e 8f 	calli 801c180 <__divsi3>                       
 8004748:	b8 20 c8 00 	mv r25,r1                                      
 800474c:	2b 81 00 74 	lw r1,(sp+116)                                 
 8004750:	34 02 03 e8 	mvi r2,1000                                    
 8004754:	f8 00 5e 8b 	calli 801c180 <__divsi3>                       
 8004758:	b8 20 70 00 	mv r14,r1                                      
 800475c:	2b 81 00 9c 	lw r1,(sp+156)                                 
 8004760:	34 02 03 e8 	mvi r2,1000                                    
 8004764:	f8 00 5e 87 	calli 801c180 <__divsi3>                       
 8004768:	2b 83 00 68 	lw r3,(sp+104)                                 
 800476c:	2b 85 00 70 	lw r5,(sp+112)                                 
 8004770:	2b 87 00 98 	lw r7,(sp+152)                                 
 8004774:	b8 20 40 00 	mv r8,r1                                       
 8004778:	ba 80 10 00 	mv r2,r20                                      
 800477c:	b9 e0 08 00 	mv r1,r15                                      
 8004780:	bb 20 20 00 	mv r4,r25                                      
 8004784:	b9 c0 30 00 	mv r6,r14                                      
 8004788:	d9 a0 00 00 	call r13                                       
 800478c:	e3 ff ff a6 	bi 8004624 <rtems_rate_monotonic_report_statistics_with_plugin+0x100>
                                                                      

080047b4 <rtems_rate_monotonic_reset_all_statistics>: /* * rtems_rate_monotonic_reset_all_statistics */ void rtems_rate_monotonic_reset_all_statistics( void ) {
 80047b4:	37 9c ff f4 	addi sp,sp,-12                                 
 80047b8:	5b 8b 00 0c 	sw (sp+12),r11                                 
 80047bc:	5b 8c 00 08 	sw (sp+8),r12                                  
 80047c0:	5b 9d 00 04 	sw (sp+4),ra                                   
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
 80047c4:	78 01 08 02 	mvhi r1,0x802                                  
 80047c8:	38 21 09 a0 	ori r1,r1,0x9a0                                
 80047cc:	28 22 00 00 	lw r2,(r1+0)                                   
 80047d0:	34 42 00 01 	addi r2,r2,1                                   
 80047d4:	58 22 00 00 	sw (r1+0),r2                                   
                                                                      
    /*                                                                
     * Cycle through all possible ids and try to reset each one.  If it
     * is a period that is inactive, we just get an error back.  No big deal.
     */                                                               
    for ( id=_Rate_monotonic_Information.minimum_id ;                 
 80047d8:	78 0c 08 02 	mvhi r12,0x802                                 
 80047dc:	39 8c 08 78 	ori r12,r12,0x878                              
 80047e0:	29 8b 00 08 	lw r11,(r12+8)                                 
 80047e4:	29 81 00 0c 	lw r1,(r12+12)                                 
 80047e8:	55 61 00 06 	bgu r11,r1,8004800 <rtems_rate_monotonic_reset_all_statistics+0x4c><== NEVER TAKEN
          id <= _Rate_monotonic_Information.maximum_id ;              
          id++ ) {                                                    
      (void) rtems_rate_monotonic_reset_statistics( id );             
 80047ec:	b9 60 08 00 	mv r1,r11                                      
 80047f0:	f8 00 00 0a 	calli 8004818 <rtems_rate_monotonic_reset_statistics>
                                                                      
    /*                                                                
     * Cycle through all possible ids and try to reset each one.  If it
     * is a period that is inactive, we just get an error back.  No big deal.
     */                                                               
    for ( id=_Rate_monotonic_Information.minimum_id ;                 
 80047f4:	29 81 00 0c 	lw r1,(r12+12)                                 
          id <= _Rate_monotonic_Information.maximum_id ;              
          id++ ) {                                                    
 80047f8:	35 6b 00 01 	addi r11,r11,1                                 
                                                                      
    /*                                                                
     * Cycle through all possible ids and try to reset each one.  If it
     * is a period that is inactive, we just get an error back.  No big deal.
     */                                                               
    for ( id=_Rate_monotonic_Information.minimum_id ;                 
 80047fc:	50 2b ff fc 	bgeu r1,r11,80047ec <rtems_rate_monotonic_reset_all_statistics+0x38>
    }                                                                 
                                                                      
  /*                                                                  
   *  Done so exit thread dispatching disabled critical section.      
   */                                                                 
  _Thread_Enable_dispatch();                                          
 8004800:	f8 00 0d 16 	calli 8007c58 <_Thread_Enable_dispatch>        
}                                                                     
 8004804:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004808:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 800480c:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8004810:	37 9c 00 0c 	addi sp,sp,12                                  
 8004814:	c3 a0 00 00 	ret                                            
                                                                      

08002af0 <rtems_semaphore_create>: uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) {
 8002af0:	37 9c ff c4 	addi sp,sp,-60                                 
 8002af4:	5b 8b 00 18 	sw (sp+24),r11                                 
 8002af8:	5b 8c 00 14 	sw (sp+20),r12                                 
 8002afc:	5b 8d 00 10 	sw (sp+16),r13                                 
 8002b00:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8002b04:	5b 8f 00 08 	sw (sp+8),r15                                  
 8002b08:	5b 9d 00 04 	sw (sp+4),ra                                   
 8002b0c:	b8 20 60 00 	mv r12,r1                                      
 8002b10:	b8 40 58 00 	mv r11,r2                                      
  CORE_mutex_Attributes       the_mutex_attr;                         
  CORE_semaphore_Attributes   the_semaphore_attr;                     
  CORE_mutex_Status           mutex_status;                           
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
 8002b14:	34 01 00 03 	mvi r1,3                                       
  register Semaphore_Control *the_semaphore;                          
  CORE_mutex_Attributes       the_mutex_attr;                         
  CORE_semaphore_Attributes   the_semaphore_attr;                     
  CORE_mutex_Status           mutex_status;                           
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
 8002b18:	45 80 00 09 	be r12,r0,8002b3c <rtems_semaphore_create+0x4c>
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !id )                                                          
    return RTEMS_INVALID_ADDRESS;                                     
 8002b1c:	34 01 00 09 	mvi r1,9                                       
  CORE_mutex_Status           mutex_status;                           
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !id )                                                          
 8002b20:	44 a0 00 07 	be r5,r0,8002b3c <rtems_semaphore_create+0x4c> 
 *    id       - semaphore id                                         
 *    RTEMS_SUCCESSFUL - if successful                                
 *    error code - if unsuccessful                                    
 */                                                                   
                                                                      
rtems_status_code rtems_semaphore_create(                             
 8002b24:	20 62 00 c0 	andi r2,r3,0xc0                                
      return RTEMS_NOT_DEFINED;                                       
                                                                      
  } else                                                              
#endif                                                                
                                                                      
  if ( _Attributes_Is_inherit_priority( attribute_set ) ||            
 8002b28:	44 40 00 45 	be r2,r0,8002c3c <rtems_semaphore_create+0x14c>
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Attributes_Is_binary_semaphore(            
  rtems_attribute attribute_set                                       
)                                                                     
{                                                                     
  return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_BINARY_SEMAPHORE);
 8002b2c:	20 67 00 30 	andi r7,r3,0x30                                
              _Attributes_Is_priority_ceiling( attribute_set ) ) {    
                                                                      
    if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) &&       
 8002b30:	34 06 00 10 	mvi r6,16                                      
            _Attributes_Is_priority( attribute_set ) ) )              
      return RTEMS_NOT_DEFINED;                                       
 8002b34:	34 01 00 0b 	mvi r1,11                                      
#endif                                                                
                                                                      
  if ( _Attributes_Is_inherit_priority( attribute_set ) ||            
              _Attributes_Is_priority_ceiling( attribute_set ) ) {    
                                                                      
    if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) &&       
 8002b38:	44 e6 00 09 	be r7,r6,8002b5c <rtems_semaphore_create+0x6c> 
      0                          /* Not used */                       
    );                                                                
#endif                                                                
  _Thread_Enable_dispatch();                                          
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 8002b3c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002b40:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8002b44:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8002b48:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8002b4c:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8002b50:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8002b54:	37 9c 00 3c 	addi sp,sp,60                                  
 8002b58:	c3 a0 00 00 	ret                                            
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Attributes_Is_priority(                    
  rtems_attribute attribute_set                                       
)                                                                     
{                                                                     
   return ( attribute_set & RTEMS_PRIORITY ) ? true : false;          
 8002b5c:	20 66 00 04 	andi r6,r3,0x4                                 
#endif                                                                
                                                                      
  if ( _Attributes_Is_inherit_priority( attribute_set ) ||            
              _Attributes_Is_priority_ceiling( attribute_set ) ) {    
                                                                      
    if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) &&       
 8002b60:	44 c0 ff f7 	be r6,r0,8002b3c <rtems_semaphore_create+0x4c> 
            _Attributes_Is_priority( attribute_set ) ) )              
      return RTEMS_NOT_DEFINED;                                       
                                                                      
  }                                                                   
                                                                      
  if ( _Attributes_Is_inherit_priority( attribute_set ) &&            
 8002b64:	34 06 00 c0 	mvi r6,192                                     
 8002b68:	34 0f 00 10 	mvi r15,16                                     
 8002b6c:	44 46 ff f4 	be r2,r6,8002b3c <rtems_semaphore_create+0x4c> 
       _Attributes_Is_priority_ceiling( attribute_set ) )             
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) )
 8002b70:	34 02 00 01 	mvi r2,1                                       
    return RTEMS_INVALID_NUMBER;                                      
 8002b74:	34 01 00 0a 	mvi r1,10                                      
                                                                      
  if ( _Attributes_Is_inherit_priority( attribute_set ) &&            
       _Attributes_Is_priority_ceiling( attribute_set ) )             
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) )
 8002b78:	55 62 ff f1 	bgu r11,r2,8002b3c <rtems_semaphore_create+0x4c>
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
 8002b7c:	78 01 08 01 	mvhi r1,0x801                                  
 8002b80:	38 21 38 88 	ori r1,r1,0x3888                               
 8002b84:	28 22 00 00 	lw r2,(r1+0)                                   
 8002b88:	34 42 00 01 	addi r2,r2,1                                   
 8002b8c:	58 22 00 00 	sw (r1+0),r2                                   
 *  This function allocates a semaphore control block from            
 *  the inactive chain of free semaphore control blocks.              
 */                                                                   
RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Allocate( void )   
{                                                                     
  return (Semaphore_Control *) _Objects_Allocate( &_Semaphore_Information );
 8002b90:	78 0e 08 01 	mvhi r14,0x801                                 
 8002b94:	39 ce 37 a0 	ori r14,r14,0x37a0                             
 8002b98:	b9 c0 08 00 	mv r1,r14                                      
 8002b9c:	5b 83 00 24 	sw (sp+36),r3                                  
 8002ba0:	5b 84 00 20 	sw (sp+32),r4                                  
 8002ba4:	5b 85 00 1c 	sw (sp+28),r5                                  
 8002ba8:	f8 00 06 3c 	calli 8004498 <_Objects_Allocate>              
 8002bac:	b8 20 68 00 	mv r13,r1                                      
                                                                      
  _Thread_Disable_dispatch();             /* prevents deletion */     
                                                                      
  the_semaphore = _Semaphore_Allocate();                              
                                                                      
  if ( !the_semaphore ) {                                             
 8002bb0:	2b 83 00 24 	lw r3,(sp+36)                                  
 8002bb4:	2b 84 00 20 	lw r4,(sp+32)                                  
 8002bb8:	2b 85 00 1c 	lw r5,(sp+28)                                  
 8002bbc:	44 20 00 36 	be r1,r0,8002c94 <rtems_semaphore_create+0x1a4>
    _Thread_Enable_dispatch();                                        
    return RTEMS_TOO_MANY;                                            
  }                                                                   
#endif                                                                
                                                                      
  the_semaphore->attribute_set = attribute_set;                       
 8002bc0:	58 23 00 10 	sw (r1+16),r3                                  
                                                                      
  /*                                                                  
   *  Initialize it as a counting semaphore.                          
   */                                                                 
  if ( _Attributes_Is_counting_semaphore( attribute_set ) ) {         
 8002bc4:	45 e0 00 21 	be r15,r0,8002c48 <rtems_semaphore_create+0x158>
 8002bc8:	20 61 00 04 	andi r1,r3,0x4                                 
  } else {                                                            
    /*                                                                
     *  It is either simple binary semaphore or a more powerful mutex 
     *  style binary semaphore.  This is the mutex style.             
     */                                                               
    if ( _Attributes_Is_priority( attribute_set ) )                   
 8002bcc:	44 20 00 2e 	be r1,r0,8002c84 <rtems_semaphore_create+0x194>
      the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY;    
 8002bd0:	34 01 00 01 	mvi r1,1                                       
 8002bd4:	5b 81 00 30 	sw (sp+48),r1                                  
    else                                                              
      the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO;        
                                                                      
    if ( _Attributes_Is_binary_semaphore( attribute_set ) ) {         
 8002bd8:	34 01 00 10 	mvi r1,16                                      
 8002bdc:	45 e1 00 31 	be r15,r1,8002ca0 <rtems_semaphore_create+0x1b0>
          the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING;
          the_mutex_attr.only_owner_release = true;                   
        }                                                             
      }                                                               
    } else /* must be simple binary semaphore */ {                    
      the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS;
 8002be0:	34 01 00 01 	mvi r1,1                                       
 8002be4:	5b 81 00 28 	sw (sp+40),r1                                  
      the_mutex_attr.only_owner_release = false;                      
 8002be8:	33 80 00 2c 	sb (sp+44),r0                                  
    }                                                                 
                                                                      
    mutex_status = _CORE_mutex_Initialize(                            
 8002bec:	65 63 00 01 	cmpei r3,r11,1                                 
 8002bf0:	37 82 00 28 	addi r2,sp,40                                  
 8002bf4:	35 a1 00 14 	addi r1,r13,20                                 
 8002bf8:	5b 85 00 1c 	sw (sp+28),r5                                  
 8002bfc:	f8 00 03 47 	calli 8003918 <_CORE_mutex_Initialize>         
      &the_semaphore->Core_control.mutex,                             
      &the_mutex_attr,                                                
      (count == 1) ? CORE_MUTEX_UNLOCKED : CORE_MUTEX_LOCKED          
    );                                                                
                                                                      
    if ( mutex_status == CORE_MUTEX_STATUS_CEILING_VIOLATED ) {       
 8002c00:	34 02 00 05 	mvi r2,5                                       
 8002c04:	2b 85 00 1c 	lw r5,(sp+28)                                  
 8002c08:	44 22 00 32 	be r1,r2,8002cd0 <rtems_semaphore_create+0x1e0><== NEVER TAKEN
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
 8002c0c:	29 a2 00 08 	lw r2,(r13+8)                                  
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 8002c10:	29 c3 00 1c 	lw r3,(r14+28)                                 
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 8002c14:	20 41 ff ff 	andi r1,r2,0xffff                              
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 8002c18:	b4 21 08 00 	add r1,r1,r1                                   
 8002c1c:	b4 21 08 00 	add r1,r1,r1                                   
 8002c20:	b4 61 08 00 	add r1,r3,r1                                   
 8002c24:	58 2d 00 00 	sw (r1+0),r13                                  
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
 8002c28:	59 ac 00 0c 	sw (r13+12),r12                                
    &_Semaphore_Information,                                          
    &the_semaphore->Object,                                           
    (Objects_Name) name                                               
  );                                                                  
                                                                      
  *id = the_semaphore->Object.id;                                     
 8002c2c:	58 a2 00 00 	sw (r5+0),r2                                   
      the_semaphore->Object.id,                                       
      name,                                                           
      0                          /* Not used */                       
    );                                                                
#endif                                                                
  _Thread_Enable_dispatch();                                          
 8002c30:	f8 00 0b 73 	calli 80059fc <_Thread_Enable_dispatch>        
  return RTEMS_SUCCESSFUL;                                            
 8002c34:	34 01 00 00 	mvi r1,0                                       
 8002c38:	e3 ff ff c1 	bi 8002b3c <rtems_semaphore_create+0x4c>       
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Attributes_Is_counting_semaphore(          
  rtems_attribute attribute_set                                       
)                                                                     
{                                                                     
  return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_COUNTING_SEMAPHORE);
 8002c3c:	20 6f 00 30 	andi r15,r3,0x30                               
                                                                      
  if ( _Attributes_Is_inherit_priority( attribute_set ) &&            
       _Attributes_Is_priority_ceiling( attribute_set ) )             
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) )
 8002c40:	5d e2 ff cc 	bne r15,r2,8002b70 <rtems_semaphore_create+0x80>
 8002c44:	e3 ff ff ce 	bi 8002b7c <rtems_semaphore_create+0x8c>       
   */                                                                 
  if ( _Attributes_Is_counting_semaphore( attribute_set ) ) {         
    /*                                                                
     *  This effectively disables limit checking.                     
     */                                                               
    the_semaphore_attr.maximum_count = 0xFFFFFFFF;                    
 8002c48:	34 01 ff ff 	mvi r1,-1                                      
 8002c4c:	5b 81 00 38 	sw (sp+56),r1                                  
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Attributes_Is_priority(                    
  rtems_attribute attribute_set                                       
)                                                                     
{                                                                     
   return ( attribute_set & RTEMS_PRIORITY ) ? true : false;          
 8002c50:	20 63 00 04 	andi r3,r3,0x4                                 
                                                                      
    if ( _Attributes_Is_priority( attribute_set ) )                   
 8002c54:	44 6f 00 0e 	be r3,r15,8002c8c <rtems_semaphore_create+0x19c>
      the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY;
 8002c58:	34 01 00 01 	mvi r1,1                                       
 8002c5c:	5b 81 00 3c 	sw (sp+60),r1                                  
     *  The following are just to make Purify happy.                  
     */                                                               
    the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
    the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM;               
                                                                      
    _CORE_semaphore_Initialize(                                       
 8002c60:	35 a1 00 14 	addi r1,r13,20                                 
 8002c64:	37 82 00 38 	addi r2,sp,56                                  
 8002c68:	b9 60 18 00 	mv r3,r11                                      
 8002c6c:	5b 85 00 1c 	sw (sp+28),r5                                  
      the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO;
                                                                      
    /*                                                                
     *  The following are just to make Purify happy.                  
     */                                                               
    the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
 8002c70:	5b 80 00 28 	sw (sp+40),r0                                  
    the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM;               
 8002c74:	5b 80 00 34 	sw (sp+52),r0                                  
                                                                      
    _CORE_semaphore_Initialize(                                       
 8002c78:	f8 00 04 08 	calli 8003c98 <_CORE_semaphore_Initialize>     
 8002c7c:	2b 85 00 1c 	lw r5,(sp+28)                                  
 8002c80:	e3 ff ff e3 	bi 8002c0c <rtems_semaphore_create+0x11c>      
     *  style binary semaphore.  This is the mutex style.             
     */                                                               
    if ( _Attributes_Is_priority( attribute_set ) )                   
      the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY;    
    else                                                              
      the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO;        
 8002c84:	5b 80 00 30 	sw (sp+48),r0                                  
 8002c88:	e3 ff ff d4 	bi 8002bd8 <rtems_semaphore_create+0xe8>       
    the_semaphore_attr.maximum_count = 0xFFFFFFFF;                    
                                                                      
    if ( _Attributes_Is_priority( attribute_set ) )                   
      the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY;
    else                                                              
      the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO;
 8002c8c:	5b 80 00 3c 	sw (sp+60),r0                                  
 8002c90:	e3 ff ff f4 	bi 8002c60 <rtems_semaphore_create+0x170>      
  _Thread_Disable_dispatch();             /* prevents deletion */     
                                                                      
  the_semaphore = _Semaphore_Allocate();                              
                                                                      
  if ( !the_semaphore ) {                                             
    _Thread_Enable_dispatch();                                        
 8002c94:	f8 00 0b 5a 	calli 80059fc <_Thread_Enable_dispatch>        
    return RTEMS_TOO_MANY;                                            
 8002c98:	34 01 00 05 	mvi r1,5                                       
 8002c9c:	e3 ff ff a8 	bi 8002b3c <rtems_semaphore_create+0x4c>       
    if ( _Attributes_Is_binary_semaphore( attribute_set ) ) {         
      the_mutex_attr.priority_ceiling      = priority_ceiling;        
      the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
      the_mutex_attr.only_owner_release    = false;                   
                                                                      
      if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) {
 8002ca0:	2b 81 00 30 	lw r1,(sp+48)                                  
      the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY;    
    else                                                              
      the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO;        
                                                                      
    if ( _Attributes_Is_binary_semaphore( attribute_set ) ) {         
      the_mutex_attr.priority_ceiling      = priority_ceiling;        
 8002ca4:	5b 84 00 34 	sw (sp+52),r4                                  
      the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
 8002ca8:	5b 80 00 28 	sw (sp+40),r0                                  
      the_mutex_attr.only_owner_release    = false;                   
 8002cac:	33 80 00 2c 	sb (sp+44),r0                                  
                                                                      
      if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) {
 8002cb0:	34 02 00 01 	mvi r2,1                                       
 8002cb4:	5c 22 ff ce 	bne r1,r2,8002bec <rtems_semaphore_create+0xfc>
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Attributes_Is_inherit_priority(            
  rtems_attribute attribute_set                                       
)                                                                     
{                                                                     
   return ( attribute_set & RTEMS_INHERIT_PRIORITY ) ? true : false;  
 8002cb8:	20 62 00 40 	andi r2,r3,0x40                                
        if ( _Attributes_Is_inherit_priority( attribute_set ) ) {     
 8002cbc:	44 40 00 0b 	be r2,r0,8002ce8 <rtems_semaphore_create+0x1f8>
          the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT;
 8002cc0:	34 02 00 02 	mvi r2,2                                       
 8002cc4:	5b 82 00 30 	sw (sp+48),r2                                  
          the_mutex_attr.only_owner_release = true;                   
 8002cc8:	33 81 00 2c 	sb (sp+44),r1                                  
 8002ccc:	e3 ff ff c8 	bi 8002bec <rtems_semaphore_create+0xfc>       
 */                                                                   
RTEMS_INLINE_ROUTINE void _Semaphore_Free (                           
  Semaphore_Control *the_semaphore                                    
)                                                                     
{                                                                     
  _Objects_Free( &_Semaphore_Information, &the_semaphore->Object );   
 8002cd0:	b9 c0 08 00 	mv r1,r14                                      
 8002cd4:	b9 a0 10 00 	mv r2,r13                                      
 8002cd8:	f8 00 06 f3 	calli 80048a4 <_Objects_Free>                  
      (count == 1) ? CORE_MUTEX_UNLOCKED : CORE_MUTEX_LOCKED          
    );                                                                
                                                                      
    if ( mutex_status == CORE_MUTEX_STATUS_CEILING_VIOLATED ) {       
      _Semaphore_Free( the_semaphore );                               
      _Thread_Enable_dispatch();                                      
 8002cdc:	f8 00 0b 48 	calli 80059fc <_Thread_Enable_dispatch>        
      return RTEMS_INVALID_PRIORITY;                                  
 8002ce0:	34 01 00 13 	mvi r1,19                                      
 8002ce4:	e3 ff ff 96 	bi 8002b3c <rtems_semaphore_create+0x4c>       
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Attributes_Is_priority_ceiling(            
  rtems_attribute attribute_set                                       
)                                                                     
{                                                                     
   return ( attribute_set & RTEMS_PRIORITY_CEILING ) ? true : false;  
 8002ce8:	20 63 00 80 	andi r3,r3,0x80                                
                                                                      
      if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) {
        if ( _Attributes_Is_inherit_priority( attribute_set ) ) {     
          the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT;
          the_mutex_attr.only_owner_release = true;                   
        } else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) {
 8002cec:	44 62 ff c0 	be r3,r2,8002bec <rtems_semaphore_create+0xfc> 
          the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING;
 8002cf0:	34 02 00 03 	mvi r2,3                                       
 8002cf4:	5b 82 00 30 	sw (sp+48),r2                                  
          the_mutex_attr.only_owner_release = true;                   
 8002cf8:	33 81 00 2c 	sb (sp+44),r1                                  
 8002cfc:	e3 ff ff bc 	bi 8002bec <rtems_semaphore_create+0xfc>       
                                                                      

08013068 <rtems_signal_send>: rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) {
 8013068:	37 9c ff f4 	addi sp,sp,-12                                 
 801306c:	5b 8b 00 08 	sw (sp+8),r11                                  
 8013070:	5b 9d 00 04 	sw (sp+4),ra                                   
  Objects_Locations        location;                                  
  RTEMS_API_Control       *api;                                       
  ASR_Information         *asr;                                       
                                                                      
  if ( !signal_set )                                                  
    return RTEMS_INVALID_NUMBER;                                      
 8013074:	34 03 00 0a 	mvi r3,10                                      
                                                                      
rtems_status_code rtems_signal_send(                                  
  rtems_id          id,                                               
  rtems_signal_set  signal_set                                        
)                                                                     
{                                                                     
 8013078:	b8 40 58 00 	mv r11,r2                                      
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
  RTEMS_API_Control       *api;                                       
  ASR_Information         *asr;                                       
                                                                      
  if ( !signal_set )                                                  
 801307c:	5c 40 00 06 	bne r2,r0,8013094 <rtems_signal_send+0x2c>     
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8013080:	b8 60 08 00 	mv r1,r3                                       
 8013084:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8013088:	2b 8b 00 08 	lw r11,(sp+8)                                  
 801308c:	37 9c 00 0c 	addi sp,sp,12                                  
 8013090:	c3 a0 00 00 	ret                                            
  ASR_Information         *asr;                                       
                                                                      
  if ( !signal_set )                                                  
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 8013094:	37 82 00 0c 	addi r2,sp,12                                  
 8013098:	f8 00 15 84 	calli 80186a8 <_Thread_Get>                    
  switch ( location ) {                                               
 801309c:	2b 83 00 0c 	lw r3,(sp+12)                                  
 80130a0:	44 60 00 07 	be r3,r0,80130bc <rtems_signal_send+0x54>      
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 80130a4:	34 03 00 04 	mvi r3,4                                       
}                                                                     
 80130a8:	b8 60 08 00 	mv r1,r3                                       
 80130ac:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80130b0:	2b 8b 00 08 	lw r11,(sp+8)                                  
 80130b4:	37 9c 00 0c 	addi sp,sp,12                                  
 80130b8:	c3 a0 00 00 	ret                                            
                                                                      
  the_thread = _Thread_Get( id, &location );                          
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      api = the_thread->API_Extensions[ THREAD_API_RTEMS ];           
 80130bc:	28 22 01 18 	lw r2,(r1+280)                                 
      asr = &api->Signal;                                             
                                                                      
      if ( ! _ASR_Is_null_handler( asr->handler ) ) {                 
 80130c0:	28 44 00 0c 	lw r4,(r2+12)                                  
 80130c4:	44 83 00 23 	be r4,r3,8013150 <rtems_signal_send+0xe8>      
        if ( asr->is_enabled ) {                                      
 80130c8:	40 43 00 08 	lbu r3,(r2+8)                                  
 80130cc:	44 60 00 12 	be r3,r0,8013114 <rtems_signal_send+0xac>      
  rtems_signal_set *signal_set                                        
)                                                                     
{                                                                     
  ISR_Level              _level;                                      
                                                                      
  _ISR_Disable( _level );                                             
 80130d0:	90 00 18 00 	rcsr r3,IE                                     
 80130d4:	34 04 ff fe 	mvi r4,-2                                      
 80130d8:	a0 64 20 00 	and r4,r3,r4                                   
 80130dc:	d0 04 00 00 	wcsr IE,r4                                     
    *signal_set |= signals;                                           
 80130e0:	28 44 00 14 	lw r4,(r2+20)                                  
 80130e4:	b8 8b 58 00 	or r11,r4,r11                                  
 80130e8:	58 4b 00 14 	sw (r2+20),r11                                 
  _ISR_Enable( _level );                                              
 80130ec:	d0 03 00 00 	wcsr IE,r3                                     
          _ASR_Post_signals( signal_set, &asr->signals_posted );      
                                                                      
          if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
 80130f0:	78 02 08 03 	mvhi r2,0x803                                  
 80130f4:	38 42 ee 40 	ori r2,r2,0xee40                               
 80130f8:	28 43 00 08 	lw r3,(r2+8)                                   
 80130fc:	44 60 00 0e 	be r3,r0,8013134 <rtems_signal_send+0xcc>      
 8013100:	28 43 00 0c 	lw r3,(r2+12)                                  
 8013104:	5c 23 00 0c 	bne r1,r3,8013134 <rtems_signal_send+0xcc>     <== NEVER TAKEN
            _Thread_Dispatch_necessary = true;                        
 8013108:	34 01 00 01 	mvi r1,1                                       
 801310c:	30 41 00 18 	sb (r2+24),r1                                  
 8013110:	e0 00 00 09 	bi 8013134 <rtems_signal_send+0xcc>            
  rtems_signal_set *signal_set                                        
)                                                                     
{                                                                     
  ISR_Level              _level;                                      
                                                                      
  _ISR_Disable( _level );                                             
 8013114:	90 00 08 00 	rcsr r1,IE                                     
 8013118:	34 03 ff fe 	mvi r3,-2                                      
 801311c:	a0 23 18 00 	and r3,r1,r3                                   
 8013120:	d0 03 00 00 	wcsr IE,r3                                     
    *signal_set |= signals;                                           
 8013124:	28 43 00 18 	lw r3,(r2+24)                                  
 8013128:	b8 6b 58 00 	or r11,r3,r11                                  
 801312c:	58 4b 00 18 	sw (r2+24),r11                                 
  _ISR_Enable( _level );                                              
 8013130:	d0 01 00 00 	wcsr IE,r1                                     
        } else {                                                      
          _ASR_Post_signals( signal_set, &asr->signals_pending );     
        }                                                             
        _Thread_Enable_dispatch();                                    
 8013134:	f8 00 15 50 	calli 8018674 <_Thread_Enable_dispatch>        
        return RTEMS_SUCCESSFUL;                                      
 8013138:	34 03 00 00 	mvi r3,0                                       
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 801313c:	b8 60 08 00 	mv r1,r3                                       
 8013140:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8013144:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8013148:	37 9c 00 0c 	addi sp,sp,12                                  
 801314c:	c3 a0 00 00 	ret                                            
          _ASR_Post_signals( signal_set, &asr->signals_pending );     
        }                                                             
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
      _Thread_Enable_dispatch();                                      
 8013150:	f8 00 15 49 	calli 8018674 <_Thread_Enable_dispatch>        
      return RTEMS_NOT_DEFINED;                                       
 8013154:	34 03 00 0b 	mvi r3,11                                      
 8013158:	e3 ff ff ca 	bi 8013080 <rtems_signal_send+0x18>            
                                                                      

0800b514 <rtems_task_mode>: rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) {
 800b514:	37 9c ff dc 	addi sp,sp,-36                                 
 800b518:	5b 8b 00 24 	sw (sp+36),r11                                 
 800b51c:	5b 8c 00 20 	sw (sp+32),r12                                 
 800b520:	5b 8d 00 1c 	sw (sp+28),r13                                 
 800b524:	5b 8e 00 18 	sw (sp+24),r14                                 
 800b528:	5b 8f 00 14 	sw (sp+20),r15                                 
 800b52c:	5b 90 00 10 	sw (sp+16),r16                                 
 800b530:	5b 91 00 0c 	sw (sp+12),r17                                 
 800b534:	5b 92 00 08 	sw (sp+8),r18                                  
 800b538:	5b 9d 00 04 	sw (sp+4),ra                                   
 800b53c:	b8 40 70 00 	mv r14,r2                                      
 800b540:	b8 60 88 00 	mv r17,r3                                      
 800b544:	b8 20 80 00 	mv r16,r1                                      
  bool                is_asr_enabled = false;                         
  bool                needs_asr_dispatching = false;                  
  rtems_mode          old_mode;                                       
                                                                      
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
 800b548:	34 02 00 09 	mvi r2,9                                       
  ASR_Information    *asr;                                            
  bool                is_asr_enabled = false;                         
  bool                needs_asr_dispatching = false;                  
  rtems_mode          old_mode;                                       
                                                                      
  if ( !previous_mode_set )                                           
 800b54c:	44 60 00 46 	be r3,r0,800b664 <rtems_task_mode+0x150>       
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
 800b550:	78 0f 08 01 	mvhi r15,0x801                                 
 800b554:	39 ef 3a 28 	ori r15,r15,0x3a28                             
 800b558:	29 eb 00 0c 	lw r11,(r15+12)                                
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
 800b55c:	41 6d 00 74 	lbu r13,(r11+116)                              
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
 800b560:	29 61 00 7c 	lw r1,(r11+124)                                
                                                                      
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
 800b564:	29 6c 01 18 	lw r12,(r11+280)                               
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
 800b568:	65 ad 00 00 	cmpei r13,r13,0                                
 800b56c:	b5 ad 20 00 	add r4,r13,r13                                 
 800b570:	b4 84 20 00 	add r4,r4,r4                                   
 800b574:	b4 84 20 00 	add r4,r4,r4                                   
 800b578:	b4 84 20 00 	add r4,r4,r4                                   
 800b57c:	b4 84 20 00 	add r4,r4,r4                                   
 800b580:	b4 84 20 00 	add r4,r4,r4                                   
 800b584:	b4 84 20 00 	add r4,r4,r4                                   
 800b588:	b4 84 68 00 	add r13,r4,r4                                  
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
 800b58c:	5c 20 00 42 	bne r1,r0,800b694 <rtems_task_mode+0x180>      
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
 800b590:	41 92 00 08 	lbu r18,(r12+8)                                
  old_mode |= _ISR_Get_level();                                       
 800b594:	fb ff ef 0c 	calli 80071c4 <_CPU_ISR_Get_level>             
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
 800b598:	66 52 00 00 	cmpei r18,r18,0                                
 800b59c:	c8 12 90 00 	sub r18,r0,r18                                 
 800b5a0:	22 52 04 00 	andi r18,r18,0x400                             
 800b5a4:	ba 41 08 00 	or r1,r18,r1                                   
  old_mode |= _ISR_Get_level();                                       
 800b5a8:	b8 2d 68 00 	or r13,r1,r13                                  
                                                                      
  *previous_mode_set = old_mode;                                      
 800b5ac:	5a 2d 00 00 	sw (r17+0),r13                                 
                                                                      
  /*                                                                  
   *  These are generic thread scheduling characteristics.            
   */                                                                 
  if ( mask & RTEMS_PREEMPT_MASK )                                    
 800b5b0:	21 c1 01 00 	andi r1,r14,0x100                              
 800b5b4:	44 20 00 04 	be r1,r0,800b5c4 <rtems_task_mode+0xb0>        
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Modes_Is_preempt (                         
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
   return (mode_set & RTEMS_PREEMPT_MASK) == RTEMS_PREEMPT;           
 800b5b8:	22 01 01 00 	andi r1,r16,0x100                              
    executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
 800b5bc:	64 21 00 00 	cmpei r1,r1,0                                  
 800b5c0:	31 61 00 74 	sb (r11+116),r1                                
                                                                      
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
 800b5c4:	21 c1 02 00 	andi r1,r14,0x200                              
 800b5c8:	44 20 00 09 	be r1,r0,800b5ec <rtems_task_mode+0xd8>        
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Modes_Is_timeslice (                       
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
  return (mode_set & RTEMS_TIMESLICE_MASK) == RTEMS_TIMESLICE;        
 800b5cc:	22 01 02 00 	andi r1,r16,0x200                              
    if ( _Modes_Is_timeslice(mode_set) ) {                            
 800b5d0:	44 20 00 3e 	be r1,r0,800b6c8 <rtems_task_mode+0x1b4>       
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
 800b5d4:	78 01 08 01 	mvhi r1,0x801                                  
 800b5d8:	38 21 38 20 	ori r1,r1,0x3820                               
 800b5dc:	28 22 00 00 	lw r2,(r1+0)                                   
  if ( mask & RTEMS_PREEMPT_MASK )                                    
    executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
                                                                      
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
    if ( _Modes_Is_timeslice(mode_set) ) {                            
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
 800b5e0:	34 01 00 01 	mvi r1,1                                       
 800b5e4:	59 61 00 7c 	sw (r11+124),r1                                
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
 800b5e8:	59 62 00 78 	sw (r11+120),r2                                
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new interrupt level                                     
   */                                                                 
  if ( mask & RTEMS_INTERRUPT_MASK )                                  
 800b5ec:	21 c1 00 01 	andi r1,r14,0x1                                
 800b5f0:	44 20 00 04 	be r1,r0,800b600 <rtems_task_mode+0xec>        
 */                                                                   
RTEMS_INLINE_ROUTINE ISR_Level _Modes_Get_interrupt_level (           
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
  return ( mode_set & RTEMS_INTERRUPT_MASK );                         
 800b5f4:	22 01 00 01 	andi r1,r16,0x1                                
 */                                                                   
RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level (                
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
  _ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) );           
 800b5f8:	64 21 00 00 	cmpei r1,r1,0                                  
 800b5fc:	d0 01 00 00 	wcsr IE,r1                                     
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
 800b600:	21 ce 04 00 	andi r14,r14,0x400                             
                                                                      
  /*                                                                  
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
 800b604:	34 04 00 00 	mvi r4,0                                       
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
 800b608:	45 c0 00 11 	be r14,r0,800b64c <rtems_task_mode+0x138>      
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Modes_Is_asr_disabled (                    
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
   return (mode_set & RTEMS_ASR_MASK) == RTEMS_NO_ASR;                
 800b60c:	22 10 04 00 	andi r16,r16,0x400                             
    is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
    if ( is_asr_enabled != asr->is_enabled ) {                        
 800b610:	41 81 00 08 	lbu r1,(r12+8)                                 
 *  Output:                                                           
 *    *previous_mode_set - previous mode set                          
 *     always return RTEMS_SUCCESSFUL;                                
 */                                                                   
                                                                      
rtems_status_code rtems_task_mode(                                    
 800b614:	66 10 00 00 	cmpei r16,r16,0                                
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
    is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
    if ( is_asr_enabled != asr->is_enabled ) {                        
 800b618:	44 30 00 0d 	be r1,r16,800b64c <rtems_task_mode+0x138>      
      asr->is_enabled = is_asr_enabled;                               
 800b61c:	31 90 00 08 	sb (r12+8),r16                                 
)                                                                     
{                                                                     
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
 800b620:	90 00 08 00 	rcsr r1,IE                                     
 800b624:	34 02 ff fe 	mvi r2,-2                                      
 800b628:	a0 22 10 00 	and r2,r1,r2                                   
 800b62c:	d0 02 00 00 	wcsr IE,r2                                     
    _signals                     = information->signals_pending;      
 800b630:	29 83 00 18 	lw r3,(r12+24)                                 
    information->signals_pending = information->signals_posted;       
 800b634:	29 82 00 14 	lw r2,(r12+20)                                 
    information->signals_posted  = _signals;                          
 800b638:	59 83 00 14 	sw (r12+20),r3                                 
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
    _signals                     = information->signals_pending;      
    information->signals_pending = information->signals_posted;       
 800b63c:	59 82 00 18 	sw (r12+24),r2                                 
    information->signals_posted  = _signals;                          
  _ISR_Enable( _level );                                              
 800b640:	d0 01 00 00 	wcsr IE,r1                                     
      _ASR_Swap_signals( asr );                                       
      if ( _ASR_Are_signals_pending( asr ) ) {                        
 800b644:	29 84 00 14 	lw r4,(r12+20)                                 
                                                                      
  /*                                                                  
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
 800b648:	7c 84 00 00 	cmpnei r4,r4,0                                 
        needs_asr_dispatching = true;                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) ) {                 
 800b64c:	78 01 08 01 	mvhi r1,0x801                                  
 800b650:	38 21 39 e0 	ori r1,r1,0x39e0                               
 800b654:	28 23 00 00 	lw r3,(r1+0)                                   
 800b658:	34 01 00 03 	mvi r1,3                                       
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 800b65c:	34 02 00 00 	mvi r2,0                                       
        needs_asr_dispatching = true;                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) ) {                 
 800b660:	44 61 00 0f 	be r3,r1,800b69c <rtems_task_mode+0x188>       
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 800b664:	b8 40 08 00 	mv r1,r2                                       
 800b668:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800b66c:	2b 8b 00 24 	lw r11,(sp+36)                                 
 800b670:	2b 8c 00 20 	lw r12,(sp+32)                                 
 800b674:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 800b678:	2b 8e 00 18 	lw r14,(sp+24)                                 
 800b67c:	2b 8f 00 14 	lw r15,(sp+20)                                 
 800b680:	2b 90 00 10 	lw r16,(sp+16)                                 
 800b684:	2b 91 00 0c 	lw r17,(sp+12)                                 
 800b688:	2b 92 00 08 	lw r18,(sp+8)                                  
 800b68c:	37 9c 00 24 	addi sp,sp,36                                  
 800b690:	c3 a0 00 00 	ret                                            
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
 800b694:	39 ad 02 00 	ori r13,r13,0x200                              
 800b698:	e3 ff ff be 	bi 800b590 <rtems_task_mode+0x7c>              
  bool are_signals_pending                                            
)                                                                     
{                                                                     
  Thread_Control     *executing;                                      
                                                                      
  executing = _Thread_Executing;                                      
 800b69c:	29 e1 00 0c 	lw r1,(r15+12)                                 
                                                                      
  if ( are_signals_pending ||                                         
 800b6a0:	5c 80 00 05 	bne r4,r0,800b6b4 <rtems_task_mode+0x1a0>      
 800b6a4:	29 e3 00 10 	lw r3,(r15+16)                                 
 800b6a8:	44 23 ff ef 	be r1,r3,800b664 <rtems_task_mode+0x150>       
       (!_Thread_Is_heir( executing ) && executing->is_preemptible) ) {
 800b6ac:	40 21 00 74 	lbu r1,(r1+116)                                
 800b6b0:	44 20 ff ed 	be r1,r0,800b664 <rtems_task_mode+0x150>       <== NEVER TAKEN
    _Thread_Dispatch_necessary = true;                                
 800b6b4:	34 01 00 01 	mvi r1,1                                       
 800b6b8:	31 e1 00 18 	sb (r15+24),r1                                 
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) ) {                 
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
 800b6bc:	fb ff e8 62 	calli 8005844 <_Thread_Dispatch>               
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 800b6c0:	34 02 00 00 	mvi r2,0                                       
 800b6c4:	e3 ff ff e8 	bi 800b664 <rtems_task_mode+0x150>             
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
    if ( _Modes_Is_timeslice(mode_set) ) {                            
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
    } else                                                            
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; 
 800b6c8:	59 60 00 7c 	sw (r11+124),r0                                
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new interrupt level                                     
   */                                                                 
  if ( mask & RTEMS_INTERRUPT_MASK )                                  
 800b6cc:	21 c1 00 01 	andi r1,r14,0x1                                
 800b6d0:	44 20 ff cc 	be r1,r0,800b600 <rtems_task_mode+0xec>        
 800b6d4:	e3 ff ff c8 	bi 800b5f4 <rtems_task_mode+0xe0>              
                                                                      

08008c08 <rtems_task_set_priority>: rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) {
 8008c08:	37 9c ff f0 	addi sp,sp,-16                                 
 8008c0c:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8008c10:	5b 8c 00 08 	sw (sp+8),r12                                  
 8008c14:	5b 9d 00 04 	sw (sp+4),ra                                   
 8008c18:	b8 40 58 00 	mv r11,r2                                      
 8008c1c:	b8 60 60 00 	mv r12,r3                                      
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
 8008c20:	44 40 00 06 	be r2,r0,8008c38 <rtems_task_set_priority+0x30>
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (            
  rtems_task_priority the_priority                                    
)                                                                     
{                                                                     
  return (  ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&             
            ( the_priority <= RTEMS_MAXIMUM_PRIORITY ) );             
 8008c24:	78 02 08 01 	mvhi r2,0x801                                  
 8008c28:	38 42 90 f0 	ori r2,r2,0x90f0                               
 8008c2c:	40 42 00 00 	lbu r2,(r2+0)                                  
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
 8008c30:	34 04 00 13 	mvi r4,19                                      
 */                                                                   
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (            
  rtems_task_priority the_priority                                    
)                                                                     
{                                                                     
  return (  ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&             
 8008c34:	55 62 00 08 	bgu r11,r2,8008c54 <rtems_task_set_priority+0x4c>
                                                                      
  if ( !old_priority )                                                
    return RTEMS_INVALID_ADDRESS;                                     
 8008c38:	34 04 00 09 	mvi r4,9                                       
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
                                                                      
  if ( !old_priority )                                                
 8008c3c:	45 80 00 06 	be r12,r0,8008c54 <rtems_task_set_priority+0x4c>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 8008c40:	37 82 00 10 	addi r2,sp,16                                  
 8008c44:	f8 00 0a f2 	calli 800b80c <_Thread_Get>                    
  switch ( location ) {                                               
 8008c48:	2b 82 00 10 	lw r2,(sp+16)                                  
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8008c4c:	34 04 00 04 	mvi r4,4                                       
                                                                      
  if ( !old_priority )                                                
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
  switch ( location ) {                                               
 8008c50:	44 40 00 07 	be r2,r0,8008c6c <rtems_task_set_priority+0x64>
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8008c54:	b8 80 08 00 	mv r1,r4                                       
 8008c58:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8008c5c:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8008c60:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8008c64:	37 9c 00 10 	addi sp,sp,16                                  
 8008c68:	c3 a0 00 00 	ret                                            
  the_thread = _Thread_Get( id, &location );                          
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      /* XXX need helper to "convert" from core priority */           
      *old_priority = the_thread->current_priority;                   
 8008c6c:	28 23 00 14 	lw r3,(r1+20)                                  
 8008c70:	59 83 00 00 	sw (r12+0),r3                                  
      if ( new_priority != RTEMS_CURRENT_PRIORITY ) {                 
 8008c74:	45 62 00 09 	be r11,r2,8008c98 <rtems_task_set_priority+0x90>
        the_thread->real_priority = new_priority;                     
        if ( the_thread->resource_count == 0 ||                       
 8008c78:	28 22 00 1c 	lw r2,(r1+28)                                  
                                                                      
    case OBJECTS_LOCAL:                                               
      /* XXX need helper to "convert" from core priority */           
      *old_priority = the_thread->current_priority;                   
      if ( new_priority != RTEMS_CURRENT_PRIORITY ) {                 
        the_thread->real_priority = new_priority;                     
 8008c7c:	58 2b 00 18 	sw (r1+24),r11                                 
        if ( the_thread->resource_count == 0 ||                       
 8008c80:	44 40 00 03 	be r2,r0,8008c8c <rtems_task_set_priority+0x84>
 8008c84:	28 22 00 14 	lw r2,(r1+20)                                  
 8008c88:	51 62 00 04 	bgeu r11,r2,8008c98 <rtems_task_set_priority+0x90><== ALWAYS TAKEN
             the_thread->current_priority > new_priority )            
          _Thread_Change_priority( the_thread, new_priority, false ); 
 8008c8c:	b9 60 10 00 	mv r2,r11                                      
 8008c90:	34 03 00 00 	mvi r3,0                                       
 8008c94:	f8 00 09 80 	calli 800b294 <_Thread_Change_priority>        
      }                                                               
      _Thread_Enable_dispatch();                                      
 8008c98:	f8 00 0a d0 	calli 800b7d8 <_Thread_Enable_dispatch>        
      return RTEMS_SUCCESSFUL;                                        
 8008c9c:	34 04 00 00 	mvi r4,0                                       
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8008ca0:	b8 80 08 00 	mv r1,r4                                       
 8008ca4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8008ca8:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8008cac:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8008cb0:	37 9c 00 10 	addi sp,sp,16                                  
 8008cb4:	c3 a0 00 00 	ret                                            
                                                                      

08003274 <rtems_task_start>: rtems_status_code rtems_task_start( rtems_id id, rtems_task_entry entry_point, rtems_task_argument argument ) {
 8003274:	37 9c ff ec 	addi sp,sp,-20                                 
 8003278:	5b 8b 00 10 	sw (sp+16),r11                                 
 800327c:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8003280:	5b 8d 00 08 	sw (sp+8),r13                                  
 8003284:	5b 9d 00 04 	sw (sp+4),ra                                   
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( entry_point == NULL )                                          
    return RTEMS_INVALID_ADDRESS;                                     
 8003288:	34 04 00 09 	mvi r4,9                                       
rtems_status_code rtems_task_start(                                   
  rtems_id         	id,                                               
  rtems_task_entry 	entry_point,                                      
  rtems_task_argument	argument                                        
)                                                                     
{                                                                     
 800328c:	b8 40 58 00 	mv r11,r2                                      
 8003290:	b8 60 68 00 	mv r13,r3                                      
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( entry_point == NULL )                                          
 8003294:	44 40 00 06 	be r2,r0,80032ac <rtems_task_start+0x38>       <== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 8003298:	37 82 00 14 	addi r2,sp,20                                  
 800329c:	f8 00 09 e5 	calli 8005a30 <_Thread_Get>                    
  switch ( location ) {                                               
 80032a0:	2b 8c 00 14 	lw r12,(sp+20)                                 
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 80032a4:	34 04 00 04 	mvi r4,4                                       
                                                                      
  if ( entry_point == NULL )                                          
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
  switch ( location ) {                                               
 80032a8:	45 80 00 08 	be r12,r0,80032c8 <rtems_task_start+0x54>      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 80032ac:	b8 80 08 00 	mv r1,r4                                       
 80032b0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80032b4:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80032b8:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80032bc:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80032c0:	37 9c 00 14 	addi sp,sp,20                                  
 80032c4:	c3 a0 00 00 	ret                                            
                                                                      
  the_thread = _Thread_Get( id, &location );                          
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( _Thread_Start(                                             
 80032c8:	34 02 00 00 	mvi r2,0                                       
 80032cc:	b9 60 18 00 	mv r3,r11                                      
 80032d0:	34 04 00 00 	mvi r4,0                                       
 80032d4:	b9 a0 28 00 	mv r5,r13                                      
 80032d8:	f8 00 0c cb 	calli 8006604 <_Thread_Start>                  
 80032dc:	5c 2c 00 0a 	bne r1,r12,8003304 <rtems_task_start+0x90>     
             the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) {
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
      _Thread_Enable_dispatch();                                      
 80032e0:	f8 00 09 c7 	calli 80059fc <_Thread_Enable_dispatch>        
      return RTEMS_INCORRECT_STATE;                                   
 80032e4:	34 04 00 0e 	mvi r4,14                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 80032e8:	b8 80 08 00 	mv r1,r4                                       
 80032ec:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80032f0:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80032f4:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80032f8:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80032fc:	37 9c 00 14 	addi sp,sp,20                                  
 8003300:	c3 a0 00 00 	ret                                            
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( _Thread_Start(                                             
             the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) {
        _Thread_Enable_dispatch();                                    
 8003304:	f8 00 09 be 	calli 80059fc <_Thread_Enable_dispatch>        
        return RTEMS_SUCCESSFUL;                                      
 8003308:	34 04 00 00 	mvi r4,0                                       
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 800330c:	b8 80 08 00 	mv r1,r4                                       
 8003310:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003314:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8003318:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 800331c:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8003320:	37 9c 00 14 	addi sp,sp,20                                  
 8003324:	c3 a0 00 00 	ret                                            
                                                                      

08004144 <rtems_task_variable_add>: rtems_status_code rtems_task_variable_add( rtems_id tid, void **ptr, void (*dtor)(void *) ) {
 8004144:	37 9c ff ec 	addi sp,sp,-20                                 
 8004148:	5b 8b 00 10 	sw (sp+16),r11                                 
 800414c:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8004150:	5b 8d 00 08 	sw (sp+8),r13                                  
 8004154:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004158:	b8 40 58 00 	mv r11,r2                                      
 800415c:	b8 60 68 00 	mv r13,r3                                      
  Thread_Control        *the_thread;                                  
  Objects_Locations      location;                                    
  rtems_task_variable_t *tvp, *new;                                   
                                                                      
  if ( !ptr )                                                         
    return RTEMS_INVALID_ADDRESS;                                     
 8004160:	34 02 00 09 	mvi r2,9                                       
{                                                                     
  Thread_Control        *the_thread;                                  
  Objects_Locations      location;                                    
  rtems_task_variable_t *tvp, *new;                                   
                                                                      
  if ( !ptr )                                                         
 8004164:	45 60 00 07 	be r11,r0,8004180 <rtems_task_variable_add+0x3c>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get (tid, &location);                          
 8004168:	37 82 00 14 	addi r2,sp,20                                  
 800416c:	f8 00 09 db 	calli 80068d8 <_Thread_Get>                    
 8004170:	b8 20 60 00 	mv r12,r1                                      
  switch (location) {                                                 
 8004174:	2b 81 00 14 	lw r1,(sp+20)                                  
#endif                                                                
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
  return RTEMS_INVALID_ID;                                            
 8004178:	34 02 00 04 	mvi r2,4                                       
                                                                      
  if ( !ptr )                                                         
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get (tid, &location);                          
  switch (location) {                                                 
 800417c:	44 20 00 08 	be r1,r0,800419c <rtems_task_variable_add+0x58>
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8004180:	b8 40 08 00 	mv r1,r2                                       
 8004184:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004188:	2b 8b 00 10 	lw r11,(sp+16)                                 
 800418c:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8004190:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8004194:	37 9c 00 14 	addi sp,sp,20                                  
 8004198:	c3 a0 00 00 	ret                                            
                                                                      
    case OBJECTS_LOCAL:                                               
      /*                                                              
       *  Figure out if the variable is already in this task's list.  
       */                                                             
      tvp = the_thread->task_variables;                               
 800419c:	29 84 01 24 	lw r4,(r12+292)                                
      while (tvp) {                                                   
 80041a0:	44 81 00 08 	be r4,r1,80041c0 <rtems_task_variable_add+0x7c>
        if (tvp->ptr == ptr) {                                        
 80041a4:	28 81 00 04 	lw r1,(r4+4)                                   
 80041a8:	5c 2b 00 04 	bne r1,r11,80041b8 <rtems_task_variable_add+0x74>
 80041ac:	e0 00 00 18 	bi 800420c <rtems_task_variable_add+0xc8>      
 80041b0:	28 82 00 04 	lw r2,(r4+4)                                   
 80041b4:	44 4b 00 16 	be r2,r11,800420c <rtems_task_variable_add+0xc8><== NEVER TAKEN
          tvp->dtor = dtor;                                           
          _Thread_Enable_dispatch();                                  
          return RTEMS_SUCCESSFUL;                                    
        }                                                             
        tvp = (rtems_task_variable_t *)tvp->next;                     
 80041b8:	28 84 00 00 	lw r4,(r4+0)                                   
    case OBJECTS_LOCAL:                                               
      /*                                                              
       *  Figure out if the variable is already in this task's list.  
       */                                                             
      tvp = the_thread->task_variables;                               
      while (tvp) {                                                   
 80041bc:	5c 80 ff fd 	bne r4,r0,80041b0 <rtems_task_variable_add+0x6c>
                                                                      
      /*                                                              
       *  Now allocate memory for this task variable.                 
       */                                                             
      new = (rtems_task_variable_t *)                                 
         _Workspace_Allocate(sizeof(rtems_task_variable_t));          
 80041c0:	34 01 00 14 	mvi r1,20                                      
 80041c4:	f8 00 0f 07 	calli 8007de0 <_Workspace_Allocate>            
      if (new == NULL) {                                              
 80041c8:	44 20 00 1b 	be r1,r0,8004234 <rtems_task_variable_add+0xf0>
      }                                                               
      new->gval = *ptr;                                               
      new->ptr = ptr;                                                 
      new->dtor = dtor;                                               
                                                                      
      new->next = (struct rtems_task_variable_tt *)the_thread->task_variables;
 80041cc:	29 82 01 24 	lw r2,(r12+292)                                
         _Workspace_Allocate(sizeof(rtems_task_variable_t));          
      if (new == NULL) {                                              
        _Thread_Enable_dispatch();                                    
        return RTEMS_NO_MEMORY;                                       
      }                                                               
      new->gval = *ptr;                                               
 80041d0:	29 63 00 00 	lw r3,(r11+0)                                  
      new->ptr = ptr;                                                 
 80041d4:	58 2b 00 04 	sw (r1+4),r11                                  
      new->dtor = dtor;                                               
 80041d8:	58 2d 00 10 	sw (r1+16),r13                                 
         _Workspace_Allocate(sizeof(rtems_task_variable_t));          
      if (new == NULL) {                                              
        _Thread_Enable_dispatch();                                    
        return RTEMS_NO_MEMORY;                                       
      }                                                               
      new->gval = *ptr;                                               
 80041dc:	58 23 00 08 	sw (r1+8),r3                                   
      new->ptr = ptr;                                                 
      new->dtor = dtor;                                               
                                                                      
      new->next = (struct rtems_task_variable_tt *)the_thread->task_variables;
 80041e0:	58 22 00 00 	sw (r1+0),r2                                   
      the_thread->task_variables = new;                               
 80041e4:	59 81 01 24 	sw (r12+292),r1                                
      _Thread_Enable_dispatch();                                      
 80041e8:	f8 00 09 af 	calli 80068a4 <_Thread_Enable_dispatch>        
      return RTEMS_SUCCESSFUL;                                        
 80041ec:	34 02 00 00 	mvi r2,0                                       
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
  return RTEMS_INVALID_ID;                                            
}                                                                     
 80041f0:	b8 40 08 00 	mv r1,r2                                       
 80041f4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80041f8:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80041fc:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8004200:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8004204:	37 9c 00 14 	addi sp,sp,20                                  
 8004208:	c3 a0 00 00 	ret                                            
       *  Figure out if the variable is already in this task's list.  
       */                                                             
      tvp = the_thread->task_variables;                               
      while (tvp) {                                                   
        if (tvp->ptr == ptr) {                                        
          tvp->dtor = dtor;                                           
 800420c:	58 8d 00 10 	sw (r4+16),r13                                 
          _Thread_Enable_dispatch();                                  
 8004210:	f8 00 09 a5 	calli 80068a4 <_Thread_Enable_dispatch>        
          return RTEMS_SUCCESSFUL;                                    
 8004214:	34 02 00 00 	mvi r2,0                                       
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8004218:	b8 40 08 00 	mv r1,r2                                       
 800421c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004220:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8004224:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8004228:	2b 8d 00 08 	lw r13,(sp+8)                                  
 800422c:	37 9c 00 14 	addi sp,sp,20                                  
 8004230:	c3 a0 00 00 	ret                                            
       *  Now allocate memory for this task variable.                 
       */                                                             
      new = (rtems_task_variable_t *)                                 
         _Workspace_Allocate(sizeof(rtems_task_variable_t));          
      if (new == NULL) {                                              
        _Thread_Enable_dispatch();                                    
 8004234:	f8 00 09 9c 	calli 80068a4 <_Thread_Enable_dispatch>        
        return RTEMS_NO_MEMORY;                                       
 8004238:	34 02 00 1a 	mvi r2,26                                      
 800423c:	e3 ff ff d1 	bi 8004180 <rtems_task_variable_add+0x3c>      
                                                                      

08004240 <rtems_task_variable_delete>: rtems_status_code rtems_task_variable_delete( rtems_id tid, void **ptr ) {
 8004240:	37 9c ff f4 	addi sp,sp,-12                                 
 8004244:	5b 8b 00 08 	sw (sp+8),r11                                  
 8004248:	5b 9d 00 04 	sw (sp+4),ra                                   
 800424c:	b8 40 58 00 	mv r11,r2                                      
  Thread_Control        *the_thread;                                  
  Objects_Locations      location;                                    
  rtems_task_variable_t *tvp, *prev;                                  
                                                                      
  if ( !ptr )                                                         
    return RTEMS_INVALID_ADDRESS;                                     
 8004250:	34 02 00 09 	mvi r2,9                                       
{                                                                     
  Thread_Control        *the_thread;                                  
  Objects_Locations      location;                                    
  rtems_task_variable_t *tvp, *prev;                                  
                                                                      
  if ( !ptr )                                                         
 8004254:	45 60 00 06 	be r11,r0,800426c <rtems_task_variable_delete+0x2c>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  prev = NULL;                                                        
                                                                      
  the_thread = _Thread_Get (tid, &location);                          
 8004258:	37 82 00 0c 	addi r2,sp,12                                  
 800425c:	f8 00 09 9f 	calli 80068d8 <_Thread_Get>                    
  switch (location) {                                                 
 8004260:	2b 82 00 0c 	lw r2,(sp+12)                                  
 8004264:	44 40 00 07 	be r2,r0,8004280 <rtems_task_variable_delete+0x40>
                                                                      
    case OBJECTS_ERROR:                                               
        break;                                                        
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8004268:	34 02 00 04 	mvi r2,4                                       
}                                                                     
 800426c:	b8 40 08 00 	mv r1,r2                                       
 8004270:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004274:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8004278:	37 9c 00 0c 	addi sp,sp,12                                  
 800427c:	c3 a0 00 00 	ret                                            
                                                                      
  the_thread = _Thread_Get (tid, &location);                          
  switch (location) {                                                 
                                                                      
    case OBJECTS_LOCAL:                                               
      tvp = the_thread->task_variables;                               
 8004280:	28 24 01 24 	lw r4,(r1+292)                                 
      while (tvp) {                                                   
 8004284:	44 82 00 09 	be r4,r2,80042a8 <rtems_task_variable_delete+0x68>
        if (tvp->ptr == ptr) {                                        
 8004288:	28 82 00 04 	lw r2,(r4+4)                                   
 800428c:	5c 4b 00 05 	bne r2,r11,80042a0 <rtems_task_variable_delete+0x60>
 8004290:	e0 00 00 18 	bi 80042f0 <rtems_task_variable_delete+0xb0>   
 8004294:	28 62 00 04 	lw r2,(r3+4)                                   
 8004298:	44 4b 00 0b 	be r2,r11,80042c4 <rtems_task_variable_delete+0x84>
 800429c:	b8 60 20 00 	mv r4,r3                                       
          _RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp );  
          _Thread_Enable_dispatch();                                  
          return RTEMS_SUCCESSFUL;                                    
        }                                                             
        prev = tvp;                                                   
        tvp = (rtems_task_variable_t *)tvp->next;                     
 80042a0:	28 83 00 00 	lw r3,(r4+0)                                   
  the_thread = _Thread_Get (tid, &location);                          
  switch (location) {                                                 
                                                                      
    case OBJECTS_LOCAL:                                               
      tvp = the_thread->task_variables;                               
      while (tvp) {                                                   
 80042a4:	5c 60 ff fc 	bne r3,r0,8004294 <rtems_task_variable_delete+0x54><== ALWAYS TAKEN
          return RTEMS_SUCCESSFUL;                                    
        }                                                             
        prev = tvp;                                                   
        tvp = (rtems_task_variable_t *)tvp->next;                     
      }                                                               
      _Thread_Enable_dispatch();                                      
 80042a8:	f8 00 09 7f 	calli 80068a4 <_Thread_Enable_dispatch>        
      return RTEMS_INVALID_ADDRESS;                                   
 80042ac:	34 02 00 09 	mvi r2,9                                       
    case OBJECTS_ERROR:                                               
        break;                                                        
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 80042b0:	b8 40 08 00 	mv r1,r2                                       
 80042b4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80042b8:	2b 8b 00 08 	lw r11,(sp+8)                                  
 80042bc:	37 9c 00 0c 	addi sp,sp,12                                  
 80042c0:	c3 a0 00 00 	ret                                            
    case OBJECTS_LOCAL:                                               
      tvp = the_thread->task_variables;                               
      while (tvp) {                                                   
        if (tvp->ptr == ptr) {                                        
          if (prev)                                                   
            prev->next = tvp->next;                                   
 80042c4:	28 62 00 00 	lw r2,(r3+0)                                   
 80042c8:	58 82 00 00 	sw (r4+0),r2                                   
          else                                                        
            the_thread->task_variables = (rtems_task_variable_t *)tvp->next;
                                                                      
          _RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp );  
 80042cc:	b8 60 10 00 	mv r2,r3                                       
 80042d0:	f8 00 00 39 	calli 80043b4 <_RTEMS_Tasks_Invoke_task_variable_dtor>
          _Thread_Enable_dispatch();                                  
 80042d4:	f8 00 09 74 	calli 80068a4 <_Thread_Enable_dispatch>        
          return RTEMS_SUCCESSFUL;                                    
 80042d8:	34 02 00 00 	mvi r2,0                                       
    case OBJECTS_ERROR:                                               
        break;                                                        
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 80042dc:	b8 40 08 00 	mv r1,r2                                       
 80042e0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80042e4:	2b 8b 00 08 	lw r11,(sp+8)                                  
 80042e8:	37 9c 00 0c 	addi sp,sp,12                                  
 80042ec:	c3 a0 00 00 	ret                                            
      while (tvp) {                                                   
        if (tvp->ptr == ptr) {                                        
          if (prev)                                                   
            prev->next = tvp->next;                                   
          else                                                        
            the_thread->task_variables = (rtems_task_variable_t *)tvp->next;
 80042f0:	28 82 00 00 	lw r2,(r4+0)                                   
 80042f4:	b8 80 18 00 	mv r3,r4                                       
 80042f8:	58 22 01 24 	sw (r1+292),r2                                 
 80042fc:	e3 ff ff f4 	bi 80042cc <rtems_task_variable_delete+0x8c>   
                                                                      

08004300 <rtems_task_variable_get>: rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result ) {
 8004300:	37 9c ff f0 	addi sp,sp,-16                                 
 8004304:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8004308:	5b 8c 00 08 	sw (sp+8),r12                                  
 800430c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004310:	b8 40 58 00 	mv r11,r2                                      
 8004314:	b8 60 60 00 	mv r12,r3                                      
  Thread_Control        *the_thread;                                  
  Objects_Locations      location;                                    
  rtems_task_variable_t *tvp;                                         
                                                                      
  if ( !ptr )                                                         
    return RTEMS_INVALID_ADDRESS;                                     
 8004318:	34 02 00 09 	mvi r2,9                                       
{                                                                     
  Thread_Control        *the_thread;                                  
  Objects_Locations      location;                                    
  rtems_task_variable_t *tvp;                                         
                                                                      
  if ( !ptr )                                                         
 800431c:	45 60 00 07 	be r11,r0,8004338 <rtems_task_variable_get+0x38>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !result )                                                      
 8004320:	44 60 00 06 	be r3,r0,8004338 <rtems_task_variable_get+0x38>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get (tid, &location);                          
 8004324:	37 82 00 10 	addi r2,sp,16                                  
 8004328:	f8 00 09 6c 	calli 80068d8 <_Thread_Get>                    
  switch (location) {                                                 
 800432c:	2b 82 00 10 	lw r2,(sp+16)                                  
 8004330:	44 40 00 08 	be r2,r0,8004350 <rtems_task_variable_get+0x50>
#endif                                                                
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
  return RTEMS_INVALID_ID;                                            
 8004334:	34 02 00 04 	mvi r2,4                                       
}                                                                     
 8004338:	b8 40 08 00 	mv r1,r2                                       
 800433c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004340:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8004344:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8004348:	37 9c 00 10 	addi sp,sp,16                                  
 800434c:	c3 a0 00 00 	ret                                            
                                                                      
    case OBJECTS_LOCAL:                                               
      /*                                                              
       *  Figure out if the variable is in this task's list.          
       */                                                             
      tvp = the_thread->task_variables;                               
 8004350:	28 21 01 24 	lw r1,(r1+292)                                 
      while (tvp) {                                                   
 8004354:	5c 22 00 04 	bne r1,r2,8004364 <rtems_task_variable_get+0x64>
 8004358:	e0 00 00 0f 	bi 8004394 <rtems_task_variable_get+0x94>      
	   */                                                                
          *result = tvp->tval;                                        
          _Thread_Enable_dispatch();                                  
          return RTEMS_SUCCESSFUL;                                    
        }                                                             
        tvp = (rtems_task_variable_t *)tvp->next;                     
 800435c:	28 21 00 00 	lw r1,(r1+0)                                   
    case OBJECTS_LOCAL:                                               
      /*                                                              
       *  Figure out if the variable is in this task's list.          
       */                                                             
      tvp = the_thread->task_variables;                               
      while (tvp) {                                                   
 8004360:	44 20 00 0d 	be r1,r0,8004394 <rtems_task_variable_get+0x94><== NEVER TAKEN
        if (tvp->ptr == ptr) {                                        
 8004364:	28 22 00 04 	lw r2,(r1+4)                                   
 8004368:	5c 4b ff fd 	bne r2,r11,800435c <rtems_task_variable_get+0x5c>
	  /*                                                                 
	   * Should this return the current (i.e not the                     
	   * saved) value if `tid' is the current task?                      
	   */                                                                
          *result = tvp->tval;                                        
 800436c:	28 21 00 0c 	lw r1,(r1+12)                                  
 8004370:	59 81 00 00 	sw (r12+0),r1                                  
          _Thread_Enable_dispatch();                                  
 8004374:	f8 00 09 4c 	calli 80068a4 <_Thread_Enable_dispatch>        
          return RTEMS_SUCCESSFUL;                                    
 8004378:	34 02 00 00 	mvi r2,0                                       
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
  return RTEMS_INVALID_ID;                                            
}                                                                     
 800437c:	b8 40 08 00 	mv r1,r2                                       
 8004380:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004384:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8004388:	2b 8c 00 08 	lw r12,(sp+8)                                  
 800438c:	37 9c 00 10 	addi sp,sp,16                                  
 8004390:	c3 a0 00 00 	ret                                            
          _Thread_Enable_dispatch();                                  
          return RTEMS_SUCCESSFUL;                                    
        }                                                             
        tvp = (rtems_task_variable_t *)tvp->next;                     
      }                                                               
      _Thread_Enable_dispatch();                                      
 8004394:	f8 00 09 44 	calli 80068a4 <_Thread_Enable_dispatch>        
      return RTEMS_INVALID_ADDRESS;                                   
 8004398:	34 02 00 09 	mvi r2,9                                       
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
  return RTEMS_INVALID_ID;                                            
}                                                                     
 800439c:	b8 40 08 00 	mv r1,r2                                       
 80043a0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80043a4:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 80043a8:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80043ac:	37 9c 00 10 	addi sp,sp,16                                  
 80043b0:	c3 a0 00 00 	ret                                            
                                                                      

08013cbc <rtems_timer_cancel>: */ rtems_status_code rtems_timer_cancel( rtems_id id ) {
 8013cbc:	37 9c ff f8 	addi sp,sp,-8                                  
 8013cc0:	5b 9d 00 04 	sw (sp+4),ra                                   
 8013cc4:	b8 20 10 00 	mv r2,r1                                       
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Timer_Control *)                                            
    _Objects_Get( &_Timer_Information, id, location );                
 8013cc8:	78 01 08 03 	mvhi r1,0x803                                  
 8013ccc:	38 21 ee d4 	ori r1,r1,0xeed4                               
 8013cd0:	37 83 00 08 	addi r3,sp,8                                   
 8013cd4:	f8 00 0e 43 	calli 80175e0 <_Objects_Get>                   
  Timer_Control   *the_timer;                                         
  Objects_Locations       location;                                   
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
 8013cd8:	2b 82 00 08 	lw r2,(sp+8)                                   
 8013cdc:	44 40 00 05 	be r2,r0,8013cf0 <rtems_timer_cancel+0x34>     
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8013ce0:	34 01 00 04 	mvi r1,4                                       
}                                                                     
 8013ce4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8013ce8:	37 9c 00 08 	addi sp,sp,8                                   
 8013cec:	c3 a0 00 00 	ret                                            
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( !_Timer_Is_dormant_class( the_timer->the_class ) )         
 8013cf0:	28 23 00 38 	lw r3,(r1+56)                                  
 8013cf4:	34 02 00 04 	mvi r2,4                                       
 8013cf8:	44 62 00 03 	be r3,r2,8013d04 <rtems_timer_cancel+0x48>     <== NEVER TAKEN
        (void) _Watchdog_Remove( &the_timer->Ticker );                
 8013cfc:	34 21 00 10 	addi r1,r1,16                                  
 8013d00:	f8 00 18 00 	calli 8019d00 <_Watchdog_Remove>               
      _Thread_Enable_dispatch();                                      
 8013d04:	f8 00 12 5c 	calli 8018674 <_Thread_Enable_dispatch>        
      return RTEMS_SUCCESSFUL;                                        
 8013d08:	34 01 00 00 	mvi r1,0                                       
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8013d0c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8013d10:	37 9c 00 08 	addi sp,sp,8                                   
 8013d14:	c3 a0 00 00 	ret                                            
                                                                      

08013f68 <rtems_timer_fire_when>: rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) {
 8013f68:	37 9c ff d8 	addi sp,sp,-40                                 
 8013f6c:	5b 8b 00 20 	sw (sp+32),r11                                 
 8013f70:	5b 8c 00 1c 	sw (sp+28),r12                                 
 8013f74:	5b 8d 00 18 	sw (sp+24),r13                                 
 8013f78:	5b 8e 00 14 	sw (sp+20),r14                                 
 8013f7c:	5b 8f 00 10 	sw (sp+16),r15                                 
 8013f80:	5b 90 00 0c 	sw (sp+12),r16                                 
 8013f84:	5b 91 00 08 	sw (sp+8),r17                                  
 8013f88:	5b 9d 00 04 	sw (sp+4),ra                                   
  Timer_Control       *the_timer;                                     
  Objects_Locations    location;                                      
  rtems_interval       seconds;                                       
                                                                      
  if ( !_TOD_Is_set )                                                 
 8013f8c:	78 05 08 03 	mvhi r5,0x803                                  
 8013f90:	38 a5 ec a8 	ori r5,r5,0xeca8                               
 8013f94:	40 a6 00 00 	lbu r6,(r5+0)                                  
  rtems_id                            id,                             
  rtems_time_of_day                  *wall_time,                      
  rtems_timer_service_routine_entry   routine,                        
  void                               *user_data                       
)                                                                     
{                                                                     
 8013f98:	b8 20 68 00 	mv r13,r1                                      
 8013f9c:	b8 60 60 00 	mv r12,r3                                      
 8013fa0:	b8 80 70 00 	mv r14,r4                                      
  Timer_Control       *the_timer;                                     
  Objects_Locations    location;                                      
  rtems_interval       seconds;                                       
                                                                      
  if ( !_TOD_Is_set )                                                 
    return RTEMS_NOT_DEFINED;                                         
 8013fa4:	34 05 00 0b 	mvi r5,11                                      
{                                                                     
  Timer_Control       *the_timer;                                     
  Objects_Locations    location;                                      
  rtems_interval       seconds;                                       
                                                                      
  if ( !_TOD_Is_set )                                                 
 8013fa8:	5c c0 00 0c 	bne r6,r0,8013fd8 <rtems_timer_fire_when+0x70> 
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8013fac:	b8 a0 08 00 	mv r1,r5                                       
 8013fb0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8013fb4:	2b 8b 00 20 	lw r11,(sp+32)                                 
 8013fb8:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 8013fbc:	2b 8d 00 18 	lw r13,(sp+24)                                 
 8013fc0:	2b 8e 00 14 	lw r14,(sp+20)                                 
 8013fc4:	2b 8f 00 10 	lw r15,(sp+16)                                 
 8013fc8:	2b 90 00 0c 	lw r16,(sp+12)                                 
 8013fcc:	2b 91 00 08 	lw r17,(sp+8)                                  
 8013fd0:	37 9c 00 28 	addi sp,sp,40                                  
 8013fd4:	c3 a0 00 00 	ret                                            
  rtems_interval       seconds;                                       
                                                                      
  if ( !_TOD_Is_set )                                                 
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
 8013fd8:	b8 40 08 00 	mv r1,r2                                       
 8013fdc:	5b 82 00 24 	sw (sp+36),r2                                  
 8013fe0:	fb ff f1 9e 	calli 8010658 <_TOD_Validate>                  
    return RTEMS_INVALID_CLOCK;                                       
 8013fe4:	34 05 00 14 	mvi r5,20                                      
  rtems_interval       seconds;                                       
                                                                      
  if ( !_TOD_Is_set )                                                 
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
 8013fe8:	2b 82 00 24 	lw r2,(sp+36)                                  
 8013fec:	44 20 ff f0 	be r1,r0,8013fac <rtems_timer_fire_when+0x44>  
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
 8013ff0:	34 05 00 09 	mvi r5,9                                       
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  if ( !routine )                                                     
 8013ff4:	45 80 ff ee 	be r12,r0,8013fac <rtems_timer_fire_when+0x44> 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
 8013ff8:	78 0b 08 03 	mvhi r11,0x803                                 
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
 8013ffc:	b8 40 08 00 	mv r1,r2                                       
 8014000:	fb ff f1 3d 	calli 80104f4 <_TOD_To_seconds>                
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
 8014004:	39 6b ed 20 	ori r11,r11,0xed20                             
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
 8014008:	b8 20 80 00 	mv r16,r1                                      
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
 801400c:	29 61 00 00 	lw r1,(r11+0)                                  
    return RTEMS_INVALID_CLOCK;                                       
 8014010:	34 05 00 14 	mvi r5,20                                      
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
 8014014:	50 30 ff e6 	bgeu r1,r16,8013fac <rtems_timer_fire_when+0x44><== NEVER TAKEN
 8014018:	78 01 08 03 	mvhi r1,0x803                                  
 801401c:	38 21 ee d4 	ori r1,r1,0xeed4                               
 8014020:	b9 a0 10 00 	mv r2,r13                                      
 8014024:	37 83 00 28 	addi r3,sp,40                                  
 8014028:	f8 00 0d 6e 	calli 80175e0 <_Objects_Get>                   
 801402c:	b8 20 78 00 	mv r15,r1                                      
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
 8014030:	2b 81 00 28 	lw r1,(sp+40)                                  
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8014034:	34 05 00 04 	mvi r5,4                                       
  seconds = _TOD_To_seconds( wall_time );                             
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
 8014038:	5c 20 ff dd 	bne r1,r0,8013fac <rtems_timer_fire_when+0x44> <== NEVER TAKEN
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
 801403c:	35 f1 00 10 	addi r17,r15,16                                
 8014040:	ba 20 08 00 	mv r1,r17                                      
 8014044:	f8 00 17 2f 	calli 8019d00 <_Watchdog_Remove>               
      the_timer->the_class = TIMER_TIME_OF_DAY;                       
      _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
      _Watchdog_Insert_seconds(                                       
 8014048:	29 61 00 00 	lw r1,(r11+0)                                  
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
      the_timer->the_class = TIMER_TIME_OF_DAY;                       
 801404c:	34 03 00 02 	mvi r3,2                                       
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );         
 8014050:	ba 20 10 00 	mv r2,r17                                      
      _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
      _Watchdog_Insert_seconds(                                       
 8014054:	ca 01 80 00 	sub r16,r16,r1                                 
 8014058:	78 01 08 03 	mvhi r1,0x803                                  
 801405c:	38 21 ed 4c 	ori r1,r1,0xed4c                               
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
      the_timer->the_class = TIMER_TIME_OF_DAY;                       
 8014060:	59 e3 00 38 	sw (r15+56),r3                                 
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 8014064:	59 e0 00 18 	sw (r15+24),r0                                 
  the_watchdog->routine   = routine;                                  
 8014068:	59 ec 00 2c 	sw (r15+44),r12                                
  the_watchdog->id        = id;                                       
 801406c:	59 ed 00 30 	sw (r15+48),r13                                
  the_watchdog->user_data = user_data;                                
 8014070:	59 ee 00 34 	sw (r15+52),r14                                
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 8014074:	59 f0 00 1c 	sw (r15+28),r16                                
                                                                      
  _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );         
 8014078:	f8 00 16 b7 	calli 8019b54 <_Watchdog_Insert>               
      _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
      _Watchdog_Insert_seconds(                                       
         &the_timer->Ticker,                                          
         seconds - _TOD_Seconds_since_epoch()                         
       );                                                             
      _Thread_Enable_dispatch();                                      
 801407c:	f8 00 11 7e 	calli 8018674 <_Thread_Enable_dispatch>        
      return RTEMS_SUCCESSFUL;                                        
 8014080:	34 05 00 00 	mvi r5,0                                       
 8014084:	e3 ff ff ca 	bi 8013fac <rtems_timer_fire_when+0x44>        
                                                                      

08014338 <rtems_timer_server_fire_when>: rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) {
 8014338:	37 9c ff dc 	addi sp,sp,-36                                 
 801433c:	5b 8b 00 20 	sw (sp+32),r11                                 
 8014340:	5b 8c 00 1c 	sw (sp+28),r12                                 
 8014344:	5b 8d 00 18 	sw (sp+24),r13                                 
 8014348:	5b 8e 00 14 	sw (sp+20),r14                                 
 801434c:	5b 8f 00 10 	sw (sp+16),r15                                 
 8014350:	5b 90 00 0c 	sw (sp+12),r16                                 
 8014354:	5b 91 00 08 	sw (sp+8),r17                                  
 8014358:	5b 9d 00 04 	sw (sp+4),ra                                   
  Timer_Control        *the_timer;                                    
  Objects_Locations     location;                                     
  rtems_interval        seconds;                                      
  Timer_server_Control *timer_server = _Timer_server;                 
 801435c:	78 05 08 03 	mvhi r5,0x803                                  
 8014360:	38 a5 ef 14 	ori r5,r5,0xef14                               
 8014364:	28 ac 00 00 	lw r12,(r5+0)                                  
  rtems_id                           id,                              
  rtems_time_of_day                  *wall_time,                      
  rtems_timer_service_routine_entry  routine,                         
  void                              *user_data                        
)                                                                     
{                                                                     
 8014368:	b8 20 80 00 	mv r16,r1                                      
 801436c:	b8 40 70 00 	mv r14,r2                                      
 8014370:	b8 60 78 00 	mv r15,r3                                      
 8014374:	b8 80 88 00 	mv r17,r4                                      
  Objects_Locations     location;                                     
  rtems_interval        seconds;                                      
  Timer_server_Control *timer_server = _Timer_server;                 
                                                                      
  if ( !timer_server )                                                
    return RTEMS_INCORRECT_STATE;                                     
 8014378:	34 0b 00 0e 	mvi r11,14                                     
  Timer_Control        *the_timer;                                    
  Objects_Locations     location;                                     
  rtems_interval        seconds;                                      
  Timer_server_Control *timer_server = _Timer_server;                 
                                                                      
  if ( !timer_server )                                                
 801437c:	45 80 00 0c 	be r12,r0,80143ac <rtems_timer_server_fire_when+0x74>
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD_Is_set )                                                 
 8014380:	78 05 08 03 	mvhi r5,0x803                                  
 8014384:	38 a5 ec a8 	ori r5,r5,0xeca8                               
 8014388:	40 a5 00 00 	lbu r5,(r5+0)                                  
    return RTEMS_NOT_DEFINED;                                         
 801438c:	34 0b 00 0b 	mvi r11,11                                     
  Timer_server_Control *timer_server = _Timer_server;                 
                                                                      
  if ( !timer_server )                                                
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD_Is_set )                                                 
 8014390:	44 a0 00 07 	be r5,r0,80143ac <rtems_timer_server_fire_when+0x74><== NEVER TAKEN
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
 8014394:	34 0b 00 09 	mvi r11,9                                      
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD_Is_set )                                                 
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
 8014398:	44 60 00 05 	be r3,r0,80143ac <rtems_timer_server_fire_when+0x74>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
 801439c:	b8 40 08 00 	mv r1,r2                                       
 80143a0:	fb ff f0 ae 	calli 8010658 <_TOD_Validate>                  
    return RTEMS_INVALID_CLOCK;                                       
 80143a4:	34 0b 00 14 	mvi r11,20                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
 80143a8:	5c 20 00 0c 	bne r1,r0,80143d8 <rtems_timer_server_fire_when+0xa0>
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 80143ac:	b9 60 08 00 	mv r1,r11                                      
 80143b0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80143b4:	2b 8b 00 20 	lw r11,(sp+32)                                 
 80143b8:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 80143bc:	2b 8d 00 18 	lw r13,(sp+24)                                 
 80143c0:	2b 8e 00 14 	lw r14,(sp+20)                                 
 80143c4:	2b 8f 00 10 	lw r15,(sp+16)                                 
 80143c8:	2b 90 00 0c 	lw r16,(sp+12)                                 
 80143cc:	2b 91 00 08 	lw r17,(sp+8)                                  
 80143d0:	37 9c 00 24 	addi sp,sp,36                                  
 80143d4:	c3 a0 00 00 	ret                                            
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
 80143d8:	b9 c0 08 00 	mv r1,r14                                      
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
 80143dc:	78 0d 08 03 	mvhi r13,0x803                                 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
 80143e0:	fb ff f0 45 	calli 80104f4 <_TOD_To_seconds>                
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
 80143e4:	39 ad ed 20 	ori r13,r13,0xed20                             
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
 80143e8:	b8 20 70 00 	mv r14,r1                                      
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
 80143ec:	29 a1 00 00 	lw r1,(r13+0)                                  
 80143f0:	50 2e ff ef 	bgeu r1,r14,80143ac <rtems_timer_server_fire_when+0x74>
 80143f4:	78 01 08 03 	mvhi r1,0x803                                  
 80143f8:	38 21 ee d4 	ori r1,r1,0xeed4                               
 80143fc:	ba 00 10 00 	mv r2,r16                                      
 8014400:	37 83 00 24 	addi r3,sp,36                                  
 8014404:	f8 00 0c 77 	calli 80175e0 <_Objects_Get>                   
 8014408:	b8 20 58 00 	mv r11,r1                                      
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
 801440c:	2b 81 00 24 	lw r1,(sp+36)                                  
 8014410:	44 20 00 03 	be r1,r0,801441c <rtems_timer_server_fire_when+0xe4>
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8014414:	34 0b 00 04 	mvi r11,4                                      
 8014418:	e3 ff ff e5 	bi 80143ac <rtems_timer_server_fire_when+0x74> 
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
 801441c:	35 61 00 10 	addi r1,r11,16                                 
 8014420:	f8 00 16 38 	calli 8019d00 <_Watchdog_Remove>               
      the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;               
      _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
      the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
 8014424:	29 a1 00 00 	lw r1,(r13+0)                                  
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
 8014428:	29 83 00 04 	lw r3,(r12+4)                                  
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
      the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;               
 801442c:	34 04 00 03 	mvi r4,3                                       
      _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
      the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
 8014430:	c9 c1 70 00 	sub r14,r14,r1                                 
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
 8014434:	b9 60 10 00 	mv r2,r11                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
      the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;               
 8014438:	59 64 00 38 	sw (r11+56),r4                                 
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
 801443c:	59 6f 00 2c 	sw (r11+44),r15                                
  the_watchdog->id        = id;                                       
 8014440:	59 70 00 30 	sw (r11+48),r16                                
  the_watchdog->user_data = user_data;                                
 8014444:	59 71 00 34 	sw (r11+52),r17                                
      _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
      the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
 8014448:	59 6e 00 1c 	sw (r11+28),r14                                
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
 801444c:	b9 80 08 00 	mv r1,r12                                      
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 8014450:	59 60 00 18 	sw (r11+24),r0                                 
 8014454:	d8 60 00 00 	call r3                                        
                                                                      
      _Thread_Enable_dispatch();                                      
      return RTEMS_SUCCESSFUL;                                        
 8014458:	34 0b 00 00 	mvi r11,0                                      
      _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
      the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
                                                                      
      _Thread_Enable_dispatch();                                      
 801445c:	f8 00 10 86 	calli 8018674 <_Thread_Enable_dispatch>        
      return RTEMS_SUCCESSFUL;                                        
 8014460:	e3 ff ff d3 	bi 80143ac <rtems_timer_server_fire_when+0x74>