RTEMS 4.11
Annotated Report
Sat Jul 17 06:09:43 2010

08015738 <_CORE_message_queue_Broadcast>:                             
    Objects_Id                                 id __attribute__((unused)),
    CORE_message_queue_API_mp_support_callout  api_message_queue_mp_support __attribute__((unused)),
  #endif                                                              
  uint32_t                                  *count                    
)                                                                     
{                                                                     
 8015738:	37 9c ff e4 	addi sp,sp,-28                                 
 801573c:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8015740:	5b 8c 00 18 	sw (sp+24),r12                                 
 8015744:	5b 8d 00 14 	sw (sp+20),r13                                 
 8015748:	5b 8e 00 10 	sw (sp+16),r14                                 
 801574c:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8015750:	5b 90 00 08 	sw (sp+8),r16                                  
 8015754:	5b 9d 00 04 	sw (sp+4),ra                                   
 8015758:	b8 40 80 00 	mv r16,r2                                      
  Thread_Control          *the_thread;                                
  uint32_t                 number_broadcasted;                        
  Thread_Wait_information *waitp;                                     
                                                                      
  if ( size > the_message_queue->maximum_message_size ) {             
 801575c:	28 22 00 4c 	lw r2,(r1+76)                                  
    Objects_Id                                 id __attribute__((unused)),
    CORE_message_queue_API_mp_support_callout  api_message_queue_mp_support __attribute__((unused)),
  #endif                                                              
  uint32_t                                  *count                    
)                                                                     
{                                                                     
 8015760:	b8 20 58 00 	mv r11,r1                                      
 8015764:	b8 60 68 00 	mv r13,r3                                      
 8015768:	b8 c0 78 00 	mv r15,r6                                      
  Thread_Control          *the_thread;                                
  uint32_t                 number_broadcasted;                        
  Thread_Wait_information *waitp;                                     
                                                                      
  if ( size > the_message_queue->maximum_message_size ) {             
    return CORE_MESSAGE_QUEUE_STATUS_INVALID_SIZE;                    
 801576c:	34 01 00 01 	mvi r1,1                                       
{                                                                     
  Thread_Control          *the_thread;                                
  uint32_t                 number_broadcasted;                        
  Thread_Wait_information *waitp;                                     
                                                                      
  if ( size > the_message_queue->maximum_message_size ) {             
 8015770:	54 62 00 13 	bgu r3,r2,80157bc <_CORE_message_queue_Broadcast+0x84><== NEVER TAKEN
   *  NOTE: This check is critical because threads can block on       
   *        send and receive and this ensures that we are broadcasting
   *        the message to threads waiting to receive -- not to send. 
   */                                                                 
                                                                      
  if ( the_message_queue->number_of_pending_messages != 0 ) {         
 8015774:	29 61 00 48 	lw r1,(r11+72)                                 
 8015778:	34 0c 00 00 	mvi r12,0                                      
 801577c:	44 20 00 0a 	be r1,r0,80157a4 <_CORE_message_queue_Broadcast+0x6c>
    *count = 0;                                                       
 8015780:	58 c0 00 00 	sw (r6+0),r0                                   
 8015784:	e0 00 00 0d 	bi 80157b8 <_CORE_message_queue_Broadcast+0x80>
  const void *source,                                                 
  void       *destination,                                            
  size_t      size                                                    
)                                                                     
{                                                                     
  memcpy(destination, source, size);                                  
 8015788:	29 c1 00 2c 	lw r1,(r14+44)                                 
 801578c:	ba 00 10 00 	mv r2,r16                                      
 8015790:	b9 a0 18 00 	mv r3,r13                                      
 8015794:	f8 00 25 f7 	calli 801ef70 <memcpy>                         
      buffer,                                                         
      waitp->return_argument_second.mutable_object,                   
      size                                                            
    );                                                                
                                                                      
    *(size_t *) the_thread->Wait.return_argument = size;              
 8015798:	29 c1 00 28 	lw r1,(r14+40)                                 
   */                                                                 
  number_broadcasted = 0;                                             
  while ((the_thread =                                                
          _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) {   
    waitp = &the_thread->Wait;                                        
    number_broadcasted += 1;                                          
 801579c:	35 8c 00 01 	addi r12,r12,1                                 
      buffer,                                                         
      waitp->return_argument_second.mutable_object,                   
      size                                                            
    );                                                                
                                                                      
    *(size_t *) the_thread->Wait.return_argument = size;              
 80157a0:	58 2d 00 00 	sw (r1+0),r13                                  
  /*                                                                  
   *  There must be no pending messages if there is a thread waiting to
   *  receive a message.                                              
   */                                                                 
  number_broadcasted = 0;                                             
  while ((the_thread =                                                
 80157a4:	b9 60 08 00 	mv r1,r11                                      
 80157a8:	f8 00 0c 0f 	calli 80187e4 <_Thread_queue_Dequeue>          
 80157ac:	b8 20 70 00 	mv r14,r1                                      
 80157b0:	5c 20 ff f6 	bne r1,r0,8015788 <_CORE_message_queue_Broadcast+0x50>
      if ( !_Objects_Is_local_id( the_thread->Object.id ) )           
        (*api_message_queue_mp_support) ( the_thread, id );           
    #endif                                                            
                                                                      
  }                                                                   
  *count = number_broadcasted;                                        
 80157b4:	59 ec 00 00 	sw (r15+0),r12                                 
  return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;                        
 80157b8:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 80157bc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80157c0:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 80157c4:	2b 8c 00 18 	lw r12,(sp+24)                                 
 80157c8:	2b 8d 00 14 	lw r13,(sp+20)                                 
 80157cc:	2b 8e 00 10 	lw r14,(sp+16)                                 
 80157d0:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 80157d4:	2b 90 00 08 	lw r16,(sp+8)                                  
 80157d8:	37 9c 00 1c 	addi sp,sp,28                                  
 80157dc:	c3 a0 00 00 	ret                                            
                                                                      

0800daf4 <_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 ) {
 800daf4:	37 9c ff e4 	addi sp,sp,-28                                 
 800daf8:	5b 8b 00 1c 	sw (sp+28),r11                                 
 800dafc:	5b 8c 00 18 	sw (sp+24),r12                                 
 800db00:	5b 8d 00 14 	sw (sp+20),r13                                 
 800db04:	5b 8e 00 10 	sw (sp+16),r14                                 
 800db08:	5b 8f 00 0c 	sw (sp+12),r15                                 
 800db0c:	5b 90 00 08 	sw (sp+8),r16                                  
 800db10:	5b 9d 00 04 	sw (sp+4),ra                                   
 800db14:	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;                  
 800db18:	58 20 00 48 	sw (r1+72),r0                                  
  the_message_queue->maximum_message_size       = maximum_message_size;
 800db1c:	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;
 800db20:	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)) {              
 800db24:	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                 
)                                                                     
{                                                                     
 800db28:	b8 40 80 00 	mv r16,r2                                      
 800db2c:	b8 60 70 00 	mv r14,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)) {              
 800db30:	b8 80 60 00 	mv r12,r4                                      
 800db34:	44 20 00 06 	be r1,r0,800db4c <_CORE_message_queue_Initialize+0x58>
    allocated_message_size += sizeof(uint32_t);                       
 800db38:	34 8c 00 04 	addi r12,r4,4                                  
    allocated_message_size &= ~(sizeof(uint32_t) - 1);                
 800db3c:	34 01 ff fc 	mvi r1,-4                                      
 800db40:	a1 81 60 00 	and r12,r12,r1                                 
  }                                                                   
                                                                      
  if (allocated_message_size < maximum_message_size)                  
    return false;                                                     
 800db44:	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)                  
 800db48:	54 8c 00 1c 	bgu r4,r12,800dbb8 <_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));
 800db4c:	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 *    
 800db50:	b9 e0 08 00 	mv r1,r15                                      
 800db54:	b9 c0 10 00 	mv r2,r14                                      
 800db58:	f8 00 57 f8 	calli 8023b38 <__mulsi3>                       
       (allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
                                                                      
  if (message_buffering_required < allocated_message_size)            
    return false;                                                     
 800db5c:	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)            
 800db60:	55 81 00 16 	bgu r12,r1,800dbb8 <_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 );               
 800db64:	f8 00 0e 0a 	calli 801138c <_Workspace_Allocate>            
    return false;                                                     
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
 800db68:	59 61 00 5c 	sw (r11+92),r1                                 
     _Workspace_Allocate( message_buffering_required );               
 800db6c:	b8 20 28 00 	mv r5,r1                                       
                                                                      
  if (the_message_queue->message_buffers == 0)                        
 800db70:	44 20 00 12 	be r1,r0,800dbb8 <_CORE_message_queue_Initialize+0xc4>
                                                                      
  /*                                                                  
   *  Initialize the pool of inactive messages, pending messages,     
   *  and set of waiting threads.                                     
   */                                                                 
  _Chain_Initialize (                                                 
 800db74:	b8 a0 10 00 	mv r2,r5                                       
 800db78:	35 61 00 60 	addi r1,r11,96                                 
 800db7c:	b9 c0 18 00 	mv r3,r14                                      
 800db80:	b9 e0 20 00 	mv r4,r15                                      
 800db84:	f8 00 16 c4 	calli 8013694 <_Chain_Initialize>              
    allocated_message_size + sizeof( CORE_message_queue_Buffer_control )
  );                                                                  
                                                                      
  _Chain_Initialize_empty( &the_message_queue->Pending_messages );    
                                                                      
  _Thread_queue_Initialize(                                           
 800db88:	2a 02 00 00 	lw r2,(r16+0)                                  
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 800db8c:	35 61 00 54 	addi r1,r11,84                                 
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
 800db90:	59 61 00 50 	sw (r11+80),r1                                 
 800db94:	64 42 00 01 	cmpei r2,r2,1                                  
    the_message_queue->message_buffers,                               
    (size_t) maximum_pending_messages,                                
    allocated_message_size + sizeof( CORE_message_queue_Buffer_control )
  );                                                                  
                                                                      
  _Chain_Initialize_empty( &the_message_queue->Pending_messages );    
 800db98:	35 61 00 50 	addi r1,r11,80                                 
  the_chain->permanent_null = NULL;                                   
  the_chain->last           = _Chain_Head(the_chain);                 
 800db9c:	59 61 00 58 	sw (r11+88),r1                                 
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
  the_chain->permanent_null = NULL;                                   
 800dba0:	59 60 00 54 	sw (r11+84),r0                                 
                                                                      
  _Thread_queue_Initialize(                                           
 800dba4:	b9 60 08 00 	mv r1,r11                                      
 800dba8:	34 03 00 80 	mvi r3,128                                     
 800dbac:	34 04 00 06 	mvi r4,6                                       
 800dbb0:	f8 00 0a 25 	calli 8010444 <_Thread_queue_Initialize>       
       THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO,
    STATES_WAITING_FOR_MESSAGE,                                       
    CORE_MESSAGE_QUEUE_STATUS_TIMEOUT                                 
  );                                                                  
                                                                      
  return true;                                                        
 800dbb4:	34 0d 00 01 	mvi r13,1                                      
}                                                                     
 800dbb8:	b9 a0 08 00 	mv r1,r13                                      
 800dbbc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800dbc0:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 800dbc4:	2b 8c 00 18 	lw r12,(sp+24)                                 
 800dbc8:	2b 8d 00 14 	lw r13,(sp+20)                                 
 800dbcc:	2b 8e 00 10 	lw r14,(sp+16)                                 
 800dbd0:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 800dbd4:	2b 90 00 08 	lw r16,(sp+8)                                  
 800dbd8:	37 9c 00 1c 	addi sp,sp,28                                  
 800dbdc:	c3 a0 00 00 	ret                                            
                                                                      

0800dbe0 <_CORE_message_queue_Seize>: void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) {
 800dbe0:	37 9c ff f4 	addi sp,sp,-12                                 
 800dbe4:	5b 8b 00 0c 	sw (sp+12),r11                                 
 800dbe8:	5b 8c 00 08 	sw (sp+8),r12                                  
 800dbec:	5b 9d 00 04 	sw (sp+4),ra                                   
  ISR_Level                          level;                           
  CORE_message_queue_Buffer_control *the_message;                     
  Thread_Control                    *executing;                       
                                                                      
  executing = _Thread_Executing;                                      
 800dbf0:	78 07 08 02 	mvhi r7,0x802                                  
 800dbf4:	38 e7 7b 88 	ori r7,r7,0x7b88                               
 800dbf8:	28 e7 00 0c 	lw r7,(r7+12)                                  
  void                            *buffer,                            
  size_t                          *size_p,                            
  bool                             wait,                              
  Watchdog_Interval                timeout                            
)                                                                     
{                                                                     
 800dbfc:	b8 20 58 00 	mv r11,r1                                      
 800dc00:	20 a5 00 ff 	andi r5,r5,0xff                                
  ISR_Level                          level;                           
  CORE_message_queue_Buffer_control *the_message;                     
  Thread_Control                    *executing;                       
                                                                      
  executing = _Thread_Executing;                                      
  executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 
 800dc04:	58 e0 00 34 	sw (r7+52),r0                                  
  void                            *buffer,                            
  size_t                          *size_p,                            
  bool                             wait,                              
  Watchdog_Interval                timeout                            
)                                                                     
{                                                                     
 800dc08:	b8 60 08 00 	mv r1,r3                                       
  CORE_message_queue_Buffer_control *the_message;                     
  Thread_Control                    *executing;                       
                                                                      
  executing = _Thread_Executing;                                      
  executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 
  _ISR_Disable( level );                                              
 800dc0c:	90 00 40 00 	rcsr r8,IE                                     
 800dc10:	34 03 ff fe 	mvi r3,-2                                      
 800dc14:	a1 03 18 00 	and r3,r8,r3                                   
 800dc18:	d0 03 00 00 	wcsr IE,r3                                     
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
 800dc1c:	29 6c 00 50 	lw r12,(r11+80)                                
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 800dc20:	35 63 00 54 	addi r3,r11,84                                 
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
 800dc24:	45 83 00 07 	be r12,r3,800dc40 <_CORE_message_queue_Seize+0x60>
{                                                                     
  Chain_Node  *return_node;                                           
  Chain_Node  *new_first;                                             
                                                                      
  return_node         = the_chain->first;                             
  new_first           = return_node->next;                            
 800dc28:	29 83 00 00 	lw r3,(r12+0)                                  
  CORE_message_queue_Buffer_control *_CORE_message_queue_Get_pending_message (
  CORE_message_queue_Control *the_message_queue                       
)                                                                     
{                                                                     
  return (CORE_message_queue_Buffer_control *)                        
    _Chain_Get_unprotected( &the_message_queue->Pending_messages );   
 800dc2c:	35 69 00 50 	addi r9,r11,80                                 
  the_chain->first    = new_first;                                    
 800dc30:	59 63 00 50 	sw (r11+80),r3                                 
  new_first->previous = _Chain_Head(the_chain);                       
 800dc34:	58 69 00 04 	sw (r3+4),r9                                   
  the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
  if ( the_message != NULL ) {                                        
 800dc38:	5d 80 00 04 	bne r12,r0,800dc48 <_CORE_message_queue_Seize+0x68><== ALWAYS TAKEN
 800dc3c:	e0 00 00 13 	bi 800dc88 <_CORE_message_queue_Seize+0xa8>    <== NOT EXECUTED
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
    return _Chain_Get_first_unprotected(the_chain);                   
  else                                                                
    return NULL;                                                      
 800dc40:	34 0c 00 00 	mvi r12,0                                      
 800dc44:	e0 00 00 11 	bi 800dc88 <_CORE_message_queue_Seize+0xa8>    
    the_message_queue->number_of_pending_messages -= 1;               
 800dc48:	29 62 00 48 	lw r2,(r11+72)                                 
 800dc4c:	34 42 ff ff 	addi r2,r2,-1                                  
 800dc50:	59 62 00 48 	sw (r11+72),r2                                 
    _ISR_Enable( level );                                             
 800dc54:	d0 08 00 00 	wcsr IE,r8                                     
                                                                      
    *size_p = the_message->Contents.size;                             
    _Thread_Executing->Wait.count =                                   
 800dc58:	78 02 08 02 	mvhi r2,0x802                                  
  the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
  if ( the_message != NULL ) {                                        
    the_message_queue->number_of_pending_messages -= 1;               
    _ISR_Enable( level );                                             
                                                                      
    *size_p = the_message->Contents.size;                             
 800dc5c:	29 83 00 08 	lw r3,(r12+8)                                  
    _Thread_Executing->Wait.count =                                   
 800dc60:	38 42 7b 88 	ori r2,r2,0x7b88                               
 800dc64:	28 42 00 0c 	lw r2,(r2+12)                                  
  the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
  if ( the_message != NULL ) {                                        
    the_message_queue->number_of_pending_messages -= 1;               
    _ISR_Enable( level );                                             
                                                                      
    *size_p = the_message->Contents.size;                             
 800dc68:	58 83 00 00 	sw (r4+0),r3                                   
    _Thread_Executing->Wait.count =                                   
 800dc6c:	58 40 00 24 	sw (r2+36),r0                                  
  const void *source,                                                 
  void       *destination,                                            
  size_t      size                                                    
)                                                                     
{                                                                     
  memcpy(destination, source, size);                                  
 800dc70:	35 82 00 0c 	addi r2,r12,12                                 
 800dc74:	f8 00 22 ae 	calli 801672c <memcpy>                         
RTEMS_INLINE_ROUTINE void _CORE_message_queue_Free_message_buffer (   
  CORE_message_queue_Control        *the_message_queue,               
  CORE_message_queue_Buffer_control *the_message                      
)                                                                     
{                                                                     
  _Chain_Append( &the_message_queue->Inactive_messages, &the_message->Node );
 800dc78:	35 61 00 60 	addi r1,r11,96                                 
 800dc7c:	b9 80 10 00 	mv r2,r12                                      
 800dc80:	fb ff ff 6d 	calli 800da34 <_Chain_Append>                  
      /*                                                              
       *  There is not an API with blocking sends enabled.            
       *  So return immediately.                                      
       */                                                             
      _CORE_message_queue_Free_message_buffer(the_message_queue, the_message);
      return;                                                         
 800dc84:	e0 00 00 12 	bi 800dccc <_CORE_message_queue_Seize+0xec>    
      return;                                                         
    }                                                                 
    #endif                                                            
  }                                                                   
                                                                      
  if ( !wait ) {                                                      
 800dc88:	5c ac 00 05 	bne r5,r12,800dc9c <_CORE_message_queue_Seize+0xbc>
    _ISR_Enable( level );                                             
 800dc8c:	d0 08 00 00 	wcsr IE,r8                                     
    executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT;
 800dc90:	34 01 00 04 	mvi r1,4                                       
 800dc94:	58 e1 00 34 	sw (r7+52),r1                                  
    return;                                                           
 800dc98:	e0 00 00 0d 	bi 800dccc <_CORE_message_queue_Seize+0xec>    
                                                                      
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;
 800dc9c:	34 03 00 01 	mvi r3,1                                       
 800dca0:	59 63 00 30 	sw (r11+48),r3                                 
  }                                                                   
                                                                      
  _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue );
  executing->Wait.queue = &the_message_queue->Wait_queue;             
 800dca4:	58 eb 00 44 	sw (r7+68),r11                                 
  executing->Wait.id = id;                                            
 800dca8:	58 e2 00 20 	sw (r7+32),r2                                  
  executing->Wait.return_argument_second.mutable_object = buffer;     
 800dcac:	58 e1 00 2c 	sw (r7+44),r1                                  
  executing->Wait.return_argument = size_p;                           
 800dcb0:	58 e4 00 28 	sw (r7+40),r4                                  
  /* Wait.count will be filled in with the message priority */        
  _ISR_Enable( level );                                               
 800dcb4:	d0 08 00 00 	wcsr IE,r8                                     
                                                                      
  _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );   
 800dcb8:	78 03 08 01 	mvhi r3,0x801                                  
 800dcbc:	b9 60 08 00 	mv r1,r11                                      
 800dcc0:	b8 c0 10 00 	mv r2,r6                                       
 800dcc4:	38 63 05 b0 	ori r3,r3,0x5b0                                
 800dcc8:	f8 00 08 f3 	calli 8010094 <_Thread_queue_Enqueue_with_handler>
}                                                                     
 800dccc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800dcd0:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 800dcd4:	2b 8c 00 08 	lw r12,(sp+8)                                  
 800dcd8:	37 9c 00 0c 	addi sp,sp,12                                  
 800dcdc:	c3 a0 00 00 	ret                                            
                                                                      

08003710 <_CORE_mutex_Seize>: Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) {
 8003710:	37 9c ff e8 	addi sp,sp,-24                                 
 8003714:	5b 8b 00 14 	sw (sp+20),r11                                 
 8003718:	5b 8c 00 10 	sw (sp+16),r12                                 
 800371c:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8003720:	5b 8e 00 08 	sw (sp+8),r14                                  
 8003724:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003728:	b8 20 58 00 	mv r11,r1                                      
  _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 
 800372c:	78 01 08 01 	mvhi r1,0x801                                  
 8003730:	38 21 38 1c 	ori r1,r1,0x381c                               
 8003734:	28 21 00 00 	lw r1,(r1+0)                                   
  Objects_Id           _id,                                           
  bool                 _wait,                                         
  Watchdog_Interval    _timeout,                                      
  ISR_Level            _level                                         
)                                                                     
{                                                                     
 8003738:	5b 85 00 18 	sw (sp+24),r5                                  
 800373c:	b8 40 70 00 	mv r14,r2                                      
 8003740:	b8 80 68 00 	mv r13,r4                                      
 8003744:	20 6c 00 ff 	andi r12,r3,0xff                               
  _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 
 8003748:	44 20 00 0b 	be r1,r0,8003774 <_CORE_mutex_Seize+0x64>      
 800374c:	45 80 00 0a 	be r12,r0,8003774 <_CORE_mutex_Seize+0x64>     <== NEVER TAKEN
 8003750:	78 01 08 01 	mvhi r1,0x801                                  
 8003754:	38 21 39 9c 	ori r1,r1,0x399c                               
 8003758:	28 21 00 00 	lw r1,(r1+0)                                   
 800375c:	34 02 00 01 	mvi r2,1                                       
 8003760:	50 41 00 05 	bgeu r2,r1,8003774 <_CORE_mutex_Seize+0x64>    
 8003764:	34 01 00 00 	mvi r1,0                                       
 8003768:	34 02 00 00 	mvi r2,0                                       
 800376c:	34 03 00 12 	mvi r3,18                                      
 8003770:	f8 00 02 2e 	calli 8004028 <_Internal_error_Occurred>       
 8003774:	b9 60 08 00 	mv r1,r11                                      
 8003778:	37 82 00 18 	addi r2,sp,24                                  
 800377c:	f8 00 15 56 	calli 8008cd4 <_CORE_mutex_Seize_interrupt_trylock>
 8003780:	44 20 00 19 	be r1,r0,80037e4 <_CORE_mutex_Seize+0xd4>      
 8003784:	78 01 08 01 	mvhi r1,0x801                                  
 8003788:	38 21 39 e8 	ori r1,r1,0x39e8                               
 800378c:	5d 80 00 07 	bne r12,r0,80037a8 <_CORE_mutex_Seize+0x98>    
 8003790:	2b 82 00 18 	lw r2,(sp+24)                                  
 8003794:	d0 02 00 00 	wcsr IE,r2                                     
 8003798:	28 21 00 0c 	lw r1,(r1+12)                                  
 800379c:	34 02 00 01 	mvi r2,1                                       
 80037a0:	58 22 00 34 	sw (r1+52),r2                                  
 80037a4:	e0 00 00 10 	bi 80037e4 <_CORE_mutex_Seize+0xd4>            
 80037a8:	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;
 80037ac:	34 02 00 01 	mvi r2,1                                       
 80037b0:	59 62 00 30 	sw (r11+48),r2                                 
 80037b4:	58 2b 00 44 	sw (r1+68),r11                                 
 80037b8:	58 2e 00 20 	sw (r1+32),r14                                 
 80037bc:	78 01 08 01 	mvhi r1,0x801                                  
 80037c0:	38 21 38 1c 	ori r1,r1,0x381c                               
 80037c4:	28 22 00 00 	lw r2,(r1+0)                                   
 80037c8:	34 42 00 01 	addi r2,r2,1                                   
 80037cc:	58 22 00 00 	sw (r1+0),r2                                   
 80037d0:	2b 81 00 18 	lw r1,(sp+24)                                  
 80037d4:	d0 01 00 00 	wcsr IE,r1                                     
 80037d8:	b9 60 08 00 	mv r1,r11                                      
 80037dc:	b9 a0 10 00 	mv r2,r13                                      
 80037e0:	fb ff ff ab 	calli 800368c <_CORE_mutex_Seize_interrupt_blocking>
}                                                                     
 80037e4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80037e8:	2b 8b 00 14 	lw r11,(sp+20)                                 
 80037ec:	2b 8c 00 10 	lw r12,(sp+16)                                 
 80037f0:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 80037f4:	2b 8e 00 08 	lw r14,(sp+8)                                  
 80037f8:	37 9c 00 18 	addi sp,sp,24                                  
 80037fc:	c3 a0 00 00 	ret                                            
                                                                      

08008cd4 <_CORE_mutex_Seize_interrupt_trylock>: #if defined(__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__) int _CORE_mutex_Seize_interrupt_trylock( CORE_mutex_Control *the_mutex, ISR_Level *level_p ) {
 8008cd4:	37 9c ff fc 	addi sp,sp,-4                                  
 8008cd8:	5b 9d 00 04 	sw (sp+4),ra                                   
 8008cdc:	b8 20 18 00 	mv r3,r1                                       
{                                                                     
  Thread_Control   *executing;                                        
                                                                      
  /* disabled when you get here */                                    
                                                                      
  executing = _Thread_Executing;                                      
 8008ce0:	78 01 08 01 	mvhi r1,0x801                                  
 8008ce4:	38 21 39 e8 	ori r1,r1,0x39e8                               
 8008ce8:	28 24 00 0c 	lw r4,(r1+12)                                  
  executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;         
  if ( !_CORE_mutex_Is_locked( the_mutex ) ) {                        
 8008cec:	28 61 00 50 	lw r1,(r3+80)                                  
  Thread_Control   *executing;                                        
                                                                      
  /* disabled when you get here */                                    
                                                                      
  executing = _Thread_Executing;                                      
  executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;         
 8008cf0:	58 80 00 34 	sw (r4+52),r0                                  
  if ( !_CORE_mutex_Is_locked( the_mutex ) ) {                        
 8008cf4:	44 20 00 31 	be r1,r0,8008db8 <_CORE_mutex_Seize_interrupt_trylock+0xe4>
    the_mutex->lock       = CORE_MUTEX_LOCKED;                        
    the_mutex->holder     = executing;                                
    the_mutex->holder_id  = executing->Object.id;                     
 8008cf8:	28 81 00 08 	lw r1,(r4+8)                                   
  /* disabled when you get here */                                    
                                                                      
  executing = _Thread_Executing;                                      
  executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;         
  if ( !_CORE_mutex_Is_locked( the_mutex ) ) {                        
    the_mutex->lock       = CORE_MUTEX_LOCKED;                        
 8008cfc:	58 60 00 50 	sw (r3+80),r0                                  
    the_mutex->holder     = executing;                                
 8008d00:	58 64 00 5c 	sw (r3+92),r4                                  
    the_mutex->holder_id  = executing->Object.id;                     
 8008d04:	58 61 00 60 	sw (r3+96),r1                                  
    the_mutex->nest_count = 1;                                        
 8008d08:	34 01 00 01 	mvi r1,1                                       
 8008d0c:	58 61 00 54 	sw (r3+84),r1                                  
  return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p );
}                                                                     
 8008d10:	28 61 00 48 	lw r1,(r3+72)                                  
    if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 
 8008d14:	34 05 00 02 	mvi r5,2                                       
 8008d18:	44 25 00 03 	be r1,r5,8008d24 <_CORE_mutex_Seize_interrupt_trylock+0x50>
 8008d1c:	34 05 00 03 	mvi r5,3                                       
 8008d20:	5c 25 00 06 	bne r1,r5,8008d38 <_CORE_mutex_Seize_interrupt_trylock+0x64>
       _Chain_Prepend_unprotected( &executing->lock_mutex,            
                                   &the_mutex->queue.lock_queue );    
       the_mutex->queue.priority_before = executing->current_priority;
#endif                                                                
                                                                      
      executing->resource_count++;                                    
 8008d24:	28 85 00 1c 	lw r5,(r4+28)                                  
 8008d28:	34 a6 00 01 	addi r6,r5,1                                   
 8008d2c:	58 86 00 1c 	sw (r4+28),r6                                  
    }                                                                 
                                                                      
    if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) {
 8008d30:	34 06 00 03 	mvi r6,3                                       
 8008d34:	44 26 00 04 	be r1,r6,8008d44 <_CORE_mutex_Seize_interrupt_trylock+0x70>
      _ISR_Enable( *level_p );                                        
 8008d38:	28 41 00 00 	lw r1,(r2+0)                                   
 8008d3c:	d0 01 00 00 	wcsr IE,r1                                     
 8008d40:	e0 00 00 2f 	bi 8008dfc <_CORE_mutex_Seize_interrupt_trylock+0x128>
       */                                                             
    {                                                                 
      Priority_Control  ceiling;                                      
      Priority_Control  current;                                      
                                                                      
      ceiling = the_mutex->Attributes.priority_ceiling;               
 8008d44:	28 66 00 4c 	lw r6,(r3+76)                                  
      current = executing->current_priority;                          
 8008d48:	28 81 00 14 	lw r1,(r4+20)                                  
      if ( current == ceiling ) {                                     
 8008d4c:	5c 26 00 04 	bne r1,r6,8008d5c <_CORE_mutex_Seize_interrupt_trylock+0x88>
        _ISR_Enable( *level_p );                                      
 8008d50:	28 41 00 00 	lw r1,(r2+0)                                   
 8008d54:	d0 01 00 00 	wcsr IE,r1                                     
 8008d58:	e0 00 00 29 	bi 8008dfc <_CORE_mutex_Seize_interrupt_trylock+0x128>
        return 0;                                                     
      }                                                               
                                                                      
      if ( current > ceiling ) {                                      
 8008d5c:	50 c1 00 0e 	bgeu r6,r1,8008d94 <_CORE_mutex_Seize_interrupt_trylock+0xc0>
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
 8008d60:	78 01 08 01 	mvhi r1,0x801                                  
 8008d64:	38 21 38 1c 	ori r1,r1,0x381c                               
 8008d68:	28 24 00 00 	lw r4,(r1+0)                                   
 8008d6c:	34 84 00 01 	addi r4,r4,1                                   
 8008d70:	58 24 00 00 	sw (r1+0),r4                                   
        _Thread_Disable_dispatch();                                   
        _ISR_Enable( *level_p );                                      
 8008d74:	28 41 00 00 	lw r1,(r2+0)                                   
 8008d78:	d0 01 00 00 	wcsr IE,r1                                     
        _Thread_Change_priority(                                      
 8008d7c:	28 61 00 5c 	lw r1,(r3+92)                                  
 8008d80:	28 62 00 4c 	lw r2,(r3+76)                                  
 8008d84:	34 03 00 00 	mvi r3,0                                       
 8008d88:	fb ff ef 6c 	calli 8004b38 <_Thread_Change_priority>        
          the_mutex->holder,                                          
          the_mutex->Attributes.priority_ceiling,                     
         false                                                        
        );                                                            
        _Thread_Enable_dispatch();                                    
 8008d8c:	fb ff f0 bf 	calli 8005088 <_Thread_Enable_dispatch>        
 8008d90:	e0 00 00 1b 	bi 8008dfc <_CORE_mutex_Seize_interrupt_trylock+0x128>
        return 0;                                                     
      }                                                               
      /* if ( current < ceiling ) */ {                                
        executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED;
 8008d94:	34 01 00 06 	mvi r1,6                                       
 8008d98:	58 81 00 34 	sw (r4+52),r1                                  
        the_mutex->lock       = CORE_MUTEX_UNLOCKED;                  
 8008d9c:	34 01 00 01 	mvi r1,1                                       
 8008da0:	58 61 00 50 	sw (r3+80),r1                                  
        the_mutex->nest_count = 0;     /* undo locking above */       
 8008da4:	58 60 00 54 	sw (r3+84),r0                                  
        executing->resource_count--;   /* undo locking above */       
 8008da8:	58 85 00 1c 	sw (r4+28),r5                                  
        _ISR_Enable( *level_p );                                      
 8008dac:	28 41 00 00 	lw r1,(r2+0)                                   
 8008db0:	d0 01 00 00 	wcsr IE,r1                                     
 8008db4:	e0 00 00 12 	bi 8008dfc <_CORE_mutex_Seize_interrupt_trylock+0x128>
  /*                                                                  
   *  At this point, we know the mutex was not available.  If this thread
   *  is the thread that has locked the mutex, let's see if we are allowed
   *  to nest access.                                                 
   */                                                                 
  if ( _Thread_Is_executing( the_mutex->holder ) ) {                  
 8008db8:	28 65 00 5c 	lw r5,(r3+92)                                  
                                                                      
  /*                                                                  
   *  The mutex is not available and the caller must deal with the possibility
   *  of blocking.                                                    
   */                                                                 
  return 1;                                                           
 8008dbc:	34 01 00 01 	mvi r1,1                                       
  /*                                                                  
   *  At this point, we know the mutex was not available.  If this thread
   *  is the thread that has locked the mutex, let's see if we are allowed
   *  to nest access.                                                 
   */                                                                 
  if ( _Thread_Is_executing( the_mutex->holder ) ) {                  
 8008dc0:	5c a4 00 10 	bne r5,r4,8008e00 <_CORE_mutex_Seize_interrupt_trylock+0x12c>
    switch ( the_mutex->Attributes.lock_nesting_behavior ) {          
 8008dc4:	28 64 00 40 	lw r4,(r3+64)                                  
 8008dc8:	44 80 00 03 	be r4,r0,8008dd4 <_CORE_mutex_Seize_interrupt_trylock+0x100>
 8008dcc:	5c 81 00 0d 	bne r4,r1,8008e00 <_CORE_mutex_Seize_interrupt_trylock+0x12c><== ALWAYS TAKEN
 8008dd0:	e0 00 00 07 	bi 8008dec <_CORE_mutex_Seize_interrupt_trylock+0x118><== NOT EXECUTED
      case CORE_MUTEX_NESTING_ACQUIRES:                               
        the_mutex->nest_count++;                                      
 8008dd4:	28 61 00 54 	lw r1,(r3+84)                                  
 8008dd8:	34 21 00 01 	addi r1,r1,1                                   
 8008ddc:	58 61 00 54 	sw (r3+84),r1                                  
        _ISR_Enable( *level_p );                                      
 8008de0:	28 41 00 00 	lw r1,(r2+0)                                   
 8008de4:	d0 01 00 00 	wcsr IE,r1                                     
 8008de8:	e0 00 00 05 	bi 8008dfc <_CORE_mutex_Seize_interrupt_trylock+0x128>
        return 0;                                                     
      case CORE_MUTEX_NESTING_IS_ERROR:                               
        executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED;
 8008dec:	34 01 00 02 	mvi r1,2                                       <== NOT EXECUTED
 8008df0:	58 a1 00 34 	sw (r5+52),r1                                  <== NOT EXECUTED
        _ISR_Enable( *level_p );                                      
 8008df4:	28 41 00 00 	lw r1,(r2+0)                                   <== NOT EXECUTED
 8008df8:	d0 01 00 00 	wcsr IE,r1                                     <== NOT EXECUTED
        return 0;                                                     
 8008dfc:	34 01 00 00 	mvi r1,0                                       
 8008e00:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8008e04:	37 9c 00 04 	addi sp,sp,4                                   
 8008e08:	c3 a0 00 00 	ret                                            
                                                                      

08003960 <_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 ) {
 8003960:	37 9c ff f8 	addi sp,sp,-8                                  
 8003964:	5b 8b 00 08 	sw (sp+8),r11                                  
 8003968:	5b 9d 00 04 	sw (sp+4),ra                                   
 800396c:	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)) ) {
 8003970:	f8 00 06 bf 	calli 800546c <_Thread_queue_Dequeue>          
{                                                                     
  Thread_Control *the_thread;                                         
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
 8003974:	34 02 00 00 	mvi r2,0                                       
                                                                      
  if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) {
 8003978:	5c 20 00 0d 	bne r1,r0,80039ac <_CORE_semaphore_Surrender+0x4c>
    if ( !_Objects_Is_local_id( the_thread->Object.id ) )             
      (*api_semaphore_mp_support) ( the_thread, id );                 
#endif                                                                
                                                                      
  } else {                                                            
    _ISR_Disable( level );                                            
 800397c:	90 00 08 00 	rcsr r1,IE                                     
 8003980:	34 02 ff fe 	mvi r2,-2                                      
 8003984:	a0 22 10 00 	and r2,r1,r2                                   
 8003988:	d0 02 00 00 	wcsr IE,r2                                     
      if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
 800398c:	29 63 00 48 	lw r3,(r11+72)                                 
 8003990:	29 64 00 40 	lw r4,(r11+64)                                 
        the_semaphore->count += 1;                                    
      else                                                            
        status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;               
 8003994:	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 )
 8003998:	50 64 00 04 	bgeu r3,r4,80039a8 <_CORE_semaphore_Surrender+0x48><== NEVER TAKEN
        the_semaphore->count += 1;                                    
 800399c:	34 63 00 01 	addi r3,r3,1                                   
 80039a0:	59 63 00 48 	sw (r11+72),r3                                 
{                                                                     
  Thread_Control *the_thread;                                         
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
 80039a4:	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 );                                             
 80039a8:	d0 01 00 00 	wcsr IE,r1                                     
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
 80039ac:	b8 40 08 00 	mv r1,r2                                       
 80039b0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80039b4:	2b 8b 00 08 	lw r11,(sp+8)                                  
 80039b8:	37 9c 00 08 	addi sp,sp,8                                   
 80039bc:	c3 a0 00 00 	ret                                            
                                                                      

0800cbac <_Event_Seize>: rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) {
 800cbac:	37 9c ff f8 	addi sp,sp,-8                                  
 800cbb0:	5b 8b 00 08 	sw (sp+8),r11                                  
 800cbb4:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_event_set                   pending_events;                   
  ISR_Level                         level;                            
  RTEMS_API_Control                *api;                              
  Thread_blocking_operation_States  sync_state;                       
                                                                      
  executing = _Thread_Executing;                                      
 800cbb8:	78 05 08 01 	mvhi r5,0x801                                  
 800cbbc:	38 a5 8a 68 	ori r5,r5,0x8a68                               
 800cbc0:	28 ab 00 0c 	lw r11,(r5+12)                                 
  executing->Wait.return_code = RTEMS_SUCCESSFUL;                     
 800cbc4:	59 60 00 34 	sw (r11+52),r0                                 
                                                                      
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
 800cbc8:	29 67 01 24 	lw r7,(r11+292)                                
                                                                      
  _ISR_Disable( level );                                              
 800cbcc:	90 00 30 00 	rcsr r6,IE                                     
 800cbd0:	34 05 ff fe 	mvi r5,-2                                      
 800cbd4:	a0 c5 28 00 	and r5,r6,r5                                   
 800cbd8:	d0 05 00 00 	wcsr IE,r5                                     
  pending_events = api->pending_events;                               
 800cbdc:	28 e8 00 00 	lw r8,(r7+0)                                   
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 );                    
 800cbe0:	a0 28 28 00 	and r5,r1,r8                                   
  seized_events  = _Event_sets_Get( pending_events, event_in );       
                                                                      
  if ( !_Event_sets_Is_empty( seized_events ) &&                      
 800cbe4:	44 a0 00 09 	be r5,r0,800cc08 <_Event_Seize+0x5c>           
 800cbe8:	44 a1 00 03 	be r5,r1,800cbf4 <_Event_Seize+0x48>           
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Options_Is_any (                           
  rtems_option option_set                                             
)                                                                     
{                                                                     
   return (option_set & RTEMS_EVENT_ANY) ? true : false;              
 800cbec:	20 49 00 02 	andi r9,r2,0x2                                 
       (seized_events == event_in || _Options_Is_any( option_set )) ) {
 800cbf0:	45 20 00 06 	be r9,r0,800cc08 <_Event_Seize+0x5c>           <== 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) );                            
 800cbf4:	a4 a0 08 00 	not r1,r5                                      
 800cbf8:	a0 28 40 00 	and r8,r1,r8                                   
    api->pending_events =                                             
 800cbfc:	58 e8 00 00 	sw (r7+0),r8                                   
      _Event_sets_Clear( pending_events, seized_events );             
    _ISR_Enable( level );                                             
 800cc00:	d0 06 00 00 	wcsr IE,r6                                     
 800cc04:	e0 00 00 06 	bi 800cc1c <_Event_Seize+0x70>                 
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Options_Is_no_wait (                       
  rtems_option option_set                                             
)                                                                     
{                                                                     
   return (option_set & RTEMS_NO_WAIT) ? true : false;                
 800cc08:	20 47 00 01 	andi r7,r2,0x1                                 
    *event_out = seized_events;                                       
    return;                                                           
  }                                                                   
                                                                      
  if ( _Options_Is_no_wait( option_set ) ) {                          
 800cc0c:	44 e0 00 06 	be r7,r0,800cc24 <_Event_Seize+0x78>           
    _ISR_Enable( level );                                             
 800cc10:	d0 06 00 00 	wcsr IE,r6                                     
    executing->Wait.return_code = RTEMS_UNSATISFIED;                  
 800cc14:	34 01 00 0d 	mvi r1,13                                      
 800cc18:	59 61 00 34 	sw (r11+52),r1                                 
    *event_out = seized_events;                                       
 800cc1c:	58 85 00 00 	sw (r4+0),r5                                   
    return;                                                           
 800cc20:	e0 00 00 27 	bi 800ccbc <_Event_Seize+0x110>                
   *                                                                  
   *  NOTE: Since interrupts are disabled, this isn't that much of an 
   *        issue but better safe than sorry.                         
   */                                                                 
  executing->Wait.option            = (uint32_t) option_set;          
  executing->Wait.count             = (uint32_t) event_in;            
 800cc24:	59 61 00 24 	sw (r11+36),r1                                 
  executing->Wait.return_argument   = event_out;                      
                                                                      
  _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;     
 800cc28:	78 01 08 01 	mvhi r1,0x801                                  
   *  set properly when we are marked as in the event critical section.
   *                                                                  
   *  NOTE: Since interrupts are disabled, this isn't that much of an 
   *        issue but better safe than sorry.                         
   */                                                                 
  executing->Wait.option            = (uint32_t) option_set;          
 800cc2c:	59 62 00 30 	sw (r11+48),r2                                 
  executing->Wait.count             = (uint32_t) event_in;            
  executing->Wait.return_argument   = event_out;                      
                                                                      
  _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;     
 800cc30:	38 21 8b 94 	ori r1,r1,0x8b94                               
 800cc34:	34 02 00 01 	mvi r2,1                                       
   *  NOTE: Since interrupts are disabled, this isn't that much of an 
   *        issue but better safe than sorry.                         
   */                                                                 
  executing->Wait.option            = (uint32_t) option_set;          
  executing->Wait.count             = (uint32_t) event_in;            
  executing->Wait.return_argument   = event_out;                      
 800cc38:	59 64 00 28 	sw (r11+40),r4                                 
                                                                      
  _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;     
 800cc3c:	58 22 00 00 	sw (r1+0),r2                                   
                                                                      
  _ISR_Enable( level );                                               
 800cc40:	d0 06 00 00 	wcsr IE,r6                                     
                                                                      
  if ( ticks ) {                                                      
 800cc44:	44 60 00 0d 	be r3,r0,800cc78 <_Event_Seize+0xcc>           
    _Watchdog_Initialize(                                             
 800cc48:	29 62 00 08 	lw r2,(r11+8)                                  
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
 800cc4c:	78 01 08 00 	mvhi r1,0x800                                  
 800cc50:	38 21 ce 74 	ori r1,r1,0xce74                               
 800cc54:	59 61 00 64 	sw (r11+100),r1                                
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 800cc58:	78 01 08 01 	mvhi r1,0x801                                  
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
  the_watchdog->id        = id;                                       
 800cc5c:	59 62 00 68 	sw (r11+104),r2                                
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 800cc60:	59 60 00 50 	sw (r11+80),r0                                 
  the_watchdog->routine   = routine;                                  
  the_watchdog->id        = id;                                       
  the_watchdog->user_data = user_data;                                
 800cc64:	59 60 00 6c 	sw (r11+108),r0                                
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 800cc68:	59 63 00 54 	sw (r11+84),r3                                 
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 800cc6c:	38 21 89 60 	ori r1,r1,0x8960                               
 800cc70:	35 62 00 48 	addi r2,r11,72                                 
 800cc74:	fb ff eb 0d 	calli 80078a8 <_Watchdog_Insert>               
      NULL                                                            
    );                                                                
    _Watchdog_Insert_ticks( &executing->Timer, ticks );               
  }                                                                   
                                                                      
  _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT );           
 800cc78:	b9 60 08 00 	mv r1,r11                                      
 800cc7c:	34 02 01 00 	mvi r2,256                                     
 800cc80:	fb ff e9 08 	calli 80070a0 <_Thread_Set_state>              
                                                                      
  _ISR_Disable( level );                                              
 800cc84:	90 00 18 00 	rcsr r3,IE                                     
 800cc88:	34 01 ff fe 	mvi r1,-2                                      
 800cc8c:	a0 61 08 00 	and r1,r3,r1                                   
 800cc90:	d0 01 00 00 	wcsr IE,r1                                     
                                                                      
  sync_state = _Event_Sync_state;                                     
 800cc94:	78 02 08 01 	mvhi r2,0x801                                  
 800cc98:	38 42 8b 94 	ori r2,r2,0x8b94                               
 800cc9c:	28 41 00 00 	lw r1,(r2+0)                                   
  _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;         
 800cca0:	58 40 00 00 	sw (r2+0),r0                                   
  if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) {   
 800cca4:	34 02 00 01 	mvi r2,1                                       
 800cca8:	5c 22 00 03 	bne r1,r2,800ccb4 <_Event_Seize+0x108>         
    _ISR_Enable( level );                                             
 800ccac:	d0 03 00 00 	wcsr IE,r3                                     
    return;                                                           
 800ccb0:	e0 00 00 03 	bi 800ccbc <_Event_Seize+0x110>                
   *  An interrupt completed the thread's blocking request.           
   *  The blocking thread was satisfied by an ISR or timed out.       
   *                                                                  
   *  WARNING! Returning with interrupts disabled!                    
   */                                                                 
  _Thread_blocking_operation_Cancel( sync_state, executing, level );  
 800ccb4:	b9 60 10 00 	mv r2,r11                                      
 800ccb8:	f8 00 05 53 	calli 800e204 <_Thread_blocking_operation_Cancel>
}                                                                     
 800ccbc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800ccc0:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800ccc4:	37 9c 00 08 	addi sp,sp,8                                   
 800ccc8:	c3 a0 00 00 	ret                                            
                                                                      

0800cd34 <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) {
 800cd34:	37 9c ff f8 	addi sp,sp,-8                                  
 800cd38:	5b 8b 00 08 	sw (sp+8),r11                                  
 800cd3c:	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 ];               
 800cd40:	28 24 01 24 	lw r4,(r1+292)                                 
                                                                      
  option_set = (rtems_option) the_thread->Wait.option;                
 800cd44:	28 28 00 30 	lw r8,(r1+48)                                  
 */                                                                   
                                                                      
void _Event_Surrender(                                                
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
 800cd48:	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 );                                              
 800cd4c:	90 00 08 00 	rcsr r1,IE                                     
 800cd50:	34 07 ff fe 	mvi r7,-2                                      
 800cd54:	a0 27 38 00 	and r7,r1,r7                                   
 800cd58:	d0 07 00 00 	wcsr IE,r7                                     
  pending_events  = api->pending_events;                              
 800cd5c:	28 85 00 00 	lw r5,(r4+0)                                   
  event_condition = (rtems_event_set) the_thread->Wait.count;         
 800cd60:	29 66 00 24 	lw r6,(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 );                    
 800cd64:	a0 c5 10 00 	and r2,r6,r5                                   
  seized_events = _Event_sets_Get( pending_events, event_condition ); 
                                                                      
  /*                                                                  
   *  No events were seized in this operation                         
   */                                                                 
  if ( _Event_sets_Is_empty( seized_events ) ) {                      
 800cd68:	5c 40 00 03 	bne r2,r0,800cd74 <_Event_Surrender+0x40>      
    _ISR_Enable( level );                                             
 800cd6c:	d0 01 00 00 	wcsr IE,r1                                     
    return;                                                           
 800cd70:	e0 00 00 3d 	bi 800ce64 <_Event_Surrender+0x130>            
                                                                      
  /*                                                                  
   *  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() &&                                       
 800cd74:	78 03 08 01 	mvhi r3,0x801                                  
 800cd78:	38 63 8a 68 	ori r3,r3,0x8a68                               
 800cd7c:	28 69 00 08 	lw r9,(r3+8)                                   
 800cd80:	45 20 00 1a 	be r9,r0,800cde8 <_Event_Surrender+0xb4>       
 800cd84:	28 63 00 0c 	lw r3,(r3+12)                                  
 800cd88:	5d 63 00 18 	bne r11,r3,800cde8 <_Event_Surrender+0xb4>     
       _Thread_Is_executing( the_thread ) &&                          
       ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||   
 800cd8c:	78 03 08 01 	mvhi r3,0x801                                  
 800cd90:	38 63 8b 94 	ori r3,r3,0x8b94                               
 800cd94:	28 6a 00 00 	lw r10,(r3+0)                                  
  /*                                                                  
   *  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 ) &&                          
 800cd98:	34 09 00 02 	mvi r9,2                                       
 800cd9c:	45 49 00 04 	be r10,r9,800cdac <_Event_Surrender+0x78>      <== NEVER TAKEN
       ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||   
        (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
 800cda0:	28 69 00 00 	lw r9,(r3+0)                                   
   *  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) ||   
 800cda4:	34 03 00 01 	mvi r3,1                                       
 800cda8:	5d 23 00 10 	bne r9,r3,800cde8 <_Event_Surrender+0xb4>      <== NEVER TAKEN
        (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
    if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
 800cdac:	44 46 00 03 	be r2,r6,800cdb8 <_Event_Surrender+0x84>       
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Options_Is_any (                           
  rtems_option option_set                                             
)                                                                     
{                                                                     
   return (option_set & RTEMS_EVENT_ANY) ? true : false;              
 800cdb0:	21 08 00 02 	andi r8,r8,0x2                                 
 800cdb4:	45 00 00 0b 	be r8,r0,800cde0 <_Event_Surrender+0xac>       <== 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) );                            
 800cdb8:	a4 40 18 00 	not r3,r2                                      
 800cdbc:	a0 65 28 00 	and r5,r3,r5                                   
      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;
 800cdc0:	29 63 00 28 	lw r3,(r11+40)                                 
  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 );
 800cdc4:	58 85 00 00 	sw (r4+0),r5                                   
      the_thread->Wait.count = 0;                                     
 800cdc8:	59 60 00 24 	sw (r11+36),r0                                 
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
 800cdcc:	58 62 00 00 	sw (r3+0),r2                                   
      _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;        
 800cdd0:	78 02 08 01 	mvhi r2,0x801                                  
 800cdd4:	38 42 8b 94 	ori r2,r2,0x8b94                               
 800cdd8:	34 03 00 03 	mvi r3,3                                       
 800cddc:	58 43 00 00 	sw (r2+0),r3                                   
    }                                                                 
    _ISR_Enable( level );                                             
 800cde0:	d0 01 00 00 	wcsr IE,r1                                     
    return;                                                           
 800cde4:	e0 00 00 20 	bi 800ce64 <_Event_Surrender+0x130>            
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_event (              
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_WAITING_FOR_EVENT);                    
 800cde8:	29 63 00 10 	lw r3,(r11+16)                                 
 800cdec:	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 ) ) {  
 800cdf0:	44 60 00 1c 	be r3,r0,800ce60 <_Event_Surrender+0x12c>      
    if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
 800cdf4:	44 46 00 03 	be r2,r6,800ce00 <_Event_Surrender+0xcc>       
 800cdf8:	21 08 00 02 	andi r8,r8,0x2                                 
 800cdfc:	45 00 00 19 	be r8,r0,800ce60 <_Event_Surrender+0x12c>      <== NEVER TAKEN
 800ce00:	a4 40 18 00 	not r3,r2                                      
 800ce04:	a0 65 28 00 	and r5,r3,r5                                   
      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;
 800ce08:	29 63 00 28 	lw r3,(r11+40)                                 
  /*                                                                  
   *  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 );
 800ce0c:	58 85 00 00 	sw (r4+0),r5                                   
      the_thread->Wait.count = 0;                                     
 800ce10:	59 60 00 24 	sw (r11+36),r0                                 
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
 800ce14:	58 62 00 00 	sw (r3+0),r2                                   
                                                                      
      _ISR_Flash( level );                                            
 800ce18:	d0 01 00 00 	wcsr IE,r1                                     
 800ce1c:	d0 07 00 00 	wcsr IE,r7                                     
                                                                      
      if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {             
 800ce20:	29 63 00 50 	lw r3,(r11+80)                                 
 800ce24:	34 02 00 02 	mvi r2,2                                       
 800ce28:	44 62 00 03 	be r3,r2,800ce34 <_Event_Surrender+0x100>      
        _ISR_Enable( level );                                         
 800ce2c:	d0 01 00 00 	wcsr IE,r1                                     
 800ce30:	e0 00 00 06 	bi 800ce48 <_Event_Surrender+0x114>            
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(                       
  Watchdog_Control *the_watchdog                                      
)                                                                     
{                                                                     
                                                                      
  the_watchdog->state = WATCHDOG_REMOVE_IT;                           
 800ce34:	34 02 00 03 	mvi r2,3                                       
 800ce38:	59 62 00 50 	sw (r11+80),r2                                 
        _Thread_Unblock( the_thread );                                
      } else {                                                        
        _Watchdog_Deactivate( &the_thread->Timer );                   
        _ISR_Enable( level );                                         
 800ce3c:	d0 01 00 00 	wcsr IE,r1                                     
        (void) _Watchdog_Remove( &the_thread->Timer );                
 800ce40:	35 61 00 48 	addi r1,r11,72                                 
 800ce44:	fb ff ea f6 	calli 8007a1c <_Watchdog_Remove>               
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
 800ce48:	78 03 08 01 	mvhi r3,0x801                                  
 800ce4c:	38 63 6e c4 	ori r3,r3,0x6ec4                               
 800ce50:	28 62 00 00 	lw r2,(r3+0)                                   
 800ce54:	b9 60 08 00 	mv r1,r11                                      
 800ce58:	f8 00 05 03 	calli 800e264 <_Thread_Clear_state>            
 800ce5c:	e0 00 00 02 	bi 800ce64 <_Event_Surrender+0x130>            
        _Thread_Unblock( the_thread );                                
      }                                                               
      return;                                                         
    }                                                                 
  }                                                                   
  _ISR_Enable( level );                                               
 800ce60:	d0 01 00 00 	wcsr IE,r1                                     
}                                                                     
 800ce64:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800ce68:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800ce6c:	37 9c 00 08 	addi sp,sp,8                                   
 800ce70:	c3 a0 00 00 	ret                                            
                                                                      

0800ce74 <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) {
 800ce74:	37 9c ff f8 	addi sp,sp,-8                                  
 800ce78:	5b 9d 00 04 	sw (sp+4),ra                                   
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
  ISR_Level          level;                                           
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 800ce7c:	37 82 00 08 	addi r2,sp,8                                   
 800ce80:	fb ff e5 b3 	calli 800654c <_Thread_Get>                    
  switch ( location ) {                                               
 800ce84:	2b 82 00 08 	lw r2,(sp+8)                                   
 800ce88:	5c 40 00 1d 	bne r2,r0,800cefc <_Event_Timeout+0x88>        <== NEVER TAKEN
       *                                                              
       *  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 );                                          
 800ce8c:	90 00 18 00 	rcsr r3,IE                                     
 800ce90:	34 02 ff fe 	mvi r2,-2                                      
 800ce94:	a0 62 10 00 	and r2,r3,r2                                   
 800ce98:	d0 02 00 00 	wcsr IE,r2                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
 800ce9c:	78 02 08 01 	mvhi r2,0x801                                  
 800cea0:	38 42 8a 68 	ori r2,r2,0x8a68                               
            return;                                                   
          }                                                           
        #endif                                                        
                                                                      
        the_thread->Wait.count = 0;                                   
        if ( _Thread_Is_executing( the_thread ) ) {                   
 800cea4:	28 42 00 0c 	lw r2,(r2+12)                                  
            _ISR_Enable( level );                                     
            return;                                                   
          }                                                           
        #endif                                                        
                                                                      
        the_thread->Wait.count = 0;                                   
 800cea8:	58 20 00 24 	sw (r1+36),r0                                  
        if ( _Thread_Is_executing( the_thread ) ) {                   
 800ceac:	5c 22 00 08 	bne r1,r2,800cecc <_Event_Timeout+0x58>        
          if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
 800ceb0:	78 02 08 01 	mvhi r2,0x801                                  
 800ceb4:	38 42 8b 94 	ori r2,r2,0x8b94                               
 800ceb8:	28 45 00 00 	lw r5,(r2+0)                                   
 800cebc:	34 04 00 01 	mvi r4,1                                       
 800cec0:	5c a4 00 03 	bne r5,r4,800cecc <_Event_Timeout+0x58>        
            _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;    
 800cec4:	34 04 00 02 	mvi r4,2                                       
 800cec8:	58 44 00 00 	sw (r2+0),r4                                   
        }                                                             
                                                                      
        the_thread->Wait.return_code = RTEMS_TIMEOUT;                 
 800cecc:	34 02 00 06 	mvi r2,6                                       
 800ced0:	58 22 00 34 	sw (r1+52),r2                                  
      _ISR_Enable( level );                                           
 800ced4:	d0 03 00 00 	wcsr IE,r3                                     
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
 800ced8:	78 03 08 01 	mvhi r3,0x801                                  
 800cedc:	38 63 6e c4 	ori r3,r3,0x6ec4                               
 800cee0:	28 62 00 00 	lw r2,(r3+0)                                   
 800cee4:	f8 00 04 e0 	calli 800e264 <_Thread_Clear_state>            
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
 800cee8:	78 01 08 01 	mvhi r1,0x801                                  
 800ceec:	38 21 88 9c 	ori r1,r1,0x889c                               
 800cef0:	28 22 00 00 	lw r2,(r1+0)                                   
 800cef4:	34 42 ff ff 	addi r2,r2,-1                                  
 800cef8:	58 22 00 00 	sw (r1+0),r2                                   
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
}                                                                     
 800cefc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800cf00:	37 9c 00 08 	addi sp,sp,8                                   
 800cf04:	c3 a0 00 00 	ret                                            
                                                                      

08008eb8 <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) {
 8008eb8:	37 9c ff b8 	addi sp,sp,-72                                 
 8008ebc:	5b 8b 00 44 	sw (sp+68),r11                                 
 8008ec0:	5b 8c 00 40 	sw (sp+64),r12                                 
 8008ec4:	5b 8d 00 3c 	sw (sp+60),r13                                 
 8008ec8:	5b 8e 00 38 	sw (sp+56),r14                                 
 8008ecc:	5b 8f 00 34 	sw (sp+52),r15                                 
 8008ed0:	5b 90 00 30 	sw (sp+48),r16                                 
 8008ed4:	5b 91 00 2c 	sw (sp+44),r17                                 
 8008ed8:	5b 92 00 28 	sw (sp+40),r18                                 
 8008edc:	5b 93 00 24 	sw (sp+36),r19                                 
 8008ee0:	5b 94 00 20 	sw (sp+32),r20                                 
 8008ee4:	5b 95 00 1c 	sw (sp+28),r21                                 
 8008ee8:	5b 96 00 18 	sw (sp+24),r22                                 
 8008eec:	5b 97 00 14 	sw (sp+20),r23                                 
 8008ef0:	5b 98 00 10 	sw (sp+16),r24                                 
 8008ef4:	5b 99 00 0c 	sw (sp+12),r25                                 
 8008ef8:	5b 9b 00 08 	sw (sp+8),fp                                   
 8008efc:	5b 9d 00 04 	sw (sp+4),ra                                   
  Heap_Statistics *const stats = &heap->stats;                        
  Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );    
  Heap_Block *block = _Heap_Free_list_first( heap );                  
  uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE
 8008f00:	34 55 00 04 	addi r21,r2,4                                  
  Heap_Control *heap,                                                 
  uintptr_t alloc_size,                                               
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
 8008f04:	b8 20 60 00 	mv r12,r1                                      
  if ( stats->max_search < search_count ) {                           
    stats->max_search = search_count;                                 
  }                                                                   
                                                                      
  return (void *) alloc_begin;                                        
}                                                                     
 8008f08:	28 2e 00 08 	lw r14,(r1+8)                                  
  Heap_Statistics *const stats = &heap->stats;                        
  Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );    
  Heap_Block *block = _Heap_Free_list_first( heap );                  
  uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE
    - HEAP_BLOCK_SIZE_OFFSET;                                         
  uintptr_t const page_size = heap->page_size;                        
 8008f0c:	28 33 00 10 	lw r19,(r1+16)                                 
  Heap_Control *heap,                                                 
  uintptr_t alloc_size,                                               
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
 8008f10:	b8 40 68 00 	mv r13,r2                                      
 8008f14:	b8 60 78 00 	mv r15,r3                                      
 8008f18:	b8 80 90 00 	mv r18,r4                                      
  uintptr_t alloc_begin = 0;                                          
  uint32_t search_count = 0;                                          
                                                                      
  if ( block_size_floor < alloc_size ) {                              
    /* Integer overflow occured */                                    
    return NULL;                                                      
 8008f1c:	34 01 00 00 	mvi r1,0                                       
    - HEAP_BLOCK_SIZE_OFFSET;                                         
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t alloc_begin = 0;                                          
  uint32_t search_count = 0;                                          
                                                                      
  if ( block_size_floor < alloc_size ) {                              
 8008f20:	54 55 00 53 	bgu r2,r21,800906c <_Heap_Allocate_aligned_with_boundary+0x1b4>
    /* Integer overflow occured */                                    
    return NULL;                                                      
  }                                                                   
                                                                      
  if ( boundary != 0 ) {                                              
 8008f24:	44 80 00 04 	be r4,r0,8008f34 <_Heap_Allocate_aligned_with_boundary+0x7c>
    if ( boundary < alloc_size ) {                                    
 8008f28:	54 44 00 51 	bgu r2,r4,800906c <_Heap_Allocate_aligned_with_boundary+0x1b4>
      return NULL;                                                    
    }                                                                 
                                                                      
    if ( alignment == 0 ) {                                           
 8008f2c:	5c 60 00 02 	bne r3,r0,8008f34 <_Heap_Allocate_aligned_with_boundary+0x7c>
      alignment = page_size;                                          
 8008f30:	ba 60 78 00 	mv r15,r19                                     
                                                                      
  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_BLOCK_SIZE_OFFSET;           
 8008f34:	34 18 00 04 	mvi r24,4                                      
    if ( boundary < alloc_size ) {                                    
      return NULL;                                                    
    }                                                                 
                                                                      
    if ( alignment == 0 ) {                                           
      alignment = page_size;                                          
 8008f38:	34 11 00 00 	mvi r17,0                                      
 8008f3c:	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    
 8008f40:	36 79 00 07 	addi r25,r19,7                                 
    + HEAP_BLOCK_HEADER_SIZE + page_size - 1;                         
                                                                      
  uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET;           
 8008f44:	cb 0d c0 00 	sub r24,r24,r13                                
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 8008f48:	34 17 ff f8 	mvi r23,-8                                     
 8008f4c:	e0 00 00 42 	bi 8009054 <_Heap_Allocate_aligned_with_boundary+0x19c>
    /*                                                                
     * 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 ) {                  
 8008f50:	29 cb 00 04 	lw r11,(r14+4)                                 
                                                                      
  while ( block != free_list_tail ) {                                 
    _HAssert( _Heap_Is_prev_used( block ) );                          
                                                                      
    /* Statistics */                                                  
    ++search_count;                                                   
 8008f54:	36 31 00 01 	addi r17,r17,1                                 
    /*                                                                
     * 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 ) {                  
 8008f58:	52 ab 00 3e 	bgeu r21,r11,8009050 <_Heap_Allocate_aligned_with_boundary+0x198>
 8008f5c:	35 d4 00 08 	addi r20,r14,8                                 
      if ( alignment == 0 ) {                                         
 8008f60:	5d e0 00 03 	bne r15,r0,8008f6c <_Heap_Allocate_aligned_with_boundary+0xb4>
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(             
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;                  
 8008f64:	ba 80 58 00 	mv r11,r20                                     
 8008f68:	e0 00 00 30 	bi 8009028 <_Heap_Allocate_aligned_with_boundary+0x170>
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const min_block_size = heap->min_block_size;              
 8008f6c:	29 96 00 14 	lw r22,(r12+20)                                
    - 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;                
 8008f70:	a1 7b 58 00 	and r11,r11,fp                                 
                                                                      
  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;               
 8008f74:	b5 cb 58 00 	add r11,r14,r11                                
                                                                      
  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;                         
 8008f78:	cb 36 80 00 	sub r16,r25,r22                                
  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    
 8008f7c:	b6 0b 80 00 	add r16,r16,r11                                
    + HEAP_BLOCK_HEADER_SIZE + page_size - 1;                         
                                                                      
  uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET;           
  uintptr_t alloc_begin = alloc_end - alloc_size;                     
 8008f80:	b7 0b 58 00 	add r11,r24,r11                                
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 8008f84:	b9 60 08 00 	mv r1,r11                                      
 8008f88:	b9 e0 10 00 	mv r2,r15                                      
 8008f8c:	f8 00 1f 1e 	calli 8010c04 <__umodsi3>                      
 8008f90:	c9 61 58 00 	sub r11,r11,r1                                 
                                                                      
  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 ) {                          
 8008f94:	52 0b 00 05 	bgeu r16,r11,8008fa8 <_Heap_Allocate_aligned_with_boundary+0xf0>
 8008f98:	ba 00 08 00 	mv r1,r16                                      
 8008f9c:	b9 e0 10 00 	mv r2,r15                                      
 8008fa0:	f8 00 1f 19 	calli 8010c04 <__umodsi3>                      
 8008fa4:	ca 01 58 00 	sub r11,r16,r1                                 
  }                                                                   
                                                                      
  alloc_end = alloc_begin + alloc_size;                               
                                                                      
  /* Ensure boundary constaint */                                     
  if ( boundary != 0 ) {                                              
 8008fa8:	46 40 00 15 	be r18,r0,8008ffc <_Heap_Allocate_aligned_with_boundary+0x144>
    uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;  
 8008fac:	b6 8d 08 00 	add r1,r20,r13                                 
  /* 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;                               
 8008fb0:	b5 6d 80 00 	add r16,r11,r13                                
                                                                      
  /* Ensure boundary constaint */                                     
  if ( boundary != 0 ) {                                              
    uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;  
 8008fb4:	5b 81 00 48 	sw (sp+72),r1                                  
 8008fb8:	e0 00 00 09 	bi 8008fdc <_Heap_Allocate_aligned_with_boundary+0x124>
    uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
                                                                      
    while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
      if ( boundary_line < boundary_floor ) {                         
 8008fbc:	2b 82 00 48 	lw r2,(sp+72)                                  
 8008fc0:	54 41 00 24 	bgu r2,r1,8009050 <_Heap_Allocate_aligned_with_boundary+0x198>
        return 0;                                                     
      }                                                               
      alloc_begin = boundary_line - alloc_size;                       
 8008fc4:	c8 2d 58 00 	sub r11,r1,r13                                 
 8008fc8:	b9 60 08 00 	mv r1,r11                                      
 8008fcc:	b9 e0 10 00 	mv r2,r15                                      
 8008fd0:	f8 00 1f 0d 	calli 8010c04 <__umodsi3>                      
 8008fd4:	c9 61 58 00 	sub r11,r11,r1                                 
      alloc_begin = _Heap_Align_down( alloc_begin, alignment );       
      alloc_end = alloc_begin + alloc_size;                           
 8008fd8:	b5 6d 80 00 	add r16,r11,r13                                
 8008fdc:	ba 00 08 00 	mv r1,r16                                      
 8008fe0:	ba 40 10 00 	mv r2,r18                                      
 8008fe4:	f8 00 1f 08 	calli 8010c04 <__umodsi3>                      
 8008fe8:	ca 01 08 00 	sub r1,r16,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 ) {
 8008fec:	f6 01 80 00 	cmpgu r16,r16,r1                               
 8008ff0:	f4 2b 10 00 	cmpgu r2,r1,r11                                
 8008ff4:	a2 02 80 00 	and r16,r16,r2                                 
 8008ff8:	5e 00 ff f1 	bne r16,r0,8008fbc <_Heap_Allocate_aligned_with_boundary+0x104>
      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 ) {                           
 8008ffc:	56 8b 00 15 	bgu r20,r11,8009050 <_Heap_Allocate_aligned_with_boundary+0x198>
 8009000:	ba 60 10 00 	mv r2,r19                                      
 8009004:	ca ee 80 00 	sub r16,r23,r14                                
 8009008:	b9 60 08 00 	mv r1,r11                                      
 800900c:	f8 00 1e fe 	calli 8010c04 <__umodsi3>                      
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
 8009010:	b6 0b 80 00 	add r16,r16,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;      
 8009014:	ca 01 08 00 	sub r1,r16,r1                                  
                                                                      
    if ( free_size >= min_block_size || free_size == 0 ) {            
 8009018:	64 22 00 00 	cmpei r2,r1,0                                  
 800901c:	f0 36 08 00 	cmpgeu r1,r1,r22                               
 8009020:	b8 41 08 00 	or r1,r2,r1                                    
 8009024:	44 20 00 0b 	be r1,r0,8009050 <_Heap_Allocate_aligned_with_boundary+0x198>
          boundary                                                    
        );                                                            
      }                                                               
    }                                                                 
                                                                      
    if ( alloc_begin != 0 ) {                                         
 8009028:	45 60 00 0a 	be r11,r0,8009050 <_Heap_Allocate_aligned_with_boundary+0x198><== NEVER TAKEN
    block = block->next;                                              
  }                                                                   
                                                                      
  if ( alloc_begin != 0 ) {                                           
    /* Statistics */                                                  
    stats->searches += search_count;                                  
 800902c:	29 81 00 4c 	lw r1,(r12+76)                                 
                                                                      
    block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
 8009030:	b9 c0 10 00 	mv r2,r14                                      
 8009034:	b9 60 18 00 	mv r3,r11                                      
    block = block->next;                                              
  }                                                                   
                                                                      
  if ( alloc_begin != 0 ) {                                           
    /* Statistics */                                                  
    stats->searches += search_count;                                  
 8009038:	b4 31 08 00 	add r1,r1,r17                                  
 800903c:	59 81 00 4c 	sw (r12+76),r1                                 
                                                                      
    block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
 8009040:	b9 a0 20 00 	mv r4,r13                                      
 8009044:	b9 80 08 00 	mv r1,r12                                      
 8009048:	fb ff eb 9c 	calli 8003eb8 <_Heap_Block_allocate>           
 800904c:	e0 00 00 04 	bi 800905c <_Heap_Allocate_aligned_with_boundary+0x1a4>
                                                                      
    if ( alloc_begin != 0 ) {                                         
      break;                                                          
    }                                                                 
                                                                      
    block = block->next;                                              
 8009050:	29 ce 00 08 	lw r14,(r14+8)                                 
    if ( alignment == 0 ) {                                           
      alignment = page_size;                                          
    }                                                                 
  }                                                                   
                                                                      
  while ( block != free_list_tail ) {                                 
 8009054:	5d cc ff bf 	bne r14,r12,8008f50 <_Heap_Allocate_aligned_with_boundary+0x98>
 8009058:	34 0b 00 00 	mvi r11,0                                      
      boundary                                                        
    );                                                                
  }                                                                   
                                                                      
  /* Statistics */                                                    
  if ( stats->max_search < search_count ) {                           
 800905c:	29 81 00 44 	lw r1,(r12+68)                                 
 8009060:	50 31 00 02 	bgeu r1,r17,8009068 <_Heap_Allocate_aligned_with_boundary+0x1b0>
    stats->max_search = search_count;                                 
 8009064:	59 91 00 44 	sw (r12+68),r17                                
  }                                                                   
                                                                      
  return (void *) alloc_begin;                                        
 8009068:	b9 60 08 00 	mv r1,r11                                      
}                                                                     
 800906c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009070:	2b 8b 00 44 	lw r11,(sp+68)                                 
 8009074:	2b 8c 00 40 	lw r12,(sp+64)                                 
 8009078:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 800907c:	2b 8e 00 38 	lw r14,(sp+56)                                 
 8009080:	2b 8f 00 34 	lw r15,(sp+52)                                 
 8009084:	2b 90 00 30 	lw r16,(sp+48)                                 
 8009088:	2b 91 00 2c 	lw r17,(sp+44)                                 
 800908c:	2b 92 00 28 	lw r18,(sp+40)                                 
 8009090:	2b 93 00 24 	lw r19,(sp+36)                                 
 8009094:	2b 94 00 20 	lw r20,(sp+32)                                 
 8009098:	2b 95 00 1c 	lw r21,(sp+28)                                 
 800909c:	2b 96 00 18 	lw r22,(sp+24)                                 
 80090a0:	2b 97 00 14 	lw r23,(sp+20)                                 
 80090a4:	2b 98 00 10 	lw r24,(sp+16)                                 
 80090a8:	2b 99 00 0c 	lw r25,(sp+12)                                 
 80090ac:	2b 9b 00 08 	lw fp,(sp+8)                                   
 80090b0:	37 9c 00 48 	addi sp,sp,72                                  
 80090b4:	c3 a0 00 00 	ret                                            
                                                                      

08009264 <_Heap_Extend>: Heap_Control *heap, void *extend_area_begin_ptr, uintptr_t extend_area_size, uintptr_t *extended_size_ptr ) {
 8009264:	37 9c ff b8 	addi sp,sp,-72                                 
 8009268:	5b 8b 00 40 	sw (sp+64),r11                                 
 800926c:	5b 8c 00 3c 	sw (sp+60),r12                                 
 8009270:	5b 8d 00 38 	sw (sp+56),r13                                 
 8009274:	5b 8e 00 34 	sw (sp+52),r14                                 
 8009278:	5b 8f 00 30 	sw (sp+48),r15                                 
 800927c:	5b 90 00 2c 	sw (sp+44),r16                                 
 8009280:	5b 91 00 28 	sw (sp+40),r17                                 
 8009284:	5b 92 00 24 	sw (sp+36),r18                                 
 8009288:	5b 93 00 20 	sw (sp+32),r19                                 
 800928c:	5b 94 00 1c 	sw (sp+28),r20                                 
 8009290:	5b 95 00 18 	sw (sp+24),r21                                 
 8009294:	5b 96 00 14 	sw (sp+20),r22                                 
 8009298:	5b 97 00 10 	sw (sp+16),r23                                 
 800929c:	5b 98 00 0c 	sw (sp+12),r24                                 
 80092a0:	5b 99 00 08 	sw (sp+8),r25                                  
 80092a4:	5b 9d 00 04 	sw (sp+4),ra                                   
 80092a8:	b8 40 70 00 	mv r14,r2                                      
  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;                              
 80092ac:	5b 80 00 48 	sw (sp+72),r0                                  
  Heap_Block *extend_last_block = NULL;                               
 80092b0:	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;
 80092b4:	b5 c3 68 00 	add r13,r14,r3                                 
  Heap_Control *heap,                                                 
  void *extend_area_begin_ptr,                                        
  uintptr_t extend_area_size,                                         
  uintptr_t *extended_size_ptr                                        
)                                                                     
{                                                                     
 80092b8:	b8 80 a0 00 	mv r20,r4                                      
 80092bc:	b8 20 58 00 	mv r11,r1                                      
 80092c0:	b8 60 10 00 	mv r2,r3                                       
  Heap_Statistics *const stats = &heap->stats;                        
  Heap_Block *const first_block = heap->first_block;                  
 80092c4:	28 35 00 20 	lw r21,(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;                        
 80092c8:	28 36 00 10 	lw r22,(r1+16)                                 
  uintptr_t const min_block_size = heap->min_block_size;              
 80092cc:	28 24 00 14 	lw r4,(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;                       
 80092d0:	28 37 00 30 	lw r23,(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;                                                     
 80092d4:	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 ) {                        
 80092d8:	55 cd 00 8e 	bgu r14,r13,8009510 <_Heap_Extend+0x2ac>       
    return false;                                                     
  }                                                                   
                                                                      
  extend_area_ok = _Heap_Get_first_and_last_block(                    
 80092dc:	b9 c0 08 00 	mv r1,r14                                      
 80092e0:	ba c0 18 00 	mv r3,r22                                      
 80092e4:	37 85 00 48 	addi r5,sp,72                                  
 80092e8:	37 86 00 44 	addi r6,sp,68                                  
 80092ec:	fb ff ea d3 	calli 8003e38 <_Heap_Get_first_and_last_block> 
    page_size,                                                        
    min_block_size,                                                   
    &extend_first_block,                                              
    &extend_last_block                                                
  );                                                                  
  if (!extend_area_ok ) {                                             
 80092f0:	44 20 00 88 	be r1,r0,8009510 <_Heap_Extend+0x2ac>          
 80092f4:	ba a0 78 00 	mv r15,r21                                     
 80092f8:	34 11 00 00 	mvi r17,0                                      
 80092fc:	34 13 00 00 	mvi r19,0                                      
 8009300:	34 10 00 00 	mvi r16,0                                      
    return false;                                                     
  }                                                                   
                                                                      
  do {                                                                
    uintptr_t const sub_area_begin = (start_block != first_block) ?   
      (uintptr_t) start_block : heap->area_begin;                     
 8009304:	29 61 00 18 	lw r1,(r11+24)                                 
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 8009308:	34 18 ff fe 	mvi r24,-2                                     
 800930c:	e0 00 00 02 	bi 8009314 <_Heap_Extend+0xb0>                 
 8009310:	b9 e0 08 00 	mv r1,r15                                      
    uintptr_t const sub_area_end = start_block->prev_size;            
 8009314:	29 f2 00 00 	lw r18,(r15+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
 8009318:	f5 a1 18 00 	cmpgu r3,r13,r1                                
 800931c:	f6 4e 10 00 	cmpgu r2,r18,r14                               
      (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 (                                                              
 8009320:	a0 62 10 00 	and r2,r3,r2                                   
 8009324:	5c 40 00 7a 	bne r2,r0,800950c <_Heap_Extend+0x2a8>         
      sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
    ) {                                                               
      return false;                                                   
    }                                                                 
                                                                      
    if ( extend_area_end == sub_area_begin ) {                        
 8009328:	45 a1 00 03 	be r13,r1,8009334 <_Heap_Extend+0xd0>          <== NEVER TAKEN
      merge_below_block = start_block;                                
    } else if ( extend_area_end < sub_area_end ) {                    
 800932c:	56 4d 00 04 	bgu r18,r13,800933c <_Heap_Extend+0xd8>        
 8009330:	e0 00 00 04 	bi 8009340 <_Heap_Extend+0xdc>                 
      sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
    ) {                                                               
      return false;                                                   
    }                                                                 
                                                                      
    if ( extend_area_end == sub_area_begin ) {                        
 8009334:	b9 e0 80 00 	mv r16,r15                                     <== NOT EXECUTED
 8009338:	e0 00 00 02 	bi 8009340 <_Heap_Extend+0xdc>                 <== NOT EXECUTED
      merge_below_block = start_block;                                
    } else if ( extend_area_end < sub_area_end ) {                    
 800933c:	b9 e0 98 00 	mv r19,r15                                     
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 8009340:	ba 40 08 00 	mv r1,r18                                      
 8009344:	ba c0 10 00 	mv r2,r22                                      
 8009348:	36 59 ff f8 	addi r25,r18,-8                                
 800934c:	f8 00 1f 17 	calli 8010fa8 <__umodsi3>                      
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
 8009350:	cb 21 08 00 	sub r1,r25,r1                                  
      link_below_block = start_block;                                 
    }                                                                 
                                                                      
    if ( sub_area_end == extend_area_begin ) {                        
 8009354:	5d d2 00 04 	bne r14,r18,8009364 <_Heap_Extend+0x100>       
      start_block->prev_size = extend_area_end;                       
 8009358:	59 ed 00 00 	sw (r15+0),r13                                 
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 )   
 800935c:	b8 20 60 00 	mv r12,r1                                      
 8009360:	e0 00 00 04 	bi 8009370 <_Heap_Extend+0x10c>                
                                                                      
      merge_above_block = end_block;                                  
    } else if ( sub_area_end < extend_area_begin ) {                  
 8009364:	55 d2 00 02 	bgu r14,r18,800936c <_Heap_Extend+0x108>       
 8009368:	e0 00 00 02 	bi 8009370 <_Heap_Extend+0x10c>                
 800936c:	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;                
 8009370:	28 2f 00 04 	lw r15,(r1+4)                                  
 8009374:	a3 0f 78 00 	and r15,r24,r15                                
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 8009378:	b4 2f 78 00 	add r15,r1,r15                                 
      link_above_block = end_block;                                   
    }                                                                 
                                                                      
    start_block = _Heap_Block_at( end_block, _Heap_Block_size( end_block ) );
  } while ( start_block != first_block );                             
 800937c:	5d f5 ff e5 	bne r15,r21,8009310 <_Heap_Extend+0xac>        
                                                                      
  if ( extend_area_begin < heap->area_begin ) {                       
 8009380:	29 61 00 18 	lw r1,(r11+24)                                 
 8009384:	51 c1 00 03 	bgeu r14,r1,8009390 <_Heap_Extend+0x12c>       
    heap->area_begin = extend_area_begin;                             
 8009388:	59 6e 00 18 	sw (r11+24),r14                                
 800938c:	e0 00 00 04 	bi 800939c <_Heap_Extend+0x138>                
  } else if ( heap->area_end < extend_area_end ) {                    
 8009390:	29 61 00 1c 	lw r1,(r11+28)                                 
 8009394:	50 2d 00 02 	bgeu r1,r13,800939c <_Heap_Extend+0x138>       
    heap->area_end = extend_area_end;                                 
 8009398:	59 6d 00 1c 	sw (r11+28),r13                                
  }                                                                   
                                                                      
  extend_first_block_size =                                           
    (uintptr_t) extend_last_block - (uintptr_t) extend_first_block;   
 800939c:	2b 81 00 44 	lw r1,(sp+68)                                  
 80093a0:	2b 82 00 48 	lw r2,(sp+72)                                  
    heap->area_begin = extend_area_begin;                             
  } else if ( heap->area_end < extend_area_end ) {                    
    heap->area_end = extend_area_end;                                 
  }                                                                   
                                                                      
  extend_first_block_size =                                           
 80093a4:	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;                    
 80093a8:	58 4d 00 00 	sw (r2+0),r13                                  
  extend_first_block->size_and_flag =                                 
    extend_first_block_size | HEAP_PREV_BLOCK_USED;                   
 80093ac:	38 64 00 01 	ori r4,r3,0x1                                  
                                                                      
  extend_last_block->prev_size = extend_first_block_size;             
 80093b0:	58 23 00 00 	sw (r1+0),r3                                   
  extend_last_block->size_and_flag = 0;                               
                                                                      
  if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) {
 80093b4:	29 63 00 20 	lw r3,(r11+32)                                 
                                                                      
  extend_first_block_size =                                           
    (uintptr_t) extend_last_block - (uintptr_t) extend_first_block;   
                                                                      
  extend_first_block->prev_size = extend_area_end;                    
  extend_first_block->size_and_flag =                                 
 80093b8:	58 44 00 04 	sw (r2+4),r4                                   
    extend_first_block_size | HEAP_PREV_BLOCK_USED;                   
                                                                      
  extend_last_block->prev_size = extend_first_block_size;             
  extend_last_block->size_and_flag = 0;                               
 80093bc:	58 20 00 04 	sw (r1+4),r0                                   
                                                                      
  if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) {
 80093c0:	50 43 00 03 	bgeu r2,r3,80093cc <_Heap_Extend+0x168>        
    heap->first_block = extend_first_block;                           
 80093c4:	59 62 00 20 	sw (r11+32),r2                                 
 80093c8:	e0 00 00 04 	bi 80093d8 <_Heap_Extend+0x174>                
  } else if ( (uintptr_t) extend_last_block > (uintptr_t) heap->last_block ) {
 80093cc:	29 62 00 24 	lw r2,(r11+36)                                 
 80093d0:	50 41 00 02 	bgeu r2,r1,80093d8 <_Heap_Extend+0x174>        
    heap->last_block = extend_last_block;                             
 80093d4:	59 61 00 24 	sw (r11+36),r1                                 
  }                                                                   
                                                                      
  if ( merge_below_block != NULL ) {                                  
 80093d8:	46 00 00 12 	be r16,r0,8009420 <_Heap_Extend+0x1bc>         <== ALWAYS TAKEN
  Heap_Control *heap,                                                 
  uintptr_t extend_area_begin,                                        
  Heap_Block *first_block                                             
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
 80093dc:	29 6f 00 10 	lw r15,(r11+16)                                <== NOT EXECUTED
  uintptr_t const new_first_block_alloc_begin =                       
    _Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size );
 80093e0:	35 ce 00 08 	addi r14,r14,8                                 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up(                        
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  uintptr_t remainder = value % alignment;                            
 80093e4:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 80093e8:	b9 e0 10 00 	mv r2,r15                                      <== NOT EXECUTED
 80093ec:	f8 00 1e ef 	calli 8010fa8 <__umodsi3>                      <== NOT EXECUTED
                                                                      
  if ( remainder != 0 ) {                                             
 80093f0:	44 20 00 03 	be r1,r0,80093fc <_Heap_Extend+0x198>          <== NOT EXECUTED
    return value - remainder + alignment;                             
 80093f4:	b5 cf 70 00 	add r14,r14,r15                                <== NOT EXECUTED
 80093f8:	c9 c1 70 00 	sub r14,r14,r1                                 <== NOT EXECUTED
  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;                
 80093fc:	2a 01 00 00 	lw r1,(r16+0)                                  <== NOT EXECUTED
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  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 =                             
 8009400:	35 c2 ff f8 	addi r2,r14,-8                                 <== NOT EXECUTED
  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;                
 8009404:	59 c1 ff f8 	sw (r14+-8),r1                                 <== NOT EXECUTED
  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 =                              
 8009408:	ca 02 08 00 	sub r1,r16,r2                                  <== NOT EXECUTED
    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;
 800940c:	38 21 00 01 	ori r1,r1,0x1                                  <== NOT EXECUTED
 8009410:	58 41 00 04 	sw (r2+4),r1                                   <== NOT EXECUTED
                                                                      
  _Heap_Free_block( heap, new_first_block );                          
 8009414:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8009418:	fb ff ff 86 	calli 8009230 <_Heap_Free_block>               <== NOT EXECUTED
 800941c:	e0 00 00 06 	bi 8009434 <_Heap_Extend+0x1d0>                <== NOT EXECUTED
    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 ) {                            
 8009420:	46 70 00 05 	be r19,r16,8009434 <_Heap_Extend+0x1d0>        
    _Heap_Link_below(                                                 
 8009424:	2b 81 00 44 	lw r1,(sp+68)                                  
{                                                                     
  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;           
 8009428:	ca 61 98 00 	sub r19,r19,r1                                 
 800942c:	3a 73 00 01 	ori r19,r19,0x1                                
)                                                                     
{                                                                     
  uintptr_t const last_block_begin = (uintptr_t) last_block;          
  uintptr_t const link_begin = (uintptr_t) link;                      
                                                                      
  last_block->size_and_flag =                                         
 8009430:	58 33 00 04 	sw (r1+4),r19                                  
      link_below_block,                                               
      extend_last_block                                               
    );                                                                
  }                                                                   
                                                                      
  if ( merge_above_block != NULL ) {                                  
 8009434:	45 80 00 14 	be r12,r0,8009484 <_Heap_Extend+0x220>         
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 8009438:	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,      
 800943c:	35 ad ff f8 	addi r13,r13,-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(             
 8009440:	c9 ac 68 00 	sub r13,r13,r12                                
 8009444:	b9 a0 08 00 	mv r1,r13                                      
 8009448:	f8 00 1e d8 	calli 8010fa8 <__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)                 
 800944c:	29 83 00 04 	lw r3,(r12+4)                                  
 8009450:	c9 a1 08 00 	sub r1,r13,r1                                  
    page_size                                                         
  );                                                                  
  Heap_Block *const new_last_block =                                  
    _Heap_Block_at( last_block, last_block_new_size );                
                                                                      
  new_last_block->size_and_flag =                                     
 8009454:	b4 2c 10 00 	add r2,r1,r12                                  
    (last_block->size_and_flag - last_block_new_size)                 
 8009458:	c8 61 18 00 	sub r3,r3,r1                                   
      | HEAP_PREV_BLOCK_USED;                                         
 800945c:	38 63 00 01 	ori r3,r3,0x1                                  
    page_size                                                         
  );                                                                  
  Heap_Block *const new_last_block =                                  
    _Heap_Block_at( last_block, last_block_new_size );                
                                                                      
  new_last_block->size_and_flag =                                     
 8009460:	58 43 00 04 	sw (r2+4),r3                                   
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;       
 8009464:	29 82 00 04 	lw r2,(r12+4)                                  
 8009468:	20 42 00 01 	andi r2,r2,0x1                                 
                                                                      
  block->size_and_flag = size | flag;                                 
 800946c:	b8 22 08 00 	or r1,r1,r2                                    
 8009470:	59 81 00 04 	sw (r12+4),r1                                  
    (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 );                               
 8009474:	b9 80 10 00 	mv r2,r12                                      
 8009478:	b9 60 08 00 	mv r1,r11                                      
 800947c:	fb ff ff 6d 	calli 8009230 <_Heap_Free_block>               
 8009480:	e0 00 00 0c 	bi 80094b0 <_Heap_Extend+0x24c>                
    );                                                                
  }                                                                   
                                                                      
  if ( merge_above_block != NULL ) {                                  
    _Heap_Merge_above( heap, merge_above_block, extend_area_end );    
  } else if ( link_above_block != NULL ) {                            
 8009484:	46 2c 00 0b 	be r17,r12,80094b0 <_Heap_Extend+0x24c>        
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;       
 8009488:	2a 21 00 04 	lw r1,(r17+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 );       
 800948c:	2b 83 00 48 	lw r3,(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(                                                 
 8009490:	2b 82 00 44 	lw r2,(sp+68)                                  
 8009494:	20 21 00 01 	andi r1,r1,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 );       
 8009498:	c8 71 18 00 	sub r3,r3,r17                                  
                                                                      
  block->size_and_flag = size | flag;                                 
 800949c:	b8 61 08 00 	or r1,r3,r1                                    
 80094a0:	5a 21 00 04 	sw (r17+4),r1                                  
                                                                      
  last_block->size_and_flag |= HEAP_PREV_BLOCK_USED;                  
 80094a4:	28 41 00 04 	lw r1,(r2+4)                                   
 80094a8:	38 21 00 01 	ori r1,r1,0x1                                  
 80094ac:	58 41 00 04 	sw (r2+4),r1                                   
      extend_first_block,                                             
      extend_last_block                                               
    );                                                                
  }                                                                   
                                                                      
  if ( merge_below_block == NULL && merge_above_block == NULL ) {     
 80094b0:	65 8c 00 00 	cmpei r12,r12,0                                
 80094b4:	66 10 00 00 	cmpei r16,r16,0                                
 80094b8:	a1 90 60 00 	and r12,r12,r16                                
 80094bc:	45 80 00 04 	be r12,r0,80094cc <_Heap_Extend+0x268>         
    _Heap_Free_block( heap, extend_first_block );                     
 80094c0:	2b 82 00 48 	lw r2,(sp+72)                                  
 80094c4:	b9 60 08 00 	mv r1,r11                                      
 80094c8:	fb ff ff 5a 	calli 8009230 <_Heap_Free_block>               
 */                                                                   
RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap )
{                                                                     
  _Heap_Block_set_size(                                               
    heap->last_block,                                                 
    (uintptr_t) heap->first_block - (uintptr_t) heap->last_block      
 80094cc:	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(                                               
 80094d0:	29 63 00 20 	lw r3,(r11+32)                                 
  stats->size += extended_size;                                       
                                                                      
  if ( extended_size_ptr != NULL )                                    
    *extended_size_ptr = extended_size;                               
                                                                      
  return true;                                                        
 80094d4:	34 0c 00 01 	mvi r12,1                                      
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;       
 80094d8:	28 22 00 04 	lw r2,(r1+4)                                   
 * 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(                                               
 80094dc:	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;       
 80094e0:	20 42 00 01 	andi r2,r2,0x1                                 
                                                                      
  block->size_and_flag = size | flag;                                 
 80094e4:	b8 62 10 00 	or r2,r3,r2                                    
 80094e8:	58 22 00 04 	sw (r1+4),r2                                   
    _Heap_Free_block( heap, extend_first_block );                     
  }                                                                   
                                                                      
  _Heap_Set_last_block_size( heap );                                  
                                                                      
  extended_size = stats->free_size - free_size;                       
 80094ec:	29 61 00 30 	lw r1,(r11+48)                                 
                                                                      
  /* Statistics */                                                    
  stats->size += extended_size;                                       
 80094f0:	29 62 00 2c 	lw r2,(r11+44)                                 
    _Heap_Free_block( heap, extend_first_block );                     
  }                                                                   
                                                                      
  _Heap_Set_last_block_size( heap );                                  
                                                                      
  extended_size = stats->free_size - free_size;                       
 80094f4:	c8 37 08 00 	sub r1,r1,r23                                  
                                                                      
  /* Statistics */                                                    
  stats->size += extended_size;                                       
 80094f8:	b4 41 10 00 	add r2,r2,r1                                   
 80094fc:	59 62 00 2c 	sw (r11+44),r2                                 
                                                                      
  if ( extended_size_ptr != NULL )                                    
 8009500:	46 80 00 04 	be r20,r0,8009510 <_Heap_Extend+0x2ac>         <== NEVER TAKEN
    *extended_size_ptr = extended_size;                               
 8009504:	5a 81 00 00 	sw (r20+0),r1                                  
 8009508:	e0 00 00 02 	bi 8009510 <_Heap_Extend+0x2ac>                
      _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;                                                   
 800950c:	34 0c 00 00 	mvi r12,0                                      
                                                                      
  if ( extended_size_ptr != NULL )                                    
    *extended_size_ptr = extended_size;                               
                                                                      
  return true;                                                        
}                                                                     
 8009510:	b9 80 08 00 	mv r1,r12                                      
 8009514:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009518:	2b 8b 00 40 	lw r11,(sp+64)                                 
 800951c:	2b 8c 00 3c 	lw r12,(sp+60)                                 
 8009520:	2b 8d 00 38 	lw r13,(sp+56)                                 
 8009524:	2b 8e 00 34 	lw r14,(sp+52)                                 
 8009528:	2b 8f 00 30 	lw r15,(sp+48)                                 
 800952c:	2b 90 00 2c 	lw r16,(sp+44)                                 
 8009530:	2b 91 00 28 	lw r17,(sp+40)                                 
 8009534:	2b 92 00 24 	lw r18,(sp+36)                                 
 8009538:	2b 93 00 20 	lw r19,(sp+32)                                 
 800953c:	2b 94 00 1c 	lw r20,(sp+28)                                 
 8009540:	2b 95 00 18 	lw r21,(sp+24)                                 
 8009544:	2b 96 00 14 	lw r22,(sp+20)                                 
 8009548:	2b 97 00 10 	lw r23,(sp+16)                                 
 800954c:	2b 98 00 0c 	lw r24,(sp+12)                                 
 8009550:	2b 99 00 08 	lw r25,(sp+8)                                  
 8009554:	37 9c 00 48 	addi sp,sp,72                                  
 8009558:	c3 a0 00 00 	ret                                            
                                                                      

080090b8 <_Heap_Free>: #include <rtems/system.h> #include <rtems/score/sysstate.h> #include <rtems/score/heap.h> bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) {
 80090b8:	37 9c ff f4 	addi sp,sp,-12                                 
 80090bc:	5b 8b 00 0c 	sw (sp+12),r11                                 
 80090c0:	5b 8c 00 08 	sw (sp+8),r12                                  
 80090c4:	5b 9d 00 04 	sw (sp+4),ra                                   
 80090c8:	b8 20 58 00 	mv r11,r1                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 80090cc:	34 4c ff f8 	addi r12,r2,-8                                 
 80090d0:	b8 40 08 00 	mv r1,r2                                       
 80090d4:	29 62 00 10 	lw r2,(r11+16)                                 
 80090d8:	f8 00 1e cb 	calli 8010c04 <__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           
 80090dc:	29 67 00 20 	lw r7,(r11+32)                                 
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
 80090e0:	c9 81 18 00 	sub r3,r12,r1                                  
  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;             
 80090e4:	34 01 00 00 	mvi r1,0                                       
 80090e8:	54 e3 00 03 	bgu r7,r3,80090f4 <_Heap_Free+0x3c>            
 80090ec:	29 61 00 24 	lw r1,(r11+36)                                 
 80090f0:	f0 23 08 00 	cmpgeu r1,r1,r3                                
  Heap_Block *next_block = NULL;                                      
  uintptr_t block_size = 0;                                           
  uintptr_t next_block_size = 0;                                      
  bool next_is_free = false;                                          
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, block ) ) {                     
 80090f4:	b8 20 10 00 	mv r2,r1                                       
    return false;                                                     
 80090f8:	34 01 00 00 	mvi r1,0                                       
  Heap_Block *next_block = NULL;                                      
  uintptr_t block_size = 0;                                           
  uintptr_t next_block_size = 0;                                      
  bool next_is_free = false;                                          
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, block ) ) {                     
 80090fc:	44 40 00 66 	be r2,r0,8009294 <_Heap_Free+0x1dc>            
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 8009100:	28 66 00 04 	lw r6,(r3+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;                
 8009104:	34 04 ff fe 	mvi r4,-2                                      
 8009108:	a0 c4 20 00 	and r4,r6,r4                                   
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 800910c:	b4 64 10 00 	add r2,r3,r4                                   
  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;             
 8009110:	54 e2 00 03 	bgu r7,r2,800911c <_Heap_Free+0x64>            <== NEVER TAKEN
 8009114:	29 61 00 24 	lw r1,(r11+36)                                 
 8009118:	f0 22 08 00 	cmpgeu r1,r1,r2                                
  }                                                                   
                                                                      
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {                
 800911c:	b8 20 28 00 	mv r5,r1                                       
    _HAssert( false );                                                
    return false;                                                     
 8009120:	34 01 00 00 	mvi r1,0                                       
  }                                                                   
                                                                      
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {                
 8009124:	44 a0 00 5c 	be r5,r0,8009294 <_Heap_Free+0x1dc>            <== NEVER TAKEN
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 8009128:	28 45 00 04 	lw r5,(r2+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;                 
 800912c:	20 a8 00 01 	andi r8,r5,0x1                                 
  if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {                
    _HAssert( false );                                                
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( next_block ) ) {                          
 8009130:	45 00 00 59 	be r8,r0,8009294 <_Heap_Free+0x1dc>            <== NEVER TAKEN
    _HAssert( false );                                                
    return false;                                                     
  }                                                                   
                                                                      
  next_block_size = _Heap_Block_size( next_block );                   
  next_is_free = next_block != heap->last_block                       
 8009134:	29 69 00 24 	lw r9,(r11+36)                                 
    - 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;                
 8009138:	34 01 ff fe 	mvi r1,-2                                      
 800913c:	a0 a1 28 00 	and r5,r5,r1                                   
    && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
 8009140:	34 08 00 00 	mvi r8,0                                       
 8009144:	45 22 00 05 	be r9,r2,8009158 <_Heap_Free+0xa0>             
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 8009148:	b4 45 08 00 	add r1,r2,r5                                   
  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;                 
 800914c:	28 28 00 04 	lw r8,(r1+4)                                   
 8009150:	21 08 00 01 	andi r8,r8,0x1                                 
                                                                      
#include <rtems/system.h>                                             
#include <rtems/score/sysstate.h>                                     
#include <rtems/score/heap.h>                                         
                                                                      
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )          
 8009154:	65 08 00 00 	cmpei r8,r8,0                                  
 8009158:	20 c6 00 01 	andi r6,r6,0x1                                 
    _HAssert( false );                                                
    return false;                                                     
  }                                                                   
                                                                      
  next_block_size = _Heap_Block_size( next_block );                   
  next_is_free = next_block != heap->last_block                       
 800915c:	21 08 00 ff 	andi r8,r8,0xff                                
    && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
                                                                      
  if ( !_Heap_Is_prev_used( block ) ) {                               
 8009160:	5c c0 00 24 	bne r6,r0,80091f0 <_Heap_Free+0x138>           
    uintptr_t const prev_size = block->prev_size;                     
 8009164:	28 66 00 00 	lw r6,(r3+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;             
 8009168:	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);                 
 800916c:	c8 66 18 00 	sub r3,r3,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;             
 8009170:	54 e3 00 02 	bgu r7,r3,8009178 <_Heap_Free+0xc0>            <== NEVER TAKEN
 8009174:	f1 23 08 00 	cmpgeu r1,r9,r3                                
    Heap_Block * const prev_block = _Heap_Block_at( block, -prev_size );
                                                                      
    if ( !_Heap_Is_block_in_heap( heap, prev_block ) ) {              
 8009178:	b8 20 38 00 	mv r7,r1                                       
      _HAssert( false );                                              
      return( false );                                                
 800917c:	34 01 00 00 	mvi r1,0                                       
                                                                      
  if ( !_Heap_Is_prev_used( block ) ) {                               
    uintptr_t const prev_size = block->prev_size;                     
    Heap_Block * const prev_block = _Heap_Block_at( block, -prev_size );
                                                                      
    if ( !_Heap_Is_block_in_heap( heap, prev_block ) ) {              
 8009180:	44 e0 00 45 	be r7,r0,8009294 <_Heap_Free+0x1dc>            <== 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;                 
 8009184:	28 67 00 04 	lw r7,(r3+4)                                   
 8009188:	20 e7 00 01 	andi r7,r7,0x1                                 
      return( false );                                                
    }                                                                 
                                                                      
    /* As we always coalesce free blocks, the block that preceedes prev_block
       must have been used. */                                        
    if ( !_Heap_Is_prev_used ( prev_block) ) {                        
 800918c:	44 e0 00 42 	be r7,r0,8009294 <_Heap_Free+0x1dc>            <== NEVER TAKEN
      _HAssert( false );                                              
      return( false );                                                
    }                                                                 
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
 8009190:	45 00 00 0f 	be r8,r0,80091cc <_Heap_Free+0x114>            
  return _Heap_Free_list_tail(heap)->prev;                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) 
{                                                                     
  Heap_Block *next = block->next;                                     
 8009194:	28 41 00 08 	lw r1,(r2+8)                                   
  Heap_Block *prev = block->prev;                                     
 8009198:	28 42 00 0c 	lw r2,(r2+12)                                  
      uintptr_t const size = block_size + prev_size + next_block_size;
 800919c:	b4 85 28 00 	add r5,r4,r5                                   
 80091a0:	b4 a6 30 00 	add r6,r5,r6                                   
                                                                      
  prev->next = next;                                                  
 80091a4:	58 41 00 08 	sw (r2+8),r1                                   
  next->prev = prev;                                                  
 80091a8:	58 22 00 0c 	sw (r1+12),r2                                  
      _Heap_Free_list_remove( next_block );                           
      stats->free_blocks -= 1;                                        
 80091ac:	29 61 00 38 	lw r1,(r11+56)                                 
 80091b0:	34 21 ff ff 	addi r1,r1,-1                                  
 80091b4:	59 61 00 38 	sw (r11+56),r1                                 
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
 80091b8:	38 c1 00 01 	ori r1,r6,0x1                                  
 80091bc:	58 61 00 04 	sw (r3+4),r1                                   
      next_block = _Heap_Block_at( prev_block, size );                
      _HAssert(!_Heap_Is_prev_used( next_block));                     
      next_block->prev_size = size;                                   
 80091c0:	b4 66 18 00 	add r3,r3,r6                                   
 80091c4:	58 66 00 00 	sw (r3+0),r6                                   
 80091c8:	e0 00 00 29 	bi 800926c <_Heap_Free+0x1b4>                  
    } else {                      /* coalesce prev */                 
      uintptr_t const size = block_size + prev_size;                  
 80091cc:	b4 86 30 00 	add r6,r4,r6                                   
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
 80091d0:	38 c1 00 01 	ori r1,r6,0x1                                  
 80091d4:	58 61 00 04 	sw (r3+4),r1                                   
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
 80091d8:	28 43 00 04 	lw r3,(r2+4)                                   
 80091dc:	34 01 ff fe 	mvi r1,-2                                      
      next_block->prev_size = size;                                   
 80091e0:	58 46 00 00 	sw (r2+0),r6                                   
      _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;             
 80091e4:	a0 61 08 00 	and r1,r3,r1                                   
 80091e8:	58 41 00 04 	sw (r2+4),r1                                   
 80091ec:	e0 00 00 20 	bi 800926c <_Heap_Free+0x1b4>                  
      next_block->prev_size = size;                                   
    }                                                                 
  } else if ( next_is_free ) {    /* coalesce next */                 
 80091f0:	45 00 00 0d 	be r8,r0,8009224 <_Heap_Free+0x16c>            
    uintptr_t const size = block_size + next_block_size;              
 80091f4:	b4 a4 08 00 	add r1,r5,r4                                   
RTEMS_INLINE_ROUTINE void _Heap_Free_list_replace(                    
  Heap_Block *old_block,                                              
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = old_block->next;                                 
 80091f8:	28 45 00 08 	lw r5,(r2+8)                                   
  Heap_Block *prev = old_block->prev;                                 
 80091fc:	28 42 00 0c 	lw r2,(r2+12)                                  
                                                                      
  new_block->next = next;                                             
 8009200:	58 65 00 08 	sw (r3+8),r5                                   
  new_block->prev = prev;                                             
 8009204:	58 62 00 0c 	sw (r3+12),r2                                  
                                                                      
  next->prev = new_block;                                             
  prev->next = new_block;                                             
 8009208:	58 43 00 08 	sw (r2+8),r3                                   
    _Heap_Free_list_replace( next_block, block );                     
    block->size_and_flag = size | HEAP_PREV_BLOCK_USED;               
 800920c:	38 22 00 01 	ori r2,r1,0x1                                  
  Heap_Block *prev = old_block->prev;                                 
                                                                      
  new_block->next = next;                                             
  new_block->prev = prev;                                             
                                                                      
  next->prev = new_block;                                             
 8009210:	58 a3 00 0c 	sw (r5+12),r3                                  
 8009214:	58 62 00 04 	sw (r3+4),r2                                   
    next_block  = _Heap_Block_at( block, size );                      
    next_block->prev_size = size;                                     
 8009218:	b4 61 18 00 	add r3,r3,r1                                   
 800921c:	58 61 00 00 	sw (r3+0),r1                                   
 8009220:	e0 00 00 13 	bi 800926c <_Heap_Free+0x1b4>                  
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after(               
  Heap_Block *block_before,                                           
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = block_before->next;                              
 8009224:	29 61 00 08 	lw r1,(r11+8)                                  
                                                                      
  new_block->next = next;                                             
  new_block->prev = block_before;                                     
 8009228:	58 6b 00 0c 	sw (r3+12),r11                                 
    /* 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;               
    next_block->prev_size = block_size;                               
 800922c:	58 44 00 00 	sw (r2+0),r4                                   
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = block_before->next;                              
                                                                      
  new_block->next = next;                                             
 8009230:	58 61 00 08 	sw (r3+8),r1                                   
  new_block->prev = block_before;                                     
  block_before->next = new_block;                                     
  next->prev = new_block;                                             
 8009234:	58 23 00 0c 	sw (r1+12),r3                                  
    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;         
 8009238:	38 81 00 01 	ori r1,r4,0x1                                  
 800923c:	58 61 00 04 	sw (r3+4),r1                                   
{                                                                     
  Heap_Block *next = block_before->next;                              
                                                                      
  new_block->next = next;                                             
  new_block->prev = block_before;                                     
  block_before->next = new_block;                                     
 8009240:	59 63 00 08 	sw (r11+8),r3                                  
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
 8009244:	28 43 00 04 	lw r3,(r2+4)                                   
 8009248:	34 01 ff fe 	mvi r1,-2                                      
 800924c:	a0 61 08 00 	and r1,r3,r1                                   
 8009250:	58 41 00 04 	sw (r2+4),r1                                   
    next_block->prev_size = block_size;                               
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
 8009254:	29 61 00 38 	lw r1,(r11+56)                                 
    if ( stats->max_free_blocks < stats->free_blocks ) {              
 8009258:	29 62 00 3c 	lw r2,(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;                                             
 800925c:	34 21 00 01 	addi r1,r1,1                                   
 8009260:	59 61 00 38 	sw (r11+56),r1                                 
    if ( stats->max_free_blocks < stats->free_blocks ) {              
 8009264:	50 41 00 02 	bgeu r2,r1,800926c <_Heap_Free+0x1b4>          
      stats->max_free_blocks = stats->free_blocks;                    
 8009268:	59 61 00 3c 	sw (r11+60),r1                                 
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
 800926c:	29 61 00 40 	lw r1,(r11+64)                                 
 8009270:	34 21 ff ff 	addi r1,r1,-1                                  
 8009274:	59 61 00 40 	sw (r11+64),r1                                 
  ++stats->frees;                                                     
 8009278:	29 61 00 50 	lw r1,(r11+80)                                 
 800927c:	34 21 00 01 	addi r1,r1,1                                   
 8009280:	59 61 00 50 	sw (r11+80),r1                                 
  stats->free_size += block_size;                                     
 8009284:	29 61 00 30 	lw r1,(r11+48)                                 
 8009288:	b4 24 20 00 	add r4,r1,r4                                   
 800928c:	59 64 00 30 	sw (r11+48),r4                                 
                                                                      
  return( true );                                                     
 8009290:	34 01 00 01 	mvi r1,1                                       
}                                                                     
 8009294:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009298:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 800929c:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80092a0:	37 9c 00 0c 	addi sp,sp,12                                  
 80092a4:	c3 a0 00 00 	ret                                            
                                                                      

08011488 <_Heap_Resize_block>: void *alloc_begin_ptr, uintptr_t new_alloc_size, uintptr_t *old_size, uintptr_t *new_size ) {
 8011488:	37 9c ff e4 	addi sp,sp,-28                                 
 801148c:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8011490:	5b 8c 00 18 	sw (sp+24),r12                                 
 8011494:	5b 8d 00 14 	sw (sp+20),r13                                 
 8011498:	5b 8e 00 10 	sw (sp+16),r14                                 
 801149c:	5b 8f 00 0c 	sw (sp+12),r15                                 
 80114a0:	5b 90 00 08 	sw (sp+8),r16                                  
 80114a4:	5b 9d 00 04 	sw (sp+4),ra                                   
 80114a8:	b8 20 58 00 	mv r11,r1                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 80114ac:	34 50 ff f8 	addi r16,r2,-8                                 
 80114b0:	b8 40 08 00 	mv r1,r2                                       
 80114b4:	b8 40 60 00 	mv r12,r2                                      
 80114b8:	29 62 00 10 	lw r2,(r11+16)                                 
 80114bc:	b8 80 78 00 	mv r15,r4                                      
 80114c0:	b8 a0 68 00 	mv r13,r5                                      
 80114c4:	b8 60 70 00 	mv r14,r3                                      
 80114c8:	fb ff fd cf 	calli 8010c04 <__umodsi3>                      
  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;             
 80114cc:	29 62 00 20 	lw r2,(r11+32)                                 
                                                                      
  uintptr_t const alloc_begin = (uintptr_t) alloc_begin_ptr;          
                                                                      
  Heap_Block *const block = _Heap_Block_of_alloc_area( alloc_begin, page_size );
                                                                      
  *old_size = 0;                                                      
 80114d0:	59 e0 00 00 	sw (r15+0),r0                                  
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
 80114d4:	ca 01 30 00 	sub r6,r16,r1                                  
  *new_size = 0;                                                      
 80114d8:	59 a0 00 00 	sw (r13+0),r0                                  
      new_alloc_size,                                                 
      old_size,                                                       
      new_size                                                        
    );                                                                
  } else {                                                            
    return HEAP_RESIZE_FATAL_ERROR;                                   
 80114dc:	34 01 00 02 	mvi r1,2                                       
  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;             
 80114e0:	54 46 00 38 	bgu r2,r6,80115c0 <_Heap_Resize_block+0x138>   
 80114e4:	29 62 00 24 	lw r2,(r11+36)                                 
 80114e8:	54 c2 00 36 	bgu r6,r2,80115c0 <_Heap_Resize_block+0x138>   <== 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;                
 80114ec:	28 c2 00 04 	lw r2,(r6+4)                                   
 80114f0:	34 01 ff fe 	mvi r1,-2                                      
 80114f4:	a0 22 10 00 	and r2,r1,r2                                   
{                                                                     
  Heap_Statistics *const stats = &heap->stats;                        
                                                                      
  uintptr_t const block_begin = (uintptr_t) block;                    
  uintptr_t block_size = _Heap_Block_size( block );                   
  uintptr_t block_end = block_begin + block_size;                     
 80114f8:	b4 c2 38 00 	add r7,r6,r2                                   
 80114fc:	28 e8 00 04 	lw r8,(r7+4)                                   
                                                                      
  uintptr_t alloc_size = block_end - alloc_begin + HEAP_BLOCK_SIZE_OFFSET;
 8011500:	c8 ec 48 00 	sub r9,r7,r12                                  
 8011504:	35 29 00 04 	addi r9,r9,4                                   
 8011508:	a0 28 40 00 	and r8,r1,r8                                   
      new_size                                                        
    );                                                                
  } else {                                                            
    return HEAP_RESIZE_FATAL_ERROR;                                   
  }                                                                   
}                                                                     
 801150c:	b4 e8 08 00 	add r1,r7,r8                                   
  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;                 
 8011510:	28 23 00 04 	lw r3,(r1+4)                                   
  bool next_block_is_free = _Heap_Is_free( next_block );;             
                                                                      
  _HAssert( _Heap_Is_block_in_heap( heap, next_block ) );             
  _HAssert( _Heap_Is_prev_used( next_block ) );                       
                                                                      
  *old_size = alloc_size;                                             
 8011514:	59 e9 00 00 	sw (r15+0),r9                                  
 8011518:	20 63 00 01 	andi r3,r3,0x1                                 
                                                                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_free(                              
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return !_Heap_Is_used( block );                                     
 801151c:	18 63 00 01 	xori r3,r3,0x1                                 
                                                                      
  if ( next_block_is_free ) {                                         
 8011520:	44 60 00 03 	be r3,r0,801152c <_Heap_Resize_block+0xa4>     
    block_size += next_block_size;                                    
 8011524:	b4 48 10 00 	add r2,r2,r8                                   
    alloc_size += next_block_size;                                    
 8011528:	b5 28 48 00 	add r9,r9,r8                                   
  }                                                                   
                                                                      
  if ( new_alloc_size > alloc_size ) {                                
    return HEAP_RESIZE_UNSATISFIED;                                   
 801152c:	34 01 00 01 	mvi r1,1                                       
  if ( next_block_is_free ) {                                         
    block_size += next_block_size;                                    
    alloc_size += next_block_size;                                    
  }                                                                   
                                                                      
  if ( new_alloc_size > alloc_size ) {                                
 8011530:	55 c9 00 24 	bgu r14,r9,80115c0 <_Heap_Resize_block+0x138>  
    return HEAP_RESIZE_UNSATISFIED;                                   
  }                                                                   
                                                                      
  if ( next_block_is_free ) {                                         
 8011534:	44 60 00 13 	be r3,r0,8011580 <_Heap_Resize_block+0xf8>     
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;       
 8011538:	28 c1 00 04 	lw r1,(r6+4)                                   
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) 
{                                                                     
  Heap_Block *next = block->next;                                     
  Heap_Block *prev = block->prev;                                     
 801153c:	28 e3 00 0c 	lw r3,(r7+12)                                  
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;       
 8011540:	20 21 00 01 	andi r1,r1,0x1                                 
                                                                      
  block->size_and_flag = size | flag;                                 
 8011544:	b8 41 08 00 	or r1,r2,r1                                    
 8011548:	58 c1 00 04 	sw (r6+4),r1                                   
  return _Heap_Free_list_tail(heap)->prev;                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) 
{                                                                     
  Heap_Block *next = block->next;                                     
 801154c:	28 e1 00 08 	lw r1,(r7+8)                                   
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 8011550:	b4 46 10 00 	add r2,r2,r6                                   
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) 
{                                                                     
  Heap_Block *next = block->next;                                     
  Heap_Block *prev = block->prev;                                     
                                                                      
  prev->next = next;                                                  
 8011554:	58 61 00 08 	sw (r3+8),r1                                   
  next->prev = prev;                                                  
 8011558:	58 23 00 0c 	sw (r1+12),r3                                  
    _Heap_Block_set_size( block, block_size );                        
                                                                      
    _Heap_Free_list_remove( next_block );                             
                                                                      
    next_block = _Heap_Block_at( block, block_size );                 
    next_block->size_and_flag |= HEAP_PREV_BLOCK_USED;                
 801155c:	28 41 00 04 	lw r1,(r2+4)                                   
 8011560:	38 21 00 01 	ori r1,r1,0x1                                  
 8011564:	58 41 00 04 	sw (r2+4),r1                                   
                                                                      
    /* Statistics */                                                  
    --stats->free_blocks;                                             
 8011568:	29 61 00 38 	lw r1,(r11+56)                                 
 801156c:	34 21 ff ff 	addi r1,r1,-1                                  
 8011570:	59 61 00 38 	sw (r11+56),r1                                 
    stats->free_size -= next_block_size;                              
 8011574:	29 61 00 30 	lw r1,(r11+48)                                 
 8011578:	c8 28 40 00 	sub r8,r1,r8                                   
 801157c:	59 68 00 30 	sw (r11+48),r8                                 
  }                                                                   
                                                                      
  block = _Heap_Block_allocate( heap, block, alloc_begin, new_alloc_size );
 8011580:	b9 80 18 00 	mv r3,r12                                      
 8011584:	b8 c0 10 00 	mv r2,r6                                       
 8011588:	b9 60 08 00 	mv r1,r11                                      
 801158c:	b9 c0 20 00 	mv r4,r14                                      
 8011590:	fb ff ca 4a 	calli 8003eb8 <_Heap_Block_allocate>           
    - 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;                
 8011594:	28 23 00 04 	lw r3,(r1+4)                                   
 8011598:	34 02 ff fe 	mvi r2,-2                                      
 801159c:	a0 43 10 00 	and r2,r2,r3                                   
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 80115a0:	34 42 00 04 	addi r2,r2,4                                   
                                                                      
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
  *new_size = (uintptr_t) next_block - alloc_begin + HEAP_BLOCK_SIZE_OFFSET;
 80115a4:	c8 4c 60 00 	sub r12,r2,r12                                 
 80115a8:	b4 2c 08 00 	add r1,r1,r12                                  
 80115ac:	59 a1 00 00 	sw (r13+0),r1                                  
                                                                      
  /* Statistics */                                                    
  ++stats->resizes;                                                   
 80115b0:	29 61 00 54 	lw r1,(r11+84)                                 
 80115b4:	34 21 00 01 	addi r1,r1,1                                   
 80115b8:	59 61 00 54 	sw (r11+84),r1                                 
                                                                      
  return HEAP_RESIZE_SUCCESSFUL;                                      
 80115bc:	34 01 00 00 	mvi r1,0                                       
      new_size                                                        
    );                                                                
  } else {                                                            
    return HEAP_RESIZE_FATAL_ERROR;                                   
  }                                                                   
}                                                                     
 80115c0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80115c4:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 80115c8:	2b 8c 00 18 	lw r12,(sp+24)                                 
 80115cc:	2b 8d 00 14 	lw r13,(sp+20)                                 
 80115d0:	2b 8e 00 10 	lw r14,(sp+16)                                 
 80115d4:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 80115d8:	2b 90 00 08 	lw r16,(sp+8)                                  
 80115dc:	37 9c 00 1c 	addi sp,sp,28                                  
 80115e0:	c3 a0 00 00 	ret                                            
                                                                      

080115e4 <_Heap_Size_of_alloc_area>: bool _Heap_Size_of_alloc_area( Heap_Control *heap, void *alloc_begin_ptr, uintptr_t *alloc_size ) {
 80115e4:	37 9c ff ec 	addi sp,sp,-20                                 
 80115e8:	5b 8b 00 14 	sw (sp+20),r11                                 
 80115ec:	5b 8c 00 10 	sw (sp+16),r12                                 
 80115f0:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80115f4:	5b 8e 00 08 	sw (sp+8),r14                                  
 80115f8:	5b 9d 00 04 	sw (sp+4),ra                                   
 80115fc:	b8 20 58 00 	mv r11,r1                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 8011600:	34 4e ff f8 	addi r14,r2,-8                                 
 8011604:	b8 40 08 00 	mv r1,r2                                       
 8011608:	b8 40 60 00 	mv r12,r2                                      
 801160c:	29 62 00 10 	lw r2,(r11+16)                                 
 8011610:	b8 60 68 00 	mv r13,r3                                      
 8011614:	fb ff fd 7c 	calli 8010c04 <__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           
 8011618:	29 62 00 20 	lw r2,(r11+32)                                 
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
 801161c:	c9 c1 20 00 	sub r4,r14,r1                                  
  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;             
 8011620:	34 01 00 00 	mvi r1,0                                       
 8011624:	54 44 00 03 	bgu r2,r4,8011630 <_Heap_Size_of_alloc_area+0x4c>
 8011628:	29 61 00 24 	lw r1,(r11+36)                                 
 801162c:	f0 24 08 00 	cmpgeu r1,r1,r4                                
  uintptr_t const alloc_begin = (uintptr_t) alloc_begin_ptr;          
  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 ) ) {                     
 8011630:	b8 20 18 00 	mv r3,r1                                       
    return false;                                                     
 8011634:	34 01 00 00 	mvi r1,0                                       
  uintptr_t const alloc_begin = (uintptr_t) alloc_begin_ptr;          
  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 ) ) {                     
 8011638:	44 60 00 13 	be r3,r0,8011684 <_Heap_Size_of_alloc_area+0xa0>
    - 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;                
 801163c:	28 83 00 04 	lw r3,(r4+4)                                   
 8011640:	34 01 ff fe 	mvi r1,-2                                      
 8011644:	a0 23 08 00 	and r1,r1,r3                                   
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 8011648:	b4 81 20 00 	add r4,r4,r1                                   
  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;             
 801164c:	34 01 00 00 	mvi r1,0                                       
 8011650:	54 44 00 03 	bgu r2,r4,801165c <_Heap_Size_of_alloc_area+0x78><== NEVER TAKEN
 8011654:	29 61 00 24 	lw r1,(r11+36)                                 
 8011658:	f0 24 08 00 	cmpgeu r1,r1,r4                                
  }                                                                   
                                                                      
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if (                                                                
 801165c:	b8 20 10 00 	mv r2,r1                                       
    !_Heap_Is_block_in_heap( heap, next_block )                       
      || !_Heap_Is_prev_used( next_block )                            
  ) {                                                                 
    return false;                                                     
 8011660:	34 01 00 00 	mvi r1,0                                       
  }                                                                   
                                                                      
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if (                                                                
 8011664:	44 40 00 08 	be r2,r0,8011684 <_Heap_Size_of_alloc_area+0xa0><== 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;                 
 8011668:	28 82 00 04 	lw r2,(r4+4)                                   
 801166c:	20 42 00 01 	andi r2,r2,0x1                                 
    !_Heap_Is_block_in_heap( heap, next_block )                       
      || !_Heap_Is_prev_used( next_block )                            
 8011670:	44 40 00 05 	be r2,r0,8011684 <_Heap_Size_of_alloc_area+0xa0><== NEVER TAKEN
  ) {                                                                 
    return false;                                                     
  }                                                                   
                                                                      
  *alloc_size = (uintptr_t) next_block + HEAP_BLOCK_SIZE_OFFSET - alloc_begin;
 8011674:	c8 8c 20 00 	sub r4,r4,r12                                  
 8011678:	34 84 00 04 	addi r4,r4,4                                   
 801167c:	59 a4 00 00 	sw (r13+0),r4                                  
                                                                      
  return true;                                                        
 8011680:	34 01 00 01 	mvi r1,1                                       
}                                                                     
 8011684:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8011688:	2b 8b 00 14 	lw r11,(sp+20)                                 
 801168c:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8011690:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8011694:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8011698:	37 9c 00 14 	addi sp,sp,20                                  
 801169c:	c3 a0 00 00 	ret                                            
                                                                      

08004c0c <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) {
 8004c0c:	37 9c ff a0 	addi sp,sp,-96                                 
 8004c10:	5b 8b 00 50 	sw (sp+80),r11                                 
 8004c14:	5b 8c 00 4c 	sw (sp+76),r12                                 
 8004c18:	5b 8d 00 48 	sw (sp+72),r13                                 
 8004c1c:	5b 8e 00 44 	sw (sp+68),r14                                 
 8004c20:	5b 8f 00 40 	sw (sp+64),r15                                 
 8004c24:	5b 90 00 3c 	sw (sp+60),r16                                 
 8004c28:	5b 91 00 38 	sw (sp+56),r17                                 
 8004c2c:	5b 92 00 34 	sw (sp+52),r18                                 
 8004c30:	5b 93 00 30 	sw (sp+48),r19                                 
 8004c34:	5b 94 00 2c 	sw (sp+44),r20                                 
 8004c38:	5b 95 00 28 	sw (sp+40),r21                                 
 8004c3c:	5b 96 00 24 	sw (sp+36),r22                                 
 8004c40:	5b 97 00 20 	sw (sp+32),r23                                 
 8004c44:	5b 98 00 1c 	sw (sp+28),r24                                 
 8004c48:	5b 99 00 18 	sw (sp+24),r25                                 
 8004c4c:	5b 9b 00 14 	sw (sp+20),fp                                  
 8004c50:	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;                      
 8004c54:	78 0d 08 00 	mvhi r13,0x800                                 
bool _Heap_Walk(                                                      
  Heap_Control *heap,                                                 
  int source,                                                         
  bool dump                                                           
)                                                                     
{                                                                     
 8004c58:	20 63 00 ff 	andi r3,r3,0xff                                
 8004c5c:	b8 20 60 00 	mv r12,r1                                      
 8004c60:	b8 40 70 00 	mv r14,r2                                      
  uintptr_t const page_size = heap->page_size;                        
 8004c64:	28 33 00 10 	lw r19,(r1+16)                                 
  uintptr_t const min_block_size = heap->min_block_size;              
 8004c68:	28 35 00 14 	lw r21,(r1+20)                                 
  Heap_Block *const first_block = heap->first_block;                  
 8004c6c:	28 34 00 20 	lw r20,(r1+32)                                 
  Heap_Block *const last_block = heap->last_block;                    
 8004c70:	28 36 00 24 	lw r22,(r1+36)                                 
  Heap_Block *block = first_block;                                    
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
 8004c74:	39 ad 4b 74 	ori r13,r13,0x4b74                             
 8004c78:	44 60 00 03 	be r3,r0,8004c84 <_Heap_Walk+0x78>             
 8004c7c:	78 0d 08 00 	mvhi r13,0x800                                 
 8004c80:	39 ad 4b 98 	ori r13,r13,0x4b98                             
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
 8004c84:	78 03 08 01 	mvhi r3,0x801                                  
 8004c88:	38 63 59 e4 	ori r3,r3,0x59e4                               
 8004c8c:	28 67 00 00 	lw r7,(r3+0)                                   
 8004c90:	34 02 00 03 	mvi r2,3                                       
    return true;                                                      
 8004c94:	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() ) ) {                
 8004c98:	5c e2 01 08 	bne r7,r2,80050b8 <_Heap_Walk+0x4ac>           <== NEVER TAKEN
  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)(                                                         
 8004c9c:	29 81 00 08 	lw r1,(r12+8)                                  
 8004ca0:	29 86 00 18 	lw r6,(r12+24)                                 
 8004ca4:	29 87 00 1c 	lw r7,(r12+28)                                 
 8004ca8:	5b 81 00 08 	sw (sp+8),r1                                   
 8004cac:	29 81 00 0c 	lw r1,(r12+12)                                 
 8004cb0:	78 03 08 01 	mvhi r3,0x801                                  
 8004cb4:	5b 96 00 04 	sw (sp+4),r22                                  
 8004cb8:	5b 81 00 0c 	sw (sp+12),r1                                  
 8004cbc:	34 02 00 00 	mvi r2,0                                       
 8004cc0:	b9 c0 08 00 	mv r1,r14                                      
 8004cc4:	38 63 2d b8 	ori r3,r3,0x2db8                               
 8004cc8:	ba 60 20 00 	mv r4,r19                                      
 8004ccc:	ba a0 28 00 	mv r5,r21                                      
 8004cd0:	ba 80 40 00 	mv r8,r20                                      
 8004cd4:	d9 a0 00 00 	call r13                                       
    heap->area_begin, heap->area_end,                                 
    first_block, last_block,                                          
    first_free_block, last_free_block                                 
  );                                                                  
                                                                      
  if ( page_size == 0 ) {                                             
 8004cd8:	5e 60 00 06 	bne r19,r0,8004cf0 <_Heap_Walk+0xe4>           
    (*printer)( source, true, "page size is zero\n" );                
 8004cdc:	78 03 08 01 	mvhi r3,0x801                                  
 8004ce0:	b9 c0 08 00 	mv r1,r14                                      
 8004ce4:	34 02 00 01 	mvi r2,1                                       
 8004ce8:	38 63 2e 4c 	ori r3,r3,0x2e4c                               
 8004cec:	e0 00 00 25 	bi 8004d80 <_Heap_Walk+0x174>                  
)                                                                     
{                                                                     
#if (CPU_ALIGNMENT == 0)                                              
    return true;                                                      
#else                                                                 
    return (((uintptr_t)address % CPU_ALIGNMENT) == 0);               
 8004cf0:	22 6f 00 07 	andi r15,r19,0x7                               
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Addresses_Is_aligned( (void *) page_size ) ) {               
 8004cf4:	45 e0 00 07 	be r15,r0,8004d10 <_Heap_Walk+0x104>           
    (*printer)(                                                       
 8004cf8:	78 03 08 01 	mvhi r3,0x801                                  
 8004cfc:	b9 c0 08 00 	mv r1,r14                                      
 8004d00:	34 02 00 01 	mvi r2,1                                       
 8004d04:	38 63 2e 60 	ori r3,r3,0x2e60                               
 8004d08:	ba 60 20 00 	mv r4,r19                                      
 8004d0c:	e0 00 01 04 	bi 800511c <_Heap_Walk+0x510>                  
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
 8004d10:	ba a0 08 00 	mv r1,r21                                      
 8004d14:	ba 60 10 00 	mv r2,r19                                      
 8004d18:	fb ff ef 98 	calli 8000b78 <__umodsi3>                      
 8004d1c:	b8 20 58 00 	mv r11,r1                                      
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {             
 8004d20:	44 2f 00 07 	be r1,r15,8004d3c <_Heap_Walk+0x130>           
    (*printer)(                                                       
 8004d24:	78 03 08 01 	mvhi r3,0x801                                  
 8004d28:	b9 c0 08 00 	mv r1,r14                                      
 8004d2c:	34 02 00 01 	mvi r2,1                                       
 8004d30:	38 63 2e 80 	ori r3,r3,0x2e80                               
 8004d34:	ba a0 20 00 	mv r4,r21                                      
 8004d38:	e0 00 00 f9 	bi 800511c <_Heap_Walk+0x510>                  
 8004d3c:	36 81 00 08 	addi r1,r20,8                                  
 8004d40:	ba 60 10 00 	mv r2,r19                                      
 8004d44:	fb ff ef 8d 	calli 8000b78 <__umodsi3>                      
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
 8004d48:	44 2b 00 07 	be r1,r11,8004d64 <_Heap_Walk+0x158>           
    !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
  ) {                                                                 
    (*printer)(                                                       
 8004d4c:	78 03 08 01 	mvhi r3,0x801                                  
 8004d50:	b9 c0 08 00 	mv r1,r14                                      
 8004d54:	34 02 00 01 	mvi r2,1                                       
 8004d58:	38 63 2e a4 	ori r3,r3,0x2ea4                               
 8004d5c:	ba 80 20 00 	mv r4,r20                                      
 8004d60:	e0 00 00 ef 	bi 800511c <_Heap_Walk+0x510>                  
  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;                 
 8004d64:	2a 82 00 04 	lw r2,(r20+4)                                  
 8004d68:	20 42 00 01 	andi r2,r2,0x1                                 
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( first_block ) ) {                         
 8004d6c:	5c 41 00 07 	bne r2,r1,8004d88 <_Heap_Walk+0x17c>           
    (*printer)(                                                       
 8004d70:	78 03 08 01 	mvhi r3,0x801                                  
 8004d74:	b9 c0 08 00 	mv r1,r14                                      
 8004d78:	34 02 00 01 	mvi r2,1                                       
 8004d7c:	38 63 2e d8 	ori r3,r3,0x2ed8                               
 8004d80:	d9 a0 00 00 	call r13                                       
 8004d84:	e0 00 00 40 	bi 8004e84 <_Heap_Walk+0x278>                  
    - 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;                
 8004d88:	2a cf 00 04 	lw r15,(r22+4)                                 
 8004d8c:	34 02 ff fe 	mvi r2,-2                                      
 8004d90:	a0 4f 78 00 	and r15,r2,r15                                 
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 8004d94:	b6 cf 78 00 	add r15,r22,r15                                
  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;                 
 8004d98:	29 e2 00 04 	lw r2,(r15+4)                                  
 8004d9c:	20 42 00 01 	andi r2,r2,0x1                                 
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( _Heap_Is_free( last_block ) ) {                                
 8004da0:	5c 41 00 06 	bne r2,r1,8004db8 <_Heap_Walk+0x1ac>           
    (*printer)(                                                       
 8004da4:	78 03 08 01 	mvhi r3,0x801                                  
 8004da8:	b9 c0 08 00 	mv r1,r14                                      
 8004dac:	34 02 00 01 	mvi r2,1                                       
 8004db0:	38 63 2f 08 	ori r3,r3,0x2f08                               
 8004db4:	e3 ff ff f3 	bi 8004d80 <_Heap_Walk+0x174>                  
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
 8004db8:	45 f4 00 06 	be r15,r20,8004dd0 <_Heap_Walk+0x1c4>          <== ALWAYS TAKEN
    _Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block
  ) {                                                                 
    (*printer)(                                                       
 8004dbc:	78 03 08 01 	mvhi r3,0x801                                  <== NOT EXECUTED
 8004dc0:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 8004dc4:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 8004dc8:	38 63 2f 20 	ori r3,r3,0x2f20                               <== NOT EXECUTED
 8004dcc:	e3 ff ff ed 	bi 8004d80 <_Heap_Walk+0x174>                  <== NOT EXECUTED
  int source,                                                         
  Heap_Walk_printer printer,                                          
  Heap_Control *heap                                                  
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
 8004dd0:	29 92 00 10 	lw r18,(r12+16)                                
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 8004dd4:	29 8b 00 08 	lw r11,(r12+8)                                 
  Heap_Walk_printer printer,                                          
  Heap_Control *heap                                                  
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
 8004dd8:	b9 80 80 00 	mv r16,r12                                     
    - 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;                
 8004ddc:	34 11 ff fe 	mvi r17,-2                                     
 8004de0:	e0 00 00 2d 	bi 8004e94 <_Heap_Walk+0x288>                  
  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;             
 8004de4:	29 83 00 20 	lw r3,(r12+32)                                 
 8004de8:	34 01 00 00 	mvi r1,0                                       
 8004dec:	54 6b 00 03 	bgu r3,r11,8004df8 <_Heap_Walk+0x1ec>          
 8004df0:	29 81 00 24 	lw r1,(r12+36)                                 
 8004df4:	f0 2b 08 00 	cmpgeu r1,r1,r11                               
  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 ) {                            
    if ( !_Heap_Is_block_in_heap( heap, free_block ) ) {              
 8004df8:	5c 20 00 06 	bne r1,r0,8004e10 <_Heap_Walk+0x204>           
      (*printer)(                                                     
 8004dfc:	78 03 08 01 	mvhi r3,0x801                                  
 8004e00:	b9 c0 08 00 	mv r1,r14                                      
 8004e04:	34 02 00 01 	mvi r2,1                                       
 8004e08:	38 63 2f 50 	ori r3,r3,0x2f50                               
 8004e0c:	e0 00 00 14 	bi 8004e5c <_Heap_Walk+0x250>                  
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
 8004e10:	35 61 00 08 	addi r1,r11,8                                  
 8004e14:	ba 40 10 00 	mv r2,r18                                      
 8004e18:	fb ff ef 58 	calli 8000b78 <__umodsi3>                      
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if (                                                              
 8004e1c:	44 20 00 06 	be r1,r0,8004e34 <_Heap_Walk+0x228>            
      !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
    ) {                                                               
      (*printer)(                                                     
 8004e20:	78 03 08 01 	mvhi r3,0x801                                  
 8004e24:	b9 c0 08 00 	mv r1,r14                                      
 8004e28:	34 02 00 01 	mvi r2,1                                       
 8004e2c:	38 63 2f 70 	ori r3,r3,0x2f70                               
 8004e30:	e0 00 00 0b 	bi 8004e5c <_Heap_Walk+0x250>                  
    - 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;                
 8004e34:	29 63 00 04 	lw r3,(r11+4)                                  
 8004e38:	a2 23 18 00 	and r3,r17,r3                                  
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 8004e3c:	b5 63 18 00 	add r3,r11,r3                                  
  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;                 
 8004e40:	28 63 00 04 	lw r3,(r3+4)                                   
 8004e44:	20 63 00 01 	andi r3,r3,0x1                                 
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
 8004e48:	44 61 00 07 	be r3,r1,8004e64 <_Heap_Walk+0x258>            
      (*printer)(                                                     
 8004e4c:	78 03 08 01 	mvhi r3,0x801                                  
 8004e50:	b9 c0 08 00 	mv r1,r14                                      
 8004e54:	34 02 00 01 	mvi r2,1                                       
 8004e58:	38 63 2f a0 	ori r3,r3,0x2fa0                               
 8004e5c:	b9 60 20 00 	mv r4,r11                                      
 8004e60:	e0 00 00 af 	bi 800511c <_Heap_Walk+0x510>                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( free_block->prev != prev_block ) {                           
 8004e64:	29 65 00 0c 	lw r5,(r11+12)                                 
 8004e68:	44 b0 00 09 	be r5,r16,8004e8c <_Heap_Walk+0x280>           
      (*printer)(                                                     
 8004e6c:	78 03 08 01 	mvhi r3,0x801                                  
 8004e70:	b9 c0 08 00 	mv r1,r14                                      
 8004e74:	34 02 00 01 	mvi r2,1                                       
 8004e78:	38 63 2f bc 	ori r3,r3,0x2fbc                               
 8004e7c:	b9 60 20 00 	mv r4,r11                                      
 8004e80:	d9 a0 00 00 	call r13                                       
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
 8004e84:	34 03 00 00 	mvi r3,0                                       
 8004e88:	e0 00 00 8c 	bi 80050b8 <_Heap_Walk+0x4ac>                  
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    prev_block = free_block;                                          
    free_block = free_block->next;                                    
 8004e8c:	b9 60 80 00 	mv r16,r11                                     
 8004e90:	29 6b 00 08 	lw r11,(r11+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 ) {                            
 8004e94:	5d 6c ff d4 	bne r11,r12,8004de4 <_Heap_Walk+0x1d8>         
 8004e98:	e0 00 00 03 	bi 8004ea4 <_Heap_Walk+0x298>                  
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
 8004e9c:	ba 20 78 00 	mv r15,r17                                     
 8004ea0:	e0 00 00 15 	bi 8004ef4 <_Heap_Walk+0x2e8>                  
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
 8004ea4:	78 01 08 01 	mvhi r1,0x801                                  
 8004ea8:	38 21 31 6c 	ori r1,r1,0x316c                               
 8004eac:	5b 81 00 54 	sw (sp+84),r1                                  
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
      }                                                               
    } else if (prev_used) {                                           
      (*printer)(                                                     
 8004eb0:	78 01 08 01 	mvhi r1,0x801                                  
 8004eb4:	38 21 31 54 	ori r1,r1,0x3154                               
 8004eb8:	5b 81 00 58 	sw (sp+88),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)(                                                         
 8004ebc:	78 01 08 01 	mvhi r1,0x801                                  
 8004ec0:	38 21 2d 80 	ori r1,r1,0x2d80                               
 8004ec4:	5b 81 00 5c 	sw (sp+92),r1                                  
 8004ec8:	78 01 08 01 	mvhi r1,0x801                                  
 8004ecc:	38 21 2d 9c 	ori r1,r1,0x2d9c                               
 8004ed0:	78 1b 08 01 	mvhi fp,0x801                                  
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
 8004ed4:	78 17 08 01 	mvhi r23,0x801                                 
 8004ed8:	78 19 08 01 	mvhi r25,0x801                                 
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
 8004edc:	78 18 08 01 	mvhi r24,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)(                                                         
 8004ee0:	5b 81 00 60 	sw (sp+96),r1                                  
 8004ee4:	3b 7b 30 b0 	ori fp,fp,0x30b0                               
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
 8004ee8:	3a f7 31 20 	ori r23,r23,0x3120                             
 8004eec:	3b 39 2d ac 	ori r25,r25,0x2dac                             
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
 8004ef0:	3b 18 2d 90 	ori r24,r24,0x2d90                             
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 8004ef4:	29 f2 00 04 	lw r18,(r15+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;                
 8004ef8:	34 01 ff fe 	mvi r1,-2                                      
  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;             
 8004efc:	29 84 00 20 	lw r4,(r12+32)                                 
    - 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;                
 8004f00:	a2 41 80 00 	and r16,r18,r1                                 
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 8004f04:	b5 f0 88 00 	add r17,r15,r16                                
  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;             
 8004f08:	34 06 00 00 	mvi r6,0                                       
 8004f0c:	54 91 00 03 	bgu r4,r17,8004f18 <_Heap_Walk+0x30c>          <== NEVER TAKEN
 8004f10:	29 86 00 24 	lw r6,(r12+36)                                 
 8004f14:	f0 d1 30 00 	cmpgeu r6,r6,r17                               
    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;               
                                                                      
    if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {              
 8004f18:	5c c0 00 06 	bne r6,r0,8004f30 <_Heap_Walk+0x324>           
      (*printer)(                                                     
 8004f1c:	78 03 08 01 	mvhi r3,0x801                                  
 8004f20:	b9 c0 08 00 	mv r1,r14                                      
 8004f24:	34 02 00 01 	mvi r2,1                                       
 8004f28:	38 63 2f f0 	ori r3,r3,0x2ff0                               
 8004f2c:	e0 00 00 1f 	bi 8004fa8 <_Heap_Walk+0x39c>                  
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
 8004f30:	ba 00 08 00 	mv r1,r16                                      
 8004f34:	ba 60 10 00 	mv r2,r19                                      
    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;               
 8004f38:	fd f6 58 00 	cmpne r11,r15,r22                              
 8004f3c:	fb ff ef 0f 	calli 8000b78 <__umodsi3>                      
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
 8004f40:	44 20 00 09 	be r1,r0,8004f64 <_Heap_Walk+0x358>            
 8004f44:	45 60 00 08 	be r11,r0,8004f64 <_Heap_Walk+0x358>           
      (*printer)(                                                     
 8004f48:	78 03 08 01 	mvhi r3,0x801                                  
 8004f4c:	b9 c0 08 00 	mv r1,r14                                      
 8004f50:	34 02 00 01 	mvi r2,1                                       
 8004f54:	38 63 30 20 	ori r3,r3,0x3020                               
 8004f58:	b9 e0 20 00 	mv r4,r15                                      
 8004f5c:	ba 00 28 00 	mv r5,r16                                      
 8004f60:	e3 ff ff c8 	bi 8004e80 <_Heap_Walk+0x274>                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( block_size < min_block_size && is_not_last_block ) {         
 8004f64:	52 15 00 0b 	bgeu r16,r21,8004f90 <_Heap_Walk+0x384>        
 8004f68:	45 60 00 0a 	be r11,r0,8004f90 <_Heap_Walk+0x384>           <== NEVER TAKEN
      (*printer)(                                                     
 8004f6c:	78 03 08 01 	mvhi r3,0x801                                  
 8004f70:	b9 c0 08 00 	mv r1,r14                                      
 8004f74:	34 02 00 01 	mvi r2,1                                       
 8004f78:	38 63 30 50 	ori r3,r3,0x3050                               
 8004f7c:	b9 e0 20 00 	mv r4,r15                                      
 8004f80:	ba 00 28 00 	mv r5,r16                                      
 8004f84:	ba a0 30 00 	mv r6,r21                                      
 8004f88:	d9 a0 00 00 	call r13                                       
 8004f8c:	e3 ff ff be 	bi 8004e84 <_Heap_Walk+0x278>                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( next_block_begin <= block_begin && is_not_last_block ) {     
 8004f90:	56 2f 00 09 	bgu r17,r15,8004fb4 <_Heap_Walk+0x3a8>         
 8004f94:	45 60 00 08 	be r11,r0,8004fb4 <_Heap_Walk+0x3a8>           
      (*printer)(                                                     
 8004f98:	78 03 08 01 	mvhi r3,0x801                                  
 8004f9c:	b9 c0 08 00 	mv r1,r14                                      
 8004fa0:	34 02 00 01 	mvi r2,1                                       
 8004fa4:	38 63 30 7c 	ori r3,r3,0x307c                               
 8004fa8:	b9 e0 20 00 	mv r4,r15                                      
 8004fac:	ba 20 28 00 	mv r5,r17                                      
 8004fb0:	e3 ff ff b4 	bi 8004e80 <_Heap_Walk+0x274>                  
  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;                 
 8004fb4:	2a 24 00 04 	lw r4,(r17+4)                                  
 8004fb8:	22 52 00 01 	andi r18,r18,0x1                               
 8004fbc:	20 84 00 01 	andi r4,r4,0x1                                 
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
 8004fc0:	5c 80 00 2d 	bne r4,r0,8005074 <_Heap_Walk+0x468>           
    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 ?                                 
 8004fc4:	29 e6 00 0c 	lw r6,(r15+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)(                                                         
 8004fc8:	29 85 00 08 	lw r5,(r12+8)                                  
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 8004fcc:	29 84 00 0c 	lw r4,(r12+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)(                                                         
 8004fd0:	2b 87 00 5c 	lw r7,(sp+92)                                  
 8004fd4:	44 c5 00 04 	be r6,r5,8004fe4 <_Heap_Walk+0x3d8>            
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
 8004fd8:	ba e0 38 00 	mv r7,r23                                      
 8004fdc:	5c cc 00 02 	bne r6,r12,8004fe4 <_Heap_Walk+0x3d8>          
 8004fe0:	bb 00 38 00 	mv r7,r24                                      
    block->next,                                                      
    block->next == last_free_block ?                                  
 8004fe4:	29 e8 00 08 	lw r8,(r15+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)(                                                         
 8004fe8:	2b 89 00 60 	lw r9,(sp+96)                                  
 8004fec:	45 04 00 04 	be r8,r4,8004ffc <_Heap_Walk+0x3f0>            
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
 8004ff0:	ba e0 48 00 	mv r9,r23                                      
 8004ff4:	5d 0c 00 02 	bne r8,r12,8004ffc <_Heap_Walk+0x3f0>          
 8004ff8:	bb 20 48 00 	mv r9,r25                                      
  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)(                                                         
 8004ffc:	5b 89 00 04 	sw (sp+4),r9                                   
 8005000:	b9 c0 08 00 	mv r1,r14                                      
 8005004:	34 02 00 00 	mvi r2,0                                       
 8005008:	bb 60 18 00 	mv r3,fp                                       
 800500c:	b9 e0 20 00 	mv r4,r15                                      
 8005010:	ba 00 28 00 	mv r5,r16                                      
 8005014:	d9 a0 00 00 	call r13                                       
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
  );                                                                  
                                                                      
  if ( block_size != next_block->prev_size ) {                        
 8005018:	2a 26 00 00 	lw r6,(r17+0)                                  
 800501c:	46 06 00 0a 	be r16,r6,8005044 <_Heap_Walk+0x438>           
    (*printer)(                                                       
 8005020:	78 03 08 01 	mvhi r3,0x801                                  
 8005024:	b9 c0 08 00 	mv r1,r14                                      
 8005028:	34 02 00 01 	mvi r2,1                                       
 800502c:	38 63 30 e8 	ori r3,r3,0x30e8                               
 8005030:	b9 e0 20 00 	mv r4,r15                                      
 8005034:	ba 00 28 00 	mv r5,r16                                      
 8005038:	ba 20 38 00 	mv r7,r17                                      
 800503c:	d9 a0 00 00 	call r13                                       
 8005040:	e3 ff ff 91 	bi 8004e84 <_Heap_Walk+0x278>                  
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !prev_used ) {                                                 
 8005044:	5e 40 00 06 	bne r18,r0,800505c <_Heap_Walk+0x450>          
    (*printer)(                                                       
 8005048:	78 03 08 01 	mvhi r3,0x801                                  
 800504c:	b9 c0 08 00 	mv r1,r14                                      
 8005050:	34 02 00 01 	mvi r2,1                                       
 8005054:	38 63 31 24 	ori r3,r3,0x3124                               
 8005058:	e0 00 00 30 	bi 8005118 <_Heap_Walk+0x50c>                  
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 800505c:	29 85 00 08 	lw r5,(r12+8)                                  
 8005060:	e0 00 00 03 	bi 800506c <_Heap_Walk+0x460>                  
{                                                                     
  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 ) {                            
    if ( free_block == block ) {                                      
 8005064:	44 af 00 13 	be r5,r15,80050b0 <_Heap_Walk+0x4a4>           
      return true;                                                    
    }                                                                 
    free_block = free_block->next;                                    
 8005068:	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 ) {                            
 800506c:	5c ac ff fe 	bne r5,r12,8005064 <_Heap_Walk+0x458>          
 8005070:	e0 00 00 26 	bi 8005108 <_Heap_Walk+0x4fc>                  
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
      }                                                               
    } else if (prev_used) {                                           
 8005074:	46 40 00 08 	be r18,r0,8005094 <_Heap_Walk+0x488>           
      (*printer)(                                                     
 8005078:	2b 83 00 58 	lw r3,(sp+88)                                  
 800507c:	b9 c0 08 00 	mv r1,r14                                      
 8005080:	34 02 00 00 	mvi r2,0                                       
 8005084:	b9 e0 20 00 	mv r4,r15                                      
 8005088:	ba 00 28 00 	mv r5,r16                                      
 800508c:	d9 a0 00 00 	call r13                                       
 8005090:	e0 00 00 08 	bi 80050b0 <_Heap_Walk+0x4a4>                  
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
 8005094:	2b 83 00 54 	lw r3,(sp+84)                                  
 8005098:	29 e6 00 00 	lw r6,(r15+0)                                  
 800509c:	b9 c0 08 00 	mv r1,r14                                      
 80050a0:	34 02 00 00 	mvi r2,0                                       
 80050a4:	b9 e0 20 00 	mv r4,r15                                      
 80050a8:	ba 00 28 00 	mv r5,r16                                      
 80050ac:	d9 a0 00 00 	call r13                                       
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
 80050b0:	5e 91 ff 7b 	bne r20,r17,8004e9c <_Heap_Walk+0x290>         
                                                                      
  return true;                                                        
 80050b4:	34 03 00 01 	mvi r3,1                                       
}                                                                     
 80050b8:	b8 60 08 00 	mv r1,r3                                       
 80050bc:	2b 9d 00 10 	lw ra,(sp+16)                                  
 80050c0:	2b 8b 00 50 	lw r11,(sp+80)                                 
 80050c4:	2b 8c 00 4c 	lw r12,(sp+76)                                 
 80050c8:	2b 8d 00 48 	lw r13,(sp+72)                                 
 80050cc:	2b 8e 00 44 	lw r14,(sp+68)                                 
 80050d0:	2b 8f 00 40 	lw r15,(sp+64)                                 
 80050d4:	2b 90 00 3c 	lw r16,(sp+60)                                 
 80050d8:	2b 91 00 38 	lw r17,(sp+56)                                 
 80050dc:	2b 92 00 34 	lw r18,(sp+52)                                 
 80050e0:	2b 93 00 30 	lw r19,(sp+48)                                 
 80050e4:	2b 94 00 2c 	lw r20,(sp+44)                                 
 80050e8:	2b 95 00 28 	lw r21,(sp+40)                                 
 80050ec:	2b 96 00 24 	lw r22,(sp+36)                                 
 80050f0:	2b 97 00 20 	lw r23,(sp+32)                                 
 80050f4:	2b 98 00 1c 	lw r24,(sp+28)                                 
 80050f8:	2b 99 00 18 	lw r25,(sp+24)                                 
 80050fc:	2b 9b 00 14 	lw fp,(sp+20)                                  
 8005100:	37 9c 00 60 	addi sp,sp,96                                  
 8005104:	c3 a0 00 00 	ret                                            
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {                 
    (*printer)(                                                       
 8005108:	78 03 08 01 	mvhi r3,0x801                                  
 800510c:	b9 c0 08 00 	mv r1,r14                                      
 8005110:	34 02 00 01 	mvi r2,1                                       
 8005114:	38 63 31 94 	ori r3,r3,0x3194                               
 8005118:	b9 e0 20 00 	mv r4,r15                                      
 800511c:	d9 a0 00 00 	call r13                                       
 8005120:	e3 ff ff 59 	bi 8004e84 <_Heap_Walk+0x278>                  
                                                                      

08003144 <_IO_Manager_initialization>: * workspace. * */ void _IO_Manager_initialization(void) {
 8003144:	37 9c ff e8 	addi sp,sp,-24                                 
 8003148:	5b 8b 00 18 	sw (sp+24),r11                                 
 800314c:	5b 8c 00 14 	sw (sp+20),r12                                 
 8003150:	5b 8d 00 10 	sw (sp+16),r13                                 
 8003154:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8003158:	5b 8f 00 08 	sw (sp+8),r15                                  
 800315c:	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;              
 8003160:	78 01 08 01 	mvhi r1,0x801                                  
 8003164:	38 21 30 c4 	ori r1,r1,0x30c4                               
  drivers_in_table  = Configuration.number_of_device_drivers;         
 8003168:	28 2d 00 30 	lw r13,(r1+48)                                 
  number_of_drivers = Configuration.maximum_drivers;                  
 800316c:	28 2b 00 2c 	lw r11,(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;              
 8003170:	28 2e 00 34 	lw r14,(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 )                        
 8003174:	51 ab 00 03 	bgeu r13,r11,8003180 <_IO_Manager_initialization+0x3c>
  /*                                                                  
   *  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 ) {                      
 8003178:	5d 6d 00 0a 	bne r11,r13,80031a0 <_IO_Manager_initialization+0x5c><== ALWAYS TAKEN
 800317c:	e0 00 00 02 	bi 8003184 <_IO_Manager_initialization+0x40>   <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  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 )                        
 8003180:	b9 a0 58 00 	mv r11,r13                                     
   *  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;                          
 8003184:	78 01 08 01 	mvhi r1,0x801                                  
 8003188:	38 21 3a 50 	ori r1,r1,0x3a50                               
 800318c:	58 2e 00 00 	sw (r1+0),r14                                  
    _IO_Number_of_drivers = number_of_drivers;                        
 8003190:	78 01 08 01 	mvhi r1,0x801                                  
 8003194:	38 21 3a 4c 	ori r1,r1,0x3a4c                               
 8003198:	58 2b 00 00 	sw (r1+0),r11                                  
    return;                                                           
 800319c:	e0 00 00 27 	bi 8003238 <_IO_Manager_initialization+0xf4>   
   *  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 )  
 80031a0:	34 02 00 01 	mvi r2,1                                       
 80031a4:	b9 60 08 00 	mv r1,r11                                      
 80031a8:	f8 00 35 ad 	calli 801085c <__ashlsi3>                      
 80031ac:	34 02 00 03 	mvi r2,3                                       
 80031b0:	b4 2b 08 00 	add r1,r1,r11                                  
 80031b4:	f8 00 35 aa 	calli 801085c <__ashlsi3>                      
 80031b8:	b8 20 78 00 	mv r15,r1                                      
   *  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(                             
 80031bc:	f8 00 0d de 	calli 8006934 <_Workspace_Allocate_or_fatal_error>
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
 80031c0:	78 02 08 01 	mvhi r2,0x801                                  
 80031c4:	38 42 3a 4c 	ori r2,r2,0x3a4c                               
  /*                                                                  
   *  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 *)           
 80031c8:	78 0c 08 01 	mvhi r12,0x801                                 
      _Workspace_Allocate_or_fatal_error(                             
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
 80031cc:	58 4b 00 00 	sw (r2+0),r11                                  
                                                                      
  memset(                                                             
 80031d0:	b9 e0 18 00 	mv r3,r15                                      
  /*                                                                  
   *  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 *)           
 80031d4:	39 8c 3a 50 	ori r12,r12,0x3a50                             
      _Workspace_Allocate_or_fatal_error(                             
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
                                                                      
  memset(                                                             
 80031d8:	34 02 00 00 	mvi r2,0                                       
  /*                                                                  
   *  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 *)           
 80031dc:	59 81 00 00 	sw (r12+0),r1                                  
      _Workspace_Allocate_or_fatal_error(                             
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
                                                                      
  memset(                                                             
 80031e0:	f8 00 23 89 	calli 800c004 <memset>                         
    _IO_Driver_address_table, 0,                                      
    sizeof( rtems_driver_address_table ) * ( number_of_drivers )      
  );                                                                  
                                                                      
  for ( index = 0 ; index < drivers_in_table ; index++ )              
 80031e4:	34 03 00 00 	mvi r3,0                                       
 80031e8:	34 04 00 00 	mvi r4,0                                       
 80031ec:	e0 00 00 12 	bi 8003234 <_IO_Manager_initialization+0xf0>   
    _IO_Driver_address_table[index] = driver_table[index];            
 80031f0:	29 82 00 00 	lw r2,(r12+0)                                  
 *  registration. The driver table is now allocated in the            
 *  workspace.                                                        
 *                                                                    
 */                                                                   
                                                                      
void _IO_Manager_initialization(void)                                 
 80031f4:	b5 c3 08 00 	add r1,r14,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];            
 80031f8:	28 29 00 00 	lw r9,(r1+0)                                   
 80031fc:	28 28 00 04 	lw r8,(r1+4)                                   
 8003200:	28 27 00 08 	lw r7,(r1+8)                                   
 8003204:	28 26 00 0c 	lw r6,(r1+12)                                  
 8003208:	28 25 00 10 	lw r5,(r1+16)                                  
 800320c:	28 21 00 14 	lw r1,(r1+20)                                  
 8003210:	b4 43 10 00 	add r2,r2,r3                                   
 8003214:	58 49 00 00 	sw (r2+0),r9                                   
 8003218:	58 48 00 04 	sw (r2+4),r8                                   
 800321c:	58 47 00 08 	sw (r2+8),r7                                   
 8003220:	58 46 00 0c 	sw (r2+12),r6                                  
 8003224:	58 45 00 10 	sw (r2+16),r5                                  
 8003228:	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++ )              
 800322c:	34 84 00 01 	addi r4,r4,1                                   
 8003230:	34 63 00 18 	addi r3,r3,24                                  
 8003234:	55 a4 ff ef 	bgu r13,r4,80031f0 <_IO_Manager_initialization+0xac>
    _IO_Driver_address_table[index] = driver_table[index];            
  number_of_drivers = drivers_in_table;                               
}                                                                     
 8003238:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800323c:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8003240:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8003244:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8003248:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800324c:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8003250:	37 9c 00 18 	addi sp,sp,24                                  
 8003254:	c3 a0 00 00 	ret                                            
                                                                      

080040e4 <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) {
 80040e4:	37 9c ff ec 	addi sp,sp,-20                                 
 80040e8:	5b 8b 00 14 	sw (sp+20),r11                                 
 80040ec:	5b 8c 00 10 	sw (sp+16),r12                                 
 80040f0:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80040f4:	5b 8e 00 08 	sw (sp+8),r14                                  
 80040f8:	5b 9d 00 04 	sw (sp+4),ra                                   
 80040fc:	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 )                                       
 8004100:	28 21 00 18 	lw r1,(r1+24)                                  
    return NULL;                                                      
 8004104:	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 )                                       
 8004108:	44 20 00 1e 	be r1,r0,8004180 <_Objects_Allocate+0x9c>      <== NEVER TAKEN
                                                                      
  /*                                                                  
   *  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 );
 800410c:	35 6d 00 20 	addi r13,r11,32                                
 8004110:	b9 a0 08 00 	mv r1,r13                                      
 8004114:	fb ff fd 21 	calli 8003598 <_Chain_Get>                     
 8004118:	b8 20 60 00 	mv r12,r1                                      
 800411c:	b8 20 70 00 	mv r14,r1                                      
                                                                      
  if ( information->auto_extend ) {                                   
 8004120:	41 61 00 12 	lbu r1,(r11+18)                                
 8004124:	44 20 00 17 	be r1,r0,8004180 <_Objects_Allocate+0x9c>      
    /*                                                                
     *  If the list is empty then we are out of objects and need to   
     *  extend information base.                                      
     */                                                               
                                                                      
    if ( !the_object ) {                                              
 8004128:	5d 80 00 07 	bne r12,r0,8004144 <_Objects_Allocate+0x60>    
      _Objects_Extend_information( information );                     
 800412c:	b9 60 08 00 	mv r1,r11                                      
 8004130:	f8 00 00 1c 	calli 80041a0 <_Objects_Extend_information>    
      the_object =  (Objects_Control *) _Chain_Get( &information->Inactive );
 8004134:	b9 a0 08 00 	mv r1,r13                                      
 8004138:	fb ff fd 18 	calli 8003598 <_Chain_Get>                     
 800413c:	b8 20 60 00 	mv r12,r1                                      
    }                                                                 
                                                                      
    if ( the_object ) {                                               
 8004140:	44 2e 00 10 	be r1,r14,8004180 <_Objects_Allocate+0x9c>     
      uint32_t   block;                                               
                                                                      
      block = (uint32_t) _Objects_Get_index( the_object->id ) -       
 8004144:	2d 82 00 0a 	lhu r2,(r12+10)                                
 8004148:	2d 61 00 0a 	lhu r1,(r11+10)                                
              _Objects_Get_index( information->minimum_id );          
      block /= information->allocation_size;                          
 800414c:	c8 41 08 00 	sub r1,r2,r1                                   
 8004150:	2d 62 00 14 	lhu r2,(r11+20)                                
 8004154:	f8 00 32 9c 	calli 8010bc4 <__udivsi3>                      
                                                                      
      information->inactive_per_block[ block ]--;                     
 8004158:	34 02 00 02 	mvi r2,2                                       
 800415c:	f8 00 31 c0 	calli 801085c <__ashlsi3>                      
 8004160:	29 62 00 30 	lw r2,(r11+48)                                 
 8004164:	b4 41 08 00 	add r1,r2,r1                                   
 8004168:	28 22 00 00 	lw r2,(r1+0)                                   
 800416c:	34 42 ff ff 	addi r2,r2,-1                                  
 8004170:	58 22 00 00 	sw (r1+0),r2                                   
      information->inactive--;                                        
 8004174:	2d 61 00 2c 	lhu r1,(r11+44)                                
 8004178:	34 21 ff ff 	addi r1,r1,-1                                  
 800417c:	0d 61 00 2c 	sh (r11+44),r1                                 
    );                                                                
  }                                                                   
#endif                                                                
                                                                      
  return the_object;                                                  
}                                                                     
 8004180:	b9 80 08 00 	mv r1,r12                                      
 8004184:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004188:	2b 8b 00 14 	lw r11,(sp+20)                                 
 800418c:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8004190:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8004194:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8004198:	37 9c 00 14 	addi sp,sp,20                                  
 800419c:	c3 a0 00 00 	ret                                            
                                                                      

080045c4 <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint32_t the_class ) {
 80045c4:	37 9c ff ec 	addi sp,sp,-20                                 
 80045c8:	5b 8b 00 14 	sw (sp+20),r11                                 
 80045cc:	5b 8c 00 10 	sw (sp+16),r12                                 
 80045d0:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80045d4:	5b 8e 00 08 	sw (sp+8),r14                                  
 80045d8:	5b 9d 00 04 	sw (sp+4),ra                                   
  Objects_Information *info;                                          
  int the_class_api_maximum;                                          
                                                                      
  if ( !the_class )                                                   
    return NULL;                                                      
 80045dc:	34 0b 00 00 	mvi r11,0                                      
                                                                      
Objects_Information *_Objects_Get_information(                        
  Objects_APIs   the_api,                                             
  uint32_t       the_class                                            
)                                                                     
{                                                                     
 80045e0:	b8 20 70 00 	mv r14,r1                                      
 80045e4:	b8 40 60 00 	mv r12,r2                                      
  Objects_Information *info;                                          
  int the_class_api_maximum;                                          
                                                                      
  if ( !the_class )                                                   
 80045e8:	44 40 00 16 	be r2,r0,8004640 <_Objects_Get_information+0x7c>
                                                                      
  /*                                                                  
   *  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 );      
 80045ec:	f8 00 13 2f 	calli 80092a8 <_Objects_API_maximum_class>     
  if ( the_class_api_maximum == 0 )                                   
 80045f0:	44 20 00 14 	be r1,r0,8004640 <_Objects_Get_information+0x7c>
    return NULL;                                                      
                                                                      
  if ( the_class > (uint32_t) the_class_api_maximum )                 
 80045f4:	55 81 00 13 	bgu r12,r1,8004640 <_Objects_Get_information+0x7c>
    return NULL;                                                      
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
 80045f8:	78 0d 08 01 	mvhi r13,0x801                                 
 80045fc:	b9 c0 08 00 	mv r1,r14                                      
 8004600:	34 02 00 02 	mvi r2,2                                       
 8004604:	39 ad 37 b8 	ori r13,r13,0x37b8                             
 8004608:	f8 00 30 95 	calli 801085c <__ashlsi3>                      
 800460c:	b5 a1 08 00 	add r1,r13,r1                                  
 8004610:	28 2d 00 00 	lw r13,(r1+0)                                  
 8004614:	45 a0 00 0b 	be r13,r0,8004640 <_Objects_Get_information+0x7c><== NEVER TAKEN
    return NULL;                                                      
                                                                      
  info = _Objects_Information_table[ the_api ][ the_class ];          
 8004618:	b9 80 08 00 	mv r1,r12                                      
 800461c:	34 02 00 02 	mvi r2,2                                       
 8004620:	f8 00 30 8f 	calli 801085c <__ashlsi3>                      
 8004624:	b5 a1 08 00 	add r1,r13,r1                                  
 8004628:	28 2b 00 00 	lw r11,(r1+0)                                  
  if ( !info )                                                        
 800462c:	45 60 00 05 	be r11,r0,8004640 <_Objects_Get_information+0x7c><== 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 )                                         
 8004630:	2d 61 00 10 	lhu r1,(r11+16)                                
      return NULL;                                                    
 8004634:	7c 21 00 00 	cmpnei r1,r1,0                                 
 8004638:	c8 01 08 00 	sub r1,r0,r1                                   
 800463c:	a1 61 58 00 	and r11,r11,r1                                 
  #endif                                                              
                                                                      
  return info;                                                        
}                                                                     
 8004640:	b9 60 08 00 	mv r1,r11                                      
 8004644:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004648:	2b 8b 00 14 	lw r11,(sp+20)                                 
 800464c:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8004650:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8004654:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8004658:	37 9c 00 14 	addi sp,sp,20                                  
 800465c:	c3 a0 00 00 	ret                                            
                                                                      

080178a0 <_Objects_Get_no_protection>: Objects_Control *_Objects_Get_no_protection( Objects_Information *information, Objects_Id id, Objects_Locations *location ) {
 80178a0:	37 9c ff f4 	addi sp,sp,-12                                 
 80178a4:	5b 8b 00 0c 	sw (sp+12),r11                                 
 80178a8:	5b 8c 00 08 	sw (sp+8),r12                                  
 80178ac:	5b 9d 00 04 	sw (sp+4),ra                                   
 80178b0:	b8 20 20 00 	mv r4,r1                                       
                                                                      
  /*                                                                  
   * 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;                           
 80178b4:	28 21 00 08 	lw r1,(r1+8)                                   
Objects_Control *_Objects_Get_no_protection(                          
  Objects_Information *information,                                   
  Objects_Id           id,                                            
  Objects_Locations   *location                                       
)                                                                     
{                                                                     
 80178b8:	b8 60 58 00 	mv r11,r3                                      
                                                                      
  /*                                                                  
   * 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;                           
 80178bc:	c8 41 08 00 	sub r1,r2,r1                                   
                                                                      
  if ( information->maximum >= index ) {                              
 80178c0:	2c 82 00 10 	lhu r2,(r4+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;                           
 80178c4:	34 21 00 01 	addi r1,r1,1                                   
                                                                      
  if ( information->maximum >= index ) {                              
 80178c8:	54 22 00 09 	bgu r1,r2,80178ec <_Objects_Get_no_protection+0x4c>
    if ( (the_object = information->local_table[ index ]) != NULL ) { 
 80178cc:	28 8c 00 1c 	lw r12,(r4+28)                                 
 80178d0:	34 02 00 02 	mvi r2,2                                       
 80178d4:	fb ff d9 93 	calli 800df20 <__ashlsi3>                      
 80178d8:	b5 81 08 00 	add r1,r12,r1                                  
 80178dc:	28 21 00 00 	lw r1,(r1+0)                                   
 80178e0:	44 20 00 03 	be r1,r0,80178ec <_Objects_Get_no_protection+0x4c><== NEVER TAKEN
      *location = OBJECTS_LOCAL;                                      
 80178e4:	59 60 00 00 	sw (r11+0),r0                                  
      return the_object;                                              
 80178e8:	e0 00 00 04 	bi 80178f8 <_Objects_Get_no_protection+0x58>   
                                                                      
  /*                                                                  
   *  This isn't supported or required yet for Global objects so      
   *  if it isn't local, we don't find it.                            
   */                                                                 
  *location = OBJECTS_ERROR;                                          
 80178ec:	34 01 00 01 	mvi r1,1                                       
 80178f0:	59 61 00 00 	sw (r11+0),r1                                  
  return NULL;                                                        
 80178f4:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 80178f8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80178fc:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8017900:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8017904:	37 9c 00 0c 	addi sp,sp,12                                  
 8017908:	c3 a0 00 00 	ret                                            
                                                                      

08006270 <_Objects_Id_to_name>: */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) {
 8006270:	37 9c ff e8 	addi sp,sp,-24                                 
 8006274:	5b 8b 00 14 	sw (sp+20),r11                                 
 8006278:	5b 8c 00 10 	sw (sp+16),r12                                 
 800627c:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8006280:	5b 8e 00 08 	sw (sp+8),r14                                  
 8006284:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006288:	b8 40 70 00 	mv r14,r2                                      
                                                                      
  /*                                                                  
   *  Caller is trusted for name != NULL.                             
   */                                                                 
                                                                      
  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
 800628c:	b8 20 58 00 	mv r11,r1                                      
 8006290:	5c 20 00 05 	bne r1,r0,80062a4 <_Objects_Id_to_name+0x34>   
 8006294:	78 01 08 01 	mvhi r1,0x801                                  
 8006298:	38 21 ea 48 	ori r1,r1,0xea48                               
 800629c:	28 21 00 0c 	lw r1,(r1+12)                                  
 80062a0:	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);
 80062a4:	34 02 00 18 	mvi r2,24                                      
 80062a8:	b9 60 08 00 	mv r1,r11                                      
 80062ac:	f8 00 52 e1 	calli 801ae30 <__lshrsi3>                      
 80062b0:	20 21 00 07 	andi r1,r1,0x7                                 
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(                      
  uint32_t   the_api                                                  
)                                                                     
{                                                                     
  if ( !the_api || the_api > OBJECTS_APIS_LAST )                      
 80062b4:	34 23 ff ff 	addi r3,r1,-1                                  
 80062b8:	34 02 00 02 	mvi r2,2                                       
                                                                      
  the_api = _Objects_Get_API( tmpId );                                
  if ( !_Objects_Is_api_valid( the_api ) )                            
    return OBJECTS_INVALID_ID;                                        
 80062bc:	34 0d 00 03 	mvi r13,3                                      
 80062c0:	54 62 00 12 	bgu r3,r2,8006308 <_Objects_Id_to_name+0x98>   
 80062c4:	e0 00 00 19 	bi 8006328 <_Objects_Id_to_name+0xb8>          
 */                                                                   
RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class(                     
  Objects_Id id                                                       
)                                                                     
{                                                                     
  return (uint32_t)                                                   
 80062c8:	34 02 00 1b 	mvi r2,27                                      
 80062cc:	b9 60 08 00 	mv r1,r11                                      
 80062d0:	f8 00 52 d8 	calli 801ae30 <__lshrsi3>                      
  if ( !_Objects_Information_table[ the_api ] )                       
    return OBJECTS_INVALID_ID;                                        
                                                                      
  the_class = _Objects_Get_class( tmpId );                            
                                                                      
  information = _Objects_Information_table[ the_api ][ the_class ];   
 80062d4:	34 02 00 02 	mvi r2,2                                       
 80062d8:	fb ff ec d9 	calli 800163c <__ashlsi3>                      
 80062dc:	b5 81 08 00 	add r1,r12,r1                                  
 80062e0:	28 21 00 00 	lw r1,(r1+0)                                   
  if ( !information )                                                 
 80062e4:	44 20 00 09 	be r1,r0,8006308 <_Objects_Id_to_name+0x98>    <== 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 ); 
 80062e8:	b9 60 10 00 	mv r2,r11                                      
 80062ec:	37 83 00 18 	addi r3,sp,24                                  
 80062f0:	fb ff ff ba 	calli 80061d8 <_Objects_Get>                   
  if ( !the_object )                                                  
 80062f4:	44 20 00 05 	be r1,r0,8006308 <_Objects_Id_to_name+0x98>    
    return OBJECTS_INVALID_ID;                                        
                                                                      
  *name = the_object->name;                                           
 80062f8:	28 21 00 0c 	lw r1,(r1+12)                                  
  _Thread_Enable_dispatch();                                          
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
 80062fc:	34 0d 00 00 	mvi r13,0                                      
                                                                      
  the_object = _Objects_Get( information, tmpId, &ignored_location ); 
  if ( !the_object )                                                  
    return OBJECTS_INVALID_ID;                                        
                                                                      
  *name = the_object->name;                                           
 8006300:	59 c1 00 00 	sw (r14+0),r1                                  
  _Thread_Enable_dispatch();                                          
 8006304:	f8 00 02 5d 	calli 8006c78 <_Thread_Enable_dispatch>        
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
}                                                                     
 8006308:	b9 a0 08 00 	mv r1,r13                                      
 800630c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006310:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8006314:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8006318:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800631c:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8006320:	37 9c 00 18 	addi sp,sp,24                                  
 8006324:	c3 a0 00 00 	ret                                            
                                                                      
  the_api = _Objects_Get_API( tmpId );                                
  if ( !_Objects_Is_api_valid( the_api ) )                            
    return OBJECTS_INVALID_ID;                                        
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
 8006328:	78 0c 08 01 	mvhi r12,0x801                                 
 800632c:	34 02 00 02 	mvi r2,2                                       
 8006330:	39 8c e8 18 	ori r12,r12,0xe818                             
 8006334:	fb ff ec c2 	calli 800163c <__ashlsi3>                      
 8006338:	b5 81 08 00 	add r1,r12,r1                                  
 800633c:	28 2c 00 00 	lw r12,(r1+0)                                  
 8006340:	5d 80 ff e2 	bne r12,r0,80062c8 <_Objects_Id_to_name+0x58>  <== ALWAYS TAKEN
 8006344:	e3 ff ff f1 	bi 8006308 <_Objects_Id_to_name+0x98>          <== NOT EXECUTED
                                                                      

080047a0 <_Objects_Initialize_information>: , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) {
 80047a0:	37 9c ff e4 	addi sp,sp,-28                                 
 80047a4:	5b 8b 00 1c 	sw (sp+28),r11                                 
 80047a8:	5b 8c 00 18 	sw (sp+24),r12                                 
 80047ac:	5b 8d 00 14 	sw (sp+20),r13                                 
 80047b0:	5b 8e 00 10 	sw (sp+16),r14                                 
 80047b4:	5b 8f 00 0c 	sw (sp+12),r15                                 
 80047b8:	5b 90 00 08 	sw (sp+8),r16                                  
 80047bc:	5b 9d 00 04 	sw (sp+4),ra                                   
 80047c0:	b8 20 58 00 	mv r11,r1                                      
 80047c4:	20 a5 ff ff 	andi r5,r5,0xffff                              
  #if defined(RTEMS_MULTIPROCESSING)                                  
    uint32_t              index;                                      
  #endif                                                              
                                                                      
  information->the_api            = the_api;                          
  information->the_class          = the_class;                        
 80047c8:	0d 63 00 04 	sh (r11+4),r3                                  
  information->size               = size;                             
 80047cc:	58 25 00 18 	sw (r1+24),r5                                  
  uint32_t                maximum_per_allocation;                     
  #if defined(RTEMS_MULTIPROCESSING)                                  
    uint32_t              index;                                      
  #endif                                                              
                                                                      
  information->the_api            = the_api;                          
 80047d0:	59 62 00 00 	sw (r11+0),r2                                  
  information->the_class          = the_class;                        
  information->size               = size;                             
  information->local_table        = 0;                                
 80047d4:	58 20 00 1c 	sw (r1+28),r0                                  
  information->inactive_per_block = 0;                                
 80047d8:	58 20 00 30 	sw (r1+48),r0                                  
  information->object_blocks      = 0;                                
 80047dc:	58 20 00 34 	sw (r1+52),r0                                  
  information->inactive           = 0;                                
 80047e0:	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;                                           
 80047e4:	0c 20 00 10 	sh (r1+16),r0                                  
  ,                                                                   
  bool                 supports_global,                               
  Objects_Thread_queue_Extract_callout extract                        
#endif                                                                
)                                                                     
{                                                                     
 80047e8:	b8 40 70 00 	mv r14,r2                                      
  information->maximum = 0;                                           
                                                                      
  /*                                                                  
   *  Register this Object Class in the Object Information Table.     
   */                                                                 
  _Objects_Information_table[ the_api ][ the_class ] = information;   
 80047ec:	b8 40 08 00 	mv r1,r2                                       
 80047f0:	78 0f 08 01 	mvhi r15,0x801                                 
 80047f4:	34 02 00 02 	mvi r2,2                                       
  ,                                                                   
  bool                 supports_global,                               
  Objects_Thread_queue_Extract_callout extract                        
#endif                                                                
)                                                                     
{                                                                     
 80047f8:	b8 60 68 00 	mv r13,r3                                      
 80047fc:	b8 80 60 00 	mv r12,r4                                      
 8004800:	b8 e0 80 00 	mv r16,r7                                      
  information->maximum = 0;                                           
                                                                      
  /*                                                                  
   *  Register this Object Class in the Object Information Table.     
   */                                                                 
  _Objects_Information_table[ the_api ][ the_class ] = information;   
 8004804:	39 ef 37 b8 	ori r15,r15,0x37b8                             
 8004808:	f8 00 30 15 	calli 801085c <__ashlsi3>                      
 800480c:	b5 e1 08 00 	add r1,r15,r1                                  
 8004810:	28 2f 00 00 	lw r15,(r1+0)                                  
 8004814:	34 02 00 02 	mvi r2,2                                       
 8004818:	b9 a0 08 00 	mv r1,r13                                      
 800481c:	f8 00 30 10 	calli 801085c <__ashlsi3>                      
 8004820:	b5 e1 08 00 	add r1,r15,r1                                  
 8004824:	58 2b 00 00 	sw (r1+0),r11                                  
                                                                      
  /*                                                                  
   *  Are we operating in limited or unlimited (e.g. auto-extend) mode.
   */                                                                 
  information->auto_extend =                                          
        (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;         
 8004828:	34 02 00 1f 	mvi r2,31                                      
 800482c:	b9 80 08 00 	mv r1,r12                                      
 8004830:	f8 00 30 59 	calli 8010994 <__lshrsi3>                      
  maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS;      
 8004834:	78 03 08 01 	mvhi r3,0x801                                  
 8004838:	38 63 1d cc 	ori r3,r3,0x1dcc                               
                                                                      
  /*                                                                  
   *  Are we operating in limited or unlimited (e.g. auto-extend) mode.
   */                                                                 
  information->auto_extend =                                          
        (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;         
 800483c:	20 22 00 ff 	andi r2,r1,0xff                                
  maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS;      
 8004840:	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 =                                          
 8004844:	31 62 00 12 	sb (r11+18),r2                                 
        (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;         
  maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS;      
 8004848:	a1 81 60 00 	and r12,r12,r1                                 
                                                                      
  /*                                                                  
   *  Unlimited and maximum of zero is illogical.                     
   */                                                                 
  if ( information->auto_extend && maximum_per_allocation == 0) {     
 800484c:	44 40 00 06 	be r2,r0,8004864 <_Objects_Initialize_information+0xc4>
 8004850:	5d 80 00 05 	bne r12,r0,8004864 <_Objects_Initialize_information+0xc4><== ALWAYS TAKEN
    _Internal_error_Occurred(                                         
 8004854:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 8004858:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 800485c:	34 03 00 13 	mvi r3,19                                      <== NOT EXECUTED
 8004860:	fb ff fd f2 	calli 8004028 <_Internal_error_Occurred>       <== NOT EXECUTED
  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;                       
 8004864:	78 01 08 01 	mvhi r1,0x801                                  
 8004868:	38 21 36 28 	ori r1,r1,0x3628                               
 800486c:	59 61 00 1c 	sw (r11+28),r1                                 
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
 8004870:	34 02 00 18 	mvi r2,24                                      
 8004874:	b9 c0 08 00 	mv r1,r14                                      
  }                                                                   
                                                                      
  /*                                                                  
   *  The allocation unit is the maximum value                        
   */                                                                 
  information->allocation_size = maximum_per_allocation;              
 8004878:	0d 6c 00 14 	sh (r11+20),r12                                
 800487c:	f8 00 2f f8 	calli 801085c <__ashlsi3>                      
 8004880:	78 0e 00 01 	mvhi r14,0x1                                   
 8004884:	b8 2e 70 00 	or r14,r1,r14                                  
         (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |    
 8004888:	34 02 00 1b 	mvi r2,27                                      
 800488c:	b9 a0 08 00 	mv r1,r13                                      
 8004890:	f8 00 2f f3 	calli 801085c <__ashlsi3>                      
  information->local_table = &null_local_table;                       
                                                                      
  /*                                                                  
   *  Calculate minimum and maximum Id's                              
   */                                                                 
  minimum_index = (maximum_per_allocation == 0) ? 0 : 1;              
 8004894:	7d 82 00 00 	cmpnei r2,r12,0                                
 8004898:	b9 c1 08 00 	or r1,r14,r1                                   
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
 800489c:	b8 22 08 00 	or r1,r1,r2                                    
  information->minimum_id =                                           
 80048a0:	59 61 00 08 	sw (r11+8),r1                                  
  /*                                                                  
   *  Calculate the maximum name length                               
   */                                                                 
  name_length = maximum_name_length;                                  
                                                                      
  if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )                     
 80048a4:	22 01 00 03 	andi r1,r16,0x3                                
 80048a8:	ba 00 38 00 	mv r7,r16                                      
 80048ac:	44 20 00 04 	be r1,r0,80048bc <_Objects_Initialize_information+0x11c><== ALWAYS TAKEN
    name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &            
 80048b0:	36 07 00 04 	addi r7,r16,4                                  <== NOT EXECUTED
 80048b4:	34 01 ff fc 	mvi r1,-4                                      <== NOT EXECUTED
 80048b8:	a0 e1 38 00 	and r7,r7,r1                                   <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 80048bc:	35 61 00 24 	addi r1,r11,36                                 
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
 80048c0:	59 61 00 20 	sw (r11+32),r1                                 
                  ~(OBJECTS_NAME_ALIGNMENT-1);                        
                                                                      
  information->name_length = name_length;                             
                                                                      
  _Chain_Initialize_empty( &information->Inactive );                  
 80048c4:	35 61 00 20 	addi r1,r11,32                                 
                                                                      
  if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )                     
    name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &            
                  ~(OBJECTS_NAME_ALIGNMENT-1);                        
                                                                      
  information->name_length = name_length;                             
 80048c8:	0d 67 00 38 	sh (r11+56),r7                                 
  the_chain->permanent_null = NULL;                                   
 80048cc:	59 60 00 24 	sw (r11+36),r0                                 
  the_chain->last           = _Chain_Head(the_chain);                 
 80048d0:	59 61 00 28 	sw (r11+40),r1                                 
  _Chain_Initialize_empty( &information->Inactive );                  
                                                                      
  /*                                                                  
   *  Initialize objects .. if there are any                          
   */                                                                 
  if ( maximum_per_allocation ) {                                     
 80048d4:	45 80 00 03 	be r12,r0,80048e0 <_Objects_Initialize_information+0x140>
    /*                                                                
     *  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 );                       
 80048d8:	b9 60 08 00 	mv r1,r11                                      
 80048dc:	fb ff fe 31 	calli 80041a0 <_Objects_Extend_information>    
	_Chain_Initialize_empty( &information->global_table[ index ] );      
     }                                                                
     else                                                             
       information->global_table = NULL;                              
  #endif                                                              
}                                                                     
 80048e0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80048e4:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 80048e8:	2b 8c 00 18 	lw r12,(sp+24)                                 
 80048ec:	2b 8d 00 14 	lw r13,(sp+20)                                 
 80048f0:	2b 8e 00 10 	lw r14,(sp+16)                                 
 80048f4:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 80048f8:	2b 90 00 08 	lw r16,(sp+8)                                  
 80048fc:	37 9c 00 1c 	addi sp,sp,28                                  
 8004900:	c3 a0 00 00 	ret                                            
                                                                      

08002eb0 <_RTEMS_tasks_Initialize_user_tasks_body>: * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) {
 8002eb0:	37 9c ff e8 	addi sp,sp,-24                                 
 8002eb4:	5b 8b 00 14 	sw (sp+20),r11                                 
 8002eb8:	5b 8c 00 10 	sw (sp+16),r12                                 
 8002ebc:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8002ec0:	5b 8e 00 08 	sw (sp+8),r14                                  
 8002ec4:	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;
 8002ec8:	78 01 08 01 	mvhi r1,0x801                                  
 8002ecc:	38 21 30 8c 	ori r1,r1,0x308c                               
 8002ed0:	28 2b 00 2c 	lw r11,(r1+44)                                 
  maximum    = Configuration_RTEMS_API.number_of_initialization_tasks;
 8002ed4:	28 2e 00 28 	lw r14,(r1+40)                                 
                                                                      
  /*                                                                  
   *  Verify that we have a set of user tasks to iterate              
   */                                                                 
  if ( !user_tasks )                                                  
 8002ed8:	34 0d 00 00 	mvi r13,0                                      
 8002edc:	5d 60 00 1a 	bne r11,r0,8002f44 <_RTEMS_tasks_Initialize_user_tasks_body+0x94>
 8002ee0:	e0 00 00 1a 	bi 8002f48 <_RTEMS_tasks_Initialize_user_tasks_body+0x98>
                                                                      
  /*                                                                  
   *  Now iterate over the initialization tasks and create/start them.
   */                                                                 
  for ( index=0 ; index < maximum ; index++ ) {                       
    return_value = rtems_task_create(                                 
 8002ee4:	29 61 00 00 	lw r1,(r11+0)                                  
 8002ee8:	29 62 00 08 	lw r2,(r11+8)                                  
 8002eec:	29 63 00 04 	lw r3,(r11+4)                                  
 8002ef0:	29 64 00 14 	lw r4,(r11+20)                                 
 8002ef4:	29 65 00 0c 	lw r5,(r11+12)                                 
 8002ef8:	37 86 00 18 	addi r6,sp,24                                  
 8002efc:	fb ff ff 53 	calli 8002c48 <rtems_task_create>              
 8002f00:	b8 20 60 00 	mv r12,r1                                      
      user_tasks[ index ].stack_size,                                 
      user_tasks[ index ].mode_set,                                   
      user_tasks[ index ].attribute_set,                              
      &id                                                             
    );                                                                
    if ( !rtems_is_status_successful( return_value ) )                
 8002f04:	44 20 00 05 	be r1,r0,8002f18 <_RTEMS_tasks_Initialize_user_tasks_body+0x68><== ALWAYS TAKEN
      _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
 8002f08:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
 8002f0c:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 8002f10:	b9 80 18 00 	mv r3,r12                                      <== NOT EXECUTED
 8002f14:	e0 00 00 0a 	bi 8002f3c <_RTEMS_tasks_Initialize_user_tasks_body+0x8c><== NOT EXECUTED
                                                                      
    return_value = rtems_task_start(                                  
 8002f18:	29 63 00 18 	lw r3,(r11+24)                                 
 8002f1c:	29 62 00 10 	lw r2,(r11+16)                                 
 8002f20:	2b 81 00 18 	lw r1,(sp+24)                                  
 8002f24:	35 6b 00 1c 	addi r11,r11,28                                
 8002f28:	f8 00 00 0f 	calli 8002f64 <rtems_task_start>               
 8002f2c:	b8 20 18 00 	mv r3,r1                                       
      id,                                                             
      user_tasks[ index ].entry_point,                                
      user_tasks[ index ].argument                                    
    );                                                                
    if ( !rtems_is_status_successful( return_value ) )                
 8002f30:	44 2c 00 04 	be r1,r12,8002f40 <_RTEMS_tasks_Initialize_user_tasks_body+0x90><== ALWAYS TAKEN
      _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
 8002f34:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
 8002f38:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 8002f3c:	f8 00 04 3b 	calli 8004028 <_Internal_error_Occurred>       <== NOT EXECUTED
    return;                                                           
                                                                      
  /*                                                                  
   *  Now iterate over the initialization tasks and create/start them.
   */                                                                 
  for ( index=0 ; index < maximum ; index++ ) {                       
 8002f40:	35 ad 00 01 	addi r13,r13,1                                 
 8002f44:	55 cd ff e8 	bgu r14,r13,8002ee4 <_RTEMS_tasks_Initialize_user_tasks_body+0x34>
      user_tasks[ index ].argument                                    
    );                                                                
    if ( !rtems_is_status_successful( return_value ) )                
      _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
  }                                                                   
}                                                                     
 8002f48:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002f4c:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8002f50:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8002f54:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8002f58:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8002f5c:	37 9c 00 18 	addi sp,sp,24                                  
 8002f60:	c3 a0 00 00 	ret                                            
                                                                      

08008950 <_RTEMS_tasks_Post_switch_extension>: */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) {
 8008950:	37 9c ff f0 	addi sp,sp,-16                                 
 8008954:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8008958:	5b 8c 00 08 	sw (sp+8),r12                                  
 800895c:	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 ];                
 8008960:	28 2b 01 24 	lw r11,(r1+292)                                
  if ( !api )                                                         
 8008964:	45 60 00 1a 	be r11,r0,80089cc <_RTEMS_tasks_Post_switch_extension+0x7c><== NEVER TAKEN
   *  Signal Processing                                               
   */                                                                 
                                                                      
  asr = &api->Signal;                                                 
                                                                      
  _ISR_Disable( level );                                              
 8008968:	90 00 08 00 	rcsr r1,IE                                     
 800896c:	34 02 ff fe 	mvi r2,-2                                      
 8008970:	a0 22 10 00 	and r2,r1,r2                                   
 8008974:	d0 02 00 00 	wcsr IE,r2                                     
    signal_set = asr->signals_posted;                                 
 8008978:	29 6c 00 14 	lw r12,(r11+20)                                
    asr->signals_posted = 0;                                          
 800897c:	59 60 00 14 	sw (r11+20),r0                                 
  _ISR_Enable( level );                                               
 8008980:	d0 01 00 00 	wcsr IE,r1                                     
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
 8008984:	45 80 00 12 	be r12,r0,80089cc <_RTEMS_tasks_Post_switch_extension+0x7c>
    return;                                                           
                                                                      
  asr->nest_level += 1;                                               
 8008988:	29 61 00 1c 	lw r1,(r11+28)                                 
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
 800898c:	37 83 00 10 	addi r3,sp,16                                  
 8008990:	38 02 ff ff 	mvu r2,0xffff                                  
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
    return;                                                           
                                                                      
  asr->nest_level += 1;                                               
 8008994:	34 21 00 01 	addi r1,r1,1                                   
 8008998:	59 61 00 1c 	sw (r11+28),r1                                 
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
 800899c:	29 61 00 10 	lw r1,(r11+16)                                 
 80089a0:	f8 00 09 09 	calli 800adc4 <rtems_task_mode>                
                                                                      
  (*asr->handler)( signal_set );                                      
 80089a4:	29 62 00 0c 	lw r2,(r11+12)                                 
 80089a8:	b9 80 08 00 	mv r1,r12                                      
 80089ac:	d8 40 00 00 	call r2                                        
                                                                      
  asr->nest_level -= 1;                                               
 80089b0:	29 61 00 1c 	lw r1,(r11+28)                                 
  rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );     
 80089b4:	38 02 ff ff 	mvu r2,0xffff                                  
 80089b8:	37 83 00 10 	addi r3,sp,16                                  
  asr->nest_level += 1;                                               
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
                                                                      
  (*asr->handler)( signal_set );                                      
                                                                      
  asr->nest_level -= 1;                                               
 80089bc:	34 21 ff ff 	addi r1,r1,-1                                  
 80089c0:	59 61 00 1c 	sw (r11+28),r1                                 
  rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );     
 80089c4:	2b 81 00 10 	lw r1,(sp+16)                                  
 80089c8:	f8 00 08 ff 	calli 800adc4 <rtems_task_mode>                
                                                                      
}                                                                     
 80089cc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80089d0:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 80089d4:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80089d8:	37 9c 00 10 	addi sp,sp,16                                  
 80089dc:	c3 a0 00 00 	ret                                            
                                                                      

08004698 <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) {
 8004698:	37 9c ff f4 	addi sp,sp,-12                                 
 800469c:	5b 8b 00 08 	sw (sp+8),r11                                  
 80046a0:	5b 9d 00 04 	sw (sp+4),ra                                   
 80046a4:	b8 20 10 00 	mv r2,r1                                       
 80046a8:	78 01 08 01 	mvhi r1,0x801                                  
 80046ac:	38 21 f8 18 	ori r1,r1,0xf818                               
 80046b0:	37 83 00 0c 	addi r3,sp,12                                  
 80046b4:	f8 00 08 c6 	calli 80069cc <_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 ) {                                               
 80046b8:	2b 82 00 0c 	lw r2,(sp+12)                                  
 80046bc:	b8 20 58 00 	mv r11,r1                                      
 80046c0:	5c 40 00 22 	bne r2,r0,8004748 <_Rate_monotonic_Timeout+0xb0><== NEVER TAKEN
                                                                      
    case OBJECTS_LOCAL:                                               
      the_thread = the_period->owner;                                 
 80046c4:	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);                   
 80046c8:	28 23 00 10 	lw r3,(r1+16)                                  
 80046cc:	20 63 40 00 	andi r3,r3,0x4000                              
      if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
 80046d0:	44 62 00 09 	be r3,r2,80046f4 <_Rate_monotonic_Timeout+0x5c>
 80046d4:	28 23 00 20 	lw r3,(r1+32)                                  
 80046d8:	29 62 00 08 	lw r2,(r11+8)                                  
 80046dc:	5c 62 00 06 	bne r3,r2,80046f4 <_Rate_monotonic_Timeout+0x5c>
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
 80046e0:	78 03 08 01 	mvhi r3,0x801                                  
 80046e4:	38 63 ce 34 	ori r3,r3,0xce34                               
 80046e8:	28 62 00 00 	lw r2,(r3+0)                                   
 80046ec:	f8 00 0a 4c 	calli 800701c <_Thread_Clear_state>            
 80046f0:	e0 00 00 06 	bi 8004708 <_Rate_monotonic_Timeout+0x70>      
        _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 ) {
 80046f4:	29 62 00 38 	lw r2,(r11+56)                                 
 80046f8:	34 01 00 01 	mvi r1,1                                       
 80046fc:	5c 41 00 0c 	bne r2,r1,800472c <_Rate_monotonic_Timeout+0x94>
        the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING;    
 8004700:	34 01 00 03 	mvi r1,3                                       
 8004704:	59 61 00 38 	sw (r11+56),r1                                 
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
 8004708:	b9 60 08 00 	mv r1,r11                                      
 800470c:	fb ff fe 2e 	calli 8003fc4 <_Rate_monotonic_Initiate_statistics>
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 8004710:	29 61 00 3c 	lw r1,(r11+60)                                 
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 8004714:	35 62 00 10 	addi r2,r11,16                                 
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 8004718:	59 61 00 1c 	sw (r11+28),r1                                 
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 800471c:	78 01 08 01 	mvhi r1,0x801                                  
 8004720:	38 21 fa 08 	ori r1,r1,0xfa08                               
 8004724:	f8 00 10 f9 	calli 8008b08 <_Watchdog_Insert>               
 8004728:	e0 00 00 03 	bi 8004734 <_Rate_monotonic_Timeout+0x9c>      
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
      } else                                                          
        the_period->state = RATE_MONOTONIC_EXPIRED;                   
 800472c:	34 01 00 04 	mvi r1,4                                       
 8004730:	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;                                
 8004734:	78 01 08 01 	mvhi r1,0x801                                  
 8004738:	38 21 f9 44 	ori r1,r1,0xf944                               
 800473c:	28 22 00 00 	lw r2,(r1+0)                                   
 8004740:	34 42 ff ff 	addi r2,r2,-1                                  
 8004744:	58 22 00 00 	sw (r1+0),r2                                   
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
}                                                                     
 8004748:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800474c:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8004750:	37 9c 00 0c 	addi sp,sp,12                                  
 8004754:	c3 a0 00 00 	ret                                            
                                                                      

08004058 <_Rate_monotonic_Update_statistics>: void _Rate_monotonic_Update_statistics( Rate_monotonic_Control *the_period ) {
 8004058:	37 9c ff e4 	addi sp,sp,-28                                 
 800405c:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8004060:	5b 8c 00 08 	sw (sp+8),r12                                  
 8004064:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004068:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  /*                                                                  
   *  Update the counts.                                              
   */                                                                 
  stats = &the_period->Statistics;                                    
  stats->count++;                                                     
 800406c:	28 21 00 54 	lw r1,(r1+84)                                  
                                                                      
  if ( the_period->state == RATE_MONOTONIC_EXPIRED )                  
 8004070:	29 62 00 38 	lw r2,(r11+56)                                 
                                                                      
  /*                                                                  
   *  Update the counts.                                              
   */                                                                 
  stats = &the_period->Statistics;                                    
  stats->count++;                                                     
 8004074:	34 21 00 01 	addi r1,r1,1                                   
 8004078:	59 61 00 54 	sw (r11+84),r1                                 
                                                                      
  if ( the_period->state == RATE_MONOTONIC_EXPIRED )                  
 800407c:	34 01 00 04 	mvi r1,4                                       
 8004080:	5c 41 00 04 	bne r2,r1,8004090 <_Rate_monotonic_Update_statistics+0x38>
    stats->missed_count++;                                            
 8004084:	29 61 00 58 	lw r1,(r11+88)                                 
 8004088:	34 21 00 01 	addi r1,r1,1                                   
 800408c:	59 61 00 58 	sw (r11+88),r1                                 
                                                                      
  /*                                                                  
   *  Grab status for time statistics.                                
   */                                                                 
  valid_status =                                                      
    _Rate_monotonic_Get_status( the_period, &since_last_period, &executed );
 8004090:	37 8c 00 18 	addi r12,sp,24                                 
    stats->missed_count++;                                            
                                                                      
  /*                                                                  
   *  Grab status for time statistics.                                
   */                                                                 
  valid_status =                                                      
 8004094:	b9 60 08 00 	mv r1,r11                                      
 8004098:	37 82 00 10 	addi r2,sp,16                                  
 800409c:	b9 80 18 00 	mv r3,r12                                      
 80040a0:	fb ff ff 90 	calli 8003ee0 <_Rate_monotonic_Get_status>     
    _Rate_monotonic_Get_status( the_period, &since_last_period, &executed );
  if (!valid_status)                                                  
 80040a4:	44 20 00 28 	be r1,r0,8004144 <_Rate_monotonic_Update_statistics+0xec><== NEVER TAKEN
                                                                      
  /*                                                                  
   *  Update CPU time                                                 
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Add_to( &stats->total_cpu_time, &executed );           
 80040a8:	b9 80 10 00 	mv r2,r12                                      
 80040ac:	35 61 00 6c 	addi r1,r11,108                                
 80040b0:	f8 00 11 33 	calli 800857c <_Timespec_Add_to>               
                                                                      
    if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) )    
 80040b4:	b9 80 08 00 	mv r1,r12                                      
 80040b8:	35 62 00 5c 	addi r2,r11,92                                 
 80040bc:	f8 00 11 8e 	calli 80086f4 <_Timespec_Less_than>            
 80040c0:	44 20 00 05 	be r1,r0,80040d4 <_Rate_monotonic_Update_statistics+0x7c>
      stats->min_cpu_time = executed;                                 
 80040c4:	2b 81 00 18 	lw r1,(sp+24)                                  
 80040c8:	59 61 00 5c 	sw (r11+92),r1                                 
 80040cc:	2b 81 00 1c 	lw r1,(sp+28)                                  
 80040d0:	59 61 00 60 	sw (r11+96),r1                                 
                                                                      
    if ( _Timestamp_Greater_than( &executed, &stats->max_cpu_time ) ) 
 80040d4:	37 81 00 18 	addi r1,sp,24                                  
 80040d8:	35 62 00 64 	addi r2,r11,100                                
 80040dc:	f8 00 11 7b 	calli 80086c8 <_Timespec_Greater_than>         
 80040e0:	44 20 00 05 	be r1,r0,80040f4 <_Rate_monotonic_Update_statistics+0x9c>
      stats->max_cpu_time = executed;                                 
 80040e4:	2b 81 00 18 	lw r1,(sp+24)                                  
 80040e8:	59 61 00 64 	sw (r11+100),r1                                
 80040ec:	2b 81 00 1c 	lw r1,(sp+28)                                  
 80040f0:	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 ); 
 80040f4:	37 8c 00 10 	addi r12,sp,16                                 
 80040f8:	b9 80 10 00 	mv r2,r12                                      
 80040fc:	35 61 00 84 	addi r1,r11,132                                
 8004100:	f8 00 11 1f 	calli 800857c <_Timespec_Add_to>               
                                                                      
    if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) )
 8004104:	b9 80 08 00 	mv r1,r12                                      
 8004108:	35 62 00 74 	addi r2,r11,116                                
 800410c:	f8 00 11 7a 	calli 80086f4 <_Timespec_Less_than>            
 8004110:	44 20 00 05 	be r1,r0,8004124 <_Rate_monotonic_Update_statistics+0xcc>
      stats->min_wall_time = since_last_period;                       
 8004114:	2b 81 00 10 	lw r1,(sp+16)                                  
 8004118:	59 61 00 74 	sw (r11+116),r1                                
 800411c:	2b 81 00 14 	lw r1,(sp+20)                                  
 8004120:	59 61 00 78 	sw (r11+120),r1                                
                                                                      
    if ( _Timestamp_Greater_than( &since_last_period, &stats->max_wall_time ) )
 8004124:	37 81 00 10 	addi r1,sp,16                                  
 8004128:	35 62 00 7c 	addi r2,r11,124                                
 800412c:	f8 00 11 67 	calli 80086c8 <_Timespec_Greater_than>         
 8004130:	44 20 00 05 	be r1,r0,8004144 <_Rate_monotonic_Update_statistics+0xec>
      stats->max_wall_time = since_last_period;                       
 8004134:	2b 81 00 10 	lw r1,(sp+16)                                  
 8004138:	59 61 00 7c 	sw (r11+124),r1                                
 800413c:	2b 81 00 14 	lw r1,(sp+20)                                  
 8004140:	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                                                              
}                                                                     
 8004144:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004148:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 800414c:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8004150:	37 9c 00 1c 	addi sp,sp,28                                  
 8004154:	c3 a0 00 00 	ret                                            
                                                                      

080039c0 <_TOD_Get>: */ void _TOD_Get( struct timespec *time ) {
 80039c0:	37 9c ff e4 	addi sp,sp,-28                                 
 80039c4:	5b 8b 00 0c 	sw (sp+12),r11                                 
 80039c8:	5b 8c 00 08 	sw (sp+8),r12                                  
 80039cc:	5b 9d 00 04 	sw (sp+4),ra                                   
 80039d0:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  /* assume time checked for NULL by caller */                        
                                                                      
  /* _TOD_Now is the native current time */                           
  nanoseconds = 0;                                                    
  _ISR_Disable( level );                                              
 80039d4:	90 00 60 00 	rcsr r12,IE                                    
 80039d8:	34 01 ff fe 	mvi r1,-2                                      
 80039dc:	a1 81 08 00 	and r1,r12,r1                                  
 80039e0:	d0 01 00 00 	wcsr IE,r1                                     
    now = _TOD_Now;                                                   
 80039e4:	78 02 08 01 	mvhi r2,0x801                                  
 80039e8:	38 42 38 a4 	ori r2,r2,0x38a4                               
 80039ec:	28 41 00 00 	lw r1,(r2+0)                                   
 80039f0:	5b 81 00 10 	sw (sp+16),r1                                  
 80039f4:	28 41 00 04 	lw r1,(r2+4)                                   
    if ( _Watchdog_Nanoseconds_since_tick_handler )                   
 80039f8:	78 02 08 01 	mvhi r2,0x801                                  
 80039fc:	38 42 39 a0 	ori r2,r2,0x39a0                               
 8003a00:	28 43 00 00 	lw r3,(r2+0)                                   
  /* assume time checked for NULL by caller */                        
                                                                      
  /* _TOD_Now is the native current time */                           
  nanoseconds = 0;                                                    
  _ISR_Disable( level );                                              
    now = _TOD_Now;                                                   
 8003a04:	5b 81 00 14 	sw (sp+20),r1                                  
  long              nanoseconds;                                      
                                                                      
  /* assume time checked for NULL by caller */                        
                                                                      
  /* _TOD_Now is the native current time */                           
  nanoseconds = 0;                                                    
 8003a08:	34 02 00 00 	mvi r2,0                                       
  _ISR_Disable( level );                                              
    now = _TOD_Now;                                                   
    if ( _Watchdog_Nanoseconds_since_tick_handler )                   
 8003a0c:	44 60 00 03 	be r3,r0,8003a18 <_TOD_Get+0x58>               <== ALWAYS TAKEN
      nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)();    
 8003a10:	d8 60 00 00 	call r3                                        <== NOT EXECUTED
 8003a14:	b8 20 10 00 	mv r2,r1                                       <== NOT EXECUTED
  _ISR_Enable( level );                                               
 8003a18:	d0 0c 00 00 	wcsr IE,r12                                    
                                                                      
  _Timestamp_Set( &offset, 0, nanoseconds );                          
 8003a1c:	5b 82 00 1c 	sw (sp+28),r2                                  
  _Timestamp_Add_to( &now, &offset );                                 
 8003a20:	37 81 00 10 	addi r1,sp,16                                  
 8003a24:	37 82 00 18 	addi r2,sp,24                                  
    now = _TOD_Now;                                                   
    if ( _Watchdog_Nanoseconds_since_tick_handler )                   
      nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)();    
  _ISR_Enable( level );                                               
                                                                      
  _Timestamp_Set( &offset, 0, nanoseconds );                          
 8003a28:	5b 80 00 18 	sw (sp+24),r0                                  
  _Timestamp_Add_to( &now, &offset );                                 
 8003a2c:	f8 00 09 a8 	calli 80060cc <_Timespec_Add_to>               
  _Timestamp_To_timespec( &now, time );                               
 8003a30:	2b 81 00 10 	lw r1,(sp+16)                                  
 8003a34:	59 61 00 00 	sw (r11+0),r1                                  
 8003a38:	2b 81 00 14 	lw r1,(sp+20)                                  
 8003a3c:	59 61 00 04 	sw (r11+4),r1                                  
}                                                                     
 8003a40:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003a44:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8003a48:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8003a4c:	37 9c 00 1c 	addi sp,sp,28                                  
 8003a50:	c3 a0 00 00 	ret                                            
                                                                      

08008e24 <_TOD_Get_uptime>: */ void _TOD_Get_uptime( Timestamp_Control *uptime ) {
 8008e24:	37 9c ff e4 	addi sp,sp,-28                                 
 8008e28:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8008e2c:	5b 8c 00 08 	sw (sp+8),r12                                  
 8008e30:	5b 9d 00 04 	sw (sp+4),ra                                   
 8008e34:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  /* assume time checked for NULL by caller */                        
                                                                      
  /* _TOD_Uptime is in native timestamp format */                     
  nanoseconds = 0;                                                    
  _ISR_Disable( level );                                              
 8008e38:	90 00 60 00 	rcsr r12,IE                                    
 8008e3c:	34 01 ff fe 	mvi r1,-2                                      
 8008e40:	a1 81 08 00 	and r1,r12,r1                                  
 8008e44:	d0 01 00 00 	wcsr IE,r1                                     
    up = _TOD_Uptime;                                                 
 8008e48:	78 02 08 01 	mvhi r2,0x801                                  
 8008e4c:	38 42 38 98 	ori r2,r2,0x3898                               
 8008e50:	28 41 00 00 	lw r1,(r2+0)                                   
 8008e54:	5b 81 00 10 	sw (sp+16),r1                                  
 8008e58:	28 41 00 04 	lw r1,(r2+4)                                   
    if ( _Watchdog_Nanoseconds_since_tick_handler )                   
 8008e5c:	78 02 08 01 	mvhi r2,0x801                                  
 8008e60:	38 42 39 a0 	ori r2,r2,0x39a0                               
 8008e64:	28 43 00 00 	lw r3,(r2+0)                                   
  /* assume time checked for NULL by caller */                        
                                                                      
  /* _TOD_Uptime is in native timestamp format */                     
  nanoseconds = 0;                                                    
  _ISR_Disable( level );                                              
    up = _TOD_Uptime;                                                 
 8008e68:	5b 81 00 14 	sw (sp+20),r1                                  
  long              nanoseconds;                                      
                                                                      
  /* assume time checked for NULL by caller */                        
                                                                      
  /* _TOD_Uptime is in native timestamp format */                     
  nanoseconds = 0;                                                    
 8008e6c:	34 02 00 00 	mvi r2,0                                       
  _ISR_Disable( level );                                              
    up = _TOD_Uptime;                                                 
    if ( _Watchdog_Nanoseconds_since_tick_handler )                   
 8008e70:	44 60 00 03 	be r3,r0,8008e7c <_TOD_Get_uptime+0x58>        <== ALWAYS TAKEN
      nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)();    
 8008e74:	d8 60 00 00 	call r3                                        <== NOT EXECUTED
 8008e78:	b8 20 10 00 	mv r2,r1                                       <== NOT EXECUTED
  _ISR_Enable( level );                                               
 8008e7c:	d0 0c 00 00 	wcsr IE,r12                                    
                                                                      
  _Timestamp_Set( &offset, 0, nanoseconds );                          
 8008e80:	5b 82 00 1c 	sw (sp+28),r2                                  
  _Timestamp_Add_to( &up, &offset );                                  
 8008e84:	37 81 00 10 	addi r1,sp,16                                  
 8008e88:	37 82 00 18 	addi r2,sp,24                                  
    up = _TOD_Uptime;                                                 
    if ( _Watchdog_Nanoseconds_since_tick_handler )                   
      nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)();    
  _ISR_Enable( level );                                               
                                                                      
  _Timestamp_Set( &offset, 0, nanoseconds );                          
 8008e8c:	5b 80 00 18 	sw (sp+24),r0                                  
  _Timestamp_Add_to( &up, &offset );                                  
 8008e90:	fb ff f4 8f 	calli 80060cc <_Timespec_Add_to>               
  *uptime = up;                                                       
 8008e94:	2b 81 00 10 	lw r1,(sp+16)                                  
 8008e98:	59 61 00 00 	sw (r11+0),r1                                  
 8008e9c:	2b 81 00 14 	lw r1,(sp+20)                                  
 8008ea0:	59 61 00 04 	sw (r11+4),r1                                  
}                                                                     
 8008ea4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8008ea8:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8008eac:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8008eb0:	37 9c 00 1c 	addi sp,sp,28                                  
 8008eb4:	c3 a0 00 00 	ret                                            
                                                                      

080042c8 <_TOD_Validate>: */ bool _TOD_Validate( const rtems_time_of_day *the_tod ) {
 80042c8:	37 9c ff f0 	addi sp,sp,-16                                 
 80042cc:	5b 8b 00 10 	sw (sp+16),r11                                 
 80042d0:	5b 8c 00 0c 	sw (sp+12),r12                                 
 80042d4:	5b 8d 00 08 	sw (sp+8),r13                                  
 80042d8:	5b 9d 00 04 	sw (sp+4),ra                                   
 80042dc:	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();                 
 80042e0:	78 01 08 01 	mvhi r1,0x801                                  
 80042e4:	38 21 f0 c4 	ori r1,r1,0xf0c4                               
 80042e8:	28 22 00 0c 	lw r2,(r1+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;                                                    
 80042ec:	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)                                  ||                  
 80042f0:	45 60 00 22 	be r11,r0,8004378 <_TOD_Validate+0xb0>         <== NEVER TAKEN
)                                                                     
{                                                                     
  uint32_t   days_in_month;                                           
  uint32_t   ticks_per_second;                                        
                                                                      
  ticks_per_second = TOD_MICROSECONDS_PER_SECOND /                    
 80042f4:	78 03 08 01 	mvhi r3,0x801                                  
 80042f8:	38 63 cc 94 	ori r3,r3,0xcc94                               
 80042fc:	28 61 00 00 	lw r1,(r3+0)                                   
 8004300:	f8 00 5e 2e 	calli 801bbb8 <__udivsi3>                      
	    rtems_configuration_get_microseconds_per_tick();                 
  if ((!the_tod)                                  ||                  
 8004304:	29 62 00 18 	lw r2,(r11+24)                                 
 8004308:	50 41 00 1c 	bgeu r2,r1,8004378 <_TOD_Validate+0xb0>        
      (the_tod->ticks  >= ticks_per_second)       ||                  
 800430c:	29 62 00 14 	lw r2,(r11+20)                                 
 8004310:	34 01 00 3b 	mvi r1,59                                      
 8004314:	54 41 00 19 	bgu r2,r1,8004378 <_TOD_Validate+0xb0>         
      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||                  
 8004318:	29 62 00 10 	lw r2,(r11+16)                                 
 800431c:	54 41 00 17 	bgu r2,r1,8004378 <_TOD_Validate+0xb0>         
      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||                  
 8004320:	29 62 00 0c 	lw r2,(r11+12)                                 
 8004324:	34 01 00 17 	mvi r1,23                                      
 8004328:	54 41 00 14 	bgu r2,r1,8004378 <_TOD_Validate+0xb0>         
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
      (the_tod->month  == 0)                      ||                  
 800432c:	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)      ||                  
 8004330:	44 20 00 12 	be r1,r0,8004378 <_TOD_Validate+0xb0>          <== NEVER TAKEN
      (the_tod->month  == 0)                      ||                  
 8004334:	34 02 00 0c 	mvi r2,12                                      
 8004338:	54 22 00 10 	bgu r1,r2,8004378 <_TOD_Validate+0xb0>         
      (the_tod->month  >  TOD_MONTHS_PER_YEAR)    ||                  
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
 800433c:	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)    ||                  
 8004340:	34 03 07 c3 	mvi r3,1987                                    
 8004344:	50 62 00 0d 	bgeu r3,r2,8004378 <_TOD_Validate+0xb0>        
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
      (the_tod->day    == 0) )                                        
 8004348:	29 6d 00 08 	lw r13,(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)          ||                  
 800434c:	45 a0 00 0b 	be r13,r0,8004378 <_TOD_Validate+0xb0>         <== NEVER TAKEN
 8004350:	78 0b 08 01 	mvhi r11,0x801                                 
      (the_tod->day    == 0) )                                        
     return false;                                                    
                                                                      
  if ( (the_tod->year % 4) == 0 )                                     
 8004354:	20 42 00 03 	andi r2,r2,0x3                                 
 8004358:	39 6b d5 4c 	ori r11,r11,0xd54c                             
 800435c:	5c 40 00 02 	bne r2,r0,8004364 <_TOD_Validate+0x9c>         
    days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];       
 8004360:	34 21 00 0d 	addi r1,r1,13                                  
  else                                                                
    days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];       
 8004364:	34 02 00 02 	mvi r2,2                                       
 8004368:	fb ff f3 d4 	calli 80012b8 <__ashlsi3>                      
 800436c:	b5 61 08 00 	add r1,r11,r1                                  
 8004370:	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(                                                   
 8004374:	f1 8d 60 00 	cmpgeu r12,r12,r13                             
                                                                      
  if ( the_tod->day > days_in_month )                                 
    return false;                                                     
                                                                      
  return true;                                                        
}                                                                     
 8004378:	b9 80 08 00 	mv r1,r12                                      
 800437c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004380:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8004384:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8004388:	2b 8d 00 08 	lw r13,(sp+8)                                  
 800438c:	37 9c 00 10 	addi sp,sp,16                                  
 8004390:	c3 a0 00 00 	ret                                            
                                                                      

08004b38 <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) {
 8004b38:	37 9c ff ec 	addi sp,sp,-20                                 
 8004b3c:	5b 8b 00 14 	sw (sp+20),r11                                 
 8004b40:	5b 8c 00 10 	sw (sp+16),r12                                 
 8004b44:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8004b48:	5b 8e 00 08 	sw (sp+8),r14                                  
 8004b4c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004b50:	b8 20 58 00 	mv r11,r1                                      
*/                                                                    
                                                                      
  /*                                                                  
   * Save original state                                              
   */                                                                 
  original_state = the_thread->current_state;                         
 8004b54:	28 2e 00 10 	lw r14,(r1+16)                                 
void _Thread_Change_priority(                                         
  Thread_Control   *the_thread,                                       
  Priority_Control  new_priority,                                     
  bool              prepend_it                                        
)                                                                     
{                                                                     
 8004b58:	b8 40 60 00 	mv r12,r2                                      
 8004b5c:	20 6d 00 ff 	andi r13,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 );                                
 8004b60:	f8 00 04 a4 	calli 8005df0 <_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 )                  
 8004b64:	29 61 00 14 	lw r1,(r11+20)                                 
 8004b68:	44 2c 00 04 	be r1,r12,8004b78 <_Thread_Change_priority+0x40>
    _Thread_Set_priority( the_thread, new_priority );                 
 8004b6c:	b9 60 08 00 	mv r1,r11                                      
 8004b70:	b9 80 10 00 	mv r2,r12                                      
 8004b74:	f8 00 03 f4 	calli 8005b44 <_Thread_Set_priority>           
                                                                      
  _ISR_Disable( level );                                              
 8004b78:	90 00 60 00 	rcsr r12,IE                                    
 8004b7c:	34 04 ff fe 	mvi r4,-2                                      
 8004b80:	a1 84 20 00 	and r4,r12,r4                                  
 8004b84:	d0 04 00 00 	wcsr IE,r4                                     
                                                                      
  /*                                                                  
   *  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;                                  
 8004b88:	29 61 00 10 	lw r1,(r11+16)                                 
  if ( state != STATES_TRANSIENT ) {                                  
 8004b8c:	34 03 00 04 	mvi r3,4                                       
 8004b90:	21 c2 00 04 	andi r2,r14,0x4                                
 8004b94:	44 23 00 0f 	be r1,r3,8004bd0 <_Thread_Change_priority+0x98>
    /* Only clear the transient state if it wasn't set already */     
    if ( ! _States_Is_transient( original_state ) )                   
 8004b98:	5c 40 00 04 	bne r2,r0,8004ba8 <_Thread_Change_priority+0x70><== NEVER TAKEN
RTEMS_INLINE_ROUTINE States_Control _States_Clear (                   
  States_Control states_to_clear,                                     
  States_Control current_state                                        
)                                                                     
{                                                                     
   return (current_state & ~states_to_clear);                         
 8004b9c:	34 02 ff fb 	mvi r2,-5                                      
 8004ba0:	a0 22 10 00 	and r2,r1,r2                                   
      the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
 8004ba4:	59 62 00 10 	sw (r11+16),r2                                 
    _ISR_Enable( level );                                             
 8004ba8:	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);              
 8004bac:	78 03 08 01 	mvhi r3,0x801                                  
 8004bb0:	38 63 1d d0 	ori r3,r3,0x1dd0                               
 8004bb4:	28 62 00 00 	lw r2,(r3+0)                                   
 8004bb8:	a0 22 08 00 	and r1,r1,r2                                   
    if ( _States_Is_waiting_on_thread_queue( state ) ) {              
 8004bbc:	44 20 00 60 	be r1,r0,8004d3c <_Thread_Change_priority+0x204>
      _Thread_queue_Requeue( the_thread->Wait.queue, the_thread );    
 8004bc0:	29 61 00 44 	lw r1,(r11+68)                                 
 8004bc4:	b9 60 10 00 	mv r2,r11                                      
 8004bc8:	f8 00 03 aa 	calli 8005a70 <_Thread_queue_Requeue>          
 8004bcc:	e0 00 00 5c 	bi 8004d3c <_Thread_Change_priority+0x204>     
    }                                                                 
    return;                                                           
  }                                                                   
                                                                      
  /* Only clear the transient state if it wasn't set already */       
  if ( ! _States_Is_transient( original_state ) ) {                   
 8004bd0:	5c 40 00 1c 	bne r2,r0,8004c40 <_Thread_Change_priority+0x108><== NEVER TAKEN
                                                                      
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (                  
  Priority_Information *the_priority_map                              
)                                                                     
{                                                                     
  *the_priority_map->minor |= the_priority_map->ready_minor;          
 8004bd4:	29 61 00 90 	lw r1,(r11+144)                                
 8004bd8:	2d 63 00 96 	lhu r3,(r11+150)                               
     *  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 );
 8004bdc:	59 60 00 10 	sw (r11+16),r0                                 
 8004be0:	2c 25 00 00 	lhu r5,(r1+0)                                  
 8004be4:	b8 a3 18 00 	or r3,r5,r3                                    
 8004be8:	0c 23 00 00 	sh (r1+0),r3                                   
  _Priority_Major_bit_map  |= the_priority_map->ready_major;          
 8004bec:	78 01 08 01 	mvhi r1,0x801                                  
 8004bf0:	38 21 38 bc 	ori r1,r1,0x38bc                               
 8004bf4:	2c 23 00 00 	lhu r3,(r1+0)                                  
 8004bf8:	2d 65 00 94 	lhu r5,(r11+148)                               
 8004bfc:	b8 a3 18 00 	or r3,r5,r3                                    
 8004c00:	20 63 ff ff 	andi r3,r3,0xffff                              
 8004c04:	0c 23 00 00 	sh (r1+0),r3                                   
 8004c08:	29 61 00 8c 	lw r1,(r11+140)                                
                                                                      
    _Priority_Add_to_bit_map( &the_thread->Priority_map );            
    if ( prepend_it )                                                 
 8004c0c:	45 a2 00 07 	be r13,r2,8004c28 <_Thread_Change_priority+0xf0>
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
 8004c10:	28 22 00 00 	lw r2,(r1+0)                                   
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
 8004c14:	59 61 00 04 	sw (r11+4),r1                                  
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
 8004c18:	58 2b 00 00 	sw (r1+0),r11                                  
  the_node->next        = before_node;                                
 8004c1c:	59 62 00 00 	sw (r11+0),r2                                  
  before_node->previous = the_node;                                   
 8004c20:	58 4b 00 04 	sw (r2+4),r11                                  
 8004c24:	e0 00 00 07 	bi 8004c40 <_Thread_Change_priority+0x108>     
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 8004c28:	34 22 00 04 	addi r2,r1,4                                   
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
 8004c2c:	59 62 00 00 	sw (r11+0),r2                                  
  old_last_node       = the_chain->last;                              
 8004c30:	28 22 00 08 	lw r2,(r1+8)                                   
  the_chain->last     = the_node;                                     
 8004c34:	58 2b 00 08 	sw (r1+8),r11                                  
  old_last_node->next = the_node;                                     
 8004c38:	58 4b 00 00 	sw (r2+0),r11                                  
  the_node->previous  = old_last_node;                                
 8004c3c:	59 62 00 04 	sw (r11+4),r2                                  
      _Chain_Prepend_unprotected( the_thread->ready, &the_thread->Object.Node );
    else                                                              
      _Chain_Append_unprotected( the_thread->ready, &the_thread->Object.Node );
  }                                                                   
                                                                      
  _ISR_Flash( level );                                                
 8004c40:	d0 0c 00 00 	wcsr IE,r12                                    
 8004c44:	d0 04 00 00 	wcsr IE,r4                                     
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )              
{                                                                     
  _Thread_Heir = (Thread_Control *)                                   
    _Thread_Ready_chain[ _Priority_Get_highest() ].first;             
 8004c48:	78 01 08 01 	mvhi r1,0x801                                  
RTEMS_INLINE_ROUTINE Priority_Control _Priority_Get_highest( void )   
{                                                                     
  Priority_Bit_map_control minor;                                     
  Priority_Bit_map_control major;                                     
                                                                      
  _Bitfield_Find_first_bit( _Priority_Major_bit_map, major );         
 8004c4c:	78 02 08 01 	mvhi r2,0x801                                  
 8004c50:	38 21 37 b0 	ori r1,r1,0x37b0                               
 8004c54:	38 42 38 bc 	ori r2,r2,0x38bc                               
 8004c58:	28 2e 00 00 	lw r14,(r1+0)                                  
 8004c5c:	2c 41 00 00 	lhu r1,(r2+0)                                  
 8004c60:	78 0b 08 01 	mvhi r11,0x801                                 
 8004c64:	34 02 00 ff 	mvi r2,255                                     
 8004c68:	20 21 ff ff 	andi r1,r1,0xffff                              
 8004c6c:	39 6b 1c 58 	ori r11,r11,0x1c58                             
 8004c70:	54 22 00 05 	bgu r1,r2,8004c84 <_Thread_Change_priority+0x14c>
 8004c74:	b5 61 58 00 	add r11,r11,r1                                 
 8004c78:	41 6d 00 00 	lbu r13,(r11+0)                                
 8004c7c:	35 ad 00 08 	addi r13,r13,8                                 
 8004c80:	e0 00 00 05 	bi 8004c94 <_Thread_Change_priority+0x15c>     
 8004c84:	34 02 00 08 	mvi r2,8                                       
 8004c88:	f8 00 2f 43 	calli 8010994 <__lshrsi3>                      
 8004c8c:	b5 61 58 00 	add r11,r11,r1                                 
 8004c90:	41 6d 00 00 	lbu r13,(r11+0)                                
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
 8004c94:	34 02 00 01 	mvi r2,1                                       
 8004c98:	78 0b 08 01 	mvhi r11,0x801                                 
 8004c9c:	b9 a0 08 00 	mv r1,r13                                      
 8004ca0:	f8 00 2e ef 	calli 801085c <__ashlsi3>                      
 8004ca4:	39 6b 39 30 	ori r11,r11,0x3930                             
 8004ca8:	b5 61 58 00 	add r11,r11,r1                                 
 8004cac:	2d 62 00 00 	lhu r2,(r11+0)                                 
 8004cb0:	34 01 00 ff 	mvi r1,255                                     
 8004cb4:	78 0b 08 01 	mvhi r11,0x801                                 
 8004cb8:	39 6b 1c 58 	ori r11,r11,0x1c58                             
 8004cbc:	54 41 00 05 	bgu r2,r1,8004cd0 <_Thread_Change_priority+0x198>
 8004cc0:	b5 62 58 00 	add r11,r11,r2                                 
 8004cc4:	41 6b 00 00 	lbu r11,(r11+0)                                
 8004cc8:	35 6b 00 08 	addi r11,r11,8                                 
 8004ccc:	e0 00 00 06 	bi 8004ce4 <_Thread_Change_priority+0x1ac>     
 8004cd0:	b8 40 08 00 	mv r1,r2                                       
 8004cd4:	34 02 00 08 	mvi r2,8                                       
 8004cd8:	f8 00 2f 2f 	calli 8010994 <__lshrsi3>                      
 8004cdc:	b5 61 58 00 	add r11,r11,r1                                 
 8004ce0:	41 6b 00 00 	lbu r11,(r11+0)                                
                                                                      
  return (_Priority_Bits_index( major ) << 4) +                       
 8004ce4:	34 02 00 04 	mvi r2,4                                       
 8004ce8:	b9 a0 08 00 	mv r1,r13                                      
 8004cec:	f8 00 2e dc 	calli 801085c <__ashlsi3>                      
 8004cf0:	b5 61 58 00 	add r11,r11,r1                                 
 8004cf4:	34 02 00 01 	mvi r2,1                                       
 8004cf8:	b9 60 08 00 	mv r1,r11                                      
 8004cfc:	f8 00 2e d8 	calli 801085c <__ashlsi3>                      
 8004d00:	34 02 00 02 	mvi r2,2                                       
 8004d04:	b4 2b 08 00 	add r1,r1,r11                                  
 8004d08:	f8 00 2e d5 	calli 801085c <__ashlsi3>                      
 8004d0c:	b5 c1 08 00 	add r1,r14,r1                                  
 *  ready thread.                                                     
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )              
{                                                                     
  _Thread_Heir = (Thread_Control *)                                   
 8004d10:	28 23 00 00 	lw r3,(r1+0)                                   
 8004d14:	78 01 08 01 	mvhi r1,0x801                                  
 8004d18:	38 21 39 e8 	ori r1,r1,0x39e8                               
 *  is also the heir thread, and false otherwise.                     
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void )  
{                                                                     
  return ( _Thread_Executing == _Thread_Heir );                       
 8004d1c:	28 22 00 0c 	lw r2,(r1+12)                                  
 *  ready thread.                                                     
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )              
{                                                                     
  _Thread_Heir = (Thread_Control *)                                   
 8004d20:	58 23 00 10 	sw (r1+16),r3                                  
   *  We altered the set of thread priorities.  So let's figure out   
   *  who is the heir and if we need to switch to them.               
   */                                                                 
  _Thread_Calculate_heir();                                           
                                                                      
  if ( !_Thread_Is_executing_also_the_heir() &&                       
 8004d24:	44 43 00 05 	be r2,r3,8004d38 <_Thread_Change_priority+0x200>
 8004d28:	40 42 00 74 	lbu r2,(r2+116)                                
 8004d2c:	44 40 00 03 	be r2,r0,8004d38 <_Thread_Change_priority+0x200>
       _Thread_Executing->is_preemptible )                            
    _Context_Switch_necessary = true;                                 
 8004d30:	34 02 00 01 	mvi r2,1                                       
 8004d34:	30 22 00 18 	sb (r1+24),r2                                  
  _ISR_Enable( level );                                               
 8004d38:	d0 0c 00 00 	wcsr IE,r12                                    
}                                                                     
 8004d3c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004d40:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8004d44:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8004d48:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8004d4c:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8004d50:	37 9c 00 14 	addi sp,sp,20                                  
 8004d54:	c3 a0 00 00 	ret                                            
                                                                      

080093b0 <_Thread_Clear_state>: ) { ISR_Level level; States_Control current_state; _ISR_Disable( level );
 80093b0:	90 00 18 00 	rcsr r3,IE                                     
 80093b4:	34 04 ff fe 	mvi r4,-2                                      
 80093b8:	a0 64 20 00 	and r4,r3,r4                                   
 80093bc:	d0 04 00 00 	wcsr IE,r4                                     
    current_state = the_thread->current_state;                        
 80093c0:	28 25 00 10 	lw r5,(r1+16)                                  
                                                                      
    if ( current_state & state ) {                                    
 80093c4:	a0 45 30 00 	and r6,r2,r5                                   
 80093c8:	44 c0 00 29 	be r6,r0,800946c <_Thread_Clear_state+0xbc>    
RTEMS_INLINE_ROUTINE States_Control _States_Clear (                   
  States_Control states_to_clear,                                     
  States_Control current_state                                        
)                                                                     
{                                                                     
   return (current_state & ~states_to_clear);                         
 80093cc:	a4 40 10 00 	not r2,r2                                      
 80093d0:	a0 45 10 00 	and r2,r2,r5                                   
      current_state =                                                 
      the_thread->current_state = _States_Clear( state, current_state );
 80093d4:	58 22 00 10 	sw (r1+16),r2                                  
                                                                      
      if ( _States_Is_ready( current_state ) ) {                      
 80093d8:	5c 40 00 25 	bne r2,r0,800946c <_Thread_Clear_state+0xbc>   
                                                                      
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (                  
  Priority_Information *the_priority_map                              
)                                                                     
{                                                                     
  *the_priority_map->minor |= the_priority_map->ready_minor;          
 80093dc:	28 22 00 90 	lw r2,(r1+144)                                 
 80093e0:	2c 25 00 96 	lhu r5,(r1+150)                                
 80093e4:	2c 46 00 00 	lhu r6,(r2+0)                                  
 80093e8:	b8 c5 28 00 	or r5,r6,r5                                    
 80093ec:	0c 45 00 00 	sh (r2+0),r5                                   
  _Priority_Major_bit_map  |= the_priority_map->ready_major;          
 80093f0:	78 02 08 01 	mvhi r2,0x801                                  
 80093f4:	38 42 38 bc 	ori r2,r2,0x38bc                               
 80093f8:	2c 45 00 00 	lhu r5,(r2+0)                                  
 80093fc:	2c 26 00 94 	lhu r6,(r1+148)                                
 8009400:	b8 c5 28 00 	or r5,r6,r5                                    
 8009404:	20 a5 ff ff 	andi r5,r5,0xffff                              
 8009408:	0c 45 00 00 	sh (r2+0),r5                                   
                                                                      
        _Priority_Add_to_bit_map( &the_thread->Priority_map );        
                                                                      
        _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
 800940c:	28 22 00 8c 	lw r2,(r1+140)                                 
 8009410:	34 45 00 04 	addi r5,r2,4                                   
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
 8009414:	58 25 00 00 	sw (r1+0),r5                                   
  old_last_node       = the_chain->last;                              
 8009418:	28 45 00 08 	lw r5,(r2+8)                                   
  the_chain->last     = the_node;                                     
 800941c:	58 41 00 08 	sw (r2+8),r1                                   
  old_last_node->next = the_node;                                     
 8009420:	58 a1 00 00 	sw (r5+0),r1                                   
  the_node->previous  = old_last_node;                                
 8009424:	58 25 00 04 	sw (r1+4),r5                                   
                                                                      
        _ISR_Flash( level );                                          
 8009428:	d0 03 00 00 	wcsr IE,r3                                     
 800942c:	d0 04 00 00 	wcsr IE,r4                                     
         *    a context switch.                                       
         *  Pseudo-ISR case:                                          
         *    Even if the thread isn't preemptible, if the new heir is
         *    a pseudo-ISR system task, we need to do a context switch.
         */                                                           
        if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
 8009430:	78 02 08 01 	mvhi r2,0x801                                  
 8009434:	38 42 39 e8 	ori r2,r2,0x39e8                               
 8009438:	28 45 00 10 	lw r5,(r2+16)                                  
 800943c:	28 24 00 14 	lw r4,(r1+20)                                  
 8009440:	28 a5 00 14 	lw r5,(r5+20)                                  
 8009444:	50 85 00 0a 	bgeu r4,r5,800946c <_Thread_Clear_state+0xbc>  
          _Thread_Heir = the_thread;                                  
 8009448:	58 41 00 10 	sw (r2+16),r1                                  
          if ( _Thread_Executing->is_preemptible ||                   
 800944c:	28 41 00 0c 	lw r1,(r2+12)                                  
 8009450:	40 21 00 74 	lbu r1,(r1+116)                                
 8009454:	5c 20 00 02 	bne r1,r0,800945c <_Thread_Clear_state+0xac>   
 8009458:	5c 81 00 05 	bne r4,r1,800946c <_Thread_Clear_state+0xbc>   <== ALWAYS TAKEN
               the_thread->current_priority == 0 )                    
            _Context_Switch_necessary = true;                         
 800945c:	78 01 08 01 	mvhi r1,0x801                                  
 8009460:	38 21 39 e8 	ori r1,r1,0x39e8                               
 8009464:	34 02 00 01 	mvi r2,1                                       
 8009468:	30 22 00 18 	sb (r1+24),r2                                  
        }                                                             
      }                                                               
  }                                                                   
  _ISR_Enable( level );                                               
 800946c:	d0 03 00 00 	wcsr IE,r3                                     
}                                                                     
 8009470:	c3 a0 00 00 	ret                                            
                                                                      

0800badc <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) {
 800badc:	37 9c ff f8 	addi sp,sp,-8                                  
 800bae0:	5b 9d 00 04 	sw (sp+4),ra                                   
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 800bae4:	37 82 00 08 	addi r2,sp,8                                   
 800bae8:	f8 00 00 7c 	calli 800bcd8 <_Thread_Get>                    
  switch ( location ) {                                               
 800baec:	2b 82 00 08 	lw r2,(sp+8)                                   
 800baf0:	5c 40 00 0a 	bne r2,r0,800bb18 <_Thread_Delay_ended+0x3c>   <== NEVER TAKEN
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
      break;                                                          
    case OBJECTS_LOCAL:                                               
      _Thread_Clear_state(                                            
 800baf4:	78 03 08 02 	mvhi r3,0x802                                  
 800baf8:	38 63 52 f4 	ori r3,r3,0x52f4                               
 800bafc:	28 62 00 00 	lw r2,(r3+0)                                   
 800bb00:	fb ff ff 5a 	calli 800b868 <_Thread_Clear_state>            
 800bb04:	78 01 08 02 	mvhi r1,0x802                                  
 800bb08:	38 21 79 9c 	ori r1,r1,0x799c                               
 800bb0c:	28 22 00 00 	lw r2,(r1+0)                                   
 800bb10:	34 42 ff ff 	addi r2,r2,-1                                  
 800bb14:	58 22 00 00 	sw (r1+0),r2                                   
          | STATES_INTERRUPTIBLE_BY_SIGNAL                            
      );                                                              
      _Thread_Unnest_dispatch();                                      
      break;                                                          
  }                                                                   
}                                                                     
 800bb18:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800bb1c:	37 9c 00 08 	addi sp,sp,8                                   
 800bb20:	c3 a0 00 00 	ret                                            
                                                                      

08004f08 <_Thread_Dispatch>: * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) {
 8004f08:	37 9c ff c0 	addi sp,sp,-64                                 
 8004f0c:	5b 8b 00 30 	sw (sp+48),r11                                 
 8004f10:	5b 8c 00 2c 	sw (sp+44),r12                                 
 8004f14:	5b 8d 00 28 	sw (sp+40),r13                                 
 8004f18:	5b 8e 00 24 	sw (sp+36),r14                                 
 8004f1c:	5b 8f 00 20 	sw (sp+32),r15                                 
 8004f20:	5b 90 00 1c 	sw (sp+28),r16                                 
 8004f24:	5b 91 00 18 	sw (sp+24),r17                                 
 8004f28:	5b 92 00 14 	sw (sp+20),r18                                 
 8004f2c:	5b 93 00 10 	sw (sp+16),r19                                 
 8004f30:	5b 94 00 0c 	sw (sp+12),r20                                 
 8004f34:	5b 95 00 08 	sw (sp+8),r21                                  
 8004f38:	5b 9d 00 04 	sw (sp+4),ra                                   
  Thread_Control   *executing;                                        
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
 8004f3c:	78 01 08 01 	mvhi r1,0x801                                  
 8004f40:	38 21 39 e8 	ori r1,r1,0x39e8                               
 8004f44:	28 2d 00 0c 	lw r13,(r1+12)                                 
  _ISR_Disable( level );                                              
 8004f48:	90 00 20 00 	rcsr r4,IE                                     
 8004f4c:	34 01 ff fe 	mvi r1,-2                                      
 8004f50:	a0 81 08 00 	and r1,r4,r1                                   
 8004f54:	d0 01 00 00 	wcsr IE,r1                                     
  while ( _Context_Switch_necessary == true ) {                       
 8004f58:	78 0c 08 01 	mvhi r12,0x801                                 
    heir = _Thread_Heir;                                              
    _Thread_Dispatch_disable_level = 1;                               
 8004f5c:	78 11 08 01 	mvhi r17,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;            
 8004f60:	78 0f 08 01 	mvhi r15,0x801                                 
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
        _Timestamp_Subtract(                                          
 8004f64:	78 0e 08 01 	mvhi r14,0x801                                 
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
 8004f68:	78 10 08 01 	mvhi r16,0x801                                 
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Context_Switch_necessary == true ) {                       
 8004f6c:	39 8c 39 e8 	ori r12,r12,0x39e8                             
    heir = _Thread_Heir;                                              
    _Thread_Dispatch_disable_level = 1;                               
 8004f70:	3a 31 38 1c 	ori r17,r17,0x381c                             
 8004f74:	34 14 00 01 	mvi r20,1                                      
#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;            
 8004f78:	39 ef 37 b4 	ori r15,r15,0x37b4                             
    _ISR_Enable( level );                                             
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
 8004f7c:	37 93 00 3c 	addi r19,sp,60                                 
        _Timestamp_Subtract(                                          
 8004f80:	39 ce 38 cc 	ori r14,r14,0x38cc                             
 8004f84:	37 92 00 34 	addi r18,sp,52                                 
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
 8004f88:	3a 10 38 a0 	ori r16,r16,0x38a0                             
#endif                                                                
#endif                                                                
                                                                      
    executing = _Thread_Executing;                                    
                                                                      
    _ISR_Disable( level );                                            
 8004f8c:	34 15 ff fe 	mvi r21,-2                                     
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Context_Switch_necessary == true ) {                       
 8004f90:	e0 00 00 28 	bi 8005030 <_Thread_Dispatch+0x128>            
    heir = _Thread_Heir;                                              
 8004f94:	29 8b 00 10 	lw r11,(r12+16)                                
    _Thread_Dispatch_disable_level = 1;                               
 8004f98:	5a 34 00 00 	sw (r17+0),r20                                 
    _Context_Switch_necessary = false;                                
 8004f9c:	31 80 00 18 	sb (r12+24),r0                                 
    _Thread_Executing = heir;                                         
 8004fa0:	59 8b 00 0c 	sw (r12+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 )                                          
 8004fa4:	45 6d 00 26 	be r11,r13,800503c <_Thread_Dispatch+0x134>    
     */                                                               
#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 )
 8004fa8:	29 61 00 7c 	lw r1,(r11+124)                                
 8004fac:	5c 34 00 03 	bne r1,r20,8004fb8 <_Thread_Dispatch+0xb0>     
      heir->cpu_time_budget = _Thread_Ticks_per_timeslice;            
 8004fb0:	29 e1 00 00 	lw r1,(r15+0)                                  
 8004fb4:	59 61 00 78 	sw (r11+120),r1                                
                                                                      
    _ISR_Enable( level );                                             
 8004fb8:	d0 04 00 00 	wcsr IE,r4                                     
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
 8004fbc:	ba 60 08 00 	mv r1,r19                                      
 8004fc0:	f8 00 0f 99 	calli 8008e24 <_TOD_Get_uptime>                
        _Timestamp_Subtract(                                          
 8004fc4:	b9 c0 08 00 	mv r1,r14                                      
 8004fc8:	ba 60 10 00 	mv r2,r19                                      
 8004fcc:	ba 40 18 00 	mv r3,r18                                      
 8004fd0:	f8 00 04 58 	calli 8006130 <_Timespec_Subtract>             
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
 8004fd4:	35 a1 00 84 	addi r1,r13,132                                
 8004fd8:	ba 40 10 00 	mv r2,r18                                      
 8004fdc:	f8 00 04 3c 	calli 80060cc <_Timespec_Add_to>               
        _Thread_Time_of_last_context_switch = uptime;                 
 8004fe0:	2b 81 00 3c 	lw r1,(sp+60)                                  
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
 8004fe4:	2a 04 00 00 	lw r4,(r16+0)                                  
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
        _Thread_Time_of_last_context_switch = uptime;                 
 8004fe8:	59 c1 00 00 	sw (r14+0),r1                                  
 8004fec:	2b 81 00 40 	lw r1,(sp+64)                                  
 8004ff0:	59 c1 00 04 	sw (r14+4),r1                                  
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
 8004ff4:	44 80 00 05 	be r4,r0,8005008 <_Thread_Dispatch+0x100>      <== NEVER TAKEN
      executing->libc_reent = *_Thread_libc_reent;                    
 8004ff8:	28 81 00 00 	lw r1,(r4+0)                                   
 8004ffc:	59 a1 01 20 	sw (r13+288),r1                                
      *_Thread_libc_reent = heir->libc_reent;                         
 8005000:	29 61 01 20 	lw r1,(r11+288)                                
 8005004:	58 81 00 00 	sw (r4+0),r1                                   
    }                                                                 
                                                                      
    _User_extensions_Thread_switch( executing, heir );                
 8005008:	b9 a0 08 00 	mv r1,r13                                      
 800500c:	b9 60 10 00 	mv r2,r11                                      
 8005010:	f8 00 05 43 	calli 800651c <_User_extensions_Thread_switch> 
    if ( executing->fp_context != NULL )                              
      _Context_Save_fp( &executing->fp_context );                     
#endif                                                                
#endif                                                                
                                                                      
    _Context_Switch( &executing->Registers, &heir->Registers );       
 8005014:	35 a1 00 cc 	addi r1,r13,204                                
 8005018:	35 62 00 cc 	addi r2,r11,204                                
 800501c:	f8 00 06 55 	calli 8006970 <_CPU_Context_switch>            
    if ( executing->fp_context != NULL )                              
      _Context_Restore_fp( &executing->fp_context );                  
#endif                                                                
#endif                                                                
                                                                      
    executing = _Thread_Executing;                                    
 8005020:	29 8d 00 0c 	lw r13,(r12+12)                                
                                                                      
    _ISR_Disable( level );                                            
 8005024:	90 00 20 00 	rcsr r4,IE                                     
 8005028:	a0 95 08 00 	and r1,r4,r21                                  
 800502c:	d0 01 00 00 	wcsr IE,r1                                     
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Context_Switch_necessary == true ) {                       
 8005030:	41 81 00 18 	lbu r1,(r12+24)                                
 8005034:	20 21 00 ff 	andi r1,r1,0xff                                
 8005038:	5c 20 ff d7 	bne r1,r0,8004f94 <_Thread_Dispatch+0x8c>      
                                                                      
    _ISR_Disable( level );                                            
  }                                                                   
                                                                      
post_switch:                                                          
  _Thread_Dispatch_disable_level = 0;                                 
 800503c:	78 01 08 01 	mvhi r1,0x801                                  
 8005040:	38 21 38 1c 	ori r1,r1,0x381c                               
 8005044:	58 20 00 00 	sw (r1+0),r0                                   
                                                                      
  _ISR_Enable( level );                                               
 8005048:	d0 04 00 00 	wcsr IE,r4                                     
                                                                      
  _API_extensions_Run_postswitch();                                   
 800504c:	fb ff f8 d0 	calli 800338c <_API_extensions_Run_postswitch> 
}                                                                     
 8005050:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005054:	2b 8b 00 30 	lw r11,(sp+48)                                 
 8005058:	2b 8c 00 2c 	lw r12,(sp+44)                                 
 800505c:	2b 8d 00 28 	lw r13,(sp+40)                                 
 8005060:	2b 8e 00 24 	lw r14,(sp+36)                                 
 8005064:	2b 8f 00 20 	lw r15,(sp+32)                                 
 8005068:	2b 90 00 1c 	lw r16,(sp+28)                                 
 800506c:	2b 91 00 18 	lw r17,(sp+24)                                 
 8005070:	2b 92 00 14 	lw r18,(sp+20)                                 
 8005074:	2b 93 00 10 	lw r19,(sp+16)                                 
 8005078:	2b 94 00 0c 	lw r20,(sp+12)                                 
 800507c:	2b 95 00 08 	lw r21,(sp+8)                                  
 8005080:	37 9c 00 40 	addi sp,sp,64                                  
 8005084:	c3 a0 00 00 	ret                                            
                                                                      

080050bc <_Thread_Get>: Thread_Control *_Thread_Get ( Objects_Id id, Objects_Locations *location ) {
 80050bc:	37 9c ff e8 	addi sp,sp,-24                                 
 80050c0:	5b 8b 00 18 	sw (sp+24),r11                                 
 80050c4:	5b 8c 00 14 	sw (sp+20),r12                                 
 80050c8:	5b 8d 00 10 	sw (sp+16),r13                                 
 80050cc:	5b 8e 00 0c 	sw (sp+12),r14                                 
 80050d0:	5b 8f 00 08 	sw (sp+8),r15                                  
 80050d4:	5b 9d 00 04 	sw (sp+4),ra                                   
 80050d8:	b8 20 68 00 	mv r13,r1                                      
 80050dc:	b8 40 58 00 	mv r11,r2                                      
  uint32_t             the_class;                                     
  Objects_Information **api_information;                              
  Objects_Information *information;                                   
  Thread_Control      *tp = (Thread_Control *) 0;                     
                                                                      
  if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) {           
 80050e0:	5c 20 00 0b 	bne r1,r0,800510c <_Thread_Get+0x50>           
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
 80050e4:	78 01 08 01 	mvhi r1,0x801                                  
 80050e8:	38 21 38 1c 	ori r1,r1,0x381c                               
 80050ec:	28 22 00 00 	lw r2,(r1+0)                                   
 80050f0:	34 42 00 01 	addi r2,r2,1                                   
 80050f4:	58 22 00 00 	sw (r1+0),r2                                   
    _Thread_Disable_dispatch();                                       
    *location = OBJECTS_LOCAL;                                        
    tp = _Thread_Executing;                                           
 80050f8:	78 01 08 01 	mvhi r1,0x801                                  
 80050fc:	38 21 39 e8 	ori r1,r1,0x39e8                               
  Objects_Information *information;                                   
  Thread_Control      *tp = (Thread_Control *) 0;                     
                                                                      
  if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) {           
    _Thread_Disable_dispatch();                                       
    *location = OBJECTS_LOCAL;                                        
 8005100:	59 60 00 00 	sw (r11+0),r0                                  
    tp = _Thread_Executing;                                           
 8005104:	28 21 00 0c 	lw r1,(r1+12)                                  
    goto done;                                                        
 8005108:	e0 00 00 1c 	bi 8005178 <_Thread_Get+0xbc>                  
 */                                                                   
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(                   
  Objects_Id id                                                       
)                                                                     
{                                                                     
  return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
 800510c:	34 02 00 18 	mvi r2,24                                      
 8005110:	f8 00 2e 21 	calli 8010994 <__lshrsi3>                      
 8005114:	20 2f 00 07 	andi r15,r1,0x7                                
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(                      
  uint32_t   the_api                                                  
)                                                                     
{                                                                     
  if ( !the_api || the_api > OBJECTS_APIS_LAST )                      
 8005118:	35 e1 ff ff 	addi r1,r15,-1                                 
 800511c:	34 02 00 02 	mvi r2,2                                       
 8005120:	50 41 00 1e 	bgeu r2,r1,8005198 <_Thread_Get+0xdc>          
  }                                                                   
                                                                      
  the_api = _Objects_Get_API( id );                                   
  if ( !_Objects_Is_api_valid( the_api ) ) {                          
    *location = OBJECTS_ERROR;                                        
 8005124:	34 01 00 01 	mvi r1,1                                       
 8005128:	59 61 00 00 	sw (r11+0),r1                                  
 800512c:	e0 00 00 02 	bi 8005134 <_Thread_Get+0x78>                  
    goto done;                                                        
  }                                                                   
                                                                      
  the_class = _Objects_Get_class( id );                               
  if ( the_class != 1 ) {       /* threads are always first class :) */
    *location = OBJECTS_ERROR;                                        
 8005130:	59 62 00 00 	sw (r11+0),r2                                  
{                                                                     
  uint32_t             the_api;                                       
  uint32_t             the_class;                                     
  Objects_Information **api_information;                              
  Objects_Information *information;                                   
  Thread_Control      *tp = (Thread_Control *) 0;                     
 8005134:	34 01 00 00 	mvi r1,0                                       
  }                                                                   
                                                                      
  the_class = _Objects_Get_class( id );                               
  if ( the_class != 1 ) {       /* threads are always first class :) */
    *location = OBJECTS_ERROR;                                        
    goto done;                                                        
 8005138:	e0 00 00 10 	bi 8005178 <_Thread_Get+0xbc>                  
  }                                                                   
                                                                      
  api_information = _Objects_Information_table[ the_api ];            
 800513c:	78 0e 08 01 	mvhi r14,0x801                                 
 8005140:	b9 e0 08 00 	mv r1,r15                                      
 8005144:	34 02 00 02 	mvi r2,2                                       
 8005148:	f8 00 2d c5 	calli 801085c <__ashlsi3>                      
 800514c:	39 ce 37 b8 	ori r14,r14,0x37b8                             
 8005150:	b5 c1 08 00 	add r1,r14,r1                                  
 8005154:	28 21 00 00 	lw r1,(r1+0)                                   
  if ( !api_information ) {                                           
 8005158:	44 20 00 03 	be r1,r0,8005164 <_Thread_Get+0xa8>            <== NEVER TAKEN
    *location = OBJECTS_ERROR;                                        
    goto done;                                                        
  }                                                                   
                                                                      
  information = api_information[ the_class ];                         
 800515c:	28 21 00 04 	lw r1,(r1+4)                                   
  if ( !information ) {                                               
 8005160:	5c 20 00 03 	bne r1,r0,800516c <_Thread_Get+0xb0>           
    *location = OBJECTS_ERROR;                                        
 8005164:	59 6c 00 00 	sw (r11+0),r12                                 
    goto done;                                                        
 8005168:	e0 00 00 04 	bi 8005178 <_Thread_Get+0xbc>                  
  }                                                                   
                                                                      
  tp = (Thread_Control *) _Objects_Get( information, id, location );  
 800516c:	b9 a0 10 00 	mv r2,r13                                      
 8005170:	b9 60 18 00 	mv r3,r11                                      
 8005174:	fb ff fd 65 	calli 8004708 <_Objects_Get>                   
                                                                      
done:                                                                 
  return tp;                                                          
}                                                                     
 8005178:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800517c:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8005180:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8005184:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8005188:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800518c:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8005190:	37 9c 00 18 	addi sp,sp,24                                  
 8005194:	c3 a0 00 00 	ret                                            
 */                                                                   
RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class(                     
  Objects_Id id                                                       
)                                                                     
{                                                                     
  return (uint32_t)                                                   
 8005198:	34 02 00 1b 	mvi r2,27                                      
 800519c:	b9 a0 08 00 	mv r1,r13                                      
 80051a0:	f8 00 2d fd 	calli 8010994 <__lshrsi3>                      
    *location = OBJECTS_ERROR;                                        
    goto done;                                                        
  }                                                                   
                                                                      
  the_class = _Objects_Get_class( id );                               
  if ( the_class != 1 ) {       /* threads are always first class :) */
 80051a4:	34 02 00 01 	mvi r2,1                                       
 80051a8:	b8 20 60 00 	mv r12,r1                                      
 80051ac:	44 22 ff e4 	be r1,r2,800513c <_Thread_Get+0x80>            
 80051b0:	e3 ff ff e0 	bi 8005130 <_Thread_Get+0x74>                  
                                                                      

0800b25c <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) {
 800b25c:	37 9c ff f4 	addi sp,sp,-12                                 
 800b260:	5b 8b 00 0c 	sw (sp+12),r11                                 
 800b264:	5b 8c 00 08 	sw (sp+8),r12                                  
 800b268:	5b 9d 00 04 	sw (sp+4),ra                                   
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    static char doneConstructors;                                     
    char doneCons;                                                    
  #endif                                                              
                                                                      
  executing = _Thread_Executing;                                      
 800b26c:	78 01 08 01 	mvhi r1,0x801                                  
 800b270:	38 21 39 e8 	ori r1,r1,0x39e8                               
 800b274:	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;                                 
 800b278:	29 61 00 b8 	lw r1,(r11+184)                                
  _ISR_Set_level(level);                                              
 800b27c:	64 21 00 00 	cmpei r1,r1,0                                  
 800b280:	d0 01 00 00 	wcsr IE,r1                                     
                                                                      
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    doneCons = doneConstructors;                                      
 800b284:	78 01 08 01 	mvhi r1,0x801                                  
 800b288:	38 21 36 30 	ori r1,r1,0x3630                               
 800b28c:	40 2c 00 00 	lbu r12,(r1+0)                                 
    doneConstructors = 1;                                             
 800b290:	34 02 00 01 	mvi r2,1                                       
 800b294:	30 22 00 00 	sb (r1+0),r2                                   
  /*                                                                  
   * 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 );                         
 800b298:	b9 60 08 00 	mv r1,r11                                      
 800b29c:	fb ff eb f8 	calli 800627c <_User_extensions_Thread_begin>  
                                                                      
  /*                                                                  
   *  At this point, the dispatch disable level BETTER be 1.          
   */                                                                 
  _Thread_Enable_dispatch();                                          
 800b2a0:	fb ff e7 7a 	calli 8005088 <_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) */ {                 
 800b2a4:	5d 80 00 02 	bne r12,r0,800b2ac <_Thread_Handler+0x50>      
      INIT_NAME ();                                                   
 800b2a8:	fb ff d3 56 	calli 8000000 <RamBase>                        
    }                                                                 
  #endif                                                              
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
 800b2ac:	29 61 00 a0 	lw r1,(r11+160)                                
 800b2b0:	5c 20 00 05 	bne r1,r0,800b2c4 <_Thread_Handler+0x68>       <== NEVER TAKEN
    executing->Wait.return_argument =                                 
      (*(Thread_Entry_numeric) executing->Start.entry_point)(         
 800b2b4:	29 62 00 9c 	lw r2,(r11+156)                                
 800b2b8:	29 61 00 a8 	lw r1,(r11+168)                                
 800b2bc:	d8 40 00 00 	call r2                                        
      INIT_NAME ();                                                   
    }                                                                 
  #endif                                                              
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
    executing->Wait.return_argument =                                 
 800b2c0:	59 61 00 28 	sw (r11+40),r1                                 
   *  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 );                       
 800b2c4:	b9 60 08 00 	mv r1,r11                                      
 800b2c8:	fb ff ec 05 	calli 80062dc <_User_extensions_Thread_exitted>
                                                                      
  _Internal_error_Occurred(                                           
 800b2cc:	34 01 00 00 	mvi r1,0                                       
 800b2d0:	34 02 00 01 	mvi r2,1                                       
 800b2d4:	34 03 00 05 	mvi r3,5                                       
 800b2d8:	fb ff e3 54 	calli 8004028 <_Internal_error_Occurred>       
                                                                      

080051b4 <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) {
 80051b4:	37 9c ff e4 	addi sp,sp,-28                                 
 80051b8:	5b 8b 00 1c 	sw (sp+28),r11                                 
 80051bc:	5b 8c 00 18 	sw (sp+24),r12                                 
 80051c0:	5b 8d 00 14 	sw (sp+20),r13                                 
 80051c4:	5b 8e 00 10 	sw (sp+16),r14                                 
 80051c8:	5b 8f 00 0c 	sw (sp+12),r15                                 
 80051cc:	5b 90 00 08 	sw (sp+8),r16                                  
 80051d0:	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;                             
 80051d4:	58 40 01 24 	sw (r2+292),r0                                 
 80051d8:	58 40 01 28 	sw (r2+296),r0                                 
                                                                      
  extensions_area = NULL;                                             
  the_thread->libc_reent = NULL;                                      
 80051dc:	58 40 01 20 	sw (r2+288),r0                                 
  Thread_CPU_budget_algorithms          budget_algorithm,             
  Thread_CPU_budget_algorithm_callout   budget_callout,               
  uint32_t                              isr_level,                    
  Objects_Name                          name                          
)                                                                     
{                                                                     
 80051e0:	b8 20 70 00 	mv r14,r1                                      
 80051e4:	b8 40 58 00 	mv r11,r2                                      
                                                                      
  /*                                                                  
   *  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 );
 80051e8:	b8 40 08 00 	mv r1,r2                                       
 80051ec:	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                          
)                                                                     
{                                                                     
 80051f0:	b8 80 60 00 	mv r12,r4                                      
 80051f4:	b8 c0 68 00 	mv r13,r6                                      
 80051f8:	b9 00 78 00 	mv r15,r8                                      
 80051fc:	20 f0 00 ff 	andi r16,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 );
 8005200:	f8 00 03 1f 	calli 8005e7c <_Thread_Stack_Allocate>         
    if ( !actual_stack_size || actual_stack_size < stack_size )       
 8005204:	f5 81 60 00 	cmpgu r12,r12,r1                               
 8005208:	64 22 00 00 	cmpei r2,r1,0                                  
      return false;                     /* stack allocation failed */ 
 800520c:	34 03 00 00 	mvi r3,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 )       
 8005210:	b9 82 60 00 	or r12,r12,r2                                  
 8005214:	5d 80 00 4a 	bne r12,r0,800533c <_Thread_Initialize+0x188>  
  Stack_Control *the_stack,                                           
  void          *starting_address,                                    
  size_t         size                                                 
)                                                                     
{                                                                     
  the_stack->area = starting_address;                                 
 8005218:	29 62 00 c8 	lw r2,(r11+200)                                
  the_stack->size = size;                                             
 800521c:	59 61 00 c0 	sw (r11+192),r1                                
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 8005220:	59 60 00 50 	sw (r11+80),r0                                 
  Stack_Control *the_stack,                                           
  void          *starting_address,                                    
  size_t         size                                                 
)                                                                     
{                                                                     
  the_stack->area = starting_address;                                 
 8005224:	59 62 00 c4 	sw (r11+196),r2                                
  #endif                                                              
                                                                      
  /*                                                                  
   *  Allocate the extensions area for this thread                    
   */                                                                 
  if ( _Thread_Maximum_extensions ) {                                 
 8005228:	78 02 08 01 	mvhi r2,0x801                                  
 800522c:	38 42 38 ac 	ori r2,r2,0x38ac                               
 8005230:	28 42 00 00 	lw r2,(r2+0)                                   
  the_watchdog->routine   = routine;                                  
 8005234:	59 60 00 64 	sw (r11+100),r0                                
  the_watchdog->id        = id;                                       
 8005238:	59 60 00 68 	sw (r11+104),r0                                
  the_watchdog->user_data = user_data;                                
 800523c:	59 60 00 6c 	sw (r11+108),r0                                
 8005240:	44 4c 00 07 	be r2,r12,800525c <_Thread_Initialize+0xa8>    
    extensions_area = _Workspace_Allocate(                            
      (_Thread_Maximum_extensions + 1) * sizeof( void * )             
 8005244:	34 41 00 01 	addi r1,r2,1                                   
 8005248:	34 02 00 02 	mvi r2,2                                       
 800524c:	f8 00 2d 84 	calli 801085c <__ashlsi3>                      
                                                                      
  /*                                                                  
   *  Allocate the extensions area for this thread                    
   */                                                                 
  if ( _Thread_Maximum_extensions ) {                                 
    extensions_area = _Workspace_Allocate(                            
 8005250:	f8 00 05 a5 	calli 80068e4 <_Workspace_Allocate>            
 8005254:	b8 20 60 00 	mv r12,r1                                      
      (_Thread_Maximum_extensions + 1) * sizeof( void * )             
    );                                                                
    if ( !extensions_area )                                           
 8005258:	44 20 00 2a 	be r1,r0,8005300 <_Thread_Initialize+0x14c>    
      goto failed;                                                    
  }                                                                   
  the_thread->extensions = (void **) extensions_area;                 
 800525c:	59 6c 01 2c 	sw (r11+300),r12                               
   * if they are linked to the thread. An extension user may          
   * create the extension long after tasks have been created          
   * so they cannot rely on the thread create user extension          
   * call.                                                            
   */                                                                 
  if ( the_thread->extensions ) {                                     
 8005260:	45 80 00 0b 	be r12,r0,800528c <_Thread_Initialize+0xd8>    
    for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )              
 8005264:	78 02 08 01 	mvhi r2,0x801                                  
 8005268:	38 42 38 ac 	ori r2,r2,0x38ac                               
 800526c:	28 41 00 00 	lw r1,(r2+0)                                   
 8005270:	b9 80 18 00 	mv r3,r12                                      
 8005274:	34 02 00 00 	mvi r2,0                                       
 8005278:	e0 00 00 04 	bi 8005288 <_Thread_Initialize+0xd4>           
      the_thread->extensions[i] = NULL;                               
 800527c:	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++ )              
 8005280:	34 42 00 01 	addi r2,r2,1                                   
 8005284:	34 63 00 04 	addi r3,r3,4                                   
 8005288:	50 22 ff fd 	bgeu r1,r2,800527c <_Thread_Initialize+0xc8>   
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
  the_thread->Start.budget_algorithm = budget_algorithm;              
  the_thread->Start.budget_callout   = budget_callout;                
 800528c:	2b 81 00 20 	lw r1,(sp+32)                                  
  the_thread->current_state           = STATES_DORMANT;               
  the_thread->Wait.queue              = NULL;                         
  the_thread->resource_count          = 0;                            
  the_thread->real_priority           = priority;                     
  the_thread->Start.initial_priority  = priority;                     
  _Thread_Set_priority( the_thread, priority );                       
 8005290:	b9 a0 10 00 	mv r2,r13                                      
  the_thread->Start.isr_level         = isr_level;                    
                                                                      
  the_thread->current_state           = STATES_DORMANT;               
  the_thread->Wait.queue              = NULL;                         
  the_thread->resource_count          = 0;                            
  the_thread->real_priority           = priority;                     
 8005294:	59 6d 00 18 	sw (r11+24),r13                                
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
  the_thread->Start.budget_algorithm = budget_algorithm;              
  the_thread->Start.budget_callout   = budget_callout;                
 8005298:	59 61 00 b4 	sw (r11+180),r1                                
      case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:                       
	break;                                                               
    #endif                                                            
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
 800529c:	2b 81 00 24 	lw r1,(sp+36)                                  
                                                                      
  the_thread->current_state           = STATES_DORMANT;               
  the_thread->Wait.queue              = NULL;                         
  the_thread->resource_count          = 0;                            
  the_thread->real_priority           = priority;                     
  the_thread->Start.initial_priority  = priority;                     
 80052a0:	59 6d 00 bc 	sw (r11+188),r13                               
                                                                      
  /*                                                                  
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
 80052a4:	31 70 00 ac 	sb (r11+172),r16                               
      case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:                       
	break;                                                               
    #endif                                                            
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
 80052a8:	59 61 00 b8 	sw (r11+184),r1                                
                                                                      
  the_thread->current_state           = STATES_DORMANT;               
 80052ac:	34 01 00 01 	mvi r1,1                                       
 80052b0:	59 61 00 10 	sw (r11+16),r1                                 
  /*                                                                  
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
  the_thread->Start.budget_algorithm = budget_algorithm;              
 80052b4:	59 6f 00 b0 	sw (r11+176),r15                               
  the_thread->current_state           = STATES_DORMANT;               
  the_thread->Wait.queue              = NULL;                         
  the_thread->resource_count          = 0;                            
  the_thread->real_priority           = priority;                     
  the_thread->Start.initial_priority  = priority;                     
  _Thread_Set_priority( the_thread, priority );                       
 80052b8:	b9 60 08 00 	mv r1,r11                                      
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
                                                                      
  the_thread->current_state           = STATES_DORMANT;               
  the_thread->Wait.queue              = NULL;                         
 80052bc:	59 60 00 44 	sw (r11+68),r0                                 
  the_thread->resource_count          = 0;                            
 80052c0:	59 60 00 1c 	sw (r11+28),r0                                 
  the_thread->real_priority           = priority;                     
  the_thread->Start.initial_priority  = priority;                     
  _Thread_Set_priority( the_thread, priority );                       
 80052c4:	f8 00 02 20 	calli 8005b44 <_Thread_Set_priority>           
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 80052c8:	2d 61 00 0a 	lhu r1,(r11+10)                                
                                                                      
   _Thread_Stack_Free( the_thread );                                  
  return false;                                                       
                                                                      
                                                                      
}                                                                     
 80052cc:	29 cd 00 1c 	lw r13,(r14+28)                                
 80052d0:	34 02 00 02 	mvi r2,2                                       
                                                                      
  /*                                                                  
   *  Initialize the CPU usage statistics                             
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Set_to_zero( &the_thread->cpu_time_used );             
 80052d4:	59 60 00 84 	sw (r11+132),r0                                
 80052d8:	59 60 00 88 	sw (r11+136),r0                                
 80052dc:	f8 00 2d 60 	calli 801085c <__ashlsi3>                      
 80052e0:	b5 a1 08 00 	add r1,r13,r1                                  
 80052e4:	58 2b 00 00 	sw (r1+0),r11                                  
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
 80052e8:	2b 81 00 28 	lw r1,(sp+40)                                  
 80052ec:	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 );    
 80052f0:	b9 60 08 00 	mv r1,r11                                      
 80052f4:	f8 00 04 30 	calli 80063b4 <_User_extensions_Thread_create> 
  if ( extension_status )                                             
    return true;                                                      
 80052f8:	34 03 00 01 	mvi r3,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 )                                             
 80052fc:	5c 20 00 10 	bne r1,r0,800533c <_Thread_Initialize+0x188>   
    return true;                                                      
                                                                      
failed:                                                               
  if ( the_thread->libc_reent )                                       
 8005300:	29 61 01 20 	lw r1,(r11+288)                                
 8005304:	44 20 00 02 	be r1,r0,800530c <_Thread_Initialize+0x158>    
    _Workspace_Free( the_thread->libc_reent );                        
 8005308:	f8 00 05 82 	calli 8006910 <_Workspace_Free>                
                                                                      
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    if ( the_thread->API_Extensions[i] )                              
 800530c:	29 61 01 24 	lw r1,(r11+292)                                
 8005310:	44 20 00 02 	be r1,r0,8005318 <_Thread_Initialize+0x164>    
      _Workspace_Free( the_thread->API_Extensions[i] );               
 8005314:	f8 00 05 7f 	calli 8006910 <_Workspace_Free>                
failed:                                                               
  if ( the_thread->libc_reent )                                       
    _Workspace_Free( the_thread->libc_reent );                        
                                                                      
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    if ( the_thread->API_Extensions[i] )                              
 8005318:	29 61 01 28 	lw r1,(r11+296)                                
 800531c:	44 20 00 02 	be r1,r0,8005324 <_Thread_Initialize+0x170>    <== ALWAYS TAKEN
      _Workspace_Free( the_thread->API_Extensions[i] );               
 8005320:	f8 00 05 7c 	calli 8006910 <_Workspace_Free>                <== NOT EXECUTED
                                                                      
  if ( extensions_area )                                              
 8005324:	45 80 00 03 	be r12,r0,8005330 <_Thread_Initialize+0x17c>   
    (void) _Workspace_Free( extensions_area );                        
 8005328:	b9 80 08 00 	mv r1,r12                                      
 800532c:	f8 00 05 79 	calli 8006910 <_Workspace_Free>                
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    if ( fp_area )                                                    
      (void) _Workspace_Free( fp_area );                              
  #endif                                                              
                                                                      
   _Thread_Stack_Free( the_thread );                                  
 8005330:	b9 60 08 00 	mv r1,r11                                      
 8005334:	f8 00 02 ef 	calli 8005ef0 <_Thread_Stack_Free>             
  return false;                                                       
 8005338:	34 03 00 00 	mvi r3,0                                       
                                                                      
                                                                      
}                                                                     
 800533c:	b8 60 08 00 	mv r1,r3                                       
 8005340:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005344:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8005348:	2b 8c 00 18 	lw r12,(sp+24)                                 
 800534c:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8005350:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8005354:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8005358:	2b 90 00 08 	lw r16,(sp+8)                                  
 800535c:	37 9c 00 1c 	addi sp,sp,28                                  
 8005360:	c3 a0 00 00 	ret                                            
                                                                      

08009fac <_Thread_Resume>: { ISR_Level level; States_Control current_state; _ISR_Disable( level );
 8009fac:	90 00 18 00 	rcsr r3,IE                                     
 8009fb0:	34 04 ff fe 	mvi r4,-2                                      
 8009fb4:	a0 64 20 00 	and r4,r3,r4                                   
 8009fb8:	d0 04 00 00 	wcsr IE,r4                                     
                                                                      
  current_state = the_thread->current_state;                          
 8009fbc:	28 22 00 10 	lw r2,(r1+16)                                  
  if ( current_state & STATES_SUSPENDED ) {                           
 8009fc0:	20 45 00 02 	andi r5,r2,0x2                                 
 8009fc4:	44 a0 00 29 	be r5,r0,800a068 <_Thread_Resume+0xbc>         <== NEVER TAKEN
RTEMS_INLINE_ROUTINE States_Control _States_Clear (                   
  States_Control states_to_clear,                                     
  States_Control current_state                                        
)                                                                     
{                                                                     
   return (current_state & ~states_to_clear);                         
 8009fc8:	34 05 ff fd 	mvi r5,-3                                      
 8009fcc:	a0 45 10 00 	and r2,r2,r5                                   
    current_state =                                                   
    the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state);
 8009fd0:	58 22 00 10 	sw (r1+16),r2                                  
                                                                      
    if ( _States_Is_ready( current_state ) ) {                        
 8009fd4:	5c 40 00 25 	bne r2,r0,800a068 <_Thread_Resume+0xbc>        <== NEVER TAKEN
                                                                      
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (                  
  Priority_Information *the_priority_map                              
)                                                                     
{                                                                     
  *the_priority_map->minor |= the_priority_map->ready_minor;          
 8009fd8:	28 22 00 90 	lw r2,(r1+144)                                 
 8009fdc:	2c 25 00 96 	lhu r5,(r1+150)                                
 8009fe0:	2c 46 00 00 	lhu r6,(r2+0)                                  
 8009fe4:	b8 c5 28 00 	or r5,r6,r5                                    
 8009fe8:	0c 45 00 00 	sh (r2+0),r5                                   
  _Priority_Major_bit_map  |= the_priority_map->ready_major;          
 8009fec:	78 02 08 01 	mvhi r2,0x801                                  
 8009ff0:	38 42 89 8c 	ori r2,r2,0x898c                               
 8009ff4:	2c 45 00 00 	lhu r5,(r2+0)                                  
 8009ff8:	2c 26 00 94 	lhu r6,(r1+148)                                
 8009ffc:	b8 c5 28 00 	or r5,r6,r5                                    
 800a000:	20 a5 ff ff 	andi r5,r5,0xffff                              
 800a004:	0c 45 00 00 	sh (r2+0),r5                                   
                                                                      
      _Priority_Add_to_bit_map( &the_thread->Priority_map );          
                                                                      
      _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
 800a008:	28 22 00 8c 	lw r2,(r1+140)                                 
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 800a00c:	34 45 00 04 	addi r5,r2,4                                   
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
 800a010:	58 25 00 00 	sw (r1+0),r5                                   
  old_last_node       = the_chain->last;                              
 800a014:	28 45 00 08 	lw r5,(r2+8)                                   
  the_chain->last     = the_node;                                     
 800a018:	58 41 00 08 	sw (r2+8),r1                                   
  old_last_node->next = the_node;                                     
 800a01c:	58 a1 00 00 	sw (r5+0),r1                                   
  the_node->previous  = old_last_node;                                
 800a020:	58 25 00 04 	sw (r1+4),r5                                   
                                                                      
      _ISR_Flash( level );                                            
 800a024:	d0 03 00 00 	wcsr IE,r3                                     
 800a028:	d0 04 00 00 	wcsr IE,r4                                     
                                                                      
      if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
 800a02c:	78 02 08 01 	mvhi r2,0x801                                  
 800a030:	38 42 8a b8 	ori r2,r2,0x8ab8                               
 800a034:	28 45 00 10 	lw r5,(r2+16)                                  
 800a038:	28 24 00 14 	lw r4,(r1+20)                                  
 800a03c:	28 a5 00 14 	lw r5,(r5+20)                                  
 800a040:	50 85 00 0a 	bgeu r4,r5,800a068 <_Thread_Resume+0xbc>       
        _Thread_Heir = the_thread;                                    
 800a044:	58 41 00 10 	sw (r2+16),r1                                  
        if ( _Thread_Executing->is_preemptible ||                     
 800a048:	28 41 00 0c 	lw r1,(r2+12)                                  
 800a04c:	40 21 00 74 	lbu r1,(r1+116)                                
 800a050:	5c 20 00 02 	bne r1,r0,800a058 <_Thread_Resume+0xac>        
 800a054:	5c 81 00 05 	bne r4,r1,800a068 <_Thread_Resume+0xbc>        <== ALWAYS TAKEN
             the_thread->current_priority == 0 )                      
          _Context_Switch_necessary = true;                           
 800a058:	78 01 08 01 	mvhi r1,0x801                                  
 800a05c:	38 21 8a b8 	ori r1,r1,0x8ab8                               
 800a060:	34 02 00 01 	mvi r2,1                                       
 800a064:	30 22 00 18 	sb (r1+24),r2                                  
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
 800a068:	d0 03 00 00 	wcsr IE,r3                                     
}                                                                     
 800a06c:	c3 a0 00 00 	ret                                            
                                                                      

08006030 <_Thread_Yield_processor>: { ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing;
 8006030:	78 01 08 01 	mvhi r1,0x801                                  
 8006034:	38 21 39 e8 	ori r1,r1,0x39e8                               
 8006038:	28 21 00 0c 	lw r1,(r1+12)                                  
  ready     = executing->ready;                                       
 800603c:	28 23 00 8c 	lw r3,(r1+140)                                 
  _ISR_Disable( level );                                              
 8006040:	90 00 20 00 	rcsr r4,IE                                     
 8006044:	34 06 ff fe 	mvi r6,-2                                      
 8006048:	a0 86 30 00 	and r6,r4,r6                                   
 800604c:	d0 06 00 00 	wcsr IE,r6                                     
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Has_only_one_node(                   
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return (the_chain->first == the_chain->last);                       
 8006050:	28 65 00 08 	lw r5,(r3+8)                                   
    if ( !_Chain_Has_only_one_node( ready ) ) {                       
 8006054:	28 67 00 00 	lw r7,(r3+0)                                   
 8006058:	78 02 08 01 	mvhi r2,0x801                                  
 800605c:	38 42 39 e8 	ori r2,r2,0x39e8                               
 8006060:	44 e5 00 15 	be r7,r5,80060b4 <_Thread_Yield_processor+0x84>
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
 8006064:	28 28 00 00 	lw r8,(r1+0)                                   
  previous       = the_node->previous;                                
 8006068:	28 27 00 04 	lw r7,(r1+4)                                   
  next->previous = previous;                                          
  previous->next = next;                                              
 800606c:	58 e8 00 00 	sw (r7+0),r8                                   
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
  next->previous = previous;                                          
 8006070:	59 07 00 04 	sw (r8+4),r7                                   
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 8006074:	34 67 00 04 	addi r7,r3,4                                   
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
 8006078:	58 27 00 00 	sw (r1+0),r7                                   
  old_last_node       = the_chain->last;                              
  the_chain->last     = the_node;                                     
 800607c:	58 61 00 08 	sw (r3+8),r1                                   
  old_last_node->next = the_node;                                     
 8006080:	58 a1 00 00 	sw (r5+0),r1                                   
  the_node->previous  = old_last_node;                                
 8006084:	58 25 00 04 	sw (r1+4),r5                                   
      _Chain_Extract_unprotected( &executing->Object.Node );          
      _Chain_Append_unprotected( ready, &executing->Object.Node );    
                                                                      
      _ISR_Flash( level );                                            
 8006088:	d0 04 00 00 	wcsr IE,r4                                     
 800608c:	d0 06 00 00 	wcsr IE,r6                                     
                                                                      
      if ( _Thread_Is_heir( executing ) )                             
 8006090:	28 45 00 10 	lw r5,(r2+16)                                  
 8006094:	5c 25 00 03 	bne r1,r5,80060a0 <_Thread_Yield_processor+0x70><== NEVER TAKEN
        _Thread_Heir = (Thread_Control *) ready->first;               
 8006098:	28 61 00 00 	lw r1,(r3+0)                                   
 800609c:	58 41 00 10 	sw (r2+16),r1                                  
      _Context_Switch_necessary = true;                               
 80060a0:	78 01 08 01 	mvhi r1,0x801                                  
 80060a4:	38 21 39 e8 	ori r1,r1,0x39e8                               
 80060a8:	34 02 00 01 	mvi r2,1                                       
 80060ac:	30 22 00 18 	sb (r1+24),r2                                  
 80060b0:	e0 00 00 05 	bi 80060c4 <_Thread_Yield_processor+0x94>      
    }                                                                 
    else if ( !_Thread_Is_heir( executing ) )                         
 80060b4:	28 43 00 10 	lw r3,(r2+16)                                  
 80060b8:	44 23 00 03 	be r1,r3,80060c4 <_Thread_Yield_processor+0x94><== ALWAYS TAKEN
      _Context_Switch_necessary = true;                               
 80060bc:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
 80060c0:	30 41 00 18 	sb (r2+24),r1                                  <== NOT EXECUTED
                                                                      
  _ISR_Enable( level );                                               
 80060c4:	d0 04 00 00 	wcsr IE,r4                                     
}                                                                     
 80060c8:	c3 a0 00 00 	ret                                            
                                                                      

08009560 <_Thread_queue_Enqueue_fifo>: ) { Thread_blocking_operation_States sync_state; ISR_Level level; _ISR_Disable( level );
 8009560:	90 00 20 00 	rcsr r4,IE                                     
 8009564:	34 05 ff fe 	mvi r5,-2                                      
 8009568:	a0 85 28 00 	and r5,r4,r5                                   
 800956c:	d0 05 00 00 	wcsr IE,r5                                     
                                                                      
    sync_state = the_thread_queue->sync_state;                        
 8009570:	28 25 00 30 	lw r5,(r1+48)                                  
    the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
    if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) {   
 8009574:	34 06 00 01 	mvi r6,1                                       
  ISR_Level                        level;                             
                                                                      
  _ISR_Disable( level );                                              
                                                                      
    sync_state = the_thread_queue->sync_state;                        
    the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
 8009578:	58 20 00 30 	sw (r1+48),r0                                  
    if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) {   
 800957c:	5c a6 00 0a 	bne r5,r6,80095a4 <_Thread_queue_Enqueue_fifo+0x44><== NEVER TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 8009580:	34 23 00 04 	addi r3,r1,4                                   
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
 8009584:	58 43 00 00 	sw (r2+0),r3                                   
  old_last_node       = the_chain->last;                              
 8009588:	28 23 00 08 	lw r3,(r1+8)                                   
  the_chain->last     = the_node;                                     
 800958c:	58 22 00 08 	sw (r1+8),r2                                   
  old_last_node->next = the_node;                                     
 8009590:	58 62 00 00 	sw (r3+0),r2                                   
  the_node->previous  = old_last_node;                                
 8009594:	58 43 00 04 	sw (r2+4),r3                                   
      _Chain_Append_unprotected(                                      
        &the_thread_queue->Queues.Fifo,                               
        &the_thread->Object.Node                                      
      );                                                              
      the_thread->Wait.queue = the_thread_queue;                      
 8009598:	58 41 00 44 	sw (r2+68),r1                                  
                                                                      
      the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
      _ISR_Enable( level );                                           
 800959c:	d0 04 00 00 	wcsr IE,r4                                     
      return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;              
 80095a0:	e0 00 00 02 	bi 80095a8 <_Thread_queue_Enqueue_fifo+0x48>   
   *  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;                                                   
 80095a4:	58 64 00 00 	sw (r3+0),r4                                   <== NOT EXECUTED
  return sync_state;                                                  
}                                                                     
 80095a8:	b8 a0 08 00 	mv r1,r5                                       
 80095ac:	c3 a0 00 00 	ret                                            
                                                                      

080056f4 <_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 ) {
 80056f4:	37 9c ff c8 	addi sp,sp,-56                                 
 80056f8:	5b 8b 00 38 	sw (sp+56),r11                                 
 80056fc:	5b 8c 00 34 	sw (sp+52),r12                                 
 8005700:	5b 8d 00 30 	sw (sp+48),r13                                 
 8005704:	5b 8e 00 2c 	sw (sp+44),r14                                 
 8005708:	5b 8f 00 28 	sw (sp+40),r15                                 
 800570c:	5b 90 00 24 	sw (sp+36),r16                                 
 8005710:	5b 91 00 20 	sw (sp+32),r17                                 
 8005714:	5b 92 00 1c 	sw (sp+28),r18                                 
 8005718:	5b 93 00 18 	sw (sp+24),r19                                 
 800571c:	5b 94 00 14 	sw (sp+20),r20                                 
 8005720:	5b 95 00 10 	sw (sp+16),r21                                 
 8005724:	5b 96 00 0c 	sw (sp+12),r22                                 
 8005728:	5b 97 00 08 	sw (sp+8),r23                                  
 800572c:	5b 9d 00 04 	sw (sp+4),ra                                   
  Priority_Control     priority;                                      
  States_Control       block_state;                                   
                                                                      
  _Chain_Initialize_empty( &the_thread->Wait.Block2n );               
                                                                      
  priority     = the_thread->current_priority;                        
 8005730:	28 50 00 14 	lw r16,(r2+20)                                 
Thread_blocking_operation_States _Thread_queue_Enqueue_priority (     
  Thread_queue_Control *the_thread_queue,                             
  Thread_Control       *the_thread,                                   
  ISR_Level            *level_p                                       
)                                                                     
{                                                                     
 8005734:	b8 20 68 00 	mv r13,r1                                      
 8005738:	34 41 00 3c 	addi r1,r2,60                                  
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
 800573c:	58 41 00 38 	sw (r2+56),r1                                  
  Chain_Node          *previous_node;                                 
  Chain_Node          *search_node;                                   
  Priority_Control     priority;                                      
  States_Control       block_state;                                   
                                                                      
  _Chain_Initialize_empty( &the_thread->Wait.Block2n );               
 8005740:	34 41 00 38 	addi r1,r2,56                                  
  the_chain->permanent_null = NULL;                                   
  the_chain->last           = _Chain_Head(the_chain);                 
 8005744:	58 41 00 40 	sw (r2+64),r1                                  
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
  the_chain->permanent_null = NULL;                                   
 8005748:	58 40 00 3c 	sw (r2+60),r0                                  
Thread_blocking_operation_States _Thread_queue_Enqueue_priority (     
  Thread_queue_Control *the_thread_queue,                             
  Thread_Control       *the_thread,                                   
  ISR_Level            *level_p                                       
)                                                                     
{                                                                     
 800574c:	b8 40 58 00 	mv r11,r2                                      
                                                                      
RTEMS_INLINE_ROUTINE uint32_t   _Thread_queue_Header_number (         
  Priority_Control the_priority                                       
)                                                                     
{                                                                     
  return (the_priority / TASK_QUEUE_DATA_PRIORITIES_PER_HEADER);      
 8005750:	ba 00 08 00 	mv r1,r16                                      
 8005754:	34 02 00 06 	mvi r2,6                                       
 8005758:	b8 60 a8 00 	mv r21,r3                                      
 800575c:	f8 00 2c 8e 	calli 8010994 <__lshrsi3>                      
                                                                      
  _Chain_Initialize_empty( &the_thread->Wait.Block2n );               
                                                                      
  priority     = the_thread->current_priority;                        
  header_index = _Thread_queue_Header_number( priority );             
  header       = &the_thread_queue->Queues.Priority[ header_index ];  
 8005760:	34 02 00 01 	mvi r2,1                                       
 8005764:	b8 20 70 00 	mv r14,r1                                      
 8005768:	f8 00 2c 3d 	calli 801085c <__ashlsi3>                      
 800576c:	34 02 00 02 	mvi r2,2                                       
 8005770:	b4 2e 08 00 	add r1,r1,r14                                  
 8005774:	f8 00 2c 3a 	calli 801085c <__ashlsi3>                      
  the_thread->Wait.queue = the_thread_queue;                          
  _ISR_Enable( level );                                               
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
                                                                      
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
 8005778:	78 12 08 01 	mvhi r18,0x801                                 
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_queue_Is_reverse_search (           
  Priority_Control the_priority                                       
)                                                                     
{                                                                     
  return ( the_priority & TASK_QUEUE_DATA_REVERSE_SEARCH_MASK );      
 800577c:	22 02 00 20 	andi r2,r16,0x20                               
                                                                      
  _Chain_Initialize_empty( &the_thread->Wait.Block2n );               
                                                                      
  priority     = the_thread->current_priority;                        
  header_index = _Thread_queue_Header_number( priority );             
  header       = &the_thread_queue->Queues.Priority[ header_index ];  
 8005780:	b5 a1 b8 00 	add r23,r13,r1                                 
  block_state  = the_thread_queue->state;                             
 8005784:	29 b3 00 38 	lw r19,(r13+56)                                
  the_thread->Wait.queue = the_thread_queue;                          
  _ISR_Enable( level );                                               
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
                                                                      
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
 8005788:	3a 52 30 c0 	ori r18,r18,0x30c0                             
                                                                      
  _ISR_Disable( level );                                              
 800578c:	34 16 ff fe 	mvi r22,-2                                     
  priority     = the_thread->current_priority;                        
  header_index = _Thread_queue_Header_number( priority );             
  header       = &the_thread_queue->Queues.Priority[ header_index ];  
  block_state  = the_thread_queue->state;                             
                                                                      
  if ( _Thread_queue_Is_reverse_search( priority ) )                  
 8005790:	5c 40 00 30 	bne r2,r0,8005850 <_Thread_queue_Enqueue_priority+0x15c>
    goto restart_reverse_search;                                      
                                                                      
restart_forward_search:                                               
  search_priority = PRIORITY_MINIMUM - 1;                             
  _ISR_Disable( level );                                              
 8005794:	34 14 ff fe 	mvi r20,-2                                     
 8005798:	90 00 78 00 	rcsr r15,IE                                    
 800579c:	a1 f4 90 00 	and r18,r15,r20                                
 80057a0:	d0 12 00 00 	wcsr IE,r18                                    
  search_thread = (Thread_Control *) header->first;                   
 80057a4:	34 02 00 01 	mvi r2,1                                       
 80057a8:	b9 c0 08 00 	mv r1,r14                                      
 80057ac:	f8 00 2c 2c 	calli 801085c <__ashlsi3>                      
 80057b0:	b4 2e 08 00 	add r1,r1,r14                                  
 80057b4:	34 02 00 02 	mvi r2,2                                       
 80057b8:	f8 00 2c 29 	calli 801085c <__ashlsi3>                      
 80057bc:	b5 a1 08 00 	add r1,r13,r1                                  
 80057c0:	28 2c 00 00 	lw r12,(r1+0)                                  
                                                                      
  if ( _Thread_queue_Is_reverse_search( priority ) )                  
    goto restart_reverse_search;                                      
                                                                      
restart_forward_search:                                               
  search_priority = PRIORITY_MINIMUM - 1;                             
 80057c4:	34 11 ff ff 	mvi r17,-1                                     
  _ISR_Disable( level );                                              
  search_thread = (Thread_Control *) header->first;                   
  while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {  
 80057c8:	e0 00 00 0b 	bi 80057f4 <_Thread_queue_Enqueue_priority+0x100>
    search_priority = search_thread->current_priority;                
 80057cc:	29 91 00 14 	lw r17,(r12+20)                                
    if ( priority <= search_priority )                                
 80057d0:	52 30 00 12 	bgeu r17,r16,8005818 <_Thread_queue_Enqueue_priority+0x124>
      break;                                                          
    search_priority = search_thread->current_priority;                
    if ( priority <= search_priority )                                
      break;                                                          
#endif                                                                
    _ISR_Flash( level );                                              
 80057d4:	d0 0f 00 00 	wcsr IE,r15                                    
 80057d8:	d0 12 00 00 	wcsr IE,r18                                    
RTEMS_INLINE_ROUTINE bool _States_Are_set (                           
  States_Control the_states,                                          
  States_Control mask                                                 
)                                                                     
{                                                                     
   return ( (the_states & mask) != STATES_READY);                     
 80057dc:	29 81 00 10 	lw r1,(r12+16)                                 
 80057e0:	a2 61 08 00 	and r1,r19,r1                                  
    if ( !_States_Are_set( search_thread->current_state, block_state) ) {
 80057e4:	5c 20 00 03 	bne r1,r0,80057f0 <_Thread_queue_Enqueue_priority+0xfc><== ALWAYS TAKEN
      _ISR_Enable( level );                                           
 80057e8:	d0 0f 00 00 	wcsr IE,r15                                    <== NOT EXECUTED
      goto restart_forward_search;                                    
 80057ec:	e3 ff ff eb 	bi 8005798 <_Thread_queue_Enqueue_priority+0xa4><== NOT EXECUTED
    }                                                                 
    search_thread =                                                   
       (Thread_Control *)search_thread->Object.Node.next;             
 80057f0:	29 8c 00 00 	lw r12,(r12+0)                                 
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 80057f4:	34 02 00 01 	mvi r2,1                                       
 80057f8:	b9 c0 08 00 	mv r1,r14                                      
 80057fc:	f8 00 2c 18 	calli 801085c <__ashlsi3>                      
 8005800:	b4 2e 08 00 	add r1,r1,r14                                  
 8005804:	34 02 00 02 	mvi r2,2                                       
 8005808:	f8 00 2c 15 	calli 801085c <__ashlsi3>                      
 800580c:	b5 a1 08 00 	add r1,r13,r1                                  
 8005810:	34 21 00 04 	addi r1,r1,4                                   
                                                                      
restart_forward_search:                                               
  search_priority = PRIORITY_MINIMUM - 1;                             
  _ISR_Disable( level );                                              
  search_thread = (Thread_Control *) header->first;                   
  while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {  
 8005814:	5d 81 ff ee 	bne r12,r1,80057cc <_Thread_queue_Enqueue_priority+0xd8>
    }                                                                 
    search_thread =                                                   
       (Thread_Control *)search_thread->Object.Node.next;             
  }                                                                   
                                                                      
  if ( the_thread_queue->sync_state !=                                
 8005818:	29 a3 00 30 	lw r3,(r13+48)                                 
 800581c:	34 02 00 01 	mvi r2,1                                       
 8005820:	b9 e0 08 00 	mv r1,r15                                      
 8005824:	5c 62 00 3c 	bne r3,r2,8005914 <_Thread_queue_Enqueue_priority+0x220><== NEVER TAKEN
       THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )                   
    goto synchronize;                                                 
                                                                      
  the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
 8005828:	59 a0 00 30 	sw (r13+48),r0                                 
                                                                      
  if ( priority == search_priority )                                  
 800582c:	46 11 00 31 	be r16,r17,80058f0 <_Thread_queue_Enqueue_priority+0x1fc>
    goto equal_priority;                                              
                                                                      
  search_node   = (Chain_Node *) search_thread;                       
  previous_node = search_node->previous;                              
 8005830:	29 81 00 04 	lw r1,(r12+4)                                  
  the_node      = (Chain_Node *) the_thread;                          
                                                                      
  the_node->next         = search_node;                               
 8005834:	59 6c 00 00 	sw (r11+0),r12                                 
  the_node->previous     = previous_node;                             
 8005838:	59 61 00 04 	sw (r11+4),r1                                  
  previous_node->next    = the_node;                                  
 800583c:	58 2b 00 00 	sw (r1+0),r11                                  
  search_node->previous  = the_node;                                  
 8005840:	59 8b 00 04 	sw (r12+4),r11                                 
  the_thread->Wait.queue = the_thread_queue;                          
 8005844:	59 6d 00 44 	sw (r11+68),r13                                
  _ISR_Enable( level );                                               
 8005848:	d0 0f 00 00 	wcsr IE,r15                                    
 800584c:	e0 00 00 27 	bi 80058e8 <_Thread_queue_Enqueue_priority+0x1f4>
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
                                                                      
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
 8005850:	42 51 00 00 	lbu r17,(r18+0)                                
 8005854:	36 31 00 01 	addi r17,r17,1                                 
                                                                      
  _ISR_Disable( level );                                              
 8005858:	90 00 78 00 	rcsr r15,IE                                    
 800585c:	a1 f6 a0 00 	and r20,r15,r22                                
 8005860:	d0 14 00 00 	wcsr IE,r20                                    
  search_thread = (Thread_Control *) header->last;                    
 8005864:	34 02 00 01 	mvi r2,1                                       
 8005868:	b9 c0 08 00 	mv r1,r14                                      
 800586c:	f8 00 2b fc 	calli 801085c <__ashlsi3>                      
 8005870:	b4 2e 08 00 	add r1,r1,r14                                  
 8005874:	34 02 00 02 	mvi r2,2                                       
 8005878:	f8 00 2b f9 	calli 801085c <__ashlsi3>                      
 800587c:	b5 a1 08 00 	add r1,r13,r1                                  
 8005880:	28 2c 00 08 	lw r12,(r1+8)                                  
  while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {  
 8005884:	e0 00 00 0b 	bi 80058b0 <_Thread_queue_Enqueue_priority+0x1bc>
    search_priority = search_thread->current_priority;                
 8005888:	29 91 00 14 	lw r17,(r12+20)                                
    if ( priority >= search_priority )                                
 800588c:	52 11 00 0a 	bgeu r16,r17,80058b4 <_Thread_queue_Enqueue_priority+0x1c0>
      break;                                                          
    search_priority = search_thread->current_priority;                
    if ( priority >= search_priority )                                
      break;                                                          
#endif                                                                
    _ISR_Flash( level );                                              
 8005890:	d0 0f 00 00 	wcsr IE,r15                                    
 8005894:	d0 14 00 00 	wcsr IE,r20                                    
 8005898:	29 81 00 10 	lw r1,(r12+16)                                 
 800589c:	a2 61 08 00 	and r1,r19,r1                                  
    if ( !_States_Are_set( search_thread->current_state, block_state) ) {
 80058a0:	5c 20 00 03 	bne r1,r0,80058ac <_Thread_queue_Enqueue_priority+0x1b8><== ALWAYS TAKEN
      _ISR_Enable( level );                                           
 80058a4:	d0 0f 00 00 	wcsr IE,r15                                    <== NOT EXECUTED
      goto restart_reverse_search;                                    
 80058a8:	e3 ff ff ea 	bi 8005850 <_Thread_queue_Enqueue_priority+0x15c><== NOT EXECUTED
    }                                                                 
    search_thread = (Thread_Control *)                                
                         search_thread->Object.Node.previous;         
 80058ac:	29 8c 00 04 	lw r12,(r12+4)                                 
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
                                                                      
  _ISR_Disable( level );                                              
  search_thread = (Thread_Control *) header->last;                    
  while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {  
 80058b0:	5d 97 ff f6 	bne r12,r23,8005888 <_Thread_queue_Enqueue_priority+0x194>
    }                                                                 
    search_thread = (Thread_Control *)                                
                         search_thread->Object.Node.previous;         
  }                                                                   
                                                                      
  if ( the_thread_queue->sync_state !=                                
 80058b4:	29 a3 00 30 	lw r3,(r13+48)                                 
 80058b8:	34 02 00 01 	mvi r2,1                                       
 80058bc:	b9 e0 08 00 	mv r1,r15                                      
 80058c0:	5c 62 00 15 	bne r3,r2,8005914 <_Thread_queue_Enqueue_priority+0x220><== NEVER TAKEN
       THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )                   
    goto synchronize;                                                 
                                                                      
  the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
 80058c4:	59 a0 00 30 	sw (r13+48),r0                                 
                                                                      
  if ( priority == search_priority )                                  
 80058c8:	46 11 00 0a 	be r16,r17,80058f0 <_Thread_queue_Enqueue_priority+0x1fc>
    goto equal_priority;                                              
                                                                      
  search_node = (Chain_Node *) search_thread;                         
  next_node   = search_node->next;                                    
 80058cc:	29 81 00 00 	lw r1,(r12+0)                                  
  the_node    = (Chain_Node *) the_thread;                            
                                                                      
  the_node->next          = next_node;                                
  the_node->previous      = search_node;                              
 80058d0:	59 6c 00 04 	sw (r11+4),r12                                 
                                                                      
  search_node = (Chain_Node *) search_thread;                         
  next_node   = search_node->next;                                    
  the_node    = (Chain_Node *) the_thread;                            
                                                                      
  the_node->next          = next_node;                                
 80058d4:	59 61 00 00 	sw (r11+0),r1                                  
  the_node->previous      = search_node;                              
  search_node->next       = the_node;                                 
 80058d8:	59 8b 00 00 	sw (r12+0),r11                                 
  next_node->previous    = the_node;                                  
 80058dc:	58 2b 00 04 	sw (r1+4),r11                                  
  the_thread->Wait.queue = the_thread_queue;                          
 80058e0:	59 6d 00 44 	sw (r11+68),r13                                
  _ISR_Enable( level );                                               
 80058e4:	d0 0f 00 00 	wcsr IE,r15                                    
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
 80058e8:	34 01 00 01 	mvi r1,1                                       
 80058ec:	e0 00 00 0c 	bi 800591c <_Thread_queue_Enqueue_priority+0x228>
 80058f0:	35 8c 00 3c 	addi r12,r12,60                                
                                                                      
equal_priority:               /* add at end of priority group */      
  search_node   = _Chain_Tail( &search_thread->Wait.Block2n );        
  previous_node = search_node->previous;                              
 80058f4:	29 81 00 04 	lw r1,(r12+4)                                  
  the_node      = (Chain_Node *) the_thread;                          
                                                                      
  the_node->next         = search_node;                               
 80058f8:	59 6c 00 00 	sw (r11+0),r12                                 
  the_node->previous     = previous_node;                             
 80058fc:	59 61 00 04 	sw (r11+4),r1                                  
  previous_node->next    = the_node;                                  
 8005900:	58 2b 00 00 	sw (r1+0),r11                                  
  search_node->previous  = the_node;                                  
 8005904:	59 8b 00 04 	sw (r12+4),r11                                 
  the_thread->Wait.queue = the_thread_queue;                          
 8005908:	59 6d 00 44 	sw (r11+68),r13                                
  _ISR_Enable( level );                                               
 800590c:	d0 0f 00 00 	wcsr IE,r15                                    
 8005910:	e3 ff ff f6 	bi 80058e8 <_Thread_queue_Enqueue_priority+0x1f4>
   *  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;                                                   
 8005914:	5a a1 00 00 	sw (r21+0),r1                                  <== NOT EXECUTED
  return the_thread_queue->sync_state;                                
 8005918:	29 a1 00 30 	lw r1,(r13+48)                                 <== NOT EXECUTED
}                                                                     
 800591c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005920:	2b 8b 00 38 	lw r11,(sp+56)                                 
 8005924:	2b 8c 00 34 	lw r12,(sp+52)                                 
 8005928:	2b 8d 00 30 	lw r13,(sp+48)                                 
 800592c:	2b 8e 00 2c 	lw r14,(sp+44)                                 
 8005930:	2b 8f 00 28 	lw r15,(sp+40)                                 
 8005934:	2b 90 00 24 	lw r16,(sp+36)                                 
 8005938:	2b 91 00 20 	lw r17,(sp+32)                                 
 800593c:	2b 92 00 1c 	lw r18,(sp+28)                                 
 8005940:	2b 93 00 18 	lw r19,(sp+24)                                 
 8005944:	2b 94 00 14 	lw r20,(sp+20)                                 
 8005948:	2b 95 00 10 	lw r21,(sp+16)                                 
 800594c:	2b 96 00 0c 	lw r22,(sp+12)                                 
 8005950:	2b 97 00 08 	lw r23,(sp+8)                                  
 8005954:	37 9c 00 38 	addi sp,sp,56                                  
 8005958:	c3 a0 00 00 	ret                                            
                                                                      

08005630 <_Thread_queue_Enqueue_with_handler>: void _Thread_queue_Enqueue_with_handler( Thread_queue_Control *the_thread_queue, Watchdog_Interval timeout, Thread_queue_Timeout_callout handler ) {
 8005630:	37 9c ff e8 	addi sp,sp,-24                                 
 8005634:	5b 8b 00 14 	sw (sp+20),r11                                 
 8005638:	5b 8c 00 10 	sw (sp+16),r12                                 
 800563c:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8005640:	5b 8e 00 08 	sw (sp+8),r14                                  
 8005644:	5b 9d 00 04 	sw (sp+4),ra                                   
 8005648:	b8 20 60 00 	mv r12,r1                                      
    Thread_queue_Control *,                                           
    Thread_Control *,                                                 
    ISR_Level *                                                       
  );                                                                  
                                                                      
  the_thread = _Thread_Executing;                                     
 800564c:	78 01 08 01 	mvhi r1,0x801                                  
 8005650:	38 21 39 e8 	ori r1,r1,0x39e8                               
 8005654:	28 2b 00 0c 	lw r11,(r1+12)                                 
void _Thread_queue_Enqueue_with_handler(                              
  Thread_queue_Control         *the_thread_queue,                     
  Watchdog_Interval             timeout,                              
  Thread_queue_Timeout_callout  handler                               
)                                                                     
{                                                                     
 8005658:	b8 40 68 00 	mv r13,r2                                      
  else                                                                
#endif                                                                
  /*                                                                  
   *  Set the blocking state for this thread queue in the thread.     
   */                                                                 
  _Thread_Set_state( the_thread, the_thread_queue->state );           
 800565c:	29 82 00 38 	lw r2,(r12+56)                                 
 8005660:	b9 60 08 00 	mv r1,r11                                      
void _Thread_queue_Enqueue_with_handler(                              
  Thread_queue_Control         *the_thread_queue,                     
  Watchdog_Interval             timeout,                              
  Thread_queue_Timeout_callout  handler                               
)                                                                     
{                                                                     
 8005664:	b8 60 70 00 	mv r14,r3                                      
  else                                                                
#endif                                                                
  /*                                                                  
   *  Set the blocking state for this thread queue in the thread.     
   */                                                                 
  _Thread_Set_state( the_thread, the_thread_queue->state );           
 8005668:	f8 00 01 69 	calli 8005c0c <_Thread_Set_state>              
                                                                      
  /*                                                                  
   *  If the thread wants to timeout, then schedule its timer.        
   */                                                                 
  if ( timeout ) {                                                    
 800566c:	45 a0 00 0b 	be r13,r0,8005698 <_Thread_queue_Enqueue_with_handler+0x68>
    _Watchdog_Initialize(                                             
 8005670:	29 61 00 08 	lw r1,(r11+8)                                  
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 8005674:	59 60 00 50 	sw (r11+80),r0                                 
  the_watchdog->routine   = routine;                                  
 8005678:	59 6e 00 64 	sw (r11+100),r14                               
  the_watchdog->id        = id;                                       
 800567c:	59 61 00 68 	sw (r11+104),r1                                
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 8005680:	78 01 08 01 	mvhi r1,0x801                                  
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
  the_watchdog->id        = id;                                       
  the_watchdog->user_data = user_data;                                
 8005684:	59 60 00 6c 	sw (r11+108),r0                                
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 8005688:	59 6d 00 54 	sw (r11+84),r13                                
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 800568c:	38 21 38 e0 	ori r1,r1,0x38e0                               
 8005690:	35 62 00 48 	addi r2,r11,72                                 
 8005694:	f8 00 03 bd 	calli 8006588 <_Watchdog_Insert>               
  }                                                                   
                                                                      
  /*                                                                  
   *  Now enqueue the thread per the discipline for this thread queue.
   */                                                                 
  if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
 8005698:	29 82 00 34 	lw r2,(r12+52)                                 
    enqueue_p = _Thread_queue_Enqueue_priority;                       
  else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */                     
    enqueue_p = _Thread_queue_Enqueue_fifo;                           
 800569c:	78 04 08 00 	mvhi r4,0x800                                  
  }                                                                   
                                                                      
  /*                                                                  
   *  Now enqueue the thread per the discipline for this thread queue.
   */                                                                 
  if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
 80056a0:	34 01 00 01 	mvi r1,1                                       
    enqueue_p = _Thread_queue_Enqueue_priority;                       
  else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */                     
    enqueue_p = _Thread_queue_Enqueue_fifo;                           
 80056a4:	38 84 95 60 	ori r4,r4,0x9560                               
  }                                                                   
                                                                      
  /*                                                                  
   *  Now enqueue the thread per the discipline for this thread queue.
   */                                                                 
  if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
 80056a8:	5c 41 00 03 	bne r2,r1,80056b4 <_Thread_queue_Enqueue_with_handler+0x84>
    enqueue_p = _Thread_queue_Enqueue_priority;                       
 80056ac:	78 04 08 00 	mvhi r4,0x800                                  
 80056b0:	38 84 56 f4 	ori r4,r4,0x56f4                               
  else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */                     
    enqueue_p = _Thread_queue_Enqueue_fifo;                           
                                                                      
  sync_state = (*enqueue_p)( the_thread_queue, the_thread, &level );  
 80056b4:	b9 60 10 00 	mv r2,r11                                      
 80056b8:	b9 80 08 00 	mv r1,r12                                      
 80056bc:	37 83 00 18 	addi r3,sp,24                                  
 80056c0:	d8 80 00 00 	call r4                                        
  if ( sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )     
 80056c4:	34 02 00 01 	mvi r2,1                                       
 80056c8:	44 22 00 04 	be r1,r2,80056d8 <_Thread_queue_Enqueue_with_handler+0xa8><== ALWAYS TAKEN
    _Thread_blocking_operation_Cancel( sync_state, the_thread, level );
 80056cc:	2b 83 00 18 	lw r3,(sp+24)                                  <== NOT EXECUTED
 80056d0:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 80056d4:	f8 00 0f 1f 	calli 8009350 <_Thread_blocking_operation_Cancel><== NOT EXECUTED
}                                                                     
 80056d8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80056dc:	2b 8b 00 14 	lw r11,(sp+20)                                 
 80056e0:	2b 8c 00 10 	lw r12,(sp+16)                                 
 80056e4:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 80056e8:	2b 8e 00 08 	lw r14,(sp+8)                                  
 80056ec:	37 9c 00 18 	addi sp,sp,24                                  
 80056f0:	c3 a0 00 00 	ret                                            
                                                                      

080095e0 <_Thread_queue_Extract_priority_helper>: void _Thread_queue_Extract_priority_helper( Thread_queue_Control *the_thread_queue __attribute__((unused)), Thread_Control *the_thread, bool requeuing ) {
 80095e0:	37 9c ff f8 	addi sp,sp,-8                                  
 80095e4:	5b 8b 00 08 	sw (sp+8),r11                                  
 80095e8:	5b 9d 00 04 	sw (sp+4),ra                                   
 80095ec:	b8 40 58 00 	mv r11,r2                                      
 80095f0:	20 63 00 ff 	andi r3,r3,0xff                                
  Chain_Node     *new_first_node;                                     
  Chain_Node     *new_second_node;                                    
  Chain_Node     *last_node;                                          
                                                                      
  the_node = (Chain_Node *) the_thread;                               
  _ISR_Disable( level );                                              
 80095f4:	90 00 10 00 	rcsr r2,IE                                     
 80095f8:	34 01 ff fe 	mvi r1,-2                                      
 80095fc:	a0 41 08 00 	and r1,r2,r1                                   
 8009600:	d0 01 00 00 	wcsr IE,r1                                     
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (        
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_WAITING_ON_THREAD_QUEUE);              
 8009604:	78 05 08 01 	mvhi r5,0x801                                  
 8009608:	38 a5 1d d0 	ori r5,r5,0x1dd0                               
 800960c:	29 64 00 10 	lw r4,(r11+16)                                 
 8009610:	28 a1 00 00 	lw r1,(r5+0)                                   
 8009614:	a0 81 08 00 	and r1,r4,r1                                   
  if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
 8009618:	5c 20 00 03 	bne r1,r0,8009624 <_Thread_queue_Extract_priority_helper+0x44>
    _ISR_Enable( level );                                             
 800961c:	d0 02 00 00 	wcsr IE,r2                                     
    return;                                                           
 8009620:	e0 00 00 28 	bi 80096c0 <_Thread_queue_Extract_priority_helper+0xe0>
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
 8009624:	29 61 00 38 	lw r1,(r11+56)                                 
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 8009628:	35 66 00 3c 	addi r6,r11,60                                 
                                                                      
  /*                                                                  
   *  The thread was actually waiting on a thread queue so let's remove it.
   */                                                                 
                                                                      
  next_node     = the_node->next;                                     
 800962c:	29 64 00 00 	lw r4,(r11+0)                                  
  previous_node = the_node->previous;                                 
 8009630:	29 65 00 04 	lw r5,(r11+4)                                  
                                                                      
  if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) {              
 8009634:	44 26 00 0f 	be r1,r6,8009670 <_Thread_queue_Extract_priority_helper+0x90>
    new_first_node   = the_thread->Wait.Block2n.first;                
    new_first_thread = (Thread_Control *) new_first_node;             
    last_node        = the_thread->Wait.Block2n.last;                 
 8009638:	29 66 00 40 	lw r6,(r11+64)                                 
    new_second_node  = new_first_node->next;                          
 800963c:	28 27 00 00 	lw r7,(r1+0)                                   
                                                                      
    previous_node->next      = new_first_node;                        
    next_node->previous      = new_first_node;                        
 8009640:	58 81 00 04 	sw (r4+4),r1                                   
    new_first_node   = the_thread->Wait.Block2n.first;                
    new_first_thread = (Thread_Control *) new_first_node;             
    last_node        = the_thread->Wait.Block2n.last;                 
    new_second_node  = new_first_node->next;                          
                                                                      
    previous_node->next      = new_first_node;                        
 8009644:	58 a1 00 00 	sw (r5+0),r1                                   
    next_node->previous      = new_first_node;                        
    new_first_node->next     = next_node;                             
 8009648:	58 24 00 00 	sw (r1+0),r4                                   
    new_first_node->previous = previous_node;                         
 800964c:	58 25 00 04 	sw (r1+4),r5                                   
                                                                      
    if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) {   
 8009650:	44 26 00 0a 	be r1,r6,8009678 <_Thread_queue_Extract_priority_helper+0x98>
                                        /* > two threads on 2-n */    
      new_second_node->previous =                                     
                _Chain_Head( &new_first_thread->Wait.Block2n );       
 8009654:	34 24 00 38 	addi r4,r1,56                                  
    new_first_node->next     = next_node;                             
    new_first_node->previous = previous_node;                         
                                                                      
    if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) {   
                                        /* > two threads on 2-n */    
      new_second_node->previous =                                     
 8009658:	58 e4 00 04 	sw (r7+4),r4                                   
                _Chain_Head( &new_first_thread->Wait.Block2n );       
      new_first_thread->Wait.Block2n.first = new_second_node;         
 800965c:	58 27 00 38 	sw (r1+56),r7                                  
                                                                      
      new_first_thread->Wait.Block2n.last = last_node;                
 8009660:	58 26 00 40 	sw (r1+64),r6                                  
 8009664:	34 21 00 3c 	addi r1,r1,60                                  
      last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n );
 8009668:	58 c1 00 00 	sw (r6+0),r1                                   
 800966c:	e0 00 00 03 	bi 8009678 <_Thread_queue_Extract_priority_helper+0x98>
    }                                                                 
  } else {                                                            
    previous_node->next = next_node;                                  
 8009670:	58 a4 00 00 	sw (r5+0),r4                                   
    next_node->previous = previous_node;                              
 8009674:	58 85 00 04 	sw (r4+4),r5                                   
                                                                      
  /*                                                                  
   *  If we are not supposed to touch timers or the thread's state, return.
   */                                                                 
                                                                      
  if ( requeuing ) {                                                  
 8009678:	44 60 00 03 	be r3,r0,8009684 <_Thread_queue_Extract_priority_helper+0xa4>
    _ISR_Enable( level );                                             
 800967c:	d0 02 00 00 	wcsr IE,r2                                     
    return;                                                           
 8009680:	e0 00 00 10 	bi 80096c0 <_Thread_queue_Extract_priority_helper+0xe0>
  }                                                                   
                                                                      
  if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {                 
 8009684:	29 63 00 50 	lw r3,(r11+80)                                 
 8009688:	34 01 00 02 	mvi r1,2                                       
 800968c:	44 61 00 03 	be r3,r1,8009698 <_Thread_queue_Extract_priority_helper+0xb8><== NEVER TAKEN
    _ISR_Enable( level );                                             
 8009690:	d0 02 00 00 	wcsr IE,r2                                     
 8009694:	e0 00 00 06 	bi 80096ac <_Thread_queue_Extract_priority_helper+0xcc>
 8009698:	34 01 00 03 	mvi r1,3                                       <== NOT EXECUTED
 800969c:	59 61 00 50 	sw (r11+80),r1                                 <== NOT EXECUTED
  } else {                                                            
    _Watchdog_Deactivate( &the_thread->Timer );                       
    _ISR_Enable( level );                                             
 80096a0:	d0 02 00 00 	wcsr IE,r2                                     <== NOT EXECUTED
    (void) _Watchdog_Remove( &the_thread->Timer );                    
 80096a4:	35 61 00 48 	addi r1,r11,72                                 <== NOT EXECUTED
 80096a8:	fb ff f4 15 	calli 80066fc <_Watchdog_Remove>               <== NOT EXECUTED
 80096ac:	78 03 08 01 	mvhi r3,0x801                                  
 80096b0:	38 63 1d d8 	ori r3,r3,0x1dd8                               
 80096b4:	28 62 00 00 	lw r2,(r3+0)                                   
 80096b8:	b9 60 08 00 	mv r1,r11                                      
 80096bc:	fb ff ff 3d 	calli 80093b0 <_Thread_Clear_state>            
                                                                      
#if defined(RTEMS_MULTIPROCESSING)                                    
  if ( !_Objects_Is_local_id( the_thread->Object.id ) )               
    _Thread_MP_Free_proxy( the_thread );                              
#endif                                                                
}                                                                     
 80096c0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80096c4:	2b 8b 00 08 	lw r11,(sp+8)                                  
 80096c8:	37 9c 00 08 	addi sp,sp,8                                   
 80096cc:	c3 a0 00 00 	ret                                            
                                                                      

08005a70 <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) {
 8005a70:	37 9c ff ec 	addi sp,sp,-20                                 
 8005a74:	5b 8b 00 10 	sw (sp+16),r11                                 
 8005a78:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8005a7c:	5b 8d 00 08 	sw (sp+8),r13                                  
 8005a80:	5b 9d 00 04 	sw (sp+4),ra                                   
 8005a84:	b8 20 58 00 	mv r11,r1                                      
 8005a88:	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 )                                            
 8005a8c:	44 20 00 19 	be r1,r0,8005af0 <_Thread_queue_Requeue+0x80>  <== 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 ) {
 8005a90:	28 22 00 34 	lw r2,(r1+52)                                  
 8005a94:	34 01 00 01 	mvi r1,1                                       
 8005a98:	5c 41 00 16 	bne r2,r1,8005af0 <_Thread_queue_Requeue+0x80> <== NEVER TAKEN
    Thread_queue_Control *tq = the_thread_queue;                      
    ISR_Level             level;                                      
    ISR_Level             level_ignored;                              
                                                                      
    _ISR_Disable( level );                                            
 8005a9c:	90 00 68 00 	rcsr r13,IE                                    
 8005aa0:	34 01 ff fe 	mvi r1,-2                                      
 8005aa4:	a1 a1 08 00 	and r1,r13,r1                                  
 8005aa8:	d0 01 00 00 	wcsr IE,r1                                     
 8005aac:	78 03 08 01 	mvhi r3,0x801                                  
 8005ab0:	38 63 1d d0 	ori r3,r3,0x1dd0                               
 8005ab4:	29 82 00 10 	lw r2,(r12+16)                                 
 8005ab8:	28 61 00 00 	lw r1,(r3+0)                                   
 8005abc:	a0 41 08 00 	and r1,r2,r1                                   
    if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
 8005ac0:	44 20 00 0b 	be r1,r0,8005aec <_Thread_queue_Requeue+0x7c>  <== NEVER TAKEN
                                                                      
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;
 8005ac4:	34 01 00 01 	mvi r1,1                                       
 8005ac8:	59 61 00 30 	sw (r11+48),r1                                 
      _Thread_queue_Enter_critical_section( tq );                     
      _Thread_queue_Extract_priority_helper( tq, the_thread, true );  
 8005acc:	b9 80 10 00 	mv r2,r12                                      
 8005ad0:	b9 60 08 00 	mv r1,r11                                      
 8005ad4:	34 03 00 01 	mvi r3,1                                       
 8005ad8:	f8 00 0e c2 	calli 80095e0 <_Thread_queue_Extract_priority_helper>
      (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
 8005adc:	b9 60 08 00 	mv r1,r11                                      
 8005ae0:	b9 80 10 00 	mv r2,r12                                      
 8005ae4:	37 83 00 14 	addi r3,sp,20                                  
 8005ae8:	fb ff ff 03 	calli 80056f4 <_Thread_queue_Enqueue_priority> 
    }                                                                 
    _ISR_Enable( level );                                             
 8005aec:	d0 0d 00 00 	wcsr IE,r13                                    
  }                                                                   
}                                                                     
 8005af0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005af4:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8005af8:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8005afc:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8005b00:	37 9c 00 14 	addi sp,sp,20                                  
 8005b04:	c3 a0 00 00 	ret                                            
                                                                      

08005b08 <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) {
 8005b08:	37 9c ff f8 	addi sp,sp,-8                                  
 8005b0c:	5b 9d 00 04 	sw (sp+4),ra                                   
  Thread_Control       *the_thread;                                   
  Objects_Locations     location;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 8005b10:	37 82 00 08 	addi r2,sp,8                                   
 8005b14:	fb ff fd 6a 	calli 80050bc <_Thread_Get>                    
  switch ( location ) {                                               
 8005b18:	2b 82 00 08 	lw r2,(sp+8)                                   
 8005b1c:	5c 40 00 07 	bne r2,r0,8005b38 <_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 );                    
 8005b20:	f8 00 0e fd 	calli 8009714 <_Thread_queue_Process_timeout>  
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
 8005b24:	78 01 08 01 	mvhi r1,0x801                                  
 8005b28:	38 21 38 1c 	ori r1,r1,0x381c                               
 8005b2c:	28 22 00 00 	lw r2,(r1+0)                                   
 8005b30:	34 42 ff ff 	addi r2,r2,-1                                  
 8005b34:	58 22 00 00 	sw (r1+0),r2                                   
      _Thread_Unnest_dispatch();                                      
      break;                                                          
  }                                                                   
}                                                                     
 8005b38:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005b3c:	37 9c 00 08 	addi sp,sp,8                                   
 8005b40:	c3 a0 00 00 	ret                                            
                                                                      

08014814 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) {
 8014814:	37 9c ff a4 	addi sp,sp,-92                                 
 8014818:	5b 8b 00 44 	sw (sp+68),r11                                 
 801481c:	5b 8c 00 40 	sw (sp+64),r12                                 
 8014820:	5b 8d 00 3c 	sw (sp+60),r13                                 
 8014824:	5b 8e 00 38 	sw (sp+56),r14                                 
 8014828:	5b 8f 00 34 	sw (sp+52),r15                                 
 801482c:	5b 90 00 30 	sw (sp+48),r16                                 
 8014830:	5b 91 00 2c 	sw (sp+44),r17                                 
 8014834:	5b 92 00 28 	sw (sp+40),r18                                 
 8014838:	5b 93 00 24 	sw (sp+36),r19                                 
 801483c:	5b 94 00 20 	sw (sp+32),r20                                 
 8014840:	5b 95 00 1c 	sw (sp+28),r21                                 
 8014844:	5b 96 00 18 	sw (sp+24),r22                                 
 8014848:	5b 97 00 14 	sw (sp+20),r23                                 
 801484c:	5b 98 00 10 	sw (sp+16),r24                                 
 8014850:	5b 99 00 0c 	sw (sp+12),r25                                 
 8014854:	5b 9b 00 08 	sw (sp+8),fp                                   
 8014858:	5b 9d 00 04 	sw (sp+4),ra                                   
static void _Timer_server_Process_interval_watchdogs(                 
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;            
 801485c:	78 10 08 03 	mvhi r16,0x803                                 
 *  @a arg points to the corresponding timer server control block.    
 */                                                                   
static rtems_task _Timer_server_Body(                                 
  rtems_task_argument arg                                             
)                                                                     
{                                                                     
 8014860:	b8 20 58 00 	mv r11,r1                                      
 8014864:	37 8f 00 48 	addi r15,sp,72                                 
 8014868:	37 81 00 54 	addi r1,sp,84                                  
 801486c:	37 95 00 58 	addi r21,sp,88                                 
 8014870:	37 91 00 4c 	addi r17,sp,76                                 
static void _Timer_server_Process_tod_watchdogs(                      
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
 8014874:	78 0e 08 03 	mvhi r14,0x803                                 
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
 8014878:	5b 95 00 54 	sw (sp+84),r21                                 
  the_chain->permanent_null = NULL;                                   
 801487c:	5b 80 00 58 	sw (sp+88),r0                                  
  the_chain->last           = _Chain_Head(the_chain);                 
 8014880:	5b 81 00 5c 	sw (sp+92),r1                                  
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
 8014884:	5b 91 00 48 	sw (sp+72),r17                                 
  the_chain->permanent_null = NULL;                                   
 8014888:	5b 80 00 4c 	sw (sp+76),r0                                  
  the_chain->last           = _Chain_Head(the_chain);                 
 801488c:	5b 8f 00 50 	sw (sp+80),r15                                 
{                                                                     
  /*                                                                  
   *  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;                                    
 8014890:	b8 20 d8 00 	mv fp,r1                                       
static void _Timer_server_Process_interval_watchdogs(                 
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;            
 8014894:	3a 10 ed 64 	ori r16,r16,0xed64                             
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
 8014898:	35 74 00 30 	addi r20,r11,48                                
                                                                      
  _Chain_Initialize_empty( &insert_chain );                           
  _Chain_Initialize_empty( &fire_chain );                             
                                                                      
  while ( true ) {                                                    
    _Timer_server_Get_watchdogs_that_fire_now( ts, &insert_chain, &fire_chain );
 801489c:	b9 e0 98 00 	mv r19,r15                                     
static void _Timer_server_Process_tod_watchdogs(                      
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
 80148a0:	39 ce ec b4 	ori r14,r14,0xecb4                             
     /*                                                               
      *  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 ); 
 80148a4:	35 6d 00 68 	addi r13,r11,104                               
  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 ) {       
 80148a8:	34 19 00 03 	mvi r25,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 );                                            
 80148ac:	34 12 ff fe 	mvi r18,-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;                                              
 80148b0:	34 18 00 01 	mvi r24,1                                      
                                                                      
static void _Timer_server_Stop_interval_system_watchdog(              
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );        
 80148b4:	35 77 00 08 	addi r23,r11,8                                 
                                                                      
static void _Timer_server_Stop_tod_system_watchdog(                   
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );             
 80148b8:	35 76 00 40 	addi r22,r11,64                                
{                                                                     
  /*                                                                  
   *  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;                                    
 80148bc:	59 7b 00 78 	sw (r11+120),fp                                
static void _Timer_server_Process_interval_watchdogs(                 
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;            
 80148c0:	2a 02 00 00 	lw r2,(r16+0)                                  
                                                                      
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
 80148c4:	29 63 00 3c 	lw r3,(r11+60)                                 
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
 80148c8:	ba 80 08 00 	mv r1,r20                                      
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
 80148cc:	59 62 00 3c 	sw (r11+60),r2                                 
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
 80148d0:	c8 43 10 00 	sub r2,r2,r3                                   
 80148d4:	ba 60 18 00 	mv r3,r19                                      
 80148d8:	f8 00 15 53 	calli 8019e24 <_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;         
 80148dc:	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();
 80148e0:	29 cc 00 00 	lw r12,(r14+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 ) {                                   
 80148e4:	50 8c 00 06 	bgeu r4,r12,80148fc <_Timer_server_Body+0xe8>  
    /*                                                                
     *  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 );
 80148e8:	b9 a0 08 00 	mv r1,r13                                      
 80148ec:	c9 84 10 00 	sub r2,r12,r4                                  
 80148f0:	ba 60 18 00 	mv r3,r19                                      
 80148f4:	f8 00 15 4c 	calli 8019e24 <_Watchdog_Adjust_to_chain>      
 80148f8:	e0 00 00 06 	bi 8014910 <_Timer_server_Body+0xfc>           
                                                                      
  } else if ( snapshot < last_snapshot ) {                            
 80148fc:	51 84 00 05 	bgeu r12,r4,8014910 <_Timer_server_Body+0xfc>  
     /*                                                               
      *  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 ); 
 8014900:	b9 a0 08 00 	mv r1,r13                                      
 8014904:	34 02 00 01 	mvi r2,1                                       
 8014908:	c8 8c 18 00 	sub r3,r4,r12                                  
 801490c:	f8 00 15 0f 	calli 8019d48 <_Watchdog_Adjust>               
  }                                                                   
                                                                      
  watchdogs->last_snapshot = snapshot;                                
 8014910:	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 ) {                 
 8014914:	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 );
 8014918:	29 62 00 78 	lw r2,(r11+120)                                
 801491c:	b8 40 08 00 	mv r1,r2                                       
 8014920:	f8 00 03 6a 	calli 80156c8 <_Chain_Get>                     
 8014924:	b8 20 10 00 	mv r2,r1                                       
                                                                      
    if ( timer == NULL ) {                                            
 8014928:	44 20 00 09 	be r1,r0,801494c <_Timer_server_Body+0x138>    <== ALWAYS TAKEN
static void _Timer_server_Insert_timer(                               
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
 801492c:	28 23 00 38 	lw r3,(r1+56)                                  <== NOT EXECUTED
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
 8014930:	ba 80 08 00 	mv r1,r20                                      <== NOT EXECUTED
static void _Timer_server_Insert_timer(                               
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
 8014934:	44 6c 00 03 	be r3,r12,8014940 <_Timer_server_Body+0x12c>   <== NOT EXECUTED
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
 8014938:	5c 79 ff f8 	bne r3,r25,8014918 <_Timer_server_Body+0x104>  <== NOT EXECUTED
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
 801493c:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 8014940:	34 42 00 10 	addi r2,r2,16                                  <== NOT EXECUTED
 8014944:	f8 00 15 5d 	calli 8019eb8 <_Watchdog_Insert>               <== NOT EXECUTED
 8014948:	e3 ff ff f4 	bi 8014918 <_Timer_server_Body+0x104>          <== 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 );                                            
 801494c:	90 00 10 00 	rcsr r2,IE                                     
 8014950:	a0 52 08 00 	and r1,r2,r18                                  
 8014954:	d0 01 00 00 	wcsr IE,r1                                     
    if ( _Chain_Is_empty( insert_chain ) ) {                          
 8014958:	2b 81 00 54 	lw r1,(sp+84)                                  
 801495c:	5c 35 00 06 	bne r1,r21,8014974 <_Timer_server_Body+0x160>  <== NEVER TAKEN
      ts->insert_chain = NULL;                                        
 8014960:	59 60 00 78 	sw (r11+120),r0                                
      _ISR_Enable( level );                                           
 8014964:	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 ) ) {                          
 8014968:	2b 81 00 48 	lw r1,(sp+72)                                  
 801496c:	5c 31 00 04 	bne r1,r17,801497c <_Timer_server_Body+0x168>  
 8014970:	e0 00 00 15 	bi 80149c4 <_Timer_server_Body+0x1b0>          
      ts->insert_chain = NULL;                                        
      _ISR_Enable( level );                                           
                                                                      
      break;                                                          
    } else {                                                          
      _ISR_Enable( level );                                           
 8014974:	d0 02 00 00 	wcsr IE,r2                                     <== NOT EXECUTED
 8014978:	e3 ff ff d2 	bi 80148c0 <_Timer_server_Body+0xac>           <== NOT EXECUTED
                                                                      
        /*                                                            
         *  It is essential that interrupts are disable here since an interrupt
         *  service routine may remove a watchdog from the chain.     
         */                                                           
        _ISR_Disable( level );                                        
 801497c:	90 00 20 00 	rcsr r4,IE                                     
 8014980:	a0 92 08 00 	and r1,r4,r18                                  
 8014984:	d0 01 00 00 	wcsr IE,r1                                     
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
 8014988:	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))                                   
 801498c:	44 51 00 0c 	be r2,r17,80149bc <_Timer_server_Body+0x1a8>   
{                                                                     
  Chain_Node  *return_node;                                           
  Chain_Node  *new_first;                                             
                                                                      
  return_node         = the_chain->first;                             
  new_first           = return_node->next;                            
 8014990:	28 41 00 00 	lw r1,(r2+0)                                   
  the_chain->first    = new_first;                                    
 8014994:	5b 81 00 48 	sw (sp+72),r1                                  
  new_first->previous = _Chain_Head(the_chain);                       
 8014998:	58 2f 00 04 	sw (r1+4),r15                                  
        watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
        if ( watchdog != NULL ) {                                     
 801499c:	44 40 00 08 	be r2,r0,80149bc <_Timer_server_Body+0x1a8>    <== NEVER TAKEN
          watchdog->state = WATCHDOG_INACTIVE;                        
 80149a0:	58 40 00 08 	sw (r2+8),r0                                   
          _ISR_Enable( level );                                       
 80149a4:	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 );    
 80149a8:	28 43 00 1c 	lw r3,(r2+28)                                  
 80149ac:	28 41 00 20 	lw r1,(r2+32)                                  
 80149b0:	28 42 00 24 	lw r2,(r2+36)                                  
 80149b4:	d8 60 00 00 	call r3                                        
      }                                                               
 80149b8:	e3 ff ff f1 	bi 801497c <_Timer_server_Body+0x168>          
        watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
        if ( watchdog != NULL ) {                                     
          watchdog->state = WATCHDOG_INACTIVE;                        
          _ISR_Enable( level );                                       
        } else {                                                      
          _ISR_Enable( level );                                       
 80149bc:	d0 04 00 00 	wcsr IE,r4                                     
 80149c0:	e3 ff ff bf 	bi 80148bc <_Timer_server_Body+0xa8>           
         *  the active flag of the timer server is true.              
         */                                                           
        (*watchdog->routine)( watchdog->id, watchdog->user_data );    
      }                                                               
    } else {                                                          
      ts->active = false;                                             
 80149c4:	31 60 00 7c 	sb (r11+124),r0                                
                                                                      
      /*                                                              
       *  Block until there is something to do.                       
       */                                                             
      _Thread_Disable_dispatch();                                     
 80149c8:	fb ff ff 53 	calli 8014714 <_Thread_Disable_dispatch>       
        _Thread_Set_state( ts->thread, STATES_DELAYING );             
 80149cc:	29 61 00 00 	lw r1,(r11+0)                                  
 80149d0:	34 02 00 08 	mvi r2,8                                       
 80149d4:	f8 00 11 d1 	calli 8019118 <_Thread_Set_state>              
        _Timer_server_Reset_interval_system_watchdog( ts );           
 80149d8:	b9 60 08 00 	mv r1,r11                                      
 80149dc:	fb ff ff 54 	calli 801472c <_Timer_server_Reset_interval_system_watchdog>
        _Timer_server_Reset_tod_system_watchdog( ts );                
 80149e0:	b9 60 08 00 	mv r1,r11                                      
 80149e4:	fb ff ff 6f 	calli 80147a0 <_Timer_server_Reset_tod_system_watchdog>
      _Thread_Enable_dispatch();                                      
 80149e8:	f8 00 0e 86 	calli 8018400 <_Thread_Enable_dispatch>        
                                                                      
static void _Timer_server_Stop_interval_system_watchdog(              
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );        
 80149ec:	ba e0 08 00 	mv r1,r23                                      
        _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;                                              
 80149f0:	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 );        
 80149f4:	f8 00 15 8e 	calli 801a02c <_Watchdog_Remove>               
                                                                      
static void _Timer_server_Stop_tod_system_watchdog(                   
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );             
 80149f8:	ba c0 08 00 	mv r1,r22                                      
 80149fc:	f8 00 15 8c 	calli 801a02c <_Watchdog_Remove>               
 8014a00:	e3 ff ff af 	bi 80148bc <_Timer_server_Body+0xa8>           
                                                                      

08014a04 <_Timer_server_Schedule_operation_method>: static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) {
 8014a04:	37 9c ff f4 	addi sp,sp,-12                                 
 8014a08:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8014a0c:	5b 8c 00 08 	sw (sp+8),r12                                  
 8014a10:	5b 9d 00 04 	sw (sp+4),ra                                   
 8014a14:	b8 20 58 00 	mv r11,r1                                      
  if ( ts->insert_chain == NULL ) {                                   
 8014a18:	28 21 00 78 	lw r1,(r1+120)                                 
                                                                      
static void _Timer_server_Schedule_operation_method(                  
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
 8014a1c:	b8 40 60 00 	mv r12,r2                                      
  if ( ts->insert_chain == NULL ) {                                   
 8014a20:	5c 20 00 43 	bne r1,r0,8014b2c <_Timer_server_Schedule_operation_method+0x128><== NEVER TAKEN
   *  is the reference point for the delta chain.  Thus if we do not update the
   *  reference point we have to add DT to the initial delta of the watchdog
   *  being inserted.  This could result in an integer overflow.      
   */                                                                 
                                                                      
  _Thread_Disable_dispatch();                                         
 8014a24:	fb ff ff 3c 	calli 8014714 <_Thread_Disable_dispatch>       
                                                                      
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
 8014a28:	29 81 00 38 	lw r1,(r12+56)                                 
 8014a2c:	34 02 00 01 	mvi r2,1                                       
 8014a30:	5c 22 00 1d 	bne r1,r2,8014aa4 <_Timer_server_Schedule_operation_method+0xa0>
    /*                                                                
     *  We have to advance the last known ticks value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
 8014a34:	90 00 10 00 	rcsr r2,IE                                     
 8014a38:	34 01 ff fe 	mvi r1,-2                                      
 8014a3c:	a0 41 08 00 	and r1,r2,r1                                   
 8014a40:	d0 01 00 00 	wcsr IE,r1                                     
    snapshot = _Watchdog_Ticks_since_boot;                            
 8014a44:	78 01 08 03 	mvhi r1,0x803                                  
 8014a48:	38 21 ed 64 	ori r1,r1,0xed64                               
 8014a4c:	28 23 00 00 	lw r3,(r1+0)                                   
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
 8014a50:	29 61 00 30 	lw r1,(r11+48)                                 
    last_snapshot = ts->Interval_watchdogs.last_snapshot;             
 8014a54:	29 65 00 3c 	lw r5,(r11+60)                                 
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 8014a58:	35 64 00 34 	addi r4,r11,52                                 
    if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) {        
 8014a5c:	44 24 00 07 	be r1,r4,8014a78 <_Timer_server_Schedule_operation_method+0x74>
      /*                                                              
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
                                                                      
      delta_interval = first_watchdog->delta_interval;                
 8014a60:	28 26 00 10 	lw r6,(r1+16)                                  
      first_watchdog = _Watchdog_First( &ts->Interval_watchdogs.Chain );
                                                                      
      /*                                                              
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
 8014a64:	c8 65 28 00 	sub r5,r3,r5                                   
                                                                      
      delta_interval = first_watchdog->delta_interval;                
      if (delta_interval > delta) {                                   
        delta_interval -= delta;                                      
      } else {                                                        
        delta_interval = 0;                                           
 8014a68:	34 04 00 00 	mvi r4,0                                       
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
                                                                      
      delta_interval = first_watchdog->delta_interval;                
      if (delta_interval > delta) {                                   
 8014a6c:	50 a6 00 02 	bgeu r5,r6,8014a74 <_Timer_server_Schedule_operation_method+0x70>
        delta_interval -= delta;                                      
 8014a70:	c8 c5 20 00 	sub r4,r6,r5                                   
      } else {                                                        
        delta_interval = 0;                                           
      }                                                               
      first_watchdog->delta_interval = delta_interval;                
 8014a74:	58 24 00 10 	sw (r1+16),r4                                  
    }                                                                 
    ts->Interval_watchdogs.last_snapshot = snapshot;                  
 8014a78:	59 63 00 3c 	sw (r11+60),r3                                 
    _ISR_Enable( level );                                             
 8014a7c:	d0 02 00 00 	wcsr IE,r2                                     
                                                                      
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
 8014a80:	35 61 00 30 	addi r1,r11,48                                 
 8014a84:	35 82 00 10 	addi r2,r12,16                                 
 8014a88:	f8 00 15 0c 	calli 8019eb8 <_Watchdog_Insert>               
                                                                      
    if ( !ts->active ) {                                              
 8014a8c:	41 61 00 7c 	lbu r1,(r11+124)                               
 8014a90:	20 21 00 ff 	andi r1,r1,0xff                                
 8014a94:	5c 20 00 24 	bne r1,r0,8014b24 <_Timer_server_Schedule_operation_method+0x120>
      _Timer_server_Reset_interval_system_watchdog( ts );             
 8014a98:	b9 60 08 00 	mv r1,r11                                      
 8014a9c:	fb ff ff 24 	calli 801472c <_Timer_server_Reset_interval_system_watchdog>
 8014aa0:	e0 00 00 21 	bi 8014b24 <_Timer_server_Schedule_operation_method+0x120>
    }                                                                 
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
 8014aa4:	34 02 00 03 	mvi r2,3                                       
 8014aa8:	5c 22 00 1f 	bne r1,r2,8014b24 <_Timer_server_Schedule_operation_method+0x120>
    /*                                                                
     *  We have to advance the last known seconds value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
 8014aac:	90 00 30 00 	rcsr r6,IE                                     
 8014ab0:	34 01 ff fe 	mvi r1,-2                                      
 8014ab4:	a0 c1 08 00 	and r1,r6,r1                                   
 8014ab8:	d0 01 00 00 	wcsr IE,r1                                     
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
 8014abc:	29 62 00 68 	lw r2,(r11+104)                                
    snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();        
 8014ac0:	78 01 08 03 	mvhi r1,0x803                                  
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
 8014ac4:	29 65 00 74 	lw r5,(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();        
 8014ac8:	38 21 ec b4 	ori r1,r1,0xecb4                               
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 8014acc:	35 63 00 6c 	addi r3,r11,108                                
 8014ad0:	28 21 00 00 	lw r1,(r1+0)                                   
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
    if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {             
 8014ad4:	44 43 00 0a 	be r2,r3,8014afc <_Timer_server_Schedule_operation_method+0xf8>
      first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );   
      delta_interval = first_watchdog->delta_interval;                
 8014ad8:	28 44 00 10 	lw r4,(r2+16)                                  
        }                                                             
      } else {                                                        
        /*                                                            
         *  Someone put us in the past.                               
         */                                                           
        delta = last_snapshot - snapshot;                             
 8014adc:	b4 85 18 00 	add r3,r4,r5                                   
        delta_interval += delta;                                      
 8014ae0:	c8 61 18 00 	sub r3,r3,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 ) {                               
 8014ae4:	50 a1 00 05 	bgeu r5,r1,8014af8 <_Timer_server_Schedule_operation_method+0xf4>
        /*                                                            
         *  We advanced in time.                                      
         */                                                           
        delta = snapshot - last_snapshot;                             
 8014ae8:	c8 25 28 00 	sub r5,r1,r5                                   
        if (delta_interval > delta) {                                 
          delta_interval -= delta;                                    
        } else {                                                      
          delta_interval = 0;                                         
 8014aec:	34 03 00 00 	mvi r3,0                                       
      if ( snapshot > last_snapshot ) {                               
        /*                                                            
         *  We advanced in time.                                      
         */                                                           
        delta = snapshot - last_snapshot;                             
        if (delta_interval > delta) {                                 
 8014af0:	50 a4 00 02 	bgeu r5,r4,8014af8 <_Timer_server_Schedule_operation_method+0xf4><== NEVER TAKEN
          delta_interval -= delta;                                    
 8014af4:	c8 85 18 00 	sub r3,r4,r5                                   
         *  Someone put us in the past.                               
         */                                                           
        delta = last_snapshot - snapshot;                             
        delta_interval += delta;                                      
      }                                                               
      first_watchdog->delta_interval = delta_interval;                
 8014af8:	58 43 00 10 	sw (r2+16),r3                                  
    }                                                                 
    ts->TOD_watchdogs.last_snapshot = snapshot;                       
 8014afc:	59 61 00 74 	sw (r11+116),r1                                
    _ISR_Enable( level );                                             
 8014b00:	d0 06 00 00 	wcsr IE,r6                                     
                                                                      
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
 8014b04:	35 61 00 68 	addi r1,r11,104                                
 8014b08:	35 82 00 10 	addi r2,r12,16                                 
 8014b0c:	f8 00 14 eb 	calli 8019eb8 <_Watchdog_Insert>               
                                                                      
    if ( !ts->active ) {                                              
 8014b10:	41 61 00 7c 	lbu r1,(r11+124)                               
 8014b14:	20 21 00 ff 	andi r1,r1,0xff                                
 8014b18:	5c 20 00 03 	bne r1,r0,8014b24 <_Timer_server_Schedule_operation_method+0x120><== NEVER TAKEN
      _Timer_server_Reset_tod_system_watchdog( ts );                  
 8014b1c:	b9 60 08 00 	mv r1,r11                                      
 8014b20:	fb ff ff 20 	calli 80147a0 <_Timer_server_Reset_tod_system_watchdog>
    }                                                                 
  }                                                                   
                                                                      
  _Thread_Enable_dispatch();                                          
 8014b24:	f8 00 0e 37 	calli 8018400 <_Thread_Enable_dispatch>        
 8014b28:	e0 00 00 03 	bi 8014b34 <_Timer_server_Schedule_operation_method+0x130>
     *  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 );           
 8014b2c:	29 61 00 78 	lw r1,(r11+120)                                <== NOT EXECUTED
 8014b30:	f8 00 02 d0 	calli 8015670 <_Chain_Append>                  <== NOT EXECUTED
  }                                                                   
}                                                                     
 8014b34:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8014b38:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8014b3c:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8014b40:	37 9c 00 0c 	addi sp,sp,12                                  
 8014b44:	c3 a0 00 00 	ret                                            
                                                                      

080086c8 <_Timespec_Greater_than>: bool _Timespec_Greater_than( const struct timespec *lhs, const struct timespec *rhs ) { if ( lhs->tv_sec > rhs->tv_sec )
 80086c8:	28 24 00 00 	lw r4,(r1+0)                                   
 80086cc:	28 45 00 00 	lw r5,(r2+0)                                   
                                                                      
bool _Timespec_Greater_than(                                          
  const struct timespec *lhs,                                         
  const struct timespec *rhs                                          
)                                                                     
{                                                                     
 80086d0:	b8 20 18 00 	mv r3,r1                                       
  if ( lhs->tv_sec > rhs->tv_sec )                                    
    return true;                                                      
 80086d4:	34 01 00 01 	mvi r1,1                                       
bool _Timespec_Greater_than(                                          
  const struct timespec *lhs,                                         
  const struct timespec *rhs                                          
)                                                                     
{                                                                     
  if ( lhs->tv_sec > rhs->tv_sec )                                    
 80086d8:	48 85 00 06 	bg r4,r5,80086f0 <_Timespec_Greater_than+0x28> 
    return true;                                                      
                                                                      
  if ( lhs->tv_sec < rhs->tv_sec )                                    
    return false;                                                     
 80086dc:	34 01 00 00 	mvi r1,0                                       
)                                                                     
{                                                                     
  if ( lhs->tv_sec > rhs->tv_sec )                                    
    return true;                                                      
                                                                      
  if ( lhs->tv_sec < rhs->tv_sec )                                    
 80086e0:	48 a4 00 04 	bg r5,r4,80086f0 <_Timespec_Greater_than+0x28> <== NEVER TAKEN
                                                                      
#include <rtems/system.h>                                             
#include <rtems/score/timespec.h>                                     
#include <rtems/score/tod.h>                                          
                                                                      
bool _Timespec_Greater_than(                                          
 80086e4:	28 63 00 04 	lw r3,(r3+4)                                   
 80086e8:	28 41 00 04 	lw r1,(r2+4)                                   
 80086ec:	e8 61 08 00 	cmpg r1,r3,r1                                  
  /* ASSERT: lhs->tv_sec == rhs->tv_sec */                            
  if ( lhs->tv_nsec > rhs->tv_nsec )                                  
    return true;                                                      
                                                                      
  return false;                                                       
}                                                                     
 80086f0:	c3 a0 00 00 	ret                                            
                                                                      

08006178 <_User_extensions_Handler_initialization>: #include <rtems/score/userext.h> #include <rtems/score/wkspace.h> #include <string.h> void _User_extensions_Handler_initialization(void) {
 8006178:	37 9c ff ec 	addi sp,sp,-20                                 
 800617c:	5b 8b 00 14 	sw (sp+20),r11                                 
 8006180:	5b 8c 00 10 	sw (sp+16),r12                                 
 8006184:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8006188:	5b 8e 00 08 	sw (sp+8),r14                                  
 800618c:	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;  
 8006190:	78 02 08 01 	mvhi r2,0x801                                  
 8006194:	38 42 30 c4 	ori r2,r2,0x30c4                               
 8006198:	28 4e 00 38 	lw r14,(r2+56)                                 
  initial_extensions   = Configuration.User_extension_table;          
 800619c:	28 4b 00 3c 	lw r11,(r2+60)                                 
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
 80061a0:	78 03 08 01 	mvhi r3,0x801                                  
 80061a4:	78 02 08 01 	mvhi r2,0x801                                  
 80061a8:	38 42 39 a4 	ori r2,r2,0x39a4                               
 80061ac:	38 63 39 a8 	ori r3,r3,0x39a8                               
 80061b0:	58 43 00 00 	sw (r2+0),r3                                   
  the_chain->permanent_null = NULL;                                   
 80061b4:	58 40 00 04 	sw (r2+4),r0                                   
  the_chain->last           = _Chain_Head(the_chain);                 
 80061b8:	58 42 00 08 	sw (r2+8),r2                                   
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
 80061bc:	78 03 08 01 	mvhi r3,0x801                                  
 80061c0:	78 02 08 01 	mvhi r2,0x801                                  
 80061c4:	38 42 38 20 	ori r2,r2,0x3820                               
 80061c8:	38 63 38 24 	ori r3,r3,0x3824                               
 80061cc:	58 43 00 00 	sw (r2+0),r3                                   
  the_chain->permanent_null = NULL;                                   
 80061d0:	58 40 00 04 	sw (r2+4),r0                                   
  the_chain->last           = _Chain_Head(the_chain);                 
 80061d4:	58 42 00 08 	sw (r2+8),r2                                   
                                                                      
  _Chain_Initialize_empty( &_User_extensions_List );                  
  _Chain_Initialize_empty( &_User_extensions_Switches_list );         
                                                                      
  if ( initial_extensions ) {                                         
 80061d8:	45 60 00 22 	be r11,r0,8006260 <_User_extensions_Handler_initialization+0xe8><== NEVER TAKEN
    extension = (User_extensions_Control *)                           
      _Workspace_Allocate_or_fatal_error(                             
        number_of_extensions * sizeof( User_extensions_Control )      
 80061dc:	34 02 00 34 	mvi r2,52                                      
 80061e0:	b9 c0 08 00 	mv r1,r14                                      
 80061e4:	f8 00 2a 13 	calli 8010a30 <__mulsi3>                       
 80061e8:	b8 20 68 00 	mv r13,r1                                      
  _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(                             
 80061ec:	f8 00 01 d2 	calli 8006934 <_Workspace_Allocate_or_fatal_error>
        number_of_extensions * sizeof( User_extensions_Control )      
      );                                                              
                                                                      
    memset (                                                          
 80061f0:	b9 a0 18 00 	mv r3,r13                                      
 80061f4:	34 02 00 00 	mvi r2,0                                       
  _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(                             
 80061f8:	b8 20 60 00 	mv r12,r1                                      
      extension,                                                      
      0,                                                              
      number_of_extensions * sizeof( User_extensions_Control )        
    );                                                                
                                                                      
    for ( i = 0 ; i < number_of_extensions ; i++ ) {                  
 80061fc:	34 0d 00 00 	mvi r13,0                                      
    extension = (User_extensions_Control *)                           
      _Workspace_Allocate_or_fatal_error(                             
        number_of_extensions * sizeof( User_extensions_Control )      
      );                                                              
                                                                      
    memset (                                                          
 8006200:	f8 00 17 81 	calli 800c004 <memset>                         
      extension,                                                      
      0,                                                              
      number_of_extensions * sizeof( User_extensions_Control )        
    );                                                                
                                                                      
    for ( i = 0 ; i < number_of_extensions ; i++ ) {                  
 8006204:	e0 00 00 16 	bi 800625c <_User_extensions_Handler_initialization+0xe4>
RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table(        
  User_extensions_Control     *extension,                             
  const User_extensions_Table *extension_table                        
)                                                                     
{                                                                     
  extension->Callouts = *extension_table;                             
 8006208:	29 61 00 1c 	lw r1,(r11+28)                                 
 800620c:	29 68 00 00 	lw r8,(r11+0)                                  
 8006210:	29 67 00 04 	lw r7,(r11+4)                                  
 8006214:	29 66 00 08 	lw r6,(r11+8)                                  
 8006218:	29 65 00 0c 	lw r5,(r11+12)                                 
 800621c:	29 64 00 10 	lw r4,(r11+16)                                 
 8006220:	29 63 00 14 	lw r3,(r11+20)                                 
 8006224:	29 62 00 18 	lw r2,(r11+24)                                 
 8006228:	59 81 00 30 	sw (r12+48),r1                                 
 800622c:	59 88 00 14 	sw (r12+20),r8                                 
 8006230:	59 87 00 18 	sw (r12+24),r7                                 
 8006234:	59 86 00 1c 	sw (r12+28),r6                                 
 8006238:	59 85 00 20 	sw (r12+32),r5                                 
 800623c:	59 84 00 24 	sw (r12+36),r4                                 
 8006240:	59 83 00 28 	sw (r12+40),r3                                 
 8006244:	59 82 00 2c 	sw (r12+44),r2                                 
                                                                      
  _User_extensions_Add_set( extension );                              
 8006248:	b9 80 08 00 	mv r1,r12                                      
 800624c:	f8 00 0d ad 	calli 8009900 <_User_extensions_Add_set>       
      _User_extensions_Add_set_with_table (extension, &initial_extensions[i]);
      extension++;                                                    
 8006250:	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++ ) {                  
 8006254:	35 ad 00 01 	addi r13,r13,1                                 
 8006258:	35 6b 00 20 	addi r11,r11,32                                
 800625c:	55 cd ff eb 	bgu r14,r13,8006208 <_User_extensions_Handler_initialization+0x90>
      _User_extensions_Add_set_with_table (extension, &initial_extensions[i]);
      extension++;                                                    
    }                                                                 
  }                                                                   
}                                                                     
 8006260:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006264:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8006268:	2b 8c 00 10 	lw r12,(sp+16)                                 
 800626c:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8006270:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8006274:	37 9c 00 14 	addi sp,sp,20                                  
 8006278:	c3 a0 00 00 	ret                                            
                                                                      

08008924 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) {
 8008924:	37 9c ff e4 	addi sp,sp,-28                                 
 8008928:	5b 8b 00 1c 	sw (sp+28),r11                                 
 800892c:	5b 8c 00 18 	sw (sp+24),r12                                 
 8008930:	5b 8d 00 14 	sw (sp+20),r13                                 
 8008934:	5b 8e 00 10 	sw (sp+16),r14                                 
 8008938:	5b 8f 00 0c 	sw (sp+12),r15                                 
 800893c:	5b 90 00 08 	sw (sp+8),r16                                  
 8008940:	5b 9d 00 04 	sw (sp+4),ra                                   
 8008944:	b8 20 60 00 	mv r12,r1                                      
 8008948:	b8 60 58 00 	mv r11,r3                                      
  ISR_Level level;                                                    
                                                                      
  _ISR_Disable( level );                                              
 800894c:	90 00 08 00 	rcsr r1,IE                                     
 8008950:	34 03 ff fe 	mvi r3,-2                                      
 8008954:	a0 23 18 00 	and r3,r1,r3                                   
 8008958:	d0 03 00 00 	wcsr IE,r3                                     
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
 800895c:	29 83 00 00 	lw r3,(r12+0)                                  
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 8008960:	35 8e 00 04 	addi r14,r12,4                                 
   *       hence the compiler must not assume *header to remain       
   *       unmodified across that call.                               
   *                                                                  
   *       Till Straumann, 7/2003                                     
   */                                                                 
  if ( !_Chain_Is_empty( header ) ) {                                 
 8008964:	44 6e 00 1d 	be r3,r14,80089d8 <_Watchdog_Adjust+0xb4>      
    switch ( direction ) {                                            
 8008968:	44 40 00 04 	be r2,r0,8008978 <_Watchdog_Adjust+0x54>       
 800896c:	34 04 00 01 	mvi r4,1                                       
 8008970:	5c 44 00 1a 	bne r2,r4,80089d8 <_Watchdog_Adjust+0xb4>      <== NEVER TAKEN
 8008974:	e0 00 00 04 	bi 8008984 <_Watchdog_Adjust+0x60>             
          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;            
 8008978:	34 10 00 01 	mvi r16,1                                      
                                                                      
            _ISR_Enable( level );                                     
                                                                      
            _Watchdog_Tickle( header );                               
                                                                      
            _ISR_Disable( level );                                    
 800897c:	34 0f ff fe 	mvi r15,-2                                     
 8008980:	e0 00 00 15 	bi 80089d4 <_Watchdog_Adjust+0xb0>             
   *       Till Straumann, 7/2003                                     
   */                                                                 
  if ( !_Chain_Is_empty( header ) ) {                                 
    switch ( direction ) {                                            
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
 8008984:	28 62 00 10 	lw r2,(r3+16)                                  
 8008988:	b4 4b 58 00 	add r11,r2,r11                                 
 800898c:	58 6b 00 10 	sw (r3+16),r11                                 
        break;                                                        
 8008990:	e0 00 00 12 	bi 80089d8 <_Watchdog_Adjust+0xb4>             
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First(               
  Chain_Control *header                                               
)                                                                     
{                                                                     
                                                                      
  return ( (Watchdog_Control *) header->first );                      
 8008994:	29 82 00 00 	lw r2,(r12+0)                                  
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
          if ( units < _Watchdog_First( header )->delta_interval ) {  
 8008998:	28 4d 00 10 	lw r13,(r2+16)                                 
 800899c:	51 6d 00 04 	bgeu r11,r13,80089ac <_Watchdog_Adjust+0x88>   
            _Watchdog_First( header )->delta_interval -= units;       
 80089a0:	c9 ab 58 00 	sub r11,r13,r11                                
 80089a4:	58 4b 00 10 	sw (r2+16),r11                                 
            break;                                                    
 80089a8:	e0 00 00 0c 	bi 80089d8 <_Watchdog_Adjust+0xb4>             
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
            _Watchdog_First( header )->delta_interval = 1;            
 80089ac:	58 50 00 10 	sw (r2+16),r16                                 
                                                                      
            _ISR_Enable( level );                                     
 80089b0:	d0 01 00 00 	wcsr IE,r1                                     
                                                                      
            _Watchdog_Tickle( header );                               
 80089b4:	b9 80 08 00 	mv r1,r12                                      
 80089b8:	f8 00 00 98 	calli 8008c18 <_Watchdog_Tickle>               
                                                                      
            _ISR_Disable( level );                                    
 80089bc:	90 00 08 00 	rcsr r1,IE                                     
 80089c0:	a0 2f 10 00 	and r2,r1,r15                                  
 80089c4:	d0 02 00 00 	wcsr IE,r2                                     
                                                                      
            if ( _Chain_Is_empty( header ) )                          
 80089c8:	29 82 00 00 	lw r2,(r12+0)                                  
 80089cc:	44 4e 00 03 	be r2,r14,80089d8 <_Watchdog_Adjust+0xb4>      
        while ( units ) {                                             
          if ( units < _Watchdog_First( header )->delta_interval ) {  
            _Watchdog_First( header )->delta_interval -= units;       
            break;                                                    
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
 80089d0:	c9 6d 58 00 	sub r11,r11,r13                                
    switch ( direction ) {                                            
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
 80089d4:	5d 60 ff f0 	bne r11,r0,8008994 <_Watchdog_Adjust+0x70>     <== ALWAYS TAKEN
        }                                                             
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
 80089d8:	d0 01 00 00 	wcsr IE,r1                                     
                                                                      
}                                                                     
 80089dc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80089e0:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 80089e4:	2b 8c 00 18 	lw r12,(sp+24)                                 
 80089e8:	2b 8d 00 14 	lw r13,(sp+20)                                 
 80089ec:	2b 8e 00 10 	lw r14,(sp+16)                                 
 80089f0:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 80089f4:	2b 90 00 08 	lw r16,(sp+8)                                  
 80089f8:	37 9c 00 1c 	addi sp,sp,28                                  
 80089fc:	c3 a0 00 00 	ret                                            
                                                                      

080066fc <_Watchdog_Remove>: { ISR_Level level; Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level );
 80066fc:	90 00 28 00 	rcsr r5,IE                                     
 8006700:	34 02 ff fe 	mvi r2,-2                                      
 8006704:	a0 a2 10 00 	and r2,r5,r2                                   
 8006708:	d0 02 00 00 	wcsr IE,r2                                     
  previous_state = the_watchdog->state;                               
 800670c:	28 23 00 08 	lw r3,(r1+8)                                   
  switch ( previous_state ) {                                         
 8006710:	34 02 00 01 	mvi r2,1                                       
 8006714:	44 62 00 05 	be r3,r2,8006728 <_Watchdog_Remove+0x2c>       
 8006718:	44 60 00 1b 	be r3,r0,8006784 <_Watchdog_Remove+0x88>       
 800671c:	34 02 00 03 	mvi r2,3                                       
 8006720:	54 62 00 19 	bgu r3,r2,8006784 <_Watchdog_Remove+0x88>      <== NEVER TAKEN
 8006724:	e0 00 00 03 	bi 8006730 <_Watchdog_Remove+0x34>             
                                                                      
      /*                                                              
       *  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;                        
 8006728:	58 20 00 08 	sw (r1+8),r0                                   
      break;                                                          
 800672c:	e0 00 00 16 	bi 8006784 <_Watchdog_Remove+0x88>             
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
                                                                      
  _ISR_Enable( level );                                               
  return( previous_state );                                           
}                                                                     
 8006730:	28 22 00 00 	lw r2,(r1+0)                                   
      break;                                                          
                                                                      
    case WATCHDOG_ACTIVE:                                             
    case WATCHDOG_REMOVE_IT:                                          
                                                                      
      the_watchdog->state = WATCHDOG_INACTIVE;                        
 8006734:	58 20 00 08 	sw (r1+8),r0                                   
      next_watchdog = _Watchdog_Next( the_watchdog );                 
                                                                      
      if ( _Watchdog_Next(next_watchdog) )                            
 8006738:	28 44 00 00 	lw r4,(r2+0)                                   
 800673c:	44 80 00 05 	be r4,r0,8006750 <_Watchdog_Remove+0x54>       
        next_watchdog->delta_interval += the_watchdog->delta_interval;
 8006740:	28 46 00 10 	lw r6,(r2+16)                                  
 8006744:	28 24 00 10 	lw r4,(r1+16)                                  
 8006748:	b4 c4 20 00 	add r4,r6,r4                                   
 800674c:	58 44 00 10 	sw (r2+16),r4                                  
                                                                      
      if ( _Watchdog_Sync_count )                                     
 8006750:	78 04 08 01 	mvhi r4,0x801                                  
 8006754:	38 84 39 50 	ori r4,r4,0x3950                               
 8006758:	28 84 00 00 	lw r4,(r4+0)                                   
 800675c:	44 80 00 07 	be r4,r0,8006778 <_Watchdog_Remove+0x7c>       
        _Watchdog_Sync_level = _ISR_Nest_level;                       
 8006760:	78 04 08 01 	mvhi r4,0x801                                  
 8006764:	38 84 39 e8 	ori r4,r4,0x39e8                               
 8006768:	28 86 00 08 	lw r6,(r4+8)                                   
 800676c:	78 04 08 01 	mvhi r4,0x801                                  
 8006770:	38 84 38 c4 	ori r4,r4,0x38c4                               
 8006774:	58 86 00 00 	sw (r4+0),r6                                   
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
 8006778:	28 24 00 04 	lw r4,(r1+4)                                   
  next->previous = previous;                                          
 800677c:	58 44 00 04 	sw (r2+4),r4                                   
  previous->next = next;                                              
 8006780:	58 82 00 00 	sw (r4+0),r2                                   
                                                                      
      _Chain_Extract_unprotected( &the_watchdog->Node );              
      break;                                                          
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
 8006784:	78 02 08 01 	mvhi r2,0x801                                  
 8006788:	38 42 39 54 	ori r2,r2,0x3954                               
 800678c:	28 42 00 00 	lw r2,(r2+0)                                   
 8006790:	58 22 00 18 	sw (r1+24),r2                                  
                                                                      
  _ISR_Enable( level );                                               
 8006794:	d0 05 00 00 	wcsr IE,r5                                     
  return( previous_state );                                           
}                                                                     
 8006798:	b8 60 08 00 	mv r1,r3                                       
 800679c:	c3 a0 00 00 	ret                                            
                                                                      

08008514 <_Watchdog_Report_chain>: void _Watchdog_Report_chain( const char *name, Chain_Control *header ) {
 8008514:	37 9c ff ec 	addi sp,sp,-20                                 
 8008518:	5b 8b 00 14 	sw (sp+20),r11                                 
 800851c:	5b 8c 00 10 	sw (sp+16),r12                                 
 8008520:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8008524:	5b 8e 00 08 	sw (sp+8),r14                                  
 8008528:	5b 9d 00 04 	sw (sp+4),ra                                   
 800852c:	b8 20 70 00 	mv r14,r1                                      
 8008530:	b8 40 60 00 	mv r12,r2                                      
  ISR_Level          level;                                           
  Chain_Node        *node;                                            
                                                                      
  _ISR_Disable( level );                                              
 8008534:	90 00 68 00 	rcsr r13,IE                                    
 8008538:	34 01 ff fe 	mvi r1,-2                                      
 800853c:	a1 a1 08 00 	and r1,r13,r1                                  
 8008540:	d0 01 00 00 	wcsr IE,r1                                     
    printk( "Watchdog Chain: %s %p\n", name, header );                
 8008544:	78 01 08 01 	mvhi r1,0x801                                  
 8008548:	b9 80 18 00 	mv r3,r12                                      
 800854c:	38 21 d2 0c 	ori r1,r1,0xd20c                               
 8008550:	b9 c0 10 00 	mv r2,r14                                      
 8008554:	fb ff eb bd 	calli 8003448 <printk>                         
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
 8008558:	29 8b 00 00 	lw r11,(r12+0)                                 
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 800855c:	35 8c 00 04 	addi r12,r12,4                                 
    if ( !_Chain_Is_empty( header ) ) {                               
 8008560:	45 6c 00 0b 	be r11,r12,800858c <_Watchdog_Report_chain+0x78>
            node != _Chain_Tail(header) ;                             
            node = node->next )                                       
      {                                                               
        Watchdog_Control *watch = (Watchdog_Control *) node;          
                                                                      
        _Watchdog_Report( NULL, watch );                              
 8008564:	b9 60 10 00 	mv r2,r11                                      
 8008568:	34 01 00 00 	mvi r1,0                                       
 800856c:	f8 00 00 13 	calli 80085b8 <_Watchdog_Report>               
  _ISR_Disable( level );                                              
    printk( "Watchdog Chain: %s %p\n", name, header );                
    if ( !_Chain_Is_empty( header ) ) {                               
      for ( node = header->first ;                                    
            node != _Chain_Tail(header) ;                             
            node = node->next )                                       
 8008570:	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 = header->first ;                                    
 8008574:	5d 6c ff fc 	bne r11,r12,8008564 <_Watchdog_Report_chain+0x50><== NEVER TAKEN
      {                                                               
        Watchdog_Control *watch = (Watchdog_Control *) node;          
                                                                      
        _Watchdog_Report( NULL, watch );                              
      }                                                               
      printk( "== end of %s \n", name );                              
 8008578:	78 01 08 01 	mvhi r1,0x801                                  
 800857c:	38 21 d2 24 	ori r1,r1,0xd224                               
 8008580:	b9 c0 10 00 	mv r2,r14                                      
 8008584:	fb ff eb b1 	calli 8003448 <printk>                         
 8008588:	e0 00 00 04 	bi 8008598 <_Watchdog_Report_chain+0x84>       
    } else {                                                          
      printk( "Chain is empty\n" );                                   
 800858c:	78 01 08 01 	mvhi r1,0x801                                  
 8008590:	38 21 d2 34 	ori r1,r1,0xd234                               
 8008594:	fb ff eb ad 	calli 8003448 <printk>                         
    }                                                                 
  _ISR_Enable( level );                                               
 8008598:	d0 0d 00 00 	wcsr IE,r13                                    
}                                                                     
 800859c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80085a0:	2b 8b 00 14 	lw r11,(sp+20)                                 
 80085a4:	2b 8c 00 10 	lw r12,(sp+16)                                 
 80085a8:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 80085ac:	2b 8e 00 08 	lw r14,(sp+8)                                  
 80085b0:	37 9c 00 14 	addi sp,sp,20                                  
 80085b4:	c3 a0 00 00 	ret                                            
                                                                      

080067a0 <_Watchdog_Tickle>: */ void _Watchdog_Tickle( Chain_Control *header ) {
 80067a0:	37 9c ff e4 	addi sp,sp,-28                                 
 80067a4:	5b 8b 00 1c 	sw (sp+28),r11                                 
 80067a8:	5b 8c 00 18 	sw (sp+24),r12                                 
 80067ac:	5b 8d 00 14 	sw (sp+20),r13                                 
 80067b0:	5b 8e 00 10 	sw (sp+16),r14                                 
 80067b4:	5b 8f 00 0c 	sw (sp+12),r15                                 
 80067b8:	5b 90 00 08 	sw (sp+8),r16                                  
 80067bc:	5b 9d 00 04 	sw (sp+4),ra                                   
 80067c0:	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 );                                              
 80067c4:	90 00 18 00 	rcsr r3,IE                                     
 80067c8:	34 01 ff fe 	mvi r1,-2                                      
 80067cc:	a0 61 08 00 	and r1,r3,r1                                   
 80067d0:	d0 01 00 00 	wcsr IE,r1                                     
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
 80067d4:	29 8b 00 00 	lw r11,(r12+0)                                 
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 80067d8:	35 8e 00 04 	addi r14,r12,4                                 
 80067dc:	b8 60 10 00 	mv r2,r3                                       
                                                                      
  if ( _Chain_Is_empty( header ) )                                    
 80067e0:	45 6e 00 1a 	be r11,r14,8006848 <_Watchdog_Tickle+0xa8>     
   * 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) {                            
 80067e4:	29 61 00 10 	lw r1,(r11+16)                                 
 80067e8:	44 20 00 04 	be r1,r0,80067f8 <_Watchdog_Tickle+0x58>       
    the_watchdog->delta_interval--;                                   
 80067ec:	34 21 ff ff 	addi r1,r1,-1                                  
 80067f0:	59 61 00 10 	sw (r11+16),r1                                 
    if ( the_watchdog->delta_interval != 0 )                          
 80067f4:	5c 20 00 15 	bne r1,r0,8006848 <_Watchdog_Tickle+0xa8>      
 */                                                                   
                                                                      
void _Watchdog_Tickle(                                                
  Chain_Control *header                                               
)                                                                     
{                                                                     
 80067f8:	b8 60 68 00 	mv r13,r3                                      
  do {                                                                
     watchdog_state = _Watchdog_Remove( the_watchdog );               
                                                                      
     _ISR_Enable( level );                                            
                                                                      
     switch( watchdog_state ) {                                       
 80067fc:	34 10 00 02 	mvi r16,2                                      
                                                                      
       case WATCHDOG_REMOVE_IT:                                       
         break;                                                       
     }                                                                
                                                                      
     _ISR_Disable( level );                                           
 8006800:	34 0f ff fe 	mvi r15,-2                                     
 8006804:	e0 00 00 02 	bi 800680c <_Watchdog_Tickle+0x6c>             
 8006808:	b8 40 68 00 	mv r13,r2                                      
    if ( the_watchdog->delta_interval != 0 )                          
      goto leave;                                                     
  }                                                                   
                                                                      
  do {                                                                
     watchdog_state = _Watchdog_Remove( the_watchdog );               
 800680c:	b9 60 08 00 	mv r1,r11                                      
 8006810:	fb ff ff bb 	calli 80066fc <_Watchdog_Remove>               
                                                                      
     _ISR_Enable( level );                                            
 8006814:	d0 0d 00 00 	wcsr IE,r13                                    
                                                                      
     switch( watchdog_state ) {                                       
 8006818:	5c 30 00 05 	bne r1,r16,800682c <_Watchdog_Tickle+0x8c>     <== NEVER TAKEN
       case WATCHDOG_ACTIVE:                                          
         (*the_watchdog->routine)(                                    
 800681c:	29 63 00 1c 	lw r3,(r11+28)                                 
 8006820:	29 61 00 20 	lw r1,(r11+32)                                 
 8006824:	29 62 00 24 	lw r2,(r11+36)                                 
 8006828:	d8 60 00 00 	call r3                                        
                                                                      
       case WATCHDOG_REMOVE_IT:                                       
         break;                                                       
     }                                                                
                                                                      
     _ISR_Disable( level );                                           
 800682c:	90 00 10 00 	rcsr r2,IE                                     
 8006830:	a0 4f 08 00 	and r1,r2,r15                                  
 8006834:	d0 01 00 00 	wcsr IE,r1                                     
   } while ( !_Chain_Is_empty( header ) &&                            
             (the_watchdog->delta_interval == 0) );                   
                                                                      
leave:                                                                
   _ISR_Enable(level);                                                
}                                                                     
 8006838:	29 8b 00 00 	lw r11,(r12+0)                                 
                                                                      
     _ISR_Disable( level );                                           
                                                                      
     the_watchdog = _Watchdog_First( header );                        
   } while ( !_Chain_Is_empty( header ) &&                            
             (the_watchdog->delta_interval == 0) );                   
 800683c:	45 6e 00 03 	be r11,r14,8006848 <_Watchdog_Tickle+0xa8>     
     }                                                                
                                                                      
     _ISR_Disable( level );                                           
                                                                      
     the_watchdog = _Watchdog_First( header );                        
   } while ( !_Chain_Is_empty( header ) &&                            
 8006840:	29 61 00 10 	lw r1,(r11+16)                                 
 8006844:	44 20 ff f1 	be r1,r0,8006808 <_Watchdog_Tickle+0x68>       
             (the_watchdog->delta_interval == 0) );                   
                                                                      
leave:                                                                
   _ISR_Enable(level);                                                
 8006848:	d0 02 00 00 	wcsr IE,r2                                     
}                                                                     
 800684c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006850:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8006854:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8006858:	2b 8d 00 14 	lw r13,(sp+20)                                 
 800685c:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8006860:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8006864:	2b 90 00 08 	lw r16,(sp+8)                                  
 8006868:	37 9c 00 1c 	addi sp,sp,28                                  
 800686c:	c3 a0 00 00 	ret                                            
                                                                      

08010b48 <rtems_clock_set_nanoseconds_extension>: * error code - if unsuccessful */ rtems_status_code rtems_clock_set_nanoseconds_extension( rtems_nanoseconds_extension_routine routine ) {
 8010b48:	b8 20 18 00 	mv r3,r1                                       
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
 8010b4c:	34 01 00 09 	mvi r1,9                                       
 */                                                                   
rtems_status_code rtems_clock_set_nanoseconds_extension(              
  rtems_nanoseconds_extension_routine routine                         
)                                                                     
{                                                                     
  if ( !routine )                                                     
 8010b50:	44 60 00 05 	be r3,r0,8010b64 <rtems_clock_set_nanoseconds_extension+0x1c><== ALWAYS TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  _Watchdog_Nanoseconds_since_tick_handler = routine;                 
 8010b54:	78 02 08 03 	mvhi r2,0x803                                  <== NOT EXECUTED
 8010b58:	38 42 ed b0 	ori r2,r2,0xedb0                               <== NOT EXECUTED
 8010b5c:	58 43 00 00 	sw (r2+0),r3                                   <== NOT EXECUTED
  return RTEMS_SUCCESSFUL;                                            
 8010b60:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
}                                                                     
 8010b64:	c3 a0 00 00 	ret                                            
                                                                      

0800b00c <rtems_io_control>: rtems_status_code rtems_io_control( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) {
 800b00c:	37 9c ff ec 	addi sp,sp,-20                                 
 800b010:	5b 8b 00 10 	sw (sp+16),r11                                 
 800b014:	5b 8c 00 0c 	sw (sp+12),r12                                 
 800b018:	5b 8d 00 08 	sw (sp+8),r13                                  
 800b01c:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_device_driver_entry callout;                                  
                                                                      
  if ( major >= _IO_Number_of_drivers )                               
 800b020:	78 04 08 01 	mvhi r4,0x801                                  
 800b024:	38 84 3a 4c 	ori r4,r4,0x3a4c                               
rtems_status_code rtems_io_control(                                   
  rtems_device_major_number  major,                                   
  rtems_device_minor_number  minor,                                   
  void                      *argument                                 
)                                                                     
{                                                                     
 800b028:	b8 40 60 00 	mv r12,r2                                      
  rtems_device_driver_entry callout;                                  
                                                                      
  if ( major >= _IO_Number_of_drivers )                               
 800b02c:	28 82 00 00 	lw r2,(r4+0)                                   
rtems_status_code rtems_io_control(                                   
  rtems_device_major_number  major,                                   
  rtems_device_minor_number  minor,                                   
  void                      *argument                                 
)                                                                     
{                                                                     
 800b030:	b8 20 58 00 	mv r11,r1                                      
  rtems_device_driver_entry callout;                                  
                                                                      
  if ( major >= _IO_Number_of_drivers )                               
    return RTEMS_INVALID_NUMBER;                                      
 800b034:	34 04 00 0a 	mvi r4,10                                      
  void                      *argument                                 
)                                                                     
{                                                                     
  rtems_device_driver_entry callout;                                  
                                                                      
  if ( major >= _IO_Number_of_drivers )                               
 800b038:	50 22 00 13 	bgeu r1,r2,800b084 <rtems_io_control+0x78>     <== NEVER TAKEN
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  callout = _IO_Driver_address_table[major].control_entry;            
 800b03c:	78 04 08 01 	mvhi r4,0x801                                  
 800b040:	38 84 3a 50 	ori r4,r4,0x3a50                               
 800b044:	34 02 00 01 	mvi r2,1                                       
 800b048:	28 8d 00 00 	lw r13,(r4+0)                                  
 800b04c:	5b 83 00 14 	sw (sp+20),r3                                  
 800b050:	f8 00 16 03 	calli 801085c <__ashlsi3>                      
 800b054:	b4 2b 08 00 	add r1,r1,r11                                  
 800b058:	34 02 00 03 	mvi r2,3                                       
 800b05c:	f8 00 16 00 	calli 801085c <__ashlsi3>                      
 800b060:	b5 a1 08 00 	add r1,r13,r1                                  
 800b064:	28 25 00 14 	lw r5,(r1+20)                                  
  return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
 800b068:	34 04 00 00 	mvi r4,0                                       
 800b06c:	2b 83 00 14 	lw r3,(sp+20)                                  
 800b070:	44 a0 00 05 	be r5,r0,800b084 <rtems_io_control+0x78>       
 800b074:	b9 60 08 00 	mv r1,r11                                      
 800b078:	b9 80 10 00 	mv r2,r12                                      
 800b07c:	d8 a0 00 00 	call r5                                        
 800b080:	b8 20 20 00 	mv r4,r1                                       
}                                                                     
 800b084:	b8 80 08 00 	mv r1,r4                                       
 800b088:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800b08c:	2b 8b 00 10 	lw r11,(sp+16)                                 
 800b090:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 800b094:	2b 8d 00 08 	lw r13,(sp+8)                                  
 800b098:	37 9c 00 14 	addi sp,sp,20                                  
 800b09c:	c3 a0 00 00 	ret                                            
                                                                      

08006068 <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) {
 8006068:	37 9c ff e4 	addi sp,sp,-28                                 
 800606c:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8006070:	5b 8c 00 18 	sw (sp+24),r12                                 
 8006074:	5b 8d 00 14 	sw (sp+20),r13                                 
 8006078:	5b 8e 00 10 	sw (sp+16),r14                                 
 800607c:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8006080:	5b 90 00 08 	sw (sp+8),r16                                  
 8006084:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006088:	b8 20 78 00 	mv r15,r1                                      
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
 800608c:	44 20 00 18 	be r1,r0,80060ec <rtems_iterate_over_all_threads+0x84><== NEVER TAKEN
#endif                                                                
                                                                      
#include <rtems/system.h>                                             
#include <rtems/score/thread.h>                                       
                                                                      
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) 
 8006090:	78 02 08 02 	mvhi r2,0x802                                  
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
 8006094:	78 0b 08 02 	mvhi r11,0x802                                 
#endif                                                                
                                                                      
#include <rtems/system.h>                                             
#include <rtems/score/thread.h>                                       
                                                                      
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) 
 8006098:	38 42 75 c0 	ori r2,r2,0x75c0                               
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
 800609c:	39 6b 75 c4 	ori r11,r11,0x75c4                             
#endif                                                                
                                                                      
#include <rtems/system.h>                                             
#include <rtems/score/thread.h>                                       
                                                                      
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) 
 80060a0:	34 50 00 10 	addi r16,r2,16                                 
                                                                      
  if ( !routine )                                                     
    return;                                                           
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
    if ( !_Objects_Information_table[ api_index ] )                   
 80060a4:	29 61 00 00 	lw r1,(r11+0)                                  
 80060a8:	44 20 00 0f 	be r1,r0,80060e4 <rtems_iterate_over_all_threads+0x7c>
      continue;                                                       
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
 80060ac:	28 2c 00 04 	lw r12,(r1+4)                                  
    if ( !information )                                               
 80060b0:	34 0e 00 04 	mvi r14,4                                      
 80060b4:	34 0d 00 01 	mvi r13,1                                      
 80060b8:	5d 80 00 09 	bne r12,r0,80060dc <rtems_iterate_over_all_threads+0x74>
 80060bc:	e0 00 00 0a 	bi 80060e4 <rtems_iterate_over_all_threads+0x7c>
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
      the_thread = (Thread_Control *)information->local_table[ i ];   
 80060c0:	29 81 00 1c 	lw r1,(r12+28)                                 
 80060c4:	b4 2e 08 00 	add r1,r1,r14                                  
 80060c8:	28 21 00 00 	lw r1,(r1+0)                                   
                                                                      
      if ( !the_thread )                                              
 80060cc:	44 20 00 02 	be r1,r0,80060d4 <rtems_iterate_over_all_threads+0x6c>
	continue;                                                            
                                                                      
      (*routine)(the_thread);                                         
 80060d0:	d9 e0 00 00 	call r15                                       
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( !information )                                               
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
 80060d4:	35 ad 00 01 	addi r13,r13,1                                 
 80060d8:	35 ce 00 04 	addi r14,r14,4                                 
 80060dc:	2d 81 00 10 	lhu r1,(r12+16)                                
 80060e0:	50 2d ff f8 	bgeu r1,r13,80060c0 <rtems_iterate_over_all_threads+0x58>
 80060e4:	35 6b 00 04 	addi r11,r11,4                                 
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
    return;                                                           
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
 80060e8:	5d 70 ff ef 	bne r11,r16,80060a4 <rtems_iterate_over_all_threads+0x3c>
                                                                      
      (*routine)(the_thread);                                         
    }                                                                 
  }                                                                   
                                                                      
}                                                                     
 80060ec:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80060f0:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 80060f4:	2b 8c 00 18 	lw r12,(sp+24)                                 
 80060f8:	2b 8d 00 14 	lw r13,(sp+20)                                 
 80060fc:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8006100:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8006104:	2b 90 00 08 	lw r16,(sp+8)                                  
 8006108:	37 9c 00 1c 	addi sp,sp,28                                  
 800610c:	c3 a0 00 00 	ret                                            
                                                                      

08011a64 <rtems_partition_create>: uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) {
 8011a64:	37 9c ff d8 	addi sp,sp,-40                                 
 8011a68:	5b 8b 00 28 	sw (sp+40),r11                                 
 8011a6c:	5b 8c 00 24 	sw (sp+36),r12                                 
 8011a70:	5b 8d 00 20 	sw (sp+32),r13                                 
 8011a74:	5b 8e 00 1c 	sw (sp+28),r14                                 
 8011a78:	5b 8f 00 18 	sw (sp+24),r15                                 
 8011a7c:	5b 90 00 14 	sw (sp+20),r16                                 
 8011a80:	5b 91 00 10 	sw (sp+16),r17                                 
 8011a84:	5b 92 00 0c 	sw (sp+12),r18                                 
 8011a88:	5b 93 00 08 	sw (sp+8),r19                                  
 8011a8c:	5b 9d 00 04 	sw (sp+4),ra                                   
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
 8011a90:	34 07 00 03 	mvi r7,3                                       
  uint32_t         length,                                            
  uint32_t         buffer_size,                                       
  rtems_attribute  attribute_set,                                     
  rtems_id        *id                                                 
)                                                                     
{                                                                     
 8011a94:	b8 20 88 00 	mv r17,r1                                      
 8011a98:	b8 40 70 00 	mv r14,r2                                      
 8011a9c:	b8 60 78 00 	mv r15,r3                                      
 8011aa0:	b8 80 60 00 	mv r12,r4                                      
 8011aa4:	b8 a0 98 00 	mv r19,r5                                      
 8011aa8:	b8 c0 80 00 	mv r16,r6                                      
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
 8011aac:	44 20 00 36 	be r1,r0,8011b84 <rtems_partition_create+0x120>
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !starting_address )                                            
    return RTEMS_INVALID_ADDRESS;                                     
 8011ab0:	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 )                                            
 8011ab4:	44 40 00 34 	be r2,r0,8011b84 <rtems_partition_create+0x120>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !id )                                                          
 8011ab8:	44 c0 00 33 	be r6,r0,8011b84 <rtems_partition_create+0x120><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( length == 0 || buffer_size == 0 || length < buffer_size ||     
 8011abc:	64 82 00 00 	cmpei r2,r4,0                                  
 8011ac0:	64 61 00 00 	cmpei r1,r3,0                                  
         !_Partition_Is_buffer_size_aligned( buffer_size ) )          
    return RTEMS_INVALID_SIZE;                                        
 8011ac4:	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 ||     
 8011ac8:	b8 41 08 00 	or r1,r2,r1                                    
 8011acc:	5c 20 00 2e 	bne r1,r0,8011b84 <rtems_partition_create+0x120>
 8011ad0:	54 83 00 2d 	bgu r4,r3,8011b84 <rtems_partition_create+0x120>
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Partition_Is_buffer_size_aligned (         
   uint32_t   buffer_size                                             
)                                                                     
{                                                                     
  return ((buffer_size % CPU_PARTITION_ALIGNMENT) == 0);              
 8011ad4:	20 81 00 07 	andi r1,r4,0x7                                 
 8011ad8:	5c 20 00 2b 	bne r1,r0,8011b84 <rtems_partition_create+0x120>
)                                                                     
{                                                                     
#if (CPU_ALIGNMENT == 0)                                              
    return true;                                                      
#else                                                                 
    return (((uintptr_t)address % CPU_ALIGNMENT) == 0);               
 8011adc:	21 d2 00 07 	andi r18,r14,0x7                               
         !_Partition_Is_buffer_size_aligned( buffer_size ) )          
    return RTEMS_INVALID_SIZE;                                        
                                                                      
  if ( !_Addresses_Is_aligned( starting_address ) )                   
     return RTEMS_INVALID_ADDRESS;                                    
 8011ae0:	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 ) )                   
 8011ae4:	5e 41 00 28 	bne r18,r1,8011b84 <rtems_partition_create+0x120>
 8011ae8:	78 02 08 03 	mvhi r2,0x803                                  
 8011aec:	38 42 ec 2c 	ori r2,r2,0xec2c                               
 8011af0:	28 41 00 00 	lw r1,(r2+0)                                   
 8011af4:	34 21 00 01 	addi r1,r1,1                                   
 8011af8:	58 41 00 00 	sw (r2+0),r1                                   
 *  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 );
 8011afc:	78 0d 08 03 	mvhi r13,0x803                                 
 8011b00:	39 ad ea 80 	ori r13,r13,0xea80                             
 8011b04:	b9 a0 08 00 	mv r1,r13                                      
 8011b08:	f8 00 15 c7 	calli 8017224 <_Objects_Allocate>              
 8011b0c:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  _Thread_Disable_dispatch();               /* prevents deletion */   
                                                                      
  the_partition = _Partition_Allocate();                              
                                                                      
  if ( !the_partition ) {                                             
 8011b10:	5c 32 00 04 	bne r1,r18,8011b20 <rtems_partition_create+0xbc>
    _Thread_Enable_dispatch();                                        
 8011b14:	f8 00 1a 3b 	calli 8018400 <_Thread_Enable_dispatch>        
    return RTEMS_TOO_MANY;                                            
 8011b18:	34 07 00 05 	mvi r7,5                                       
 8011b1c:	e0 00 00 1a 	bi 8011b84 <rtems_partition_create+0x120>      
  }                                                                   
#endif                                                                
                                                                      
  the_partition->starting_address      = starting_address;            
  the_partition->length                = length;                      
  the_partition->buffer_size           = buffer_size;                 
 8011b20:	58 2c 00 18 	sw (r1+24),r12                                 
  the_partition->attribute_set         = attribute_set;               
  the_partition->number_of_used_blocks = 0;                           
                                                                      
  _Chain_Initialize( &the_partition->Memory, starting_address,        
                        length / buffer_size, buffer_size );          
 8011b24:	b9 80 10 00 	mv r2,r12                                      
    _Thread_Enable_dispatch();                                        
    return RTEMS_TOO_MANY;                                            
  }                                                                   
#endif                                                                
                                                                      
  the_partition->starting_address      = starting_address;            
 8011b28:	58 2e 00 10 	sw (r1+16),r14                                 
  the_partition->length                = length;                      
 8011b2c:	58 2f 00 14 	sw (r1+20),r15                                 
  the_partition->buffer_size           = buffer_size;                 
  the_partition->attribute_set         = attribute_set;               
 8011b30:	58 33 00 1c 	sw (r1+28),r19                                 
  the_partition->number_of_used_blocks = 0;                           
 8011b34:	58 20 00 20 	sw (r1+32),r0                                  
                                                                      
  _Chain_Initialize( &the_partition->Memory, starting_address,        
 8011b38:	34 32 00 24 	addi r18,r1,36                                 
                        length / buffer_size, buffer_size );          
 8011b3c:	b9 e0 08 00 	mv r1,r15                                      
 8011b40:	f8 00 78 72 	calli 802fd08 <__udivsi3>                      
 8011b44:	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,        
 8011b48:	b9 80 20 00 	mv r4,r12                                      
 8011b4c:	ba 40 08 00 	mv r1,r18                                      
 8011b50:	b9 c0 10 00 	mv r2,r14                                      
 8011b54:	f8 00 0e ec 	calli 8015704 <_Chain_Initialize>              
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
 8011b58:	29 6c 00 08 	lw r12,(r11+8)                                 
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 8011b5c:	29 ad 00 1c 	lw r13,(r13+28)                                
 8011b60:	34 02 00 02 	mvi r2,2                                       
 8011b64:	21 81 ff ff 	andi r1,r12,0xffff                             
 8011b68:	fb ff f0 ee 	calli 800df20 <__ashlsi3>                      
 8011b6c:	b5 a1 08 00 	add r1,r13,r1                                  
 8011b70:	58 2b 00 00 	sw (r1+0),r11                                  
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
 8011b74:	59 71 00 0c 	sw (r11+12),r17                                
    &_Partition_Information,                                          
    &the_partition->Object,                                           
    (Objects_Name) name                                               
  );                                                                  
                                                                      
  *id = the_partition->Object.id;                                     
 8011b78:	5a 0c 00 00 	sw (r16+0),r12                                 
      name,                                                           
      0                  /* Not used */                               
    );                                                                
#endif                                                                
                                                                      
  _Thread_Enable_dispatch();                                          
 8011b7c:	f8 00 1a 21 	calli 8018400 <_Thread_Enable_dispatch>        
  return RTEMS_SUCCESSFUL;                                            
 8011b80:	34 07 00 00 	mvi r7,0                                       
}                                                                     
 8011b84:	b8 e0 08 00 	mv r1,r7                                       
 8011b88:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8011b8c:	2b 8b 00 28 	lw r11,(sp+40)                                 
 8011b90:	2b 8c 00 24 	lw r12,(sp+36)                                 
 8011b94:	2b 8d 00 20 	lw r13,(sp+32)                                 
 8011b98:	2b 8e 00 1c 	lw r14,(sp+28)                                 
 8011b9c:	2b 8f 00 18 	lw r15,(sp+24)                                 
 8011ba0:	2b 90 00 14 	lw r16,(sp+20)                                 
 8011ba4:	2b 91 00 10 	lw r17,(sp+16)                                 
 8011ba8:	2b 92 00 0c 	lw r18,(sp+12)                                 
 8011bac:	2b 93 00 08 	lw r19,(sp+8)                                  
 8011bb0:	37 9c 00 28 	addi sp,sp,40                                  
 8011bb4:	c3 a0 00 00 	ret                                            
                                                                      

0800ad74 <rtems_rate_monotonic_get_statistics>: rtems_status_code rtems_rate_monotonic_get_statistics( rtems_id id, rtems_rate_monotonic_period_statistics *statistics ) {
 800ad74:	37 9c ff f4 	addi sp,sp,-12                                 
 800ad78:	5b 8b 00 08 	sw (sp+8),r11                                  
 800ad7c:	5b 9d 00 04 	sw (sp+4),ra                                   
 800ad80:	b8 20 18 00 	mv r3,r1                                       
 800ad84:	b8 40 58 00 	mv r11,r2                                      
  Rate_monotonic_Control                  *the_period;                
  rtems_rate_monotonic_period_statistics  *dst;                       
  Rate_monotonic_Statistics               *src;                       
                                                                      
  if ( !statistics )                                                  
    return RTEMS_INVALID_ADDRESS;                                     
 800ad88:	34 01 00 09 	mvi r1,9                                       
  Objects_Locations                        location;                  
  Rate_monotonic_Control                  *the_period;                
  rtems_rate_monotonic_period_statistics  *dst;                       
  Rate_monotonic_Statistics               *src;                       
                                                                      
  if ( !statistics )                                                  
 800ad8c:	44 40 00 28 	be r2,r0,800ae2c <rtems_rate_monotonic_get_statistics+0xb8><== NEVER TAKEN
 800ad90:	78 01 08 01 	mvhi r1,0x801                                  
 800ad94:	b8 60 10 00 	mv r2,r3                                       
 800ad98:	38 21 f8 18 	ori r1,r1,0xf818                               
 800ad9c:	37 83 00 0c 	addi r3,sp,12                                  
 800ada0:	fb ff ef 0b 	calli 80069cc <_Objects_Get>                   
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_period = _Rate_monotonic_Get( id, &location );                  
  switch ( location ) {                                               
 800ada4:	2b 82 00 0c 	lw r2,(sp+12)                                  
 800ada8:	5c 40 00 20 	bne r2,r0,800ae28 <rtems_rate_monotonic_get_statistics+0xb4>
                                                                      
    case OBJECTS_LOCAL:                                               
      dst = statistics;                                               
      src = &the_period->Statistics;                                  
      dst->count        = src->count;                                 
 800adac:	28 22 00 54 	lw r2,(r1+84)                                  
 800adb0:	59 62 00 00 	sw (r11+0),r2                                  
      dst->missed_count = src->missed_count;                          
 800adb4:	28 22 00 58 	lw r2,(r1+88)                                  
 800adb8:	59 62 00 04 	sw (r11+4),r2                                  
      #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                      
        _Timestamp_To_timespec( &src->min_cpu_time,   &dst->min_cpu_time );
 800adbc:	28 22 00 5c 	lw r2,(r1+92)                                  
 800adc0:	59 62 00 08 	sw (r11+8),r2                                  
 800adc4:	28 22 00 60 	lw r2,(r1+96)                                  
 800adc8:	59 62 00 0c 	sw (r11+12),r2                                 
        _Timestamp_To_timespec( &src->max_cpu_time,   &dst->max_cpu_time );
 800adcc:	28 22 00 64 	lw r2,(r1+100)                                 
 800add0:	59 62 00 10 	sw (r11+16),r2                                 
 800add4:	28 22 00 68 	lw r2,(r1+104)                                 
 800add8:	59 62 00 14 	sw (r11+20),r2                                 
        _Timestamp_To_timespec( &src->total_cpu_time, &dst->total_cpu_time );
 800addc:	28 22 00 6c 	lw r2,(r1+108)                                 
 800ade0:	59 62 00 18 	sw (r11+24),r2                                 
 800ade4:	28 22 00 70 	lw r2,(r1+112)                                 
 800ade8:	59 62 00 1c 	sw (r11+28),r2                                 
        _Timestamp_To_timespec( &src->min_wall_time,   &dst->min_wall_time );
 800adec:	28 22 00 74 	lw r2,(r1+116)                                 
 800adf0:	59 62 00 20 	sw (r11+32),r2                                 
 800adf4:	28 22 00 78 	lw r2,(r1+120)                                 
 800adf8:	59 62 00 24 	sw (r11+36),r2                                 
        _Timestamp_To_timespec( &src->max_wall_time,   &dst->max_wall_time );
 800adfc:	28 22 00 7c 	lw r2,(r1+124)                                 
 800ae00:	59 62 00 28 	sw (r11+40),r2                                 
 800ae04:	28 22 00 80 	lw r2,(r1+128)                                 
 800ae08:	59 62 00 2c 	sw (r11+44),r2                                 
        _Timestamp_To_timespec( &src->total_wall_time, &dst->total_wall_time );
 800ae0c:	28 22 00 84 	lw r2,(r1+132)                                 
 800ae10:	28 21 00 88 	lw r1,(r1+136)                                 
 800ae14:	59 62 00 30 	sw (r11+48),r2                                 
 800ae18:	59 61 00 34 	sw (r11+52),r1                                 
        dst->min_wall_time   = src->min_wall_time;                    
        dst->max_wall_time   = src->max_wall_time;                    
        dst->total_wall_time = src->total_wall_time;                  
      #endif                                                          
                                                                      
      _Thread_Enable_dispatch();                                      
 800ae1c:	fb ff f1 5d 	calli 8007390 <_Thread_Enable_dispatch>        
      return RTEMS_SUCCESSFUL;                                        
 800ae20:	34 01 00 00 	mvi r1,0                                       
 800ae24:	e0 00 00 02 	bi 800ae2c <rtems_rate_monotonic_get_statistics+0xb8>
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 800ae28:	34 01 00 04 	mvi r1,4                                       
}                                                                     
 800ae2c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800ae30:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800ae34:	37 9c 00 0c 	addi sp,sp,12                                  
 800ae38:	c3 a0 00 00 	ret                                            
                                                                      

08004158 <rtems_rate_monotonic_period>: rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) {
 8004158:	37 9c ff e8 	addi sp,sp,-24                                 
 800415c:	5b 8b 00 14 	sw (sp+20),r11                                 
 8004160:	5b 8c 00 10 	sw (sp+16),r12                                 
 8004164:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8004168:	5b 8e 00 08 	sw (sp+8),r14                                  
 800416c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004170:	b8 20 70 00 	mv r14,r1                                      
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Rate_monotonic_Control *)                                   
    _Objects_Get( &_Rate_monotonic_Information, id, location );       
 8004174:	78 01 08 01 	mvhi r1,0x801                                  
 8004178:	b8 40 60 00 	mv r12,r2                                      
 800417c:	38 21 f8 18 	ori r1,r1,0xf818                               
 8004180:	b9 c0 10 00 	mv r2,r14                                      
 8004184:	37 83 00 18 	addi r3,sp,24                                  
 8004188:	f8 00 0a 11 	calli 80069cc <_Objects_Get>                   
 800418c:	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 ) {                                               
 8004190:	2b 81 00 18 	lw r1,(sp+24)                                  
 8004194:	5c 20 00 5f 	bne r1,r0,8004310 <rtems_rate_monotonic_period+0x1b8>
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
 8004198:	78 03 08 01 	mvhi r3,0x801                                  
 800419c:	38 63 fb 10 	ori r3,r3,0xfb10                               
    case OBJECTS_LOCAL:                                               
      if ( !_Thread_Is_executing( the_period->owner ) ) {             
 80041a0:	29 62 00 40 	lw r2,(r11+64)                                 
 80041a4:	28 61 00 0c 	lw r1,(r3+12)                                  
 80041a8:	44 41 00 04 	be r2,r1,80041b8 <rtems_rate_monotonic_period+0x60>
        _Thread_Enable_dispatch();                                    
 80041ac:	f8 00 0c 79 	calli 8007390 <_Thread_Enable_dispatch>        
        return RTEMS_NOT_OWNER_OF_RESOURCE;                           
 80041b0:	34 0b 00 17 	mvi r11,23                                     
 80041b4:	e0 00 00 58 	bi 8004314 <rtems_rate_monotonic_period+0x1bc> 
      }                                                               
                                                                      
      if ( length == RTEMS_PERIOD_STATUS ) {                          
 80041b8:	5d 80 00 0d 	bne r12,r0,80041ec <rtems_rate_monotonic_period+0x94>
        switch ( the_period->state ) {                                
 80041bc:	29 61 00 38 	lw r1,(r11+56)                                 
 80041c0:	34 02 00 04 	mvi r2,4                                       
 80041c4:	34 0b 00 00 	mvi r11,0                                      
 80041c8:	54 22 00 07 	bgu r1,r2,80041e4 <rtems_rate_monotonic_period+0x8c><== NEVER TAKEN
 80041cc:	78 0b 08 01 	mvhi r11,0x801                                 
 80041d0:	34 02 00 02 	mvi r2,2                                       
 80041d4:	39 6b cc c8 	ori r11,r11,0xccc8                             
 80041d8:	fb ff f4 33 	calli 80012a4 <__ashlsi3>                      
 80041dc:	b5 61 08 00 	add r1,r11,r1                                  
 80041e0:	28 2b 00 00 	lw r11,(r1+0)                                  
          case RATE_MONOTONIC_ACTIVE:                                 
          default:              /* unreached -- only to remove warnings */
            return_value = RTEMS_SUCCESSFUL;                          
            break;                                                    
        }                                                             
        _Thread_Enable_dispatch();                                    
 80041e4:	f8 00 0c 6b 	calli 8007390 <_Thread_Enable_dispatch>        
        return( return_value );                                       
 80041e8:	e0 00 00 4b 	bi 8004314 <rtems_rate_monotonic_period+0x1bc> 
      }                                                               
                                                                      
      _ISR_Disable( level );                                          
 80041ec:	90 00 68 00 	rcsr r13,IE                                    
 80041f0:	34 01 ff fe 	mvi r1,-2                                      
 80041f4:	a1 a1 08 00 	and r1,r13,r1                                  
 80041f8:	d0 01 00 00 	wcsr IE,r1                                     
      switch ( the_period->state ) {                                  
 80041fc:	29 63 00 38 	lw r3,(r11+56)                                 
 8004200:	34 01 00 02 	mvi r1,2                                       
 8004204:	44 61 00 16 	be r3,r1,800425c <rtems_rate_monotonic_period+0x104>
 8004208:	34 01 00 04 	mvi r1,4                                       
 800420c:	44 61 00 33 	be r3,r1,80042d8 <rtems_rate_monotonic_period+0x180>
 8004210:	5c 60 00 40 	bne r3,r0,8004310 <rtems_rate_monotonic_period+0x1b8><== NEVER TAKEN
        case RATE_MONOTONIC_INACTIVE: {                               
                                                                      
          _ISR_Enable( level );                                       
 8004214:	d0 0d 00 00 	wcsr IE,r13                                    
                                                                      
          /*                                                          
           *  Baseline statistics information for the beginning of a period.
           */                                                         
          _Rate_monotonic_Initiate_statistics( the_period );          
 8004218:	b9 60 08 00 	mv r1,r11                                      
 800421c:	fb ff ff 6a 	calli 8003fc4 <_Rate_monotonic_Initiate_statistics>
                                                                      
          the_period->state = RATE_MONOTONIC_ACTIVE;                  
 8004220:	34 01 00 02 	mvi r1,2                                       
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
 8004224:	78 03 08 00 	mvhi r3,0x800                                  
 8004228:	59 61 00 38 	sw (r11+56),r1                                 
 800422c:	38 63 46 98 	ori r3,r3,0x4698                               
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 8004230:	78 01 08 01 	mvhi r1,0x801                                  
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 8004234:	59 60 00 18 	sw (r11+24),r0                                 
  the_watchdog->routine   = routine;                                  
 8004238:	59 63 00 2c 	sw (r11+44),r3                                 
  the_watchdog->id        = id;                                       
 800423c:	59 6e 00 30 	sw (r11+48),r14                                
  the_watchdog->user_data = user_data;                                
 8004240:	59 60 00 34 	sw (r11+52),r0                                 
            _Rate_monotonic_Timeout,                                  
            id,                                                       
            NULL                                                      
          );                                                          
                                                                      
          the_period->next_length = length;                           
 8004244:	59 6c 00 3c 	sw (r11+60),r12                                
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 8004248:	59 6c 00 1c 	sw (r11+28),r12                                
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 800424c:	38 21 fa 08 	ori r1,r1,0xfa08                               
 8004250:	35 62 00 10 	addi r2,r11,16                                 
 8004254:	f8 00 12 2d 	calli 8008b08 <_Watchdog_Insert>               
 8004258:	e0 00 00 1d 	bi 80042cc <rtems_rate_monotonic_period+0x174> 
        case RATE_MONOTONIC_ACTIVE:                                   
                                                                      
          /*                                                          
           *  Update statistics from the concluding period.           
           */                                                         
          _Rate_monotonic_Update_statistics( the_period );            
 800425c:	b9 60 08 00 	mv r1,r11                                      
 8004260:	fb ff ff 7e 	calli 8004058 <_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;       
 8004264:	34 01 00 01 	mvi r1,1                                       
 8004268:	59 61 00 38 	sw (r11+56),r1                                 
          the_period->next_length = length;                           
 800426c:	59 6c 00 3c 	sw (r11+60),r12                                
                                                                      
          _ISR_Enable( level );                                       
 8004270:	d0 0d 00 00 	wcsr IE,r13                                    
                                                                      
          _Thread_Executing->Wait.id = the_period->Object.id;         
 8004274:	78 01 08 01 	mvhi r1,0x801                                  
 8004278:	38 21 fb 10 	ori r1,r1,0xfb10                               
 800427c:	29 62 00 08 	lw r2,(r11+8)                                  
 8004280:	28 21 00 0c 	lw r1,(r1+12)                                  
 8004284:	58 22 00 20 	sw (r1+32),r2                                  
          _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
 8004288:	34 02 40 00 	mvi r2,16384                                   
 800428c:	f8 00 0f 12 	calli 8007ed4 <_Thread_Set_state>              
                                                                      
          /*                                                          
           *  Did the watchdog timer expire while we were actually blocking
           *  on it?                                                  
           */                                                         
          _ISR_Disable( level );                                      
 8004290:	90 00 08 00 	rcsr r1,IE                                     
 8004294:	34 02 ff fe 	mvi r2,-2                                      
 8004298:	a0 22 10 00 	and r2,r1,r2                                   
 800429c:	d0 02 00 00 	wcsr IE,r2                                     
            local_state = the_period->state;                          
            the_period->state = RATE_MONOTONIC_ACTIVE;                
 80042a0:	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;                          
 80042a4:	29 62 00 38 	lw r2,(r11+56)                                 
            the_period->state = RATE_MONOTONIC_ACTIVE;                
 80042a8:	59 63 00 38 	sw (r11+56),r3                                 
          _ISR_Enable( level );                                       
 80042ac:	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 ) 
 80042b0:	34 01 00 03 	mvi r1,3                                       
 80042b4:	5c 41 00 06 	bne r2,r1,80042cc <rtems_rate_monotonic_period+0x174>
            _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
 80042b8:	78 01 08 01 	mvhi r1,0x801                                  
 80042bc:	38 21 fb 10 	ori r1,r1,0xfb10                               
 80042c0:	28 21 00 0c 	lw r1,(r1+12)                                  
 80042c4:	34 02 40 00 	mvi r2,16384                                   
 80042c8:	f8 00 0b 55 	calli 800701c <_Thread_Clear_state>            
                                                                      
          _Thread_Enable_dispatch();                                  
 80042cc:	f8 00 0c 31 	calli 8007390 <_Thread_Enable_dispatch>        
          return RTEMS_SUCCESSFUL;                                    
 80042d0:	34 0b 00 00 	mvi r11,0                                      
 80042d4:	e0 00 00 10 	bi 8004314 <rtems_rate_monotonic_period+0x1bc> 
        case RATE_MONOTONIC_EXPIRED:                                  
                                                                      
          /*                                                          
           *  Update statistics from the concluding period            
           */                                                         
          _Rate_monotonic_Update_statistics( the_period );            
 80042d8:	b9 60 08 00 	mv r1,r11                                      
 80042dc:	fb ff ff 5f 	calli 8004058 <_Rate_monotonic_Update_statistics>
                                                                      
          _ISR_Enable( level );                                       
 80042e0:	d0 0d 00 00 	wcsr IE,r13                                    
                                                                      
          the_period->state = RATE_MONOTONIC_ACTIVE;                  
 80042e4:	34 01 00 02 	mvi r1,2                                       
 80042e8:	59 61 00 38 	sw (r11+56),r1                                 
 80042ec:	78 01 08 01 	mvhi r1,0x801                                  
 80042f0:	35 62 00 10 	addi r2,r11,16                                 
          the_period->next_length = length;                           
 80042f4:	59 6c 00 3c 	sw (r11+60),r12                                
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 80042f8:	59 6c 00 1c 	sw (r11+28),r12                                
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 80042fc:	38 21 fa 08 	ori r1,r1,0xfa08                               
 8004300:	f8 00 12 02 	calli 8008b08 <_Watchdog_Insert>               
                                                                      
          _Watchdog_Insert_ticks( &the_period->Timer, length );       
          _Thread_Enable_dispatch();                                  
          return RTEMS_TIMEOUT;                                       
 8004304:	34 0b 00 06 	mvi r11,6                                      
                                                                      
          the_period->state = RATE_MONOTONIC_ACTIVE;                  
          the_period->next_length = length;                           
                                                                      
          _Watchdog_Insert_ticks( &the_period->Timer, length );       
          _Thread_Enable_dispatch();                                  
 8004308:	f8 00 0c 22 	calli 8007390 <_Thread_Enable_dispatch>        
          return RTEMS_TIMEOUT;                                       
 800430c:	e0 00 00 02 	bi 8004314 <rtems_rate_monotonic_period+0x1bc> 
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8004310:	34 0b 00 04 	mvi r11,4                                      
}                                                                     
 8004314:	b9 60 08 00 	mv r1,r11                                      
 8004318:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800431c:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8004320:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8004324:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8004328:	2b 8e 00 08 	lw r14,(sp+8)                                  
 800432c:	37 9c 00 18 	addi sp,sp,24                                  
 8004330:	c3 a0 00 00 	ret                                            
                                                                      

08004334 <rtems_rate_monotonic_report_statistics_with_plugin>: */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) {
 8004334:	37 9c ff 5c 	addi sp,sp,-164                                
 8004338:	5b 8b 00 44 	sw (sp+68),r11                                 
 800433c:	5b 8c 00 40 	sw (sp+64),r12                                 
 8004340:	5b 8d 00 3c 	sw (sp+60),r13                                 
 8004344:	5b 8e 00 38 	sw (sp+56),r14                                 
 8004348:	5b 8f 00 34 	sw (sp+52),r15                                 
 800434c:	5b 90 00 30 	sw (sp+48),r16                                 
 8004350:	5b 91 00 2c 	sw (sp+44),r17                                 
 8004354:	5b 92 00 28 	sw (sp+40),r18                                 
 8004358:	5b 93 00 24 	sw (sp+36),r19                                 
 800435c:	5b 94 00 20 	sw (sp+32),r20                                 
 8004360:	5b 95 00 1c 	sw (sp+28),r21                                 
 8004364:	5b 96 00 18 	sw (sp+24),r22                                 
 8004368:	5b 97 00 14 	sw (sp+20),r23                                 
 800436c:	5b 98 00 10 	sw (sp+16),r24                                 
 8004370:	5b 99 00 0c 	sw (sp+12),r25                                 
 8004374:	5b 9b 00 08 	sw (sp+8),fp                                   
 8004378:	5b 9d 00 04 	sw (sp+4),ra                                   
 800437c:	b8 20 60 00 	mv r12,r1                                      
 8004380:	b8 40 58 00 	mv r11,r2                                      
  rtems_id                               id;                          
  rtems_rate_monotonic_period_statistics the_stats;                   
  rtems_rate_monotonic_period_status     the_status;                  
  char                                   name[5];                     
                                                                      
  if ( !print )                                                       
 8004384:	44 40 00 72 	be r2,r0,800454c <rtems_rate_monotonic_report_statistics_with_plugin+0x218><== NEVER TAKEN
    return;                                                           
                                                                      
  (*print)( context, "Period information by period\n" );              
 8004388:	78 02 08 01 	mvhi r2,0x801                                  
 800438c:	38 42 cc dc 	ori r2,r2,0xccdc                               
 8004390:	d9 60 00 00 	call r11                                       
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    (*print)( context, "--- CPU times are in seconds ---\n" );        
 8004394:	78 02 08 01 	mvhi r2,0x801                                  
 8004398:	38 42 cc fc 	ori r2,r2,0xccfc                               
 800439c:	b9 80 08 00 	mv r1,r12                                      
 80043a0:	d9 60 00 00 	call r11                                       
    (*print)( context, "--- Wall times are in seconds ---\n" );       
 80043a4:	78 02 08 01 	mvhi r2,0x801                                  
 80043a8:	38 42 cd 20 	ori r2,r2,0xcd20                               
 80043ac:	b9 80 08 00 	mv r1,r12                                      
 80043b0:	d9 60 00 00 	call r11                                       
  Be sure to test the various cases.                                  
  (*print)( context,"\                                                
1234567890123456789012345678901234567890123456789012345678901234567890123456789\
\n");                                                                 
*/                                                                    
  (*print)( context, "   ID     OWNER COUNT MISSED     "              
 80043b4:	78 02 08 01 	mvhi r2,0x801                                  
 80043b8:	38 42 cd 44 	ori r2,r2,0xcd44                               
 80043bc:	b9 80 08 00 	mv r1,r12                                      
 80043c0:	d9 60 00 00 	call r11                                       
       #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                     
          "          "                                                
       #endif                                                         
          "   WALL TIME\n"                                            
  );                                                                  
  (*print)( context, "                               "                
 80043c4:	78 02 08 01 	mvhi r2,0x801                                  
 80043c8:	b9 80 08 00 	mv r1,r12                                      
 80043cc:	38 42 cd 90 	ori r2,r2,0xcd90                               
 80043d0:	d9 60 00 00 	call r11                                       
                                                                      
  /*                                                                  
   * 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 ;                   
 80043d4:	78 01 08 01 	mvhi r1,0x801                                  
 80043d8:	38 21 f8 18 	ori r1,r1,0xf818                               
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
 80043dc:	78 11 08 01 	mvhi r17,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,                                              
 80043e0:	78 10 08 01 	mvhi r16,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,                                              
 80043e4:	78 0f 08 01 	mvhi r15,0x801                                 
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
 80043e8:	78 0e 08 01 	mvhi r14,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 ;                   
 80043ec:	28 2d 00 08 	lw r13,(r1+8)                                  
        id <= _Rate_monotonic_Information.maximum_id ;                
 80043f0:	b8 20 a0 00 	mv r20,r1                                      
        id++ ) {                                                      
    status = rtems_rate_monotonic_get_statistics( id, &the_stats );   
 80043f4:	37 99 00 48 	addi r25,sp,72                                 
    if ( status != RTEMS_SUCCESSFUL )                                 
      continue;                                                       
                                                                      
    /* If the above passed, so should this but check it anyway */     
    status = rtems_rate_monotonic_get_status( id, &the_status );      
 80043f8:	37 98 00 80 	addi r24,sp,128                                
    #if defined(RTEMS_DEBUG)                                          
      if ( status != RTEMS_SUCCESSFUL )                               
        continue;                                                     
    #endif                                                            
                                                                      
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
 80043fc:	37 93 00 a0 	addi r19,sp,160                                
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
 8004400:	3a 31 cd dc 	ori r17,r17,0xcddc                             
    {                                                                 
    #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;         
 8004404:	37 97 00 60 	addi r23,sp,96                                 
                                                                      
      _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average );
 8004408:	37 92 00 98 	addi r18,sp,152                                
      (*print)( context,                                              
 800440c:	3a 10 cd f4 	ori r16,r16,0xcdf4                             
    {                                                                 
    #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;       
 8004410:	37 96 00 78 	addi r22,sp,120                                
                                                                      
      _Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average);
      (*print)( context,                                              
 8004414:	39 ef ce 14 	ori r15,r15,0xce14                             
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
 8004418:	39 ce c3 20 	ori r14,r14,0xc320                             
                                                                      
  /*                                                                  
   * 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 ;                   
 800441c:	e0 00 00 4a 	bi 8004544 <rtems_rate_monotonic_report_statistics_with_plugin+0x210>
        id <= _Rate_monotonic_Information.maximum_id ;                
        id++ ) {                                                      
    status = rtems_rate_monotonic_get_statistics( id, &the_stats );   
 8004420:	b9 a0 08 00 	mv r1,r13                                      
 8004424:	bb 20 10 00 	mv r2,r25                                      
 8004428:	f8 00 1a 53 	calli 800ad74 <rtems_rate_monotonic_get_statistics>
 800442c:	b8 20 a8 00 	mv r21,r1                                      
    if ( status != RTEMS_SUCCESSFUL )                                 
 8004430:	5c 20 00 44 	bne r1,r0,8004540 <rtems_rate_monotonic_report_statistics_with_plugin+0x20c>
      continue;                                                       
                                                                      
    /* If the above passed, so should this but check it anyway */     
    status = rtems_rate_monotonic_get_status( id, &the_status );      
 8004434:	bb 00 10 00 	mv r2,r24                                      
 8004438:	b9 a0 08 00 	mv r1,r13                                      
 800443c:	f8 00 1a 80 	calli 800ae3c <rtems_rate_monotonic_get_status>
    #if defined(RTEMS_DEBUG)                                          
      if ( status != RTEMS_SUCCESSFUL )                               
        continue;                                                     
    #endif                                                            
                                                                      
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
 8004440:	2b 81 00 80 	lw r1,(sp+128)                                 
 8004444:	34 02 00 05 	mvi r2,5                                       
 8004448:	ba 60 18 00 	mv r3,r19                                      
 800444c:	f8 00 00 c3 	calli 8004758 <rtems_object_get_name>          
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
 8004450:	2b 85 00 48 	lw r5,(sp+72)                                  
 8004454:	2b 86 00 4c 	lw r6,(sp+76)                                  
 8004458:	ba 20 10 00 	mv r2,r17                                      
 800445c:	b9 80 08 00 	mv r1,r12                                      
 8004460:	b9 a0 18 00 	mv r3,r13                                      
 8004464:	ba 60 20 00 	mv r4,r19                                      
 8004468:	d9 60 00 00 	call r11                                       
    );                                                                
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
 800446c:	2b 82 00 48 	lw r2,(sp+72)                                  
 8004470:	5c 55 00 05 	bne r2,r21,8004484 <rtems_rate_monotonic_report_statistics_with_plugin+0x150>
      (*print)( context, "\n" );                                      
 8004474:	b9 80 08 00 	mv r1,r12                                      
 8004478:	b9 c0 10 00 	mv r2,r14                                      
 800447c:	d9 60 00 00 	call r11                                       
      continue;                                                       
 8004480:	e0 00 00 30 	bi 8004540 <rtems_rate_monotonic_report_statistics_with_plugin+0x20c>
      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 );
 8004484:	ba 40 18 00 	mv r3,r18                                      
 8004488:	ba e0 08 00 	mv r1,r23                                      
 800448c:	f8 00 10 55 	calli 80085e0 <_Timespec_Divide_by_integer>    
      (*print)( context,                                              
 8004490:	2b 81 00 54 	lw r1,(sp+84)                                  
 8004494:	34 02 03 e8 	mvi r2,1000                                    
 8004498:	f8 00 5c 0b 	calli 801b4c4 <__divsi3>                       
 800449c:	b8 20 d8 00 	mv fp,r1                                       
 80044a0:	2b 81 00 5c 	lw r1,(sp+92)                                  
 80044a4:	34 02 03 e8 	mvi r2,1000                                    
 80044a8:	f8 00 5c 07 	calli 801b4c4 <__divsi3>                       
 80044ac:	b8 20 a8 00 	mv r21,r1                                      
 80044b0:	2b 81 00 9c 	lw r1,(sp+156)                                 
 80044b4:	34 02 03 e8 	mvi r2,1000                                    
 80044b8:	f8 00 5c 03 	calli 801b4c4 <__divsi3>                       
 80044bc:	2b 85 00 58 	lw r5,(sp+88)                                  
 80044c0:	2b 87 00 98 	lw r7,(sp+152)                                 
 80044c4:	2b 83 00 50 	lw r3,(sp+80)                                  
 80044c8:	b8 20 40 00 	mv r8,r1                                       
 80044cc:	bb 60 20 00 	mv r4,fp                                       
 80044d0:	ba a0 30 00 	mv r6,r21                                      
 80044d4:	ba 00 10 00 	mv r2,r16                                      
 80044d8:	b9 80 08 00 	mv r1,r12                                      
 80044dc:	d9 60 00 00 	call r11                                       
      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);
 80044e0:	2b 82 00 48 	lw r2,(sp+72)                                  
 80044e4:	ba 40 18 00 	mv r3,r18                                      
 80044e8:	ba c0 08 00 	mv r1,r22                                      
 80044ec:	f8 00 10 3d 	calli 80085e0 <_Timespec_Divide_by_integer>    
      (*print)( context,                                              
 80044f0:	2b 81 00 6c 	lw r1,(sp+108)                                 
 80044f4:	34 02 03 e8 	mvi r2,1000                                    
 80044f8:	f8 00 5b f3 	calli 801b4c4 <__divsi3>                       
 80044fc:	b8 20 d8 00 	mv fp,r1                                       
 8004500:	2b 81 00 74 	lw r1,(sp+116)                                 
 8004504:	34 02 03 e8 	mvi r2,1000                                    
 8004508:	f8 00 5b ef 	calli 801b4c4 <__divsi3>                       
 800450c:	b8 20 a8 00 	mv r21,r1                                      
 8004510:	2b 81 00 9c 	lw r1,(sp+156)                                 
 8004514:	34 02 03 e8 	mvi r2,1000                                    
 8004518:	f8 00 5b eb 	calli 801b4c4 <__divsi3>                       
 800451c:	2b 83 00 68 	lw r3,(sp+104)                                 
 8004520:	2b 85 00 70 	lw r5,(sp+112)                                 
 8004524:	2b 87 00 98 	lw r7,(sp+152)                                 
 8004528:	b8 20 40 00 	mv r8,r1                                       
 800452c:	b9 e0 10 00 	mv r2,r15                                      
 8004530:	b9 80 08 00 	mv r1,r12                                      
 8004534:	bb 60 20 00 	mv r4,fp                                       
 8004538:	ba a0 30 00 	mv r6,r21                                      
 800453c:	d9 60 00 00 	call r11                                       
   * 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 ;                   
        id <= _Rate_monotonic_Information.maximum_id ;                
        id++ ) {                                                      
 8004540:	35 ad 00 01 	addi r13,r13,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 ;                   
 8004544:	2a 81 00 0c 	lw r1,(r20+12)                                 
 8004548:	50 2d ff b6 	bgeu r1,r13,8004420 <rtems_rate_monotonic_report_statistics_with_plugin+0xec>
        the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall
      );                                                              
    #endif                                                            
    }                                                                 
  }                                                                   
}                                                                     
 800454c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004550:	2b 8b 00 44 	lw r11,(sp+68)                                 
 8004554:	2b 8c 00 40 	lw r12,(sp+64)                                 
 8004558:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 800455c:	2b 8e 00 38 	lw r14,(sp+56)                                 
 8004560:	2b 8f 00 34 	lw r15,(sp+52)                                 
 8004564:	2b 90 00 30 	lw r16,(sp+48)                                 
 8004568:	2b 91 00 2c 	lw r17,(sp+44)                                 
 800456c:	2b 92 00 28 	lw r18,(sp+40)                                 
 8004570:	2b 93 00 24 	lw r19,(sp+36)                                 
 8004574:	2b 94 00 20 	lw r20,(sp+32)                                 
 8004578:	2b 95 00 1c 	lw r21,(sp+28)                                 
 800457c:	2b 96 00 18 	lw r22,(sp+24)                                 
 8004580:	2b 97 00 14 	lw r23,(sp+20)                                 
 8004584:	2b 98 00 10 	lw r24,(sp+16)                                 
 8004588:	2b 99 00 0c 	lw r25,(sp+12)                                 
 800458c:	2b 9b 00 08 	lw fp,(sp+8)                                   
 8004590:	37 9c 00 a4 	addi sp,sp,164                                 
 8004594:	c3 a0 00 00 	ret                                            
                                                                      

0800281c <rtems_semaphore_create>: uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) {
 800281c:	37 9c ff c8 	addi sp,sp,-56                                 
 8002820:	5b 8b 00 20 	sw (sp+32),r11                                 
 8002824:	5b 8c 00 1c 	sw (sp+28),r12                                 
 8002828:	5b 8d 00 18 	sw (sp+24),r13                                 
 800282c:	5b 8e 00 14 	sw (sp+20),r14                                 
 8002830:	5b 8f 00 10 	sw (sp+16),r15                                 
 8002834:	5b 90 00 0c 	sw (sp+12),r16                                 
 8002838:	5b 91 00 08 	sw (sp+8),r17                                  
 800283c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8002840:	b8 20 80 00 	mv r16,r1                                      
 8002844:	b8 40 70 00 	mv r14,r2                                      
 8002848:	b8 60 60 00 	mv r12,r3                                      
 800284c:	b8 80 88 00 	mv r17,r4                                      
 8002850:	b8 a0 78 00 	mv r15,r5                                      
  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;                                        
 8002854:	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 ) )                                 
 8002858:	46 00 00 64 	be r16,r0,80029e8 <rtems_semaphore_create+0x1cc><== NEVER TAKEN
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !id )                                                          
    return RTEMS_INVALID_ADDRESS;                                     
 800285c:	34 01 00 09 	mvi r1,9                                       
  CORE_mutex_Status           mutex_status;                           
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !id )                                                          
 8002860:	44 a0 00 62 	be r5,r0,80029e8 <rtems_semaphore_create+0x1cc><== NEVER TAKEN
 *    id       - semaphore id                                         
 *    RTEMS_SUCCESSFUL - if successful                                
 *    error code - if unsuccessful                                    
 */                                                                   
                                                                      
rtems_status_code rtems_semaphore_create(                             
 8002864:	20 62 00 c0 	andi r2,r3,0xc0                                
      return RTEMS_NOT_DEFINED;                                       
                                                                      
  } else                                                              
#endif                                                                
                                                                      
  if ( _Attributes_Is_inherit_priority( attribute_set ) ||            
 8002868:	44 40 00 09 	be r2,r0,800288c <rtems_semaphore_create+0x70> 
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Attributes_Is_binary_semaphore(            
  rtems_attribute attribute_set                                       
)                                                                     
{                                                                     
  return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_BINARY_SEMAPHORE);
 800286c:	20 64 00 30 	andi r4,r3,0x30                                
              _Attributes_Is_priority_ceiling( attribute_set ) ) {    
                                                                      
    if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) &&       
 8002870:	34 03 00 10 	mvi r3,16                                      
            _Attributes_Is_priority( attribute_set ) ) )              
      return RTEMS_NOT_DEFINED;                                       
 8002874:	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 ) &&       
 8002878:	5c 83 00 5c 	bne r4,r3,80029e8 <rtems_semaphore_create+0x1cc><== NEVER TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Attributes_Is_priority(                    
  rtems_attribute attribute_set                                       
)                                                                     
{                                                                     
   return ( attribute_set & RTEMS_PRIORITY ) ? true : false;          
 800287c:	21 83 00 04 	andi r3,r12,0x4                                
 8002880:	44 60 00 5a 	be r3,r0,80029e8 <rtems_semaphore_create+0x1cc><== NEVER TAKEN
            _Attributes_Is_priority( attribute_set ) ) )              
      return RTEMS_NOT_DEFINED;                                       
                                                                      
  }                                                                   
                                                                      
  if ( _Attributes_Is_inherit_priority( attribute_set ) &&            
 8002884:	34 03 00 c0 	mvi r3,192                                     
 8002888:	44 43 00 58 	be r2,r3,80029e8 <rtems_semaphore_create+0x1cc><== NEVER TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Attributes_Is_counting_semaphore(          
  rtems_attribute attribute_set                                       
)                                                                     
{                                                                     
  return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_COUNTING_SEMAPHORE);
 800288c:	21 8d 00 30 	andi r13,r12,0x30                              
       _Attributes_Is_priority_ceiling( attribute_set ) )             
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) )
 8002890:	45 a0 00 04 	be r13,r0,80028a0 <rtems_semaphore_create+0x84>
 8002894:	34 02 00 01 	mvi r2,1                                       
    return RTEMS_INVALID_NUMBER;                                      
 8002898:	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 ) )
 800289c:	55 c2 00 53 	bgu r14,r2,80029e8 <rtems_semaphore_create+0x1cc><== NEVER TAKEN
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
 80028a0:	78 06 08 01 	mvhi r6,0x801                                  
 80028a4:	38 c6 38 1c 	ori r6,r6,0x381c                               
 80028a8:	28 c1 00 00 	lw r1,(r6+0)                                   
 80028ac:	34 21 00 01 	addi r1,r1,1                                   
 80028b0:	58 c1 00 00 	sw (r6+0),r1                                   
 *  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 );
 80028b4:	78 01 08 01 	mvhi r1,0x801                                  
 80028b8:	38 21 37 30 	ori r1,r1,0x3730                               
 80028bc:	f8 00 06 0a 	calli 80040e4 <_Objects_Allocate>              
 80028c0:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  _Thread_Disable_dispatch();             /* prevents deletion */     
                                                                      
  the_semaphore = _Semaphore_Allocate();                              
                                                                      
  if ( !the_semaphore ) {                                             
 80028c4:	5c 20 00 04 	bne r1,r0,80028d4 <rtems_semaphore_create+0xb8>
    _Thread_Enable_dispatch();                                        
 80028c8:	f8 00 09 f0 	calli 8005088 <_Thread_Enable_dispatch>        
    return RTEMS_TOO_MANY;                                            
 80028cc:	34 01 00 05 	mvi r1,5                                       
 80028d0:	e0 00 00 46 	bi 80029e8 <rtems_semaphore_create+0x1cc>      
    _Thread_Enable_dispatch();                                        
    return RTEMS_TOO_MANY;                                            
  }                                                                   
#endif                                                                
                                                                      
  the_semaphore->attribute_set = attribute_set;                       
 80028d4:	58 2c 00 10 	sw (r1+16),r12                                 
 80028d8:	21 81 00 04 	andi r1,r12,0x4                                
                                                                      
  /*                                                                  
   *  Initialize it as a counting semaphore.                          
   */                                                                 
  if ( _Attributes_Is_counting_semaphore( attribute_set ) ) {         
 80028dc:	5d a0 00 0f 	bne r13,r0,8002918 <rtems_semaphore_create+0xfc>
    /*                                                                
     *  This effectively disables limit checking.                     
     */                                                               
    the_semaphore_attr.maximum_count = 0xFFFFFFFF;                    
 80028e0:	34 02 ff ff 	mvi r2,-1                                      
 80028e4:	5b 82 00 34 	sw (sp+52),r2                                  
                                                                      
    if ( _Attributes_Is_priority( attribute_set ) )                   
 80028e8:	44 2d 00 04 	be r1,r13,80028f8 <rtems_semaphore_create+0xdc>
      the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY;
 80028ec:	34 01 00 01 	mvi r1,1                                       
 80028f0:	5b 81 00 38 	sw (sp+56),r1                                  
 80028f4:	e0 00 00 02 	bi 80028fc <rtems_semaphore_create+0xe0>       
    else                                                              
      the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO;
 80028f8:	5b 80 00 38 	sw (sp+56),r0                                  
     *  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(                                       
 80028fc:	35 61 00 14 	addi r1,r11,20                                 
 8002900:	37 82 00 34 	addi r2,sp,52                                  
 8002904:	b9 c0 18 00 	mv r3,r14                                      
      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;
 8002908:	5b 80 00 24 	sw (sp+36),r0                                  
    the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM;               
 800290c:	5b 80 00 30 	sw (sp+48),r0                                  
                                                                      
    _CORE_semaphore_Initialize(                                       
 8002910:	f8 00 04 05 	calli 8003924 <_CORE_semaphore_Initialize>     
 8002914:	e0 00 00 28 	bi 80029b4 <rtems_semaphore_create+0x198>      
  } 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 ) )                   
 8002918:	44 20 00 04 	be r1,r0,8002928 <rtems_semaphore_create+0x10c>
      the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY;    
 800291c:	34 01 00 01 	mvi r1,1                                       
 8002920:	5b 81 00 2c 	sw (sp+44),r1                                  
 8002924:	e0 00 00 02 	bi 800292c <rtems_semaphore_create+0x110>      
    else                                                              
      the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO;        
 8002928:	5b 80 00 2c 	sw (sp+44),r0                                  
                                                                      
    if ( _Attributes_Is_binary_semaphore( attribute_set ) ) {         
 800292c:	34 01 00 10 	mvi r1,16                                      
 8002930:	5d a1 00 11 	bne r13,r1,8002974 <rtems_semaphore_create+0x158>
      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 ) {
 8002934:	2b 82 00 2c 	lw r2,(sp+44)                                  
      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;        
 8002938:	5b 91 00 30 	sw (sp+48),r17                                 
      the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
 800293c:	5b 80 00 24 	sw (sp+36),r0                                  
      the_mutex_attr.only_owner_release    = false;                   
 8002940:	33 80 00 28 	sb (sp+40),r0                                  
                                                                      
      if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) {
 8002944:	34 01 00 01 	mvi r1,1                                       
 8002948:	5c 41 00 0e 	bne r2,r1,8002980 <rtems_semaphore_create+0x164>
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Attributes_Is_inherit_priority(            
  rtems_attribute attribute_set                                       
)                                                                     
{                                                                     
   return ( attribute_set & RTEMS_INHERIT_PRIORITY ) ? true : false;  
 800294c:	21 81 00 40 	andi r1,r12,0x40                               
        if ( _Attributes_Is_inherit_priority( attribute_set ) ) {     
 8002950:	44 20 00 03 	be r1,r0,800295c <rtems_semaphore_create+0x140>
          the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT;
 8002954:	34 01 00 02 	mvi r1,2                                       
 8002958:	e0 00 00 04 	bi 8002968 <rtems_semaphore_create+0x14c>      
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Attributes_Is_priority_ceiling(            
  rtems_attribute attribute_set                                       
)                                                                     
{                                                                     
   return ( attribute_set & RTEMS_PRIORITY_CEILING ) ? true : false;  
 800295c:	21 8c 00 80 	andi r12,r12,0x80                              
          the_mutex_attr.only_owner_release = true;                   
        } else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) {
 8002960:	45 81 00 08 	be r12,r1,8002980 <rtems_semaphore_create+0x164>
          the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING;
 8002964:	34 01 00 03 	mvi r1,3                                       
 8002968:	5b 81 00 2c 	sw (sp+44),r1                                  
          the_mutex_attr.only_owner_release = true;                   
 800296c:	33 82 00 28 	sb (sp+40),r2                                  
 8002970:	e0 00 00 04 	bi 8002980 <rtems_semaphore_create+0x164>      
        }                                                             
      }                                                               
    } else /* must be simple binary semaphore */ {                    
      the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS;
 8002974:	34 01 00 02 	mvi r1,2                                       
 8002978:	5b 81 00 24 	sw (sp+36),r1                                  
      the_mutex_attr.only_owner_release = false;                      
 800297c:	33 80 00 28 	sb (sp+40),r0                                  
    }                                                                 
                                                                      
    mutex_status = _CORE_mutex_Initialize(                            
 8002980:	65 c3 00 01 	cmpei r3,r14,1                                 
 8002984:	37 82 00 24 	addi r2,sp,36                                  
 8002988:	35 61 00 14 	addi r1,r11,20                                 
 800298c:	f8 00 03 12 	calli 80035d4 <_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 ) {       
 8002990:	34 02 00 06 	mvi r2,6                                       
 8002994:	5c 22 00 08 	bne r1,r2,80029b4 <rtems_semaphore_create+0x198>
 */                                                                   
RTEMS_INLINE_ROUTINE void _Semaphore_Free (                           
  Semaphore_Control *the_semaphore                                    
)                                                                     
{                                                                     
  _Objects_Free( &_Semaphore_Information, &the_semaphore->Object );   
 8002998:	78 01 08 01 	mvhi r1,0x801                                  
 800299c:	38 21 37 30 	ori r1,r1,0x3730                               
 80029a0:	b9 60 10 00 	mv r2,r11                                      
 80029a4:	f8 00 06 cc 	calli 80044d4 <_Objects_Free>                  
      _Semaphore_Free( the_semaphore );                               
      _Thread_Enable_dispatch();                                      
 80029a8:	f8 00 09 b8 	calli 8005088 <_Thread_Enable_dispatch>        
      return RTEMS_INVALID_PRIORITY;                                  
 80029ac:	34 01 00 13 	mvi r1,19                                      
 80029b0:	e0 00 00 0e 	bi 80029e8 <rtems_semaphore_create+0x1cc>      
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
 80029b4:	29 6c 00 08 	lw r12,(r11+8)                                 
      0                          /* Not used */                       
    );                                                                
#endif                                                                
  _Thread_Enable_dispatch();                                          
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 80029b8:	78 02 08 01 	mvhi r2,0x801                                  
 80029bc:	38 42 37 30 	ori r2,r2,0x3730                               
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 80029c0:	28 4d 00 1c 	lw r13,(r2+28)                                 
 80029c4:	21 81 ff ff 	andi r1,r12,0xffff                             
 80029c8:	34 02 00 02 	mvi r2,2                                       
 80029cc:	f8 00 37 a4 	calli 801085c <__ashlsi3>                      
 80029d0:	b5 a1 08 00 	add r1,r13,r1                                  
 80029d4:	58 2b 00 00 	sw (r1+0),r11                                  
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
 80029d8:	59 70 00 0c 	sw (r11+12),r16                                
    &_Semaphore_Information,                                          
    &the_semaphore->Object,                                           
    (Objects_Name) name                                               
  );                                                                  
                                                                      
  *id = the_semaphore->Object.id;                                     
 80029dc:	59 ec 00 00 	sw (r15+0),r12                                 
      the_semaphore->Object.id,                                       
      name,                                                           
      0                          /* Not used */                       
    );                                                                
#endif                                                                
  _Thread_Enable_dispatch();                                          
 80029e0:	f8 00 09 aa 	calli 8005088 <_Thread_Enable_dispatch>        
  return RTEMS_SUCCESSFUL;                                            
 80029e4:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 80029e8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80029ec:	2b 8b 00 20 	lw r11,(sp+32)                                 
 80029f0:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 80029f4:	2b 8d 00 18 	lw r13,(sp+24)                                 
 80029f8:	2b 8e 00 14 	lw r14,(sp+20)                                 
 80029fc:	2b 8f 00 10 	lw r15,(sp+16)                                 
 8002a00:	2b 90 00 0c 	lw r16,(sp+12)                                 
 8002a04:	2b 91 00 08 	lw r17,(sp+8)                                  
 8002a08:	37 9c 00 38 	addi sp,sp,56                                  
 8002a0c:	c3 a0 00 00 	ret                                            
                                                                      

0801349c <rtems_signal_send>: rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) {
 801349c:	37 9c ff f4 	addi sp,sp,-12                                 
 80134a0:	5b 8b 00 08 	sw (sp+8),r11                                  
 80134a4:	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;                                      
 80134a8:	34 03 00 0a 	mvi r3,10                                      
                                                                      
rtems_status_code rtems_signal_send(                                  
  rtems_id          id,                                               
  rtems_signal_set  signal_set                                        
)                                                                     
{                                                                     
 80134ac:	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 )                                                  
 80134b0:	44 40 00 29 	be r2,r0,8013554 <rtems_signal_send+0xb8>      
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 80134b4:	37 82 00 0c 	addi r2,sp,12                                  
 80134b8:	f8 00 13 df 	calli 8018434 <_Thread_Get>                    
  switch ( location ) {                                               
 80134bc:	2b 82 00 0c 	lw r2,(sp+12)                                  
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 80134c0:	34 03 00 04 	mvi r3,4                                       
                                                                      
  if ( !signal_set )                                                  
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  the_thread = _Thread_Get( id, &location );                          
  switch ( location ) {                                               
 80134c4:	5c 40 00 24 	bne r2,r0,8013554 <rtems_signal_send+0xb8>     
                                                                      
    case OBJECTS_LOCAL:                                               
      api = the_thread->API_Extensions[ THREAD_API_RTEMS ];           
 80134c8:	28 23 01 24 	lw r3,(r1+292)                                 
      asr = &api->Signal;                                             
                                                                      
      if ( ! _ASR_Is_null_handler( asr->handler ) ) {                 
 80134cc:	28 64 00 0c 	lw r4,(r3+12)                                  
 80134d0:	44 82 00 1f 	be r4,r2,801354c <rtems_signal_send+0xb0>      
        if ( asr->is_enabled ) {                                      
 80134d4:	40 62 00 08 	lbu r2,(r3+8)                                  
 80134d8:	44 40 00 12 	be r2,r0,8013520 <rtems_signal_send+0x84>      
  rtems_signal_set *signal_set                                        
)                                                                     
{                                                                     
  ISR_Level              _level;                                      
                                                                      
  _ISR_Disable( _level );                                             
 80134dc:	90 00 10 00 	rcsr r2,IE                                     
 80134e0:	34 04 ff fe 	mvi r4,-2                                      
 80134e4:	a0 44 20 00 	and r4,r2,r4                                   
 80134e8:	d0 04 00 00 	wcsr IE,r4                                     
    *signal_set |= signals;                                           
 80134ec:	28 64 00 14 	lw r4,(r3+20)                                  
 80134f0:	b8 8b 58 00 	or r11,r4,r11                                  
 80134f4:	58 6b 00 14 	sw (r3+20),r11                                 
  _ISR_Enable( _level );                                              
 80134f8:	d0 02 00 00 	wcsr IE,r2                                     
          _ASR_Post_signals( signal_set, &asr->signals_posted );      
                                                                      
          if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
 80134fc:	78 02 08 03 	mvhi r2,0x803                                  
 8013500:	38 42 ee 00 	ori r2,r2,0xee00                               
 8013504:	28 43 00 08 	lw r3,(r2+8)                                   
 8013508:	44 60 00 0e 	be r3,r0,8013540 <rtems_signal_send+0xa4>      
 801350c:	28 43 00 0c 	lw r3,(r2+12)                                  
 8013510:	5c 23 00 0c 	bne r1,r3,8013540 <rtems_signal_send+0xa4>     <== NEVER TAKEN
            _Context_Switch_necessary = true;                         
 8013514:	34 01 00 01 	mvi r1,1                                       
 8013518:	30 41 00 18 	sb (r2+24),r1                                  
 801351c:	e0 00 00 09 	bi 8013540 <rtems_signal_send+0xa4>            
  rtems_signal_set *signal_set                                        
)                                                                     
{                                                                     
  ISR_Level              _level;                                      
                                                                      
  _ISR_Disable( _level );                                             
 8013520:	90 00 08 00 	rcsr r1,IE                                     
 8013524:	34 02 ff fe 	mvi r2,-2                                      
 8013528:	a0 22 10 00 	and r2,r1,r2                                   
 801352c:	d0 02 00 00 	wcsr IE,r2                                     
    *signal_set |= signals;                                           
 8013530:	28 62 00 18 	lw r2,(r3+24)                                  
 8013534:	b8 4b 58 00 	or r11,r2,r11                                  
 8013538:	58 6b 00 18 	sw (r3+24),r11                                 
  _ISR_Enable( _level );                                              
 801353c:	d0 01 00 00 	wcsr IE,r1                                     
        } else {                                                      
          _ASR_Post_signals( signal_set, &asr->signals_pending );     
        }                                                             
        _Thread_Enable_dispatch();                                    
 8013540:	f8 00 13 b0 	calli 8018400 <_Thread_Enable_dispatch>        
        return RTEMS_SUCCESSFUL;                                      
 8013544:	34 03 00 00 	mvi r3,0                                       
 8013548:	e0 00 00 03 	bi 8013554 <rtems_signal_send+0xb8>            
      }                                                               
      _Thread_Enable_dispatch();                                      
 801354c:	f8 00 13 ad 	calli 8018400 <_Thread_Enable_dispatch>        
      return RTEMS_NOT_DEFINED;                                       
 8013550:	34 03 00 0b 	mvi r3,11                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8013554:	b8 60 08 00 	mv r1,r3                                       
 8013558:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801355c:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8013560:	37 9c 00 0c 	addi sp,sp,12                                  
 8013564:	c3 a0 00 00 	ret                                            
                                                                      

0800adc4 <rtems_task_mode>: rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) {
 800adc4:	37 9c ff e0 	addi sp,sp,-32                                 
 800adc8:	5b 8b 00 20 	sw (sp+32),r11                                 
 800adcc:	5b 8c 00 1c 	sw (sp+28),r12                                 
 800add0:	5b 8d 00 18 	sw (sp+24),r13                                 
 800add4:	5b 8e 00 14 	sw (sp+20),r14                                 
 800add8:	5b 8f 00 10 	sw (sp+16),r15                                 
 800addc:	5b 90 00 0c 	sw (sp+12),r16                                 
 800ade0:	5b 91 00 08 	sw (sp+8),r17                                  
 800ade4:	5b 9d 00 04 	sw (sp+4),ra                                   
  bool                is_asr_enabled = false;                         
  bool                needs_asr_dispatching = false;                  
  rtems_mode          old_mode;                                       
                                                                      
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
 800ade8:	34 04 00 09 	mvi r4,9                                       
rtems_status_code rtems_task_mode(                                    
  rtems_mode  mode_set,                                               
  rtems_mode  mask,                                                   
  rtems_mode *previous_mode_set                                       
)                                                                     
{                                                                     
 800adec:	b8 20 68 00 	mv r13,r1                                      
 800adf0:	b8 40 70 00 	mv r14,r2                                      
 800adf4:	b8 60 80 00 	mv r16,r3                                      
  ASR_Information    *asr;                                            
  bool                is_asr_enabled = false;                         
  bool                needs_asr_dispatching = false;                  
  rtems_mode          old_mode;                                       
                                                                      
  if ( !previous_mode_set )                                           
 800adf8:	44 60 00 55 	be r3,r0,800af4c <rtems_task_mode+0x188>       
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
 800adfc:	78 01 08 01 	mvhi r1,0x801                                  
 800ae00:	38 21 39 e8 	ori r1,r1,0x39e8                               
 800ae04:	28 2c 00 0c 	lw r12,(r1+12)                                 
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
 800ae08:	41 8f 00 74 	lbu r15,(r12+116)                              
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
 800ae0c:	29 81 00 7c 	lw r1,(r12+124)                                
                                                                      
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
 800ae10:	29 8b 01 24 	lw r11,(r12+292)                               
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
 800ae14:	65 ef 00 00 	cmpei r15,r15,0                                
 800ae18:	c8 0f 78 00 	sub r15,r0,r15                                 
 800ae1c:	21 ef 01 00 	andi r15,r15,0x100                             
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
 800ae20:	44 20 00 02 	be r1,r0,800ae28 <rtems_task_mode+0x64>        
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
 800ae24:	39 ef 02 00 	ori r15,r15,0x200                              
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
 800ae28:	41 71 00 08 	lbu r17,(r11+8)                                
  old_mode |= _ISR_Get_level();                                       
 800ae2c:	fb ff ef 36 	calli 8006b04 <_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;           
 800ae30:	66 31 00 00 	cmpei r17,r17,0                                
 800ae34:	c8 11 88 00 	sub r17,r0,r17                                 
 800ae38:	22 31 04 00 	andi r17,r17,0x400                             
 800ae3c:	ba 21 08 00 	or r1,r17,r1                                   
  old_mode |= _ISR_Get_level();                                       
 800ae40:	b8 2f 78 00 	or r15,r1,r15                                  
                                                                      
  *previous_mode_set = old_mode;                                      
 800ae44:	5a 0f 00 00 	sw (r16+0),r15                                 
                                                                      
  /*                                                                  
   *  These are generic thread scheduling characteristics.            
   */                                                                 
                                                                      
  if ( mask & RTEMS_PREEMPT_MASK )                                    
 800ae48:	21 c1 01 00 	andi r1,r14,0x100                              
 800ae4c:	44 20 00 04 	be r1,r0,800ae5c <rtems_task_mode+0x98>        
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Modes_Is_preempt (                         
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
   return (mode_set & RTEMS_PREEMPT_MASK) == RTEMS_PREEMPT;           
 800ae50:	21 a1 01 00 	andi r1,r13,0x100                              
    executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
 800ae54:	64 21 00 00 	cmpei r1,r1,0                                  
 800ae58:	31 81 00 74 	sb (r12+116),r1                                
                                                                      
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
 800ae5c:	21 c1 02 00 	andi r1,r14,0x200                              
 800ae60:	44 20 00 0b 	be r1,r0,800ae8c <rtems_task_mode+0xc8>        
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Modes_Is_timeslice (                       
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
  return (mode_set & RTEMS_TIMESLICE_MASK) == RTEMS_TIMESLICE;        
 800ae64:	21 a1 02 00 	andi r1,r13,0x200                              
    if ( _Modes_Is_timeslice(mode_set) ) {                            
 800ae68:	44 20 00 08 	be r1,r0,800ae88 <rtems_task_mode+0xc4>        
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
 800ae6c:	34 01 00 01 	mvi r1,1                                       
 800ae70:	59 81 00 7c 	sw (r12+124),r1                                
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
 800ae74:	78 01 08 01 	mvhi r1,0x801                                  
 800ae78:	38 21 37 b4 	ori r1,r1,0x37b4                               
 800ae7c:	28 21 00 00 	lw r1,(r1+0)                                   
 800ae80:	59 81 00 78 	sw (r12+120),r1                                
 800ae84:	e0 00 00 02 	bi 800ae8c <rtems_task_mode+0xc8>              
    } else                                                            
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; 
 800ae88:	59 80 00 7c 	sw (r12+124),r0                                
                                                                      
  /*                                                                  
   *  Set the new interrupt level                                     
   */                                                                 
                                                                      
  if ( mask & RTEMS_INTERRUPT_MASK )                                  
 800ae8c:	21 c1 00 01 	andi r1,r14,0x1                                
 800ae90:	44 20 00 04 	be r1,r0,800aea0 <rtems_task_mode+0xdc>        
 */                                                                   
RTEMS_INLINE_ROUTINE ISR_Level _Modes_Get_interrupt_level (           
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
  return ( mode_set & RTEMS_INTERRUPT_MASK );                         
 800ae94:	21 a1 00 01 	andi r1,r13,0x1                                
 */                                                                   
RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level (                
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
  _ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) );           
 800ae98:	64 21 00 00 	cmpei r1,r1,0                                  
 800ae9c:	d0 01 00 00 	wcsr IE,r1                                     
   */                                                                 
                                                                      
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
 800aea0:	21 ce 04 00 	andi r14,r14,0x400                             
  /*                                                                  
   *  This is specific to the RTEMS API                               
   */                                                                 
                                                                      
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
 800aea4:	34 03 00 00 	mvi r3,0                                       
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
 800aea8:	45 c0 00 11 	be r14,r0,800aeec <rtems_task_mode+0x128>      
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Modes_Is_asr_disabled (                    
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
   return (mode_set & RTEMS_ASR_MASK) == RTEMS_NO_ASR;                
 800aeac:	21 ad 04 00 	andi r13,r13,0x400                             
    is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
    if ( is_asr_enabled != asr->is_enabled ) {                        
 800aeb0:	41 61 00 08 	lbu r1,(r11+8)                                 
 *  Output:                                                           
 *    *previous_mode_set - previous mode set                          
 *     always return RTEMS_SUCCESSFUL;                                
 */                                                                   
                                                                      
rtems_status_code rtems_task_mode(                                    
 800aeb4:	65 ad 00 00 	cmpei r13,r13,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 ) {                        
 800aeb8:	44 2d 00 0d 	be r1,r13,800aeec <rtems_task_mode+0x128>      
      asr->is_enabled = is_asr_enabled;                               
 800aebc:	31 6d 00 08 	sb (r11+8),r13                                 
)                                                                     
{                                                                     
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
 800aec0:	90 00 08 00 	rcsr r1,IE                                     
 800aec4:	34 02 ff fe 	mvi r2,-2                                      
 800aec8:	a0 22 10 00 	and r2,r1,r2                                   
 800aecc:	d0 02 00 00 	wcsr IE,r2                                     
    _signals                     = information->signals_pending;      
 800aed0:	29 62 00 18 	lw r2,(r11+24)                                 
    information->signals_pending = information->signals_posted;       
 800aed4:	29 63 00 14 	lw r3,(r11+20)                                 
    information->signals_posted  = _signals;                          
 800aed8:	59 62 00 14 	sw (r11+20),r2                                 
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
    _signals                     = information->signals_pending;      
    information->signals_pending = information->signals_posted;       
 800aedc:	59 63 00 18 	sw (r11+24),r3                                 
    information->signals_posted  = _signals;                          
  _ISR_Enable( _level );                                              
 800aee0:	d0 01 00 00 	wcsr IE,r1                                     
      _ASR_Swap_signals( asr );                                       
      if ( _ASR_Are_signals_pending( asr ) ) {                        
 800aee4:	29 63 00 14 	lw r3,(r11+20)                                 
  /*                                                                  
   *  This is specific to the RTEMS API                               
   */                                                                 
                                                                      
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
 800aee8:	7c 63 00 00 	cmpnei r3,r3,0                                 
        needs_asr_dispatching = true;                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) )                   
 800aeec:	78 01 08 01 	mvhi r1,0x801                                  
 800aef0:	38 21 39 9c 	ori r1,r1,0x399c                               
 800aef4:	28 22 00 00 	lw r2,(r1+0)                                   
 800aef8:	34 01 00 03 	mvi r1,3                                       
    if ( _Thread_Evaluate_mode() || needs_asr_dispatching )           
      _Thread_Dispatch();                                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 800aefc:	34 04 00 00 	mvi r4,0                                       
        needs_asr_dispatching = true;                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) )                   
 800af00:	5c 41 00 13 	bne r2,r1,800af4c <rtems_task_mode+0x188>      <== NEVER TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Thread_Evaluate_mode( void )               
{                                                                     
  Thread_Control     *executing;                                      
                                                                      
  executing = _Thread_Executing;                                      
 800af04:	78 02 08 01 	mvhi r2,0x801                                  
 800af08:	38 42 39 e8 	ori r2,r2,0x39e8                               
 800af0c:	28 41 00 0c 	lw r1,(r2+12)                                  
                                                                      
  if ( !_States_Is_ready( executing->current_state ) ||               
 800af10:	28 24 00 10 	lw r4,(r1+16)                                  
 800af14:	5c 80 00 05 	bne r4,r0,800af28 <rtems_task_mode+0x164>      <== NEVER TAKEN
 800af18:	28 42 00 10 	lw r2,(r2+16)                                  
 800af1c:	44 22 00 08 	be r1,r2,800af3c <rtems_task_mode+0x178>       
       ( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) {
 800af20:	40 21 00 74 	lbu r1,(r1+116)                                
 800af24:	44 20 00 06 	be r1,r0,800af3c <rtems_task_mode+0x178>       <== NEVER TAKEN
    _Context_Switch_necessary = true;                                 
 800af28:	78 01 08 01 	mvhi r1,0x801                                  
 800af2c:	38 21 39 e8 	ori r1,r1,0x39e8                               
 800af30:	34 02 00 01 	mvi r2,1                                       
 800af34:	30 22 00 18 	sb (r1+24),r2                                  
 800af38:	e0 00 00 03 	bi 800af44 <rtems_task_mode+0x180>             
    if ( _Thread_Evaluate_mode() || needs_asr_dispatching )           
      _Thread_Dispatch();                                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 800af3c:	34 04 00 00 	mvi r4,0                                       
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) )                   
    if ( _Thread_Evaluate_mode() || needs_asr_dispatching )           
 800af40:	44 60 00 03 	be r3,r0,800af4c <rtems_task_mode+0x188>       
      _Thread_Dispatch();                                             
 800af44:	fb ff e7 f1 	calli 8004f08 <_Thread_Dispatch>               
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 800af48:	34 04 00 00 	mvi r4,0                                       
}                                                                     
 800af4c:	b8 80 08 00 	mv r1,r4                                       
 800af50:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800af54:	2b 8b 00 20 	lw r11,(sp+32)                                 
 800af58:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 800af5c:	2b 8d 00 18 	lw r13,(sp+24)                                 
 800af60:	2b 8e 00 14 	lw r14,(sp+20)                                 
 800af64:	2b 8f 00 10 	lw r15,(sp+16)                                 
 800af68:	2b 90 00 0c 	lw r16,(sp+12)                                 
 800af6c:	2b 91 00 08 	lw r17,(sp+8)                                  
 800af70:	37 9c 00 20 	addi sp,sp,32                                  
 800af74:	c3 a0 00 00 	ret                                            
                                                                      

08008538 <rtems_task_set_priority>: rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) {
 8008538:	37 9c ff f0 	addi sp,sp,-16                                 
 800853c:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8008540:	5b 8c 00 08 	sw (sp+8),r12                                  
 8008544:	5b 9d 00 04 	sw (sp+4),ra                                   
 8008548:	b8 40 58 00 	mv r11,r2                                      
 800854c:	b8 60 60 00 	mv r12,r3                                      
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
 8008550:	44 40 00 06 	be r2,r0,8008568 <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 ) );             
 8008554:	78 02 08 01 	mvhi r2,0x801                                  
 8008558:	38 42 90 c0 	ori r2,r2,0x90c0                               
 800855c:	40 43 00 00 	lbu r3,(r2+0)                                  
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
 8008560:	34 02 00 13 	mvi r2,19                                      
)                                                                     
{                                                                     
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
 8008564:	55 63 00 16 	bgu r11,r3,80085bc <rtems_task_set_priority+0x84>
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
                                                                      
  if ( !old_priority )                                                
    return RTEMS_INVALID_ADDRESS;                                     
 8008568:	34 02 00 09 	mvi r2,9                                       
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
                                                                      
  if ( !old_priority )                                                
 800856c:	45 80 00 14 	be r12,r0,80085bc <rtems_task_set_priority+0x84>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 8008570:	37 82 00 10 	addi r2,sp,16                                  
 8008574:	f8 00 09 78 	calli 800ab54 <_Thread_Get>                    
  switch ( location ) {                                               
 8008578:	2b 82 00 10 	lw r2,(sp+16)                                  
 800857c:	5c 40 00 0f 	bne r2,r0,80085b8 <rtems_task_set_priority+0x80>
                                                                      
    case OBJECTS_LOCAL:                                               
      /* XXX need helper to "convert" from core priority */           
      *old_priority = the_thread->current_priority;                   
 8008580:	28 23 00 14 	lw r3,(r1+20)                                  
 8008584:	59 83 00 00 	sw (r12+0),r3                                  
      if ( new_priority != RTEMS_CURRENT_PRIORITY ) {                 
 8008588:	45 62 00 09 	be r11,r2,80085ac <rtems_task_set_priority+0x74>
        the_thread->real_priority = new_priority;                     
        if ( the_thread->resource_count == 0 ||                       
 800858c:	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;                     
 8008590:	58 2b 00 18 	sw (r1+24),r11                                 
        if ( the_thread->resource_count == 0 ||                       
 8008594:	44 40 00 03 	be r2,r0,80085a0 <rtems_task_set_priority+0x68>
 8008598:	28 22 00 14 	lw r2,(r1+20)                                  
 800859c:	51 62 00 04 	bgeu r11,r2,80085ac <rtems_task_set_priority+0x74><== ALWAYS TAKEN
             the_thread->current_priority > new_priority )            
          _Thread_Change_priority( the_thread, new_priority, false ); 
 80085a0:	b9 60 10 00 	mv r2,r11                                      
 80085a4:	34 03 00 00 	mvi r3,0                                       
 80085a8:	f8 00 07 d9 	calli 800a50c <_Thread_Change_priority>        
      }                                                               
      _Thread_Enable_dispatch();                                      
 80085ac:	f8 00 09 5d 	calli 800ab20 <_Thread_Enable_dispatch>        
      return RTEMS_SUCCESSFUL;                                        
 80085b0:	34 02 00 00 	mvi r2,0                                       
 80085b4:	e0 00 00 02 	bi 80085bc <rtems_task_set_priority+0x84>      
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 80085b8:	34 02 00 04 	mvi r2,4                                       
}                                                                     
 80085bc:	b8 40 08 00 	mv r1,r2                                       
 80085c0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80085c4:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 80085c8:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80085cc:	37 9c 00 10 	addi sp,sp,16                                  
 80085d0:	c3 a0 00 00 	ret                                            
                                                                      

08002f64 <rtems_task_start>: rtems_status_code rtems_task_start( rtems_id id, rtems_task_entry entry_point, rtems_task_argument argument ) {
 8002f64:	37 9c ff ec 	addi sp,sp,-20                                 
 8002f68:	5b 8b 00 10 	sw (sp+16),r11                                 
 8002f6c:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8002f70:	5b 8d 00 08 	sw (sp+8),r13                                  
 8002f74:	5b 9d 00 04 	sw (sp+4),ra                                   
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( entry_point == NULL )                                          
    return RTEMS_INVALID_ADDRESS;                                     
 8002f78:	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                                        
)                                                                     
{                                                                     
 8002f7c:	b8 40 60 00 	mv r12,r2                                      
 8002f80:	b8 60 68 00 	mv r13,r3                                      
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( entry_point == NULL )                                          
 8002f84:	44 40 00 11 	be r2,r0,8002fc8 <rtems_task_start+0x64>       <== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 8002f88:	37 82 00 14 	addi r2,sp,20                                  
 8002f8c:	f8 00 08 4c 	calli 80050bc <_Thread_Get>                    
  switch ( location ) {                                               
 8002f90:	2b 8b 00 14 	lw r11,(sp+20)                                 
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8002f94:	34 04 00 04 	mvi r4,4                                       
                                                                      
  if ( entry_point == NULL )                                          
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
  switch ( location ) {                                               
 8002f98:	5d 60 00 0c 	bne r11,r0,8002fc8 <rtems_task_start+0x64>     
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( _Thread_Start(                                             
 8002f9c:	34 02 00 00 	mvi r2,0                                       
 8002fa0:	b9 80 18 00 	mv r3,r12                                      
 8002fa4:	34 04 00 00 	mvi r4,0                                       
 8002fa8:	b9 a0 28 00 	mv r5,r13                                      
 8002fac:	f8 00 0b f0 	calli 8005f6c <_Thread_Start>                  
 8002fb0:	44 2b 00 04 	be r1,r11,8002fc0 <rtems_task_start+0x5c>      
             the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) {
        _Thread_Enable_dispatch();                                    
 8002fb4:	f8 00 08 35 	calli 8005088 <_Thread_Enable_dispatch>        
        return RTEMS_SUCCESSFUL;                                      
 8002fb8:	34 04 00 00 	mvi r4,0                                       
 8002fbc:	e0 00 00 03 	bi 8002fc8 <rtems_task_start+0x64>             
      }                                                               
      _Thread_Enable_dispatch();                                      
 8002fc0:	f8 00 08 32 	calli 8005088 <_Thread_Enable_dispatch>        
      return RTEMS_INCORRECT_STATE;                                   
 8002fc4:	34 04 00 0e 	mvi r4,14                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8002fc8:	b8 80 08 00 	mv r1,r4                                       
 8002fcc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002fd0:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8002fd4:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8002fd8:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8002fdc:	37 9c 00 14 	addi sp,sp,20                                  
 8002fe0:	c3 a0 00 00 	ret                                            
                                                                      

08013fd0 <rtems_timer_cancel>: */ rtems_status_code rtems_timer_cancel( rtems_id id ) {
 8013fd0:	37 9c ff f8 	addi sp,sp,-8                                  
 8013fd4:	5b 9d 00 04 	sw (sp+4),ra                                   
 8013fd8:	b8 20 10 00 	mv r2,r1                                       
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Timer_Control *)                                            
    _Objects_Get( &_Timer_Information, id, location );                
 8013fdc:	78 01 08 03 	mvhi r1,0x803                                  
 8013fe0:	38 21 ee 68 	ori r1,r1,0xee68                               
 8013fe4:	37 83 00 08 	addi r3,sp,8                                   
 8013fe8:	f8 00 0e 49 	calli 801790c <_Objects_Get>                   
  Timer_Control   *the_timer;                                         
  Objects_Locations       location;                                   
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
 8013fec:	2b 82 00 08 	lw r2,(sp+8)                                   
 8013ff0:	5c 40 00 09 	bne r2,r0,8014014 <rtems_timer_cancel+0x44>    <== NEVER TAKEN
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( !_Timer_Is_dormant_class( the_timer->the_class ) )         
 8013ff4:	28 23 00 38 	lw r3,(r1+56)                                  
 8013ff8:	34 02 00 04 	mvi r2,4                                       
 8013ffc:	44 62 00 03 	be r3,r2,8014008 <rtems_timer_cancel+0x38>     <== NEVER TAKEN
        (void) _Watchdog_Remove( &the_timer->Ticker );                
 8014000:	34 21 00 10 	addi r1,r1,16                                  
 8014004:	f8 00 18 0a 	calli 801a02c <_Watchdog_Remove>               
      _Thread_Enable_dispatch();                                      
 8014008:	f8 00 10 fe 	calli 8018400 <_Thread_Enable_dispatch>        
      return RTEMS_SUCCESSFUL;                                        
 801400c:	34 01 00 00 	mvi r1,0                                       
 8014010:	e0 00 00 02 	bi 8014018 <rtems_timer_cancel+0x48>           
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8014014:	34 01 00 04 	mvi r1,4                                       
}                                                                     
 8014018:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801401c:	37 9c 00 08 	addi sp,sp,8                                   
 8014020:	c3 a0 00 00 	ret                                            
                                                                      

080145ec <rtems_timer_server_fire_when>: rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) {
 80145ec:	37 9c ff dc 	addi sp,sp,-36                                 
 80145f0:	5b 8b 00 20 	sw (sp+32),r11                                 
 80145f4:	5b 8c 00 1c 	sw (sp+28),r12                                 
 80145f8:	5b 8d 00 18 	sw (sp+24),r13                                 
 80145fc:	5b 8e 00 14 	sw (sp+20),r14                                 
 8014600:	5b 8f 00 10 	sw (sp+16),r15                                 
 8014604:	5b 90 00 0c 	sw (sp+12),r16                                 
 8014608:	5b 91 00 08 	sw (sp+8),r17                                  
 801460c:	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;                 
 8014610:	78 05 08 03 	mvhi r5,0x803                                  
 8014614:	38 a5 ee a8 	ori r5,r5,0xeea8                               
 8014618:	28 ad 00 00 	lw r13,(r5+0)                                  
  rtems_id                           id,                              
  rtems_time_of_day                  *wall_time,                      
  rtems_timer_service_routine_entry  routine,                         
  void                              *user_data                        
)                                                                     
{                                                                     
 801461c:	b8 20 78 00 	mv r15,r1                                      
 8014620:	b8 40 60 00 	mv r12,r2                                      
 8014624:	b8 60 80 00 	mv r16,r3                                      
 8014628:	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;                                     
 801462c:	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 )                                                
 8014630:	45 a0 00 2e 	be r13,r0,80146e8 <rtems_timer_server_fire_when+0xfc>
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD_Is_set )                                                 
 8014634:	78 05 08 03 	mvhi r5,0x803                                  
 8014638:	38 a5 ec 3c 	ori r5,r5,0xec3c                               
 801463c:	40 a1 00 00 	lbu r1,(r5+0)                                  
    return RTEMS_NOT_DEFINED;                                         
 8014640:	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 )                                                 
 8014644:	44 20 00 29 	be r1,r0,80146e8 <rtems_timer_server_fire_when+0xfc><== NEVER TAKEN
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
 8014648:	34 0b 00 09 	mvi r11,9                                      
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD_Is_set )                                                 
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
 801464c:	44 60 00 27 	be r3,r0,80146e8 <rtems_timer_server_fire_when+0xfc>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
 8014650:	b8 40 08 00 	mv r1,r2                                       
 8014654:	fb ff f1 bc 	calli 8010d44 <_TOD_Validate>                  
    return RTEMS_INVALID_CLOCK;                                       
 8014658:	34 0b 00 14 	mvi r11,20                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
 801465c:	44 20 00 23 	be r1,r0,80146e8 <rtems_timer_server_fire_when+0xfc>
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
 8014660:	b9 80 08 00 	mv r1,r12                                      
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
 8014664:	78 0c 08 03 	mvhi r12,0x803                                 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
 8014668:	fb ff f1 77 	calli 8010c44 <_TOD_To_seconds>                
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
 801466c:	39 8c ec b4 	ori r12,r12,0xecb4                             
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
 8014670:	b8 20 70 00 	mv r14,r1                                      
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
 8014674:	29 81 00 00 	lw r1,(r12+0)                                  
 8014678:	50 2e 00 1c 	bgeu r1,r14,80146e8 <rtems_timer_server_fire_when+0xfc>
 801467c:	78 01 08 03 	mvhi r1,0x803                                  
 8014680:	38 21 ee 68 	ori r1,r1,0xee68                               
 8014684:	b9 e0 10 00 	mv r2,r15                                      
 8014688:	37 83 00 24 	addi r3,sp,36                                  
 801468c:	f8 00 0c a0 	calli 801790c <_Objects_Get>                   
 8014690:	b8 20 58 00 	mv r11,r1                                      
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
 8014694:	2b 81 00 24 	lw r1,(sp+36)                                  
 8014698:	5c 20 00 13 	bne r1,r0,80146e4 <rtems_timer_server_fire_when+0xf8>
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
 801469c:	35 61 00 10 	addi r1,r11,16                                 
 80146a0:	f8 00 16 63 	calli 801a02c <_Watchdog_Remove>               
      the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;               
 80146a4:	34 01 00 03 	mvi r1,3                                       
 80146a8:	59 61 00 38 	sw (r11+56),r1                                 
      _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
      the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
 80146ac:	29 81 00 00 	lw r1,(r12+0)                                  
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
 80146b0:	29 a3 00 04 	lw r3,(r13+4)                                  
 80146b4:	b9 60 10 00 	mv r2,r11                                      
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
      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();
 80146b8:	c9 c1 70 00 	sub r14,r14,r1                                 
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 80146bc:	59 60 00 18 	sw (r11+24),r0                                 
  the_watchdog->routine   = routine;                                  
 80146c0:	59 70 00 2c 	sw (r11+44),r16                                
  the_watchdog->id        = id;                                       
 80146c4:	59 6f 00 30 	sw (r11+48),r15                                
  the_watchdog->user_data = user_data;                                
 80146c8:	59 71 00 34 	sw (r11+52),r17                                
 80146cc:	59 6e 00 1c 	sw (r11+28),r14                                
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
 80146d0:	b9 a0 08 00 	mv r1,r13                                      
 80146d4:	d8 60 00 00 	call r3                                        
                                                                      
      _Thread_Enable_dispatch();                                      
      return RTEMS_SUCCESSFUL;                                        
 80146d8:	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();                                      
 80146dc:	f8 00 0f 49 	calli 8018400 <_Thread_Enable_dispatch>        
      return RTEMS_SUCCESSFUL;                                        
 80146e0:	e0 00 00 02 	bi 80146e8 <rtems_timer_server_fire_when+0xfc> 
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 80146e4:	34 0b 00 04 	mvi r11,4                                      
}                                                                     
 80146e8:	b9 60 08 00 	mv r1,r11                                      
 80146ec:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80146f0:	2b 8b 00 20 	lw r11,(sp+32)                                 
 80146f4:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 80146f8:	2b 8d 00 18 	lw r13,(sp+24)                                 
 80146fc:	2b 8e 00 14 	lw r14,(sp+20)                                 
 8014700:	2b 8f 00 10 	lw r15,(sp+16)                                 
 8014704:	2b 90 00 0c 	lw r16,(sp+12)                                 
 8014708:	2b 91 00 08 	lw r17,(sp+8)                                  
 801470c:	37 9c 00 24 	addi sp,sp,36                                  
 8014710:	c3 a0 00 00 	ret