RTEMS 4.11
Annotated Report
Sun Dec 23 03:07:27 2012

080041c8 <_API_extensions_Add_post_switch>:                           
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_node_off_chain(                   
  const Chain_Node *node                                              
)                                                                     
{                                                                     
  return (node->next == NULL) && (node->previous == NULL);            
 80041c8:	28 22 00 00 	lw r2,(r1+0)                                   
 80041cc:	5c 40 00 0c 	bne r2,r0,80041fc <_API_extensions_Add_post_switch+0x34>
 80041d0:	28 23 00 04 	lw r3,(r1+4)                                   
 80041d4:	5c 62 00 0a 	bne r3,r2,80041fc <_API_extensions_Add_post_switch+0x34><== NEVER TAKEN
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
 80041d8:	78 02 08 01 	mvhi r2,0x801                                  
 80041dc:	38 42 d9 50 	ori r2,r2,0xd950                               
 80041e0:	28 44 00 08 	lw r4,(r2+8)                                   
                                                                      
  the_node->next = tail;                                              
 80041e4:	78 03 08 01 	mvhi r3,0x801                                  
 80041e8:	38 63 d9 54 	ori r3,r3,0xd954                               
 80041ec:	58 23 00 00 	sw (r1+0),r3                                   
  tail->previous = the_node;                                          
 80041f0:	58 41 00 08 	sw (r2+8),r1                                   
  old_last->next = the_node;                                          
 80041f4:	58 81 00 00 	sw (r4+0),r1                                   
  the_node->previous = old_last;                                      
 80041f8:	58 24 00 04 	sw (r1+4),r4                                   
 80041fc:	c3 a0 00 00 	ret                                            
                                                                      

0800e1d0 <_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 ) {
 800e1d0:	37 9c ff e8 	addi sp,sp,-24                                 
 800e1d4:	5b 8b 00 18 	sw (sp+24),r11                                 
 800e1d8:	5b 8c 00 14 	sw (sp+20),r12                                 
 800e1dc:	5b 8d 00 10 	sw (sp+16),r13                                 
 800e1e0:	5b 8e 00 0c 	sw (sp+12),r14                                 
 800e1e4:	5b 8f 00 08 	sw (sp+8),r15                                  
 800e1e8:	5b 9d 00 04 	sw (sp+4),ra                                   
 800e1ec:	b8 20 58 00 	mv r11,r1                                      
  size_t message_buffering_required = 0;                              
  size_t allocated_message_size;                                      
                                                                      
  the_message_queue->maximum_pending_messages   = maximum_pending_messages;
  the_message_queue->number_of_pending_messages = 0;                  
 800e1f0:	58 20 00 48 	sw (r1+72),r0                                  
  the_message_queue->maximum_message_size       = maximum_message_size;
 800e1f4:	58 24 00 4c 	sw (r1+76),r4                                  
)                                                                     
{                                                                     
  size_t message_buffering_required = 0;                              
  size_t allocated_message_size;                                      
                                                                      
  the_message_queue->maximum_pending_messages   = maximum_pending_messages;
 800e1f8:	59 63 00 44 	sw (r11+68),r3                                 
  /*                                                                  
   * Check if allocated_message_size is aligned to uintptr-size boundary.
   * If not, it will increase allocated_message_size to multiplicity of pointer
   * size.                                                            
   */                                                                 
  if (allocated_message_size & (sizeof(uintptr_t) - 1)) {             
 800e1fc:	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                 
)                                                                     
{                                                                     
 800e200:	b8 40 78 00 	mv r15,r2                                      
 800e204:	b8 60 68 00 	mv r13,r3                                      
  /*                                                                  
   * Check if allocated_message_size is aligned to uintptr-size boundary.
   * If not, it will increase allocated_message_size to multiplicity of pointer
   * size.                                                            
   */                                                                 
  if (allocated_message_size & (sizeof(uintptr_t) - 1)) {             
 800e208:	b8 80 28 00 	mv r5,r4                                       
 800e20c:	44 20 00 06 	be r1,r0,800e224 <_CORE_message_queue_Initialize+0x54>
    allocated_message_size += sizeof(uintptr_t);                      
 800e210:	34 85 00 04 	addi r5,r4,4                                   
    allocated_message_size &= ~(sizeof(uintptr_t) - 1);               
 800e214:	34 01 ff fc 	mvi r1,-4                                      
 800e218:	a0 a1 28 00 	and r5,r5,r1                                   
  /*                                                                  
   * Check for an overflow. It can occur while increasing allocated_message_size
   * to multiplicity of uintptr_t above.                              
   */                                                                 
  if (allocated_message_size < maximum_message_size)                  
    return false;                                                     
 800e21c:	34 0c 00 00 	mvi r12,0                                      
                                                                      
  /*                                                                  
   * Check for an overflow. It can occur while increasing allocated_message_size
   * to multiplicity of uintptr_t above.                              
   */                                                                 
  if (allocated_message_size < maximum_message_size)                  
 800e220:	54 85 00 1f 	bgu r4,r5,800e29c <_CORE_message_queue_Initialize+0xcc>
                                                                      
  /*                                                                  
   *  Calculate how much total memory is required for message buffering and
   *  check for overflow on the multiplication.                       
   */                                                                 
  if ( !size_t_mult32_with_overflow(                                  
 800e224:	34 ae 00 10 	addi r14,r5,16                                 
  size_t  a,                                                          
  size_t  b,                                                          
  size_t *c                                                           
)                                                                     
{                                                                     
  long long x = (long long)a*b;                                       
 800e228:	34 01 00 00 	mvi r1,0                                       
 800e22c:	b9 c0 10 00 	mv r2,r14                                      
 800e230:	34 03 00 00 	mvi r3,0                                       
 800e234:	b9 a0 20 00 	mv r4,r13                                      
 800e238:	f8 00 42 8e 	calli 801ec70 <__muldi3>                       
   */                                                                 
  if ( !size_t_mult32_with_overflow(                                  
        (size_t) maximum_pending_messages,                            
        allocated_message_size + sizeof(CORE_message_queue_Buffer_control),
        &message_buffering_required ) )                               
    return false;                                                     
 800e23c:	34 0c 00 00 	mvi r12,0                                      
  size_t *c                                                           
)                                                                     
{                                                                     
  long long x = (long long)a*b;                                       
                                                                      
  if ( x > SIZE_MAX )                                                 
 800e240:	48 20 00 17 	bg r1,r0,800e29c <_CORE_message_queue_Initialize+0xcc>
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
     _Workspace_Allocate( message_buffering_required );               
 800e244:	b8 40 08 00 	mv r1,r2                                       
 800e248:	f8 00 0e 70 	calli 8011c08 <_Workspace_Allocate>            
    return false;                                                     
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
 800e24c:	59 61 00 5c 	sw (r11+92),r1                                 
     _Workspace_Allocate( message_buffering_required );               
 800e250:	b8 20 28 00 	mv r5,r1                                       
                                                                      
  if (the_message_queue->message_buffers == 0)                        
 800e254:	44 20 00 12 	be r1,r0,800e29c <_CORE_message_queue_Initialize+0xcc><== NEVER TAKEN
                                                                      
  /*                                                                  
   *  Initialize the pool of inactive messages, pending messages,     
   *  and set of waiting threads.                                     
   */                                                                 
  _Chain_Initialize (                                                 
 800e258:	b8 a0 10 00 	mv r2,r5                                       
 800e25c:	35 61 00 60 	addi r1,r11,96                                 
 800e260:	b9 a0 18 00 	mv r3,r13                                      
 800e264:	b9 c0 20 00 	mv r4,r14                                      
 800e268:	fb ff ff cd 	calli 800e19c <_Chain_Initialize>              
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
 800e26c:	35 61 00 54 	addi r1,r11,84                                 
                                                                      
  head->next = tail;                                                  
 800e270:	59 61 00 50 	sw (r11+80),r1                                 
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
 800e274:	35 61 00 50 	addi r1,r11,80                                 
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
 800e278:	59 61 00 58 	sw (r11+88),r1                                 
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
 800e27c:	59 60 00 54 	sw (r11+84),r0                                 
    allocated_message_size + sizeof( CORE_message_queue_Buffer_control )
  );                                                                  
                                                                      
  _Chain_Initialize_empty( &the_message_queue->Pending_messages );    
                                                                      
  _Thread_queue_Initialize(                                           
 800e280:	29 e2 00 00 	lw r2,(r15+0)                                  
 800e284:	b9 60 08 00 	mv r1,r11                                      
 800e288:	34 03 00 80 	mvi r3,128                                     
 800e28c:	64 42 00 01 	cmpei r2,r2,1                                  
 800e290:	34 04 00 06 	mvi r4,6                                       
 800e294:	f8 00 0b d0 	calli 80111d4 <_Thread_queue_Initialize>       
       THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO,
    STATES_WAITING_FOR_MESSAGE,                                       
    CORE_MESSAGE_QUEUE_STATUS_TIMEOUT                                 
  );                                                                  
                                                                      
  return true;                                                        
 800e298:	34 0c 00 01 	mvi r12,1                                      
}                                                                     
 800e29c:	b9 80 08 00 	mv r1,r12                                      
 800e2a0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800e2a4:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800e2a8:	2b 8c 00 14 	lw r12,(sp+20)                                 
 800e2ac:	2b 8d 00 10 	lw r13,(sp+16)                                 
 800e2b0:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800e2b4:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800e2b8:	37 9c 00 18 	addi sp,sp,24                                  
 800e2bc:	c3 a0 00 00 	ret                                            
                                                                      

0800e2c0 <_CORE_message_queue_Seize>: void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) {
 800e2c0:	37 9c ff f4 	addi sp,sp,-12                                 
 800e2c4:	5b 8b 00 0c 	sw (sp+12),r11                                 
 800e2c8:	5b 8c 00 08 	sw (sp+8),r12                                  
 800e2cc:	5b 9d 00 04 	sw (sp+4),ra                                   
  ISR_Level                          level;                           
  CORE_message_queue_Buffer_control *the_message;                     
  Thread_Control                    *executing;                       
                                                                      
  executing = _Thread_Executing;                                      
 800e2d0:	78 07 08 02 	mvhi r7,0x802                                  
 800e2d4:	38 e7 7b 80 	ori r7,r7,0x7b80                               
 800e2d8:	28 e7 00 10 	lw r7,(r7+16)                                  
  void                            *buffer,                            
  size_t                          *size_p,                            
  bool                             wait,                              
  Watchdog_Interval                timeout                            
)                                                                     
{                                                                     
 800e2dc:	b8 20 58 00 	mv r11,r1                                      
 800e2e0:	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; 
 800e2e4:	58 e0 00 34 	sw (r7+52),r0                                  
  void                            *buffer,                            
  size_t                          *size_p,                            
  bool                             wait,                              
  Watchdog_Interval                timeout                            
)                                                                     
{                                                                     
 800e2e8:	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 );                                              
 800e2ec:	90 00 40 00 	rcsr r8,IE                                     
 800e2f0:	34 03 ff fe 	mvi r3,-2                                      
 800e2f4:	a1 03 18 00 	and r3,r8,r3                                   
 800e2f8:	d0 03 00 00 	wcsr IE,r3                                     
  executing->Wait.return_argument = size_p;                           
  /* Wait.count will be filled in with the message priority */        
  _ISR_Enable( level );                                               
                                                                      
  _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );   
}                                                                     
 800e2fc:	29 6c 00 50 	lw r12,(r11+80)                                
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 800e300:	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))                                   
 800e304:	45 83 00 07 	be r12,r3,800e320 <_CORE_message_queue_Seize+0x60>
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
 800e308:	29 83 00 00 	lw r3,(r12+0)                                  
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_first_unprotected(        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
 800e30c:	35 69 00 50 	addi r9,r11,80                                 
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
                                                                      
  head->next = new_first;                                             
 800e310:	59 63 00 50 	sw (r11+80),r3                                 
  new_first->previous = head;                                         
 800e314:	58 69 00 04 	sw (r3+4),r9                                   
                                                                      
  executing = _Thread_Executing;                                      
  executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 
  _ISR_Disable( level );                                              
  the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
  if ( the_message != NULL ) {                                        
 800e318:	5d 80 00 04 	bne r12,r0,800e328 <_CORE_message_queue_Seize+0x68><== ALWAYS TAKEN
 800e31c:	e0 00 00 13 	bi 800e368 <_CORE_message_queue_Seize+0xa8>    <== NOT EXECUTED
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
    return _Chain_Get_first_unprotected(the_chain);                   
  else                                                                
    return NULL;                                                      
 800e320:	34 0c 00 00 	mvi r12,0                                      
 800e324:	e0 00 00 11 	bi 800e368 <_CORE_message_queue_Seize+0xa8>    
    the_message_queue->number_of_pending_messages -= 1;               
 800e328:	29 62 00 48 	lw r2,(r11+72)                                 
 800e32c:	34 42 ff ff 	addi r2,r2,-1                                  
 800e330:	59 62 00 48 	sw (r11+72),r2                                 
    _ISR_Enable( level );                                             
 800e334:	d0 08 00 00 	wcsr IE,r8                                     
                                                                      
    *size_p = the_message->Contents.size;                             
    _Thread_Executing->Wait.count =                                   
 800e338:	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;                             
 800e33c:	29 83 00 08 	lw r3,(r12+8)                                  
    _Thread_Executing->Wait.count =                                   
 800e340:	38 42 7b 80 	ori r2,r2,0x7b80                               
 800e344:	28 42 00 10 	lw r2,(r2+16)                                  
  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;                             
 800e348:	58 83 00 00 	sw (r4+0),r3                                   
    _Thread_Executing->Wait.count =                                   
 800e34c:	58 40 00 24 	sw (r2+36),r0                                  
  const void *source,                                                 
  void       *destination,                                            
  size_t      size                                                    
)                                                                     
{                                                                     
  memcpy(destination, source, size);                                  
 800e350:	35 82 00 0c 	addi r2,r12,12                                 
 800e354:	f8 00 20 cf 	calli 8016690 <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 );
 800e358:	35 61 00 60 	addi r1,r11,96                                 
 800e35c:	b9 80 10 00 	mv r2,r12                                      
 800e360:	fb ff ff 74 	calli 800e130 <_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;                                                         
 800e364:	e0 00 00 12 	bi 800e3ac <_CORE_message_queue_Seize+0xec>    
      return;                                                         
    }                                                                 
    #endif                                                            
  }                                                                   
                                                                      
  if ( !wait ) {                                                      
 800e368:	5c ac 00 05 	bne r5,r12,800e37c <_CORE_message_queue_Seize+0xbc>
    _ISR_Enable( level );                                             
 800e36c:	d0 08 00 00 	wcsr IE,r8                                     
    executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT;
 800e370:	34 01 00 04 	mvi r1,4                                       
 800e374:	58 e1 00 34 	sw (r7+52),r1                                  
    return;                                                           
 800e378:	e0 00 00 0d 	bi 800e3ac <_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;
 800e37c:	34 03 00 01 	mvi r3,1                                       
 800e380:	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;             
 800e384:	58 eb 00 44 	sw (r7+68),r11                                 
  executing->Wait.id = id;                                            
 800e388:	58 e2 00 20 	sw (r7+32),r2                                  
  executing->Wait.return_argument_second.mutable_object = buffer;     
 800e38c:	58 e1 00 2c 	sw (r7+44),r1                                  
  executing->Wait.return_argument = size_p;                           
 800e390:	58 e4 00 28 	sw (r7+40),r4                                  
  /* Wait.count will be filled in with the message priority */        
  _ISR_Enable( level );                                               
 800e394:	d0 08 00 00 	wcsr IE,r8                                     
                                                                      
  _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );   
 800e398:	78 03 08 01 	mvhi r3,0x801                                  
 800e39c:	b9 60 08 00 	mv r1,r11                                      
 800e3a0:	b8 c0 10 00 	mv r2,r6                                       
 800e3a4:	38 63 13 14 	ori r3,r3,0x1314                               
 800e3a8:	f8 00 0a a4 	calli 8010e38 <_Thread_queue_Enqueue_with_handler>
}                                                                     
 800e3ac:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800e3b0:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 800e3b4:	2b 8c 00 08 	lw r12,(sp+8)                                  
 800e3b8:	37 9c 00 0c 	addi sp,sp,12                                  
 800e3bc:	c3 a0 00 00 	ret                                            
                                                                      

080047e0 <_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 ) {
 80047e0:	37 9c ff f8 	addi sp,sp,-8                                  
 80047e4:	5b 8b 00 08 	sw (sp+8),r11                                  
 80047e8:	5b 9d 00 04 	sw (sp+4),ra                                   
 80047ec:	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)) ) {
 80047f0:	f8 00 08 80 	calli 80069f0 <_Thread_queue_Dequeue>          
{                                                                     
  Thread_Control *the_thread;                                         
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
 80047f4:	34 02 00 00 	mvi r2,0                                       
                                                                      
  if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) {
 80047f8:	5c 20 00 0d 	bne r1,r0,800482c <_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 );                                            
 80047fc:	90 00 08 00 	rcsr r1,IE                                     
 8004800:	34 02 ff fe 	mvi r2,-2                                      
 8004804:	a0 22 10 00 	and r2,r1,r2                                   
 8004808:	d0 02 00 00 	wcsr IE,r2                                     
      if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
 800480c:	29 63 00 48 	lw r3,(r11+72)                                 
 8004810:	29 64 00 40 	lw r4,(r11+64)                                 
        the_semaphore->count += 1;                                    
      else                                                            
        status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;               
 8004814:	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 )
 8004818:	50 64 00 04 	bgeu r3,r4,8004828 <_CORE_semaphore_Surrender+0x48><== NEVER TAKEN
        the_semaphore->count += 1;                                    
 800481c:	34 63 00 01 	addi r3,r3,1                                   
 8004820:	59 63 00 48 	sw (r11+72),r3                                 
{                                                                     
  Thread_Control *the_thread;                                         
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
 8004824:	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 );                                             
 8004828:	d0 01 00 00 	wcsr IE,r1                                     
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
 800482c:	b8 40 08 00 	mv r1,r2                                       
 8004830:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004834:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8004838:	37 9c 00 08 	addi sp,sp,8                                   
 800483c:	c3 a0 00 00 	ret                                            
                                                                      

08009174 <_Event_Surrender>: rtems_event_set event_in, Event_Control *event, Thread_blocking_operation_States *sync_state, States_Control wait_state ) {
 8009174:	37 9c ff f4 	addi sp,sp,-12                                 
 8009178:	5b 8b 00 0c 	sw (sp+12),r11                                 
 800917c:	5b 8c 00 08 	sw (sp+8),r12                                  
 8009180:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_event_set pending_events;                                     
  rtems_event_set event_condition;                                    
  rtems_event_set seized_events;                                      
  rtems_option    option_set;                                         
                                                                      
  option_set = the_thread->Wait.option;                               
 8009184:	28 2a 00 30 	lw r10,(r1+48)                                 
  rtems_event_set                   event_in,                         
  Event_Control                    *event,                            
  Thread_blocking_operation_States *sync_state,                       
  States_Control                    wait_state                        
)                                                                     
{                                                                     
 8009188:	b8 20 58 00 	mv r11,r1                                      
  rtems_event_set seized_events;                                      
  rtems_option    option_set;                                         
                                                                      
  option_set = the_thread->Wait.option;                               
                                                                      
  _ISR_Disable( level );                                              
 800918c:	90 00 08 00 	rcsr r1,IE                                     
 8009190:	34 09 ff fe 	mvi r9,-2                                      
 8009194:	a0 29 48 00 	and r9,r1,r9                                   
 8009198:	d0 09 00 00 	wcsr IE,r9                                     
RTEMS_INLINE_ROUTINE void _Event_sets_Post(                           
  rtems_event_set  the_new_events,                                    
  rtems_event_set *the_event_set                                      
)                                                                     
{                                                                     
  *the_event_set |= the_new_events;                                   
 800919c:	28 66 00 00 	lw r6,(r3+0)                                   
  _Event_sets_Post( event_in, &event->pending_events );               
  pending_events  = event->pending_events;                            
  event_condition = the_thread->Wait.count;                           
 80091a0:	29 68 00 24 	lw r8,(r11+36)                                 
 80091a4:	b8 46 10 00 	or r2,r2,r6                                    
 80091a8:	58 62 00 00 	sw (r3+0),r2                                   
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 );                    
 80091ac:	a0 48 30 00 	and r6,r2,r8                                   
  seized_events = _Event_sets_Get( pending_events, event_condition ); 
                                                                      
  /*                                                                  
   *  No events were seized in this operation                         
   */                                                                 
  if ( _Event_sets_Is_empty( seized_events ) ) {                      
 80091b0:	44 c0 00 35 	be r6,r0,8009284 <_Event_Surrender+0x110>      
                                                                      
  /*                                                                  
   *  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() &&                                       
 80091b4:	78 07 08 01 	mvhi r7,0x801                                  
 80091b8:	38 e7 da 60 	ori r7,r7,0xda60                               
 80091bc:	28 ec 00 08 	lw r12,(r7+8)                                  
 80091c0:	45 80 00 13 	be r12,r0,800920c <_Event_Surrender+0x98>      
 80091c4:	28 e7 00 10 	lw r7,(r7+16)                                  
 80091c8:	5d 67 00 11 	bne r11,r7,800920c <_Event_Surrender+0x98>     
       _Thread_Is_executing( the_thread ) &&                          
       ((*sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||         
 80091cc:	28 8c 00 00 	lw r12,(r4+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 ) &&                          
 80091d0:	34 07 00 01 	mvi r7,1                                       
       ((*sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||         
 80091d4:	35 8c ff ff 	addi r12,r12,-1                                
  /*                                                                  
   *  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 ) &&                          
 80091d8:	55 87 00 0d 	bgu r12,r7,800920c <_Event_Surrender+0x98>     
       ((*sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||         
        (*sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
    if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
 80091dc:	44 c8 00 03 	be r6,r8,80091e8 <_Event_Surrender+0x74>       
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Options_Is_any (                           
  rtems_option option_set                                             
)                                                                     
{                                                                     
   return (option_set & RTEMS_EVENT_ANY) ? true : false;              
 80091e0:	21 4a 00 02 	andi r10,r10,0x2                               
 80091e4:	45 40 00 28 	be r10,r0,8009284 <_Event_Surrender+0x110>     <== 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) );                            
 80091e8:	a4 c0 28 00 	not r5,r6                                      
 80091ec:	a0 a2 10 00 	and r2,r5,r2                                   
      event->pending_events = _Event_sets_Clear(                      
 80091f0:	58 62 00 00 	sw (r3+0),r2                                   
        pending_events,                                               
        seized_events                                                 
      );                                                              
      the_thread->Wait.count = 0;                                     
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
 80091f4:	29 62 00 28 	lw r2,(r11+40)                                 
    if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
      event->pending_events = _Event_sets_Clear(                      
        pending_events,                                               
        seized_events                                                 
      );                                                              
      the_thread->Wait.count = 0;                                     
 80091f8:	59 60 00 24 	sw (r11+36),r0                                 
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
 80091fc:	58 46 00 00 	sw (r2+0),r6                                   
      *sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;              
 8009200:	34 02 00 03 	mvi r2,3                                       
 8009204:	58 82 00 00 	sw (r4+0),r2                                   
 8009208:	e0 00 00 1f 	bi 8009284 <_Event_Surrender+0x110>            
RTEMS_INLINE_ROUTINE bool _States_Are_set (                           
  States_Control the_states,                                          
  States_Control mask                                                 
)                                                                     
{                                                                     
   return ( (the_states & mask) != STATES_READY);                     
 800920c:	29 64 00 10 	lw r4,(r11+16)                                 
 8009210:	a0 a4 28 00 	and r5,r5,r4                                   
  }                                                                   
                                                                      
  /*                                                                  
   *  Otherwise, this is a normal send to another thread              
   */                                                                 
  if ( _States_Are_set( the_thread->current_state, wait_state ) ) {   
 8009214:	44 a0 00 1c 	be r5,r0,8009284 <_Event_Surrender+0x110>      
    if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
 8009218:	44 c8 00 03 	be r6,r8,8009224 <_Event_Surrender+0xb0>       
 800921c:	21 4a 00 02 	andi r10,r10,0x2                               
 8009220:	45 40 00 19 	be r10,r0,8009284 <_Event_Surrender+0x110>     <== NEVER TAKEN
 8009224:	a4 c0 20 00 	not r4,r6                                      
 8009228:	a0 82 10 00 	and r2,r4,r2                                   
      event->pending_events = _Event_sets_Clear(                      
 800922c:	58 62 00 00 	sw (r3+0),r2                                   
        pending_events,                                               
        seized_events                                                 
      );                                                              
      the_thread->Wait.count = 0;                                     
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
 8009230:	29 62 00 28 	lw r2,(r11+40)                                 
    if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
      event->pending_events = _Event_sets_Clear(                      
        pending_events,                                               
        seized_events                                                 
      );                                                              
      the_thread->Wait.count = 0;                                     
 8009234:	59 60 00 24 	sw (r11+36),r0                                 
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
 8009238:	58 46 00 00 	sw (r2+0),r6                                   
                                                                      
      _ISR_Flash( level );                                            
 800923c:	d0 01 00 00 	wcsr IE,r1                                     
 8009240:	d0 09 00 00 	wcsr IE,r9                                     
                                                                      
      if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {             
 8009244:	29 63 00 50 	lw r3,(r11+80)                                 
 8009248:	34 02 00 02 	mvi r2,2                                       
 800924c:	44 62 00 03 	be r3,r2,8009258 <_Event_Surrender+0xe4>       
        _ISR_Enable( level );                                         
 8009250:	d0 01 00 00 	wcsr IE,r1                                     
 8009254:	e0 00 00 06 	bi 800926c <_Event_Surrender+0xf8>             
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(                       
  Watchdog_Control *the_watchdog                                      
)                                                                     
{                                                                     
                                                                      
  the_watchdog->state = WATCHDOG_REMOVE_IT;                           
 8009258:	34 02 00 03 	mvi r2,3                                       
 800925c:	59 62 00 50 	sw (r11+80),r2                                 
        _Thread_Unblock( the_thread );                                
      } else {                                                        
        _Watchdog_Deactivate( &the_thread->Timer );                   
        _ISR_Enable( level );                                         
 8009260:	d0 01 00 00 	wcsr IE,r1                                     
        (void) _Watchdog_Remove( &the_thread->Timer );                
 8009264:	35 61 00 48 	addi r1,r11,72                                 
 8009268:	fb ff f9 03 	calli 8007674 <_Watchdog_Remove>               
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
 800926c:	78 03 08 01 	mvhi r3,0x801                                  
 8009270:	38 63 bb ac 	ori r3,r3,0xbbac                               
 8009274:	28 62 00 00 	lw r2,(r3+0)                                   
 8009278:	b9 60 08 00 	mv r1,r11                                      
 800927c:	f8 00 02 c6 	calli 8009d94 <_Thread_Clear_state>            
 8009280:	e0 00 00 02 	bi 8009288 <_Event_Surrender+0x114>            
        _Thread_Unblock( the_thread );                                
      }                                                               
      return;                                                         
    }                                                                 
  }                                                                   
  _ISR_Enable( level );                                               
 8009284:	d0 01 00 00 	wcsr IE,r1                                     
}                                                                     
 8009288:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800928c:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8009290:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8009294:	37 9c 00 0c 	addi sp,sp,12                                  
 8009298:	c3 a0 00 00 	ret                                            
                                                                      

0800db2c <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *arg ) {
 800db2c:	37 9c ff f4 	addi sp,sp,-12                                 
 800db30:	5b 8b 00 08 	sw (sp+8),r11                                  
 800db34:	5b 9d 00 04 	sw (sp+4),ra                                   
 800db38:	b8 40 58 00 	mv r11,r2                                      
  ISR_Level                         level;                            
  Thread_blocking_operation_States *sync_state;                       
                                                                      
  sync_state = arg;                                                   
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 800db3c:	37 82 00 0c 	addi r2,sp,12                                  
 800db40:	fb ff e7 89 	calli 8007964 <_Thread_Get>                    
  switch ( location ) {                                               
 800db44:	2b 82 00 0c 	lw r2,(sp+12)                                  
 800db48:	5c 40 00 1b 	bne r2,r0,800dbb4 <_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 );                                          
 800db4c:	90 00 10 00 	rcsr r2,IE                                     
 800db50:	34 03 ff fe 	mvi r3,-2                                      
 800db54:	a0 43 18 00 	and r3,r2,r3                                   
 800db58:	d0 03 00 00 	wcsr IE,r3                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
 800db5c:	78 03 08 01 	mvhi r3,0x801                                  
 800db60:	38 63 9a 80 	ori r3,r3,0x9a80                               
            return;                                                   
          }                                                           
        #endif                                                        
                                                                      
        the_thread->Wait.count = 0;                                   
        if ( _Thread_Is_executing( the_thread ) ) {                   
 800db64:	28 63 00 10 	lw r3,(r3+16)                                  
            _ISR_Enable( level );                                     
            return;                                                   
          }                                                           
        #endif                                                        
                                                                      
        the_thread->Wait.count = 0;                                   
 800db68:	58 20 00 24 	sw (r1+36),r0                                  
        if ( _Thread_Is_executing( the_thread ) ) {                   
 800db6c:	5c 23 00 06 	bne r1,r3,800db84 <_Event_Timeout+0x58>        
          if ( *sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
 800db70:	29 64 00 00 	lw r4,(r11+0)                                  
 800db74:	34 03 00 01 	mvi r3,1                                       
 800db78:	5c 83 00 03 	bne r4,r3,800db84 <_Event_Timeout+0x58>        
            *sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;          
 800db7c:	34 03 00 02 	mvi r3,2                                       
 800db80:	59 63 00 00 	sw (r11+0),r3                                  
        }                                                             
                                                                      
        the_thread->Wait.return_code = RTEMS_TIMEOUT;                 
 800db84:	34 03 00 06 	mvi r3,6                                       
 800db88:	58 23 00 34 	sw (r1+52),r3                                  
      _ISR_Enable( level );                                           
 800db8c:	d0 02 00 00 	wcsr IE,r2                                     
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
 800db90:	78 03 08 01 	mvhi r3,0x801                                  
 800db94:	38 63 7a 40 	ori r3,r3,0x7a40                               
 800db98:	28 62 00 00 	lw r2,(r3+0)                                   
 800db9c:	f8 00 04 a0 	calli 800ee1c <_Thread_Clear_state>            
   *                                                                  
   * This routine decrements the thread dispatch level.               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_decrement_disable_level(void)
  {                                                                   
    uint32_t level = _Thread_Dispatch_disable_level;                  
 800dba0:	78 01 08 01 	mvhi r1,0x801                                  
 800dba4:	38 21 99 00 	ori r1,r1,0x9900                               
 800dba8:	28 22 00 00 	lw r2,(r1+0)                                   
                                                                      
    --level;                                                          
 800dbac:	34 42 ff ff 	addi r2,r2,-1                                  
    _Thread_Dispatch_disable_level = level;                           
 800dbb0:	58 22 00 00 	sw (r1+0),r2                                   
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
}                                                                     
 800dbb4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800dbb8:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800dbbc:	37 9c 00 0c 	addi sp,sp,12                                  
 800dbc0:	c3 a0 00 00 	ret                                            
                                                                      

08009a94 <_Heap_Free>: return do_free; } #endif bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) {
 8009a94:	37 9c ff f4 	addi sp,sp,-12                                 
 8009a98:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8009a9c:	5b 8c 00 08 	sw (sp+8),r12                                  
 8009aa0:	5b 9d 00 04 	sw (sp+4),ra                                   
 8009aa4:	b8 20 58 00 	mv r11,r1                                      
   * If NULL return true so a free on NULL is considered a valid release. This
   * is a special case that could be handled by the in heap check how-ever that
   * would result in false being returned which is wrong.             
   */                                                                 
  if ( alloc_begin_ptr == NULL ) {                                    
    return true;                                                      
 8009aa8:	34 01 00 01 	mvi r1,1                                       
  /*                                                                  
   * If NULL return true so a free on NULL is considered a valid release. This
   * is a special case that could be handled by the in heap check how-ever that
   * would result in false being returned which is wrong.             
   */                                                                 
  if ( alloc_begin_ptr == NULL ) {                                    
 8009aac:	44 40 00 73 	be r2,r0,8009c78 <_Heap_Free+0x1e4>            
 8009ab0:	34 4c ff f8 	addi r12,r2,-8                                 
 8009ab4:	b8 40 08 00 	mv r1,r2                                       
 8009ab8:	29 62 00 10 	lw r2,(r11+16)                                 
 8009abc:	f8 00 42 c9 	calli 801a5e0 <__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           
 8009ac0:	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);                                        
 8009ac4:	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;             
 8009ac8:	34 01 00 00 	mvi r1,0                                       
 8009acc:	54 e3 00 03 	bgu r7,r3,8009ad8 <_Heap_Free+0x44>            
 8009ad0:	29 61 00 24 	lw r1,(r11+36)                                 
 8009ad4:	f0 23 08 00 	cmpgeu r1,r1,r3                                
  }                                                                   
                                                                      
  alloc_begin = (uintptr_t) alloc_begin_ptr;                          
  block = _Heap_Block_of_alloc_area( alloc_begin, heap->page_size );  
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, block ) ) {                     
 8009ad8:	b8 20 10 00 	mv r2,r1                                       
    return false;                                                     
 8009adc:	34 01 00 00 	mvi r1,0                                       
  }                                                                   
                                                                      
  alloc_begin = (uintptr_t) alloc_begin_ptr;                          
  block = _Heap_Block_of_alloc_area( alloc_begin, heap->page_size );  
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, block ) ) {                     
 8009ae0:	44 40 00 66 	be r2,r0,8009c78 <_Heap_Free+0x1e4>            
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 8009ae4:	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;                
 8009ae8:	34 04 ff fe 	mvi r4,-2                                      
 8009aec:	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);                 
 8009af0:	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;             
 8009af4:	54 e2 00 03 	bgu r7,r2,8009b00 <_Heap_Free+0x6c>            <== NEVER TAKEN
 8009af8:	29 61 00 24 	lw r1,(r11+36)                                 
 8009afc:	f0 22 08 00 	cmpgeu r1,r1,r2                                
  _Heap_Protection_block_check( heap, block );                        
                                                                      
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {                
 8009b00:	b8 20 28 00 	mv r5,r1                                       
    return false;                                                     
 8009b04:	34 01 00 00 	mvi r1,0                                       
  _Heap_Protection_block_check( heap, block );                        
                                                                      
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {                
 8009b08:	44 a0 00 5c 	be r5,r0,8009c78 <_Heap_Free+0x1e4>            <== NEVER TAKEN
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 8009b0c:	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;                 
 8009b10:	20 a8 00 01 	andi r8,r5,0x1                                 
    return false;                                                     
  }                                                                   
                                                                      
  _Heap_Protection_block_check( heap, next_block );                   
                                                                      
  if ( !_Heap_Is_prev_used( next_block ) ) {                          
 8009b14:	45 00 00 59 	be r8,r0,8009c78 <_Heap_Free+0x1e4>            
  if ( !_Heap_Protection_determine_block_free( heap, block ) ) {      
    return true;                                                      
  }                                                                   
                                                                      
  next_block_size = _Heap_Block_size( next_block );                   
  next_is_free = next_block != heap->last_block                       
 8009b18:	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;                
 8009b1c:	34 01 ff fe 	mvi r1,-2                                      
 8009b20:	a0 a1 28 00 	and r5,r5,r1                                   
    && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
 8009b24:	34 08 00 00 	mvi r8,0                                       
 8009b28:	45 22 00 05 	be r9,r2,8009b3c <_Heap_Free+0xa8>             
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 8009b2c:	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;                 
 8009b30:	28 28 00 04 	lw r8,(r1+4)                                   
 8009b34:	21 08 00 01 	andi r8,r8,0x1                                 
                                                                      
    return do_free;                                                   
  }                                                                   
#endif                                                                
                                                                      
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )          
 8009b38:	65 08 00 00 	cmpei r8,r8,0                                  
 8009b3c:	20 c6 00 01 	andi r6,r6,0x1                                 
  if ( !_Heap_Protection_determine_block_free( heap, block ) ) {      
    return true;                                                      
  }                                                                   
                                                                      
  next_block_size = _Heap_Block_size( next_block );                   
  next_is_free = next_block != heap->last_block                       
 8009b40:	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 ) ) {                               
 8009b44:	5c c0 00 24 	bne r6,r0,8009bd4 <_Heap_Free+0x140>           
    uintptr_t const prev_size = block->prev_size;                     
 8009b48:	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;             
 8009b4c:	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);                 
 8009b50:	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;             
 8009b54:	54 e3 00 02 	bgu r7,r3,8009b5c <_Heap_Free+0xc8>            <== NEVER TAKEN
 8009b58:	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 ) ) {              
 8009b5c:	b8 20 38 00 	mv r7,r1                                       
      _HAssert( false );                                              
      return( false );                                                
 8009b60:	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 ) ) {              
 8009b64:	44 e0 00 45 	be r7,r0,8009c78 <_Heap_Free+0x1e4>            <== 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;                 
 8009b68:	28 67 00 04 	lw r7,(r3+4)                                   
 8009b6c:	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) ) {                        
 8009b70:	44 e0 00 42 	be r7,r0,8009c78 <_Heap_Free+0x1e4>            <== NEVER TAKEN
      _HAssert( false );                                              
      return( false );                                                
    }                                                                 
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
 8009b74:	45 00 00 0f 	be r8,r0,8009bb0 <_Heap_Free+0x11c>            
  return _Heap_Free_list_tail(heap)->prev;                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) 
{                                                                     
  Heap_Block *next = block->next;                                     
 8009b78:	28 41 00 08 	lw r1,(r2+8)                                   
  Heap_Block *prev = block->prev;                                     
 8009b7c:	28 42 00 0c 	lw r2,(r2+12)                                  
      uintptr_t const size = block_size + prev_size + next_block_size;
 8009b80:	b4 85 28 00 	add r5,r4,r5                                   
 8009b84:	b4 a6 30 00 	add r6,r5,r6                                   
                                                                      
  prev->next = next;                                                  
 8009b88:	58 41 00 08 	sw (r2+8),r1                                   
  next->prev = prev;                                                  
 8009b8c:	58 22 00 0c 	sw (r1+12),r2                                  
      _Heap_Free_list_remove( next_block );                           
      stats->free_blocks -= 1;                                        
 8009b90:	29 61 00 38 	lw r1,(r11+56)                                 
 8009b94:	34 21 ff ff 	addi r1,r1,-1                                  
 8009b98:	59 61 00 38 	sw (r11+56),r1                                 
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
 8009b9c:	38 c1 00 01 	ori r1,r6,0x1                                  
 8009ba0:	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;                                   
 8009ba4:	b4 66 18 00 	add r3,r3,r6                                   
 8009ba8:	58 66 00 00 	sw (r3+0),r6                                   
 8009bac:	e0 00 00 29 	bi 8009c50 <_Heap_Free+0x1bc>                  
    } else {                      /* coalesce prev */                 
      uintptr_t const size = block_size + prev_size;                  
 8009bb0:	b4 86 30 00 	add r6,r4,r6                                   
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
 8009bb4:	38 c1 00 01 	ori r1,r6,0x1                                  
 8009bb8:	58 61 00 04 	sw (r3+4),r1                                   
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
 8009bbc:	28 43 00 04 	lw r3,(r2+4)                                   
 8009bc0:	34 01 ff fe 	mvi r1,-2                                      
      next_block->prev_size = size;                                   
 8009bc4:	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;             
 8009bc8:	a0 61 08 00 	and r1,r3,r1                                   
 8009bcc:	58 41 00 04 	sw (r2+4),r1                                   
 8009bd0:	e0 00 00 20 	bi 8009c50 <_Heap_Free+0x1bc>                  
      next_block->prev_size = size;                                   
    }                                                                 
  } else if ( next_is_free ) {    /* coalesce next */                 
 8009bd4:	45 00 00 0d 	be r8,r0,8009c08 <_Heap_Free+0x174>            
    uintptr_t const size = block_size + next_block_size;              
 8009bd8:	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;                                 
 8009bdc:	28 45 00 08 	lw r5,(r2+8)                                   
  Heap_Block *prev = old_block->prev;                                 
 8009be0:	28 42 00 0c 	lw r2,(r2+12)                                  
                                                                      
  new_block->next = next;                                             
 8009be4:	58 65 00 08 	sw (r3+8),r5                                   
  new_block->prev = prev;                                             
 8009be8:	58 62 00 0c 	sw (r3+12),r2                                  
                                                                      
  next->prev = new_block;                                             
  prev->next = new_block;                                             
 8009bec:	58 43 00 08 	sw (r2+8),r3                                   
    _Heap_Free_list_replace( next_block, block );                     
    block->size_and_flag = size | HEAP_PREV_BLOCK_USED;               
 8009bf0:	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;                                             
 8009bf4:	58 a3 00 0c 	sw (r5+12),r3                                  
 8009bf8:	58 62 00 04 	sw (r3+4),r2                                   
    next_block  = _Heap_Block_at( block, size );                      
    next_block->prev_size = size;                                     
 8009bfc:	b4 61 18 00 	add r3,r3,r1                                   
 8009c00:	58 61 00 00 	sw (r3+0),r1                                   
 8009c04:	e0 00 00 13 	bi 8009c50 <_Heap_Free+0x1bc>                  
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after(               
  Heap_Block *block_before,                                           
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = block_before->next;                              
 8009c08:	29 61 00 08 	lw r1,(r11+8)                                  
                                                                      
  new_block->next = next;                                             
  new_block->prev = block_before;                                     
 8009c0c:	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;                               
 8009c10:	58 44 00 00 	sw (r2+0),r4                                   
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = block_before->next;                              
                                                                      
  new_block->next = next;                                             
 8009c14:	58 61 00 08 	sw (r3+8),r1                                   
  new_block->prev = block_before;                                     
  block_before->next = new_block;                                     
  next->prev = new_block;                                             
 8009c18:	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;         
 8009c1c:	38 81 00 01 	ori r1,r4,0x1                                  
 8009c20:	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;                                     
 8009c24:	59 63 00 08 	sw (r11+8),r3                                  
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
 8009c28:	28 43 00 04 	lw r3,(r2+4)                                   
 8009c2c:	34 01 ff fe 	mvi r1,-2                                      
 8009c30:	a0 61 08 00 	and r1,r3,r1                                   
 8009c34:	58 41 00 04 	sw (r2+4),r1                                   
    next_block->prev_size = block_size;                               
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
 8009c38:	29 61 00 38 	lw r1,(r11+56)                                 
    if ( stats->max_free_blocks < stats->free_blocks ) {              
 8009c3c:	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;                                             
 8009c40:	34 21 00 01 	addi r1,r1,1                                   
 8009c44:	59 61 00 38 	sw (r11+56),r1                                 
    if ( stats->max_free_blocks < stats->free_blocks ) {              
 8009c48:	50 41 00 02 	bgeu r2,r1,8009c50 <_Heap_Free+0x1bc>          
      stats->max_free_blocks = stats->free_blocks;                    
 8009c4c:	59 61 00 3c 	sw (r11+60),r1                                 
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
 8009c50:	29 61 00 40 	lw r1,(r11+64)                                 
 8009c54:	34 21 ff ff 	addi r1,r1,-1                                  
 8009c58:	59 61 00 40 	sw (r11+64),r1                                 
  ++stats->frees;                                                     
 8009c5c:	29 61 00 50 	lw r1,(r11+80)                                 
 8009c60:	34 21 00 01 	addi r1,r1,1                                   
 8009c64:	59 61 00 50 	sw (r11+80),r1                                 
  stats->free_size += block_size;                                     
 8009c68:	29 61 00 30 	lw r1,(r11+48)                                 
 8009c6c:	b4 24 20 00 	add r4,r1,r4                                   
 8009c70:	59 64 00 30 	sw (r11+48),r4                                 
                                                                      
  return( true );                                                     
 8009c74:	34 01 00 01 	mvi r1,1                                       
}                                                                     
 8009c78:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009c7c:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8009c80:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8009c84:	37 9c 00 0c 	addi sp,sp,12                                  
 8009c88:	c3 a0 00 00 	ret                                            
                                                                      

08006d84 <_Heap_Greedy_allocate>: Heap_Block *_Heap_Greedy_allocate( Heap_Control *heap, const uintptr_t *block_sizes, size_t block_count ) {
 8006d84:	37 9c ff e4 	addi sp,sp,-28                                 
 8006d88:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8006d8c:	5b 8c 00 18 	sw (sp+24),r12                                 
 8006d90:	5b 8d 00 14 	sw (sp+20),r13                                 
 8006d94:	5b 8e 00 10 	sw (sp+16),r14                                 
 8006d98:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8006d9c:	5b 90 00 08 	sw (sp+8),r16                                  
 8006da0:	5b 9d 00 04 	sw (sp+4),ra                                   
  Heap_Block *allocated_blocks = NULL;                                
  Heap_Block *blocks = NULL;                                          
  Heap_Block *current;                                                
  size_t i;                                                           
                                                                      
  for (i = 0; i < block_count; ++i) {                                 
 8006da4:	34 0b 00 00 	mvi r11,0                                      
Heap_Block *_Heap_Greedy_allocate(                                    
  Heap_Control *heap,                                                 
  const uintptr_t *block_sizes,                                       
  size_t block_count                                                  
)                                                                     
{                                                                     
 8006da8:	b8 20 68 00 	mv r13,r1                                      
 8006dac:	b8 60 78 00 	mv r15,r3                                      
  Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );    
 8006db0:	b8 40 70 00 	mv r14,r2                                      
  Heap_Block *allocated_blocks = NULL;                                
 8006db4:	34 0c 00 00 	mvi r12,0                                      
  Heap_Block *blocks = NULL;                                          
  Heap_Block *current;                                                
  size_t i;                                                           
                                                                      
  for (i = 0; i < block_count; ++i) {                                 
 8006db8:	e0 00 00 0f 	bi 8006df4 <_Heap_Greedy_allocate+0x70>        
 * @brief See _Heap_Allocate_aligned_with_boundary() with alignment and
 * boundary equals zero.                                              
 */                                                                   
RTEMS_INLINE_ROUTINE void *_Heap_Allocate( Heap_Control *heap, uintptr_t size )
{                                                                     
  return _Heap_Allocate_aligned_with_boundary( heap, size, 0, 0 );    
 8006dbc:	29 c2 00 00 	lw r2,(r14+0)                                  
 8006dc0:	b9 a0 08 00 	mv r1,r13                                      
 8006dc4:	34 03 00 00 	mvi r3,0                                       
 8006dc8:	34 04 00 00 	mvi r4,0                                       
 8006dcc:	f8 00 20 66 	calli 800ef64 <_Heap_Allocate_aligned_with_boundary>
    void *next = _Heap_Allocate( heap, block_sizes [i] );             
                                                                      
    if ( next != NULL ) {                                             
 8006dd0:	44 20 00 07 	be r1,r0,8006dec <_Heap_Greedy_allocate+0x68>  <== NEVER TAKEN
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 8006dd4:	29 a2 00 10 	lw r2,(r13+16)                                 
 8006dd8:	34 30 ff f8 	addi r16,r1,-8                                 
 8006ddc:	f8 00 41 79 	calli 80173c0 <__umodsi3>                      
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
 8006de0:	ca 01 08 00 	sub r1,r16,r1                                  
      Heap_Block *next_block = _Heap_Block_of_alloc_area(             
        (uintptr_t) next,                                             
        heap->page_size                                               
      );                                                              
                                                                      
      next_block->next = allocated_blocks;                            
 8006de4:	58 2c 00 08 	sw (r1+8),r12                                  
 8006de8:	b8 20 60 00 	mv r12,r1                                      
  Heap_Block *allocated_blocks = NULL;                                
  Heap_Block *blocks = NULL;                                          
  Heap_Block *current;                                                
  size_t i;                                                           
                                                                      
  for (i = 0; i < block_count; ++i) {                                 
 8006dec:	35 6b 00 01 	addi r11,r11,1                                 
 8006df0:	35 ce 00 04 	addi r14,r14,4                                 
 8006df4:	55 eb ff f2 	bgu r15,r11,8006dbc <_Heap_Greedy_allocate+0x38>
 8006df8:	34 0e 00 00 	mvi r14,0                                      
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 8006dfc:	34 0f ff fe 	mvi r15,-2                                     
 8006e00:	e0 00 00 0a 	bi 8006e28 <_Heap_Greedy_allocate+0xa4>        
 8006e04:	29 64 00 04 	lw r4,(r11+4)                                  
      allocated_blocks = next_block;                                  
    }                                                                 
  }                                                                   
                                                                      
  while ( (current = _Heap_Free_list_first( heap )) != free_list_tail ) {
    _Heap_Block_allocate(                                             
 8006e08:	b9 a0 08 00 	mv r1,r13                                      
 8006e0c:	b9 60 10 00 	mv r2,r11                                      
 8006e10:	a1 e4 20 00 	and r4,r15,r4                                  
 8006e14:	35 63 00 08 	addi r3,r11,8                                  
 8006e18:	34 84 ff f8 	addi r4,r4,-8                                  
 8006e1c:	f8 00 01 09 	calli 8007240 <_Heap_Block_allocate>           
      current,                                                        
      _Heap_Alloc_area_of_block( current ),                           
      _Heap_Block_size( current ) - HEAP_BLOCK_HEADER_SIZE            
    );                                                                
                                                                      
    current->next = blocks;                                           
 8006e20:	59 6e 00 08 	sw (r11+8),r14                                 
 8006e24:	b9 60 70 00 	mv r14,r11                                     
    Heap_Block *current = blocks;                                     
                                                                      
    blocks = blocks->next;                                            
    _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( current ) );
  }                                                                   
}                                                                     
 8006e28:	29 ab 00 08 	lw r11,(r13+8)                                 
      next_block->next = allocated_blocks;                            
      allocated_blocks = next_block;                                  
    }                                                                 
  }                                                                   
                                                                      
  while ( (current = _Heap_Free_list_first( heap )) != free_list_tail ) {
 8006e2c:	5d 6d ff f6 	bne r11,r13,8006e04 <_Heap_Greedy_allocate+0x80>
 8006e30:	e0 00 00 06 	bi 8006e48 <_Heap_Greedy_allocate+0xc4>        
    blocks = current;                                                 
  }                                                                   
                                                                      
  while ( allocated_blocks != NULL ) {                                
    current = allocated_blocks;                                       
    allocated_blocks = allocated_blocks->next;                        
 8006e34:	29 8b 00 08 	lw r11,(r12+8)                                 
    _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( current ) );
 8006e38:	35 82 00 08 	addi r2,r12,8                                  
 8006e3c:	b9 a0 08 00 	mv r1,r13                                      
 8006e40:	f8 00 20 cf 	calli 800f17c <_Heap_Free>                     
    blocks = current;                                                 
  }                                                                   
                                                                      
  while ( allocated_blocks != NULL ) {                                
    current = allocated_blocks;                                       
    allocated_blocks = allocated_blocks->next;                        
 8006e44:	b9 60 60 00 	mv r12,r11                                     
                                                                      
    current->next = blocks;                                           
    blocks = current;                                                 
  }                                                                   
                                                                      
  while ( allocated_blocks != NULL ) {                                
 8006e48:	5d 80 ff fb 	bne r12,r0,8006e34 <_Heap_Greedy_allocate+0xb0>
    allocated_blocks = allocated_blocks->next;                        
    _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( current ) );
  }                                                                   
                                                                      
  return blocks;                                                      
}                                                                     
 8006e4c:	b9 c0 08 00 	mv r1,r14                                      
 8006e50:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006e54:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8006e58:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8006e5c:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8006e60:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8006e64:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8006e68:	2b 90 00 08 	lw r16,(sp+8)                                  
 8006e6c:	37 9c 00 1c 	addi sp,sp,28                                  
 8006e70:	c3 a0 00 00 	ret                                            
                                                                      

0800f974 <_Heap_Iterate>: void _Heap_Iterate( Heap_Control *heap, Heap_Block_visitor visitor, void *visitor_arg ) {
 800f974:	37 9c ff e8 	addi sp,sp,-24                                 
 800f978:	5b 8b 00 18 	sw (sp+24),r11                                 
 800f97c:	5b 8c 00 14 	sw (sp+20),r12                                 
 800f980:	5b 8d 00 10 	sw (sp+16),r13                                 
 800f984:	5b 8e 00 0c 	sw (sp+12),r14                                 
 800f988:	5b 8f 00 08 	sw (sp+8),r15                                  
 800f98c:	5b 9d 00 04 	sw (sp+4),ra                                   
 800f990:	b8 20 28 00 	mv r5,r1                                       
 800f994:	b8 40 78 00 	mv r15,r2                                      
 800f998:	b8 60 70 00 	mv r14,r3                                      
  Heap_Block *current = heap->first_block;                            
 800f99c:	28 21 00 20 	lw r1,(r1+32)                                  
  Heap_Block *end = heap->last_block;                                 
 800f9a0:	28 ad 00 24 	lw r13,(r5+36)                                 
 800f9a4:	34 0c ff fe 	mvi r12,-2                                     
 800f9a8:	e0 00 00 0a 	bi 800f9d0 <_Heap_Iterate+0x5c>                
 800f9ac:	28 22 00 04 	lw r2,(r1+4)                                   
  while ( !stop && current != end ) {                                 
    uintptr_t size = _Heap_Block_size( current );                     
    Heap_Block *next = _Heap_Block_at( current, size );               
    bool used = _Heap_Is_prev_used( next );                           
                                                                      
    stop = (*visitor)( current, size, used, visitor_arg );            
 800f9b0:	b9 c0 20 00 	mv r4,r14                                      
 800f9b4:	a1 82 10 00 	and r2,r12,r2                                  
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 800f9b8:	b4 22 58 00 	add r11,r1,r2                                  
  block->size_and_flag = size | flag;                                 
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & HEAP_PREV_BLOCK_USED;                 
 800f9bc:	29 63 00 04 	lw r3,(r11+4)                                  
 800f9c0:	20 63 00 01 	andi r3,r3,0x1                                 
 800f9c4:	d9 e0 00 00 	call r15                                       
{                                                                     
  Heap_Block *current = heap->first_block;                            
  Heap_Block *end = heap->last_block;                                 
  bool stop = false;                                                  
                                                                      
  while ( !stop && current != end ) {                                 
 800f9c8:	5c 20 00 03 	bne r1,r0,800f9d4 <_Heap_Iterate+0x60>         <== NEVER TAKEN
 800f9cc:	b9 60 08 00 	mv r1,r11                                      
 800f9d0:	5c 2d ff f7 	bne r1,r13,800f9ac <_Heap_Iterate+0x38>        
                                                                      
    stop = (*visitor)( current, size, used, visitor_arg );            
                                                                      
    current = next;                                                   
  }                                                                   
}                                                                     
 800f9d4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800f9d8:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800f9dc:	2b 8c 00 14 	lw r12,(sp+20)                                 
 800f9e0:	2b 8d 00 10 	lw r13,(sp+16)                                 
 800f9e4:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800f9e8:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800f9ec:	37 9c 00 18 	addi sp,sp,24                                  
 800f9f0:	c3 a0 00 00 	ret                                            
                                                                      

0801aefc <_Heap_Size_of_alloc_area>: bool _Heap_Size_of_alloc_area( Heap_Control *heap, void *alloc_begin_ptr, uintptr_t *alloc_size ) {
 801aefc:	37 9c ff ec 	addi sp,sp,-20                                 
 801af00:	5b 8b 00 14 	sw (sp+20),r11                                 
 801af04:	5b 8c 00 10 	sw (sp+16),r12                                 
 801af08:	5b 8d 00 0c 	sw (sp+12),r13                                 
 801af0c:	5b 8e 00 08 	sw (sp+8),r14                                  
 801af10:	5b 9d 00 04 	sw (sp+4),ra                                   
 801af14:	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);                                 
 801af18:	34 4e ff f8 	addi r14,r2,-8                                 
 801af1c:	b8 40 08 00 	mv r1,r2                                       
 801af20:	b8 40 60 00 	mv r12,r2                                      
 801af24:	29 62 00 10 	lw r2,(r11+16)                                 
 801af28:	b8 60 68 00 	mv r13,r3                                      
 801af2c:	fb ff fd ad 	calli 801a5e0 <__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           
 801af30:	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);                                        
 801af34:	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;             
 801af38:	34 01 00 00 	mvi r1,0                                       
 801af3c:	54 44 00 03 	bgu r2,r4,801af48 <_Heap_Size_of_alloc_area+0x4c>
 801af40:	29 61 00 24 	lw r1,(r11+36)                                 
 801af44:	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 ) ) {                     
 801af48:	b8 20 18 00 	mv r3,r1                                       
    return false;                                                     
 801af4c:	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 ) ) {                     
 801af50:	44 60 00 13 	be r3,r0,801af9c <_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;                
 801af54:	28 83 00 04 	lw r3,(r4+4)                                   
 801af58:	34 01 ff fe 	mvi r1,-2                                      
 801af5c:	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);                 
 801af60:	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;             
 801af64:	34 01 00 00 	mvi r1,0                                       
 801af68:	54 44 00 03 	bgu r2,r4,801af74 <_Heap_Size_of_alloc_area+0x78><== NEVER TAKEN
 801af6c:	29 61 00 24 	lw r1,(r11+36)                                 
 801af70:	f0 24 08 00 	cmpgeu r1,r1,r4                                
  }                                                                   
                                                                      
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if (                                                                
 801af74:	b8 20 10 00 	mv r2,r1                                       
    !_Heap_Is_block_in_heap( heap, next_block )                       
      || !_Heap_Is_prev_used( next_block )                            
  ) {                                                                 
    return false;                                                     
 801af78:	34 01 00 00 	mvi r1,0                                       
  }                                                                   
                                                                      
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if (                                                                
 801af7c:	44 40 00 08 	be r2,r0,801af9c <_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;                 
 801af80:	28 82 00 04 	lw r2,(r4+4)                                   
 801af84:	20 42 00 01 	andi r2,r2,0x1                                 
    !_Heap_Is_block_in_heap( heap, next_block )                       
      || !_Heap_Is_prev_used( next_block )                            
 801af88:	44 40 00 05 	be r2,r0,801af9c <_Heap_Size_of_alloc_area+0xa0><== NEVER TAKEN
  ) {                                                                 
    return false;                                                     
  }                                                                   
                                                                      
  *alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin;
 801af8c:	c8 8c 20 00 	sub r4,r4,r12                                  
 801af90:	34 84 00 04 	addi r4,r4,4                                   
 801af94:	59 a4 00 00 	sw (r13+0),r4                                  
                                                                      
  return true;                                                        
 801af98:	34 01 00 01 	mvi r1,1                                       
}                                                                     
 801af9c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801afa0:	2b 8b 00 14 	lw r11,(sp+20)                                 
 801afa4:	2b 8c 00 10 	lw r12,(sp+16)                                 
 801afa8:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 801afac:	2b 8e 00 08 	lw r14,(sp+8)                                  
 801afb0:	37 9c 00 14 	addi sp,sp,20                                  
 801afb4:	c3 a0 00 00 	ret                                            
                                                                      

08005484 <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) {
 8005484:	37 9c ff a0 	addi sp,sp,-96                                 
 8005488:	5b 8b 00 50 	sw (sp+80),r11                                 
 800548c:	5b 8c 00 4c 	sw (sp+76),r12                                 
 8005490:	5b 8d 00 48 	sw (sp+72),r13                                 
 8005494:	5b 8e 00 44 	sw (sp+68),r14                                 
 8005498:	5b 8f 00 40 	sw (sp+64),r15                                 
 800549c:	5b 90 00 3c 	sw (sp+60),r16                                 
 80054a0:	5b 91 00 38 	sw (sp+56),r17                                 
 80054a4:	5b 92 00 34 	sw (sp+52),r18                                 
 80054a8:	5b 93 00 30 	sw (sp+48),r19                                 
 80054ac:	5b 94 00 2c 	sw (sp+44),r20                                 
 80054b0:	5b 95 00 28 	sw (sp+40),r21                                 
 80054b4:	5b 96 00 24 	sw (sp+36),r22                                 
 80054b8:	5b 97 00 20 	sw (sp+32),r23                                 
 80054bc:	5b 98 00 1c 	sw (sp+28),r24                                 
 80054c0:	5b 99 00 18 	sw (sp+24),r25                                 
 80054c4:	5b 9b 00 14 	sw (sp+20),fp                                  
 80054c8:	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;                      
 80054cc:	78 0d 08 00 	mvhi r13,0x800                                 
bool _Heap_Walk(                                                      
  Heap_Control *heap,                                                 
  int source,                                                         
  bool dump                                                           
)                                                                     
{                                                                     
 80054d0:	20 63 00 ff 	andi r3,r3,0xff                                
 80054d4:	b8 20 60 00 	mv r12,r1                                      
 80054d8:	b8 40 70 00 	mv r14,r2                                      
  uintptr_t const page_size = heap->page_size;                        
 80054dc:	28 33 00 10 	lw r19,(r1+16)                                 
  uintptr_t const min_block_size = heap->min_block_size;              
 80054e0:	28 35 00 14 	lw r21,(r1+20)                                 
  Heap_Block *const first_block = heap->first_block;                  
 80054e4:	28 34 00 20 	lw r20,(r1+32)                                 
  Heap_Block *const last_block = heap->last_block;                    
 80054e8:	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;                      
 80054ec:	39 ad 53 ec 	ori r13,r13,0x53ec                             
 80054f0:	44 60 00 03 	be r3,r0,80054fc <_Heap_Walk+0x78>             
 80054f4:	78 0d 08 00 	mvhi r13,0x800                                 
 80054f8:	39 ad 54 10 	ori r13,r13,0x5410                             
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
 80054fc:	78 03 08 01 	mvhi r3,0x801                                  
 8005500:	38 63 5a 74 	ori r3,r3,0x5a74                               
 8005504:	28 67 00 00 	lw r7,(r3+0)                                   
 8005508:	34 02 00 03 	mvi r2,3                                       
    return true;                                                      
 800550c:	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() ) ) {                
 8005510:	5c e2 01 08 	bne r7,r2,8005930 <_Heap_Walk+0x4ac>           
  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)(                                                         
 8005514:	29 81 00 08 	lw r1,(r12+8)                                  
 8005518:	29 86 00 18 	lw r6,(r12+24)                                 
 800551c:	29 87 00 1c 	lw r7,(r12+28)                                 
 8005520:	5b 81 00 08 	sw (sp+8),r1                                   
 8005524:	29 81 00 0c 	lw r1,(r12+12)                                 
 8005528:	78 03 08 01 	mvhi r3,0x801                                  
 800552c:	5b 96 00 04 	sw (sp+4),r22                                  
 8005530:	5b 81 00 0c 	sw (sp+12),r1                                  
 8005534:	34 02 00 00 	mvi r2,0                                       
 8005538:	b9 c0 08 00 	mv r1,r14                                      
 800553c:	38 63 34 78 	ori r3,r3,0x3478                               
 8005540:	ba 60 20 00 	mv r4,r19                                      
 8005544:	ba a0 28 00 	mv r5,r21                                      
 8005548:	ba 80 40 00 	mv r8,r20                                      
 800554c:	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 ) {                                             
 8005550:	5e 60 00 06 	bne r19,r0,8005568 <_Heap_Walk+0xe4>           
    (*printer)( source, true, "page size is zero\n" );                
 8005554:	78 03 08 01 	mvhi r3,0x801                                  
 8005558:	b9 c0 08 00 	mv r1,r14                                      
 800555c:	34 02 00 01 	mvi r2,1                                       
 8005560:	38 63 35 0c 	ori r3,r3,0x350c                               
 8005564:	e0 00 00 25 	bi 80055f8 <_Heap_Walk+0x174>                  
)                                                                     
{                                                                     
#if (CPU_ALIGNMENT == 0)                                              
    return true;                                                      
#else                                                                 
    return (((uintptr_t)address % CPU_ALIGNMENT) == 0);               
 8005568:	22 6f 00 03 	andi r15,r19,0x3                               
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Addresses_Is_aligned( (void *) page_size ) ) {               
 800556c:	45 e0 00 07 	be r15,r0,8005588 <_Heap_Walk+0x104>           
    (*printer)(                                                       
 8005570:	78 03 08 01 	mvhi r3,0x801                                  
 8005574:	b9 c0 08 00 	mv r1,r14                                      
 8005578:	34 02 00 01 	mvi r2,1                                       
 800557c:	38 63 35 20 	ori r3,r3,0x3520                               
 8005580:	ba 60 20 00 	mv r4,r19                                      
 8005584:	e0 00 01 04 	bi 8005994 <_Heap_Walk+0x510>                  
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
 8005588:	ba a0 08 00 	mv r1,r21                                      
 800558c:	ba 60 10 00 	mv r2,r19                                      
 8005590:	fb ff ed 86 	calli 8000ba8 <__umodsi3>                      
 8005594:	b8 20 58 00 	mv r11,r1                                      
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {             
 8005598:	44 2f 00 07 	be r1,r15,80055b4 <_Heap_Walk+0x130>           
    (*printer)(                                                       
 800559c:	78 03 08 01 	mvhi r3,0x801                                  
 80055a0:	b9 c0 08 00 	mv r1,r14                                      
 80055a4:	34 02 00 01 	mvi r2,1                                       
 80055a8:	38 63 35 40 	ori r3,r3,0x3540                               
 80055ac:	ba a0 20 00 	mv r4,r21                                      
 80055b0:	e0 00 00 f9 	bi 8005994 <_Heap_Walk+0x510>                  
 80055b4:	36 81 00 08 	addi r1,r20,8                                  
 80055b8:	ba 60 10 00 	mv r2,r19                                      
 80055bc:	fb ff ed 7b 	calli 8000ba8 <__umodsi3>                      
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
 80055c0:	44 2b 00 07 	be r1,r11,80055dc <_Heap_Walk+0x158>           
    !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
  ) {                                                                 
    (*printer)(                                                       
 80055c4:	78 03 08 01 	mvhi r3,0x801                                  
 80055c8:	b9 c0 08 00 	mv r1,r14                                      
 80055cc:	34 02 00 01 	mvi r2,1                                       
 80055d0:	38 63 35 64 	ori r3,r3,0x3564                               
 80055d4:	ba 80 20 00 	mv r4,r20                                      
 80055d8:	e0 00 00 ef 	bi 8005994 <_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;                 
 80055dc:	2a 82 00 04 	lw r2,(r20+4)                                  
 80055e0:	20 42 00 01 	andi r2,r2,0x1                                 
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( first_block ) ) {                         
 80055e4:	5c 41 00 07 	bne r2,r1,8005600 <_Heap_Walk+0x17c>           
    (*printer)(                                                       
 80055e8:	78 03 08 01 	mvhi r3,0x801                                  
 80055ec:	b9 c0 08 00 	mv r1,r14                                      
 80055f0:	34 02 00 01 	mvi r2,1                                       
 80055f4:	38 63 35 98 	ori r3,r3,0x3598                               
 80055f8:	d9 a0 00 00 	call r13                                       
 80055fc:	e0 00 00 40 	bi 80056fc <_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;                
 8005600:	2a cf 00 04 	lw r15,(r22+4)                                 
 8005604:	34 02 ff fe 	mvi r2,-2                                      
 8005608:	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);                 
 800560c:	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;                 
 8005610:	29 e2 00 04 	lw r2,(r15+4)                                  
 8005614:	20 42 00 01 	andi r2,r2,0x1                                 
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( _Heap_Is_free( last_block ) ) {                                
 8005618:	5c 41 00 06 	bne r2,r1,8005630 <_Heap_Walk+0x1ac>           
    (*printer)(                                                       
 800561c:	78 03 08 01 	mvhi r3,0x801                                  
 8005620:	b9 c0 08 00 	mv r1,r14                                      
 8005624:	34 02 00 01 	mvi r2,1                                       
 8005628:	38 63 35 c8 	ori r3,r3,0x35c8                               
 800562c:	e3 ff ff f3 	bi 80055f8 <_Heap_Walk+0x174>                  
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
 8005630:	45 f4 00 06 	be r15,r20,8005648 <_Heap_Walk+0x1c4>          
    _Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block
  ) {                                                                 
    (*printer)(                                                       
 8005634:	78 03 08 01 	mvhi r3,0x801                                  
 8005638:	b9 c0 08 00 	mv r1,r14                                      
 800563c:	34 02 00 01 	mvi r2,1                                       
 8005640:	38 63 35 e0 	ori r3,r3,0x35e0                               
 8005644:	e3 ff ff ed 	bi 80055f8 <_Heap_Walk+0x174>                  
  int source,                                                         
  Heap_Walk_printer printer,                                          
  Heap_Control *heap                                                  
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
 8005648:	29 92 00 10 	lw r18,(r12+16)                                
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 800564c:	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 );
 8005650:	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;                
 8005654:	34 11 ff fe 	mvi r17,-2                                     
 8005658:	e0 00 00 2d 	bi 800570c <_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;             
 800565c:	29 83 00 20 	lw r3,(r12+32)                                 
 8005660:	34 01 00 00 	mvi r1,0                                       
 8005664:	54 6b 00 03 	bgu r3,r11,8005670 <_Heap_Walk+0x1ec>          
 8005668:	29 81 00 24 	lw r1,(r12+36)                                 
 800566c:	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 ) ) {              
 8005670:	5c 20 00 06 	bne r1,r0,8005688 <_Heap_Walk+0x204>           
      (*printer)(                                                     
 8005674:	78 03 08 01 	mvhi r3,0x801                                  
 8005678:	b9 c0 08 00 	mv r1,r14                                      
 800567c:	34 02 00 01 	mvi r2,1                                       
 8005680:	38 63 36 10 	ori r3,r3,0x3610                               
 8005684:	e0 00 00 14 	bi 80056d4 <_Heap_Walk+0x250>                  
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
 8005688:	35 61 00 08 	addi r1,r11,8                                  
 800568c:	ba 40 10 00 	mv r2,r18                                      
 8005690:	fb ff ed 46 	calli 8000ba8 <__umodsi3>                      
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if (                                                              
 8005694:	44 20 00 06 	be r1,r0,80056ac <_Heap_Walk+0x228>            
      !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
    ) {                                                               
      (*printer)(                                                     
 8005698:	78 03 08 01 	mvhi r3,0x801                                  
 800569c:	b9 c0 08 00 	mv r1,r14                                      
 80056a0:	34 02 00 01 	mvi r2,1                                       
 80056a4:	38 63 36 30 	ori r3,r3,0x3630                               
 80056a8:	e0 00 00 0b 	bi 80056d4 <_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;                
 80056ac:	29 63 00 04 	lw r3,(r11+4)                                  
 80056b0:	a2 23 18 00 	and r3,r17,r3                                  
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 80056b4:	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;                 
 80056b8:	28 63 00 04 	lw r3,(r3+4)                                   
 80056bc:	20 63 00 01 	andi r3,r3,0x1                                 
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
 80056c0:	44 61 00 07 	be r3,r1,80056dc <_Heap_Walk+0x258>            
      (*printer)(                                                     
 80056c4:	78 03 08 01 	mvhi r3,0x801                                  
 80056c8:	b9 c0 08 00 	mv r1,r14                                      
 80056cc:	34 02 00 01 	mvi r2,1                                       
 80056d0:	38 63 36 60 	ori r3,r3,0x3660                               
 80056d4:	b9 60 20 00 	mv r4,r11                                      
 80056d8:	e0 00 00 af 	bi 8005994 <_Heap_Walk+0x510>                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( free_block->prev != prev_block ) {                           
 80056dc:	29 65 00 0c 	lw r5,(r11+12)                                 
 80056e0:	44 b0 00 09 	be r5,r16,8005704 <_Heap_Walk+0x280>           
      (*printer)(                                                     
 80056e4:	78 03 08 01 	mvhi r3,0x801                                  
 80056e8:	b9 c0 08 00 	mv r1,r14                                      
 80056ec:	34 02 00 01 	mvi r2,1                                       
 80056f0:	38 63 36 7c 	ori r3,r3,0x367c                               
 80056f4:	b9 60 20 00 	mv r4,r11                                      
 80056f8:	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;                                                     
 80056fc:	34 03 00 00 	mvi r3,0                                       
 8005700:	e0 00 00 8c 	bi 8005930 <_Heap_Walk+0x4ac>                  
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    prev_block = free_block;                                          
    free_block = free_block->next;                                    
 8005704:	b9 60 80 00 	mv r16,r11                                     
 8005708:	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 ) {                            
 800570c:	5d 6c ff d4 	bne r11,r12,800565c <_Heap_Walk+0x1d8>         
 8005710:	e0 00 00 03 	bi 800571c <_Heap_Walk+0x298>                  
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
 8005714:	ba 20 78 00 	mv r15,r17                                     
 8005718:	e0 00 00 15 	bi 800576c <_Heap_Walk+0x2e8>                  
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
 800571c:	78 01 08 01 	mvhi r1,0x801                                  
 8005720:	38 21 38 2c 	ori r1,r1,0x382c                               
 8005724:	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)(                                                     
 8005728:	78 01 08 01 	mvhi r1,0x801                                  
 800572c:	38 21 38 14 	ori r1,r1,0x3814                               
 8005730:	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)(                                                         
 8005734:	78 01 08 01 	mvhi r1,0x801                                  
 8005738:	38 21 34 40 	ori r1,r1,0x3440                               
 800573c:	5b 81 00 5c 	sw (sp+92),r1                                  
 8005740:	78 01 08 01 	mvhi r1,0x801                                  
 8005744:	38 21 34 5c 	ori r1,r1,0x345c                               
 8005748:	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)" : "")          
 800574c:	78 17 08 01 	mvhi r23,0x801                                 
 8005750:	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)" : ""),         
 8005754:	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)(                                                         
 8005758:	5b 81 00 60 	sw (sp+96),r1                                  
 800575c:	3b 7b 37 70 	ori fp,fp,0x3770                               
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
 8005760:	3a f7 37 e0 	ori r23,r23,0x37e0                             
 8005764:	3b 39 34 6c 	ori r25,r25,0x346c                             
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
 8005768:	3b 18 34 50 	ori r24,r24,0x3450                             
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 800576c:	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;                
 8005770:	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;             
 8005774:	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;                
 8005778:	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);                 
 800577c:	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;             
 8005780:	34 06 00 00 	mvi r6,0                                       
 8005784:	54 91 00 03 	bgu r4,r17,8005790 <_Heap_Walk+0x30c>          <== NEVER TAKEN
 8005788:	29 86 00 24 	lw r6,(r12+36)                                 
 800578c:	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 ) ) {              
 8005790:	5c c0 00 06 	bne r6,r0,80057a8 <_Heap_Walk+0x324>           
      (*printer)(                                                     
 8005794:	78 03 08 01 	mvhi r3,0x801                                  
 8005798:	b9 c0 08 00 	mv r1,r14                                      
 800579c:	34 02 00 01 	mvi r2,1                                       
 80057a0:	38 63 36 b0 	ori r3,r3,0x36b0                               
 80057a4:	e0 00 00 1f 	bi 8005820 <_Heap_Walk+0x39c>                  
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
 80057a8:	ba 00 08 00 	mv r1,r16                                      
 80057ac:	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;               
 80057b0:	fd f6 58 00 	cmpne r11,r15,r22                              
 80057b4:	fb ff ec fd 	calli 8000ba8 <__umodsi3>                      
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
 80057b8:	44 20 00 09 	be r1,r0,80057dc <_Heap_Walk+0x358>            
 80057bc:	45 60 00 08 	be r11,r0,80057dc <_Heap_Walk+0x358>           
      (*printer)(                                                     
 80057c0:	78 03 08 01 	mvhi r3,0x801                                  
 80057c4:	b9 c0 08 00 	mv r1,r14                                      
 80057c8:	34 02 00 01 	mvi r2,1                                       
 80057cc:	38 63 36 e0 	ori r3,r3,0x36e0                               
 80057d0:	b9 e0 20 00 	mv r4,r15                                      
 80057d4:	ba 00 28 00 	mv r5,r16                                      
 80057d8:	e3 ff ff c8 	bi 80056f8 <_Heap_Walk+0x274>                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( block_size < min_block_size && is_not_last_block ) {         
 80057dc:	52 15 00 0b 	bgeu r16,r21,8005808 <_Heap_Walk+0x384>        
 80057e0:	45 60 00 0a 	be r11,r0,8005808 <_Heap_Walk+0x384>           <== NEVER TAKEN
      (*printer)(                                                     
 80057e4:	78 03 08 01 	mvhi r3,0x801                                  
 80057e8:	b9 c0 08 00 	mv r1,r14                                      
 80057ec:	34 02 00 01 	mvi r2,1                                       
 80057f0:	38 63 37 10 	ori r3,r3,0x3710                               
 80057f4:	b9 e0 20 00 	mv r4,r15                                      
 80057f8:	ba 00 28 00 	mv r5,r16                                      
 80057fc:	ba a0 30 00 	mv r6,r21                                      
 8005800:	d9 a0 00 00 	call r13                                       
 8005804:	e3 ff ff be 	bi 80056fc <_Heap_Walk+0x278>                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( next_block_begin <= block_begin && is_not_last_block ) {     
 8005808:	56 2f 00 09 	bgu r17,r15,800582c <_Heap_Walk+0x3a8>         
 800580c:	45 60 00 08 	be r11,r0,800582c <_Heap_Walk+0x3a8>           
      (*printer)(                                                     
 8005810:	78 03 08 01 	mvhi r3,0x801                                  
 8005814:	b9 c0 08 00 	mv r1,r14                                      
 8005818:	34 02 00 01 	mvi r2,1                                       
 800581c:	38 63 37 3c 	ori r3,r3,0x373c                               
 8005820:	b9 e0 20 00 	mv r4,r15                                      
 8005824:	ba 20 28 00 	mv r5,r17                                      
 8005828:	e3 ff ff b4 	bi 80056f8 <_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;                 
 800582c:	2a 24 00 04 	lw r4,(r17+4)                                  
 8005830:	22 52 00 01 	andi r18,r18,0x1                               
 8005834:	20 84 00 01 	andi r4,r4,0x1                                 
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
 8005838:	5c 80 00 2d 	bne r4,r0,80058ec <_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 ?                                 
 800583c:	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)(                                                         
 8005840:	29 85 00 08 	lw r5,(r12+8)                                  
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 8005844:	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)(                                                         
 8005848:	2b 87 00 5c 	lw r7,(sp+92)                                  
 800584c:	44 c5 00 04 	be r6,r5,800585c <_Heap_Walk+0x3d8>            
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
 8005850:	ba e0 38 00 	mv r7,r23                                      
 8005854:	5c cc 00 02 	bne r6,r12,800585c <_Heap_Walk+0x3d8>          
 8005858:	bb 00 38 00 	mv r7,r24                                      
    block->next,                                                      
    block->next == last_free_block ?                                  
 800585c:	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)(                                                         
 8005860:	2b 89 00 60 	lw r9,(sp+96)                                  
 8005864:	45 04 00 04 	be r8,r4,8005874 <_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)" : "")          
 8005868:	ba e0 48 00 	mv r9,r23                                      
 800586c:	5d 0c 00 02 	bne r8,r12,8005874 <_Heap_Walk+0x3f0>          
 8005870:	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)(                                                         
 8005874:	5b 89 00 04 	sw (sp+4),r9                                   
 8005878:	b9 c0 08 00 	mv r1,r14                                      
 800587c:	34 02 00 00 	mvi r2,0                                       
 8005880:	bb 60 18 00 	mv r3,fp                                       
 8005884:	b9 e0 20 00 	mv r4,r15                                      
 8005888:	ba 00 28 00 	mv r5,r16                                      
 800588c:	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 ) {                        
 8005890:	2a 26 00 00 	lw r6,(r17+0)                                  
 8005894:	46 06 00 0a 	be r16,r6,80058bc <_Heap_Walk+0x438>           
    (*printer)(                                                       
 8005898:	78 03 08 01 	mvhi r3,0x801                                  
 800589c:	b9 c0 08 00 	mv r1,r14                                      
 80058a0:	34 02 00 01 	mvi r2,1                                       
 80058a4:	38 63 37 a8 	ori r3,r3,0x37a8                               
 80058a8:	b9 e0 20 00 	mv r4,r15                                      
 80058ac:	ba 00 28 00 	mv r5,r16                                      
 80058b0:	ba 20 38 00 	mv r7,r17                                      
 80058b4:	d9 a0 00 00 	call r13                                       
 80058b8:	e3 ff ff 91 	bi 80056fc <_Heap_Walk+0x278>                  
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !prev_used ) {                                                 
 80058bc:	5e 40 00 06 	bne r18,r0,80058d4 <_Heap_Walk+0x450>          
    (*printer)(                                                       
 80058c0:	78 03 08 01 	mvhi r3,0x801                                  
 80058c4:	b9 c0 08 00 	mv r1,r14                                      
 80058c8:	34 02 00 01 	mvi r2,1                                       
 80058cc:	38 63 37 e4 	ori r3,r3,0x37e4                               
 80058d0:	e0 00 00 30 	bi 8005990 <_Heap_Walk+0x50c>                  
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 80058d4:	29 85 00 08 	lw r5,(r12+8)                                  
 80058d8:	e0 00 00 03 	bi 80058e4 <_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 ) {                                      
 80058dc:	44 af 00 13 	be r5,r15,8005928 <_Heap_Walk+0x4a4>           
      return true;                                                    
    }                                                                 
    free_block = free_block->next;                                    
 80058e0:	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 ) {                            
 80058e4:	5c ac ff fe 	bne r5,r12,80058dc <_Heap_Walk+0x458>          
 80058e8:	e0 00 00 26 	bi 8005980 <_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) {                                           
 80058ec:	46 40 00 08 	be r18,r0,800590c <_Heap_Walk+0x488>           
      (*printer)(                                                     
 80058f0:	2b 83 00 58 	lw r3,(sp+88)                                  
 80058f4:	b9 c0 08 00 	mv r1,r14                                      
 80058f8:	34 02 00 00 	mvi r2,0                                       
 80058fc:	b9 e0 20 00 	mv r4,r15                                      
 8005900:	ba 00 28 00 	mv r5,r16                                      
 8005904:	d9 a0 00 00 	call r13                                       
 8005908:	e0 00 00 08 	bi 8005928 <_Heap_Walk+0x4a4>                  
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
 800590c:	2b 83 00 54 	lw r3,(sp+84)                                  
 8005910:	29 e6 00 00 	lw r6,(r15+0)                                  
 8005914:	b9 c0 08 00 	mv r1,r14                                      
 8005918:	34 02 00 00 	mvi r2,0                                       
 800591c:	b9 e0 20 00 	mv r4,r15                                      
 8005920:	ba 00 28 00 	mv r5,r16                                      
 8005924:	d9 a0 00 00 	call r13                                       
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
 8005928:	5e 91 ff 7b 	bne r20,r17,8005714 <_Heap_Walk+0x290>         
                                                                      
  return true;                                                        
 800592c:	34 03 00 01 	mvi r3,1                                       
}                                                                     
 8005930:	b8 60 08 00 	mv r1,r3                                       
 8005934:	2b 9d 00 10 	lw ra,(sp+16)                                  
 8005938:	2b 8b 00 50 	lw r11,(sp+80)                                 
 800593c:	2b 8c 00 4c 	lw r12,(sp+76)                                 
 8005940:	2b 8d 00 48 	lw r13,(sp+72)                                 
 8005944:	2b 8e 00 44 	lw r14,(sp+68)                                 
 8005948:	2b 8f 00 40 	lw r15,(sp+64)                                 
 800594c:	2b 90 00 3c 	lw r16,(sp+60)                                 
 8005950:	2b 91 00 38 	lw r17,(sp+56)                                 
 8005954:	2b 92 00 34 	lw r18,(sp+52)                                 
 8005958:	2b 93 00 30 	lw r19,(sp+48)                                 
 800595c:	2b 94 00 2c 	lw r20,(sp+44)                                 
 8005960:	2b 95 00 28 	lw r21,(sp+40)                                 
 8005964:	2b 96 00 24 	lw r22,(sp+36)                                 
 8005968:	2b 97 00 20 	lw r23,(sp+32)                                 
 800596c:	2b 98 00 1c 	lw r24,(sp+28)                                 
 8005970:	2b 99 00 18 	lw r25,(sp+24)                                 
 8005974:	2b 9b 00 14 	lw fp,(sp+20)                                  
 8005978:	37 9c 00 60 	addi sp,sp,96                                  
 800597c:	c3 a0 00 00 	ret                                            
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {                 
    (*printer)(                                                       
 8005980:	78 03 08 01 	mvhi r3,0x801                                  
 8005984:	b9 c0 08 00 	mv r1,r14                                      
 8005988:	34 02 00 01 	mvi r2,1                                       
 800598c:	38 63 38 54 	ori r3,r3,0x3854                               
 8005990:	b9 e0 20 00 	mv r4,r15                                      
 8005994:	d9 a0 00 00 	call r13                                       
 8005998:	e3 ff ff 59 	bi 80056fc <_Heap_Walk+0x278>                  
                                                                      

08003fb0 <_IO_Manager_initialization>: #include <rtems/score/wkspace.h> #include <string.h> void _IO_Manager_initialization(void) {
 8003fb0:	37 9c ff e8 	addi sp,sp,-24                                 
 8003fb4:	5b 8b 00 18 	sw (sp+24),r11                                 
 8003fb8:	5b 8c 00 14 	sw (sp+20),r12                                 
 8003fbc:	5b 8d 00 10 	sw (sp+16),r13                                 
 8003fc0:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8003fc4:	5b 8f 00 08 	sw (sp+8),r15                                  
 8003fc8:	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      = rtems_configuration_get_device_driver_table();  
 8003fcc:	78 01 08 01 	mvhi r1,0x801                                  
 8003fd0:	38 21 b2 0c 	ori r1,r1,0xb20c                               
  drivers_in_table  = rtems_configuration_get_number_of_device_drivers();
 8003fd4:	28 2d 00 38 	lw r13,(r1+56)                                 
  number_of_drivers = rtems_configuration_get_maximum_drivers();      
 8003fd8:	28 2b 00 34 	lw r11,(r1+52)                                 
  uint32_t                    index;                                  
  rtems_driver_address_table *driver_table;                           
  uint32_t                    drivers_in_table;                       
  uint32_t                    number_of_drivers;                      
                                                                      
  driver_table      = rtems_configuration_get_device_driver_table();  
 8003fdc:	28 2e 00 3c 	lw r14,(r1+60)                                 
                                                                      
  /*                                                                  
   *  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 )                        
 8003fe0:	51 ab 00 03 	bgeu r13,r11,8003fec <_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 ) {                      
 8003fe4:	5d 6d 00 0a 	bne r11,r13,800400c <_IO_Manager_initialization+0x5c><== ALWAYS TAKEN
 8003fe8:	e0 00 00 02 	bi 8003ff0 <_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 )                        
 8003fec:	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;                          
 8003ff0:	78 01 08 01 	mvhi r1,0x801                                  
 8003ff4:	38 21 db 34 	ori r1,r1,0xdb34                               
 8003ff8:	58 2e 00 00 	sw (r1+0),r14                                  
    _IO_Number_of_drivers = number_of_drivers;                        
 8003ffc:	78 01 08 01 	mvhi r1,0x801                                  
 8004000:	38 21 db 30 	ori r1,r1,0xdb30                               
 8004004:	58 2b 00 00 	sw (r1+0),r11                                  
    return;                                                           
 8004008:	e0 00 00 27 	bi 80040a4 <_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 )  
 800400c:	34 02 00 01 	mvi r2,1                                       
 8004010:	b9 60 08 00 	mv r1,r11                                      
 8004014:	f8 00 58 89 	calli 801a238 <__ashlsi3>                      
 8004018:	34 02 00 03 	mvi r2,3                                       
 800401c:	b4 2b 08 00 	add r1,r1,r11                                  
 8004020:	f8 00 58 86 	calli 801a238 <__ashlsi3>                      
 8004024:	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(                             
 8004028:	f8 00 0e 5c 	calli 8007998 <_Workspace_Allocate_or_fatal_error>
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
 800402c:	78 02 08 01 	mvhi r2,0x801                                  
 8004030:	38 42 db 30 	ori r2,r2,0xdb30                               
  /*                                                                  
   *  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 *)           
 8004034:	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;                          
 8004038:	58 4b 00 00 	sw (r2+0),r11                                  
                                                                      
  memset(                                                             
 800403c:	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 *)           
 8004040:	39 8c db 34 	ori r12,r12,0xdb34                             
      _Workspace_Allocate_or_fatal_error(                             
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
                                                                      
  memset(                                                             
 8004044:	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 *)           
 8004048:	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(                                                             
 800404c:	f8 00 21 2b 	calli 800c4f8 <memset>                         
    _IO_Driver_address_table, 0,                                      
    sizeof( rtems_driver_address_table ) * ( number_of_drivers )      
  );                                                                  
                                                                      
  for ( index = 0 ; index < drivers_in_table ; index++ )              
 8004050:	34 03 00 00 	mvi r3,0                                       
 8004054:	34 04 00 00 	mvi r4,0                                       
 8004058:	e0 00 00 12 	bi 80040a0 <_IO_Manager_initialization+0xf0>   
    _IO_Driver_address_table[index] = driver_table[index];            
 800405c:	29 82 00 00 	lw r2,(r12+0)                                  
#include <rtems/score/thread.h>                                       
#include <rtems/score/wkspace.h>                                      
                                                                      
#include <string.h>                                                   
                                                                      
void _IO_Manager_initialization(void)                                 
 8004060:	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];            
 8004064:	28 29 00 00 	lw r9,(r1+0)                                   
 8004068:	28 28 00 04 	lw r8,(r1+4)                                   
 800406c:	28 27 00 08 	lw r7,(r1+8)                                   
 8004070:	28 26 00 0c 	lw r6,(r1+12)                                  
 8004074:	28 25 00 10 	lw r5,(r1+16)                                  
 8004078:	28 21 00 14 	lw r1,(r1+20)                                  
 800407c:	b4 43 10 00 	add r2,r2,r3                                   
 8004080:	58 49 00 00 	sw (r2+0),r9                                   
 8004084:	58 48 00 04 	sw (r2+4),r8                                   
 8004088:	58 47 00 08 	sw (r2+8),r7                                   
 800408c:	58 46 00 0c 	sw (r2+12),r6                                  
 8004090:	58 45 00 10 	sw (r2+16),r5                                  
 8004094:	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++ )              
 8004098:	34 84 00 01 	addi r4,r4,1                                   
 800409c:	34 63 00 18 	addi r3,r3,24                                  
 80040a0:	55 a4 ff ef 	bgu r13,r4,800405c <_IO_Manager_initialization+0xac>
    _IO_Driver_address_table[index] = driver_table[index];            
}                                                                     
 80040a4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80040a8:	2b 8b 00 18 	lw r11,(sp+24)                                 
 80040ac:	2b 8c 00 14 	lw r12,(sp+20)                                 
 80040b0:	2b 8d 00 10 	lw r13,(sp+16)                                 
 80040b4:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 80040b8:	2b 8f 00 08 	lw r15,(sp+8)                                  
 80040bc:	37 9c 00 18 	addi sp,sp,24                                  
 80040c0:	c3 a0 00 00 	ret                                            
                                                                      

08004f80 <_Objects_Allocate>: #endif Objects_Control *_Objects_Allocate( Objects_Information *information ) {
 8004f80:	37 9c ff ec 	addi sp,sp,-20                                 
 8004f84:	5b 8b 00 14 	sw (sp+20),r11                                 
 8004f88:	5b 8c 00 10 	sw (sp+16),r12                                 
 8004f8c:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8004f90:	5b 8e 00 08 	sw (sp+8),r14                                  
 8004f94:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004f98:	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 )                                       
 8004f9c:	28 21 00 18 	lw r1,(r1+24)                                  
    return NULL;                                                      
 8004fa0:	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 )                                       
 8004fa4:	44 20 00 1e 	be r1,r0,800501c <_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 );
 8004fa8:	35 6d 00 20 	addi r13,r11,32                                
 8004fac:	b9 a0 08 00 	mv r1,r13                                      
 8004fb0:	fb ff fd 03 	calli 80043bc <_Chain_Get>                     
 8004fb4:	b8 20 60 00 	mv r12,r1                                      
 8004fb8:	b8 20 70 00 	mv r14,r1                                      
                                                                      
  if ( information->auto_extend ) {                                   
 8004fbc:	41 61 00 12 	lbu r1,(r11+18)                                
 8004fc0:	44 20 00 17 	be r1,r0,800501c <_Objects_Allocate+0x9c>      
    /*                                                                
     *  If the list is empty then we are out of objects and need to   
     *  extend information base.                                      
     */                                                               
                                                                      
    if ( !the_object ) {                                              
 8004fc4:	5d 80 00 07 	bne r12,r0,8004fe0 <_Objects_Allocate+0x60>    
      _Objects_Extend_information( information );                     
 8004fc8:	b9 60 08 00 	mv r1,r11                                      
 8004fcc:	f8 00 00 1c 	calli 800503c <_Objects_Extend_information>    
      the_object =  (Objects_Control *) _Chain_Get( &information->Inactive );
 8004fd0:	b9 a0 08 00 	mv r1,r13                                      
 8004fd4:	fb ff fc fa 	calli 80043bc <_Chain_Get>                     
 8004fd8:	b8 20 60 00 	mv r12,r1                                      
    }                                                                 
                                                                      
    if ( the_object ) {                                               
 8004fdc:	44 2e 00 10 	be r1,r14,800501c <_Objects_Allocate+0x9c>     
      uint32_t   block;                                               
                                                                      
      block = (uint32_t) _Objects_Get_index( the_object->id ) -       
 8004fe0:	2d 82 00 0a 	lhu r2,(r12+10)                                
 8004fe4:	2d 61 00 0a 	lhu r1,(r11+10)                                
              _Objects_Get_index( information->minimum_id );          
      block /= information->allocation_size;                          
 8004fe8:	c8 41 08 00 	sub r1,r2,r1                                   
 8004fec:	2d 62 00 14 	lhu r2,(r11+20)                                
 8004ff0:	f8 00 55 6c 	calli 801a5a0 <__udivsi3>                      
                                                                      
      information->inactive_per_block[ block ]--;                     
 8004ff4:	34 02 00 02 	mvi r2,2                                       
 8004ff8:	f8 00 54 90 	calli 801a238 <__ashlsi3>                      
 8004ffc:	29 62 00 30 	lw r2,(r11+48)                                 
 8005000:	b4 41 08 00 	add r1,r2,r1                                   
 8005004:	28 22 00 00 	lw r2,(r1+0)                                   
 8005008:	34 42 ff ff 	addi r2,r2,-1                                  
 800500c:	58 22 00 00 	sw (r1+0),r2                                   
      information->inactive--;                                        
 8005010:	2d 61 00 2c 	lhu r1,(r11+44)                                
 8005014:	34 21 ff ff 	addi r1,r1,-1                                  
 8005018:	0d 61 00 2c 	sh (r11+44),r1                                 
    );                                                                
  }                                                                   
#endif                                                                
                                                                      
  return the_object;                                                  
}                                                                     
 800501c:	b9 80 08 00 	mv r1,r12                                      
 8005020:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005024:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8005028:	2b 8c 00 10 	lw r12,(sp+16)                                 
 800502c:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8005030:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8005034:	37 9c 00 14 	addi sp,sp,20                                  
 8005038:	c3 a0 00 00 	ret                                            
                                                                      

08005470 <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint16_t the_class ) {
 8005470:	37 9c ff ec 	addi sp,sp,-20                                 
 8005474:	5b 8b 00 14 	sw (sp+20),r11                                 
 8005478:	5b 8c 00 10 	sw (sp+16),r12                                 
 800547c:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8005480:	5b 8e 00 08 	sw (sp+8),r14                                  
 8005484:	5b 9d 00 04 	sw (sp+4),ra                                   
 8005488:	20 4c ff ff 	andi r12,r2,0xffff                             
 800548c:	b8 20 70 00 	mv r14,r1                                      
  Objects_Information *info;                                          
  int the_class_api_maximum;                                          
                                                                      
  if ( !the_class )                                                   
    return NULL;                                                      
 8005490:	34 0b 00 00 	mvi r11,0                                      
)                                                                     
{                                                                     
  Objects_Information *info;                                          
  int the_class_api_maximum;                                          
                                                                      
  if ( !the_class )                                                   
 8005494:	45 80 00 16 	be r12,r0,80054ec <_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 );      
 8005498:	f8 00 11 fd 	calli 8009c8c <_Objects_API_maximum_class>     
  if ( the_class_api_maximum == 0 )                                   
 800549c:	44 20 00 14 	be r1,r0,80054ec <_Objects_Get_information+0x7c>
    return NULL;                                                      
                                                                      
  if ( the_class > (uint32_t) the_class_api_maximum )                 
 80054a0:	55 81 00 13 	bgu r12,r1,80054ec <_Objects_Get_information+0x7c>
    return NULL;                                                      
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
 80054a4:	78 0d 08 01 	mvhi r13,0x801                                 
 80054a8:	b9 c0 08 00 	mv r1,r14                                      
 80054ac:	34 02 00 02 	mvi r2,2                                       
 80054b0:	39 ad d8 7c 	ori r13,r13,0xd87c                             
 80054b4:	f8 00 53 61 	calli 801a238 <__ashlsi3>                      
 80054b8:	b5 a1 08 00 	add r1,r13,r1                                  
 80054bc:	28 2d 00 00 	lw r13,(r1+0)                                  
 80054c0:	45 a0 00 0b 	be r13,r0,80054ec <_Objects_Get_information+0x7c><== NEVER TAKEN
    return NULL;                                                      
                                                                      
  info = _Objects_Information_table[ the_api ][ the_class ];          
 80054c4:	b9 80 08 00 	mv r1,r12                                      
 80054c8:	34 02 00 02 	mvi r2,2                                       
 80054cc:	f8 00 53 5b 	calli 801a238 <__ashlsi3>                      
 80054d0:	b5 a1 08 00 	add r1,r13,r1                                  
 80054d4:	28 2b 00 00 	lw r11,(r1+0)                                  
  if ( !info )                                                        
 80054d8:	45 60 00 05 	be r11,r0,80054ec <_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 )                                         
 80054dc:	2d 61 00 10 	lhu r1,(r11+16)                                
      return NULL;                                                    
 80054e0:	7c 21 00 00 	cmpnei r1,r1,0                                 
 80054e4:	c8 01 08 00 	sub r1,r0,r1                                   
 80054e8:	a1 61 58 00 	and r11,r11,r1                                 
  #endif                                                              
                                                                      
  return info;                                                        
}                                                                     
 80054ec:	b9 60 08 00 	mv r1,r11                                      
 80054f0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80054f4:	2b 8b 00 14 	lw r11,(sp+20)                                 
 80054f8:	2b 8c 00 10 	lw r12,(sp+16)                                 
 80054fc:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8005500:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8005504:	37 9c 00 14 	addi sp,sp,20                                  
 8005508:	c3 a0 00 00 	ret                                            
                                                                      

08018840 <_Objects_Get_no_protection>: Objects_Control *_Objects_Get_no_protection( Objects_Information *information, Objects_Id id, Objects_Locations *location ) {
 8018840:	37 9c ff f4 	addi sp,sp,-12                                 
 8018844:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8018848:	5b 8c 00 08 	sw (sp+8),r12                                  
 801884c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8018850:	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;                           
 8018854:	28 21 00 08 	lw r1,(r1+8)                                   
Objects_Control *_Objects_Get_no_protection(                          
  Objects_Information *information,                                   
  Objects_Id           id,                                            
  Objects_Locations   *location                                       
)                                                                     
{                                                                     
 8018858:	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;                           
 801885c:	c8 41 08 00 	sub r1,r2,r1                                   
                                                                      
  if ( information->maximum >= index ) {                              
 8018860:	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;                           
 8018864:	34 21 00 01 	addi r1,r1,1                                   
                                                                      
  if ( information->maximum >= index ) {                              
 8018868:	54 22 00 09 	bgu r1,r2,801888c <_Objects_Get_no_protection+0x4c>
    if ( (the_object = information->local_table[ index ]) != NULL ) { 
 801886c:	28 8c 00 1c 	lw r12,(r4+28)                                 
 8018870:	34 02 00 02 	mvi r2,2                                       
 8018874:	fb ff d6 33 	calli 800e140 <__ashlsi3>                      
 8018878:	b5 81 08 00 	add r1,r12,r1                                  
 801887c:	28 21 00 00 	lw r1,(r1+0)                                   
 8018880:	44 20 00 03 	be r1,r0,801888c <_Objects_Get_no_protection+0x4c><== NEVER TAKEN
      *location = OBJECTS_LOCAL;                                      
 8018884:	59 60 00 00 	sw (r11+0),r0                                  
      return the_object;                                              
 8018888:	e0 00 00 04 	bi 8018898 <_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;                                          
 801888c:	34 01 00 01 	mvi r1,1                                       
 8018890:	59 61 00 00 	sw (r11+0),r1                                  
  return NULL;                                                        
 8018894:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 8018898:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801889c:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 80188a0:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80188a4:	37 9c 00 0c 	addi sp,sp,12                                  
 80188a8:	c3 a0 00 00 	ret                                            
                                                                      

0800a404 <_Objects_Id_to_name>: Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) {
 800a404:	37 9c ff e8 	addi sp,sp,-24                                 
 800a408:	5b 8b 00 14 	sw (sp+20),r11                                 
 800a40c:	5b 8c 00 10 	sw (sp+16),r12                                 
 800a410:	5b 8d 00 0c 	sw (sp+12),r13                                 
 800a414:	5b 8e 00 08 	sw (sp+8),r14                                  
 800a418:	5b 9d 00 04 	sw (sp+4),ra                                   
 800a41c:	b8 40 70 00 	mv r14,r2                                      
                                                                      
  /*                                                                  
   *  Caller is trusted for name != NULL.                             
   */                                                                 
                                                                      
  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
 800a420:	b8 20 58 00 	mv r11,r1                                      
 800a424:	5c 20 00 05 	bne r1,r0,800a438 <_Objects_Id_to_name+0x34>   
 800a428:	78 01 08 03 	mvhi r1,0x803                                  
 800a42c:	38 21 03 80 	ori r1,r1,0x380                                
 800a430:	28 21 00 10 	lw r1,(r1+16)                                  
 800a434:	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);
 800a438:	34 02 00 18 	mvi r2,24                                      
 800a43c:	b9 60 08 00 	mv r1,r11                                      
 800a440:	f8 00 7b ee 	calli 80293f8 <__lshrsi3>                      
 800a444:	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 )                      
 800a448:	34 23 ff ff 	addi r3,r1,-1                                  
 800a44c:	34 02 00 02 	mvi r2,2                                       
                                                                      
  the_api = _Objects_Get_API( tmpId );                                
  if ( !_Objects_Is_api_valid( the_api ) )                            
    return OBJECTS_INVALID_ID;                                        
 800a450:	34 0d 00 03 	mvi r13,3                                      
 800a454:	54 62 00 12 	bgu r3,r2,800a49c <_Objects_Id_to_name+0x98>   
 800a458:	e0 00 00 19 	bi 800a4bc <_Objects_Id_to_name+0xb8>          
 */                                                                   
RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class(                     
  Objects_Id id                                                       
)                                                                     
{                                                                     
  return (uint32_t)                                                   
 800a45c:	34 02 00 1b 	mvi r2,27                                      
 800a460:	b9 60 08 00 	mv r1,r11                                      
 800a464:	f8 00 7b e5 	calli 80293f8 <__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 ];   
 800a468:	34 02 00 02 	mvi r2,2                                       
 800a46c:	f8 00 7b 95 	calli 80292c0 <__ashlsi3>                      
 800a470:	b5 81 08 00 	add r1,r12,r1                                  
 800a474:	28 21 00 00 	lw r1,(r1+0)                                   
  if ( !information )                                                 
 800a478:	44 20 00 09 	be r1,r0,800a49c <_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 ); 
 800a47c:	b9 60 10 00 	mv r2,r11                                      
 800a480:	37 83 00 18 	addi r3,sp,24                                  
 800a484:	fb ff ff ba 	calli 800a36c <_Objects_Get>                   
  if ( !the_object )                                                  
 800a488:	44 20 00 05 	be r1,r0,800a49c <_Objects_Id_to_name+0x98>    
    return OBJECTS_INVALID_ID;                                        
                                                                      
  *name = the_object->name;                                           
 800a48c:	28 21 00 0c 	lw r1,(r1+12)                                  
  _Thread_Enable_dispatch();                                          
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
 800a490:	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;                                           
 800a494:	59 c1 00 00 	sw (r14+0),r1                                  
  _Thread_Enable_dispatch();                                          
 800a498:	f8 00 04 4e 	calli 800b5d0 <_Thread_Enable_dispatch>        
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
}                                                                     
 800a49c:	b9 a0 08 00 	mv r1,r13                                      
 800a4a0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a4a4:	2b 8b 00 14 	lw r11,(sp+20)                                 
 800a4a8:	2b 8c 00 10 	lw r12,(sp+16)                                 
 800a4ac:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800a4b0:	2b 8e 00 08 	lw r14,(sp+8)                                  
 800a4b4:	37 9c 00 18 	addi sp,sp,24                                  
 800a4b8:	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 ] )                       
 800a4bc:	78 0c 08 03 	mvhi r12,0x803                                 
 800a4c0:	34 02 00 02 	mvi r2,2                                       
 800a4c4:	39 8c 01 54 	ori r12,r12,0x154                              
 800a4c8:	f8 00 7b 7e 	calli 80292c0 <__ashlsi3>                      
 800a4cc:	b5 81 08 00 	add r1,r12,r1                                  
 800a4d0:	28 2c 00 00 	lw r12,(r1+0)                                  
 800a4d4:	5d 80 ff e2 	bne r12,r0,800a45c <_Objects_Id_to_name+0x58>  
 800a4d8:	e3 ff ff f1 	bi 800a49c <_Objects_Id_to_name+0x98>          
                                                                      

08006310 <_RBTree_Extract_unprotected>: */ void _RBTree_Extract_unprotected( RBTree_Control *the_rbtree, RBTree_Node *the_node ) {
 8006310:	37 9c ff e4 	addi sp,sp,-28                                 
 8006314:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8006318:	5b 8c 00 18 	sw (sp+24),r12                                 
 800631c:	5b 8d 00 14 	sw (sp+20),r13                                 
 8006320:	5b 8e 00 10 	sw (sp+16),r14                                 
 8006324:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8006328:	5b 90 00 08 	sw (sp+8),r16                                  
 800632c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006330:	b8 20 70 00 	mv r14,r1                                      
 8006334:	b8 40 58 00 	mv r11,r2                                      
  RBTree_Node *leaf, *target;                                         
  RBTree_Color victim_color;                                          
  RBTree_Direction dir;                                               
                                                                      
  if (!the_node) return;                                              
 8006338:	44 40 00 53 	be r2,r0,8006484 <_RBTree_Extract_unprotected+0x174>
                                                                      
  /* check if min needs to be updated */                              
  if (the_node == the_rbtree->first[RBT_LEFT]) {                      
 800633c:	28 21 00 08 	lw r1,(r1+8)                                   
 8006340:	5c 41 00 05 	bne r2,r1,8006354 <_RBTree_Extract_unprotected+0x44>
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Successor_unprotected(      
  const RBTree_Node *node                                             
)                                                                     
{                                                                     
  return _RBTree_Next_unprotected( node, RBT_RIGHT );                 
 8006344:	b8 40 08 00 	mv r1,r2                                       
 8006348:	34 02 00 01 	mvi r2,1                                       
 800634c:	f8 00 01 36 	calli 8006824 <_RBTree_Next_unprotected>       
    RBTree_Node *next;                                                
    next = _RBTree_Successor_unprotected(the_node);                   
    the_rbtree->first[RBT_LEFT] = next;                               
 8006350:	59 c1 00 08 	sw (r14+8),r1                                  
  }                                                                   
                                                                      
  /* Check if max needs to be updated. min=max for 1 element trees so 
   * do not use else if here. */                                      
  if (the_node == the_rbtree->first[RBT_RIGHT]) {                     
 8006354:	29 c1 00 0c 	lw r1,(r14+12)                                 
 8006358:	5d 61 00 05 	bne r11,r1,800636c <_RBTree_Extract_unprotected+0x5c>
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Predecessor_unprotected(    
  const RBTree_Node *node                                             
)                                                                     
{                                                                     
  return _RBTree_Next_unprotected( node, RBT_LEFT );                  
 800635c:	b9 60 08 00 	mv r1,r11                                      
 8006360:	34 02 00 00 	mvi r2,0                                       
 8006364:	f8 00 01 30 	calli 8006824 <_RBTree_Next_unprotected>       
    RBTree_Node *previous;                                            
    previous = _RBTree_Predecessor_unprotected(the_node);             
    the_rbtree->first[RBT_RIGHT] = previous;                          
 8006368:	59 c1 00 0c 	sw (r14+12),r1                                 
   * either max in node->child[RBT_LEFT] or min in node->child[RBT_RIGHT],
   * and replace the_node with the target node. This maintains the binary
   * search tree property, but may violate the red-black properties.  
   */                                                                 
                                                                      
  if (the_node->child[RBT_LEFT] && the_node->child[RBT_RIGHT]) {      
 800636c:	29 6c 00 04 	lw r12,(r11+4)                                 
 8006370:	29 6d 00 08 	lw r13,(r11+8)                                 
 8006374:	45 80 00 2b 	be r12,r0,8006420 <_RBTree_Extract_unprotected+0x110>
 8006378:	5d a0 00 03 	bne r13,r0,8006384 <_RBTree_Extract_unprotected+0x74>
 800637c:	e0 00 00 2b 	bi 8006428 <_RBTree_Extract_unprotected+0x118> 
    target = the_node->child[RBT_LEFT]; /* find max in node->child[RBT_LEFT] */
    while (target->child[RBT_RIGHT]) target = target->child[RBT_RIGHT];
 8006380:	b8 20 60 00 	mv r12,r1                                      
 8006384:	29 81 00 08 	lw r1,(r12+8)                                  
 8006388:	5c 20 ff fe 	bne r1,r0,8006380 <_RBTree_Extract_unprotected+0x70>
     * target's position (target is the right child of target->parent)
     * when target vacates it. if there is no child, then target->parent
     * should become NULL. This may cause the coloring to be violated.
     * For now we store the color of the node being deleted in victim_color.
     */                                                               
    leaf = target->child[RBT_LEFT];                                   
 800638c:	29 8d 00 04 	lw r13,(r12+4)                                 
    if(leaf) {                                                        
 8006390:	45 a1 00 04 	be r13,r1,80063a0 <_RBTree_Extract_unprotected+0x90>
      leaf->parent = target->parent;                                  
 8006394:	29 81 00 00 	lw r1,(r12+0)                                  
 8006398:	59 a1 00 00 	sw (r13+0),r1                                  
 800639c:	e0 00 00 03 	bi 80063a8 <_RBTree_Extract_unprotected+0x98>  
    } else {                                                          
      /* fix the tree here if the child is a null leaf. */            
      _RBTree_Extract_validate_unprotected(target);                   
 80063a0:	b9 80 08 00 	mv r1,r12                                      
 80063a4:	fb ff ff 70 	calli 8006164 <_RBTree_Extract_validate_unprotected>
    }                                                                 
    victim_color = target->color;                                     
    dir = target != target->parent->child[0];                         
 80063a8:	29 90 00 00 	lw r16,(r12+0)                                 
    target->parent->child[dir] = leaf;                                
 80063ac:	34 02 00 02 	mvi r2,2                                       
      leaf->parent = target->parent;                                  
    } else {                                                          
      /* fix the tree here if the child is a null leaf. */            
      _RBTree_Extract_validate_unprotected(target);                   
    }                                                                 
    victim_color = target->color;                                     
 80063b0:	29 8f 00 0c 	lw r15,(r12+12)                                
    dir = target != target->parent->child[0];                         
 80063b4:	2a 01 00 04 	lw r1,(r16+4)                                  
    target->parent->child[dir] = leaf;                                
 80063b8:	fd 81 08 00 	cmpne r1,r12,r1                                
 80063bc:	fb ff ea 52 	calli 8000d04 <__ashlsi3>                      
 80063c0:	b6 01 08 00 	add r1,r16,r1                                  
                                                                      
    /* now replace the_node with target */                            
    dir = the_node != the_node->parent->child[0];                     
 80063c4:	29 70 00 00 	lw r16,(r11+0)                                 
      /* fix the tree here if the child is a null leaf. */            
      _RBTree_Extract_validate_unprotected(target);                   
    }                                                                 
    victim_color = target->color;                                     
    dir = target != target->parent->child[0];                         
    target->parent->child[dir] = leaf;                                
 80063c8:	58 2d 00 04 	sw (r1+4),r13                                  
                                                                      
    /* now replace the_node with target */                            
    dir = the_node != the_node->parent->child[0];                     
    the_node->parent->child[dir] = target;                            
 80063cc:	34 02 00 02 	mvi r2,2                                       
    victim_color = target->color;                                     
    dir = target != target->parent->child[0];                         
    target->parent->child[dir] = leaf;                                
                                                                      
    /* now replace the_node with target */                            
    dir = the_node != the_node->parent->child[0];                     
 80063d0:	2a 01 00 04 	lw r1,(r16+4)                                  
    the_node->parent->child[dir] = target;                            
 80063d4:	fd 61 08 00 	cmpne r1,r11,r1                                
 80063d8:	fb ff ea 4b 	calli 8000d04 <__ashlsi3>                      
 80063dc:	b6 01 08 00 	add r1,r16,r1                                  
 80063e0:	58 2c 00 04 	sw (r1+4),r12                                  
                                                                      
    /* set target's new children to the original node's children */   
    target->child[RBT_RIGHT] = the_node->child[RBT_RIGHT];            
 80063e4:	29 61 00 08 	lw r1,(r11+8)                                  
 80063e8:	59 81 00 08 	sw (r12+8),r1                                  
    if (the_node->child[RBT_RIGHT])                                   
 80063ec:	29 61 00 08 	lw r1,(r11+8)                                  
 80063f0:	44 20 00 02 	be r1,r0,80063f8 <_RBTree_Extract_unprotected+0xe8><== NEVER TAKEN
      the_node->child[RBT_RIGHT]->parent = target;                    
 80063f4:	58 2c 00 00 	sw (r1+0),r12                                  
    target->child[RBT_LEFT] = the_node->child[RBT_LEFT];              
 80063f8:	29 61 00 04 	lw r1,(r11+4)                                  
 80063fc:	59 81 00 04 	sw (r12+4),r1                                  
    if (the_node->child[RBT_LEFT])                                    
 8006400:	29 61 00 04 	lw r1,(r11+4)                                  
 8006404:	44 20 00 02 	be r1,r0,800640c <_RBTree_Extract_unprotected+0xfc>
      the_node->child[RBT_LEFT]->parent = target;                     
 8006408:	58 2c 00 00 	sw (r1+0),r12                                  
    /* finally, update the parent node and recolor. target has completely
     * replaced the_node, and target's child has moved up the tree if needed.
     * the_node is no longer part of the tree, although it has valid pointers
     * still.                                                         
     */                                                               
    target->parent = the_node->parent;                                
 800640c:	29 61 00 00 	lw r1,(r11+0)                                  
 8006410:	59 81 00 00 	sw (r12+0),r1                                  
    target->color = the_node->color;                                  
 8006414:	29 61 00 0c 	lw r1,(r11+12)                                 
 8006418:	59 81 00 0c 	sw (r12+12),r1                                 
 800641c:	e0 00 00 11 	bi 8006460 <_RBTree_Extract_unprotected+0x150> 
     * violated. We will fix it later.                                
     * For now we store the color of the node being deleted in victim_color.
     */                                                               
    leaf = the_node->child[RBT_LEFT] ?                                
              the_node->child[RBT_LEFT] : the_node->child[RBT_RIGHT]; 
    if( leaf ) {                                                      
 8006420:	5d ac 00 03 	bne r13,r12,800642c <_RBTree_Extract_unprotected+0x11c>
 8006424:	e0 00 00 05 	bi 8006438 <_RBTree_Extract_unprotected+0x128> 
   * either max in node->child[RBT_LEFT] or min in node->child[RBT_RIGHT],
   * and replace the_node with the target node. This maintains the binary
   * search tree property, but may violate the red-black properties.  
   */                                                                 
                                                                      
  if (the_node->child[RBT_LEFT] && the_node->child[RBT_RIGHT]) {      
 8006428:	b9 80 68 00 	mv r13,r12                                     
     * For now we store the color of the node being deleted in victim_color.
     */                                                               
    leaf = the_node->child[RBT_LEFT] ?                                
              the_node->child[RBT_LEFT] : the_node->child[RBT_RIGHT]; 
    if( leaf ) {                                                      
      leaf->parent = the_node->parent;                                
 800642c:	29 61 00 00 	lw r1,(r11+0)                                  
 8006430:	59 a1 00 00 	sw (r13+0),r1                                  
 8006434:	e0 00 00 03 	bi 8006440 <_RBTree_Extract_unprotected+0x130> 
    } else {                                                          
      /* fix the tree here if the child is a null leaf. */            
      _RBTree_Extract_validate_unprotected(the_node);                 
 8006438:	b9 60 08 00 	mv r1,r11                                      
 800643c:	fb ff ff 4a 	calli 8006164 <_RBTree_Extract_validate_unprotected>
    }                                                                 
    victim_color = the_node->color;                                   
                                                                      
    /* remove the_node from the tree */                               
    dir = the_node != the_node->parent->child[0];                     
 8006440:	29 6c 00 00 	lw r12,(r11+0)                                 
    the_node->parent->child[dir] = leaf;                              
 8006444:	34 02 00 02 	mvi r2,2                                       
      leaf->parent = the_node->parent;                                
    } else {                                                          
      /* fix the tree here if the child is a null leaf. */            
      _RBTree_Extract_validate_unprotected(the_node);                 
    }                                                                 
    victim_color = the_node->color;                                   
 8006448:	29 6f 00 0c 	lw r15,(r11+12)                                
                                                                      
    /* remove the_node from the tree */                               
    dir = the_node != the_node->parent->child[0];                     
 800644c:	29 81 00 04 	lw r1,(r12+4)                                  
    the_node->parent->child[dir] = leaf;                              
 8006450:	fd 61 08 00 	cmpne r1,r11,r1                                
 8006454:	fb ff ea 2c 	calli 8000d04 <__ashlsi3>                      
 8006458:	b5 81 08 00 	add r1,r12,r1                                  
 800645c:	58 2d 00 04 	sw (r1+4),r13                                  
  /* fix coloring. leaf has moved up the tree. The color of the deleted
   * node is in victim_color. There are two cases:                    
   *   1. Deleted a red node, its child must be black. Nothing must be done.
   *   2. Deleted a black node, its child must be red. Paint child black.
   */                                                                 
  if (victim_color == RBT_BLACK) { /* eliminate case 1 */             
 8006460:	5d e0 00 03 	bne r15,r0,800646c <_RBTree_Extract_unprotected+0x15c>
    if (leaf) {                                                       
 8006464:	45 af 00 02 	be r13,r15,800646c <_RBTree_Extract_unprotected+0x15c>
      leaf->color = RBT_BLACK; /* case 2 */                           
 8006468:	59 a0 00 0c 	sw (r13+12),r0                                 
                                                                      
  /* Wipe the_node */                                                 
  _RBTree_Set_off_rbtree(the_node);                                   
                                                                      
  /* set root to black, if it exists */                               
  if (the_rbtree->root) the_rbtree->root->color = RBT_BLACK;          
 800646c:	29 c1 00 04 	lw r1,(r14+4)                                  
 */                                                                   
RTEMS_INLINE_ROUTINE void _RBTree_Set_off_rbtree(                     
    RBTree_Node *node                                                 
    )                                                                 
{                                                                     
  node->parent = node->child[RBT_LEFT] = node->child[RBT_RIGHT] = NULL;
 8006470:	59 60 00 08 	sw (r11+8),r0                                  
 8006474:	59 60 00 04 	sw (r11+4),r0                                  
 8006478:	59 60 00 00 	sw (r11+0),r0                                  
 800647c:	44 20 00 02 	be r1,r0,8006484 <_RBTree_Extract_unprotected+0x174>
 8006480:	58 20 00 0c 	sw (r1+12),r0                                  
}                                                                     
 8006484:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006488:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 800648c:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8006490:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8006494:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8006498:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 800649c:	2b 90 00 08 	lw r16,(sp+8)                                  
 80064a0:	37 9c 00 1c 	addi sp,sp,28                                  
 80064a4:	c3 a0 00 00 	ret                                            
                                                                      

08006f44 <_RBTree_Initialize>: void *starting_address, size_t number_nodes, size_t node_size, bool is_unique ) {
 8006f44:	37 9c ff ec 	addi sp,sp,-20                                 
 8006f48:	5b 8b 00 14 	sw (sp+20),r11                                 
 8006f4c:	5b 8c 00 10 	sw (sp+16),r12                                 
 8006f50:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8006f54:	5b 8e 00 08 	sw (sp+8),r14                                  
 8006f58:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006f5c:	b8 20 58 00 	mv r11,r1                                      
 8006f60:	b8 80 68 00 	mv r13,r4                                      
 8006f64:	b8 a0 70 00 	mv r14,r5                                      
 8006f68:	20 c6 00 ff 	andi r6,r6,0xff                                
  size_t      count;                                                  
  RBTree_Node *next;                                                  
                                                                      
  /* TODO: Error message? */                                          
  if (!the_rbtree) return;                                            
 8006f6c:	44 20 00 0f 	be r1,r0,8006fa8 <_RBTree_Initialize+0x64>     <== NEVER TAKEN
    RBTree_Control          *the_rbtree,                              
    RBTree_Compare_function  compare_function,                        
    bool                     is_unique                                
    )                                                                 
{                                                                     
  the_rbtree->permanent_null   = NULL;                                
 8006f70:	58 20 00 00 	sw (r1+0),r0                                   
  the_rbtree->root             = NULL;                                
 8006f74:	58 20 00 04 	sw (r1+4),r0                                   
  the_rbtree->first[0]         = NULL;                                
 8006f78:	58 20 00 08 	sw (r1+8),r0                                   
  the_rbtree->first[1]         = NULL;                                
 8006f7c:	58 20 00 0c 	sw (r1+12),r0                                  
  the_rbtree->compare_function = compare_function;                    
 8006f80:	58 22 00 10 	sw (r1+16),r2                                  
  the_rbtree->is_unique        = is_unique;                           
 8006f84:	30 26 00 14 	sb (r1+20),r6                                  
                                                                      
  /* could do sanity checks here */                                   
  _RBTree_Initialize_empty(the_rbtree, compare_function, is_unique);  
                                                                      
  count = number_nodes;                                               
  next  = starting_address;                                           
 8006f88:	b8 60 60 00 	mv r12,r3                                      
  while ( count-- ) {                                                 
 8006f8c:	e0 00 00 06 	bi 8006fa4 <_RBTree_Initialize+0x60>           
    _RBTree_Insert_unprotected(the_rbtree, next);                     
 8006f90:	b9 80 10 00 	mv r2,r12                                      
 8006f94:	b9 60 08 00 	mv r1,r11                                      
 8006f98:	fb ff ff 22 	calli 8006c20 <_RBTree_Insert_unprotected>     
#include <rtems/system.h>                                             
#include <rtems/score/address.h>                                      
#include <rtems/score/rbtree.h>                                       
#include <rtems/score/isr.h>                                          
                                                                      
void _RBTree_Initialize(                                              
 8006f9c:	b5 8e 60 00 	add r12,r12,r14                                
 8006fa0:	35 ad ff ff 	addi r13,r13,-1                                
  /* could do sanity checks here */                                   
  _RBTree_Initialize_empty(the_rbtree, compare_function, is_unique);  
                                                                      
  count = number_nodes;                                               
  next  = starting_address;                                           
  while ( count-- ) {                                                 
 8006fa4:	5d a0 ff fb 	bne r13,r0,8006f90 <_RBTree_Initialize+0x4c>   
    _RBTree_Insert_unprotected(the_rbtree, next);                     
    next           = (RBTree_Node *)                                  
                        _Addresses_Add_offset( (void *) next, node_size );
  }                                                                   
}                                                                     
 8006fa8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006fac:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8006fb0:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8006fb4:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8006fb8:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8006fbc:	37 9c 00 14 	addi sp,sp,20                                  
 8006fc0:	c3 a0 00 00 	ret                                            
                                                                      

08006590 <_RBTree_Insert_unprotected>: */ RBTree_Node *_RBTree_Insert_unprotected( RBTree_Control *the_rbtree, RBTree_Node *the_node ) {
 8006590:	37 9c ff e8 	addi sp,sp,-24                                 
 8006594:	5b 8b 00 18 	sw (sp+24),r11                                 
 8006598:	5b 8c 00 14 	sw (sp+20),r12                                 
 800659c:	5b 8d 00 10 	sw (sp+16),r13                                 
 80065a0:	5b 8e 00 0c 	sw (sp+12),r14                                 
 80065a4:	5b 8f 00 08 	sw (sp+8),r15                                  
 80065a8:	5b 9d 00 04 	sw (sp+4),ra                                   
  if(!the_node) return (RBTree_Node*)-1;                              
 80065ac:	34 0d ff ff 	mvi r13,-1                                     
 */                                                                   
RBTree_Node *_RBTree_Insert_unprotected(                              
    RBTree_Control *the_rbtree,                                       
    RBTree_Node *the_node                                             
    )                                                                 
{                                                                     
 80065b0:	b8 20 60 00 	mv r12,r1                                      
 80065b4:	b8 40 58 00 	mv r11,r2                                      
  if(!the_node) return (RBTree_Node*)-1;                              
 80065b8:	44 40 00 5a 	be r2,r0,8006720 <_RBTree_Insert_unprotected+0x190>
                                                                      
  RBTree_Node *iter_node = the_rbtree->root;                          
 80065bc:	28 2d 00 04 	lw r13,(r1+4)                                  
  int compare_result;                                                 
                                                                      
  if (!iter_node) { /* special case: first node inserted */           
 80065c0:	b9 a0 78 00 	mv r15,r13                                     
 80065c4:	5d a0 00 2d 	bne r13,r0,8006678 <_RBTree_Insert_unprotected+0xe8>
    the_node->color = RBT_BLACK;                                      
 80065c8:	58 40 00 0c 	sw (r2+12),r0                                  
    the_rbtree->root = the_node;                                      
 80065cc:	59 82 00 04 	sw (r12+4),r2                                  
    the_rbtree->first[0] = the_rbtree->first[1] = the_node;           
 80065d0:	59 82 00 0c 	sw (r12+12),r2                                 
 80065d4:	59 82 00 08 	sw (r12+8),r2                                  
    the_node->parent = (RBTree_Node *) the_rbtree;                    
 80065d8:	59 61 00 00 	sw (r11+0),r1                                  
    the_node->child[RBT_LEFT] = the_node->child[RBT_RIGHT] = NULL;    
 80065dc:	58 40 00 08 	sw (r2+8),r0                                   
 80065e0:	58 40 00 04 	sw (r2+4),r0                                   
 80065e4:	e0 00 00 4f 	bi 8006720 <_RBTree_Insert_unprotected+0x190>  
  } else {                                                            
    /* typical binary search tree insert, descend tree to leaf and insert */
    while (iter_node) {                                               
      compare_result = the_rbtree->compare_function(the_node, iter_node);
      if ( the_rbtree->is_unique && _RBTree_Is_equal( compare_result ) )
 80065e8:	44 20 00 4e 	be r1,r0,8006720 <_RBTree_Insert_unprotected+0x190>
        return iter_node;                                             
      RBTree_Direction dir = !_RBTree_Is_lesser( compare_result );    
 80065ec:	34 02 00 1f 	mvi r2,31                                      
 80065f0:	a4 20 08 00 	not r1,r1                                      
 80065f4:	fb ff e9 eb 	calli 8000da0 <__lshrsi3>                      
      if (!iter_node->child[dir]) {                                   
 80065f8:	34 02 00 02 	mvi r2,2                                       
    /* typical binary search tree insert, descend tree to leaf and insert */
    while (iter_node) {                                               
      compare_result = the_rbtree->compare_function(the_node, iter_node);
      if ( the_rbtree->is_unique && _RBTree_Is_equal( compare_result ) )
        return iter_node;                                             
      RBTree_Direction dir = !_RBTree_Is_lesser( compare_result );    
 80065fc:	b8 20 70 00 	mv r14,r1                                      
      if (!iter_node->child[dir]) {                                   
 8006600:	fb ff e9 c1 	calli 8000d04 <__ashlsi3>                      
 8006604:	b5 a1 08 00 	add r1,r13,r1                                  
 8006608:	28 2d 00 04 	lw r13,(r1+4)                                  
 800660c:	34 22 00 04 	addi r2,r1,4                                   
 8006610:	5d a0 00 19 	bne r13,r0,8006674 <_RBTree_Insert_unprotected+0xe4>
        the_node->child[RBT_LEFT] = the_node->child[RBT_RIGHT] = NULL;
 8006614:	59 60 00 08 	sw (r11+8),r0                                  
 8006618:	59 60 00 04 	sw (r11+4),r0                                  
        the_node->color = RBT_RED;                                    
 800661c:	34 01 00 01 	mvi r1,1                                       
 8006620:	59 61 00 0c 	sw (r11+12),r1                                 
        iter_node->child[dir] = the_node;                             
 8006624:	58 4b 00 00 	sw (r2+0),r11                                  
        the_node->parent = iter_node;                                 
 8006628:	59 6f 00 00 	sw (r11+0),r15                                 
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_First(                      
  const RBTree_Control *the_rbtree,                                   
  RBTree_Direction dir                                                
)                                                                     
{                                                                     
  return the_rbtree->first[dir];                                      
 800662c:	34 02 00 02 	mvi r2,2                                       
 8006630:	35 c1 00 02 	addi r1,r14,2                                  
 8006634:	fb ff e9 b4 	calli 8000d04 <__ashlsi3>                      
 8006638:	b5 81 10 00 	add r2,r12,r1                                  
        /* update min/max */                                          
        compare_result = the_rbtree->compare_function(                
 800663c:	29 83 00 10 	lw r3,(r12+16)                                 
 8006640:	28 42 00 00 	lw r2,(r2+0)                                   
 8006644:	b9 60 08 00 	mv r1,r11                                      
 8006648:	d8 60 00 00 	call r3                                        
            the_node,                                                 
            _RBTree_First(the_rbtree, dir)                            
        );                                                            
        if ( (!dir && _RBTree_Is_lesser(compare_result)) ||           
 800664c:	5d cd 00 03 	bne r14,r13,8006658 <_RBTree_Insert_unprotected+0xc8>
 8006650:	49 a1 00 03 	bg r13,r1,800665c <_RBTree_Insert_unprotected+0xcc>
 8006654:	e0 00 00 2b 	bi 8006700 <_RBTree_Insert_unprotected+0x170>  
              (dir && _RBTree_Is_greater(compare_result)) ) {         
 8006658:	4c 01 00 2a 	bge r0,r1,8006700 <_RBTree_Insert_unprotected+0x170>
          the_rbtree->first[dir] = the_node;                          
 800665c:	35 c1 00 02 	addi r1,r14,2                                  
 8006660:	34 02 00 02 	mvi r2,2                                       
 8006664:	fb ff e9 a8 	calli 8000d04 <__ashlsi3>                      
 8006668:	b5 81 08 00 	add r1,r12,r1                                  
 800666c:	58 2b 00 00 	sw (r1+0),r11                                  
 8006670:	e0 00 00 24 	bi 8006700 <_RBTree_Insert_unprotected+0x170>  
    while (iter_node) {                                               
      compare_result = the_rbtree->compare_function(the_node, iter_node);
      if ( the_rbtree->is_unique && _RBTree_Is_equal( compare_result ) )
        return iter_node;                                             
      RBTree_Direction dir = !_RBTree_Is_lesser( compare_result );    
      if (!iter_node->child[dir]) {                                   
 8006674:	b9 a0 78 00 	mv r15,r13                                     
    the_node->parent = (RBTree_Node *) the_rbtree;                    
    the_node->child[RBT_LEFT] = the_node->child[RBT_RIGHT] = NULL;    
  } else {                                                            
    /* typical binary search tree insert, descend tree to leaf and insert */
    while (iter_node) {                                               
      compare_result = the_rbtree->compare_function(the_node, iter_node);
 8006678:	29 83 00 10 	lw r3,(r12+16)                                 
 800667c:	b9 a0 10 00 	mv r2,r13                                      
 8006680:	b9 60 08 00 	mv r1,r11                                      
 8006684:	d8 60 00 00 	call r3                                        
      if ( the_rbtree->is_unique && _RBTree_Is_equal( compare_result ) )
 8006688:	41 82 00 14 	lbu r2,(r12+20)                                
 800668c:	5c 40 ff d7 	bne r2,r0,80065e8 <_RBTree_Insert_unprotected+0x58>
 8006690:	e3 ff ff d7 	bi 80065ec <_RBTree_Insert_unprotected+0x5c>   
)                                                                     
{                                                                     
  if(!the_node) return NULL;                                          
  if(!(the_node->parent)) return NULL;                                
  if(!(the_node->parent->parent)) return NULL;                        
  if(!(the_node->parent->parent->parent)) return NULL;                
 8006694:	29 82 00 00 	lw r2,(r12+0)                                  
 8006698:	44 40 00 2b 	be r2,r0,8006744 <_RBTree_Insert_unprotected+0x1b4><== NEVER TAKEN
{                                                                     
  if(!the_node) return NULL;                                          
  if(!(the_node->parent)) return NULL;                                
  if(!(the_node->parent->parent)) return NULL;                        
                                                                      
  if(the_node == the_node->parent->child[RBT_LEFT])                   
 800669c:	29 82 00 04 	lw r2,(r12+4)                                  
 80066a0:	5c 22 00 02 	bne r1,r2,80066a8 <_RBTree_Insert_unprotected+0x118>
    return the_node->parent->child[RBT_RIGHT];                        
 80066a4:	29 82 00 08 	lw r2,(r12+8)                                  
 */                                                                   
RTEMS_INLINE_ROUTINE bool _RBTree_Is_red(                             
    const RBTree_Node *the_node                                       
    )                                                                 
{                                                                     
  return (the_node && the_node->color == RBT_RED);                    
 80066a8:	44 40 00 27 	be r2,r0,8006744 <_RBTree_Insert_unprotected+0x1b4>
 80066ac:	28 43 00 0c 	lw r3,(r2+12)                                  
 80066b0:	5c 6e 00 25 	bne r3,r14,8006744 <_RBTree_Insert_unprotected+0x1b4>
    u = _RBTree_Parent_sibling(the_node);                             
    g = the_node->parent->parent;                                     
                                                                      
    /* if uncle is red, repaint uncle/parent black and grandparent red */
    if(_RBTree_Is_red(u)) {                                           
      the_node->parent->color = RBT_BLACK;                            
 80066b4:	58 20 00 0c 	sw (r1+12),r0                                  
      u->color = RBT_BLACK;                                           
 80066b8:	58 40 00 0c 	sw (r2+12),r0                                  
      g->color = RBT_RED;                                             
 80066bc:	59 8e 00 0c 	sw (r12+12),r14                                
 80066c0:	b9 80 58 00 	mv r11,r12                                     
 80066c4:	e0 00 00 10 	bi 8006704 <_RBTree_Insert_unprotected+0x174>  
      RBTree_Direction dir = the_node != the_node->parent->child[0];  
      RBTree_Direction pdir = the_node->parent != g->child[0];        
                                                                      
      /* ensure node is on the same branch direction as parent */     
      if (dir != pdir) {                                              
        _RBTree_Rotate(the_node->parent, pdir);                       
 80066c8:	b9 e0 10 00 	mv r2,r15                                      
 80066cc:	fb ff ff 84 	calli 80064dc <_RBTree_Rotate>                 
        the_node = the_node->child[pdir];                             
 80066d0:	b9 e0 08 00 	mv r1,r15                                      
 80066d4:	34 02 00 02 	mvi r2,2                                       
 80066d8:	fb ff e9 8b 	calli 8000d04 <__ashlsi3>                      
 80066dc:	b5 61 08 00 	add r1,r11,r1                                  
 80066e0:	28 2b 00 04 	lw r11,(r1+4)                                  
      }                                                               
      the_node->parent->color = RBT_BLACK;                            
 80066e4:	29 61 00 00 	lw r1,(r11+0)                                  
      g->color = RBT_RED;                                             
                                                                      
      /* now rotate grandparent in the other branch direction (toward uncle) */
      _RBTree_Rotate(g, (1-pdir));                                    
 80066e8:	c9 cf 10 00 	sub r2,r14,r15                                 
      /* ensure node is on the same branch direction as parent */     
      if (dir != pdir) {                                              
        _RBTree_Rotate(the_node->parent, pdir);                       
        the_node = the_node->child[pdir];                             
      }                                                               
      the_node->parent->color = RBT_BLACK;                            
 80066ec:	58 20 00 0c 	sw (r1+12),r0                                  
      g->color = RBT_RED;                                             
 80066f0:	59 8e 00 0c 	sw (r12+12),r14                                
                                                                      
      /* now rotate grandparent in the other branch direction (toward uncle) */
      _RBTree_Rotate(g, (1-pdir));                                    
 80066f4:	b9 80 08 00 	mv r1,r12                                      
 80066f8:	fb ff ff 79 	calli 80064dc <_RBTree_Rotate>                 
 80066fc:	e0 00 00 02 	bi 8006704 <_RBTree_Insert_unprotected+0x174>  
 8006700:	34 0e 00 01 	mvi r14,1                                      
                                                                      
  _ISR_Disable( level );                                              
  return_node = _RBTree_Insert_unprotected( tree, node );             
  _ISR_Enable( level );                                               
  return return_node;                                                 
}                                                                     
 8006704:	29 61 00 00 	lw r1,(r11+0)                                  
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Parent(                     
  const RBTree_Node *the_node                                         
)                                                                     
{                                                                     
  if (!the_node->parent->parent) return NULL;                         
 8006708:	28 2c 00 00 	lw r12,(r1+0)                                  
 800670c:	45 80 00 04 	be r12,r0,800671c <_RBTree_Insert_unprotected+0x18c>
 */                                                                   
RTEMS_INLINE_ROUTINE bool _RBTree_Is_red(                             
    const RBTree_Node *the_node                                       
    )                                                                 
{                                                                     
  return (the_node && the_node->color == RBT_RED);                    
 8006710:	28 22 00 0c 	lw r2,(r1+12)                                  
 8006714:	5c 4e 00 03 	bne r2,r14,8006720 <_RBTree_Insert_unprotected+0x190>
 8006718:	e3 ff ff df 	bi 8006694 <_RBTree_Insert_unprotected+0x104>  
                                                                      
      /* now rotate grandparent in the other branch direction (toward uncle) */
      _RBTree_Rotate(g, (1-pdir));                                    
    }                                                                 
  }                                                                   
  if(!the_node->parent->parent) the_node->color = RBT_BLACK;          
 800671c:	59 60 00 0c 	sw (r11+12),r0                                 
                                                                      
    /* verify red-black properties */                                 
    _RBTree_Validate_insert_unprotected(the_node);                    
  }                                                                   
  return (RBTree_Node*)0;                                             
}                                                                     
 8006720:	b9 a0 08 00 	mv r1,r13                                      
 8006724:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006728:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800672c:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8006730:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8006734:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8006738:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800673c:	37 9c 00 18 	addi sp,sp,24                                  
 8006740:	c3 a0 00 00 	ret                                            
      u->color = RBT_BLACK;                                           
      g->color = RBT_RED;                                             
      the_node = g;                                                   
    } else { /* if uncle is black */                                  
      RBTree_Direction dir = the_node != the_node->parent->child[0];  
      RBTree_Direction pdir = the_node->parent != g->child[0];        
 8006744:	29 8f 00 04 	lw r15,(r12+4)                                 
      the_node->parent->color = RBT_BLACK;                            
      u->color = RBT_BLACK;                                           
      g->color = RBT_RED;                                             
      the_node = g;                                                   
    } else { /* if uncle is black */                                  
      RBTree_Direction dir = the_node != the_node->parent->child[0];  
 8006748:	28 22 00 04 	lw r2,(r1+4)                                   
      RBTree_Direction pdir = the_node->parent != g->child[0];        
 800674c:	fc 2f 78 00 	cmpne r15,r1,r15                               
      the_node->parent->color = RBT_BLACK;                            
      u->color = RBT_BLACK;                                           
      g->color = RBT_RED;                                             
      the_node = g;                                                   
    } else { /* if uncle is black */                                  
      RBTree_Direction dir = the_node != the_node->parent->child[0];  
 8006750:	fd 62 10 00 	cmpne r2,r11,r2                                
      RBTree_Direction pdir = the_node->parent != g->child[0];        
                                                                      
      /* ensure node is on the same branch direction as parent */     
      if (dir != pdir) {                                              
 8006754:	5c 4f ff dd 	bne r2,r15,80066c8 <_RBTree_Insert_unprotected+0x138>
 8006758:	e3 ff ff e3 	bi 80066e4 <_RBTree_Insert_unprotected+0x154>  
                                                                      

08006790 <_RBTree_Iterate_unprotected>: const RBTree_Control *rbtree, RBTree_Direction dir, RBTree_Visitor visitor, void *visitor_arg ) {
 8006790:	37 9c ff e8 	addi sp,sp,-24                                 
 8006794:	5b 8b 00 18 	sw (sp+24),r11                                 
 8006798:	5b 8c 00 14 	sw (sp+20),r12                                 
 800679c:	5b 8d 00 10 	sw (sp+16),r13                                 
 80067a0:	5b 8e 00 0c 	sw (sp+12),r14                                 
 80067a4:	5b 8f 00 08 	sw (sp+8),r15                                  
 80067a8:	5b 9d 00 04 	sw (sp+4),ra                                   
 80067ac:	b8 40 60 00 	mv r12,r2                                      
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Direction _RBTree_Opposite_direction(     
  RBTree_Direction the_dir                                            
)                                                                     
{                                                                     
  return (RBTree_Direction) !((int) the_dir);                         
 80067b0:	64 42 00 00 	cmpei r2,r2,0                                  
 80067b4:	b8 20 58 00 	mv r11,r1                                      
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_First(                      
  const RBTree_Control *the_rbtree,                                   
  RBTree_Direction dir                                                
)                                                                     
{                                                                     
  return the_rbtree->first[dir];                                      
 80067b8:	34 41 00 02 	addi r1,r2,2                                   
 80067bc:	34 02 00 02 	mvi r2,2                                       
 80067c0:	b8 60 70 00 	mv r14,r3                                      
 80067c4:	b8 80 68 00 	mv r13,r4                                      
 80067c8:	fb ff e9 4f 	calli 8000d04 <__ashlsi3>                      
 80067cc:	b5 61 08 00 	add r1,r11,r1                                  
 80067d0:	28 2b 00 00 	lw r11,(r1+0)                                  
 80067d4:	e0 00 00 0b 	bi 8006800 <_RBTree_Iterate_unprotected+0x70>  
  RBTree_Direction opp_dir = _RBTree_Opposite_direction( dir );       
  const RBTree_Node *current = _RBTree_First( rbtree, opp_dir );      
  bool stop = false;                                                  
                                                                      
  while ( !stop && current != NULL ) {                                
    stop = (*visitor)( current, dir, visitor_arg );                   
 80067d8:	b9 60 08 00 	mv r1,r11                                      
 80067dc:	b9 80 10 00 	mv r2,r12                                      
 80067e0:	b9 a0 18 00 	mv r3,r13                                      
 80067e4:	d9 c0 00 00 	call r14                                       
 80067e8:	b8 20 78 00 	mv r15,r1                                      
                                                                      
    current = _RBTree_Next_unprotected( current, dir );               
 80067ec:	b9 80 10 00 	mv r2,r12                                      
 80067f0:	b9 60 08 00 	mv r1,r11                                      
 80067f4:	f8 00 00 0c 	calli 8006824 <_RBTree_Next_unprotected>       
 80067f8:	b8 20 58 00 	mv r11,r1                                      
{                                                                     
  RBTree_Direction opp_dir = _RBTree_Opposite_direction( dir );       
  const RBTree_Node *current = _RBTree_First( rbtree, opp_dir );      
  bool stop = false;                                                  
                                                                      
  while ( !stop && current != NULL ) {                                
 80067fc:	5d e0 00 02 	bne r15,r0,8006804 <_RBTree_Iterate_unprotected+0x74><== NEVER TAKEN
 8006800:	5d 60 ff f6 	bne r11,r0,80067d8 <_RBTree_Iterate_unprotected+0x48>
    stop = (*visitor)( current, dir, visitor_arg );                   
                                                                      
    current = _RBTree_Next_unprotected( current, dir );               
  }                                                                   
}                                                                     
 8006804:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006808:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800680c:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8006810:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8006814:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8006818:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800681c:	37 9c 00 18 	addi sp,sp,24                                  
 8006820:	c3 a0 00 00 	ret                                            
                                                                      

08006084 <_RBTree_Sibling>: * exists, and NULL if not. */ RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Sibling( const RBTree_Node *the_node ) {
 8006084:	b8 20 18 00 	mv r3,r1                                       
  if(!the_node) return NULL;                                          
 8006088:	34 01 00 00 	mvi r1,0                                       
 800608c:	44 60 00 08 	be r3,r0,80060ac <_RBTree_Sibling+0x28>        
  if(!(the_node->parent)) return NULL;                                
 8006090:	28 62 00 00 	lw r2,(r3+0)                                   
 8006094:	44 40 00 06 	be r2,r0,80060ac <_RBTree_Sibling+0x28>        <== NEVER TAKEN
  if(!(the_node->parent->parent)) return NULL;                        
 8006098:	28 44 00 00 	lw r4,(r2+0)                                   
 800609c:	44 80 00 04 	be r4,r0,80060ac <_RBTree_Sibling+0x28>        
                                                                      
  if(the_node == the_node->parent->child[RBT_LEFT])                   
 80060a0:	28 41 00 04 	lw r1,(r2+4)                                   
 80060a4:	5c 61 00 02 	bne r3,r1,80060ac <_RBTree_Sibling+0x28>       
    return the_node->parent->child[RBT_RIGHT];                        
 80060a8:	28 41 00 08 	lw r1,(r2+8)                                   
  else                                                                
    return the_node->parent->child[RBT_LEFT];                         
}                                                                     
 80060ac:	c3 a0 00 00 	ret                                            
                                                                      

08004afc <_RTEMS_signal_Post_switch_hook>: #include <rtems/score/thread.h> #include <rtems/score/apiext.h> #include <rtems/rtems/tasks.h> static void _RTEMS_signal_Post_switch_hook( Thread_Control *executing ) {
 8004afc:	37 9c ff f0 	addi sp,sp,-16                                 
 8004b00:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8004b04:	5b 8c 00 08 	sw (sp+8),r12                                  
 8004b08:	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 ];                
 8004b0c:	28 2b 01 14 	lw r11,(r1+276)                                
  if ( !api )                                                         
 8004b10:	45 60 00 1a 	be r11,r0,8004b78 <_RTEMS_signal_Post_switch_hook+0x7c><== NEVER TAKEN
   *  Signal Processing                                               
   */                                                                 
                                                                      
  asr = &api->Signal;                                                 
                                                                      
  _ISR_Disable( level );                                              
 8004b14:	90 00 08 00 	rcsr r1,IE                                     
 8004b18:	34 02 ff fe 	mvi r2,-2                                      
 8004b1c:	a0 22 10 00 	and r2,r1,r2                                   
 8004b20:	d0 02 00 00 	wcsr IE,r2                                     
    signal_set = asr->signals_posted;                                 
 8004b24:	29 6c 00 14 	lw r12,(r11+20)                                
    asr->signals_posted = 0;                                          
 8004b28:	59 60 00 14 	sw (r11+20),r0                                 
  _ISR_Enable( level );                                               
 8004b2c:	d0 01 00 00 	wcsr IE,r1                                     
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
 8004b30:	45 80 00 12 	be r12,r0,8004b78 <_RTEMS_signal_Post_switch_hook+0x7c>
    return;                                                           
                                                                      
  asr->nest_level += 1;                                               
 8004b34:	29 61 00 1c 	lw r1,(r11+28)                                 
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
 8004b38:	37 83 00 10 	addi r3,sp,16                                  
 8004b3c:	38 02 ff ff 	mvu r2,0xffff                                  
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
    return;                                                           
                                                                      
  asr->nest_level += 1;                                               
 8004b40:	34 21 00 01 	addi r1,r1,1                                   
 8004b44:	59 61 00 1c 	sw (r11+28),r1                                 
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
 8004b48:	29 61 00 10 	lw r1,(r11+16)                                 
 8004b4c:	f8 00 01 27 	calli 8004fe8 <rtems_task_mode>                
                                                                      
  (*asr->handler)( signal_set );                                      
 8004b50:	29 62 00 0c 	lw r2,(r11+12)                                 
 8004b54:	b9 80 08 00 	mv r1,r12                                      
 8004b58:	d8 40 00 00 	call r2                                        
                                                                      
  asr->nest_level -= 1;                                               
 8004b5c:	29 61 00 1c 	lw r1,(r11+28)                                 
  rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );     
 8004b60:	38 02 ff ff 	mvu r2,0xffff                                  
 8004b64:	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;                                               
 8004b68:	34 21 ff ff 	addi r1,r1,-1                                  
 8004b6c:	59 61 00 1c 	sw (r11+28),r1                                 
  rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );     
 8004b70:	2b 81 00 10 	lw r1,(sp+16)                                  
 8004b74:	f8 00 01 1d 	calli 8004fe8 <rtems_task_mode>                
                                                                      
}                                                                     
 8004b78:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004b7c:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8004b80:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8004b84:	37 9c 00 10 	addi sp,sp,16                                  
 8004b88:	c3 a0 00 00 	ret                                            
                                                                      

08033188 <_Rate_monotonic_Get_status>: bool _Rate_monotonic_Get_status( Rate_monotonic_Control *the_period, Rate_monotonic_Period_time_t *wall_since_last_period, Thread_CPU_usage_t *cpu_since_last_period ) {
 8033188:	37 9c ff e4 	addi sp,sp,-28                                 
 803318c:	5b 8b 00 14 	sw (sp+20),r11                                 
 8033190:	5b 8c 00 10 	sw (sp+16),r12                                 
 8033194:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8033198:	5b 8e 00 08 	sw (sp+8),r14                                  
 803319c:	5b 9d 00 04 	sw (sp+4),ra                                   
 80331a0:	b8 40 70 00 	mv r14,r2                                      
 */                                                                   
static inline void _TOD_Get_uptime(                                   
  Timestamp_Control *time                                             
)                                                                     
{                                                                     
  _TOD_Get_with_nanoseconds( time, &_TOD.uptime );                    
 80331a4:	78 02 08 06 	mvhi r2,0x806                                  
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    Timestamp_Control        uptime;                                  
  #endif                                                              
    Thread_Control          *owning_thread = the_period->owner;       
 80331a8:	28 2c 00 40 	lw r12,(r1+64)                                 
bool _Rate_monotonic_Get_status(                                      
  Rate_monotonic_Control        *the_period,                          
  Rate_monotonic_Period_time_t  *wall_since_last_period,              
  Thread_CPU_usage_t            *cpu_since_last_period                
)                                                                     
{                                                                     
 80331ac:	b8 20 58 00 	mv r11,r1                                      
 80331b0:	38 42 7f 48 	ori r2,r2,0x7f48                               
 80331b4:	37 81 00 18 	addi r1,sp,24                                  
 80331b8:	b8 60 68 00 	mv r13,r3                                      
 80331bc:	fb ff 43 83 	calli 8003fc8 <_TOD_Get_with_nanoseconds>      
  const Timestamp64_Control *_start,                                  
  const Timestamp64_Control *_end,                                    
  Timestamp64_Control       *_result                                  
)                                                                     
{                                                                     
  *_result = *_end - *_start;                                         
 80331c0:	29 61 00 54 	lw r1,(r11+84)                                 
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 80331c4:	2b 85 00 1c 	lw r5,(sp+28)                                  
 80331c8:	29 62 00 50 	lw r2,(r11+80)                                 
 80331cc:	2b 83 00 18 	lw r3,(sp+24)                                  
 80331d0:	c8 a1 08 00 	sub r1,r5,r1                                   
 80331d4:	f4 25 20 00 	cmpgu r4,r1,r5                                 
 80331d8:	c8 62 10 00 	sub r2,r3,r2                                   
 80331dc:	c8 44 10 00 	sub r2,r2,r4                                   
 80331e0:	59 c2 00 00 	sw (r14+0),r2                                  
   *  Determine cpu usage since period initiated.                     
   */                                                                 
  used = owning_thread->cpu_time_used;                                
                                                                      
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    if (owning_thread == _Thread_Executing) {                         
 80331e4:	78 02 08 06 	mvhi r2,0x806                                  
 80331e8:	38 42 81 40 	ori r2,r2,0x8140                               
 80331ec:	28 47 00 10 	lw r7,(r2+16)                                  
 80331f0:	59 c1 00 04 	sw (r14+4),r1                                  
  #endif                                                              
                                                                      
  /*                                                                  
   *  Determine cpu usage since period initiated.                     
   */                                                                 
  used = owning_thread->cpu_time_used;                                
 80331f4:	29 86 00 80 	lw r6,(r12+128)                                
 80331f8:	29 84 00 84 	lw r4,(r12+132)                                
      if (used < the_period->cpu_usage_period_initiated)              
        return false;                                                 
                                                                      
      *cpu_since_last_period = used - the_period->cpu_usage_period_initiated;
  #endif                                                              
  return true;                                                        
 80331fc:	34 01 00 01 	mvi r1,1                                       
   *  Determine cpu usage since period initiated.                     
   */                                                                 
  used = owning_thread->cpu_time_used;                                
                                                                      
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    if (owning_thread == _Thread_Executing) {                         
 8033200:	5d 87 00 19 	bne r12,r7,8033264 <_Rate_monotonic_Get_status+0xdc>
static inline void _Timestamp64_implementation_Add_to(                
  Timestamp64_Control       *_time,                                   
  const Timestamp64_Control *_add                                     
)                                                                     
{                                                                     
  *_time += *_add;                                                    
 8033204:	28 41 00 24 	lw r1,(r2+36)                                  
  const Timestamp64_Control *_start,                                  
  const Timestamp64_Control *_end,                                    
  Timestamp64_Control       *_result                                  
)                                                                     
{                                                                     
  *_result = *_end - *_start;                                         
 8033208:	b4 85 28 00 	add r5,r4,r5                                   
 803320c:	b4 c3 18 00 	add r3,r6,r3                                   
 8033210:	f4 85 20 00 	cmpgu r4,r4,r5                                 
static inline void _Timestamp64_implementation_Add_to(                
  Timestamp64_Control       *_time,                                   
  const Timestamp64_Control *_add                                     
)                                                                     
{                                                                     
  *_time += *_add;                                                    
 8033214:	28 46 00 20 	lw r6,(r2+32)                                  
 8033218:	c8 a1 08 00 	sub r1,r5,r1                                   
  const Timestamp64_Control *_start,                                  
  const Timestamp64_Control *_end,                                    
  Timestamp64_Control       *_result                                  
)                                                                     
{                                                                     
  *_result = *_end - *_start;                                         
 803321c:	b4 83 20 00 	add r4,r4,r3                                   
static inline void _Timestamp64_implementation_Add_to(                
  Timestamp64_Control       *_time,                                   
  const Timestamp64_Control *_add                                     
)                                                                     
{                                                                     
  *_time += *_add;                                                    
 8033220:	f4 25 28 00 	cmpgu r5,r1,r5                                 
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8033224:	29 62 00 48 	lw r2,(r11+72)                                 
 8033228:	c8 86 20 00 	sub r4,r4,r6                                   
 803322c:	c8 85 20 00 	sub r4,r4,r5                                   
 8033230:	29 63 00 4c 	lw r3,(r11+76)                                 
                                                                      
      /*                                                              
       *  The cpu usage info was reset while executing.  Can't        
       *  determine a status.                                         
       */                                                             
      if (_Timestamp_Less_than(&used, &the_period->cpu_usage_period_initiated))
 8033234:	48 44 00 0b 	bg r2,r4,8033260 <_Rate_monotonic_Get_status+0xd8><== NEVER TAKEN
 8033238:	5c 44 00 02 	bne r2,r4,8033240 <_Rate_monotonic_Get_status+0xb8>
 803323c:	54 61 00 09 	bgu r3,r1,8033260 <_Rate_monotonic_Get_status+0xd8>
  const Timestamp64_Control *_start,                                  
  const Timestamp64_Control *_end,                                    
  Timestamp64_Control       *_result                                  
)                                                                     
{                                                                     
  *_result = *_end - *_start;                                         
 8033240:	c8 23 18 00 	sub r3,r1,r3                                   
 8033244:	f4 61 08 00 	cmpgu r1,r3,r1                                 
 8033248:	c8 82 10 00 	sub r2,r4,r2                                   
 803324c:	c8 41 08 00 	sub r1,r2,r1                                   
 8033250:	59 a1 00 00 	sw (r13+0),r1                                  
 8033254:	59 a3 00 04 	sw (r13+4),r3                                  
      if (used < the_period->cpu_usage_period_initiated)              
        return false;                                                 
                                                                      
      *cpu_since_last_period = used - the_period->cpu_usage_period_initiated;
  #endif                                                              
  return true;                                                        
 8033258:	34 01 00 01 	mvi r1,1                                       
 803325c:	e0 00 00 02 	bi 8033264 <_Rate_monotonic_Get_status+0xdc>   
      /*                                                              
       *  The cpu usage info was reset while executing.  Can't        
       *  determine a status.                                         
       */                                                             
      if (_Timestamp_Less_than(&used, &the_period->cpu_usage_period_initiated))
        return false;                                                 
 8033260:	34 01 00 00 	mvi r1,0                                       
        return false;                                                 
                                                                      
      *cpu_since_last_period = used - the_period->cpu_usage_period_initiated;
  #endif                                                              
  return true;                                                        
}                                                                     
 8033264:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8033268:	2b 8b 00 14 	lw r11,(sp+20)                                 
 803326c:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8033270:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8033274:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8033278:	37 9c 00 1c 	addi sp,sp,28                                  
 803327c:	c3 a0 00 00 	ret                                            
                                                                      

08033650 <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) {
 8033650:	37 9c ff f4 	addi sp,sp,-12                                 
 8033654:	5b 8b 00 08 	sw (sp+8),r11                                  
 8033658:	5b 9d 00 04 	sw (sp+4),ra                                   
 803365c:	b8 20 10 00 	mv r2,r1                                       
 8033660:	78 01 08 06 	mvhi r1,0x806                                  
 8033664:	38 21 83 d0 	ori r1,r1,0x83d0                               
 8033668:	37 83 00 0c 	addi r3,sp,12                                  
 803366c:	fb ff 45 7a 	calli 8004c54 <_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 ) {                                               
 8033670:	2b 82 00 0c 	lw r2,(sp+12)                                  
 8033674:	b8 20 58 00 	mv r11,r1                                      
 8033678:	5c 40 00 22 	bne r2,r0,8033700 <_Rate_monotonic_Timeout+0xb0><== NEVER TAKEN
                                                                      
    case OBJECTS_LOCAL:                                               
      the_thread = the_period->owner;                                 
 803367c:	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);                   
 8033680:	28 23 00 10 	lw r3,(r1+16)                                  
 8033684:	20 63 40 00 	andi r3,r3,0x4000                              
      if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
 8033688:	44 62 00 09 	be r3,r2,80336ac <_Rate_monotonic_Timeout+0x5c>
 803368c:	28 23 00 20 	lw r3,(r1+32)                                  
 8033690:	29 62 00 08 	lw r2,(r11+8)                                  
 8033694:	5c 62 00 06 	bne r3,r2,80336ac <_Rate_monotonic_Timeout+0x5c>
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
 8033698:	78 03 08 05 	mvhi r3,0x805                                  
 803369c:	38 63 7f 7c 	ori r3,r3,0x7f7c                               
 80336a0:	28 62 00 00 	lw r2,(r3+0)                                   
 80336a4:	fb ff 63 a7 	calli 800c540 <_Thread_Clear_state>            
 80336a8:	e0 00 00 06 	bi 80336c0 <_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 ) {
 80336ac:	29 62 00 38 	lw r2,(r11+56)                                 
 80336b0:	34 01 00 01 	mvi r1,1                                       
 80336b4:	5c 41 00 0c 	bne r2,r1,80336e4 <_Rate_monotonic_Timeout+0x94>
        the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING;    
 80336b8:	34 01 00 03 	mvi r1,3                                       
 80336bc:	59 61 00 38 	sw (r11+56),r1                                 
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
 80336c0:	b9 60 08 00 	mv r1,r11                                      
 80336c4:	fb ff ff 39 	calli 80333a8 <_Rate_monotonic_Initiate_statistics>
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 80336c8:	29 61 00 3c 	lw r1,(r11+60)                                 
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 80336cc:	35 62 00 10 	addi r2,r11,16                                 
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 80336d0:	59 61 00 1c 	sw (r11+28),r1                                 
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 80336d4:	78 01 08 06 	mvhi r1,0x806                                  
 80336d8:	38 21 80 58 	ori r1,r1,0x8058                               
 80336dc:	fb ff 4c c8 	calli 80069fc <_Watchdog_Insert>               
 80336e0:	e0 00 00 03 	bi 80336ec <_Rate_monotonic_Timeout+0x9c>      
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
      } else                                                          
        the_period->state = RATE_MONOTONIC_EXPIRED;                   
 80336e4:	34 01 00 04 	mvi r1,4                                       
 80336e8:	59 61 00 38 	sw (r11+56),r1                                 
   *                                                                  
   * This routine decrements the thread dispatch level.               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_decrement_disable_level(void)
  {                                                                   
    uint32_t level = _Thread_Dispatch_disable_level;                  
 80336ec:	78 01 08 06 	mvhi r1,0x806                                  
 80336f0:	38 21 7f c0 	ori r1,r1,0x7fc0                               
 80336f4:	28 22 00 00 	lw r2,(r1+0)                                   
                                                                      
    --level;                                                          
 80336f8:	34 42 ff ff 	addi r2,r2,-1                                  
    _Thread_Dispatch_disable_level = level;                           
 80336fc:	58 22 00 00 	sw (r1+0),r2                                   
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
}                                                                     
 8033700:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8033704:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8033708:	37 9c 00 0c 	addi sp,sp,12                                  
 803370c:	c3 a0 00 00 	ret                                            
                                                                      

08033280 <_Rate_monotonic_Update_statistics>: } static void _Rate_monotonic_Update_statistics( Rate_monotonic_Control *the_period ) {
 8033280:	37 9c ff e8 	addi sp,sp,-24                                 
 8033284:	5b 8b 00 08 	sw (sp+8),r11                                  
 8033288:	5b 9d 00 04 	sw (sp+4),ra                                   
 803328c:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  /*                                                                  
   *  Update the counts.                                              
   */                                                                 
  stats = &the_period->Statistics;                                    
  stats->count++;                                                     
 8033290:	28 21 00 58 	lw r1,(r1+88)                                  
                                                                      
  if ( the_period->state == RATE_MONOTONIC_EXPIRED )                  
 8033294:	29 62 00 38 	lw r2,(r11+56)                                 
                                                                      
  /*                                                                  
   *  Update the counts.                                              
   */                                                                 
  stats = &the_period->Statistics;                                    
  stats->count++;                                                     
 8033298:	34 21 00 01 	addi r1,r1,1                                   
 803329c:	59 61 00 58 	sw (r11+88),r1                                 
                                                                      
  if ( the_period->state == RATE_MONOTONIC_EXPIRED )                  
 80332a0:	34 01 00 04 	mvi r1,4                                       
 80332a4:	5c 41 00 04 	bne r2,r1,80332b4 <_Rate_monotonic_Update_statistics+0x34>
    stats->missed_count++;                                            
 80332a8:	29 61 00 5c 	lw r1,(r11+92)                                 
 80332ac:	34 21 00 01 	addi r1,r1,1                                   
 80332b0:	59 61 00 5c 	sw (r11+92),r1                                 
                                                                      
  /*                                                                  
   *  Grab status for time statistics.                                
   */                                                                 
  valid_status =                                                      
 80332b4:	b9 60 08 00 	mv r1,r11                                      
 80332b8:	37 82 00 0c 	addi r2,sp,12                                  
 80332bc:	37 83 00 14 	addi r3,sp,20                                  
 80332c0:	fb ff ff b2 	calli 8033188 <_Rate_monotonic_Get_status>     
    _Rate_monotonic_Get_status( the_period, &since_last_period, &executed );
  if (!valid_status)                                                  
 80332c4:	44 20 00 35 	be r1,r0,8033398 <_Rate_monotonic_Update_statistics+0x118><== NEVER TAKEN
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 80332c8:	2b 82 00 18 	lw r2,(sp+24)                                  
static inline void _Timestamp64_implementation_Add_to(                
  Timestamp64_Control       *_time,                                   
  const Timestamp64_Control *_add                                     
)                                                                     
{                                                                     
  *_time += *_add;                                                    
 80332cc:	29 63 00 74 	lw r3,(r11+116)                                
 80332d0:	29 64 00 70 	lw r4,(r11+112)                                
 80332d4:	2b 81 00 14 	lw r1,(sp+20)                                  
 80332d8:	b4 43 18 00 	add r3,r2,r3                                   
 80332dc:	f4 43 28 00 	cmpgu r5,r2,r3                                 
 80332e0:	b4 24 20 00 	add r4,r1,r4                                   
 80332e4:	59 63 00 74 	sw (r11+116),r3                                
   *  Update CPU time                                                 
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Add_to( &stats->total_cpu_time, &executed );           
                                                                      
    if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) )    
 80332e8:	29 63 00 60 	lw r3,(r11+96)                                 
 80332ec:	b4 a4 20 00 	add r4,r5,r4                                   
 80332f0:	59 64 00 70 	sw (r11+112),r4                                
 80332f4:	48 61 00 05 	bg r3,r1,8033308 <_Rate_monotonic_Update_statistics+0x88>
 80332f8:	5c 61 00 06 	bne r3,r1,8033310 <_Rate_monotonic_Update_statistics+0x90><== NEVER TAKEN
 80332fc:	29 63 00 64 	lw r3,(r11+100)                                
 8033300:	54 62 00 02 	bgu r3,r2,8033308 <_Rate_monotonic_Update_statistics+0x88>
 8033304:	e0 00 00 03 	bi 8033310 <_Rate_monotonic_Update_statistics+0x90>
      stats->min_cpu_time = executed;                                 
 8033308:	59 61 00 60 	sw (r11+96),r1                                 
 803330c:	59 62 00 64 	sw (r11+100),r2                                
                                                                      
    if ( _Timestamp_Greater_than( &executed, &stats->max_cpu_time ) ) 
 8033310:	29 63 00 68 	lw r3,(r11+104)                                
 8033314:	48 23 00 05 	bg r1,r3,8033328 <_Rate_monotonic_Update_statistics+0xa8><== NEVER TAKEN
 8033318:	5c 61 00 06 	bne r3,r1,8033330 <_Rate_monotonic_Update_statistics+0xb0><== NEVER TAKEN
 803331c:	29 63 00 6c 	lw r3,(r11+108)                                
 8033320:	54 43 00 02 	bgu r2,r3,8033328 <_Rate_monotonic_Update_statistics+0xa8>
 8033324:	e0 00 00 03 	bi 8033330 <_Rate_monotonic_Update_statistics+0xb0>
      stats->max_cpu_time = executed;                                 
 8033328:	59 61 00 68 	sw (r11+104),r1                                
 803332c:	59 62 00 6c 	sw (r11+108),r2                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8033330:	2b 82 00 10 	lw r2,(sp+16)                                  
 8033334:	29 63 00 8c 	lw r3,(r11+140)                                
 8033338:	29 64 00 88 	lw r4,(r11+136)                                
 803333c:	2b 81 00 0c 	lw r1,(sp+12)                                  
 8033340:	b4 43 18 00 	add r3,r2,r3                                   
 8033344:	f4 43 28 00 	cmpgu r5,r2,r3                                 
 8033348:	b4 24 20 00 	add r4,r1,r4                                   
 803334c:	59 63 00 8c 	sw (r11+140),r3                                
   *  Update Wall time                                                
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Add_to( &stats->total_wall_time, &since_last_period ); 
                                                                      
    if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) )
 8033350:	29 63 00 78 	lw r3,(r11+120)                                
 8033354:	b4 a4 20 00 	add r4,r5,r4                                   
 8033358:	59 64 00 88 	sw (r11+136),r4                                
 803335c:	48 61 00 05 	bg r3,r1,8033370 <_Rate_monotonic_Update_statistics+0xf0>
 8033360:	5c 61 00 06 	bne r3,r1,8033378 <_Rate_monotonic_Update_statistics+0xf8><== NEVER TAKEN
 8033364:	29 63 00 7c 	lw r3,(r11+124)                                
 8033368:	54 62 00 02 	bgu r3,r2,8033370 <_Rate_monotonic_Update_statistics+0xf0>
 803336c:	e0 00 00 03 	bi 8033378 <_Rate_monotonic_Update_statistics+0xf8>
      stats->min_wall_time = since_last_period;                       
 8033370:	59 61 00 78 	sw (r11+120),r1                                
 8033374:	59 62 00 7c 	sw (r11+124),r2                                
                                                                      
    if ( _Timestamp_Greater_than( &since_last_period, &stats->max_wall_time ) )
 8033378:	29 63 00 80 	lw r3,(r11+128)                                
 803337c:	48 23 00 05 	bg r1,r3,8033390 <_Rate_monotonic_Update_statistics+0x110><== NEVER TAKEN
 8033380:	5c 61 00 06 	bne r3,r1,8033398 <_Rate_monotonic_Update_statistics+0x118><== NEVER TAKEN
 8033384:	29 63 00 84 	lw r3,(r11+132)                                
 8033388:	54 43 00 02 	bgu r2,r3,8033390 <_Rate_monotonic_Update_statistics+0x110>
 803338c:	e0 00 00 03 	bi 8033398 <_Rate_monotonic_Update_statistics+0x118>
      stats->max_wall_time = since_last_period;                       
 8033390:	59 61 00 80 	sw (r11+128),r1                                
 8033394:	59 62 00 84 	sw (r11+132),r2                                
      stats->min_wall_time = since_last_period;                       
                                                                      
    if ( since_last_period > stats->max_wall_time )                   
      stats->max_wall_time = since_last_period;                       
  #endif                                                              
}                                                                     
 8033398:	2b 9d 00 04 	lw ra,(sp+4)                                   
 803339c:	2b 8b 00 08 	lw r11,(sp+8)                                  
 80333a0:	37 9c 00 18 	addi sp,sp,24                                  
 80333a4:	c3 a0 00 00 	ret                                            
                                                                      

08006720 <_Scheduler_CBS_Allocate>: #include <rtems/score/wkspace.h> void *_Scheduler_CBS_Allocate( Thread_Control *the_thread ) {
 8006720:	37 9c ff f8 	addi sp,sp,-8                                  
 8006724:	5b 8b 00 08 	sw (sp+8),r11                                  
 8006728:	5b 9d 00 04 	sw (sp+4),ra                                   
 800672c:	b8 20 58 00 	mv r11,r1                                      
  void *sched;                                                        
  Scheduler_CBS_Per_thread *schinfo;                                  
                                                                      
  sched = _Workspace_Allocate(sizeof(Scheduler_CBS_Per_thread));      
 8006730:	34 01 00 1c 	mvi r1,28                                      
 8006734:	f8 00 07 ac 	calli 80085e4 <_Workspace_Allocate>            
  if ( sched ) {                                                      
 8006738:	44 20 00 06 	be r1,r0,8006750 <_Scheduler_CBS_Allocate+0x30><== NEVER TAKEN
    the_thread->scheduler_info = sched;                               
 800673c:	59 61 00 88 	sw (r11+136),r1                                
    schinfo = (Scheduler_CBS_Per_thread *)(the_thread->scheduler_info);
    schinfo->edf_per_thread.thread = the_thread;                      
    schinfo->edf_per_thread.queue_state = SCHEDULER_EDF_QUEUE_STATE_NEVER_HAS_BEEN;
 8006740:	34 02 00 02 	mvi r2,2                                       
                                                                      
  sched = _Workspace_Allocate(sizeof(Scheduler_CBS_Per_thread));      
  if ( sched ) {                                                      
    the_thread->scheduler_info = sched;                               
    schinfo = (Scheduler_CBS_Per_thread *)(the_thread->scheduler_info);
    schinfo->edf_per_thread.thread = the_thread;                      
 8006744:	58 2b 00 00 	sw (r1+0),r11                                  
    schinfo->edf_per_thread.queue_state = SCHEDULER_EDF_QUEUE_STATE_NEVER_HAS_BEEN;
 8006748:	58 22 00 14 	sw (r1+20),r2                                  
    schinfo->cbs_server = NULL;                                       
 800674c:	58 20 00 18 	sw (r1+24),r0                                  
  }                                                                   
                                                                      
  return sched;                                                       
}                                                                     
 8006750:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006754:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8006758:	37 9c 00 08 	addi sp,sp,8                                   
 800675c:	c3 a0 00 00 	ret                                            
                                                                      

08007e80 <_Scheduler_CBS_Budget_callout>: Scheduler_CBS_Server **_Scheduler_CBS_Server_list; void _Scheduler_CBS_Budget_callout( Thread_Control *the_thread ) {
 8007e80:	37 9c ff f4 	addi sp,sp,-12                                 
 8007e84:	5b 8b 00 08 	sw (sp+8),r11                                  
 8007e88:	5b 9d 00 04 	sw (sp+4),ra                                   
 8007e8c:	b8 20 58 00 	mv r11,r1                                      
  Priority_Control          new_priority;                             
  Scheduler_CBS_Per_thread *sched_info;                               
  Scheduler_CBS_Server_id   server_id;                                
                                                                      
  /* Put violating task to background until the end of period. */     
  new_priority = the_thread->Start.initial_priority;                  
 8007e90:	28 22 00 ac 	lw r2,(r1+172)                                 
  if ( the_thread->real_priority != new_priority )                    
 8007e94:	28 21 00 18 	lw r1,(r1+24)                                  
 8007e98:	44 22 00 02 	be r1,r2,8007ea0 <_Scheduler_CBS_Budget_callout+0x20><== NEVER TAKEN
    the_thread->real_priority = new_priority;                         
 8007e9c:	59 62 00 18 	sw (r11+24),r2                                 
  if ( the_thread->current_priority != new_priority )                 
 8007ea0:	29 61 00 14 	lw r1,(r11+20)                                 
 8007ea4:	44 22 00 04 	be r1,r2,8007eb4 <_Scheduler_CBS_Budget_callout+0x34><== NEVER TAKEN
    _Thread_Change_priority(the_thread, new_priority, true);          
 8007ea8:	b9 60 08 00 	mv r1,r11                                      
 8007eac:	34 03 00 01 	mvi r3,1                                       
 8007eb0:	f8 00 01 a7 	calli 800854c <_Thread_Change_priority>        
                                                                      
  /* Invoke callback function if any. */                              
  sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;
 8007eb4:	29 6b 00 88 	lw r11,(r11+136)                               
  if ( sched_info->cbs_server->cbs_budget_overrun ) {                 
 8007eb8:	29 61 00 18 	lw r1,(r11+24)                                 
 8007ebc:	28 22 00 0c 	lw r2,(r1+12)                                  
 8007ec0:	44 40 00 08 	be r2,r0,8007ee0 <_Scheduler_CBS_Budget_callout+0x60><== NEVER TAKEN
    _Scheduler_CBS_Get_server_id(                                     
 8007ec4:	28 21 00 00 	lw r1,(r1+0)                                   
 8007ec8:	37 82 00 0c 	addi r2,sp,12                                  
 8007ecc:	fb ff ff d9 	calli 8007e30 <_Scheduler_CBS_Get_server_id>   
        sched_info->cbs_server->task_id,                              
        &server_id                                                    
    );                                                                
    sched_info->cbs_server->cbs_budget_overrun( server_id );          
 8007ed0:	29 61 00 18 	lw r1,(r11+24)                                 
 8007ed4:	28 22 00 0c 	lw r2,(r1+12)                                  
 8007ed8:	2b 81 00 0c 	lw r1,(sp+12)                                  
 8007edc:	d8 40 00 00 	call r2                                        
  }                                                                   
}                                                                     
 8007ee0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8007ee4:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8007ee8:	37 9c 00 0c 	addi sp,sp,12                                  
 8007eec:	c3 a0 00 00 	ret                                            
                                                                      

08007950 <_Scheduler_CBS_Create_server>: int _Scheduler_CBS_Create_server ( Scheduler_CBS_Parameters *params, Scheduler_CBS_Budget_overrun budget_overrun_callback, rtems_id *server_id ) {
 8007950:	37 9c ff e8 	addi sp,sp,-24                                 
 8007954:	5b 8b 00 18 	sw (sp+24),r11                                 
 8007958:	5b 8c 00 14 	sw (sp+20),r12                                 
 800795c:	5b 8d 00 10 	sw (sp+16),r13                                 
 8007960:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8007964:	5b 8f 00 08 	sw (sp+8),r15                                  
 8007968:	5b 9d 00 04 	sw (sp+4),ra                                   
 800796c:	b8 20 58 00 	mv r11,r1                                      
  unsigned int i;                                                     
  Scheduler_CBS_Server *the_server;                                   
                                                                      
  if ( params->budget <= 0 ||                                         
 8007970:	28 21 00 04 	lw r1,(r1+4)                                   
int _Scheduler_CBS_Create_server (                                    
  Scheduler_CBS_Parameters     *params,                               
  Scheduler_CBS_Budget_overrun  budget_overrun_callback,              
  rtems_id                     *server_id                             
)                                                                     
{                                                                     
 8007974:	b8 40 70 00 	mv r14,r2                                      
 8007978:	b8 60 68 00 	mv r13,r3                                      
                                                                      
  if ( params->budget <= 0 ||                                         
       params->deadline <= 0 ||                                       
       params->budget >= SCHEDULER_EDF_PRIO_MSB ||                    
       params->deadline >= SCHEDULER_EDF_PRIO_MSB )                   
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
 800797c:	34 04 ff ee 	mvi r4,-18                                     
)                                                                     
{                                                                     
  unsigned int i;                                                     
  Scheduler_CBS_Server *the_server;                                   
                                                                      
  if ( params->budget <= 0 ||                                         
 8007980:	4c 01 00 2c 	bge r0,r1,8007a30 <_Scheduler_CBS_Create_server+0xe0>
 8007984:	29 61 00 00 	lw r1,(r11+0)                                  
 8007988:	4c 01 00 2a 	bge r0,r1,8007a30 <_Scheduler_CBS_Create_server+0xe0>
       params->deadline <= 0 ||                                       
       params->budget >= SCHEDULER_EDF_PRIO_MSB ||                    
       params->deadline >= SCHEDULER_EDF_PRIO_MSB )                   
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
                                                                      
  for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {              
 800798c:	78 01 08 02 	mvhi r1,0x802                                  
 8007990:	38 21 10 18 	ori r1,r1,0x1018                               
 8007994:	28 23 00 00 	lw r3,(r1+0)                                   
 8007998:	78 01 08 02 	mvhi r1,0x802                                  
 800799c:	38 21 1b 28 	ori r1,r1,0x1b28                               
 80079a0:	28 24 00 00 	lw r4,(r1+0)                                   
    if ( !_Scheduler_CBS_Server_list[i] )                             
 80079a4:	34 01 00 00 	mvi r1,0                                       
 80079a8:	e0 00 00 05 	bi 80079bc <_Scheduler_CBS_Create_server+0x6c> 
 80079ac:	28 82 00 00 	lw r2,(r4+0)                                   
 80079b0:	34 84 00 04 	addi r4,r4,4                                   
 80079b4:	44 40 00 03 	be r2,r0,80079c0 <_Scheduler_CBS_Create_server+0x70>
       params->deadline <= 0 ||                                       
       params->budget >= SCHEDULER_EDF_PRIO_MSB ||                    
       params->deadline >= SCHEDULER_EDF_PRIO_MSB )                   
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
                                                                      
  for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {              
 80079b8:	34 21 00 01 	addi r1,r1,1                                   
 80079bc:	54 61 ff fc 	bgu r3,r1,80079ac <_Scheduler_CBS_Create_server+0x5c>
    if ( !_Scheduler_CBS_Server_list[i] )                             
      break;                                                          
  }                                                                   
                                                                      
  if ( i == _Scheduler_CBS_Maximum_servers )                          
    return SCHEDULER_CBS_ERROR_FULL;                                  
 80079c0:	34 04 ff e6 	mvi r4,-26                                     
  for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {              
    if ( !_Scheduler_CBS_Server_list[i] )                             
      break;                                                          
  }                                                                   
                                                                      
  if ( i == _Scheduler_CBS_Maximum_servers )                          
 80079c4:	44 23 00 1b 	be r1,r3,8007a30 <_Scheduler_CBS_Create_server+0xe0>
    return SCHEDULER_CBS_ERROR_FULL;                                  
                                                                      
  *server_id = i;                                                     
  _Scheduler_CBS_Server_list[*server_id] = (Scheduler_CBS_Server *)   
 80079c8:	78 0c 08 02 	mvhi r12,0x802                                 
 80079cc:	34 02 00 02 	mvi r2,2                                       
 80079d0:	39 8c 1b 28 	ori r12,r12,0x1b28                             
  }                                                                   
                                                                      
  if ( i == _Scheduler_CBS_Maximum_servers )                          
    return SCHEDULER_CBS_ERROR_FULL;                                  
                                                                      
  *server_id = i;                                                     
 80079d4:	59 a1 00 00 	sw (r13+0),r1                                  
  _Scheduler_CBS_Server_list[*server_id] = (Scheduler_CBS_Server *)   
 80079d8:	fb ff e7 71 	calli 800179c <__ashlsi3>                      
 80079dc:	29 8f 00 00 	lw r15,(r12+0)                                 
 80079e0:	b5 e1 78 00 	add r15,r15,r1                                 
    _Workspace_Allocate( sizeof(Scheduler_CBS_Server) );              
 80079e4:	34 01 00 10 	mvi r1,16                                      
 80079e8:	f8 00 09 01 	calli 8009dec <_Workspace_Allocate>            
                                                                      
  if ( i == _Scheduler_CBS_Maximum_servers )                          
    return SCHEDULER_CBS_ERROR_FULL;                                  
                                                                      
  *server_id = i;                                                     
  _Scheduler_CBS_Server_list[*server_id] = (Scheduler_CBS_Server *)   
 80079ec:	59 e1 00 00 	sw (r15+0),r1                                  
    _Workspace_Allocate( sizeof(Scheduler_CBS_Server) );              
  the_server = _Scheduler_CBS_Server_list[*server_id];                
 80079f0:	29 a1 00 00 	lw r1,(r13+0)                                  
 80079f4:	29 8c 00 00 	lw r12,(r12+0)                                 
 80079f8:	34 02 00 02 	mvi r2,2                                       
 80079fc:	fb ff e7 68 	calli 800179c <__ashlsi3>                      
 8007a00:	b5 81 08 00 	add r1,r12,r1                                  
 8007a04:	28 21 00 00 	lw r1,(r1+0)                                   
  if ( !the_server )                                                  
    return SCHEDULER_CBS_ERROR_NO_MEMORY;                             
 8007a08:	34 04 ff ef 	mvi r4,-17                                     
                                                                      
  *server_id = i;                                                     
  _Scheduler_CBS_Server_list[*server_id] = (Scheduler_CBS_Server *)   
    _Workspace_Allocate( sizeof(Scheduler_CBS_Server) );              
  the_server = _Scheduler_CBS_Server_list[*server_id];                
  if ( !the_server )                                                  
 8007a0c:	44 20 00 09 	be r1,r0,8007a30 <_Scheduler_CBS_Create_server+0xe0><== NEVER TAKEN
    return SCHEDULER_CBS_ERROR_NO_MEMORY;                             
                                                                      
  the_server->parameters = *params;                                   
 8007a10:	29 62 00 00 	lw r2,(r11+0)                                  
  the_server->task_id = -1;                                           
  the_server->cbs_budget_overrun = budget_overrun_callback;           
  return SCHEDULER_CBS_OK;                                            
 8007a14:	34 04 00 00 	mvi r4,0                                       
    _Workspace_Allocate( sizeof(Scheduler_CBS_Server) );              
  the_server = _Scheduler_CBS_Server_list[*server_id];                
  if ( !the_server )                                                  
    return SCHEDULER_CBS_ERROR_NO_MEMORY;                             
                                                                      
  the_server->parameters = *params;                                   
 8007a18:	58 22 00 04 	sw (r1+4),r2                                   
 8007a1c:	29 62 00 04 	lw r2,(r11+4)                                  
  the_server->task_id = -1;                                           
  the_server->cbs_budget_overrun = budget_overrun_callback;           
 8007a20:	58 2e 00 0c 	sw (r1+12),r14                                 
    _Workspace_Allocate( sizeof(Scheduler_CBS_Server) );              
  the_server = _Scheduler_CBS_Server_list[*server_id];                
  if ( !the_server )                                                  
    return SCHEDULER_CBS_ERROR_NO_MEMORY;                             
                                                                      
  the_server->parameters = *params;                                   
 8007a24:	58 22 00 08 	sw (r1+8),r2                                   
  the_server->task_id = -1;                                           
 8007a28:	34 02 ff ff 	mvi r2,-1                                      
 8007a2c:	58 22 00 00 	sw (r1+0),r2                                   
  the_server->cbs_budget_overrun = budget_overrun_callback;           
  return SCHEDULER_CBS_OK;                                            
}                                                                     
 8007a30:	b8 80 08 00 	mv r1,r4                                       
 8007a34:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8007a38:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8007a3c:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8007a40:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8007a44:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8007a48:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8007a4c:	37 9c 00 18 	addi sp,sp,24                                  
 8007a50:	c3 a0 00 00 	ret                                            
                                                                      

08007b04 <_Scheduler_CBS_Detach_thread>: int _Scheduler_CBS_Detach_thread ( Scheduler_CBS_Server_id server_id, rtems_id task_id ) {
 8007b04:	37 9c ff e8 	addi sp,sp,-24                                 
 8007b08:	5b 8b 00 14 	sw (sp+20),r11                                 
 8007b0c:	5b 8c 00 10 	sw (sp+16),r12                                 
 8007b10:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8007b14:	5b 8e 00 08 	sw (sp+8),r14                                  
 8007b18:	5b 9d 00 04 	sw (sp+4),ra                                   
 8007b1c:	b8 20 68 00 	mv r13,r1                                      
 8007b20:	b8 40 60 00 	mv r12,r2                                      
  Objects_Locations location;                                         
  Thread_Control *the_thread;                                         
  Scheduler_CBS_Per_thread *sched_info;                               
                                                                      
  the_thread = _Thread_Get(task_id, &location);                       
 8007b24:	b8 40 08 00 	mv r1,r2                                       
 8007b28:	37 82 00 18 	addi r2,sp,24                                  
 8007b2c:	f8 00 03 f7 	calli 8008b08 <_Thread_Get>                    
 8007b30:	b8 20 58 00 	mv r11,r1                                      
  /* The routine _Thread_Get may disable dispatch and not enable again. */
  if ( the_thread ) {                                                 
 8007b34:	44 20 00 02 	be r1,r0,8007b3c <_Scheduler_CBS_Detach_thread+0x38>
    _Thread_Enable_dispatch();                                        
 8007b38:	f8 00 03 e8 	calli 8008ad8 <_Thread_Enable_dispatch>        
  }                                                                   
                                                                      
  if ( server_id >= _Scheduler_CBS_Maximum_servers )                  
 8007b3c:	78 03 08 02 	mvhi r3,0x802                                  
 8007b40:	38 63 10 18 	ori r3,r3,0x1018                               
 8007b44:	28 61 00 00 	lw r1,(r3+0)                                   
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
 8007b48:	34 03 ff ee 	mvi r3,-18                                     
  /* The routine _Thread_Get may disable dispatch and not enable again. */
  if ( the_thread ) {                                                 
    _Thread_Enable_dispatch();                                        
  }                                                                   
                                                                      
  if ( server_id >= _Scheduler_CBS_Maximum_servers )                  
 8007b4c:	51 a1 00 1a 	bgeu r13,r1,8007bb4 <_Scheduler_CBS_Detach_thread+0xb0>
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
  if ( !the_thread )                                                  
 8007b50:	45 60 00 19 	be r11,r0,8007bb4 <_Scheduler_CBS_Detach_thread+0xb0>
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
  /* Server is not valid. */                                          
  if ( !_Scheduler_CBS_Server_list[server_id] )                       
 8007b54:	78 03 08 02 	mvhi r3,0x802                                  
 8007b58:	38 63 1b 28 	ori r3,r3,0x1b28                               
 8007b5c:	28 6e 00 00 	lw r14,(r3+0)                                  
 8007b60:	b9 a0 08 00 	mv r1,r13                                      
 8007b64:	34 02 00 02 	mvi r2,2                                       
 8007b68:	fb ff e7 0d 	calli 800179c <__ashlsi3>                      
 8007b6c:	b5 c1 08 00 	add r1,r14,r1                                  
 8007b70:	28 24 00 00 	lw r4,(r1+0)                                   
    return SCHEDULER_CBS_ERROR_NOSERVER;                              
 8007b74:	34 03 ff e7 	mvi r3,-25                                     
  if ( server_id >= _Scheduler_CBS_Maximum_servers )                  
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
  if ( !the_thread )                                                  
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
  /* Server is not valid. */                                          
  if ( !_Scheduler_CBS_Server_list[server_id] )                       
 8007b78:	44 80 00 0f 	be r4,r0,8007bb4 <_Scheduler_CBS_Detach_thread+0xb0>
    return SCHEDULER_CBS_ERROR_NOSERVER;                              
  /* Thread and server are not attached. */                           
  if ( _Scheduler_CBS_Server_list[server_id]->task_id != task_id )    
 8007b7c:	28 81 00 00 	lw r1,(r4+0)                                   
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
 8007b80:	34 03 ff ee 	mvi r3,-18                                     
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
  /* Server is not valid. */                                          
  if ( !_Scheduler_CBS_Server_list[server_id] )                       
    return SCHEDULER_CBS_ERROR_NOSERVER;                              
  /* Thread and server are not attached. */                           
  if ( _Scheduler_CBS_Server_list[server_id]->task_id != task_id )    
 8007b84:	5c 2c 00 0c 	bne r1,r12,8007bb4 <_Scheduler_CBS_Detach_thread+0xb0><== NEVER TAKEN
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
                                                                      
  _Scheduler_CBS_Server_list[server_id]->task_id = -1;                
 8007b88:	34 01 ff ff 	mvi r1,-1                                      
 8007b8c:	58 81 00 00 	sw (r4+0),r1                                   
  sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;
  sched_info->cbs_server = NULL;                                      
 8007b90:	29 61 00 88 	lw r1,(r11+136)                                
                                                                      
  the_thread->budget_algorithm = the_thread->Start.budget_algorithm;  
  the_thread->budget_callout   = the_thread->Start.budget_callout;    
  the_thread->is_preemptible   = the_thread->Start.is_preemptible;    
                                                                      
  return SCHEDULER_CBS_OK;                                            
 8007b94:	34 03 00 00 	mvi r3,0                                       
  if ( _Scheduler_CBS_Server_list[server_id]->task_id != task_id )    
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
                                                                      
  _Scheduler_CBS_Server_list[server_id]->task_id = -1;                
  sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;
  sched_info->cbs_server = NULL;                                      
 8007b98:	58 20 00 18 	sw (r1+24),r0                                  
                                                                      
  the_thread->budget_algorithm = the_thread->Start.budget_algorithm;  
 8007b9c:	29 61 00 a0 	lw r1,(r11+160)                                
 8007ba0:	59 61 00 78 	sw (r11+120),r1                                
  the_thread->budget_callout   = the_thread->Start.budget_callout;    
 8007ba4:	29 61 00 a4 	lw r1,(r11+164)                                
 8007ba8:	59 61 00 7c 	sw (r11+124),r1                                
  the_thread->is_preemptible   = the_thread->Start.is_preemptible;    
 8007bac:	41 61 00 9c 	lbu r1,(r11+156)                               
 8007bb0:	31 61 00 70 	sb (r11+112),r1                                
                                                                      
  return SCHEDULER_CBS_OK;                                            
}                                                                     
 8007bb4:	b8 60 08 00 	mv r1,r3                                       
 8007bb8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8007bbc:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8007bc0:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8007bc4:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8007bc8:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8007bcc:	37 9c 00 18 	addi sp,sp,24                                  
 8007bd0:	c3 a0 00 00 	ret                                            
                                                                      

08007ef0 <_Scheduler_CBS_Initialize>: int _Scheduler_CBS_Initialize(void) {
 8007ef0:	37 9c ff f8 	addi sp,sp,-8                                  
 8007ef4:	5b 8b 00 08 	sw (sp+8),r11                                  
 8007ef8:	5b 9d 00 04 	sw (sp+4),ra                                   
  unsigned int i;                                                     
  _Scheduler_CBS_Server_list = (Scheduler_CBS_Server **) _Workspace_Allocate(
      _Scheduler_CBS_Maximum_servers * sizeof(Scheduler_CBS_Server*) );
 8007efc:	78 0b 08 02 	mvhi r11,0x802                                 
 8007f00:	39 6b 10 18 	ori r11,r11,0x1018                             
 8007f04:	29 61 00 00 	lw r1,(r11+0)                                  
 8007f08:	34 02 00 02 	mvi r2,2                                       
 8007f0c:	fb ff e6 24 	calli 800179c <__ashlsi3>                      
}                                                                     
                                                                      
int _Scheduler_CBS_Initialize(void)                                   
{                                                                     
  unsigned int i;                                                     
  _Scheduler_CBS_Server_list = (Scheduler_CBS_Server **) _Workspace_Allocate(
 8007f10:	f8 00 07 b7 	calli 8009dec <_Workspace_Allocate>            
 8007f14:	78 02 08 02 	mvhi r2,0x802                                  
 8007f18:	38 42 1b 28 	ori r2,r2,0x1b28                               
 8007f1c:	58 41 00 00 	sw (r2+0),r1                                   
      _Scheduler_CBS_Maximum_servers * sizeof(Scheduler_CBS_Server*) );
  if ( !_Scheduler_CBS_Server_list )                                  
    return SCHEDULER_CBS_ERROR_NO_MEMORY;                             
 8007f20:	34 02 ff ef 	mvi r2,-17                                     
int _Scheduler_CBS_Initialize(void)                                   
{                                                                     
  unsigned int i;                                                     
  _Scheduler_CBS_Server_list = (Scheduler_CBS_Server **) _Workspace_Allocate(
      _Scheduler_CBS_Maximum_servers * sizeof(Scheduler_CBS_Server*) );
  if ( !_Scheduler_CBS_Server_list )                                  
 8007f24:	44 20 00 09 	be r1,r0,8007f48 <_Scheduler_CBS_Initialize+0x58><== NEVER TAKEN
    return SCHEDULER_CBS_ERROR_NO_MEMORY;                             
  for (i = 0; i<_Scheduler_CBS_Maximum_servers; i++) {                
 8007f28:	29 63 00 00 	lw r3,(r11+0)                                  
 8007f2c:	34 02 00 00 	mvi r2,0                                       
 8007f30:	e0 00 00 04 	bi 8007f40 <_Scheduler_CBS_Initialize+0x50>    
    _Scheduler_CBS_Server_list[i] = NULL;                             
 8007f34:	58 20 00 00 	sw (r1+0),r0                                   
  unsigned int i;                                                     
  _Scheduler_CBS_Server_list = (Scheduler_CBS_Server **) _Workspace_Allocate(
      _Scheduler_CBS_Maximum_servers * sizeof(Scheduler_CBS_Server*) );
  if ( !_Scheduler_CBS_Server_list )                                  
    return SCHEDULER_CBS_ERROR_NO_MEMORY;                             
  for (i = 0; i<_Scheduler_CBS_Maximum_servers; i++) {                
 8007f38:	34 42 00 01 	addi r2,r2,1                                   
 8007f3c:	34 21 00 04 	addi r1,r1,4                                   
 8007f40:	54 62 ff fd 	bgu r3,r2,8007f34 <_Scheduler_CBS_Initialize+0x44>
    _Scheduler_CBS_Server_list[i] = NULL;                             
  }                                                                   
  return SCHEDULER_CBS_OK;                                            
 8007f44:	34 02 00 00 	mvi r2,0                                       
}                                                                     
 8007f48:	b8 40 08 00 	mv r1,r2                                       
 8007f4c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8007f50:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8007f54:	37 9c 00 08 	addi sp,sp,8                                   
 8007f58:	c3 a0 00 00 	ret                                            
                                                                      

08006760 <_Scheduler_CBS_Release_job>: void _Scheduler_CBS_Release_job( Thread_Control *the_thread, uint32_t deadline ) {
 8006760:	37 9c ff fc 	addi sp,sp,-4                                  
 8006764:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006768:	b8 40 20 00 	mv r4,r2                                       
  Priority_Control new_priority;                                      
  Scheduler_CBS_Per_thread *sched_info =                              
    (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;          
  Scheduler_CBS_Server *serv_info =                                   
    (Scheduler_CBS_Server *) sched_info->cbs_server;                  
 800676c:	28 22 00 88 	lw r2,(r1+136)                                 
)                                                                     
{                                                                     
  Priority_Control new_priority;                                      
  Scheduler_CBS_Per_thread *sched_info =                              
    (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;          
  Scheduler_CBS_Server *serv_info =                                   
 8006770:	28 43 00 18 	lw r3,(r2+24)                                  
    (Scheduler_CBS_Server *) sched_info->cbs_server;                  
                                                                      
  if (deadline) {                                                     
 8006774:	44 80 00 13 	be r4,r0,80067c0 <_Scheduler_CBS_Release_job+0x60>
 8006778:	78 02 08 01 	mvhi r2,0x801                                  
 800677c:	38 42 fa 30 	ori r2,r2,0xfa30                               
    /* Initializing or shifting deadline. */                          
    if (serv_info)                                                    
 8006780:	44 60 00 09 	be r3,r0,80067a4 <_Scheduler_CBS_Release_job+0x44>
      new_priority = (_Watchdog_Ticks_since_boot + serv_info->parameters.deadline)
 8006784:	28 64 00 04 	lw r4,(r3+4)                                   
 8006788:	28 42 00 00 	lw r2,(r2+0)                                   
 800678c:	78 05 08 01 	mvhi r5,0x801                                  
 8006790:	38 a5 d9 a0 	ori r5,r5,0xd9a0                               
 8006794:	b4 44 10 00 	add r2,r2,r4                                   
 8006798:	28 a4 00 00 	lw r4,(r5+0)                                   
 800679c:	a0 44 10 00 	and r2,r2,r4                                   
 80067a0:	e0 00 00 0a 	bi 80067c8 <_Scheduler_CBS_Release_job+0x68>   
        & ~SCHEDULER_EDF_PRIO_MSB;                                    
    else                                                              
      new_priority = (_Watchdog_Ticks_since_boot + deadline)          
 80067a4:	28 42 00 00 	lw r2,(r2+0)                                   
 80067a8:	b4 82 10 00 	add r2,r4,r2                                   
 80067ac:	78 04 08 01 	mvhi r4,0x801                                  
 80067b0:	38 84 d9 a0 	ori r4,r4,0xd9a0                               
 80067b4:	28 83 00 00 	lw r3,(r4+0)                                   
 80067b8:	a0 43 10 00 	and r2,r2,r3                                   
 80067bc:	e0 00 00 05 	bi 80067d0 <_Scheduler_CBS_Release_job+0x70>   
        & ~SCHEDULER_EDF_PRIO_MSB;                                    
  }                                                                   
  else {                                                              
    /* Switch back to background priority. */                         
    new_priority = the_thread->Start.initial_priority;                
 80067c0:	28 22 00 ac 	lw r2,(r1+172)                                 
  }                                                                   
                                                                      
  /* Budget replenishment for the next job. */                        
  if (serv_info)                                                      
 80067c4:	44 64 00 03 	be r3,r4,80067d0 <_Scheduler_CBS_Release_job+0x70><== NEVER TAKEN
    the_thread->cpu_time_budget = serv_info->parameters.budget;       
 80067c8:	28 63 00 08 	lw r3,(r3+8)                                   
 80067cc:	58 23 00 74 	sw (r1+116),r3                                 
                                                                      
  the_thread->real_priority = new_priority;                           
 80067d0:	58 22 00 18 	sw (r1+24),r2                                  
  _Thread_Change_priority(the_thread, new_priority, true);            
 80067d4:	34 03 00 01 	mvi r3,1                                       
 80067d8:	f8 00 01 3b 	calli 8006cc4 <_Thread_Change_priority>        
}                                                                     
 80067dc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80067e0:	37 9c 00 04 	addi sp,sp,4                                   
 80067e4:	c3 a0 00 00 	ret                                            
                                                                      

080067e8 <_Scheduler_CBS_Unblock>: #include <rtems/score/schedulercbs.h> void _Scheduler_CBS_Unblock( Thread_Control *the_thread ) {
 80067e8:	37 9c ff ec 	addi sp,sp,-20                                 
 80067ec:	5b 8b 00 14 	sw (sp+20),r11                                 
 80067f0:	5b 8c 00 10 	sw (sp+16),r12                                 
 80067f4:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80067f8:	5b 8e 00 08 	sw (sp+8),r14                                  
 80067fc:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006800:	b8 20 58 00 	mv r11,r1                                      
  Scheduler_CBS_Per_thread *sched_info;                               
  Scheduler_CBS_Server *serv_info;                                    
  Priority_Control new_priority;                                      
                                                                      
  _Scheduler_EDF_Enqueue(the_thread);                                 
 8006804:	f8 00 00 4d 	calli 8006938 <_Scheduler_EDF_Enqueue>         
  /* TODO: flash critical section? */                                 
                                                                      
  sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;
  serv_info = (Scheduler_CBS_Server *) sched_info->cbs_server;        
 8006808:	29 61 00 88 	lw r1,(r11+136)                                
 800680c:	28 2c 00 18 	lw r12,(r1+24)                                 
   * Late unblock rule for deadline-driven tasks. The remaining time to
   * deadline must be sufficient to serve the remaining computation time
   * without increased utilization of this task. It might cause a deadline
   * miss of another task.                                            
   */                                                                 
  if (serv_info) {                                                    
 8006810:	45 80 00 15 	be r12,r0,8006864 <_Scheduler_CBS_Unblock+0x7c>
    time_t deadline = serv_info->parameters.deadline;                 
    time_t budget = serv_info->parameters.budget;                     
    time_t deadline_left = the_thread->cpu_time_budget;               
    time_t budget_left = the_thread->real_priority -                  
 8006814:	78 01 08 01 	mvhi r1,0x801                                  
 8006818:	38 21 fa 30 	ori r1,r1,0xfa30                               
 800681c:	28 21 00 00 	lw r1,(r1+0)                                   
 8006820:	29 6d 00 18 	lw r13,(r11+24)                                
                           _Watchdog_Ticks_since_boot;                
                                                                      
    if ( deadline*budget_left > budget*deadline_left ) {              
 8006824:	29 82 00 04 	lw r2,(r12+4)                                  
 8006828:	c9 a1 08 00 	sub r1,r13,r1                                  
 800682c:	fb ff e8 e9 	calli 8000bd0 <__mulsi3>                       
 8006830:	b8 20 70 00 	mv r14,r1                                      
 8006834:	29 82 00 08 	lw r2,(r12+8)                                  
 8006838:	29 61 00 74 	lw r1,(r11+116)                                
 800683c:	fb ff e8 e5 	calli 8000bd0 <__mulsi3>                       
 8006840:	4c 2e 00 09 	bge r1,r14,8006864 <_Scheduler_CBS_Unblock+0x7c>
      /* Put late unblocked task to background until the end of period. */
      new_priority = the_thread->Start.initial_priority;              
 8006844:	29 62 00 ac 	lw r2,(r11+172)                                
      if ( the_thread->real_priority != new_priority )                
 8006848:	45 a2 00 02 	be r13,r2,8006850 <_Scheduler_CBS_Unblock+0x68>
        the_thread->real_priority = new_priority;                     
 800684c:	59 62 00 18 	sw (r11+24),r2                                 
      if ( the_thread->current_priority != new_priority )             
 8006850:	29 61 00 14 	lw r1,(r11+20)                                 
 8006854:	44 22 00 04 	be r1,r2,8006864 <_Scheduler_CBS_Unblock+0x7c> 
        _Thread_Change_priority(the_thread, new_priority, true);      
 8006858:	b9 60 08 00 	mv r1,r11                                      
 800685c:	34 03 00 01 	mvi r3,1                                       
 8006860:	f8 00 01 19 	calli 8006cc4 <_Thread_Change_priority>        
   *    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 ( _Scheduler_Is_priority_higher_than( the_thread->current_priority,
 8006864:	78 0c 08 01 	mvhi r12,0x801                                 
 8006868:	39 8c fa c0 	ori r12,r12,0xfac0                             
 800686c:	29 82 00 14 	lw r2,(r12+20)                                 
 8006870:	78 01 08 01 	mvhi r1,0x801                                  
 8006874:	38 21 f0 1c 	ori r1,r1,0xf01c                               
 8006878:	28 23 00 30 	lw r3,(r1+48)                                  
 800687c:	28 42 00 14 	lw r2,(r2+20)                                  
 8006880:	29 61 00 14 	lw r1,(r11+20)                                 
 8006884:	d8 60 00 00 	call r3                                        
 8006888:	4c 01 00 0b 	bge r0,r1,80068b4 <_Scheduler_CBS_Unblock+0xcc>
       _Thread_Heir->current_priority)) {                             
    _Thread_Heir = the_thread;                                        
    if ( _Thread_Executing->is_preemptible ||                         
 800688c:	29 81 00 10 	lw r1,(r12+16)                                 
   *    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 ( _Scheduler_Is_priority_higher_than( the_thread->current_priority,
       _Thread_Heir->current_priority)) {                             
    _Thread_Heir = the_thread;                                        
 8006890:	59 8b 00 14 	sw (r12+20),r11                                
    if ( _Thread_Executing->is_preemptible ||                         
 8006894:	40 21 00 70 	lbu r1,(r1+112)                                
 8006898:	5c 20 00 03 	bne r1,r0,80068a4 <_Scheduler_CBS_Unblock+0xbc>
 800689c:	29 62 00 14 	lw r2,(r11+20)                                 
 80068a0:	5c 41 00 05 	bne r2,r1,80068b4 <_Scheduler_CBS_Unblock+0xcc><== ALWAYS TAKEN
         the_thread->current_priority == 0 )                          
      _Thread_Dispatch_necessary = true;                              
 80068a4:	78 01 08 01 	mvhi r1,0x801                                  
 80068a8:	38 21 fa c0 	ori r1,r1,0xfac0                               
 80068ac:	34 02 00 01 	mvi r2,1                                       
 80068b0:	30 22 00 0c 	sb (r1+12),r2                                  
  }                                                                   
}                                                                     
 80068b4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80068b8:	2b 8b 00 14 	lw r11,(sp+20)                                 
 80068bc:	2b 8c 00 10 	lw r12,(sp+16)                                 
 80068c0:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 80068c4:	2b 8e 00 08 	lw r14,(sp+8)                                  
 80068c8:	37 9c 00 14 	addi sp,sp,20                                  
 80068cc:	c3 a0 00 00 	ret                                            
                                                                      

08006720 <_Scheduler_EDF_Allocate>: #include <rtems/score/wkspace.h> void *_Scheduler_EDF_Allocate( Thread_Control *the_thread ) {
 8006720:	37 9c ff f8 	addi sp,sp,-8                                  
 8006724:	5b 8b 00 08 	sw (sp+8),r11                                  
 8006728:	5b 9d 00 04 	sw (sp+4),ra                                   
 800672c:	b8 20 58 00 	mv r11,r1                                      
  void *sched;                                                        
  Scheduler_EDF_Per_thread *schinfo;                                  
                                                                      
  sched = _Workspace_Allocate( sizeof(Scheduler_EDF_Per_thread) );    
 8006730:	34 01 00 18 	mvi r1,24                                      
 8006734:	f8 00 07 81 	calli 8008538 <_Workspace_Allocate>            
                                                                      
  if ( sched ) {                                                      
 8006738:	44 20 00 05 	be r1,r0,800674c <_Scheduler_EDF_Allocate+0x2c><== NEVER TAKEN
    the_thread->scheduler_info = sched;                               
 800673c:	59 61 00 88 	sw (r11+136),r1                                
    schinfo = (Scheduler_EDF_Per_thread *)(the_thread->scheduler_info);
    schinfo->thread = the_thread;                                     
    schinfo->queue_state = SCHEDULER_EDF_QUEUE_STATE_NEVER_HAS_BEEN;  
 8006740:	34 02 00 02 	mvi r2,2                                       
  sched = _Workspace_Allocate( sizeof(Scheduler_EDF_Per_thread) );    
                                                                      
  if ( sched ) {                                                      
    the_thread->scheduler_info = sched;                               
    schinfo = (Scheduler_EDF_Per_thread *)(the_thread->scheduler_info);
    schinfo->thread = the_thread;                                     
 8006744:	58 2b 00 00 	sw (r1+0),r11                                  
    schinfo->queue_state = SCHEDULER_EDF_QUEUE_STATE_NEVER_HAS_BEEN;  
 8006748:	58 22 00 14 	sw (r1+20),r2                                  
  }                                                                   
                                                                      
  return sched;                                                       
}                                                                     
 800674c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006750:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8006754:	37 9c 00 08 	addi sp,sp,8                                   
 8006758:	c3 a0 00 00 	ret                                            
                                                                      

08006968 <_Scheduler_EDF_Unblock>: #include <rtems/score/scheduleredf.h> void _Scheduler_EDF_Unblock( Thread_Control *the_thread ) {
 8006968:	37 9c ff f4 	addi sp,sp,-12                                 
 800696c:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8006970:	5b 8c 00 08 	sw (sp+8),r12                                  
 8006974:	5b 9d 00 04 	sw (sp+4),ra                                   
   *    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 ( _Scheduler_Is_priority_lower_than(                             
 8006978:	78 0b 08 01 	mvhi r11,0x801                                 
#include <rtems/score/scheduleredf.h>                                 
                                                                      
void _Scheduler_EDF_Unblock(                                          
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
 800697c:	b8 20 60 00 	mv r12,r1                                      
   *    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 ( _Scheduler_Is_priority_lower_than(                             
 8006980:	39 6b fa c0 	ori r11,r11,0xfac0                             
                                                                      
void _Scheduler_EDF_Unblock(                                          
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  _Scheduler_EDF_Enqueue(the_thread);                                 
 8006984:	fb ff ff 90 	calli 80067c4 <_Scheduler_EDF_Enqueue>         
   *    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 ( _Scheduler_Is_priority_lower_than(                             
 8006988:	29 62 00 14 	lw r2,(r11+20)                                 
 800698c:	78 01 08 01 	mvhi r1,0x801                                  
 8006990:	38 21 f0 18 	ori r1,r1,0xf018                               
 8006994:	28 23 00 30 	lw r3,(r1+48)                                  
 8006998:	28 41 00 14 	lw r1,(r2+20)                                  
 800699c:	29 82 00 14 	lw r2,(r12+20)                                 
 80069a0:	d8 60 00 00 	call r3                                        
 80069a4:	4c 20 00 0b 	bge r1,r0,80069d0 <_Scheduler_EDF_Unblock+0x68>
         _Thread_Heir->current_priority,                              
         the_thread->current_priority )) {                            
    _Thread_Heir = the_thread;                                        
    if ( _Thread_Executing->is_preemptible ||                         
 80069a8:	29 61 00 10 	lw r1,(r11+16)                                 
   *    a pseudo-ISR system task, we need to do a context switch.     
   */                                                                 
  if ( _Scheduler_Is_priority_lower_than(                             
         _Thread_Heir->current_priority,                              
         the_thread->current_priority )) {                            
    _Thread_Heir = the_thread;                                        
 80069ac:	59 6c 00 14 	sw (r11+20),r12                                
    if ( _Thread_Executing->is_preemptible ||                         
 80069b0:	40 21 00 70 	lbu r1,(r1+112)                                
 80069b4:	5c 20 00 03 	bne r1,r0,80069c0 <_Scheduler_EDF_Unblock+0x58>
 80069b8:	29 82 00 14 	lw r2,(r12+20)                                 
 80069bc:	5c 41 00 05 	bne r2,r1,80069d0 <_Scheduler_EDF_Unblock+0x68><== ALWAYS TAKEN
         the_thread->current_priority == 0 )                          
      _Thread_Dispatch_necessary = true;                              
 80069c0:	78 01 08 01 	mvhi r1,0x801                                  
 80069c4:	38 21 fa c0 	ori r1,r1,0xfac0                               
 80069c8:	34 02 00 01 	mvi r2,1                                       
 80069cc:	30 22 00 0c 	sb (r1+12),r2                                  
  }                                                                   
}                                                                     
 80069d0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80069d4:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 80069d8:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80069dc:	37 9c 00 0c 	addi sp,sp,12                                  
 80069e0:	c3 a0 00 00 	ret                                            
                                                                      

08005a10 <_Scheduler_priority_Block>: #include <rtems/score/thread.h> void _Scheduler_priority_Block( Thread_Control *the_thread ) {
 8005a10:	37 9c ff ec 	addi sp,sp,-20                                 
 8005a14:	5b 8b 00 14 	sw (sp+20),r11                                 
 8005a18:	5b 8c 00 10 	sw (sp+16),r12                                 
 8005a1c:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8005a20:	5b 8e 00 08 	sw (sp+8),r14                                  
 8005a24:	5b 9d 00 04 	sw (sp+4),ra                                   
 8005a28:	b8 20 60 00 	mv r12,r1                                      
)                                                                     
{                                                                     
  Scheduler_priority_Per_thread *sched_info;                          
  Chain_Control                 *ready;                               
                                                                      
  sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info;
 8005a2c:	28 21 00 88 	lw r1,(r1+136)                                 
  ready      = sched_info->ready_chain;                               
 8005a30:	28 22 00 00 	lw r2,(r1+0)                                   
                                                                      
  if ( _Chain_Has_only_one_node( ready ) ) {                          
 8005a34:	28 44 00 00 	lw r4,(r2+0)                                   
 8005a38:	28 43 00 08 	lw r3,(r2+8)                                   
 8005a3c:	5c 83 00 12 	bne r4,r3,8005a84 <_Scheduler_priority_Block+0x74>
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
 8005a40:	34 43 00 04 	addi r3,r2,4                                   
                                                                      
  head->next = tail;                                                  
 8005a44:	58 43 00 00 	sw (r2+0),r3                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove (                  
  Priority_bit_map_Information *the_priority_map                      
)                                                                     
{                                                                     
  *the_priority_map->minor &= the_priority_map->block_minor;          
 8005a48:	28 23 00 04 	lw r3,(r1+4)                                   
  head->previous = NULL;                                              
 8005a4c:	58 40 00 04 	sw (r2+4),r0                                   
  tail->previous = head;                                              
 8005a50:	58 42 00 08 	sw (r2+8),r2                                   
 8005a54:	2c 24 00 0e 	lhu r4,(r1+14)                                 
 8005a58:	2c 62 00 00 	lhu r2,(r3+0)                                  
 8005a5c:	a0 44 10 00 	and r2,r2,r4                                   
 8005a60:	0c 62 00 00 	sh (r3+0),r2                                   
  if ( *the_priority_map->minor == 0 )                                
 8005a64:	5c 40 00 0c 	bne r2,r0,8005a94 <_Scheduler_priority_Block+0x84>
    _Priority_Major_bit_map &= the_priority_map->block_major;         
 8005a68:	78 02 08 01 	mvhi r2,0x801                                  
 8005a6c:	38 42 da a0 	ori r2,r2,0xdaa0                               
 8005a70:	2c 43 00 00 	lhu r3,(r2+0)                                  
 8005a74:	2c 21 00 0c 	lhu r1,(r1+12)                                 
 8005a78:	a0 23 08 00 	and r1,r1,r3                                   
 8005a7c:	0c 41 00 00 	sh (r2+0),r1                                   
 8005a80:	e0 00 00 05 	bi 8005a94 <_Scheduler_priority_Block+0x84>    
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
 8005a84:	29 82 00 00 	lw r2,(r12+0)                                  
  previous       = the_node->previous;                                
 8005a88:	29 81 00 04 	lw r1,(r12+4)                                  
  next->previous = previous;                                          
 8005a8c:	58 41 00 04 	sw (r2+4),r1                                   
  previous->next = next;                                              
 8005a90:	58 22 00 00 	sw (r1+0),r2                                   
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_heir (                           
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Heir );                              
 8005a94:	78 01 08 01 	mvhi r1,0x801                                  
 8005a98:	38 21 da 60 	ori r1,r1,0xda60                               
  _Scheduler_priority_Ready_queue_extract( the_thread );              
                                                                      
  /* TODO: flash critical section? */                                 
                                                                      
  if ( _Thread_Is_heir( the_thread ) )                                
 8005a9c:	28 21 00 14 	lw r1,(r1+20)                                  
 8005aa0:	5d 81 00 3b 	bne r12,r1,8005b8c <_Scheduler_priority_Block+0x17c>
 *  @param[in] the_thread  - pointer to thread                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)     
{                                                                     
  _Thread_Heir = _Scheduler_priority_Ready_queue_first(               
    (Chain_Control *) _Scheduler.information                          
 8005aa4:	78 01 08 01 	mvhi r1,0x801                                  
RTEMS_INLINE_ROUTINE Priority_Control _Priority_bit_map_Get_highest( void )
{                                                                     
  Priority_bit_map_Control minor;                                     
  Priority_bit_map_Control major;                                     
                                                                      
  _Bitfield_Find_first_bit( _Priority_Major_bit_map, major );         
 8005aa8:	78 02 08 01 	mvhi r2,0x801                                  
 8005aac:	38 21 d0 18 	ori r1,r1,0xd018                               
 8005ab0:	38 42 da a0 	ori r2,r2,0xdaa0                               
 *                                                                    
 *  @param[in] the_thread  - pointer to thread                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)     
{                                                                     
  _Thread_Heir = _Scheduler_priority_Ready_queue_first(               
 8005ab4:	28 2e 00 00 	lw r14,(r1+0)                                  
 8005ab8:	2c 41 00 00 	lhu r1,(r2+0)                                  
 8005abc:	78 0b 08 01 	mvhi r11,0x801                                 
 8005ac0:	34 02 00 ff 	mvi r2,255                                     
 8005ac4:	20 21 ff ff 	andi r1,r1,0xffff                              
 8005ac8:	39 6b ba 48 	ori r11,r11,0xba48                             
 8005acc:	54 22 00 05 	bgu r1,r2,8005ae0 <_Scheduler_priority_Block+0xd0>
 8005ad0:	b5 61 58 00 	add r11,r11,r1                                 
 8005ad4:	41 6d 00 00 	lbu r13,(r11+0)                                
 8005ad8:	35 ad 00 08 	addi r13,r13,8                                 
 8005adc:	e0 00 00 05 	bi 8005af0 <_Scheduler_priority_Block+0xe0>    
 8005ae0:	34 02 00 08 	mvi r2,8                                       
 8005ae4:	f8 00 52 23 	calli 801a370 <__lshrsi3>                      
 8005ae8:	b5 61 58 00 	add r11,r11,r1                                 
 8005aec:	41 6d 00 00 	lbu r13,(r11+0)                                
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
 8005af0:	34 02 00 01 	mvi r2,1                                       
 8005af4:	78 0b 08 01 	mvhi r11,0x801                                 
 8005af8:	b9 a0 08 00 	mv r1,r13                                      
 8005afc:	f8 00 51 cf 	calli 801a238 <__ashlsi3>                      
 8005b00:	39 6b da c0 	ori r11,r11,0xdac0                             
 8005b04:	b5 61 58 00 	add r11,r11,r1                                 
 8005b08:	2d 62 00 00 	lhu r2,(r11+0)                                 
 8005b0c:	34 01 00 ff 	mvi r1,255                                     
 8005b10:	78 0b 08 01 	mvhi r11,0x801                                 
 8005b14:	39 6b ba 48 	ori r11,r11,0xba48                             
 8005b18:	54 41 00 05 	bgu r2,r1,8005b2c <_Scheduler_priority_Block+0x11c>
 8005b1c:	b5 62 58 00 	add r11,r11,r2                                 
 8005b20:	41 6b 00 00 	lbu r11,(r11+0)                                
 8005b24:	35 6b 00 08 	addi r11,r11,8                                 
 8005b28:	e0 00 00 06 	bi 8005b40 <_Scheduler_priority_Block+0x130>   
 8005b2c:	b8 40 08 00 	mv r1,r2                                       
 8005b30:	34 02 00 08 	mvi r2,8                                       
 8005b34:	f8 00 52 0f 	calli 801a370 <__lshrsi3>                      
 8005b38:	b5 61 58 00 	add r11,r11,r1                                 
 8005b3c:	41 6b 00 00 	lbu r11,(r11+0)                                
                                                                      
  return (_Priority_Bits_index( major ) << 4) +                       
 8005b40:	34 02 00 04 	mvi r2,4                                       
 8005b44:	b9 a0 08 00 	mv r1,r13                                      
 8005b48:	f8 00 51 bc 	calli 801a238 <__ashlsi3>                      
 8005b4c:	b5 61 58 00 	add r11,r11,r1                                 
  Chain_Control       *the_ready_queue                                
)                                                                     
{                                                                     
  Priority_Control index = _Priority_bit_map_Get_highest();           
                                                                      
  if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )                
 8005b50:	34 02 00 01 	mvi r2,1                                       
 8005b54:	b9 60 08 00 	mv r1,r11                                      
 8005b58:	f8 00 51 b8 	calli 801a238 <__ashlsi3>                      
 8005b5c:	34 02 00 02 	mvi r2,2                                       
 8005b60:	b4 2b 08 00 	add r1,r1,r11                                  
 8005b64:	f8 00 51 b5 	calli 801a238 <__ashlsi3>                      
 8005b68:	b5 c1 08 00 	add r1,r14,r1                                  
     _Scheduler_priority_Schedule_body();                             
                                                                      
  if ( _Thread_Is_executing( the_thread ) )                           
    _Thread_Dispatch_necessary = true;                                
                                                                      
}                                                                     
 8005b6c:	28 23 00 00 	lw r3,(r1+0)                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 8005b70:	34 21 00 04 	addi r1,r1,4                                   
    return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
                                                                      
  return NULL;                                                        
 8005b74:	34 02 00 00 	mvi r2,0                                       
  Chain_Control       *the_ready_queue                                
)                                                                     
{                                                                     
  Priority_Control index = _Priority_bit_map_Get_highest();           
                                                                      
  if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )                
 8005b78:	44 61 00 02 	be r3,r1,8005b80 <_Scheduler_priority_Block+0x170><== NEVER TAKEN
    return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
 8005b7c:	b8 60 10 00 	mv r2,r3                                       
 *                                                                    
 *  @param[in] the_thread  - pointer to thread                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)     
{                                                                     
  _Thread_Heir = _Scheduler_priority_Ready_queue_first(               
 8005b80:	78 01 08 01 	mvhi r1,0x801                                  
 8005b84:	38 21 da 60 	ori r1,r1,0xda60                               
 8005b88:	58 22 00 14 	sw (r1+20),r2                                  
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
 8005b8c:	78 01 08 01 	mvhi r1,0x801                                  
 8005b90:	38 21 da 60 	ori r1,r1,0xda60                               
  /* TODO: flash critical section? */                                 
                                                                      
  if ( _Thread_Is_heir( the_thread ) )                                
     _Scheduler_priority_Schedule_body();                             
                                                                      
  if ( _Thread_Is_executing( the_thread ) )                           
 8005b94:	28 22 00 10 	lw r2,(r1+16)                                  
 8005b98:	5d 82 00 03 	bne r12,r2,8005ba4 <_Scheduler_priority_Block+0x194>
    _Thread_Dispatch_necessary = true;                                
 8005b9c:	34 02 00 01 	mvi r2,1                                       
 8005ba0:	30 22 00 0c 	sb (r1+12),r2                                  
                                                                      
}                                                                     
 8005ba4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005ba8:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8005bac:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8005bb0:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8005bb4:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8005bb8:	37 9c 00 14 	addi sp,sp,20                                  
 8005bbc:	c3 a0 00 00 	ret                                            
                                                                      

08005da0 <_Scheduler_priority_Schedule>: #include <rtems/system.h> #include <rtems/score/scheduler.h> #include <rtems/score/schedulerpriority.h> void _Scheduler_priority_Schedule(void) {
 8005da0:	37 9c ff f0 	addi sp,sp,-16                                 
 8005da4:	5b 8b 00 10 	sw (sp+16),r11                                 
 8005da8:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8005dac:	5b 8d 00 08 	sw (sp+8),r13                                  
 8005db0:	5b 9d 00 04 	sw (sp+4),ra                                   
 *  @param[in] the_thread  - pointer to thread                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)     
{                                                                     
  _Thread_Heir = _Scheduler_priority_Ready_queue_first(               
    (Chain_Control *) _Scheduler.information                          
 8005db4:	78 01 08 01 	mvhi r1,0x801                                  
RTEMS_INLINE_ROUTINE Priority_Control _Priority_bit_map_Get_highest( void )
{                                                                     
  Priority_bit_map_Control minor;                                     
  Priority_bit_map_Control major;                                     
                                                                      
  _Bitfield_Find_first_bit( _Priority_Major_bit_map, major );         
 8005db8:	78 02 08 01 	mvhi r2,0x801                                  
 8005dbc:	38 21 d0 18 	ori r1,r1,0xd018                               
 8005dc0:	38 42 da a0 	ori r2,r2,0xdaa0                               
 *                                                                    
 *  @param[in] the_thread  - pointer to thread                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)     
{                                                                     
  _Thread_Heir = _Scheduler_priority_Ready_queue_first(               
 8005dc4:	28 2d 00 00 	lw r13,(r1+0)                                  
 8005dc8:	2c 41 00 00 	lhu r1,(r2+0)                                  
 8005dcc:	78 0b 08 01 	mvhi r11,0x801                                 
 8005dd0:	34 02 00 ff 	mvi r2,255                                     
 8005dd4:	20 21 ff ff 	andi r1,r1,0xffff                              
 8005dd8:	39 6b ba 48 	ori r11,r11,0xba48                             
 8005ddc:	54 22 00 05 	bgu r1,r2,8005df0 <_Scheduler_priority_Schedule+0x50>
 8005de0:	b5 61 58 00 	add r11,r11,r1                                 
 8005de4:	41 6c 00 00 	lbu r12,(r11+0)                                
 8005de8:	35 8c 00 08 	addi r12,r12,8                                 
 8005dec:	e0 00 00 05 	bi 8005e00 <_Scheduler_priority_Schedule+0x60> 
 8005df0:	34 02 00 08 	mvi r2,8                                       
 8005df4:	f8 00 51 5f 	calli 801a370 <__lshrsi3>                      
 8005df8:	b5 61 58 00 	add r11,r11,r1                                 
 8005dfc:	41 6c 00 00 	lbu r12,(r11+0)                                
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
 8005e00:	34 02 00 01 	mvi r2,1                                       
 8005e04:	78 0b 08 01 	mvhi r11,0x801                                 
 8005e08:	b9 80 08 00 	mv r1,r12                                      
 8005e0c:	f8 00 51 0b 	calli 801a238 <__ashlsi3>                      
 8005e10:	39 6b da c0 	ori r11,r11,0xdac0                             
 8005e14:	b5 61 58 00 	add r11,r11,r1                                 
 8005e18:	2d 62 00 00 	lhu r2,(r11+0)                                 
 8005e1c:	34 01 00 ff 	mvi r1,255                                     
 8005e20:	78 0b 08 01 	mvhi r11,0x801                                 
 8005e24:	39 6b ba 48 	ori r11,r11,0xba48                             
 8005e28:	54 41 00 05 	bgu r2,r1,8005e3c <_Scheduler_priority_Schedule+0x9c>
 8005e2c:	b5 62 58 00 	add r11,r11,r2                                 
 8005e30:	41 6b 00 00 	lbu r11,(r11+0)                                
 8005e34:	35 6b 00 08 	addi r11,r11,8                                 
 8005e38:	e0 00 00 06 	bi 8005e50 <_Scheduler_priority_Schedule+0xb0> 
 8005e3c:	b8 40 08 00 	mv r1,r2                                       
 8005e40:	34 02 00 08 	mvi r2,8                                       
 8005e44:	f8 00 51 4b 	calli 801a370 <__lshrsi3>                      
 8005e48:	b5 61 58 00 	add r11,r11,r1                                 
 8005e4c:	41 6b 00 00 	lbu r11,(r11+0)                                
                                                                      
  return (_Priority_Bits_index( major ) << 4) +                       
 8005e50:	34 02 00 04 	mvi r2,4                                       
 8005e54:	b9 80 08 00 	mv r1,r12                                      
 8005e58:	f8 00 50 f8 	calli 801a238 <__ashlsi3>                      
 8005e5c:	b5 61 58 00 	add r11,r11,r1                                 
  Chain_Control       *the_ready_queue                                
)                                                                     
{                                                                     
  Priority_Control index = _Priority_bit_map_Get_highest();           
                                                                      
  if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )                
 8005e60:	34 02 00 01 	mvi r2,1                                       
 8005e64:	b9 60 08 00 	mv r1,r11                                      
 8005e68:	f8 00 50 f4 	calli 801a238 <__ashlsi3>                      
 8005e6c:	34 02 00 02 	mvi r2,2                                       
 8005e70:	b4 2b 08 00 	add r1,r1,r11                                  
 8005e74:	f8 00 50 f1 	calli 801a238 <__ashlsi3>                      
 8005e78:	b5 a1 08 00 	add r1,r13,r1                                  
  _Scheduler_priority_Schedule_body();                                
}                                                                     
 8005e7c:	28 23 00 00 	lw r3,(r1+0)                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 8005e80:	34 21 00 04 	addi r1,r1,4                                   
    return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
                                                                      
  return NULL;                                                        
 8005e84:	34 02 00 00 	mvi r2,0                                       
  Chain_Control       *the_ready_queue                                
)                                                                     
{                                                                     
  Priority_Control index = _Priority_bit_map_Get_highest();           
                                                                      
  if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )                
 8005e88:	44 61 00 02 	be r3,r1,8005e90 <_Scheduler_priority_Schedule+0xf0><== NEVER TAKEN
    return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
 8005e8c:	b8 60 10 00 	mv r2,r3                                       
 *                                                                    
 *  @param[in] the_thread  - pointer to thread                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)     
{                                                                     
  _Thread_Heir = _Scheduler_priority_Ready_queue_first(               
 8005e90:	78 01 08 01 	mvhi r1,0x801                                  
 8005e94:	38 21 da 60 	ori r1,r1,0xda60                               
 8005e98:	58 22 00 14 	sw (r1+20),r2                                  
 8005e9c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005ea0:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8005ea4:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8005ea8:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8005eac:	37 9c 00 10 	addi sp,sp,16                                  
 8005eb0:	c3 a0 00 00 	ret                                            
                                                                      

08004c04 <_TOD_Validate>: }; bool _TOD_Validate( const rtems_time_of_day *the_tod ) {
 8004c04:	37 9c ff f0 	addi sp,sp,-16                                 
 8004c08:	5b 8b 00 10 	sw (sp+16),r11                                 
 8004c0c:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8004c10:	5b 8d 00 08 	sw (sp+8),r13                                  
 8004c14:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004c18:	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();                 
 8004c1c:	78 01 08 01 	mvhi r1,0x801                                  
 8004c20:	38 21 d6 90 	ori r1,r1,0xd690                               
 8004c24:	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;                                                    
 8004c28:	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)                                  ||                  
 8004c2c:	45 60 00 22 	be r11,r0,8004cb4 <_TOD_Validate+0xb0>         <== NEVER TAKEN
)                                                                     
{                                                                     
  uint32_t   days_in_month;                                           
  uint32_t   ticks_per_second;                                        
                                                                      
  ticks_per_second = TOD_MICROSECONDS_PER_SECOND /                    
 8004c30:	78 03 08 01 	mvhi r3,0x801                                  
 8004c34:	38 63 da 10 	ori r3,r3,0xda10                               
 8004c38:	28 61 00 00 	lw r1,(r3+0)                                   
 8004c3c:	f8 00 5f 4f 	calli 801c978 <__udivsi3>                      
	    rtems_configuration_get_microseconds_per_tick();                 
  if ((!the_tod)                                  ||                  
 8004c40:	29 62 00 18 	lw r2,(r11+24)                                 
 8004c44:	50 41 00 1c 	bgeu r2,r1,8004cb4 <_TOD_Validate+0xb0>        
      (the_tod->ticks  >= ticks_per_second)       ||                  
 8004c48:	29 62 00 14 	lw r2,(r11+20)                                 
 8004c4c:	34 01 00 3b 	mvi r1,59                                      
 8004c50:	54 41 00 19 	bgu r2,r1,8004cb4 <_TOD_Validate+0xb0>         
      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||                  
 8004c54:	29 62 00 10 	lw r2,(r11+16)                                 
 8004c58:	54 41 00 17 	bgu r2,r1,8004cb4 <_TOD_Validate+0xb0>         
      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||                  
 8004c5c:	29 62 00 0c 	lw r2,(r11+12)                                 
 8004c60:	34 01 00 17 	mvi r1,23                                      
 8004c64:	54 41 00 14 	bgu r2,r1,8004cb4 <_TOD_Validate+0xb0>         
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
      (the_tod->month  == 0)                      ||                  
 8004c68:	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)      ||                  
 8004c6c:	44 20 00 12 	be r1,r0,8004cb4 <_TOD_Validate+0xb0>          <== NEVER TAKEN
      (the_tod->month  == 0)                      ||                  
 8004c70:	34 02 00 0c 	mvi r2,12                                      
 8004c74:	54 22 00 10 	bgu r1,r2,8004cb4 <_TOD_Validate+0xb0>         
      (the_tod->month  >  TOD_MONTHS_PER_YEAR)    ||                  
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
 8004c78:	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)    ||                  
 8004c7c:	34 03 07 c3 	mvi r3,1987                                    
 8004c80:	50 62 00 0d 	bgeu r3,r2,8004cb4 <_TOD_Validate+0xb0>        
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
      (the_tod->day    == 0) )                                        
 8004c84:	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)          ||                  
 8004c88:	45 a0 00 0b 	be r13,r0,8004cb4 <_TOD_Validate+0xb0>         <== NEVER TAKEN
 8004c8c:	78 0b 08 01 	mvhi r11,0x801                                 
      (the_tod->day    == 0) )                                        
     return false;                                                    
                                                                      
  if ( (the_tod->year % 4) == 0 )                                     
 8004c90:	20 42 00 03 	andi r2,r2,0x3                                 
 8004c94:	39 6b e3 98 	ori r11,r11,0xe398                             
 8004c98:	5c 40 00 02 	bne r2,r0,8004ca0 <_TOD_Validate+0x9c>         
    days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];       
 8004c9c:	34 21 00 0d 	addi r1,r1,13                                  
  else                                                                
    days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];       
 8004ca0:	34 02 00 02 	mvi r2,2                                       
 8004ca4:	fb ff f1 7b 	calli 8001290 <__ashlsi3>                      
 8004ca8:	b5 61 08 00 	add r1,r11,r1                                  
 8004cac:	28 2c 00 00 	lw r12,(r1+0)                                  
const uint32_t   _TOD_Days_per_month[ 2 ][ 13 ] = {                   
  { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 },              
  { 0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }               
};                                                                    
                                                                      
bool _TOD_Validate(                                                   
 8004cb0:	f1 8d 60 00 	cmpgeu r12,r12,r13                             
                                                                      
  if ( the_tod->day > days_in_month )                                 
    return false;                                                     
                                                                      
  return true;                                                        
}                                                                     
 8004cb4:	b9 80 08 00 	mv r1,r12                                      
 8004cb8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004cbc:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8004cc0:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8004cc4:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8004cc8:	37 9c 00 10 	addi sp,sp,16                                  
 8004ccc:	c3 a0 00 00 	ret                                            
                                                                      

0800614c <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) {
 800614c:	37 9c ff e8 	addi sp,sp,-24                                 
 8006150:	5b 8b 00 18 	sw (sp+24),r11                                 
 8006154:	5b 8c 00 14 	sw (sp+20),r12                                 
 8006158:	5b 8d 00 10 	sw (sp+16),r13                                 
 800615c:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8006160:	5b 8f 00 08 	sw (sp+8),r15                                  
 8006164:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006168:	b8 20 58 00 	mv r11,r1                                      
  States_Control state, original_state;                               
                                                                      
  /*                                                                  
   * Save original state                                              
   */                                                                 
  original_state = the_thread->current_state;                         
 800616c:	28 2f 00 10 	lw r15,(r1+16)                                 
void _Thread_Change_priority(                                         
  Thread_Control   *the_thread,                                       
  Priority_Control  new_priority,                                     
  bool              prepend_it                                        
)                                                                     
{                                                                     
 8006170:	b8 40 60 00 	mv r12,r2                                      
 8006174:	20 6e 00 ff 	andi r14,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 );                                
 8006178:	f8 00 03 e6 	calli 8007110 <_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 )                  
 800617c:	29 61 00 14 	lw r1,(r11+20)                                 
 8006180:	44 2c 00 04 	be r1,r12,8006190 <_Thread_Change_priority+0x44>
    _Thread_Set_priority( the_thread, new_priority );                 
 8006184:	b9 60 08 00 	mv r1,r11                                      
 8006188:	b9 80 10 00 	mv r2,r12                                      
 800618c:	f8 00 03 c1 	calli 8007090 <_Thread_Set_priority>           
                                                                      
  _ISR_Disable( level );                                              
 8006190:	90 00 60 00 	rcsr r12,IE                                    
 8006194:	34 0d ff fe 	mvi r13,-2                                     
 8006198:	a1 8d 68 00 	and r13,r12,r13                                
 800619c:	d0 0d 00 00 	wcsr IE,r13                                    
                                                                      
  /*                                                                  
   *  If the thread has more than STATES_TRANSIENT set, then it is blocked,
   *  If it is blocked on a thread queue, then we need to requeue it. 
   */                                                                 
  state = the_thread->current_state;                                  
 80061a0:	29 61 00 10 	lw r1,(r11+16)                                 
  if ( state != STATES_TRANSIENT ) {                                  
 80061a4:	34 03 00 04 	mvi r3,4                                       
 80061a8:	21 e2 00 04 	andi r2,r15,0x4                                
 80061ac:	44 23 00 0f 	be r1,r3,80061e8 <_Thread_Change_priority+0x9c>
    /* Only clear the transient state if it wasn't set already */     
    if ( ! _States_Is_transient( original_state ) )                   
 80061b0:	5c 40 00 04 	bne r2,r0,80061c0 <_Thread_Change_priority+0x74><== NEVER TAKEN
RTEMS_INLINE_ROUTINE States_Control _States_Clear (                   
  States_Control states_to_clear,                                     
  States_Control current_state                                        
)                                                                     
{                                                                     
   return (current_state & ~states_to_clear);                         
 80061b4:	34 02 ff fb 	mvi r2,-5                                      
 80061b8:	a0 22 10 00 	and r2,r1,r2                                   
      the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
 80061bc:	59 62 00 10 	sw (r11+16),r2                                 
    _ISR_Enable( level );                                             
 80061c0:	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);              
 80061c4:	78 03 08 01 	mvhi r3,0x801                                  
 80061c8:	38 63 bb a4 	ori r3,r3,0xbba4                               
 80061cc:	28 62 00 00 	lw r2,(r3+0)                                   
 80061d0:	a0 22 08 00 	and r1,r1,r2                                   
    if ( _States_Is_waiting_on_thread_queue( state ) ) {              
 80061d4:	44 20 00 1f 	be r1,r0,8006250 <_Thread_Change_priority+0x104>
      _Thread_queue_Requeue( the_thread->Wait.queue, the_thread );    
 80061d8:	29 61 00 44 	lw r1,(r11+68)                                 
 80061dc:	b9 60 10 00 	mv r2,r11                                      
 80061e0:	f8 00 03 77 	calli 8006fbc <_Thread_queue_Requeue>          
 80061e4:	e0 00 00 1b 	bi 8006250 <_Thread_Change_priority+0x104>     
    }                                                                 
    return;                                                           
  }                                                                   
                                                                      
  /* Only clear the transient state if it wasn't set already */       
  if ( ! _States_Is_transient( original_state ) ) {                   
 80061e8:	5c 40 00 0a 	bne r2,r0,8006210 <_Thread_Change_priority+0xc4><== NEVER TAKEN
 80061ec:	78 01 08 01 	mvhi r1,0x801                                  
     *  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 );
 80061f0:	59 60 00 10 	sw (r11+16),r0                                 
 80061f4:	38 21 d0 18 	ori r1,r1,0xd018                               
                                                                      
    if ( prepend_it )                                                 
 80061f8:	45 c2 00 03 	be r14,r2,8006204 <_Thread_Change_priority+0xb8>
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue_first(                   
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  _Scheduler.Operations.enqueue_first( the_thread );                  
 80061fc:	28 22 00 28 	lw r2,(r1+40)                                  
 8006200:	e0 00 00 02 	bi 8006208 <_Thread_Change_priority+0xbc>      
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue(                         
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  _Scheduler.Operations.enqueue( the_thread );                        
 8006204:	28 22 00 24 	lw r2,(r1+36)                                  
 8006208:	b9 60 08 00 	mv r1,r11                                      
 800620c:	d8 40 00 00 	call r2                                        
      _Scheduler_Enqueue_first( the_thread );                         
    else                                                              
      _Scheduler_Enqueue( the_thread );                               
  }                                                                   
                                                                      
  _ISR_Flash( level );                                                
 8006210:	d0 0c 00 00 	wcsr IE,r12                                    
 8006214:	d0 0d 00 00 	wcsr IE,r13                                    
 *  This kernel routine implements the scheduling decision logic for  
 *  the scheduler. It does NOT dispatch.                              
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_Schedule( void )                 
{                                                                     
  _Scheduler.Operations.schedule();                                   
 8006218:	78 01 08 01 	mvhi r1,0x801                                  
 800621c:	38 21 d0 18 	ori r1,r1,0xd018                               
 8006220:	28 21 00 08 	lw r1,(r1+8)                                   
 8006224:	d8 20 00 00 	call r1                                        
 *  is also the heir thread, and false otherwise.                     
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void )  
{                                                                     
  return ( _Thread_Executing == _Thread_Heir );                       
 8006228:	78 01 08 01 	mvhi r1,0x801                                  
 800622c:	38 21 da 60 	ori r1,r1,0xda60                               
 8006230:	28 22 00 10 	lw r2,(r1+16)                                  
   *  We altered the set of thread priorities.  So let's figure out   
   *  who is the heir and if we need to switch to them.               
   */                                                                 
  _Scheduler_Schedule();                                              
                                                                      
  if ( !_Thread_Is_executing_also_the_heir() &&                       
 8006234:	28 23 00 14 	lw r3,(r1+20)                                  
 8006238:	44 43 00 05 	be r2,r3,800624c <_Thread_Change_priority+0x100>
 800623c:	40 42 00 70 	lbu r2,(r2+112)                                
 8006240:	44 40 00 03 	be r2,r0,800624c <_Thread_Change_priority+0x100>
       _Thread_Executing->is_preemptible )                            
    _Thread_Dispatch_necessary = true;                                
 8006244:	34 02 00 01 	mvi r2,1                                       
 8006248:	30 22 00 0c 	sb (r1+12),r2                                  
  _ISR_Enable( level );                                               
 800624c:	d0 0c 00 00 	wcsr IE,r12                                    
}                                                                     
 8006250:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006254:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8006258:	2b 8c 00 14 	lw r12,(sp+20)                                 
 800625c:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8006260:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8006264:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8006268:	37 9c 00 18 	addi sp,sp,24                                  
 800626c:	c3 a0 00 00 	ret                                            
                                                                      

0800c8a4 <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) {
 800c8a4:	37 9c ff f8 	addi sp,sp,-8                                  
 800c8a8:	5b 9d 00 04 	sw (sp+4),ra                                   
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 800c8ac:	37 82 00 08 	addi r2,sp,8                                   
 800c8b0:	f8 00 00 99 	calli 800cb14 <_Thread_Get>                    
  switch ( location ) {                                               
 800c8b4:	2b 82 00 08 	lw r2,(sp+8)                                   
 800c8b8:	5c 40 00 0a 	bne r2,r0,800c8e0 <_Thread_Delay_ended+0x3c>   <== NEVER TAKEN
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
      break;                                                          
    case OBJECTS_LOCAL:                                               
      _Thread_Clear_state(                                            
 800c8bc:	78 03 08 02 	mvhi r3,0x802                                  
 800c8c0:	38 63 5f d0 	ori r3,r3,0x5fd0                               
 800c8c4:	28 62 00 00 	lw r2,(r3+0)                                   
 800c8c8:	fb ff ff 6d 	calli 800c67c <_Thread_Clear_state>            
   *                                                                  
   * This routine decrements the thread dispatch level.               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_decrement_disable_level(void)
  {                                                                   
    uint32_t level = _Thread_Dispatch_disable_level;                  
 800c8cc:	78 01 08 02 	mvhi r1,0x802                                  
 800c8d0:	38 21 8a 00 	ori r1,r1,0x8a00                               
 800c8d4:	28 22 00 00 	lw r2,(r1+0)                                   
                                                                      
    --level;                                                          
 800c8d8:	34 42 ff ff 	addi r2,r2,-1                                  
    _Thread_Dispatch_disable_level = level;                           
 800c8dc:	58 22 00 00 	sw (r1+0),r2                                   
          | STATES_INTERRUPTIBLE_BY_SIGNAL                            
      );                                                              
      _Thread_Unnest_dispatch();                                      
      break;                                                          
  }                                                                   
}                                                                     
 800c8e0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800c8e4:	37 9c 00 08 	addi sp,sp,8                                   
 800c8e8:	c3 a0 00 00 	ret                                            
                                                                      

0800643c <_Thread_Dispatch>: #if defined(RTEMS_SMP) #include <rtems/score/smp.h> #endif void _Thread_Dispatch( void ) {
 800643c:	37 9c ff c0 	addi sp,sp,-64                                 
 8006440:	5b 8b 00 38 	sw (sp+56),r11                                 
 8006444:	5b 8c 00 34 	sw (sp+52),r12                                 
 8006448:	5b 8d 00 30 	sw (sp+48),r13                                 
 800644c:	5b 8e 00 2c 	sw (sp+44),r14                                 
 8006450:	5b 8f 00 28 	sw (sp+40),r15                                 
 8006454:	5b 90 00 24 	sw (sp+36),r16                                 
 8006458:	5b 91 00 20 	sw (sp+32),r17                                 
 800645c:	5b 92 00 1c 	sw (sp+28),r18                                 
 8006460:	5b 93 00 18 	sw (sp+24),r19                                 
 8006464:	5b 94 00 14 	sw (sp+20),r20                                 
 8006468:	5b 95 00 10 	sw (sp+16),r21                                 
 800646c:	5b 96 00 0c 	sw (sp+12),r22                                 
 8006470:	5b 97 00 08 	sw (sp+8),r23                                  
 8006474:	5b 9d 00 04 	sw (sp+4),ra                                   
  #endif                                                              
                                                                      
  /*                                                                  
   *  Now determine if we need to perform a dispatch on the current CPU.
   */                                                                 
  executing   = _Thread_Executing;                                    
 8006478:	78 01 08 01 	mvhi r1,0x801                                  
 800647c:	38 21 da 60 	ori r1,r1,0xda60                               
 8006480:	28 2c 00 10 	lw r12,(r1+16)                                 
  _ISR_Disable( level );                                              
 8006484:	90 00 18 00 	rcsr r3,IE                                     
 8006488:	34 01 ff fe 	mvi r1,-2                                      
 800648c:	a0 61 08 00 	and r1,r3,r1                                   
 8006490:	d0 01 00 00 	wcsr IE,r1                                     
  while ( _Thread_Dispatch_necessary == true ) {                      
 8006494:	78 0b 08 01 	mvhi r11,0x801                                 
   * This routine sets thread dispatch level to the                   
   * value passed in.                                                 
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_set_disable_level(uint32_t value)
  {                                                                   
    _Thread_Dispatch_disable_level = value;                           
 8006498:	78 14 08 01 	mvhi r20,0x801                                 
#if __RTEMS_ADA__                                                     
    executing->rtems_ada_self = rtems_ada_self;                       
    rtems_ada_self = heir->rtems_ada_self;                            
#endif                                                                
    if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE )
      heir->cpu_time_budget = _Thread_Ticks_per_timeslice;            
 800649c:	78 0f 08 01 	mvhi r15,0x801                                 
 */                                                                   
static inline void _TOD_Get_uptime(                                   
  Timestamp_Control *time                                             
)                                                                     
{                                                                     
  _TOD_Get_with_nanoseconds( time, &_TOD.uptime );                    
 80064a0:	78 13 08 01 	mvhi r19,0x801                                 
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
 80064a4:	78 12 08 01 	mvhi r18,0x801                                 
  #ifdef RTEMS_SMP                                                    
    _Thread_Unnest_dispatch();                                        
  #endif                                                              
                                                                      
  _API_extensions_Run_post_switch( executing );                       
}                                                                     
 80064a8:	78 11 08 01 	mvhi r17,0x801                                 
{                                                                     
  const Chain_Control *chain = &_User_extensions_Switches_list;       
  const Chain_Node    *tail = _Chain_Immutable_tail( chain );         
  const Chain_Node    *node = _Chain_Immutable_first( chain );        
                                                                      
  while ( node != tail ) {                                            
 80064ac:	78 10 08 01 	mvhi r16,0x801                                 
  /*                                                                  
   *  Now determine if we need to perform a dispatch on the current CPU.
   */                                                                 
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Thread_Dispatch_necessary == true ) {                      
 80064b0:	39 6b da 60 	ori r11,r11,0xda60                             
 80064b4:	3a 94 d8 e0 	ori r20,r20,0xd8e0                             
 80064b8:	34 15 00 01 	mvi r21,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;            
 80064bc:	39 ef d8 78 	ori r15,r15,0xd878                             
    _ISR_Enable( level );                                             
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
 80064c0:	37 97 00 3c 	addi r23,sp,60                                 
 80064c4:	3a 73 d8 68 	ori r19,r19,0xd868                             
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
 80064c8:	3a 52 d9 4c 	ori r18,r18,0xd94c                             
  #ifdef RTEMS_SMP                                                    
    _Thread_Unnest_dispatch();                                        
  #endif                                                              
                                                                      
  _API_extensions_Run_post_switch( executing );                       
}                                                                     
 80064cc:	3a 31 d1 a0 	ori r17,r17,0xd1a0                             
 80064d0:	3a 10 d1 a4 	ori r16,r16,0xd1a4                             
#endif                                                                
#endif                                                                
                                                                      
    executing = _Thread_Executing;                                    
                                                                      
    _ISR_Disable( level );                                            
 80064d4:	34 16 ff fe 	mvi r22,-2                                     
  /*                                                                  
   *  Now determine if we need to perform a dispatch on the current CPU.
   */                                                                 
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Thread_Dispatch_necessary == true ) {                      
 80064d8:	e0 00 00 35 	bi 80065ac <_Thread_Dispatch+0x170>            
    heir = _Thread_Heir;                                              
 80064dc:	29 6d 00 14 	lw r13,(r11+20)                                
 80064e0:	5a 95 00 00 	sw (r20+0),r21                                 
    #ifndef RTEMS_SMP                                                 
      _Thread_Dispatch_set_disable_level( 1 );                        
    #endif                                                            
    _Thread_Dispatch_necessary = false;                               
 80064e4:	31 60 00 0c 	sb (r11+12),r0                                 
    _Thread_Executing = heir;                                         
 80064e8:	59 6d 00 10 	sw (r11+16),r13                                
    /*                                                                
     *  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 )                                          
 80064ec:	45 ac 00 33 	be r13,r12,80065b8 <_Thread_Dispatch+0x17c>    
     */                                                               
#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 )
 80064f0:	29 a1 00 78 	lw r1,(r13+120)                                
 80064f4:	5c 35 00 03 	bne r1,r21,8006500 <_Thread_Dispatch+0xc4>     
      heir->cpu_time_budget = _Thread_Ticks_per_timeslice;            
 80064f8:	29 e1 00 00 	lw r1,(r15+0)                                  
 80064fc:	59 a1 00 74 	sw (r13+116),r1                                
                                                                      
    _ISR_Enable( level );                                             
 8006500:	d0 03 00 00 	wcsr IE,r3                                     
 8006504:	ba 60 10 00 	mv r2,r19                                      
 8006508:	ba e0 08 00 	mv r1,r23                                      
 800650c:	fb ff f8 cd 	calli 8004840 <_TOD_Get_with_nanoseconds>      
  #ifdef RTEMS_SMP                                                    
    _Thread_Unnest_dispatch();                                        
  #endif                                                              
                                                                      
  _API_extensions_Run_post_switch( executing );                       
}                                                                     
 8006510:	2b 83 00 40 	lw r3,(sp+64)                                  
  const Timestamp64_Control *_start,                                  
  const Timestamp64_Control *_end,                                    
  Timestamp64_Control       *_result                                  
)                                                                     
{                                                                     
  *_result = *_end - *_start;                                         
 8006514:	29 82 00 84 	lw r2,(r12+132)                                
 8006518:	29 85 00 80 	lw r5,(r12+128)                                
 800651c:	2b 81 00 3c 	lw r1,(sp+60)                                  
 8006520:	b4 62 10 00 	add r2,r3,r2                                   
 8006524:	f4 62 20 00 	cmpgu r4,r3,r2                                 
 8006528:	b4 25 28 00 	add r5,r1,r5                                   
 800652c:	b4 85 28 00 	add r5,r4,r5                                   
static inline void _Timestamp64_implementation_Add_to(                
  Timestamp64_Control       *_time,                                   
  const Timestamp64_Control *_add                                     
)                                                                     
{                                                                     
  *_time += *_add;                                                    
 8006530:	29 64 00 24 	lw r4,(r11+36)                                 
 8006534:	29 66 00 20 	lw r6,(r11+32)                                 
 8006538:	c8 44 20 00 	sub r4,r2,r4                                   
 800653c:	f4 82 10 00 	cmpgu r2,r4,r2                                 
 8006540:	c8 a6 28 00 	sub r5,r5,r6                                   
 8006544:	c8 a2 10 00 	sub r2,r5,r2                                   
 8006548:	59 82 00 80 	sw (r12+128),r2                                
 800654c:	59 84 00 84 	sw (r12+132),r4                                
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
        _Thread_Time_of_last_context_switch = uptime;                 
 8006550:	59 63 00 24 	sw (r11+36),r3                                 
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
 8006554:	2a 43 00 00 	lw r3,(r18+0)                                  
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
        _Thread_Time_of_last_context_switch = uptime;                 
 8006558:	59 61 00 20 	sw (r11+32),r1                                 
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
 800655c:	44 60 00 05 	be r3,r0,8006570 <_Thread_Dispatch+0x134>      <== NEVER TAKEN
      executing->libc_reent = *_Thread_libc_reent;                    
 8006560:	28 61 00 00 	lw r1,(r3+0)                                   
 8006564:	59 81 01 10 	sw (r12+272),r1                                
      *_Thread_libc_reent = heir->libc_reent;                         
 8006568:	29 a1 01 10 	lw r1,(r13+272)                                
 800656c:	58 61 00 00 	sw (r3+0),r1                                   
  #ifdef RTEMS_SMP                                                    
    _Thread_Unnest_dispatch();                                        
  #endif                                                              
                                                                      
  _API_extensions_Run_post_switch( executing );                       
}                                                                     
 8006570:	2a 2e 00 00 	lw r14,(r17+0)                                 
 8006574:	e0 00 00 06 	bi 800658c <_Thread_Dispatch+0x150>            
    const User_extensions_Switch_control *extension =                 
      (const User_extensions_Switch_control *) node;                  
                                                                      
    (*extension->thread_switch)( executing, heir );                   
 8006578:	29 c3 00 08 	lw r3,(r14+8)                                  
 800657c:	b9 80 08 00 	mv r1,r12                                      
 8006580:	b9 a0 10 00 	mv r2,r13                                      
 8006584:	d8 60 00 00 	call r3                                        
 8006588:	29 ce 00 00 	lw r14,(r14+0)                                 
{                                                                     
  const Chain_Control *chain = &_User_extensions_Switches_list;       
  const Chain_Node    *tail = _Chain_Immutable_tail( chain );         
  const Chain_Node    *node = _Chain_Immutable_first( chain );        
                                                                      
  while ( node != tail ) {                                            
 800658c:	5d d0 ff fb 	bne r14,r16,8006578 <_Thread_Dispatch+0x13c>   
    if ( executing->fp_context != NULL )                              
      _Context_Save_fp( &executing->fp_context );                     
#endif                                                                
#endif                                                                
                                                                      
    _Context_Switch( &executing->Registers, &heir->Registers );       
 8006590:	35 81 00 bc 	addi r1,r12,188                                
 8006594:	35 a2 00 bc 	addi r2,r13,188                                
 8006598:	f8 00 05 0f 	calli 80079d4 <_CPU_Context_switch>            
    if ( executing->fp_context != NULL )                              
      _Context_Restore_fp( &executing->fp_context );                  
#endif                                                                
#endif                                                                
                                                                      
    executing = _Thread_Executing;                                    
 800659c:	29 6c 00 10 	lw r12,(r11+16)                                
                                                                      
    _ISR_Disable( level );                                            
 80065a0:	90 00 18 00 	rcsr r3,IE                                     
 80065a4:	a0 76 08 00 	and r1,r3,r22                                  
 80065a8:	d0 01 00 00 	wcsr IE,r1                                     
  /*                                                                  
   *  Now determine if we need to perform a dispatch on the current CPU.
   */                                                                 
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Thread_Dispatch_necessary == true ) {                      
 80065ac:	41 61 00 0c 	lbu r1,(r11+12)                                
 80065b0:	20 21 00 ff 	andi r1,r1,0xff                                
 80065b4:	5c 20 ff ca 	bne r1,r0,80064dc <_Thread_Dispatch+0xa0>      
 80065b8:	78 01 08 01 	mvhi r1,0x801                                  
 80065bc:	38 21 d8 e0 	ori r1,r1,0xd8e0                               
 80065c0:	58 20 00 00 	sw (r1+0),r0                                   
post_switch:                                                          
  #ifndef RTEMS_SMP                                                   
    _Thread_Dispatch_set_disable_level( 0 );                          
  #endif                                                              
                                                                      
  _ISR_Enable( level );                                               
 80065c4:	d0 03 00 00 	wcsr IE,r3                                     
  #ifdef RTEMS_SMP                                                    
    _Thread_Unnest_dispatch();                                        
  #endif                                                              
                                                                      
  _API_extensions_Run_post_switch( executing );                       
}                                                                     
 80065c8:	78 01 08 01 	mvhi r1,0x801                                  
 80065cc:	38 21 d9 50 	ori r1,r1,0xd950                               
{                                                                     
  const Chain_Control *chain = &_API_extensions_Post_switch_list;     
  const Chain_Node    *tail = _Chain_Immutable_tail( chain );         
  const Chain_Node    *node = _Chain_Immutable_first( chain );        
                                                                      
  while ( node != tail ) {                                            
 80065d0:	78 0d 08 01 	mvhi r13,0x801                                 
 80065d4:	28 2b 00 00 	lw r11,(r1+0)                                  
 80065d8:	39 ad d9 54 	ori r13,r13,0xd954                             
 80065dc:	e0 00 00 05 	bi 80065f0 <_Thread_Dispatch+0x1b4>            
    const API_extensions_Post_switch_control *post_switch =           
      (const API_extensions_Post_switch_control *) node;              
                                                                      
    (*post_switch->hook)( executing );                                
 80065e0:	29 62 00 08 	lw r2,(r11+8)                                  
 80065e4:	b9 80 08 00 	mv r1,r12                                      
 80065e8:	d8 40 00 00 	call r2                                        
 80065ec:	29 6b 00 00 	lw r11,(r11+0)                                 
{                                                                     
  const Chain_Control *chain = &_API_extensions_Post_switch_list;     
  const Chain_Node    *tail = _Chain_Immutable_tail( chain );         
  const Chain_Node    *node = _Chain_Immutable_first( chain );        
                                                                      
  while ( node != tail ) {                                            
 80065f0:	5d 6d ff fc 	bne r11,r13,80065e0 <_Thread_Dispatch+0x1a4>   
 80065f4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80065f8:	2b 8b 00 38 	lw r11,(sp+56)                                 
 80065fc:	2b 8c 00 34 	lw r12,(sp+52)                                 
 8006600:	2b 8d 00 30 	lw r13,(sp+48)                                 
 8006604:	2b 8e 00 2c 	lw r14,(sp+44)                                 
 8006608:	2b 8f 00 28 	lw r15,(sp+40)                                 
 800660c:	2b 90 00 24 	lw r16,(sp+36)                                 
 8006610:	2b 91 00 20 	lw r17,(sp+32)                                 
 8006614:	2b 92 00 1c 	lw r18,(sp+28)                                 
 8006618:	2b 93 00 18 	lw r19,(sp+24)                                 
 800661c:	2b 94 00 14 	lw r20,(sp+20)                                 
 8006620:	2b 95 00 10 	lw r21,(sp+16)                                 
 8006624:	2b 96 00 0c 	lw r22,(sp+12)                                 
 8006628:	2b 97 00 08 	lw r23,(sp+8)                                  
 800662c:	37 9c 00 40 	addi sp,sp,64                                  
 8006630:	c3 a0 00 00 	ret                                            
                                                                      

0800b644 <_Thread_Handler>: #define INIT_NAME __main #define EXECUTE_GLOBAL_CONSTRUCTORS #endif void _Thread_Handler( void ) {
 800b644:	37 9c ff f4 	addi sp,sp,-12                                 
 800b648:	5b 8b 00 0c 	sw (sp+12),r11                                 
 800b64c:	5b 8c 00 08 	sw (sp+8),r12                                  
 800b650:	5b 9d 00 04 	sw (sp+4),ra                                   
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    static bool doneConstructors;                                     
    bool doCons;                                                      
  #endif                                                              
                                                                      
  executing = _Thread_Executing;                                      
 800b654:	78 01 08 01 	mvhi r1,0x801                                  
 800b658:	38 21 da 60 	ori r1,r1,0xda60                               
 800b65c:	28 2b 00 10 	lw r11,(r1+16)                                 
                                                                      
  /*                                                                  
   * have to put level into a register for those cpu's that use       
   * inline asm here                                                  
   */                                                                 
  level = executing->Start.isr_level;                                 
 800b660:	29 61 00 a8 	lw r1,(r11+168)                                
  _ISR_Set_level(level);                                              
 800b664:	64 21 00 00 	cmpei r1,r1,0                                  
 800b668:	d0 01 00 00 	wcsr IE,r1                                     
      doCons = !doneConstructors                                      
        && _Objects_Get_API( executing->Object.id ) != OBJECTS_INTERNAL_API;
      if (doCons)                                                     
        doneConstructors = true;                                      
    #else                                                             
      doCons = !doneConstructors;                                     
 800b66c:	78 01 08 01 	mvhi r1,0x801                                  
 800b670:	38 21 d7 2c 	ori r1,r1,0xd72c                               
 800b674:	40 2c 00 00 	lbu r12,(r1+0)                                 
      doneConstructors = true;                                        
 800b678:	34 02 00 01 	mvi r2,1                                       
 800b67c:	30 22 00 00 	sb (r1+0),r2                                   
  );                                                                  
}                                                                     
                                                                      
static inline void _User_extensions_Thread_begin( Thread_Control *executing )
{                                                                     
  _User_extensions_Iterate(                                           
 800b680:	78 02 08 00 	mvhi r2,0x800                                  
 800b684:	b9 60 08 00 	mv r1,r11                                      
 800b688:	38 42 73 3c 	ori r2,r2,0x733c                               
 800b68c:	fb ff ef 48 	calli 80073ac <_User_extensions_Iterate>       
  _User_extensions_Thread_begin( executing );                         
                                                                      
  /*                                                                  
   *  At this point, the dispatch disable level BETTER be 1.          
   */                                                                 
  _Thread_Enable_dispatch();                                          
 800b690:	fb ff eb e9 	calli 8006634 <_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 (doCons) /* && (volatile void *)_init) */ {                    
 800b694:	5d 80 00 02 	bne r12,r0,800b69c <_Thread_Handler+0x58>      
      INIT_NAME ();                                                   
 800b698:	fb ff d2 5a 	calli 8000000 <RamBase>                        
        _Thread_Enable_dispatch();                                    
      #endif                                                          
    }                                                                 
 #endif                                                               
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
 800b69c:	29 61 00 90 	lw r1,(r11+144)                                
 800b6a0:	5c 20 00 05 	bne r1,r0,800b6b4 <_Thread_Handler+0x70>       <== NEVER TAKEN
    executing->Wait.return_argument =                                 
      (*(Thread_Entry_numeric) executing->Start.entry_point)(         
 800b6a4:	29 62 00 8c 	lw r2,(r11+140)                                
 800b6a8:	29 61 00 98 	lw r1,(r11+152)                                
 800b6ac:	d8 40 00 00 	call r2                                        
      #endif                                                          
    }                                                                 
 #endif                                                               
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
    executing->Wait.return_argument =                                 
 800b6b0:	59 61 00 28 	sw (r11+40),r1                                 
  }                                                                   
}                                                                     
                                                                      
static inline void _User_extensions_Thread_exitted( Thread_Control *executing )
{                                                                     
  _User_extensions_Iterate(                                           
 800b6b4:	78 02 08 00 	mvhi r2,0x800                                  
 800b6b8:	b9 60 08 00 	mv r1,r11                                      
 800b6bc:	38 42 73 5c 	ori r2,r2,0x735c                               
 800b6c0:	fb ff ef 3b 	calli 80073ac <_User_extensions_Iterate>       
   *  able to fit in a (void *).                                      
   */                                                                 
                                                                      
  _User_extensions_Thread_exitted( executing );                       
                                                                      
  _Internal_error_Occurred(                                           
 800b6c4:	34 01 00 00 	mvi r1,0                                       
 800b6c8:	34 02 00 01 	mvi r2,1                                       
 800b6cc:	34 03 00 05 	mvi r3,5                                       
 800b6d0:	fb ff e5 f0 	calli 8004e90 <_Internal_error_Occurred>       
                                                                      

0800693c <_Thread_Handler_initialization>: #if defined(RTEMS_SMP) #include <rtems/bspsmp.h> #endif void _Thread_Handler_initialization(void) {
 800693c:	37 9c ff f4 	addi sp,sp,-12                                 
 8006940:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8006944:	5b 8c 00 08 	sw (sp+8),r12                                  
 8006948:	5b 9d 00 04 	sw (sp+4),ra                                   
  uint32_t ticks_per_timeslice =                                      
 800694c:	78 01 08 01 	mvhi r1,0x801                                  
 8006950:	38 21 b2 0c 	ori r1,r1,0xb20c                               
  #if defined(RTEMS_MULTIPROCESSING)                                  
    uint32_t maximum_proxies =                                        
      _Configuration_MP_table->maximum_proxies;                       
  #endif                                                              
                                                                      
  if ( rtems_configuration_get_stack_allocate_hook() == NULL ||       
 8006954:	28 23 00 28 	lw r3,(r1+40)                                  
  #include <rtems/bspsmp.h>                                           
#endif                                                                
                                                                      
void _Thread_Handler_initialization(void)                             
{                                                                     
  uint32_t ticks_per_timeslice =                                      
 8006958:	28 2b 00 14 	lw r11,(r1+20)                                 
    rtems_configuration_get_ticks_per_timeslice();                    
  uint32_t maximum_extensions =                                       
 800695c:	28 2c 00 08 	lw r12,(r1+8)                                  
    rtems_configuration_get_maximum_extensions();                     
  rtems_stack_allocate_init_hook stack_allocate_init_hook =           
 8006960:	28 22 00 24 	lw r2,(r1+36)                                  
  #if defined(RTEMS_MULTIPROCESSING)                                  
    uint32_t maximum_proxies =                                        
      _Configuration_MP_table->maximum_proxies;                       
  #endif                                                              
                                                                      
  if ( rtems_configuration_get_stack_allocate_hook() == NULL ||       
 8006964:	44 60 00 03 	be r3,r0,8006970 <_Thread_Handler_initialization+0x34><== NEVER TAKEN
 8006968:	28 23 00 2c 	lw r3,(r1+44)                                  
 800696c:	5c 60 00 05 	bne r3,r0,8006980 <_Thread_Handler_initialization+0x44>
       rtems_configuration_get_stack_free_hook() == NULL)             
    _Internal_error_Occurred(                                         
 8006970:	34 01 00 00 	mvi r1,0                                       
 8006974:	34 02 00 01 	mvi r2,1                                       
 8006978:	34 03 00 0e 	mvi r3,14                                      
 800697c:	fb ff f9 45 	calli 8004e90 <_Internal_error_Occurred>       
      INTERNAL_ERROR_CORE,                                            
      true,                                                           
      INTERNAL_ERROR_BAD_STACK_HOOK                                   
    );                                                                
                                                                      
  if ( stack_allocate_init_hook != NULL )                             
 8006980:	44 40 00 03 	be r2,r0,800698c <_Thread_Handler_initialization+0x50>
    (*stack_allocate_init_hook)( rtems_configuration_get_stack_space_size() );
 8006984:	28 21 00 04 	lw r1,(r1+4)                                   
 8006988:	d8 40 00 00 	call r2                                        
                                                                      
  _Thread_Dispatch_necessary = false;                                 
 800698c:	78 01 08 01 	mvhi r1,0x801                                  
 8006990:	38 21 da 60 	ori r1,r1,0xda60                               
 8006994:	30 20 00 0c 	sb (r1+12),r0                                  
  _Thread_Executing         = NULL;                                   
 8006998:	58 20 00 10 	sw (r1+16),r0                                  
  _Thread_Heir              = NULL;                                   
 800699c:	58 20 00 14 	sw (r1+20),r0                                  
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )        
  _Thread_Allocated_fp      = NULL;                                   
#endif                                                                
                                                                      
  _Thread_Maximum_extensions = maximum_extensions;                    
 80069a0:	78 01 08 01 	mvhi r1,0x801                                  
 80069a4:	38 21 d9 5c 	ori r1,r1,0xd95c                               
 80069a8:	58 2c 00 00 	sw (r1+0),r12                                  
                                                                      
  _Thread_Ticks_per_timeslice  = ticks_per_timeslice;                 
 80069ac:	78 01 08 01 	mvhi r1,0x801                                  
 80069b0:	38 21 d8 78 	ori r1,r1,0xd878                               
 80069b4:	58 2b 00 00 	sw (r1+0),r11                                  
  #if defined(RTEMS_MULTIPROCESSING)                                  
    if ( _System_state_Is_multiprocessing )                           
      maximum_internal_threads += 1;                                  
  #endif                                                              
                                                                      
  _Objects_Initialize_information(                                    
 80069b8:	78 01 08 01 	mvhi r1,0x801                                  
 80069bc:	38 21 d9 d0 	ori r1,r1,0xd9d0                               
 80069c0:	34 02 00 01 	mvi r2,1                                       
 80069c4:	34 03 00 01 	mvi r3,1                                       
 80069c8:	34 04 00 01 	mvi r4,1                                       
 80069cc:	34 05 01 28 	mvi r5,296                                     
 80069d0:	34 06 00 00 	mvi r6,0                                       
 80069d4:	34 07 00 08 	mvi r7,8                                       
 80069d8:	fb ff fb 1d 	calli 800564c <_Objects_Initialize_information>
      false,                      /* true if this is a global object class */
      NULL                        /* Proxy extraction support callout */
    #endif                                                            
  );                                                                  
                                                                      
}                                                                     
 80069dc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80069e0:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 80069e4:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80069e8:	37 9c 00 0c 	addi sp,sp,12                                  
 80069ec:	c3 a0 00 00 	ret                                            
                                                                      

08006c80 <_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 ) {
 8006c80:	37 9c ff cc 	addi sp,sp,-52                                 
 8006c84:	5b 8b 00 34 	sw (sp+52),r11                                 
 8006c88:	5b 8c 00 30 	sw (sp+48),r12                                 
 8006c8c:	5b 8d 00 2c 	sw (sp+44),r13                                 
 8006c90:	5b 8e 00 28 	sw (sp+40),r14                                 
 8006c94:	5b 8f 00 24 	sw (sp+36),r15                                 
 8006c98:	5b 90 00 20 	sw (sp+32),r16                                 
 8006c9c:	5b 91 00 1c 	sw (sp+28),r17                                 
 8006ca0:	5b 92 00 18 	sw (sp+24),r18                                 
 8006ca4:	5b 93 00 14 	sw (sp+20),r19                                 
 8006ca8:	5b 94 00 10 	sw (sp+16),r20                                 
 8006cac:	5b 95 00 0c 	sw (sp+12),r21                                 
 8006cb0:	5b 96 00 08 	sw (sp+8),r22                                  
 8006cb4:	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;                        
 8006cb8:	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                                       
)                                                                     
{                                                                     
 8006cbc:	b8 20 68 00 	mv r13,r1                                      
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
 8006cc0:	34 41 00 3c 	addi r1,r2,60                                  
                                                                      
  head->next = tail;                                                  
 8006cc4:	58 41 00 38 	sw (r2+56),r1                                  
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
 8006cc8:	34 41 00 38 	addi r1,r2,56                                  
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
 8006ccc:	58 41 00 40 	sw (r2+64),r1                                  
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
 8006cd0:	58 40 00 3c 	sw (r2+60),r0                                  
 8006cd4:	b8 40 60 00 	mv r12,r2                                      
                                                                      
RTEMS_INLINE_ROUTINE uint32_t   _Thread_queue_Header_number (         
  Priority_Control the_priority                                       
)                                                                     
{                                                                     
  return (the_priority / TASK_QUEUE_DATA_PRIORITIES_PER_HEADER);      
 8006cd8:	ba 00 08 00 	mv r1,r16                                      
 8006cdc:	34 02 00 06 	mvi r2,6                                       
 8006ce0:	b8 60 a8 00 	mv r21,r3                                      
 8006ce4:	f8 00 4d a3 	calli 801a370 <__lshrsi3>                      
 8006ce8:	b8 20 70 00 	mv r14,r1                                      
  the_thread->Wait.queue = the_thread_queue;                          
  _ISR_Enable( level );                                               
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
                                                                      
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
 8006cec:	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 );      
 8006cf0:	22 01 00 20 	andi r1,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 ];  
  block_state  = the_thread_queue->state;                             
 8006cf4:	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;                         
 8006cf8:	3a 52 d0 d8 	ori r18,r18,0xd0d8                             
                                                                      
  _ISR_Disable( level );                                              
 8006cfc:	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 ) )                  
 8006d00:	5c 20 00 2e 	bne r1,r0,8006db8 <_Thread_queue_Enqueue_priority+0x138>
    goto restart_reverse_search;                                      
                                                                      
restart_forward_search:                                               
  search_priority = PRIORITY_MINIMUM - 1;                             
  _ISR_Disable( level );                                              
 8006d04:	34 14 ff fe 	mvi r20,-2                                     
 8006d08:	90 00 78 00 	rcsr r15,IE                                    
 8006d0c:	a1 f4 90 00 	and r18,r15,r20                                
 8006d10:	d0 12 00 00 	wcsr IE,r18                                    
   *                                                                  
   *  WARNING! Returning with interrupts disabled!                    
   */                                                                 
  *level_p = level;                                                   
  return the_thread_queue->sync_state;                                
}                                                                     
 8006d14:	34 02 00 01 	mvi r2,1                                       
 8006d18:	b9 c0 08 00 	mv r1,r14                                      
 8006d1c:	f8 00 4d 47 	calli 801a238 <__ashlsi3>                      
 8006d20:	b4 2e 08 00 	add r1,r1,r14                                  
 8006d24:	34 02 00 02 	mvi r2,2                                       
 8006d28:	f8 00 4d 44 	calli 801a238 <__ashlsi3>                      
 8006d2c:	b5 a1 08 00 	add r1,r13,r1                                  
    goto restart_reverse_search;                                      
                                                                      
restart_forward_search:                                               
  search_priority = PRIORITY_MINIMUM - 1;                             
  _ISR_Disable( level );                                              
  search_thread = (Thread_Control *) _Chain_First( header );          
 8006d30:	28 2b 00 00 	lw r11,(r1+0)                                  
                                                                      
  if ( _Thread_queue_Is_reverse_search( priority ) )                  
    goto restart_reverse_search;                                      
                                                                      
restart_forward_search:                                               
  search_priority = PRIORITY_MINIMUM - 1;                             
 8006d34:	34 11 ff ff 	mvi r17,-1                                     
  _ISR_Disable( level );                                              
  search_thread = (Thread_Control *) _Chain_First( header );          
  while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {  
 8006d38:	e0 00 00 0b 	bi 8006d64 <_Thread_queue_Enqueue_priority+0xe4>
    search_priority = search_thread->current_priority;                
 8006d3c:	29 71 00 14 	lw r17,(r11+20)                                
    if ( priority <= search_priority )                                
 8006d40:	52 30 00 12 	bgeu r17,r16,8006d88 <_Thread_queue_Enqueue_priority+0x108>
      break;                                                          
    search_priority = search_thread->current_priority;                
    if ( priority <= search_priority )                                
      break;                                                          
#endif                                                                
    _ISR_Flash( level );                                              
 8006d44:	d0 0f 00 00 	wcsr IE,r15                                    
 8006d48:	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);                     
 8006d4c:	29 61 00 10 	lw r1,(r11+16)                                 
 8006d50:	a2 61 08 00 	and r1,r19,r1                                  
    if ( !_States_Are_set( search_thread->current_state, block_state) ) {
 8006d54:	5c 20 00 03 	bne r1,r0,8006d60 <_Thread_queue_Enqueue_priority+0xe0><== ALWAYS TAKEN
      _ISR_Enable( level );                                           
 8006d58:	d0 0f 00 00 	wcsr IE,r15                                    <== NOT EXECUTED
      goto restart_forward_search;                                    
 8006d5c:	e3 ff ff eb 	bi 8006d08 <_Thread_queue_Enqueue_priority+0x88><== NOT EXECUTED
    }                                                                 
    search_thread =                                                   
       (Thread_Control *)search_thread->Object.Node.next;             
 8006d60:	29 6b 00 00 	lw r11,(r11+0)                                 
RTEMS_INLINE_ROUTINE bool _Chain_Is_tail(                             
  const Chain_Control *the_chain,                                     
  const Chain_Node    *the_node                                       
)                                                                     
{                                                                     
  return (the_node == _Chain_Immutable_tail( the_chain ));            
 8006d64:	34 02 00 01 	mvi r2,1                                       
 8006d68:	b9 c0 08 00 	mv r1,r14                                      
 8006d6c:	f8 00 4d 33 	calli 801a238 <__ashlsi3>                      
 8006d70:	b4 2e 08 00 	add r1,r1,r14                                  
 8006d74:	34 02 00 02 	mvi r2,2                                       
 8006d78:	f8 00 4d 30 	calli 801a238 <__ashlsi3>                      
 8006d7c:	b5 a1 08 00 	add r1,r13,r1                                  
 8006d80:	34 21 00 04 	addi r1,r1,4                                   
                                                                      
restart_forward_search:                                               
  search_priority = PRIORITY_MINIMUM - 1;                             
  _ISR_Disable( level );                                              
  search_thread = (Thread_Control *) _Chain_First( header );          
  while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {  
 8006d84:	5d 61 ff ee 	bne r11,r1,8006d3c <_Thread_queue_Enqueue_priority+0xbc>
    }                                                                 
    search_thread =                                                   
       (Thread_Control *)search_thread->Object.Node.next;             
  }                                                                   
                                                                      
  if ( the_thread_queue->sync_state !=                                
 8006d88:	29 a3 00 30 	lw r3,(r13+48)                                 
 8006d8c:	34 02 00 01 	mvi r2,1                                       
 8006d90:	b9 e0 08 00 	mv r1,r15                                      
 8006d94:	5c 62 00 3f 	bne r3,r2,8006e90 <_Thread_queue_Enqueue_priority+0x210><== NEVER TAKEN
       THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )                   
    goto synchronize;                                                 
                                                                      
  the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
 8006d98:	59 a0 00 30 	sw (r13+48),r0                                 
                                                                      
  if ( priority == search_priority )                                  
 8006d9c:	46 11 00 36 	be r16,r17,8006e74 <_Thread_queue_Enqueue_priority+0x1f4>
    goto equal_priority;                                              
                                                                      
  search_node   = (Chain_Node *) search_thread;                       
  previous_node = search_node->previous;                              
 8006da0:	29 61 00 04 	lw r1,(r11+4)                                  
  the_node      = (Chain_Node *) the_thread;                          
                                                                      
  the_node->next         = search_node;                               
 8006da4:	59 8b 00 00 	sw (r12+0),r11                                 
  the_node->previous     = previous_node;                             
 8006da8:	59 81 00 04 	sw (r12+4),r1                                  
  previous_node->next    = the_node;                                  
 8006dac:	58 2c 00 00 	sw (r1+0),r12                                  
  search_node->previous  = the_node;                                  
 8006db0:	59 6c 00 04 	sw (r11+4),r12                                 
 8006db4:	e0 00 00 2c 	bi 8006e64 <_Thread_queue_Enqueue_priority+0x1e4>
  the_thread->Wait.queue = the_thread_queue;                          
  _ISR_Enable( level );                                               
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
                                                                      
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
 8006db8:	42 51 00 00 	lbu r17,(r18+0)                                
 8006dbc:	36 31 00 01 	addi r17,r17,1                                 
                                                                      
  _ISR_Disable( level );                                              
 8006dc0:	90 00 78 00 	rcsr r15,IE                                    
 8006dc4:	a1 f6 a0 00 	and r20,r15,r22                                
 8006dc8:	d0 14 00 00 	wcsr IE,r20                                    
   *                                                                  
   *  WARNING! Returning with interrupts disabled!                    
   */                                                                 
  *level_p = level;                                                   
  return the_thread_queue->sync_state;                                
}                                                                     
 8006dcc:	34 02 00 01 	mvi r2,1                                       
 8006dd0:	b9 c0 08 00 	mv r1,r14                                      
 8006dd4:	f8 00 4d 19 	calli 801a238 <__ashlsi3>                      
 8006dd8:	b4 2e 08 00 	add r1,r1,r14                                  
 8006ddc:	34 02 00 02 	mvi r2,2                                       
 8006de0:	f8 00 4d 16 	calli 801a238 <__ashlsi3>                      
 8006de4:	b5 a1 08 00 	add r1,r13,r1                                  
                                                                      
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
                                                                      
  _ISR_Disable( level );                                              
  search_thread = (Thread_Control *) _Chain_Last( header );           
 8006de8:	28 2b 00 08 	lw r11,(r1+8)                                  
  while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {  
 8006dec:	e0 00 00 0b 	bi 8006e18 <_Thread_queue_Enqueue_priority+0x198>
    search_priority = search_thread->current_priority;                
 8006df0:	29 71 00 14 	lw r17,(r11+20)                                
    if ( priority >= search_priority )                                
 8006df4:	52 11 00 11 	bgeu r16,r17,8006e38 <_Thread_queue_Enqueue_priority+0x1b8>
      break;                                                          
    search_priority = search_thread->current_priority;                
    if ( priority >= search_priority )                                
      break;                                                          
#endif                                                                
    _ISR_Flash( level );                                              
 8006df8:	d0 0f 00 00 	wcsr IE,r15                                    
 8006dfc:	d0 14 00 00 	wcsr IE,r20                                    
 8006e00:	29 61 00 10 	lw r1,(r11+16)                                 
 8006e04:	a2 61 08 00 	and r1,r19,r1                                  
    if ( !_States_Are_set( search_thread->current_state, block_state) ) {
 8006e08:	5c 20 00 03 	bne r1,r0,8006e14 <_Thread_queue_Enqueue_priority+0x194>
      _ISR_Enable( level );                                           
 8006e0c:	d0 0f 00 00 	wcsr IE,r15                                    
      goto restart_reverse_search;                                    
 8006e10:	e3 ff ff ea 	bi 8006db8 <_Thread_queue_Enqueue_priority+0x138>
    }                                                                 
    search_thread = (Thread_Control *)                                
                         search_thread->Object.Node.previous;         
 8006e14:	29 6b 00 04 	lw r11,(r11+4)                                 
RTEMS_INLINE_ROUTINE bool _Chain_Is_head(                             
  const Chain_Control *the_chain,                                     
  const Chain_Node    *the_node                                       
)                                                                     
{                                                                     
  return (the_node == _Chain_Immutable_head( the_chain ));            
 8006e18:	34 02 00 01 	mvi r2,1                                       
 8006e1c:	b9 c0 08 00 	mv r1,r14                                      
 8006e20:	f8 00 4d 06 	calli 801a238 <__ashlsi3>                      
 8006e24:	b4 2e 08 00 	add r1,r1,r14                                  
 8006e28:	34 02 00 02 	mvi r2,2                                       
 8006e2c:	f8 00 4d 03 	calli 801a238 <__ashlsi3>                      
 8006e30:	b5 a1 08 00 	add r1,r13,r1                                  
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
                                                                      
  _ISR_Disable( level );                                              
  search_thread = (Thread_Control *) _Chain_Last( header );           
  while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {  
 8006e34:	5d 61 ff ef 	bne r11,r1,8006df0 <_Thread_queue_Enqueue_priority+0x170>
    }                                                                 
    search_thread = (Thread_Control *)                                
                         search_thread->Object.Node.previous;         
  }                                                                   
                                                                      
  if ( the_thread_queue->sync_state !=                                
 8006e38:	29 a3 00 30 	lw r3,(r13+48)                                 
 8006e3c:	34 02 00 01 	mvi r2,1                                       
 8006e40:	b9 e0 08 00 	mv r1,r15                                      
 8006e44:	5c 62 00 13 	bne r3,r2,8006e90 <_Thread_queue_Enqueue_priority+0x210><== NEVER TAKEN
       THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )                   
    goto synchronize;                                                 
                                                                      
  the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
 8006e48:	59 a0 00 30 	sw (r13+48),r0                                 
                                                                      
  if ( priority == search_priority )                                  
 8006e4c:	46 11 00 0a 	be r16,r17,8006e74 <_Thread_queue_Enqueue_priority+0x1f4>
    goto equal_priority;                                              
                                                                      
  search_node = (Chain_Node *) search_thread;                         
  next_node   = search_node->next;                                    
 8006e50:	29 61 00 00 	lw r1,(r11+0)                                  
  the_node    = (Chain_Node *) the_thread;                            
                                                                      
  the_node->next          = next_node;                                
  the_node->previous      = search_node;                              
 8006e54:	59 8b 00 04 	sw (r12+4),r11                                 
                                                                      
  search_node = (Chain_Node *) search_thread;                         
  next_node   = search_node->next;                                    
  the_node    = (Chain_Node *) the_thread;                            
                                                                      
  the_node->next          = next_node;                                
 8006e58:	59 81 00 00 	sw (r12+0),r1                                  
  the_node->previous      = search_node;                              
  search_node->next       = the_node;                                 
 8006e5c:	59 6c 00 00 	sw (r11+0),r12                                 
  next_node->previous    = the_node;                                  
 8006e60:	58 2c 00 04 	sw (r1+4),r12                                  
  the_thread->Wait.queue = the_thread_queue;                          
 8006e64:	59 8d 00 44 	sw (r12+68),r13                                
  _ISR_Enable( level );                                               
 8006e68:	d0 0f 00 00 	wcsr IE,r15                                    
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
 8006e6c:	34 01 00 01 	mvi r1,1                                       
 8006e70:	e0 00 00 0a 	bi 8006e98 <_Thread_queue_Enqueue_priority+0x218>
                                                                      
equal_priority:               /* add at end of priority group */      
  search_node   = _Chain_Tail( &search_thread->Wait.Block2n );        
  previous_node = search_node->previous;                              
 8006e74:	29 61 00 40 	lw r1,(r11+64)                                 
  the_thread->Wait.queue = the_thread_queue;                          
  _ISR_Enable( level );                                               
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
                                                                      
equal_priority:               /* add at end of priority group */      
  search_node   = _Chain_Tail( &search_thread->Wait.Block2n );        
 8006e78:	35 62 00 3c 	addi r2,r11,60                                 
  previous_node = search_node->previous;                              
  the_node      = (Chain_Node *) the_thread;                          
                                                                      
  the_node->next         = search_node;                               
 8006e7c:	59 82 00 00 	sw (r12+0),r2                                  
  the_node->previous     = previous_node;                             
 8006e80:	59 81 00 04 	sw (r12+4),r1                                  
  previous_node->next    = the_node;                                  
 8006e84:	58 2c 00 00 	sw (r1+0),r12                                  
  search_node->previous  = the_node;                                  
 8006e88:	59 6c 00 40 	sw (r11+64),r12                                
 8006e8c:	e3 ff ff f6 	bi 8006e64 <_Thread_queue_Enqueue_priority+0x1e4>
   *  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;                                                   
 8006e90:	5a a1 00 00 	sw (r21+0),r1                                  <== NOT EXECUTED
  return the_thread_queue->sync_state;                                
 8006e94:	29 a1 00 30 	lw r1,(r13+48)                                 <== NOT EXECUTED
}                                                                     
 8006e98:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006e9c:	2b 8b 00 34 	lw r11,(sp+52)                                 
 8006ea0:	2b 8c 00 30 	lw r12,(sp+48)                                 
 8006ea4:	2b 8d 00 2c 	lw r13,(sp+44)                                 
 8006ea8:	2b 8e 00 28 	lw r14,(sp+40)                                 
 8006eac:	2b 8f 00 24 	lw r15,(sp+36)                                 
 8006eb0:	2b 90 00 20 	lw r16,(sp+32)                                 
 8006eb4:	2b 91 00 1c 	lw r17,(sp+28)                                 
 8006eb8:	2b 92 00 18 	lw r18,(sp+24)                                 
 8006ebc:	2b 93 00 14 	lw r19,(sp+20)                                 
 8006ec0:	2b 94 00 10 	lw r20,(sp+16)                                 
 8006ec4:	2b 95 00 0c 	lw r21,(sp+12)                                 
 8006ec8:	2b 96 00 08 	lw r22,(sp+8)                                  
 8006ecc:	37 9c 00 34 	addi sp,sp,52                                  
 8006ed0:	c3 a0 00 00 	ret                                            
                                                                      

08006fbc <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) {
 8006fbc:	37 9c ff ec 	addi sp,sp,-20                                 
 8006fc0:	5b 8b 00 10 	sw (sp+16),r11                                 
 8006fc4:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8006fc8:	5b 8d 00 08 	sw (sp+8),r13                                  
 8006fcc:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006fd0:	b8 20 58 00 	mv r11,r1                                      
 8006fd4:	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 )                                            
 8006fd8:	44 20 00 19 	be r1,r0,800703c <_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 ) {
 8006fdc:	28 22 00 34 	lw r2,(r1+52)                                  
 8006fe0:	34 01 00 01 	mvi r1,1                                       
 8006fe4:	5c 41 00 16 	bne r2,r1,800703c <_Thread_queue_Requeue+0x80> <== NEVER TAKEN
    Thread_queue_Control *tq = the_thread_queue;                      
    ISR_Level             level;                                      
    ISR_Level             level_ignored;                              
                                                                      
    _ISR_Disable( level );                                            
 8006fe8:	90 00 68 00 	rcsr r13,IE                                    
 8006fec:	34 01 ff fe 	mvi r1,-2                                      
 8006ff0:	a1 a1 08 00 	and r1,r13,r1                                  
 8006ff4:	d0 01 00 00 	wcsr IE,r1                                     
 8006ff8:	78 03 08 01 	mvhi r3,0x801                                  
 8006ffc:	38 63 bb a4 	ori r3,r3,0xbba4                               
 8007000:	29 82 00 10 	lw r2,(r12+16)                                 
 8007004:	28 61 00 00 	lw r1,(r3+0)                                   
 8007008:	a0 41 08 00 	and r1,r2,r1                                   
    if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
 800700c:	44 20 00 0b 	be r1,r0,8007038 <_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;
 8007010:	34 01 00 01 	mvi r1,1                                       
 8007014:	59 61 00 30 	sw (r11+48),r1                                 
      _Thread_queue_Enter_critical_section( tq );                     
      _Thread_queue_Extract_priority_helper( tq, the_thread, true );  
 8007018:	b9 80 10 00 	mv r2,r12                                      
 800701c:	b9 60 08 00 	mv r1,r11                                      
 8007020:	34 03 00 01 	mvi r3,1                                       
 8007024:	f8 00 0b ce 	calli 8009f5c <_Thread_queue_Extract_priority_helper>
      (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
 8007028:	b9 60 08 00 	mv r1,r11                                      
 800702c:	b9 80 10 00 	mv r2,r12                                      
 8007030:	37 83 00 14 	addi r3,sp,20                                  
 8007034:	fb ff ff 13 	calli 8006c80 <_Thread_queue_Enqueue_priority> 
    }                                                                 
    _ISR_Enable( level );                                             
 8007038:	d0 0d 00 00 	wcsr IE,r13                                    
  }                                                                   
}                                                                     
 800703c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8007040:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8007044:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8007048:	2b 8d 00 08 	lw r13,(sp+8)                                  
 800704c:	37 9c 00 14 	addi sp,sp,20                                  
 8007050:	c3 a0 00 00 	ret                                            
                                                                      

08007054 <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) {
 8007054:	37 9c ff f8 	addi sp,sp,-8                                  
 8007058:	5b 9d 00 04 	sw (sp+4),ra                                   
  Thread_Control       *the_thread;                                   
  Objects_Locations     location;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 800705c:	37 82 00 08 	addi r2,sp,8                                   
 8007060:	fb ff fd 81 	calli 8006664 <_Thread_Get>                    
  switch ( location ) {                                               
 8007064:	2b 82 00 08 	lw r2,(sp+8)                                   
 8007068:	5c 40 00 07 	bne r2,r0,8007084 <_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 );                    
 800706c:	f8 00 0b f8 	calli 800a04c <_Thread_queue_Process_timeout>  
   *                                                                  
   * This routine decrements the thread dispatch level.               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_decrement_disable_level(void)
  {                                                                   
    uint32_t level = _Thread_Dispatch_disable_level;                  
 8007070:	78 01 08 01 	mvhi r1,0x801                                  
 8007074:	38 21 d8 e0 	ori r1,r1,0xd8e0                               
 8007078:	28 22 00 00 	lw r2,(r1+0)                                   
                                                                      
    --level;                                                          
 800707c:	34 42 ff ff 	addi r2,r2,-1                                  
    _Thread_Dispatch_disable_level = level;                           
 8007080:	58 22 00 00 	sw (r1+0),r2                                   
      _Thread_Unnest_dispatch();                                      
      break;                                                          
  }                                                                   
}                                                                     
 8007084:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8007088:	37 9c 00 08 	addi sp,sp,8                                   
 800708c:	c3 a0 00 00 	ret                                            
                                                                      

08015648 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) {
 8015648:	37 9c ff a8 	addi sp,sp,-88                                 
 801564c:	5b 8b 00 40 	sw (sp+64),r11                                 
 8015650:	5b 8c 00 3c 	sw (sp+60),r12                                 
 8015654:	5b 8d 00 38 	sw (sp+56),r13                                 
 8015658:	5b 8e 00 34 	sw (sp+52),r14                                 
 801565c:	5b 8f 00 30 	sw (sp+48),r15                                 
 8015660:	5b 90 00 2c 	sw (sp+44),r16                                 
 8015664:	5b 91 00 28 	sw (sp+40),r17                                 
 8015668:	5b 92 00 24 	sw (sp+36),r18                                 
 801566c:	5b 93 00 20 	sw (sp+32),r19                                 
 8015670:	5b 94 00 1c 	sw (sp+28),r20                                 
 8015674:	5b 95 00 18 	sw (sp+24),r21                                 
 8015678:	5b 96 00 14 	sw (sp+20),r22                                 
 801567c:	5b 97 00 10 	sw (sp+16),r23                                 
 8015680:	5b 98 00 0c 	sw (sp+12),r24                                 
 8015684:	5b 99 00 08 	sw (sp+8),r25                                  
 8015688:	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;            
 801568c:	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                                             
)                                                                     
{                                                                     
 8015690:	b8 20 58 00 	mv r11,r1                                      
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 8015694:	37 82 00 54 	addi r2,sp,84                                  
 8015698:	37 81 00 50 	addi r1,sp,80                                  
 801569c:	37 8f 00 44 	addi r15,sp,68                                 
 80156a0:	37 91 00 48 	addi r17,sp,72                                 
static void _Timer_server_Process_tod_watchdogs(                      
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
 80156a4:	78 0d 08 03 	mvhi r13,0x803                                 
 80156a8:	5b 82 00 50 	sw (sp+80),r2                                  
  head->previous = NULL;                                              
 80156ac:	5b 80 00 54 	sw (sp+84),r0                                  
  tail->previous = head;                                              
 80156b0:	5b 81 00 58 	sw (sp+88),r1                                  
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 80156b4:	5b 91 00 44 	sw (sp+68),r17                                 
  head->previous = NULL;                                              
 80156b8:	5b 80 00 48 	sw (sp+72),r0                                  
  tail->previous = head;                                              
 80156bc:	5b 8f 00 4c 	sw (sp+76),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;                                    
 80156c0:	b8 20 c8 00 	mv r25,r1                                      
static void _Timer_server_Process_interval_watchdogs(                 
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;            
 80156c4:	3a 10 dd b8 	ori r16,r16,0xddb8                             
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
 80156c8:	35 73 00 30 	addi r19,r11,48                                
static void _Timer_server_Process_tod_watchdogs(                      
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
 80156cc:	39 ad dc 50 	ori r13,r13,0xdc50                             
     /*                                                               
      *  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 ); 
 80156d0:	35 6e 00 68 	addi r14,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 ) {       
 80156d4:	34 18 00 03 	mvi r24,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 );                                            
 80156d8:	34 12 ff fe 	mvi r18,-2                                     
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_tail(         
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return &the_chain->Tail.Node;                                       
 80156dc:	b8 40 b8 00 	mv r23,r2                                      
        _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;                                              
 80156e0:	34 16 00 01 	mvi r22,1                                      
                                                                      
static void _Timer_server_Stop_interval_system_watchdog(              
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );        
 80156e4:	35 75 00 08 	addi r21,r11,8                                 
                                                                      
static void _Timer_server_Stop_tod_system_watchdog(                   
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );             
 80156e8:	35 74 00 40 	addi r20,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;                                    
 80156ec:	59 79 00 78 	sw (r11+120),r25                               
static void _Timer_server_Process_interval_watchdogs(                 
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;            
 80156f0:	2a 02 00 00 	lw r2,(r16+0)                                  
                                                                      
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
 80156f4:	29 63 00 3c 	lw r3,(r11+60)                                 
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
 80156f8:	ba 60 08 00 	mv r1,r19                                      
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
 80156fc:	59 62 00 3c 	sw (r11+60),r2                                 
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
 8015700:	c8 43 10 00 	sub r2,r2,r3                                   
 8015704:	b9 e0 18 00 	mv r3,r15                                      
 8015708:	f8 00 14 ea 	calli 801aab0 <_Watchdog_Adjust_to_chain>      
 801570c:	78 05 08 03 	mvhi r5,0x803                                  
 8015710:	38 a5 6f 2c 	ori r5,r5,0x6f2c                               
 8015714:	28 a4 00 00 	lw r4,(r5+0)                                   
 8015718:	29 a1 00 00 	lw r1,(r13+0)                                  
 801571c:	29 a2 00 04 	lw r2,(r13+4)                                  
 8015720:	34 03 00 00 	mvi r3,0                                       
 8015724:	f8 00 51 0c 	calli 8029b54 <__divdi3>                       
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
  Watchdog_Interval last_snapshot = watchdogs->last_snapshot;         
 8015728:	29 64 00 74 	lw r4,(r11+116)                                
 801572c:	b8 40 60 00 	mv r12,r2                                      
  /*                                                                  
   *  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 ) {                                   
 8015730:	50 82 00 06 	bgeu r4,r2,8015748 <_Timer_server_Body+0x100>  
    /*                                                                
     *  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 );
 8015734:	b9 c0 08 00 	mv r1,r14                                      
 8015738:	c8 44 10 00 	sub r2,r2,r4                                   
 801573c:	b9 e0 18 00 	mv r3,r15                                      
 8015740:	f8 00 14 dc 	calli 801aab0 <_Watchdog_Adjust_to_chain>      
 8015744:	e0 00 00 06 	bi 801575c <_Timer_server_Body+0x114>          
                                                                      
  } else if ( snapshot < last_snapshot ) {                            
 8015748:	50 44 00 05 	bgeu r2,r4,801575c <_Timer_server_Body+0x114>  
     /*                                                               
      *  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 ); 
 801574c:	b9 c0 08 00 	mv r1,r14                                      
 8015750:	34 02 00 01 	mvi r2,1                                       
 8015754:	c8 8c 18 00 	sub r3,r4,r12                                  
 8015758:	f8 00 14 9f 	calli 801a9d4 <_Watchdog_Adjust>               
  }                                                                   
                                                                      
  watchdogs->last_snapshot = snapshot;                                
 801575c:	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 ) {                 
 8015760:	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 );
 8015764:	29 63 00 78 	lw r3,(r11+120)                                
 8015768:	b8 60 08 00 	mv r1,r3                                       
 801576c:	f8 00 03 74 	calli 801653c <_Chain_Get>                     
 8015770:	b8 20 10 00 	mv r2,r1                                       
                                                                      
    if ( timer == NULL ) {                                            
 8015774:	44 20 00 09 	be r1,r0,8015798 <_Timer_server_Body+0x150>    <== ALWAYS TAKEN
static void _Timer_server_Insert_timer(                               
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
 8015778:	28 23 00 38 	lw r3,(r1+56)                                  <== NOT EXECUTED
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
 801577c:	ba 60 08 00 	mv r1,r19                                      <== NOT EXECUTED
static void _Timer_server_Insert_timer(                               
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
 8015780:	44 6c 00 03 	be r3,r12,801578c <_Timer_server_Body+0x144>   <== NOT EXECUTED
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
 8015784:	5c 78 ff f8 	bne r3,r24,8015764 <_Timer_server_Body+0x11c>  <== NOT EXECUTED
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
 8015788:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 801578c:	34 42 00 10 	addi r2,r2,16                                  <== NOT EXECUTED
 8015790:	f8 00 14 ea 	calli 801ab38 <_Watchdog_Insert>               <== NOT EXECUTED
 8015794:	e3 ff ff f4 	bi 8015764 <_Timer_server_Body+0x11c>          <== 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 );                                            
 8015798:	90 00 10 00 	rcsr r2,IE                                     
 801579c:	a0 52 08 00 	and r1,r2,r18                                  
 80157a0:	d0 01 00 00 	wcsr IE,r1                                     
    if ( _Chain_Is_empty( insert_chain ) ) {                          
 80157a4:	2b 81 00 50 	lw r1,(sp+80)                                  
 80157a8:	5c 37 00 06 	bne r1,r23,80157c0 <_Timer_server_Body+0x178>  <== NEVER TAKEN
      ts->insert_chain = NULL;                                        
 80157ac:	59 60 00 78 	sw (r11+120),r0                                
      _ISR_Enable( level );                                           
 80157b0:	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 ) ) {                          
 80157b4:	2b 81 00 44 	lw r1,(sp+68)                                  
 80157b8:	5c 31 00 04 	bne r1,r17,80157c8 <_Timer_server_Body+0x180>  
 80157bc:	e0 00 00 15 	bi 8015810 <_Timer_server_Body+0x1c8>          
      ts->insert_chain = NULL;                                        
      _ISR_Enable( level );                                           
                                                                      
      break;                                                          
    } else {                                                          
      _ISR_Enable( level );                                           
 80157c0:	d0 02 00 00 	wcsr IE,r2                                     <== NOT EXECUTED
 80157c4:	e3 ff ff cb 	bi 80156f0 <_Timer_server_Body+0xa8>           <== 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 );                                        
 80157c8:	90 00 18 00 	rcsr r3,IE                                     
 80157cc:	a0 72 08 00 	and r1,r3,r18                                  
 80157d0:	d0 01 00 00 	wcsr IE,r1                                     
      initialized = false;                                            
    }                                                                 
  #endif                                                              
                                                                      
  return status;                                                      
}                                                                     
 80157d4:	2b 82 00 44 	lw r2,(sp+68)                                  
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
 80157d8:	44 51 00 0c 	be r2,r17,8015808 <_Timer_server_Body+0x1c0>   
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
 80157dc:	28 44 00 00 	lw r4,(r2+0)                                   
                                                                      
  head->next = new_first;                                             
 80157e0:	5b 84 00 44 	sw (sp+68),r4                                  
  new_first->previous = head;                                         
 80157e4:	58 8f 00 04 	sw (r4+4),r15                                  
         *  It is essential that interrupts are disable here since an interrupt
         *  service routine may remove a watchdog from the chain.     
         */                                                           
        _ISR_Disable( level );                                        
        watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
        if ( watchdog != NULL ) {                                     
 80157e8:	44 40 00 08 	be r2,r0,8015808 <_Timer_server_Body+0x1c0>    <== NEVER TAKEN
          watchdog->state = WATCHDOG_INACTIVE;                        
 80157ec:	58 40 00 08 	sw (r2+8),r0                                   
          _ISR_Enable( level );                                       
 80157f0:	d0 03 00 00 	wcsr IE,r3                                     
        /*                                                            
         *  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 );    
 80157f4:	28 43 00 1c 	lw r3,(r2+28)                                  
 80157f8:	28 41 00 20 	lw r1,(r2+32)                                  
 80157fc:	28 42 00 24 	lw r2,(r2+36)                                  
 8015800:	d8 60 00 00 	call r3                                        
      }                                                               
 8015804:	e3 ff ff f1 	bi 80157c8 <_Timer_server_Body+0x180>          
        watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
        if ( watchdog != NULL ) {                                     
          watchdog->state = WATCHDOG_INACTIVE;                        
          _ISR_Enable( level );                                       
        } else {                                                      
          _ISR_Enable( level );                                       
 8015808:	d0 03 00 00 	wcsr IE,r3                                     
 801580c:	e3 ff ff b8 	bi 80156ec <_Timer_server_Body+0xa4>           
         *  the active flag of the timer server is true.              
         */                                                           
        (*watchdog->routine)( watchdog->id, watchdog->user_data );    
      }                                                               
    } else {                                                          
      ts->active = false;                                             
 8015810:	31 60 00 7c 	sb (r11+124),r0                                
                                                                      
      /*                                                              
       *  Block until there is something to do.                       
       */                                                             
      _Thread_Disable_dispatch();                                     
 8015814:	fb ff ff 4d 	calli 8015548 <_Thread_Disable_dispatch>       
        _Thread_Set_state( ts->thread, STATES_DELAYING );             
 8015818:	29 61 00 00 	lw r1,(r11+0)                                  
 801581c:	34 02 00 08 	mvi r2,8                                       
 8015820:	f8 00 13 5b 	calli 801a58c <_Thread_Set_state>              
        _Timer_server_Reset_interval_system_watchdog( ts );           
 8015824:	b9 60 08 00 	mv r1,r11                                      
 8015828:	fb ff ff 4e 	calli 8015560 <_Timer_server_Reset_interval_system_watchdog>
        _Timer_server_Reset_tod_system_watchdog( ts );                
 801582c:	b9 60 08 00 	mv r1,r11                                      
 8015830:	fb ff ff 69 	calli 80155d4 <_Timer_server_Reset_tod_system_watchdog>
      _Thread_Enable_dispatch();                                      
 8015834:	f8 00 10 81 	calli 8019a38 <_Thread_Enable_dispatch>        
                                                                      
static void _Timer_server_Stop_interval_system_watchdog(              
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );        
 8015838:	ba a0 08 00 	mv r1,r21                                      
        _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;                                              
 801583c:	31 76 00 7c 	sb (r11+124),r22                               
                                                                      
static void _Timer_server_Stop_interval_system_watchdog(              
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );        
 8015840:	f8 00 15 1b 	calli 801acac <_Watchdog_Remove>               
                                                                      
static void _Timer_server_Stop_tod_system_watchdog(                   
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );             
 8015844:	ba 80 08 00 	mv r1,r20                                      
 8015848:	f8 00 15 19 	calli 801acac <_Watchdog_Remove>               
 801584c:	e3 ff ff a8 	bi 80156ec <_Timer_server_Body+0xa4>           
                                                                      

08015850 <_Timer_server_Schedule_operation_method>: static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) {
 8015850:	37 9c ff f0 	addi sp,sp,-16                                 
 8015854:	5b 8b 00 10 	sw (sp+16),r11                                 
 8015858:	5b 8c 00 0c 	sw (sp+12),r12                                 
 801585c:	5b 8d 00 08 	sw (sp+8),r13                                  
 8015860:	5b 9d 00 04 	sw (sp+4),ra                                   
 8015864:	b8 20 58 00 	mv r11,r1                                      
  if ( ts->insert_chain == NULL ) {                                   
 8015868:	28 21 00 78 	lw r1,(r1+120)                                 
                                                                      
static void _Timer_server_Schedule_operation_method(                  
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
 801586c:	b8 40 60 00 	mv r12,r2                                      
  if ( ts->insert_chain == NULL ) {                                   
 8015870:	5c 20 00 49 	bne r1,r0,8015994 <_Timer_server_Schedule_operation_method+0x144><== 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();                                         
 8015874:	fb ff ff 35 	calli 8015548 <_Thread_Disable_dispatch>       
                                                                      
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
 8015878:	29 81 00 38 	lw r1,(r12+56)                                 
 801587c:	34 02 00 01 	mvi r2,1                                       
 8015880:	5c 22 00 1d 	bne r1,r2,80158f4 <_Timer_server_Schedule_operation_method+0xa4>
    /*                                                                
     *  We have to advance the last known ticks value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
 8015884:	90 00 10 00 	rcsr r2,IE                                     
 8015888:	34 01 ff fe 	mvi r1,-2                                      
 801588c:	a0 41 08 00 	and r1,r2,r1                                   
 8015890:	d0 01 00 00 	wcsr IE,r1                                     
    snapshot = _Watchdog_Ticks_since_boot;                            
 8015894:	78 01 08 03 	mvhi r1,0x803                                  
 8015898:	38 21 dd b8 	ori r1,r1,0xddb8                               
 801589c:	28 23 00 00 	lw r3,(r1+0)                                   
      initialized = false;                                            
    }                                                                 
  #endif                                                              
                                                                      
  return status;                                                      
}                                                                     
 80158a0:	29 61 00 30 	lw r1,(r11+48)                                 
     *  We have to advance the last known ticks value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
    snapshot = _Watchdog_Ticks_since_boot;                            
    last_snapshot = ts->Interval_watchdogs.last_snapshot;             
 80158a4:	29 65 00 3c 	lw r5,(r11+60)                                 
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 80158a8:	35 64 00 34 	addi r4,r11,52                                 
    if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) {        
 80158ac:	44 24 00 07 	be r1,r4,80158c8 <_Timer_server_Schedule_operation_method+0x78>
      /*                                                              
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
                                                                      
      delta_interval = first_watchdog->delta_interval;                
 80158b0:	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;                               
 80158b4:	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;                                           
 80158b8:	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) {                                   
 80158bc:	50 a6 00 02 	bgeu r5,r6,80158c4 <_Timer_server_Schedule_operation_method+0x74><== NEVER TAKEN
        delta_interval -= delta;                                      
 80158c0:	c8 c5 20 00 	sub r4,r6,r5                                   
      } else {                                                        
        delta_interval = 0;                                           
      }                                                               
      first_watchdog->delta_interval = delta_interval;                
 80158c4:	58 24 00 10 	sw (r1+16),r4                                  
    }                                                                 
    ts->Interval_watchdogs.last_snapshot = snapshot;                  
 80158c8:	59 63 00 3c 	sw (r11+60),r3                                 
    _ISR_Enable( level );                                             
 80158cc:	d0 02 00 00 	wcsr IE,r2                                     
                                                                      
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
 80158d0:	35 61 00 30 	addi r1,r11,48                                 
 80158d4:	35 82 00 10 	addi r2,r12,16                                 
 80158d8:	f8 00 14 98 	calli 801ab38 <_Watchdog_Insert>               
                                                                      
    if ( !ts->active ) {                                              
 80158dc:	41 61 00 7c 	lbu r1,(r11+124)                               
 80158e0:	20 21 00 ff 	andi r1,r1,0xff                                
 80158e4:	5c 20 00 2a 	bne r1,r0,801598c <_Timer_server_Schedule_operation_method+0x13c>
      _Timer_server_Reset_interval_system_watchdog( ts );             
 80158e8:	b9 60 08 00 	mv r1,r11                                      
 80158ec:	fb ff ff 1d 	calli 8015560 <_Timer_server_Reset_interval_system_watchdog>
 80158f0:	e0 00 00 27 	bi 801598c <_Timer_server_Schedule_operation_method+0x13c>
    }                                                                 
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
 80158f4:	34 02 00 03 	mvi r2,3                                       
 80158f8:	5c 22 00 25 	bne r1,r2,801598c <_Timer_server_Schedule_operation_method+0x13c>
    /*                                                                
     *  We have to advance the last known seconds value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
 80158fc:	90 00 68 00 	rcsr r13,IE                                    
 8015900:	34 01 ff fe 	mvi r1,-2                                      
 8015904:	a1 a1 08 00 	and r1,r13,r1                                  
 8015908:	d0 01 00 00 	wcsr IE,r1                                     
    snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();        
 801590c:	78 03 08 03 	mvhi r3,0x803                                  
 8015910:	78 05 08 03 	mvhi r5,0x803                                  
 8015914:	38 63 dc 50 	ori r3,r3,0xdc50                               
 8015918:	38 a5 6f 2c 	ori r5,r5,0x6f2c                               
 801591c:	28 61 00 00 	lw r1,(r3+0)                                   
 8015920:	28 62 00 04 	lw r2,(r3+4)                                   
 8015924:	28 a4 00 00 	lw r4,(r5+0)                                   
 8015928:	34 03 00 00 	mvi r3,0                                       
 801592c:	f8 00 50 8a 	calli 8029b54 <__divdi3>                       
      initialized = false;                                            
    }                                                                 
  #endif                                                              
                                                                      
  return status;                                                      
}                                                                     
 8015930:	29 61 00 68 	lw r1,(r11+104)                                
     *  We have to advance the last known seconds value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
    snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();        
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
 8015934:	29 65 00 74 	lw r5,(r11+116)                                
 8015938:	35 63 00 6c 	addi r3,r11,108                                
    if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {             
 801593c:	44 23 00 0a 	be r1,r3,8015964 <_Timer_server_Schedule_operation_method+0x114>
      first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );   
      delta_interval = first_watchdog->delta_interval;                
 8015940:	28 24 00 10 	lw r4,(r1+16)                                  
        }                                                             
      } else {                                                        
        /*                                                            
         *  Someone put us in the past.                               
         */                                                           
        delta = last_snapshot - snapshot;                             
 8015944:	b4 85 18 00 	add r3,r4,r5                                   
        delta_interval += delta;                                      
 8015948:	c8 62 18 00 	sub r3,r3,r2                                   
    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 ) {                               
 801594c:	50 a2 00 05 	bgeu r5,r2,8015960 <_Timer_server_Schedule_operation_method+0x110>
        /*                                                            
         *  We advanced in time.                                      
         */                                                           
        delta = snapshot - last_snapshot;                             
 8015950:	c8 45 28 00 	sub r5,r2,r5                                   
        if (delta_interval > delta) {                                 
          delta_interval -= delta;                                    
        } else {                                                      
          delta_interval = 0;                                         
 8015954:	34 03 00 00 	mvi r3,0                                       
      if ( snapshot > last_snapshot ) {                               
        /*                                                            
         *  We advanced in time.                                      
         */                                                           
        delta = snapshot - last_snapshot;                             
        if (delta_interval > delta) {                                 
 8015958:	50 a4 00 02 	bgeu r5,r4,8015960 <_Timer_server_Schedule_operation_method+0x110><== NEVER TAKEN
          delta_interval -= delta;                                    
 801595c:	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;                
 8015960:	58 23 00 10 	sw (r1+16),r3                                  
    }                                                                 
    ts->TOD_watchdogs.last_snapshot = snapshot;                       
 8015964:	59 62 00 74 	sw (r11+116),r2                                
    _ISR_Enable( level );                                             
 8015968:	d0 0d 00 00 	wcsr IE,r13                                    
                                                                      
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
 801596c:	35 61 00 68 	addi r1,r11,104                                
 8015970:	35 82 00 10 	addi r2,r12,16                                 
 8015974:	f8 00 14 71 	calli 801ab38 <_Watchdog_Insert>               
                                                                      
    if ( !ts->active ) {                                              
 8015978:	41 61 00 7c 	lbu r1,(r11+124)                               
 801597c:	20 21 00 ff 	andi r1,r1,0xff                                
 8015980:	5c 20 00 03 	bne r1,r0,801598c <_Timer_server_Schedule_operation_method+0x13c><== NEVER TAKEN
      _Timer_server_Reset_tod_system_watchdog( ts );                  
 8015984:	b9 60 08 00 	mv r1,r11                                      
 8015988:	fb ff ff 13 	calli 80155d4 <_Timer_server_Reset_tod_system_watchdog>
    }                                                                 
  }                                                                   
                                                                      
  _Thread_Enable_dispatch();                                          
 801598c:	f8 00 10 2b 	calli 8019a38 <_Thread_Enable_dispatch>        
 8015990:	e0 00 00 03 	bi 801599c <_Timer_server_Schedule_operation_method+0x14c>
     *  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 );           
 8015994:	29 61 00 78 	lw r1,(r11+120)                                <== NOT EXECUTED
 8015998:	f8 00 02 dd 	calli 801650c <_Chain_Append>                  <== NOT EXECUTED
  }                                                                   
}                                                                     
 801599c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80159a0:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80159a4:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80159a8:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80159ac:	37 9c 00 10 	addi sp,sp,16                                  
 80159b0:	c3 a0 00 00 	ret                                            
                                                                      

080074a4 <_User_extensions_Handler_initialization>: } } void _User_extensions_Handler_initialization(void) {
 80074a4:	37 9c ff f4 	addi sp,sp,-12                                 
 80074a8:	5b 8b 00 08 	sw (sp+8),r11                                  
 80074ac:	5b 9d 00 04 	sw (sp+4),ra                                   
  uint32_t number_of_initial_extensions =                             
 80074b0:	78 01 08 01 	mvhi r1,0x801                                  
 80074b4:	38 21 b2 0c 	ori r1,r1,0xb20c                               
 80074b8:	28 2b 00 40 	lw r11,(r1+64)                                 
    rtems_configuration_get_number_of_initial_extensions();           
                                                                      
  if ( number_of_initial_extensions > 0 ) {                           
 80074bc:	45 60 00 0d 	be r11,r0,80074f0 <_User_extensions_Handler_initialization+0x4c><== NEVER TAKEN
    User_extensions_Switch_control *initial_extension_switch_controls =
      _Workspace_Allocate_or_fatal_error(                             
        number_of_initial_extensions                                  
          * sizeof( *initial_extension_switch_controls )              
 80074c0:	34 02 00 01 	mvi r2,1                                       
 80074c4:	b9 60 08 00 	mv r1,r11                                      
 80074c8:	f8 00 4b 5c 	calli 801a238 <__ashlsi3>                      
 80074cc:	34 02 00 02 	mvi r2,2                                       
 80074d0:	b4 2b 08 00 	add r1,r1,r11                                  
 80074d4:	f8 00 4b 59 	calli 801a238 <__ashlsi3>                      
  uint32_t number_of_initial_extensions =                             
    rtems_configuration_get_number_of_initial_extensions();           
                                                                      
  if ( number_of_initial_extensions > 0 ) {                           
    User_extensions_Switch_control *initial_extension_switch_controls =
      _Workspace_Allocate_or_fatal_error(                             
 80074d8:	f8 00 01 30 	calli 8007998 <_Workspace_Allocate_or_fatal_error>
        number_of_initial_extensions                                  
          * sizeof( *initial_extension_switch_controls )              
      );                                                              
    User_extensions_Switch_context ctx = { initial_extension_switch_controls };
                                                                      
    _User_extensions_Iterate( &ctx, _User_extensions_Switch_visitor );
 80074dc:	78 02 08 00 	mvhi r2,0x800                                  
    User_extensions_Switch_control *initial_extension_switch_controls =
      _Workspace_Allocate_or_fatal_error(                             
        number_of_initial_extensions                                  
          * sizeof( *initial_extension_switch_controls )              
      );                                                              
    User_extensions_Switch_context ctx = { initial_extension_switch_controls };
 80074e0:	5b 81 00 0c 	sw (sp+12),r1                                  
                                                                      
    _User_extensions_Iterate( &ctx, _User_extensions_Switch_visitor );
 80074e4:	38 42 74 64 	ori r2,r2,0x7464                               
 80074e8:	37 81 00 0c 	addi r1,sp,12                                  
 80074ec:	fb ff ff b0 	calli 80073ac <_User_extensions_Iterate>       
  }                                                                   
}                                                                     
 80074f0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80074f4:	2b 8b 00 08 	lw r11,(sp+8)                                  
 80074f8:	37 9c 00 0c 	addi sp,sp,12                                  
 80074fc:	c3 a0 00 00 	ret                                            
                                                                      

08009130 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) {
 8009130:	37 9c ff e4 	addi sp,sp,-28                                 
 8009134:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8009138:	5b 8c 00 18 	sw (sp+24),r12                                 
 800913c:	5b 8d 00 14 	sw (sp+20),r13                                 
 8009140:	5b 8e 00 10 	sw (sp+16),r14                                 
 8009144:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8009148:	5b 90 00 08 	sw (sp+8),r16                                  
 800914c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8009150:	b8 20 60 00 	mv r12,r1                                      
 8009154:	b8 60 58 00 	mv r11,r3                                      
  ISR_Level level;                                                    
                                                                      
  _ISR_Disable( level );                                              
 8009158:	90 00 08 00 	rcsr r1,IE                                     
 800915c:	34 03 ff fe 	mvi r3,-2                                      
 8009160:	a0 23 18 00 	and r3,r1,r3                                   
 8009164:	d0 03 00 00 	wcsr IE,r3                                     
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
                                                                      
}                                                                     
 8009168:	29 83 00 00 	lw r3,(r12+0)                                  
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 800916c:	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 ) ) {                                 
 8009170:	44 6e 00 1d 	be r3,r14,80091e4 <_Watchdog_Adjust+0xb4>      
    switch ( direction ) {                                            
 8009174:	44 40 00 04 	be r2,r0,8009184 <_Watchdog_Adjust+0x54>       
 8009178:	34 04 00 01 	mvi r4,1                                       
 800917c:	5c 44 00 1a 	bne r2,r4,80091e4 <_Watchdog_Adjust+0xb4>      <== NEVER TAKEN
 8009180:	e0 00 00 04 	bi 8009190 <_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;            
 8009184:	34 10 00 01 	mvi r16,1                                      
                                                                      
            _ISR_Enable( level );                                     
                                                                      
            _Watchdog_Tickle( header );                               
                                                                      
            _ISR_Disable( level );                                    
 8009188:	34 0f ff fe 	mvi r15,-2                                     
 800918c:	e0 00 00 15 	bi 80091e0 <_Watchdog_Adjust+0xb0>             
   *       Till Straumann, 7/2003                                     
   */                                                                 
  if ( !_Chain_Is_empty( header ) ) {                                 
    switch ( direction ) {                                            
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
 8009190:	28 62 00 10 	lw r2,(r3+16)                                  
 8009194:	b4 4b 58 00 	add r11,r2,r11                                 
 8009198:	58 6b 00 10 	sw (r3+16),r11                                 
        break;                                                        
 800919c:	e0 00 00 12 	bi 80091e4 <_Watchdog_Adjust+0xb4>             
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First(               
  Chain_Control *header                                               
)                                                                     
{                                                                     
                                                                      
  return ( (Watchdog_Control *) _Chain_First( header ) );             
 80091a0:	29 82 00 00 	lw r2,(r12+0)                                  
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
          if ( units < _Watchdog_First( header )->delta_interval ) {  
 80091a4:	28 4d 00 10 	lw r13,(r2+16)                                 
 80091a8:	51 6d 00 04 	bgeu r11,r13,80091b8 <_Watchdog_Adjust+0x88>   
            _Watchdog_First( header )->delta_interval -= units;       
 80091ac:	c9 ab 58 00 	sub r11,r13,r11                                
 80091b0:	58 4b 00 10 	sw (r2+16),r11                                 
            break;                                                    
 80091b4:	e0 00 00 0c 	bi 80091e4 <_Watchdog_Adjust+0xb4>             
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
            _Watchdog_First( header )->delta_interval = 1;            
 80091b8:	58 50 00 10 	sw (r2+16),r16                                 
                                                                      
            _ISR_Enable( level );                                     
 80091bc:	d0 01 00 00 	wcsr IE,r1                                     
                                                                      
            _Watchdog_Tickle( header );                               
 80091c0:	b9 80 08 00 	mv r1,r12                                      
 80091c4:	f8 00 00 98 	calli 8009424 <_Watchdog_Tickle>               
                                                                      
            _ISR_Disable( level );                                    
 80091c8:	90 00 08 00 	rcsr r1,IE                                     
 80091cc:	a0 2f 10 00 	and r2,r1,r15                                  
 80091d0:	d0 02 00 00 	wcsr IE,r2                                     
                                                                      
            if ( _Chain_Is_empty( header ) )                          
 80091d4:	29 82 00 00 	lw r2,(r12+0)                                  
 80091d8:	44 4e 00 03 	be r2,r14,80091e4 <_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;       
 80091dc:	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 ) {                                             
 80091e0:	5d 60 ff f0 	bne r11,r0,80091a0 <_Watchdog_Adjust+0x70>     <== ALWAYS TAKEN
        }                                                             
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
 80091e4:	d0 01 00 00 	wcsr IE,r1                                     
                                                                      
}                                                                     
 80091e8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80091ec:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 80091f0:	2b 8c 00 18 	lw r12,(sp+24)                                 
 80091f4:	2b 8d 00 14 	lw r13,(sp+20)                                 
 80091f8:	2b 8e 00 10 	lw r14,(sp+16)                                 
 80091fc:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8009200:	2b 90 00 08 	lw r16,(sp+8)                                  
 8009204:	37 9c 00 1c 	addi sp,sp,28                                  
 8009208:	c3 a0 00 00 	ret                                            
                                                                      

08007674 <_Watchdog_Remove>: { ISR_Level level; Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level );
 8007674:	90 00 28 00 	rcsr r5,IE                                     
 8007678:	34 02 ff fe 	mvi r2,-2                                      
 800767c:	a0 a2 10 00 	and r2,r5,r2                                   
 8007680:	d0 02 00 00 	wcsr IE,r2                                     
  previous_state = the_watchdog->state;                               
 8007684:	28 23 00 08 	lw r3,(r1+8)                                   
  switch ( previous_state ) {                                         
 8007688:	34 02 00 01 	mvi r2,1                                       
 800768c:	44 62 00 05 	be r3,r2,80076a0 <_Watchdog_Remove+0x2c>       
 8007690:	44 60 00 1b 	be r3,r0,80076fc <_Watchdog_Remove+0x88>       
 8007694:	34 02 00 03 	mvi r2,3                                       
 8007698:	54 62 00 19 	bgu r3,r2,80076fc <_Watchdog_Remove+0x88>      <== NEVER TAKEN
 800769c:	e0 00 00 03 	bi 80076a8 <_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;                        
 80076a0:	58 20 00 08 	sw (r1+8),r0                                   
      break;                                                          
 80076a4:	e0 00 00 16 	bi 80076fc <_Watchdog_Remove+0x88>             
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
                                                                      
  _ISR_Enable( level );                                               
  return( previous_state );                                           
}                                                                     
 80076a8:	28 22 00 00 	lw r2,(r1+0)                                   
      break;                                                          
                                                                      
    case WATCHDOG_ACTIVE:                                             
    case WATCHDOG_REMOVE_IT:                                          
                                                                      
      the_watchdog->state = WATCHDOG_INACTIVE;                        
 80076ac:	58 20 00 08 	sw (r1+8),r0                                   
      next_watchdog = _Watchdog_Next( the_watchdog );                 
                                                                      
      if ( _Watchdog_Next(next_watchdog) )                            
 80076b0:	28 44 00 00 	lw r4,(r2+0)                                   
 80076b4:	44 80 00 05 	be r4,r0,80076c8 <_Watchdog_Remove+0x54>       
        next_watchdog->delta_interval += the_watchdog->delta_interval;
 80076b8:	28 46 00 10 	lw r6,(r2+16)                                  
 80076bc:	28 24 00 10 	lw r4,(r1+16)                                  
 80076c0:	b4 c4 20 00 	add r4,r6,r4                                   
 80076c4:	58 44 00 10 	sw (r2+16),r4                                  
                                                                      
      if ( _Watchdog_Sync_count )                                     
 80076c8:	78 04 08 01 	mvhi r4,0x801                                  
 80076cc:	38 84 d9 c4 	ori r4,r4,0xd9c4                               
 80076d0:	28 84 00 00 	lw r4,(r4+0)                                   
 80076d4:	44 80 00 07 	be r4,r0,80076f0 <_Watchdog_Remove+0x7c>       
        _Watchdog_Sync_level = _ISR_Nest_level;                       
 80076d8:	78 04 08 01 	mvhi r4,0x801                                  
 80076dc:	38 84 da 60 	ori r4,r4,0xda60                               
 80076e0:	28 86 00 08 	lw r6,(r4+8)                                   
 80076e4:	78 04 08 01 	mvhi r4,0x801                                  
 80076e8:	38 84 d9 64 	ori r4,r4,0xd964                               
 80076ec:	58 86 00 00 	sw (r4+0),r6                                   
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
 80076f0:	28 24 00 04 	lw r4,(r1+4)                                   
  next->previous = previous;                                          
 80076f4:	58 44 00 04 	sw (r2+4),r4                                   
  previous->next = next;                                              
 80076f8:	58 82 00 00 	sw (r4+0),r2                                   
                                                                      
      _Chain_Extract_unprotected( &the_watchdog->Node );              
      break;                                                          
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
 80076fc:	78 02 08 01 	mvhi r2,0x801                                  
 8007700:	38 42 d9 c8 	ori r2,r2,0xd9c8                               
 8007704:	28 42 00 00 	lw r2,(r2+0)                                   
 8007708:	58 22 00 18 	sw (r1+24),r2                                  
                                                                      
  _ISR_Enable( level );                                               
 800770c:	d0 05 00 00 	wcsr IE,r5                                     
  return( previous_state );                                           
}                                                                     
 8007710:	b8 60 08 00 	mv r1,r3                                       
 8007714:	c3 a0 00 00 	ret                                            
                                                                      

08008d34 <_Watchdog_Report_chain>: void _Watchdog_Report_chain( const char *name, Chain_Control *header ) {
 8008d34:	37 9c ff ec 	addi sp,sp,-20                                 
 8008d38:	5b 8b 00 14 	sw (sp+20),r11                                 
 8008d3c:	5b 8c 00 10 	sw (sp+16),r12                                 
 8008d40:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8008d44:	5b 8e 00 08 	sw (sp+8),r14                                  
 8008d48:	5b 9d 00 04 	sw (sp+4),ra                                   
 8008d4c:	b8 20 70 00 	mv r14,r1                                      
 8008d50:	b8 40 60 00 	mv r12,r2                                      
  ISR_Level          level;                                           
  Chain_Node        *node;                                            
                                                                      
  _ISR_Disable( level );                                              
 8008d54:	90 00 68 00 	rcsr r13,IE                                    
 8008d58:	34 01 ff fe 	mvi r1,-2                                      
 8008d5c:	a1 a1 08 00 	and r1,r13,r1                                  
 8008d60:	d0 01 00 00 	wcsr IE,r1                                     
    printk( "Watchdog Chain: %s %p\n", name, header );                
 8008d64:	78 01 08 01 	mvhi r1,0x801                                  
 8008d68:	b9 80 18 00 	mv r3,r12                                      
 8008d6c:	38 21 de 60 	ori r1,r1,0xde60                               
 8008d70:	b9 c0 10 00 	mv r2,r14                                      
 8008d74:	fb ff e8 c9 	calli 8003098 <printk>                         
      printk( "== end of %s \n", name );                              
    } else {                                                          
      printk( "Chain is empty\n" );                                   
    }                                                                 
  _ISR_Enable( level );                                               
}                                                                     
 8008d78:	29 8b 00 00 	lw r11,(r12+0)                                 
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 8008d7c:	35 8c 00 04 	addi r12,r12,4                                 
  ISR_Level          level;                                           
  Chain_Node        *node;                                            
                                                                      
  _ISR_Disable( level );                                              
    printk( "Watchdog Chain: %s %p\n", name, header );                
    if ( !_Chain_Is_empty( header ) ) {                               
 8008d80:	45 6c 00 0b 	be r11,r12,8008dac <_Watchdog_Report_chain+0x78>
            node != _Chain_Tail(header) ;                             
            node = node->next )                                       
      {                                                               
        Watchdog_Control *watch = (Watchdog_Control *) node;          
                                                                      
        _Watchdog_Report( NULL, watch );                              
 8008d84:	b9 60 10 00 	mv r2,r11                                      
 8008d88:	34 01 00 00 	mvi r1,0                                       
 8008d8c:	f8 00 00 13 	calli 8008dd8 <_Watchdog_Report>               
  _ISR_Disable( level );                                              
    printk( "Watchdog Chain: %s %p\n", name, header );                
    if ( !_Chain_Is_empty( header ) ) {                               
      for ( node = _Chain_First( header ) ;                           
            node != _Chain_Tail(header) ;                             
            node = node->next )                                       
 8008d90:	29 6b 00 00 	lw r11,(r11+0)                                 
  Chain_Node        *node;                                            
                                                                      
  _ISR_Disable( level );                                              
    printk( "Watchdog Chain: %s %p\n", name, header );                
    if ( !_Chain_Is_empty( header ) ) {                               
      for ( node = _Chain_First( header ) ;                           
 8008d94:	5d 6c ff fc 	bne r11,r12,8008d84 <_Watchdog_Report_chain+0x50><== NEVER TAKEN
      {                                                               
        Watchdog_Control *watch = (Watchdog_Control *) node;          
                                                                      
        _Watchdog_Report( NULL, watch );                              
      }                                                               
      printk( "== end of %s \n", name );                              
 8008d98:	78 01 08 01 	mvhi r1,0x801                                  
 8008d9c:	38 21 de 78 	ori r1,r1,0xde78                               
 8008da0:	b9 c0 10 00 	mv r2,r14                                      
 8008da4:	fb ff e8 bd 	calli 8003098 <printk>                         
 8008da8:	e0 00 00 04 	bi 8008db8 <_Watchdog_Report_chain+0x84>       
    } else {                                                          
      printk( "Chain is empty\n" );                                   
 8008dac:	78 01 08 01 	mvhi r1,0x801                                  
 8008db0:	38 21 de 88 	ori r1,r1,0xde88                               
 8008db4:	fb ff e8 b9 	calli 8003098 <printk>                         
    }                                                                 
  _ISR_Enable( level );                                               
 8008db8:	d0 0d 00 00 	wcsr IE,r13                                    
}                                                                     
 8008dbc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8008dc0:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8008dc4:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8008dc8:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8008dcc:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8008dd0:	37 9c 00 14 	addi sp,sp,20                                  
 8008dd4:	c3 a0 00 00 	ret                                            
                                                                      

08007718 <_Watchdog_Tickle>: #include <rtems/score/watchdog.h> void _Watchdog_Tickle( Chain_Control *header ) {
 8007718:	37 9c ff e4 	addi sp,sp,-28                                 
 800771c:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8007720:	5b 8c 00 18 	sw (sp+24),r12                                 
 8007724:	5b 8d 00 14 	sw (sp+20),r13                                 
 8007728:	5b 8e 00 10 	sw (sp+16),r14                                 
 800772c:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8007730:	5b 90 00 08 	sw (sp+8),r16                                  
 8007734:	5b 9d 00 04 	sw (sp+4),ra                                   
 8007738:	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 );                                              
 800773c:	90 00 18 00 	rcsr r3,IE                                     
 8007740:	34 01 ff fe 	mvi r1,-2                                      
 8007744:	a0 61 08 00 	and r1,r3,r1                                   
 8007748:	d0 01 00 00 	wcsr IE,r1                                     
   } while ( !_Chain_Is_empty( header ) &&                            
             (the_watchdog->delta_interval == 0) );                   
                                                                      
leave:                                                                
   _ISR_Enable(level);                                                
}                                                                     
 800774c:	29 8b 00 00 	lw r11,(r12+0)                                 
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 8007750:	35 8e 00 04 	addi r14,r12,4                                 
   * See the comment in watchdoginsert.c and watchdogadjust.c         
   * about why it's safe not to declare header a pointer to           
   * volatile data - till, 2003/7                                     
   */                                                                 
                                                                      
  _ISR_Disable( level );                                              
 8007754:	b8 60 10 00 	mv r2,r3                                       
                                                                      
  if ( _Chain_Is_empty( header ) )                                    
 8007758:	45 6e 00 1a 	be r11,r14,80077c0 <_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) {                            
 800775c:	29 61 00 10 	lw r1,(r11+16)                                 
 8007760:	44 20 00 04 	be r1,r0,8007770 <_Watchdog_Tickle+0x58>       <== NEVER TAKEN
    the_watchdog->delta_interval--;                                   
 8007764:	34 21 ff ff 	addi r1,r1,-1                                  
 8007768:	59 61 00 10 	sw (r11+16),r1                                 
    if ( the_watchdog->delta_interval != 0 )                          
 800776c:	5c 20 00 15 	bne r1,r0,80077c0 <_Watchdog_Tickle+0xa8>      
#include <rtems/score/watchdog.h>                                     
                                                                      
void _Watchdog_Tickle(                                                
  Chain_Control *header                                               
)                                                                     
{                                                                     
 8007770:	b8 60 68 00 	mv r13,r3                                      
  do {                                                                
     watchdog_state = _Watchdog_Remove( the_watchdog );               
                                                                      
     _ISR_Enable( level );                                            
                                                                      
     switch( watchdog_state ) {                                       
 8007774:	34 10 00 02 	mvi r16,2                                      
                                                                      
       case WATCHDOG_REMOVE_IT:                                       
         break;                                                       
     }                                                                
                                                                      
     _ISR_Disable( level );                                           
 8007778:	34 0f ff fe 	mvi r15,-2                                     
 800777c:	e0 00 00 02 	bi 8007784 <_Watchdog_Tickle+0x6c>             
 8007780:	b8 40 68 00 	mv r13,r2                                      
    if ( the_watchdog->delta_interval != 0 )                          
      goto leave;                                                     
  }                                                                   
                                                                      
  do {                                                                
     watchdog_state = _Watchdog_Remove( the_watchdog );               
 8007784:	b9 60 08 00 	mv r1,r11                                      
 8007788:	fb ff ff bb 	calli 8007674 <_Watchdog_Remove>               
                                                                      
     _ISR_Enable( level );                                            
 800778c:	d0 0d 00 00 	wcsr IE,r13                                    
                                                                      
     switch( watchdog_state ) {                                       
 8007790:	5c 30 00 05 	bne r1,r16,80077a4 <_Watchdog_Tickle+0x8c>     <== NEVER TAKEN
       case WATCHDOG_ACTIVE:                                          
         (*the_watchdog->routine)(                                    
 8007794:	29 63 00 1c 	lw r3,(r11+28)                                 
 8007798:	29 61 00 20 	lw r1,(r11+32)                                 
 800779c:	29 62 00 24 	lw r2,(r11+36)                                 
 80077a0:	d8 60 00 00 	call r3                                        
                                                                      
       case WATCHDOG_REMOVE_IT:                                       
         break;                                                       
     }                                                                
                                                                      
     _ISR_Disable( level );                                           
 80077a4:	90 00 10 00 	rcsr r2,IE                                     
 80077a8:	a0 4f 08 00 	and r1,r2,r15                                  
 80077ac:	d0 01 00 00 	wcsr IE,r1                                     
   } while ( !_Chain_Is_empty( header ) &&                            
             (the_watchdog->delta_interval == 0) );                   
                                                                      
leave:                                                                
   _ISR_Enable(level);                                                
}                                                                     
 80077b0:	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) );                   
 80077b4:	45 6e 00 03 	be r11,r14,80077c0 <_Watchdog_Tickle+0xa8>     
     }                                                                
                                                                      
     _ISR_Disable( level );                                           
                                                                      
     the_watchdog = _Watchdog_First( header );                        
   } while ( !_Chain_Is_empty( header ) &&                            
 80077b8:	29 61 00 10 	lw r1,(r11+16)                                 
 80077bc:	44 20 ff f1 	be r1,r0,8007780 <_Watchdog_Tickle+0x68>       
             (the_watchdog->delta_interval == 0) );                   
                                                                      
leave:                                                                
   _ISR_Enable(level);                                                
 80077c0:	d0 02 00 00 	wcsr IE,r2                                     
}                                                                     
 80077c4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80077c8:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 80077cc:	2b 8c 00 18 	lw r12,(sp+24)                                 
 80077d0:	2b 8d 00 14 	lw r13,(sp+20)                                 
 80077d4:	2b 8e 00 10 	lw r14,(sp+16)                                 
 80077d8:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 80077dc:	2b 90 00 08 	lw r16,(sp+8)                                  
 80077e0:	37 9c 00 1c 	addi sp,sp,28                                  
 80077e4:	c3 a0 00 00 	ret                                            
                                                                      

080077e8 <_Workspace_Handler_initialization>: void _Workspace_Handler_initialization( Heap_Area *areas, size_t area_count, Heap_Initialization_or_extend_handler extend ) {
 80077e8:	37 9c ff d0 	addi sp,sp,-48                                 
 80077ec:	5b 8b 00 30 	sw (sp+48),r11                                 
 80077f0:	5b 8c 00 2c 	sw (sp+44),r12                                 
 80077f4:	5b 8d 00 28 	sw (sp+40),r13                                 
 80077f8:	5b 8e 00 24 	sw (sp+36),r14                                 
 80077fc:	5b 8f 00 20 	sw (sp+32),r15                                 
 8007800:	5b 90 00 1c 	sw (sp+28),r16                                 
 8007804:	5b 91 00 18 	sw (sp+24),r17                                 
 8007808:	5b 92 00 14 	sw (sp+20),r18                                 
 800780c:	5b 93 00 10 	sw (sp+16),r19                                 
 8007810:	5b 94 00 0c 	sw (sp+12),r20                                 
 8007814:	5b 95 00 08 	sw (sp+8),r21                                  
 8007818:	5b 9d 00 04 	sw (sp+4),ra                                   
  Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
  uintptr_t remaining = rtems_configuration_get_work_space_size();    
 800781c:	78 04 08 01 	mvhi r4,0x801                                  
 8007820:	38 84 b2 0c 	ori r4,r4,0xb20c                               
void _Workspace_Handler_initialization(                               
  Heap_Area *areas,                                                   
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
 8007824:	b8 40 a8 00 	mv r21,r2                                      
  Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
  uintptr_t remaining = rtems_configuration_get_work_space_size();    
 8007828:	40 82 00 32 	lbu r2,(r4+50)                                 
void _Workspace_Handler_initialization(                               
  Heap_Area *areas,                                                   
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
 800782c:	b8 60 90 00 	mv r18,r3                                      
  Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
  uintptr_t remaining = rtems_configuration_get_work_space_size();    
 8007830:	28 8c 00 00 	lw r12,(r4+0)                                  
 8007834:	34 05 00 00 	mvi r5,0                                       
 8007838:	5c 40 00 02 	bne r2,r0,8007840 <_Workspace_Handler_initialization+0x58>
 800783c:	28 85 00 04 	lw r5,(r4+4)                                   
  bool do_zero = rtems_configuration_get_do_zero_of_workspace();      
 8007840:	78 04 08 01 	mvhi r4,0x801                                  
 8007844:	38 84 b2 0c 	ori r4,r4,0xb20c                               
  Heap_Area *areas,                                                   
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
  Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
 8007848:	78 0e 08 00 	mvhi r14,0x800                                 
        } else {                                                      
          size = 0;                                                   
        }                                                             
      }                                                               
                                                                      
      space_available = (*init_or_extend)(                            
 800784c:	78 0f 08 01 	mvhi r15,0x801                                 
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
  Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
  uintptr_t remaining = rtems_configuration_get_work_space_size();    
 8007850:	b4 ac 60 00 	add r12,r5,r12                                 
  bool do_zero = rtems_configuration_get_do_zero_of_workspace();      
 8007854:	40 94 00 30 	lbu r20,(r4+48)                                
  bool unified = rtems_configuration_get_unified_work_area();         
 8007858:	40 91 00 31 	lbu r17,(r4+49)                                
 800785c:	b8 20 58 00 	mv r11,r1                                      
  uintptr_t page_size = CPU_HEAP_ALIGNMENT;                           
  uintptr_t overhead = _Heap_Area_overhead( page_size );              
  size_t i;                                                           
                                                                      
  for (i = 0; i < area_count; ++i) {                                  
 8007860:	34 10 00 00 	mvi r16,0                                      
  Heap_Area *areas,                                                   
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
  Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
 8007864:	39 ce 4b d0 	ori r14,r14,0x4bd0                             
                                                                      
    if ( do_zero ) {                                                  
      memset( area->begin, 0, area->size );                           
    }                                                                 
                                                                      
    if ( area->size > overhead ) {                                    
 8007868:	34 13 00 0e 	mvi r19,14                                     
        } else {                                                      
          size = 0;                                                   
        }                                                             
      }                                                               
                                                                      
      space_available = (*init_or_extend)(                            
 800786c:	39 ef d8 f0 	ori r15,r15,0xd8f0                             
  bool unified = rtems_configuration_get_unified_work_area();         
  uintptr_t page_size = CPU_HEAP_ALIGNMENT;                           
  uintptr_t overhead = _Heap_Area_overhead( page_size );              
  size_t i;                                                           
                                                                      
  for (i = 0; i < area_count; ++i) {                                  
 8007870:	e0 00 00 22 	bi 80078f8 <_Workspace_Handler_initialization+0x110>
    Heap_Area *area = &areas [i];                                     
                                                                      
    if ( do_zero ) {                                                  
 8007874:	46 80 00 05 	be r20,r0,8007888 <_Workspace_Handler_initialization+0xa0>
      memset( area->begin, 0, area->size );                           
 8007878:	29 61 00 00 	lw r1,(r11+0)                                  
 800787c:	29 63 00 04 	lw r3,(r11+4)                                  
 8007880:	34 02 00 00 	mvi r2,0                                       
 8007884:	f8 00 13 1d 	calli 800c4f8 <memset>                         
    }                                                                 
                                                                      
    if ( area->size > overhead ) {                                    
 8007888:	29 6d 00 04 	lw r13,(r11+4)                                 
 800788c:	52 6d 00 19 	bgeu r19,r13,80078f0 <_Workspace_Handler_initialization+0x108>
      uintptr_t space_available;                                      
      uintptr_t size;                                                 
                                                                      
      if ( unified ) {                                                
 8007890:	5e 20 00 07 	bne r17,r0,80078ac <_Workspace_Handler_initialization+0xc4>
        size = area->size;                                            
      } else {                                                        
        if ( remaining > 0 ) {                                        
 8007894:	45 91 00 05 	be r12,r17,80078a8 <_Workspace_Handler_initialization+0xc0><== NEVER TAKEN
          size = remaining < area->size - overhead ?                  
 8007898:	35 a1 ff f2 	addi r1,r13,-14                                
            remaining + overhead : area->size;                        
 800789c:	51 81 00 04 	bgeu r12,r1,80078ac <_Workspace_Handler_initialization+0xc4><== NEVER TAKEN
 80078a0:	35 8d 00 0e 	addi r13,r12,14                                
 80078a4:	e0 00 00 02 	bi 80078ac <_Workspace_Handler_initialization+0xc4>
        } else {                                                      
          size = 0;                                                   
 80078a8:	34 0d 00 00 	mvi r13,0                                      <== NOT EXECUTED
        }                                                             
      }                                                               
                                                                      
      space_available = (*init_or_extend)(                            
 80078ac:	29 62 00 00 	lw r2,(r11+0)                                  
 80078b0:	b9 a0 18 00 	mv r3,r13                                      
 80078b4:	b9 e0 08 00 	mv r1,r15                                      
 80078b8:	34 04 00 04 	mvi r4,4                                       
 80078bc:	d9 c0 00 00 	call r14                                       
        area->begin,                                                  
        size,                                                         
        page_size                                                     
      );                                                              
                                                                      
      area->begin = (char *) area->begin + size;                      
 80078c0:	29 62 00 00 	lw r2,(r11+0)                                  
 80078c4:	b4 4d 10 00 	add r2,r2,r13                                  
 80078c8:	59 62 00 00 	sw (r11+0),r2                                  
      area->size -= size;                                             
 80078cc:	29 62 00 04 	lw r2,(r11+4)                                  
 80078d0:	c8 4d 68 00 	sub r13,r2,r13                                 
 80078d4:	59 6d 00 04 	sw (r11+4),r13                                 
                                                                      
      if ( space_available < remaining ) {                            
 80078d8:	50 2c 00 04 	bgeu r1,r12,80078e8 <_Workspace_Handler_initialization+0x100><== ALWAYS TAKEN
        remaining -= space_available;                                 
 80078dc:	c9 81 60 00 	sub r12,r12,r1                                 <== NOT EXECUTED
      } else {                                                        
        remaining = 0;                                                
      }                                                               
                                                                      
      init_or_extend = extend;                                        
 80078e0:	ba 40 70 00 	mv r14,r18                                     <== NOT EXECUTED
 80078e4:	e0 00 00 03 	bi 80078f0 <_Workspace_Handler_initialization+0x108><== NOT EXECUTED
 80078e8:	ba 40 70 00 	mv r14,r18                                     
      area->size -= size;                                             
                                                                      
      if ( space_available < remaining ) {                            
        remaining -= space_available;                                 
      } else {                                                        
        remaining = 0;                                                
 80078ec:	34 0c 00 00 	mvi r12,0                                      
  bool unified = rtems_configuration_get_unified_work_area();         
  uintptr_t page_size = CPU_HEAP_ALIGNMENT;                           
  uintptr_t overhead = _Heap_Area_overhead( page_size );              
  size_t i;                                                           
                                                                      
  for (i = 0; i < area_count; ++i) {                                  
 80078f0:	36 10 00 01 	addi r16,r16,1                                 
 80078f4:	35 6b 00 08 	addi r11,r11,8                                 
 80078f8:	56 b0 ff df 	bgu r21,r16,8007874 <_Workspace_Handler_initialization+0x8c>
                                                                      
      init_or_extend = extend;                                        
    }                                                                 
  }                                                                   
                                                                      
  if ( remaining > 0 ) {                                              
 80078fc:	45 80 00 05 	be r12,r0,8007910 <_Workspace_Handler_initialization+0x128>
    _Internal_error_Occurred(                                         
 8007900:	34 01 00 00 	mvi r1,0                                       
 8007904:	34 02 00 01 	mvi r2,1                                       
 8007908:	34 03 00 02 	mvi r3,2                                       
 800790c:	fb ff f5 61 	calli 8004e90 <_Internal_error_Occurred>       
      INTERNAL_ERROR_CORE,                                            
      true,                                                           
      INTERNAL_ERROR_TOO_LITTLE_WORKSPACE                             
    );                                                                
  }                                                                   
}                                                                     
 8007910:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8007914:	2b 8b 00 30 	lw r11,(sp+48)                                 
 8007918:	2b 8c 00 2c 	lw r12,(sp+44)                                 
 800791c:	2b 8d 00 28 	lw r13,(sp+40)                                 
 8007920:	2b 8e 00 24 	lw r14,(sp+36)                                 
 8007924:	2b 8f 00 20 	lw r15,(sp+32)                                 
 8007928:	2b 90 00 1c 	lw r16,(sp+28)                                 
 800792c:	2b 91 00 18 	lw r17,(sp+24)                                 
 8007930:	2b 92 00 14 	lw r18,(sp+20)                                 
 8007934:	2b 93 00 10 	lw r19,(sp+16)                                 
 8007938:	2b 94 00 0c 	lw r20,(sp+12)                                 
 800793c:	2b 95 00 08 	lw r21,(sp+8)                                  
 8007940:	37 9c 00 30 	addi sp,sp,48                                  
 8007944:	c3 a0 00 00 	ret                                            
                                                                      

08006f7c <_Workspace_String_duplicate>: char *_Workspace_String_duplicate( const char *string, size_t len ) {
 8006f7c:	37 9c ff f0 	addi sp,sp,-16                                 
 8006f80:	5b 8b 00 10 	sw (sp+16),r11                                 
 8006f84:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8006f88:	5b 8d 00 08 	sw (sp+8),r13                                  
 8006f8c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006f90:	b8 20 68 00 	mv r13,r1                                      
  char *dup = _Workspace_Allocate(len + 1);                           
 8006f94:	34 41 00 01 	addi r1,r2,1                                   
                                                                      
char *_Workspace_String_duplicate(                                    
  const char *string,                                                 
  size_t len                                                          
)                                                                     
{                                                                     
 8006f98:	b8 40 60 00 	mv r12,r2                                      
  char *dup = _Workspace_Allocate(len + 1);                           
 8006f9c:	fb ff ff d5 	calli 8006ef0 <_Workspace_Allocate>            
 8006fa0:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  if (dup != NULL) {                                                  
 8006fa4:	44 20 00 06 	be r1,r0,8006fbc <_Workspace_String_duplicate+0x40><== NEVER TAKEN
    dup [len] = '\0';                                                 
 8006fa8:	b4 2c 10 00 	add r2,r1,r12                                  
 8006fac:	30 40 00 00 	sb (r2+0),r0                                   
    memcpy(dup, string, len);                                         
 8006fb0:	b9 80 18 00 	mv r3,r12                                      
 8006fb4:	b9 a0 10 00 	mv r2,r13                                      
 8006fb8:	f8 00 13 87 	calli 800bdd4 <memcpy>                         
  }                                                                   
                                                                      
  return dup;                                                         
}                                                                     
 8006fbc:	b9 60 08 00 	mv r1,r11                                      
 8006fc0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006fc4:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8006fc8:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8006fcc:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8006fd0:	37 9c 00 10 	addi sp,sp,16                                  
 8006fd4:	c3 a0 00 00 	ret                                            
                                                                      

0800419c <rtems_chain_get_with_wait>: rtems_chain_control *chain, rtems_event_set events, rtems_interval timeout, rtems_chain_node **node_ptr ) {
 800419c:	37 9c ff e4 	addi sp,sp,-28                                 
 80041a0:	5b 8b 00 18 	sw (sp+24),r11                                 
 80041a4:	5b 8c 00 14 	sw (sp+20),r12                                 
 80041a8:	5b 8d 00 10 	sw (sp+16),r13                                 
 80041ac:	5b 8e 00 0c 	sw (sp+12),r14                                 
 80041b0:	5b 8f 00 08 	sw (sp+8),r15                                  
 80041b4:	5b 9d 00 04 	sw (sp+4),ra                                   
 80041b8:	b8 20 78 00 	mv r15,r1                                      
 80041bc:	b8 40 70 00 	mv r14,r2                                      
 80041c0:	b8 60 68 00 	mv r13,r3                                      
 80041c4:	b8 80 60 00 	mv r12,r4                                      
 80041c8:	e0 00 00 08 	bi 80041e8 <rtems_chain_get_with_wait+0x4c>    
  while (                                                             
    sc == RTEMS_SUCCESSFUL                                            
      && (node = rtems_chain_get( chain )) == NULL                    
  ) {                                                                 
    rtems_event_set out;                                              
    sc = rtems_event_receive(                                         
 80041cc:	b9 c0 08 00 	mv r1,r14                                      
 80041d0:	34 02 00 00 	mvi r2,0                                       
 80041d4:	b9 a0 18 00 	mv r3,r13                                      
 80041d8:	37 84 00 1c 	addi r4,sp,28                                  
 80041dc:	fb ff fd b8 	calli 80038bc <rtems_event_receive>            
 80041e0:	b8 20 28 00 	mv r5,r1                                       
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_chain_node *node = NULL;                                      
                                                                      
  while (                                                             
 80041e4:	5c 2b 00 06 	bne r1,r11,80041fc <rtems_chain_get_with_wait+0x60><== ALWAYS TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(               
  rtems_chain_control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Get( the_chain );                                     
 80041e8:	b9 e0 08 00 	mv r1,r15                                      
 80041ec:	f8 00 01 85 	calli 8004800 <_Chain_Get>                     
 80041f0:	b8 20 58 00 	mv r11,r1                                      
    sc == RTEMS_SUCCESSFUL                                            
      && (node = rtems_chain_get( chain )) == NULL                    
 80041f4:	44 20 ff f6 	be r1,r0,80041cc <rtems_chain_get_with_wait+0x30>
 80041f8:	34 05 00 00 	mvi r5,0                                       
  }                                                                   
                                                                      
  *node_ptr = node;                                                   
                                                                      
  return sc;                                                          
}                                                                     
 80041fc:	b8 a0 08 00 	mv r1,r5                                       
      timeout,                                                        
      &out                                                            
    );                                                                
  }                                                                   
                                                                      
  *node_ptr = node;                                                   
 8004200:	59 8b 00 00 	sw (r12+0),r11                                 
                                                                      
  return sc;                                                          
}                                                                     
 8004204:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004208:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800420c:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8004210:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8004214:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8004218:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800421c:	37 9c 00 1c 	addi sp,sp,28                                  
 8004220:	c3 a0 00 00 	ret                                            
                                                                      

080115d8 <rtems_clock_set_nanoseconds_extension>: * error code - if unsuccessful */ rtems_status_code rtems_clock_set_nanoseconds_extension( rtems_nanoseconds_extension_routine routine ) {
 80115d8:	b8 20 18 00 	mv r3,r1                                       
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
 80115dc:	34 01 00 09 	mvi r1,9                                       
 */                                                                   
rtems_status_code rtems_clock_set_nanoseconds_extension(              
  rtems_nanoseconds_extension_routine routine                         
)                                                                     
{                                                                     
  if ( !routine )                                                     
 80115e0:	44 60 00 05 	be r3,r0,80115f4 <rtems_clock_set_nanoseconds_extension+0x1c><== ALWAYS TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  _Watchdog_Nanoseconds_since_tick_handler = routine;                 
 80115e4:	78 02 08 03 	mvhi r2,0x803                                  <== NOT EXECUTED
 80115e8:	38 42 91 c8 	ori r2,r2,0x91c8                               <== NOT EXECUTED
 80115ec:	58 43 00 00 	sw (r2+0),r3                                   <== NOT EXECUTED
  return RTEMS_SUCCESSFUL;                                            
 80115f0:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
}                                                                     
 80115f4:	c3 a0 00 00 	ret                                            
                                                                      

0800ddbc <rtems_event_system_receive>: rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) {
 800ddbc:	37 9c ff f8 	addi sp,sp,-8                                  
 800ddc0:	5b 8b 00 08 	sw (sp+8),r11                                  
 800ddc4:	5b 9d 00 04 	sw (sp+4),ra                                   
    } else {                                                          
      *event_out = event->pending_events;                             
      sc = RTEMS_SUCCESSFUL;                                          
    }                                                                 
  } else {                                                            
    sc = RTEMS_INVALID_ADDRESS;                                       
 800ddc8:	34 05 00 09 	mvi r5,9                                       
  rtems_event_set *event_out                                          
)                                                                     
{                                                                     
  rtems_status_code sc;                                               
                                                                      
  if ( event_out != NULL ) {                                          
 800ddcc:	44 80 00 17 	be r4,r0,800de28 <rtems_event_system_receive+0x6c><== NEVER TAKEN
    Thread_Control    *executing = _Thread_Executing;                 
 800ddd0:	78 05 08 01 	mvhi r5,0x801                                  
 800ddd4:	38 a5 9a 80 	ori r5,r5,0x9a80                               
 800ddd8:	28 ab 00 10 	lw r11,(r5+16)                                 
    RTEMS_API_Control *api = executing->API_Extensions[ THREAD_API_RTEMS ];
 800dddc:	29 66 01 14 	lw r6,(r11+276)                                
    Event_Control     *event = &api->System_event;                    
                                                                      
    if ( !_Event_sets_Is_empty( event_in ) ) {                        
 800dde0:	44 20 00 0f 	be r1,r0,800de1c <rtems_event_system_receive+0x60><== NEVER TAKEN
   *                                                                  
   * This rountine increments the thread dispatch level               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
  {                                                                   
    uint32_t level = _Thread_Dispatch_disable_level;                  
 800dde4:	78 07 08 01 	mvhi r7,0x801                                  
 800dde8:	38 e7 99 00 	ori r7,r7,0x9900                               
 800ddec:	28 e5 00 00 	lw r5,(r7+0)                                   
                                                                      
    ++level;                                                          
 800ddf0:	34 a5 00 01 	addi r5,r5,1                                   
    _Thread_Dispatch_disable_level = level;                           
 800ddf4:	58 e5 00 00 	sw (r7+0),r5                                   
      _Thread_Disable_dispatch();                                     
      _Event_Seize(                                                   
 800ddf8:	78 07 08 01 	mvhi r7,0x801                                  
 800ddfc:	b9 60 28 00 	mv r5,r11                                      
 800de00:	34 c6 00 04 	addi r6,r6,4                                   
 800de04:	38 e7 9b 08 	ori r7,r7,0x9b08                               
 800de08:	78 08 00 04 	mvhi r8,0x4                                    
 800de0c:	fb ff fe a1 	calli 800d890 <_Event_Seize>                   
        executing,                                                    
        event,                                                        
        &_System_event_Sync_state,                                    
        STATES_WAITING_FOR_SYSTEM_EVENT                               
      );                                                              
      _Thread_Enable_dispatch();                                      
 800de10:	fb ff e6 c9 	calli 8007934 <_Thread_Enable_dispatch>        
                                                                      
      sc = executing->Wait.return_code;                               
 800de14:	29 65 00 34 	lw r5,(r11+52)                                 
 800de18:	e0 00 00 04 	bi 800de28 <rtems_event_system_receive+0x6c>   
    } else {                                                          
      *event_out = event->pending_events;                             
 800de1c:	28 c1 00 04 	lw r1,(r6+4)                                   <== NOT EXECUTED
      sc = RTEMS_SUCCESSFUL;                                          
 800de20:	34 05 00 00 	mvi r5,0                                       <== NOT EXECUTED
      );                                                              
      _Thread_Enable_dispatch();                                      
                                                                      
      sc = executing->Wait.return_code;                               
    } else {                                                          
      *event_out = event->pending_events;                             
 800de24:	58 81 00 00 	sw (r4+0),r1                                   <== NOT EXECUTED
  } else {                                                            
    sc = RTEMS_INVALID_ADDRESS;                                       
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
 800de28:	b8 a0 08 00 	mv r1,r5                                       
 800de2c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800de30:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800de34:	37 9c 00 08 	addi sp,sp,8                                   
 800de38:	c3 a0 00 00 	ret                                            
                                                                      

080039e8 <rtems_event_system_send>: rtems_status_code rtems_event_system_send( rtems_id id, rtems_event_set event_in ) {
 80039e8:	37 9c ff f4 	addi sp,sp,-12                                 
 80039ec:	5b 8b 00 08 	sw (sp+8),r11                                  
 80039f0:	5b 9d 00 04 	sw (sp+4),ra                                   
 80039f4:	b8 40 58 00 	mv r11,r2                                      
  rtems_status_code  sc;                                              
  Thread_Control    *thread;                                          
  Objects_Locations  location;                                        
  RTEMS_API_Control *api;                                             
                                                                      
  thread = _Thread_Get( id, &location );                              
 80039f8:	37 82 00 0c 	addi r2,sp,12                                  
 80039fc:	f8 00 0b 1a 	calli 8006664 <_Thread_Get>                    
  switch ( location ) {                                               
 8003a00:	2b 82 00 0c 	lw r2,(sp+12)                                  
 8003a04:	5c 40 00 0b 	bne r2,r0,8003a30 <rtems_event_system_send+0x48><== NEVER TAKEN
    case OBJECTS_LOCAL:                                               
      api = thread->API_Extensions[ THREAD_API_RTEMS ];               
      _Event_Surrender(                                               
 8003a08:	28 23 01 14 	lw r3,(r1+276)                                 
 8003a0c:	78 04 08 01 	mvhi r4,0x801                                  
 8003a10:	b9 60 10 00 	mv r2,r11                                      
 8003a14:	34 63 00 04 	addi r3,r3,4                                   
 8003a18:	38 84 da e8 	ori r4,r4,0xdae8                               
 8003a1c:	78 05 00 04 	mvhi r5,0x4                                    
 8003a20:	f8 00 15 d5 	calli 8009174 <_Event_Surrender>               
        event_in,                                                     
        &api->System_event,                                           
        &_System_event_Sync_state,                                    
        STATES_WAITING_FOR_SYSTEM_EVENT                               
      );                                                              
      _Thread_Enable_dispatch();                                      
 8003a24:	f8 00 0b 04 	calli 8006634 <_Thread_Enable_dispatch>        
      sc = RTEMS_SUCCESSFUL;                                          
 8003a28:	34 01 00 00 	mvi r1,0                                       
      break;                                                          
 8003a2c:	e0 00 00 02 	bi 8003a34 <rtems_event_system_send+0x4c>      
    case OBJECTS_REMOTE:                                              
      sc = RTEMS_ILLEGAL_ON_REMOTE_OBJECT;                            
      break;                                                          
#endif                                                                
    default:                                                          
      sc = RTEMS_INVALID_ID;                                          
 8003a30:	34 01 00 04 	mvi r1,4                                       <== NOT EXECUTED
      break;                                                          
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
 8003a34:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003a38:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8003a3c:	37 9c 00 0c 	addi sp,sp,12                                  
 8003a40:	c3 a0 00 00 	ret                                            
                                                                      

08006a3c <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) {
 8006a3c:	37 9c ff e4 	addi sp,sp,-28                                 
 8006a40:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8006a44:	5b 8c 00 18 	sw (sp+24),r12                                 
 8006a48:	5b 8d 00 14 	sw (sp+20),r13                                 
 8006a4c:	5b 8e 00 10 	sw (sp+16),r14                                 
 8006a50:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8006a54:	5b 90 00 08 	sw (sp+8),r16                                  
 8006a58:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006a5c:	b8 20 78 00 	mv r15,r1                                      
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
 8006a60:	44 20 00 18 	be r1,r0,8006ac0 <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) 
 8006a64:	78 02 08 02 	mvhi r2,0x802                                  
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
 8006a68:	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) 
 8006a6c:	38 42 0c 5c 	ori r2,r2,0xc5c                                
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
 8006a70:	39 6b 0c 60 	ori r11,r11,0xc60                              
#endif                                                                
                                                                      
#include <rtems/system.h>                                             
#include <rtems/score/thread.h>                                       
                                                                      
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) 
 8006a74:	34 50 00 10 	addi r16,r2,16                                 
  if ( !routine )                                                     
    return;                                                           
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
    #if !defined(RTEMS_POSIX_API) || defined(RTEMS_DEBUG)             
      if ( !_Objects_Information_table[ api_index ] )                 
 8006a78:	29 61 00 00 	lw r1,(r11+0)                                  
 8006a7c:	44 20 00 0f 	be r1,r0,8006ab8 <rtems_iterate_over_all_threads+0x7c>
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
 8006a80:	28 2c 00 04 	lw r12,(r1+4)                                  
    if ( !information )                                               
 8006a84:	34 0e 00 04 	mvi r14,4                                      
 8006a88:	34 0d 00 01 	mvi r13,1                                      
 8006a8c:	5d 80 00 09 	bne r12,r0,8006ab0 <rtems_iterate_over_all_threads+0x74>
 8006a90:	e0 00 00 0a 	bi 8006ab8 <rtems_iterate_over_all_threads+0x7c>
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
      the_thread = (Thread_Control *)information->local_table[ i ];   
 8006a94:	29 81 00 1c 	lw r1,(r12+28)                                 
 8006a98:	b4 2e 08 00 	add r1,r1,r14                                  
 8006a9c:	28 21 00 00 	lw r1,(r1+0)                                   
                                                                      
      if ( !the_thread )                                              
 8006aa0:	44 20 00 02 	be r1,r0,8006aa8 <rtems_iterate_over_all_threads+0x6c>
	continue;                                                            
                                                                      
      (*routine)(the_thread);                                         
 8006aa4:	d9 e0 00 00 	call r15                                       
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( !information )                                               
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
 8006aa8:	35 ad 00 01 	addi r13,r13,1                                 
 8006aac:	35 ce 00 04 	addi r14,r14,4                                 
 8006ab0:	2d 81 00 10 	lhu r1,(r12+16)                                
 8006ab4:	50 2d ff f8 	bgeu r1,r13,8006a94 <rtems_iterate_over_all_threads+0x58>
 8006ab8:	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++ ) {
 8006abc:	5d 70 ff ef 	bne r11,r16,8006a78 <rtems_iterate_over_all_threads+0x3c>
                                                                      
      (*routine)(the_thread);                                         
    }                                                                 
  }                                                                   
                                                                      
}                                                                     
 8006ac0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006ac4:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8006ac8:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8006acc:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8006ad0:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8006ad4:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8006ad8:	2b 90 00 08 	lw r16,(sp+8)                                  
 8006adc:	37 9c 00 1c 	addi sp,sp,28                                  
 8006ae0:	c3 a0 00 00 	ret                                            
                                                                      

08011fc0 <rtems_message_queue_broadcast>: rtems_id id, const void *buffer, size_t size, uint32_t *count ) {
 8011fc0:	37 9c ff e4 	addi sp,sp,-28                                 
 8011fc4:	5b 8b 00 14 	sw (sp+20),r11                                 
 8011fc8:	5b 8c 00 10 	sw (sp+16),r12                                 
 8011fcc:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8011fd0:	5b 8e 00 08 	sw (sp+8),r14                                  
 8011fd4:	5b 9d 00 04 	sw (sp+4),ra                                   
 8011fd8:	b8 20 60 00 	mv r12,r1                                      
 8011fdc:	b8 40 68 00 	mv r13,r2                                      
 8011fe0:	b8 60 70 00 	mv r14,r3                                      
 8011fe4:	b8 80 58 00 	mv r11,r4                                      
  register Message_queue_Control *the_message_queue;                  
  Objects_Locations               location;                           
  CORE_message_queue_Status       core_status;                        
                                                                      
  if ( !buffer )                                                      
    return RTEMS_INVALID_ADDRESS;                                     
 8011fe8:	34 01 00 09 	mvi r1,9                                       
{                                                                     
  register Message_queue_Control *the_message_queue;                  
  Objects_Locations               location;                           
  CORE_message_queue_Status       core_status;                        
                                                                      
  if ( !buffer )                                                      
 8011fec:	44 40 00 16 	be r2,r0,8012044 <rtems_message_queue_broadcast+0x84><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !count )                                                       
 8011ff0:	44 80 00 15 	be r4,r0,8012044 <rtems_message_queue_broadcast+0x84><== NEVER TAKEN
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Message_queue_Control *)                                    
     _Objects_Get( &_Message_queue_Information, id, location );       
 8011ff4:	78 01 08 03 	mvhi r1,0x803                                  
 8011ff8:	b9 80 10 00 	mv r2,r12                                      
 8011ffc:	38 21 de f0 	ori r1,r1,0xdef0                               
 8012000:	37 83 00 1c 	addi r3,sp,28                                  
 8012004:	f8 00 1a 2a 	calli 80188ac <_Objects_Get>                   
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_message_queue = _Message_queue_Get( id, &location );            
  switch ( location ) {                                               
 8012008:	2b 82 00 1c 	lw r2,(sp+28)                                  
 801200c:	5c 40 00 0d 	bne r2,r0,8012040 <rtems_message_queue_broadcast+0x80>
                                                                      
    case OBJECTS_LOCAL:                                               
      core_status = _CORE_message_queue_Broadcast(                    
 8012010:	b9 a0 10 00 	mv r2,r13                                      
 8012014:	b9 c0 18 00 	mv r3,r14                                      
 8012018:	b9 80 20 00 	mv r4,r12                                      
 801201c:	34 05 00 00 	mvi r5,0                                       
 8012020:	b9 60 30 00 	mv r6,r11                                      
 8012024:	34 21 00 14 	addi r1,r1,20                                  
 8012028:	f8 00 11 61 	calli 80165ac <_CORE_message_queue_Broadcast>  
                        NULL,                                         
                      #endif                                          
                      count                                           
                    );                                                
                                                                      
      _Thread_Enable_dispatch();                                      
 801202c:	5b 81 00 18 	sw (sp+24),r1                                  
 8012030:	f8 00 1e 82 	calli 8019a38 <_Thread_Enable_dispatch>        
      return                                                          
 8012034:	2b 81 00 18 	lw r1,(sp+24)                                  
 8012038:	f8 00 01 0e 	calli 8012470 <_Message_queue_Translate_core_message_queue_return_code>
 801203c:	e0 00 00 02 	bi 8012044 <rtems_message_queue_broadcast+0x84>
#endif                                                                
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
  return RTEMS_INVALID_ID;                                            
 8012040:	34 01 00 04 	mvi r1,4                                       
}                                                                     
 8012044:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8012048:	2b 8b 00 14 	lw r11,(sp+20)                                 
 801204c:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8012050:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8012054:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8012058:	37 9c 00 1c 	addi sp,sp,28                                  
 801205c:	c3 a0 00 00 	ret                                            
                                                                      

0801253c <rtems_partition_create>: uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) {
 801253c:	37 9c ff d8 	addi sp,sp,-40                                 
 8012540:	5b 8b 00 28 	sw (sp+40),r11                                 
 8012544:	5b 8c 00 24 	sw (sp+36),r12                                 
 8012548:	5b 8d 00 20 	sw (sp+32),r13                                 
 801254c:	5b 8e 00 1c 	sw (sp+28),r14                                 
 8012550:	5b 8f 00 18 	sw (sp+24),r15                                 
 8012554:	5b 90 00 14 	sw (sp+20),r16                                 
 8012558:	5b 91 00 10 	sw (sp+16),r17                                 
 801255c:	5b 92 00 0c 	sw (sp+12),r18                                 
 8012560:	5b 93 00 08 	sw (sp+8),r19                                  
 8012564:	5b 9d 00 04 	sw (sp+4),ra                                   
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
 8012568:	34 07 00 03 	mvi r7,3                                       
  uint32_t         length,                                            
  uint32_t         buffer_size,                                       
  rtems_attribute  attribute_set,                                     
  rtems_id        *id                                                 
)                                                                     
{                                                                     
 801256c:	b8 20 88 00 	mv r17,r1                                      
 8012570:	b8 40 70 00 	mv r14,r2                                      
 8012574:	b8 60 78 00 	mv r15,r3                                      
 8012578:	b8 80 60 00 	mv r12,r4                                      
 801257c:	b8 a0 98 00 	mv r19,r5                                      
 8012580:	b8 c0 80 00 	mv r16,r6                                      
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
 8012584:	44 20 00 36 	be r1,r0,801265c <rtems_partition_create+0x120>
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !starting_address )                                            
    return RTEMS_INVALID_ADDRESS;                                     
 8012588:	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 )                                            
 801258c:	44 40 00 34 	be r2,r0,801265c <rtems_partition_create+0x120>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !id )                                                          
 8012590:	44 c0 00 33 	be r6,r0,801265c <rtems_partition_create+0x120><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( length == 0 || buffer_size == 0 || length < buffer_size ||     
 8012594:	64 82 00 00 	cmpei r2,r4,0                                  
 8012598:	64 61 00 00 	cmpei r1,r3,0                                  
         !_Partition_Is_buffer_size_aligned( buffer_size ) )          
    return RTEMS_INVALID_SIZE;                                        
 801259c:	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 ||     
 80125a0:	b8 41 08 00 	or r1,r2,r1                                    
 80125a4:	5c 20 00 2e 	bne r1,r0,801265c <rtems_partition_create+0x120>
 80125a8:	54 83 00 2d 	bgu r4,r3,801265c <rtems_partition_create+0x120>
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Partition_Is_buffer_size_aligned (         
   uint32_t   buffer_size                                             
)                                                                     
{                                                                     
  return ((buffer_size % CPU_PARTITION_ALIGNMENT) == 0);              
 80125ac:	20 81 00 03 	andi r1,r4,0x3                                 
 80125b0:	5c 20 00 2b 	bne r1,r0,801265c <rtems_partition_create+0x120>
)                                                                     
{                                                                     
#if (CPU_ALIGNMENT == 0)                                              
    return true;                                                      
#else                                                                 
    return (((uintptr_t)address % CPU_ALIGNMENT) == 0);               
 80125b4:	21 d2 00 03 	andi r18,r14,0x3                               
         !_Partition_Is_buffer_size_aligned( buffer_size ) )          
    return RTEMS_INVALID_SIZE;                                        
                                                                      
  if ( !_Addresses_Is_aligned( starting_address ) )                   
     return RTEMS_INVALID_ADDRESS;                                    
 80125b8:	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 ) )                   
 80125bc:	5e 41 00 28 	bne r18,r1,801265c <rtems_partition_create+0x120>
   *                                                                  
   * This rountine increments the thread dispatch level               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
  {                                                                   
    uint32_t level = _Thread_Dispatch_disable_level;                  
 80125c0:	78 02 08 03 	mvhi r2,0x803                                  
 80125c4:	38 42 dc d0 	ori r2,r2,0xdcd0                               
 80125c8:	28 41 00 00 	lw r1,(r2+0)                                   
                                                                      
    ++level;                                                          
 80125cc:	34 21 00 01 	addi r1,r1,1                                   
    _Thread_Dispatch_disable_level = level;                           
 80125d0:	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 );
 80125d4:	78 0d 08 03 	mvhi r13,0x803                                 
 80125d8:	39 ad db 10 	ori r13,r13,0xdb10                             
 80125dc:	b9 a0 08 00 	mv r1,r13                                      
 80125e0:	f8 00 16 f5 	calli 80181b4 <_Objects_Allocate>              
 80125e4:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  _Thread_Disable_dispatch();               /* prevents deletion */   
                                                                      
  the_partition = _Partition_Allocate();                              
                                                                      
  if ( !the_partition ) {                                             
 80125e8:	5c 32 00 04 	bne r1,r18,80125f8 <rtems_partition_create+0xbc>
    _Thread_Enable_dispatch();                                        
 80125ec:	f8 00 1d 13 	calli 8019a38 <_Thread_Enable_dispatch>        
    return RTEMS_TOO_MANY;                                            
 80125f0:	34 07 00 05 	mvi r7,5                                       
 80125f4:	e0 00 00 1a 	bi 801265c <rtems_partition_create+0x120>      
  }                                                                   
#endif                                                                
                                                                      
  the_partition->starting_address      = starting_address;            
  the_partition->length                = length;                      
  the_partition->buffer_size           = buffer_size;                 
 80125f8:	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 );          
 80125fc:	b9 80 10 00 	mv r2,r12                                      
    _Thread_Enable_dispatch();                                        
    return RTEMS_TOO_MANY;                                            
  }                                                                   
#endif                                                                
                                                                      
  the_partition->starting_address      = starting_address;            
 8012600:	58 2e 00 10 	sw (r1+16),r14                                 
  the_partition->length                = length;                      
 8012604:	58 2f 00 14 	sw (r1+20),r15                                 
  the_partition->buffer_size           = buffer_size;                 
  the_partition->attribute_set         = attribute_set;               
 8012608:	58 33 00 1c 	sw (r1+28),r19                                 
  the_partition->number_of_used_blocks = 0;                           
 801260c:	58 20 00 20 	sw (r1+32),r0                                  
                                                                      
  _Chain_Initialize( &the_partition->Memory, starting_address,        
 8012610:	34 32 00 24 	addi r18,r1,36                                 
                        length / buffer_size, buffer_size );          
 8012614:	b9 e0 08 00 	mv r1,r15                                      
 8012618:	f8 00 72 b5 	calli 802f0ec <__udivsi3>                      
 801261c:	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,        
 8012620:	b9 80 20 00 	mv r4,r12                                      
 8012624:	ba 40 08 00 	mv r1,r18                                      
 8012628:	b9 c0 10 00 	mv r2,r14                                      
 801262c:	f8 00 0f d3 	calli 8016578 <_Chain_Initialize>              
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
 8012630:	29 6c 00 08 	lw r12,(r11+8)                                 
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 8012634:	29 ad 00 1c 	lw r13,(r13+28)                                
 8012638:	34 02 00 02 	mvi r2,2                                       
 801263c:	21 81 ff ff 	andi r1,r12,0xffff                             
 8012640:	fb ff ee c0 	calli 800e140 <__ashlsi3>                      
 8012644:	b5 a1 08 00 	add r1,r13,r1                                  
 8012648:	58 2b 00 00 	sw (r1+0),r11                                  
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
 801264c:	59 71 00 0c 	sw (r11+12),r17                                
    &_Partition_Information,                                          
    &the_partition->Object,                                           
    (Objects_Name) name                                               
  );                                                                  
                                                                      
  *id = the_partition->Object.id;                                     
 8012650:	5a 0c 00 00 	sw (r16+0),r12                                 
      name,                                                           
      0                  /* Not used */                               
    );                                                                
#endif                                                                
                                                                      
  _Thread_Enable_dispatch();                                          
 8012654:	f8 00 1c f9 	calli 8019a38 <_Thread_Enable_dispatch>        
  return RTEMS_SUCCESSFUL;                                            
 8012658:	34 07 00 00 	mvi r7,0                                       
}                                                                     
 801265c:	b8 e0 08 00 	mv r1,r7                                       
 8012660:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8012664:	2b 8b 00 28 	lw r11,(sp+40)                                 
 8012668:	2b 8c 00 24 	lw r12,(sp+36)                                 
 801266c:	2b 8d 00 20 	lw r13,(sp+32)                                 
 8012670:	2b 8e 00 1c 	lw r14,(sp+28)                                 
 8012674:	2b 8f 00 18 	lw r15,(sp+24)                                 
 8012678:	2b 90 00 14 	lw r16,(sp+20)                                 
 801267c:	2b 91 00 10 	lw r17,(sp+16)                                 
 8012680:	2b 92 00 0c 	lw r18,(sp+12)                                 
 8012684:	2b 93 00 08 	lw r19,(sp+8)                                  
 8012688:	37 9c 00 28 	addi sp,sp,40                                  
 801268c:	c3 a0 00 00 	ret                                            
                                                                      

0803345c <rtems_rate_monotonic_period>: rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) {
 803345c:	37 9c ff e8 	addi sp,sp,-24                                 
 8033460:	5b 8b 00 14 	sw (sp+20),r11                                 
 8033464:	5b 8c 00 10 	sw (sp+16),r12                                 
 8033468:	5b 8d 00 0c 	sw (sp+12),r13                                 
 803346c:	5b 8e 00 08 	sw (sp+8),r14                                  
 8033470:	5b 9d 00 04 	sw (sp+4),ra                                   
 8033474:	b8 20 60 00 	mv r12,r1                                      
 8033478:	78 01 08 06 	mvhi r1,0x806                                  
 803347c:	b8 40 68 00 	mv r13,r2                                      
 8033480:	38 21 83 d0 	ori r1,r1,0x83d0                               
 8033484:	b9 80 10 00 	mv r2,r12                                      
 8033488:	37 83 00 18 	addi r3,sp,24                                  
 803348c:	fb ff 45 f2 	calli 8004c54 <_Objects_Get>                   
 8033490:	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 ) {                                               
 8033494:	2b 81 00 18 	lw r1,(sp+24)                                  
 8033498:	5c 20 00 65 	bne r1,r0,803362c <rtems_rate_monotonic_period+0x1d0>
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
 803349c:	78 03 08 06 	mvhi r3,0x806                                  
 80334a0:	38 63 81 40 	ori r3,r3,0x8140                               
    case OBJECTS_LOCAL:                                               
      if ( !_Thread_Is_executing( the_period->owner ) ) {             
 80334a4:	29 62 00 40 	lw r2,(r11+64)                                 
 80334a8:	28 61 00 10 	lw r1,(r3+16)                                  
 80334ac:	44 41 00 04 	be r2,r1,80334bc <rtems_rate_monotonic_period+0x60>
        _Thread_Enable_dispatch();                                    
 80334b0:	fb ff 49 b0 	calli 8005b70 <_Thread_Enable_dispatch>        
        return RTEMS_NOT_OWNER_OF_RESOURCE;                           
 80334b4:	34 0c 00 17 	mvi r12,23                                     
 80334b8:	e0 00 00 5e 	bi 8033630 <rtems_rate_monotonic_period+0x1d4> 
      }                                                               
                                                                      
      if ( length == RTEMS_PERIOD_STATUS ) {                          
 80334bc:	5d a0 00 0d 	bne r13,r0,80334f0 <rtems_rate_monotonic_period+0x94>
        switch ( the_period->state ) {                                
 80334c0:	29 61 00 38 	lw r1,(r11+56)                                 
 80334c4:	34 02 00 04 	mvi r2,4                                       
 80334c8:	34 0c 00 00 	mvi r12,0                                      
 80334cc:	54 22 00 07 	bgu r1,r2,80334e8 <rtems_rate_monotonic_period+0x8c><== NEVER TAKEN
 80334d0:	78 0b 08 06 	mvhi r11,0x806                                 
 80334d4:	34 02 00 02 	mvi r2,2                                       
 80334d8:	fb ff 33 48 	calli 80001f8 <__ashlsi3>                      
 80334dc:	39 6b 0d 2c 	ori r11,r11,0xd2c                              
 80334e0:	b5 61 08 00 	add r1,r11,r1                                  
 80334e4:	28 2c 00 00 	lw r12,(r1+0)                                  
          case RATE_MONOTONIC_ACTIVE:                                 
          default:              /* unreached -- only to remove warnings */
            return_value = RTEMS_SUCCESSFUL;                          
            break;                                                    
        }                                                             
        _Thread_Enable_dispatch();                                    
 80334e8:	fb ff 49 a2 	calli 8005b70 <_Thread_Enable_dispatch>        
        return( return_value );                                       
 80334ec:	e0 00 00 51 	bi 8033630 <rtems_rate_monotonic_period+0x1d4> 
      }                                                               
                                                                      
      _ISR_Disable( level );                                          
 80334f0:	90 00 70 00 	rcsr r14,IE                                    
 80334f4:	34 01 ff fe 	mvi r1,-2                                      
 80334f8:	a1 c1 08 00 	and r1,r14,r1                                  
 80334fc:	d0 01 00 00 	wcsr IE,r1                                     
      if ( the_period->state == RATE_MONOTONIC_INACTIVE ) {           
 8033500:	29 63 00 38 	lw r3,(r11+56)                                 
 8033504:	5c 60 00 13 	bne r3,r0,8033550 <rtems_rate_monotonic_period+0xf4>
        _ISR_Enable( level );                                         
 8033508:	d0 0e 00 00 	wcsr IE,r14                                    
        the_period->next_length = length;                             
                                                                      
        /*                                                            
         *  Baseline statistics information for the beginning of a period.
         */                                                           
        _Rate_monotonic_Initiate_statistics( the_period );            
 803350c:	b9 60 08 00 	mv r1,r11                                      
                                                                      
      _ISR_Disable( level );                                          
      if ( the_period->state == RATE_MONOTONIC_INACTIVE ) {           
        _ISR_Enable( level );                                         
                                                                      
        the_period->next_length = length;                             
 8033510:	59 6d 00 3c 	sw (r11+60),r13                                
                                                                      
        /*                                                            
         *  Baseline statistics information for the beginning of a period.
         */                                                           
        _Rate_monotonic_Initiate_statistics( the_period );            
 8033514:	fb ff ff a5 	calli 80333a8 <_Rate_monotonic_Initiate_statistics>
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
 8033518:	34 01 00 02 	mvi r1,2                                       
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
 803351c:	78 03 08 03 	mvhi r3,0x803                                  
 8033520:	59 61 00 38 	sw (r11+56),r1                                 
 8033524:	38 63 36 50 	ori r3,r3,0x3650                               
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 8033528:	78 01 08 06 	mvhi r1,0x806                                  
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 803352c:	59 60 00 18 	sw (r11+24),r0                                 
  the_watchdog->routine   = routine;                                  
 8033530:	59 63 00 2c 	sw (r11+44),r3                                 
  the_watchdog->id        = id;                                       
 8033534:	59 6c 00 30 	sw (r11+48),r12                                
  the_watchdog->user_data = user_data;                                
 8033538:	59 60 00 34 	sw (r11+52),r0                                 
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 803353c:	59 6d 00 1c 	sw (r11+28),r13                                
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 8033540:	38 21 80 58 	ori r1,r1,0x8058                               
 8033544:	35 62 00 10 	addi r2,r11,16                                 
 8033548:	fb ff 4d 2d 	calli 80069fc <_Watchdog_Insert>               
 803354c:	e0 00 00 1f 	bi 80335c8 <rtems_rate_monotonic_period+0x16c> 
        _Watchdog_Insert_ticks( &the_period->Timer, length );         
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
                                                                      
      if ( the_period->state == RATE_MONOTONIC_ACTIVE ) {             
 8033550:	34 01 00 02 	mvi r1,2                                       
 8033554:	5c 61 00 20 	bne r3,r1,80335d4 <rtems_rate_monotonic_period+0x178>
        /*                                                            
         *  Update statistics from the concluding period.             
         */                                                           
        _Rate_monotonic_Update_statistics( the_period );              
 8033558:	b9 60 08 00 	mv r1,r11                                      
 803355c:	fb ff ff 49 	calli 8033280 <_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;         
 8033560:	34 01 00 01 	mvi r1,1                                       
 8033564:	59 61 00 38 	sw (r11+56),r1                                 
        the_period->next_length = length;                             
 8033568:	59 6d 00 3c 	sw (r11+60),r13                                
                                                                      
        _ISR_Enable( level );                                         
 803356c:	d0 0e 00 00 	wcsr IE,r14                                    
                                                                      
        _Thread_Executing->Wait.id = the_period->Object.id;           
 8033570:	78 01 08 06 	mvhi r1,0x806                                  
 8033574:	38 21 81 40 	ori r1,r1,0x8140                               
 8033578:	29 62 00 08 	lw r2,(r11+8)                                  
 803357c:	28 21 00 10 	lw r1,(r1+16)                                  
 8033580:	58 22 00 20 	sw (r1+32),r2                                  
        _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
 8033584:	34 02 40 00 	mvi r2,16384                                   
 8033588:	fb ff 4c 0b 	calli 80065b4 <_Thread_Set_state>              
                                                                      
        /*                                                            
         *  Did the watchdog timer expire while we were actually blocking
         *  on it?                                                    
         */                                                           
        _ISR_Disable( level );                                        
 803358c:	90 00 08 00 	rcsr r1,IE                                     
 8033590:	34 02 ff fe 	mvi r2,-2                                      
 8033594:	a0 22 10 00 	and r2,r1,r2                                   
 8033598:	d0 02 00 00 	wcsr IE,r2                                     
          local_state = the_period->state;                            
          the_period->state = RATE_MONOTONIC_ACTIVE;                  
 803359c:	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;                            
 80335a0:	29 62 00 38 	lw r2,(r11+56)                                 
          the_period->state = RATE_MONOTONIC_ACTIVE;                  
 80335a4:	59 63 00 38 	sw (r11+56),r3                                 
        _ISR_Enable( level );                                         
 80335a8:	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 )   
 80335ac:	34 01 00 03 	mvi r1,3                                       
 80335b0:	5c 41 00 06 	bne r2,r1,80335c8 <rtems_rate_monotonic_period+0x16c>
          _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
 80335b4:	78 01 08 06 	mvhi r1,0x806                                  
 80335b8:	38 21 81 40 	ori r1,r1,0x8140                               
 80335bc:	28 21 00 10 	lw r1,(r1+16)                                  
 80335c0:	34 02 40 00 	mvi r2,16384                                   
 80335c4:	fb ff 63 df 	calli 800c540 <_Thread_Clear_state>            
                                                                      
        _Thread_Enable_dispatch();                                    
 80335c8:	fb ff 49 6a 	calli 8005b70 <_Thread_Enable_dispatch>        
        return RTEMS_SUCCESSFUL;                                      
 80335cc:	34 0c 00 00 	mvi r12,0                                      
 80335d0:	e0 00 00 18 	bi 8033630 <rtems_rate_monotonic_period+0x1d4> 
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 80335d4:	34 0c 00 04 	mvi r12,4                                      
                                                                      
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
                                                                      
      if ( the_period->state == RATE_MONOTONIC_EXPIRED ) {            
 80335d8:	5c 6c 00 16 	bne r3,r12,8033630 <rtems_rate_monotonic_period+0x1d4><== NEVER TAKEN
        /*                                                            
         *  Update statistics from the concluding period              
         */                                                           
        _Rate_monotonic_Update_statistics( the_period );              
 80335dc:	b9 60 08 00 	mv r1,r11                                      
 80335e0:	fb ff ff 28 	calli 8033280 <_Rate_monotonic_Update_statistics>
                                                                      
        _ISR_Enable( level );                                         
 80335e4:	d0 0e 00 00 	wcsr IE,r14                                    
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
 80335e8:	34 01 00 02 	mvi r1,2                                       
 80335ec:	59 61 00 38 	sw (r11+56),r1                                 
 80335f0:	78 01 08 06 	mvhi r1,0x806                                  
 80335f4:	38 21 80 58 	ori r1,r1,0x8058                               
 80335f8:	35 62 00 10 	addi r2,r11,16                                 
        the_period->next_length = length;                             
 80335fc:	59 6d 00 3c 	sw (r11+60),r13                                
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 8033600:	59 6d 00 1c 	sw (r11+28),r13                                
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 8033604:	fb ff 4c fe 	calli 80069fc <_Watchdog_Insert>               
 8033608:	78 01 08 06 	mvhi r1,0x806                                  
 803360c:	38 21 40 18 	ori r1,r1,0x4018                               
 8033610:	28 23 00 34 	lw r3,(r1+52)                                  
 8033614:	29 62 00 3c 	lw r2,(r11+60)                                 
 8033618:	29 61 00 40 	lw r1,(r11+64)                                 
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, length );         
        _Scheduler_Release_job(the_period->owner, the_period->next_length);
        _Thread_Enable_dispatch();                                    
        return RTEMS_TIMEOUT;                                         
 803361c:	34 0c 00 06 	mvi r12,6                                      
 8033620:	d8 60 00 00 	call r3                                        
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
        the_period->next_length = length;                             
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, length );         
        _Scheduler_Release_job(the_period->owner, the_period->next_length);
        _Thread_Enable_dispatch();                                    
 8033624:	fb ff 49 53 	calli 8005b70 <_Thread_Enable_dispatch>        
        return RTEMS_TIMEOUT;                                         
 8033628:	e0 00 00 02 	bi 8033630 <rtems_rate_monotonic_period+0x1d4> 
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 803362c:	34 0c 00 04 	mvi r12,4                                      
}                                                                     
 8033630:	b9 80 08 00 	mv r1,r12                                      
 8033634:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8033638:	2b 8b 00 14 	lw r11,(sp+20)                                 
 803363c:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8033640:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8033644:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8033648:	37 9c 00 18 	addi sp,sp,24                                  
 803364c:	c3 a0 00 00 	ret                                            
                                                                      

08024de8 <rtems_rate_monotonic_report_statistics_with_plugin>: void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) {
 8024de8:	37 9c ff 5c 	addi sp,sp,-164                                
 8024dec:	5b 8b 00 44 	sw (sp+68),r11                                 
 8024df0:	5b 8c 00 40 	sw (sp+64),r12                                 
 8024df4:	5b 8d 00 3c 	sw (sp+60),r13                                 
 8024df8:	5b 8e 00 38 	sw (sp+56),r14                                 
 8024dfc:	5b 8f 00 34 	sw (sp+52),r15                                 
 8024e00:	5b 90 00 30 	sw (sp+48),r16                                 
 8024e04:	5b 91 00 2c 	sw (sp+44),r17                                 
 8024e08:	5b 92 00 28 	sw (sp+40),r18                                 
 8024e0c:	5b 93 00 24 	sw (sp+36),r19                                 
 8024e10:	5b 94 00 20 	sw (sp+32),r20                                 
 8024e14:	5b 95 00 1c 	sw (sp+28),r21                                 
 8024e18:	5b 96 00 18 	sw (sp+24),r22                                 
 8024e1c:	5b 97 00 14 	sw (sp+20),r23                                 
 8024e20:	5b 98 00 10 	sw (sp+16),r24                                 
 8024e24:	5b 99 00 0c 	sw (sp+12),r25                                 
 8024e28:	5b 9b 00 08 	sw (sp+8),fp                                   
 8024e2c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8024e30:	b8 20 60 00 	mv r12,r1                                      
 8024e34:	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 )                                                       
 8024e38:	44 40 00 72 	be r2,r0,8025000 <rtems_rate_monotonic_report_statistics_with_plugin+0x218><== NEVER TAKEN
    return;                                                           
                                                                      
  (*print)( context, "Period information by period\n" );              
 8024e3c:	78 02 08 05 	mvhi r2,0x805                                  
 8024e40:	38 42 de 30 	ori r2,r2,0xde30                               
 8024e44:	d9 60 00 00 	call r11                                       
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    (*print)( context, "--- CPU times are in seconds ---\n" );        
 8024e48:	78 02 08 05 	mvhi r2,0x805                                  
 8024e4c:	38 42 de 50 	ori r2,r2,0xde50                               
 8024e50:	b9 80 08 00 	mv r1,r12                                      
 8024e54:	d9 60 00 00 	call r11                                       
    (*print)( context, "--- Wall times are in seconds ---\n" );       
 8024e58:	78 02 08 05 	mvhi r2,0x805                                  
 8024e5c:	38 42 de 74 	ori r2,r2,0xde74                               
 8024e60:	b9 80 08 00 	mv r1,r12                                      
 8024e64:	d9 60 00 00 	call r11                                       
  Be sure to test the various cases.                                  
  (*print)( context,"\                                                
1234567890123456789012345678901234567890123456789012345678901234567890123456789\
\n");                                                                 
*/                                                                    
  (*print)( context, "   ID     OWNER COUNT MISSED     "              
 8024e68:	78 02 08 05 	mvhi r2,0x805                                  
 8024e6c:	38 42 de 98 	ori r2,r2,0xde98                               
 8024e70:	b9 80 08 00 	mv r1,r12                                      
 8024e74:	d9 60 00 00 	call r11                                       
       #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                     
          "          "                                                
       #endif                                                         
          "   WALL TIME\n"                                            
  );                                                                  
  (*print)( context, "                               "                
 8024e78:	78 02 08 05 	mvhi r2,0x805                                  
 8024e7c:	b9 80 08 00 	mv r1,r12                                      
 8024e80:	38 42 de e4 	ori r2,r2,0xdee4                               
 8024e84:	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 ;                   
 8024e88:	78 01 08 06 	mvhi r1,0x806                                  
 8024e8c:	38 21 83 d0 	ori r1,r1,0x83d0                               
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
 8024e90:	78 11 08 05 	mvhi r17,0x805                                 
      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,                                              
 8024e94:	78 10 08 05 	mvhi r16,0x805                                 
      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,                                              
 8024e98:	78 0f 08 05 	mvhi r15,0x805                                 
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
 8024e9c:	78 0e 08 05 	mvhi r14,0x805                                 
                                                                      
  /*                                                                  
   * 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 ;                   
 8024ea0:	28 2d 00 08 	lw r13,(r1+8)                                  
        id <= _Rate_monotonic_Information.maximum_id ;                
 8024ea4:	b8 20 a0 00 	mv r20,r1                                      
        id++ ) {                                                      
    status = rtems_rate_monotonic_get_statistics( id, &the_stats );   
 8024ea8:	37 99 00 48 	addi r25,sp,72                                 
    #if defined(RTEMS_DEBUG)                                          
      status = rtems_rate_monotonic_get_status( id, &the_status );    
      if ( status != RTEMS_SUCCESSFUL )                               
        continue;                                                     
    #else                                                             
      (void) rtems_rate_monotonic_get_status( id, &the_status );      
 8024eac:	37 98 00 80 	addi r24,sp,128                                
    #endif                                                            
                                                                      
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
 8024eb0:	37 93 00 a0 	addi r19,sp,160                                
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
 8024eb4:	3a 31 df 30 	ori r17,r17,0xdf30                             
    {                                                                 
    #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;         
 8024eb8:	37 97 00 60 	addi r23,sp,96                                 
                                                                      
      _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average );
 8024ebc:	37 92 00 98 	addi r18,sp,152                                
      (*print)( context,                                              
 8024ec0:	3a 10 df 48 	ori r16,r16,0xdf48                             
    {                                                                 
    #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;       
 8024ec4:	37 96 00 78 	addi r22,sp,120                                
                                                                      
      _Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average);
      (*print)( context,                                              
 8024ec8:	39 ef df 68 	ori r15,r15,0xdf68                             
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
 8024ecc:	39 ce f5 e8 	ori r14,r14,0xf5e8                             
                                                                      
  /*                                                                  
   * 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 ;                   
 8024ed0:	e0 00 00 4a 	bi 8024ff8 <rtems_rate_monotonic_report_statistics_with_plugin+0x210>
        id <= _Rate_monotonic_Information.maximum_id ;                
        id++ ) {                                                      
    status = rtems_rate_monotonic_get_statistics( id, &the_stats );   
 8024ed4:	b9 a0 08 00 	mv r1,r13                                      
 8024ed8:	bb 20 10 00 	mv r2,r25                                      
 8024edc:	f8 00 37 ce 	calli 8032e14 <rtems_rate_monotonic_get_statistics>
 8024ee0:	b8 20 a8 00 	mv r21,r1                                      
    if ( status != RTEMS_SUCCESSFUL )                                 
 8024ee4:	5c 20 00 44 	bne r1,r0,8024ff4 <rtems_rate_monotonic_report_statistics_with_plugin+0x20c>
    #if defined(RTEMS_DEBUG)                                          
      status = rtems_rate_monotonic_get_status( id, &the_status );    
      if ( status != RTEMS_SUCCESSFUL )                               
        continue;                                                     
    #else                                                             
      (void) rtems_rate_monotonic_get_status( id, &the_status );      
 8024ee8:	bb 00 10 00 	mv r2,r24                                      
 8024eec:	b9 a0 08 00 	mv r1,r13                                      
 8024ef0:	f8 00 38 56 	calli 8033048 <rtems_rate_monotonic_get_status>
    #endif                                                            
                                                                      
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
 8024ef4:	2b 81 00 80 	lw r1,(sp+128)                                 
 8024ef8:	34 02 00 05 	mvi r2,5                                       
 8024efc:	ba 60 18 00 	mv r3,r19                                      
 8024f00:	fb ff 9a 0f 	calli 800b73c <rtems_object_get_name>          
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
 8024f04:	2b 85 00 48 	lw r5,(sp+72)                                  
 8024f08:	2b 86 00 4c 	lw r6,(sp+76)                                  
 8024f0c:	ba 20 10 00 	mv r2,r17                                      
 8024f10:	b9 80 08 00 	mv r1,r12                                      
 8024f14:	b9 a0 18 00 	mv r3,r13                                      
 8024f18:	ba 60 20 00 	mv r4,r19                                      
 8024f1c:	d9 60 00 00 	call r11                                       
    );                                                                
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
 8024f20:	2b 82 00 48 	lw r2,(sp+72)                                  
 8024f24:	5c 55 00 05 	bne r2,r21,8024f38 <rtems_rate_monotonic_report_statistics_with_plugin+0x150>
      (*print)( context, "\n" );                                      
 8024f28:	b9 80 08 00 	mv r1,r12                                      
 8024f2c:	b9 c0 10 00 	mv r2,r14                                      
 8024f30:	d9 60 00 00 	call r11                                       
      continue;                                                       
 8024f34:	e0 00 00 30 	bi 8024ff4 <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 );
 8024f38:	ba 40 18 00 	mv r3,r18                                      
 8024f3c:	ba e0 08 00 	mv r1,r23                                      
 8024f40:	f8 00 04 a5 	calli 80261d4 <_Timespec_Divide_by_integer>    
      (*print)( context,                                              
 8024f44:	2b 81 00 54 	lw r1,(sp+84)                                  
 8024f48:	34 02 03 e8 	mvi r2,1000                                    
 8024f4c:	f8 00 c9 75 	calli 8057520 <__divsi3>                       
 8024f50:	b8 20 d8 00 	mv fp,r1                                       
 8024f54:	2b 81 00 5c 	lw r1,(sp+92)                                  
 8024f58:	34 02 03 e8 	mvi r2,1000                                    
 8024f5c:	f8 00 c9 71 	calli 8057520 <__divsi3>                       
 8024f60:	b8 20 a8 00 	mv r21,r1                                      
 8024f64:	2b 81 00 9c 	lw r1,(sp+156)                                 
 8024f68:	34 02 03 e8 	mvi r2,1000                                    
 8024f6c:	f8 00 c9 6d 	calli 8057520 <__divsi3>                       
 8024f70:	2b 85 00 58 	lw r5,(sp+88)                                  
 8024f74:	2b 87 00 98 	lw r7,(sp+152)                                 
 8024f78:	2b 83 00 50 	lw r3,(sp+80)                                  
 8024f7c:	b8 20 40 00 	mv r8,r1                                       
 8024f80:	bb 60 20 00 	mv r4,fp                                       
 8024f84:	ba a0 30 00 	mv r6,r21                                      
 8024f88:	ba 00 10 00 	mv r2,r16                                      
 8024f8c:	b9 80 08 00 	mv r1,r12                                      
 8024f90:	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);
 8024f94:	2b 82 00 48 	lw r2,(sp+72)                                  
 8024f98:	ba 40 18 00 	mv r3,r18                                      
 8024f9c:	ba c0 08 00 	mv r1,r22                                      
 8024fa0:	f8 00 04 8d 	calli 80261d4 <_Timespec_Divide_by_integer>    
      (*print)( context,                                              
 8024fa4:	2b 81 00 6c 	lw r1,(sp+108)                                 
 8024fa8:	34 02 03 e8 	mvi r2,1000                                    
 8024fac:	f8 00 c9 5d 	calli 8057520 <__divsi3>                       
 8024fb0:	b8 20 d8 00 	mv fp,r1                                       
 8024fb4:	2b 81 00 74 	lw r1,(sp+116)                                 
 8024fb8:	34 02 03 e8 	mvi r2,1000                                    
 8024fbc:	f8 00 c9 59 	calli 8057520 <__divsi3>                       
 8024fc0:	b8 20 a8 00 	mv r21,r1                                      
 8024fc4:	2b 81 00 9c 	lw r1,(sp+156)                                 
 8024fc8:	34 02 03 e8 	mvi r2,1000                                    
 8024fcc:	f8 00 c9 55 	calli 8057520 <__divsi3>                       
 8024fd0:	2b 83 00 68 	lw r3,(sp+104)                                 
 8024fd4:	2b 85 00 70 	lw r5,(sp+112)                                 
 8024fd8:	2b 87 00 98 	lw r7,(sp+152)                                 
 8024fdc:	b8 20 40 00 	mv r8,r1                                       
 8024fe0:	b9 e0 10 00 	mv r2,r15                                      
 8024fe4:	b9 80 08 00 	mv r1,r12                                      
 8024fe8:	bb 60 20 00 	mv r4,fp                                       
 8024fec:	ba a0 30 00 	mv r6,r21                                      
 8024ff0:	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++ ) {                                                      
 8024ff4:	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 ;                   
 8024ff8:	2a 81 00 0c 	lw r1,(r20+12)                                 
 8024ffc:	50 2d ff b6 	bgeu r1,r13,8024ed4 <rtems_rate_monotonic_report_statistics_with_plugin+0xec>
        the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall
      );                                                              
    #endif                                                            
    }                                                                 
  }                                                                   
}                                                                     
 8025000:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8025004:	2b 8b 00 44 	lw r11,(sp+68)                                 
 8025008:	2b 8c 00 40 	lw r12,(sp+64)                                 
 802500c:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 8025010:	2b 8e 00 38 	lw r14,(sp+56)                                 
 8025014:	2b 8f 00 34 	lw r15,(sp+52)                                 
 8025018:	2b 90 00 30 	lw r16,(sp+48)                                 
 802501c:	2b 91 00 2c 	lw r17,(sp+44)                                 
 8025020:	2b 92 00 28 	lw r18,(sp+40)                                 
 8025024:	2b 93 00 24 	lw r19,(sp+36)                                 
 8025028:	2b 94 00 20 	lw r20,(sp+32)                                 
 802502c:	2b 95 00 1c 	lw r21,(sp+28)                                 
 8025030:	2b 96 00 18 	lw r22,(sp+24)                                 
 8025034:	2b 97 00 14 	lw r23,(sp+20)                                 
 8025038:	2b 98 00 10 	lw r24,(sp+16)                                 
 802503c:	2b 99 00 0c 	lw r25,(sp+12)                                 
 8025040:	2b 9b 00 08 	lw fp,(sp+8)                                   
 8025044:	37 9c 00 a4 	addi sp,sp,164                                 
 8025048:	c3 a0 00 00 	ret                                            
                                                                      

080046c8 <rtems_rbheap_allocate>: return big_enough; } void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size) {
 80046c8:	37 9c ff e8 	addi sp,sp,-24                                 
 80046cc:	5b 8b 00 18 	sw (sp+24),r11                                 
 80046d0:	5b 8c 00 14 	sw (sp+20),r12                                 
 80046d4:	5b 8d 00 10 	sw (sp+16),r13                                 
 80046d8:	5b 8e 00 0c 	sw (sp+12),r14                                 
 80046dc:	5b 8f 00 08 	sw (sp+8),r15                                  
 80046e0:	5b 9d 00 04 	sw (sp+4),ra                                   
  void *ptr = NULL;                                                   
  rtems_chain_control *free_chain = &control->free_chunk_chain;       
  rtems_rbtree_control *chunk_tree = &control->chunk_tree;            
  uintptr_t alignment = control->alignment;                           
 80046e4:	28 2d 00 30 	lw r13,(r1+48)                                 
                                                                      
  return big_enough;                                                  
}                                                                     
                                                                      
void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size)
{                                                                     
 80046e8:	b8 40 60 00 	mv r12,r2                                      
 80046ec:	b8 20 58 00 	mv r11,r1                                      
                                                                      
#include <stdlib.h>                                                   
                                                                      
static uintptr_t align_up(uintptr_t alignment, uintptr_t value)       
{                                                                     
  uintptr_t excess = value % alignment;                               
 80046f0:	b8 40 08 00 	mv r1,r2                                       
 80046f4:	b9 a0 10 00 	mv r2,r13                                      
 80046f8:	f8 00 37 fc 	calli 80126e8 <__umodsi3>                      
                                                                      
  if (excess > 0) {                                                   
 80046fc:	b9 80 70 00 	mv r14,r12                                     
 8004700:	44 20 00 03 	be r1,r0,800470c <rtems_rbheap_allocate+0x44>  <== ALWAYS TAKEN
    value += alignment - excess;                                      
 8004704:	b5 8d 70 00 	add r14,r12,r13                                <== NOT EXECUTED
 8004708:	c9 c1 70 00 	sub r14,r14,r1                                 <== NOT EXECUTED
  rtems_chain_control *free_chain = &control->free_chunk_chain;       
  rtems_rbtree_control *chunk_tree = &control->chunk_tree;            
  uintptr_t alignment = control->alignment;                           
  uintptr_t aligned_size = align_up(alignment, size);                 
                                                                      
  if (size > 0 && size <= aligned_size) {                             
 800470c:	f1 cc 08 00 	cmpgeu r1,r14,r12                              
 8004710:	7d 8c 00 00 	cmpnei r12,r12,0                               
 8004714:	a0 2c 60 00 	and r12,r1,r12                                 
  return big_enough;                                                  
}                                                                     
                                                                      
void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size)
{                                                                     
  void *ptr = NULL;                                                   
 8004718:	34 01 00 00 	mvi r1,0                                       
  rtems_chain_control *free_chain = &control->free_chunk_chain;       
  rtems_rbtree_control *chunk_tree = &control->chunk_tree;            
  uintptr_t alignment = control->alignment;                           
  uintptr_t aligned_size = align_up(alignment, size);                 
                                                                      
  if (size > 0 && size <= aligned_size) {                             
 800471c:	45 80 00 3b 	be r12,r0,8004808 <rtems_rbheap_allocate+0x140>
  rtems_rbheap_chunk *chunk = malloc(sizeof(*chunk));                 
                                                                      
  if (chunk != NULL) {                                                
    rtems_rbheap_add_to_spare_descriptor_chain(control, chunk);       
  }                                                                   
}                                                                     
 8004720:	29 61 00 00 	lw r1,(r11+0)                                  
  rtems_chain_control *free_chain,                                    
  size_t size                                                         
)                                                                     
{                                                                     
  rtems_chain_node *current = rtems_chain_first(free_chain);          
  const rtems_chain_node *tail = rtems_chain_tail(free_chain);        
 8004724:	35 63 00 04 	addi r3,r11,4                                  
  rtems_rbheap_chunk *big_enough = NULL;                              
 8004728:	34 0c 00 00 	mvi r12,0                                      
 800472c:	e0 00 00 06 	bi 8004744 <rtems_rbheap_allocate+0x7c>        
                                                                      
  while (current != tail && big_enough == NULL) {                     
    rtems_rbheap_chunk *free_chunk = (rtems_rbheap_chunk *) current;  
                                                                      
    if (free_chunk->size >= size) {                                   
 8004730:	28 2c 00 1c 	lw r12,(r1+28)                                 
 8004734:	f1 8e 60 00 	cmpgeu r12,r12,r14                             
 8004738:	c8 0c 60 00 	sub r12,r0,r12                                 
 800473c:	a0 2c 60 00 	and r12,r1,r12                                 
  rtems_rbheap_chunk *chunk = malloc(sizeof(*chunk));                 
                                                                      
  if (chunk != NULL) {                                                
    rtems_rbheap_add_to_spare_descriptor_chain(control, chunk);       
  }                                                                   
}                                                                     
 8004740:	28 21 00 00 	lw r1,(r1+0)                                   
{                                                                     
  rtems_chain_node *current = rtems_chain_first(free_chain);          
  const rtems_chain_node *tail = rtems_chain_tail(free_chain);        
  rtems_rbheap_chunk *big_enough = NULL;                              
                                                                      
  while (current != tail && big_enough == NULL) {                     
 8004744:	65 84 00 00 	cmpei r4,r12,0                                 
 8004748:	fc 23 10 00 	cmpne r2,r1,r3                                 
 800474c:	a0 82 10 00 	and r2,r4,r2                                   
 8004750:	5c 40 ff f8 	bne r2,r0,8004730 <rtems_rbheap_allocate+0x68> 
  return big_enough;                                                  
}                                                                     
                                                                      
void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size)
{                                                                     
  void *ptr = NULL;                                                   
 8004754:	34 01 00 00 	mvi r1,0                                       
  uintptr_t aligned_size = align_up(alignment, size);                 
                                                                      
  if (size > 0 && size <= aligned_size) {                             
    rtems_rbheap_chunk *free_chunk = search_free_chunk(free_chain, aligned_size);
                                                                      
    if (free_chunk != NULL) {                                         
 8004758:	45 82 00 2c 	be r12,r2,8004808 <rtems_rbheap_allocate+0x140>
      uintptr_t free_size = free_chunk->size;                         
 800475c:	29 8f 00 1c 	lw r15,(r12+28)                                
                                                                      
      if (free_size > aligned_size) {                                 
 8004760:	51 cf 00 21 	bgeu r14,r15,80047e4 <rtems_rbheap_allocate+0x11c>
  rtems_rbheap_chunk *chunk = malloc(sizeof(*chunk));                 
                                                                      
  if (chunk != NULL) {                                                
    rtems_rbheap_add_to_spare_descriptor_chain(control, chunk);       
  }                                                                   
}                                                                     
 8004764:	29 6d 00 0c 	lw r13,(r11+12)                                
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 8004768:	35 61 00 10 	addi r1,r11,16                                 
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
 800476c:	45 a1 00 06 	be r13,r1,8004784 <rtems_rbheap_allocate+0xbc> <== NEVER TAKEN
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
 8004770:	29 a1 00 00 	lw r1,(r13+0)                                  
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_first_unprotected(        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
 8004774:	35 62 00 0c 	addi r2,r11,12                                 
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
                                                                      
  head->next = new_first;                                             
 8004778:	59 61 00 0c 	sw (r11+12),r1                                 
  new_first->previous = head;                                         
 800477c:	58 22 00 04 	sw (r1+4),r2                                   
 8004780:	e0 00 00 0b 	bi 80047ac <rtems_rbheap_allocate+0xe4>        
{                                                                     
  rtems_chain_control *chain = &control->spare_descriptor_chain;      
  rtems_chain_node *chunk = rtems_chain_get_unprotected(chain);       
                                                                      
  if (chunk == NULL) {                                                
    (*control->extend_descriptors)(control);                          
 8004784:	29 62 00 34 	lw r2,(r11+52)                                 <== NOT EXECUTED
 8004788:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800478c:	d8 40 00 00 	call r2                                        <== NOT EXECUTED
  rtems_rbheap_chunk *chunk = malloc(sizeof(*chunk));                 
                                                                      
  if (chunk != NULL) {                                                
    rtems_rbheap_add_to_spare_descriptor_chain(control, chunk);       
  }                                                                   
}                                                                     
 8004790:	29 61 00 0c 	lw r1,(r11+12)                                 <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
 8004794:	44 2d 00 1c 	be r1,r13,8004804 <rtems_rbheap_allocate+0x13c><== NOT EXECUTED
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
 8004798:	28 22 00 00 	lw r2,(r1+0)                                   <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_first_unprotected(        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
 800479c:	35 63 00 0c 	addi r3,r11,12                                 <== NOT EXECUTED
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
                                                                      
  head->next = new_first;                                             
  new_first->previous = head;                                         
 80047a0:	b8 20 68 00 	mv r13,r1                                      <== NOT EXECUTED
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
                                                                      
  head->next = new_first;                                             
 80047a4:	59 62 00 0c 	sw (r11+12),r2                                 <== NOT EXECUTED
  new_first->previous = head;                                         
 80047a8:	58 43 00 04 	sw (r2+4),r3                                   <== NOT EXECUTED
      uintptr_t free_size = free_chunk->size;                         
                                                                      
      if (free_size > aligned_size) {                                 
        rtems_rbheap_chunk *new_chunk = get_chunk(control);           
                                                                      
        if (new_chunk != NULL) {                                      
 80047ac:	45 a0 00 16 	be r13,r0,8004804 <rtems_rbheap_allocate+0x13c><== NEVER TAKEN
          uintptr_t new_free_size = free_size - aligned_size;         
                                                                      
          free_chunk->size = new_free_size;                           
          new_chunk->begin = free_chunk->begin + new_free_size;       
 80047b0:	29 82 00 18 	lw r2,(r12+24)                                 
                                                                      
      if (free_size > aligned_size) {                                 
        rtems_rbheap_chunk *new_chunk = get_chunk(control);           
                                                                      
        if (new_chunk != NULL) {                                      
          uintptr_t new_free_size = free_size - aligned_size;         
 80047b4:	c9 ee 08 00 	sub r1,r15,r14                                 
                                                                      
          free_chunk->size = new_free_size;                           
 80047b8:	59 81 00 1c 	sw (r12+28),r1                                 
          new_chunk->begin = free_chunk->begin + new_free_size;       
 80047bc:	b4 22 08 00 	add r1,r1,r2                                   
 80047c0:	59 a1 00 18 	sw (r13+24),r1                                 
          new_chunk->size = aligned_size;                             
 80047c4:	59 ae 00 1c 	sw (r13+28),r14                                
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(                       
  Chain_Node *node                                                    
)                                                                     
{                                                                     
  node->next = node->previous = NULL;                                 
 80047c8:	59 a0 00 04 	sw (r13+4),r0                                  
 80047cc:	59 a0 00 00 	sw (r13+0),r0                                  
static void insert_into_tree(                                         
  rtems_rbtree_control *tree,                                         
  rtems_rbheap_chunk *chunk                                           
)                                                                     
{                                                                     
  _RBTree_Insert_unprotected(tree, &chunk->tree_node);                
 80047d0:	35 61 00 18 	addi r1,r11,24                                 
 80047d4:	35 a2 00 08 	addi r2,r13,8                                  
 80047d8:	f8 00 07 6e 	calli 8006590 <_RBTree_Insert_unprotected>     
          free_chunk->size = new_free_size;                           
          new_chunk->begin = free_chunk->begin + new_free_size;       
          new_chunk->size = aligned_size;                             
          rtems_chain_set_off_chain(&new_chunk->chain_node);          
          insert_into_tree(chunk_tree, new_chunk);                    
          ptr = (void *) new_chunk->begin;                            
 80047dc:	29 a1 00 18 	lw r1,(r13+24)                                 
 80047e0:	e0 00 00 0a 	bi 8004808 <rtems_rbheap_allocate+0x140>       
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
 80047e4:	29 81 00 04 	lw r1,(r12+4)                                  
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
 80047e8:	29 82 00 00 	lw r2,(r12+0)                                  
  previous       = the_node->previous;                                
  next->previous = previous;                                          
 80047ec:	58 41 00 04 	sw (r2+4),r1                                   
  previous->next = next;                                              
 80047f0:	58 22 00 00 	sw (r1+0),r2                                   
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(                       
  Chain_Node *node                                                    
)                                                                     
{                                                                     
  node->next = node->previous = NULL;                                 
 80047f4:	59 80 00 04 	sw (r12+4),r0                                  
 80047f8:	59 80 00 00 	sw (r12+0),r0                                  
        }                                                             
      } else {                                                        
        rtems_chain_extract_unprotected(&free_chunk->chain_node);     
        rtems_chain_set_off_chain(&free_chunk->chain_node);           
        ptr = (void *) free_chunk->begin;                             
 80047fc:	29 81 00 18 	lw r1,(r12+24)                                 
 8004800:	e0 00 00 02 	bi 8004808 <rtems_rbheap_allocate+0x140>       
  return big_enough;                                                  
}                                                                     
                                                                      
void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size)
{                                                                     
  void *ptr = NULL;                                                   
 8004804:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  return ptr;                                                         
}                                                                     
 8004808:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800480c:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8004810:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8004814:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8004818:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800481c:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8004820:	37 9c 00 18 	addi sp,sp,24                                  
 8004824:	c3 a0 00 00 	ret                                            
                                                                      

08004964 <rtems_rbheap_extend_descriptors_with_malloc>: void rtems_rbheap_extend_descriptors_with_malloc(rtems_rbheap_control *control) {
 8004964:	37 9c ff f8 	addi sp,sp,-8                                  <== NOT EXECUTED
 8004968:	5b 8b 00 08 	sw (sp+8),r11                                  <== NOT EXECUTED
 800496c:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
 8004970:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
  rtems_rbheap_chunk *chunk = malloc(sizeof(*chunk));                 
 8004974:	34 01 00 20 	mvi r1,32                                      <== NOT EXECUTED
 8004978:	fb ff f5 b6 	calli 8002050 <malloc>                         <== NOT EXECUTED
                                                                      
  if (chunk != NULL) {                                                
 800497c:	44 20 00 07 	be r1,r0,8004998 <rtems_rbheap_extend_descriptors_with_malloc+0x34><== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Prepend_unprotected(                 
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  _Chain_Insert_unprotected(_Chain_Head(the_chain), the_node);        
 8004980:	35 62 00 0c 	addi r2,r11,12                                 <== NOT EXECUTED
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
 8004984:	58 22 00 04 	sw (r1+4),r2                                   <== NOT EXECUTED
  before_node           = after_node->next;                           
 8004988:	29 62 00 0c 	lw r2,(r11+12)                                 <== NOT EXECUTED
  after_node->next      = the_node;                                   
 800498c:	59 61 00 0c 	sw (r11+12),r1                                 <== NOT EXECUTED
  the_node->next        = before_node;                                
 8004990:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
  before_node->previous = the_node;                                   
 8004994:	58 41 00 04 	sw (r2+4),r1                                   <== NOT EXECUTED
    rtems_rbheap_add_to_spare_descriptor_chain(control, chunk);       
  }                                                                   
}                                                                     
 8004998:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 800499c:	2b 8b 00 08 	lw r11,(sp+8)                                  <== NOT EXECUTED
 80049a0:	37 9c 00 08 	addi sp,sp,8                                   <== NOT EXECUTED
 80049a4:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08004828 <rtems_rbheap_free>: _RBTree_Extract_unprotected(chunk_tree, &b->tree_node); } } rtems_status_code rtems_rbheap_free(rtems_rbheap_control *control, void *ptr) {
 8004828:	37 9c ff c8 	addi sp,sp,-56                                 
 800482c:	5b 8b 00 18 	sw (sp+24),r11                                 
 8004830:	5b 8c 00 14 	sw (sp+20),r12                                 
 8004834:	5b 8d 00 10 	sw (sp+16),r13                                 
 8004838:	5b 8e 00 0c 	sw (sp+12),r14                                 
 800483c:	5b 8f 00 08 	sw (sp+8),r15                                  
 8004840:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004844:	b8 20 58 00 	mv r11,r1                                      
 8004848:	b8 40 60 00 	mv r12,r2                                      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
 800484c:	34 01 00 00 	mvi r1,0                                       
                                                                      
  if (ptr != NULL) {                                                  
 8004850:	44 40 00 3c 	be r2,r0,8004940 <rtems_rbheap_free+0x118>     
                                                                      
#define NULL_PAGE rtems_rbheap_chunk_of_node(NULL)                    
                                                                      
static rtems_rbheap_chunk *find(rtems_rbtree_control *chunk_tree, uintptr_t key)
{                                                                     
  rtems_rbheap_chunk chunk = { .begin = key };                        
 8004854:	37 81 00 1c 	addi r1,sp,28                                  
 8004858:	34 02 00 00 	mvi r2,0                                       
 800485c:	34 03 00 20 	mvi r3,32                                      
 8004860:	f8 00 23 01 	calli 800d464 <memset>                         
                                                                      
  return rtems_rbheap_chunk_of_node(                                  
 8004864:	37 8e 00 24 	addi r14,sp,36                                 
                                                                      
#define NULL_PAGE rtems_rbheap_chunk_of_node(NULL)                    
                                                                      
static rtems_rbheap_chunk *find(rtems_rbtree_control *chunk_tree, uintptr_t key)
{                                                                     
  rtems_rbheap_chunk chunk = { .begin = key };                        
 8004868:	5b 8c 00 34 	sw (sp+52),r12                                 
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Find_unprotected(           
    RBTree_Control *the_rbtree,                                       
    RBTree_Node *the_node                                             
    )                                                                 
{                                                                     
  RBTree_Node* iter_node = the_rbtree->root;                          
 800486c:	29 6d 00 1c 	lw r13,(r11+28)                                
  RBTree_Node* found = NULL;                                          
 8004870:	34 0c 00 00 	mvi r12,0                                      
 8004874:	e0 00 00 0e 	bi 80048ac <rtems_rbheap_free+0x84>            
  int compare_result;                                                 
  while (iter_node) {                                                 
    compare_result = the_rbtree->compare_function(the_node, iter_node);
 8004878:	29 63 00 28 	lw r3,(r11+40)                                 
 800487c:	b9 c0 08 00 	mv r1,r14                                      
 8004880:	b9 a0 10 00 	mv r2,r13                                      
 8004884:	d8 60 00 00 	call r3                                        
    if ( _RBTree_Is_equal( compare_result ) ) {                       
 8004888:	5c 20 00 04 	bne r1,r0,8004898 <rtems_rbheap_free+0x70>     
      found = iter_node;                                              
      if ( the_rbtree->is_unique )                                    
 800488c:	41 62 00 2c 	lbu r2,(r11+44)                                
 8004890:	5c 41 00 09 	bne r2,r1,80048b4 <rtems_rbheap_free+0x8c>     <== ALWAYS TAKEN
 8004894:	b9 a0 60 00 	mv r12,r13                                     <== NOT EXECUTED
        break;                                                        
    }                                                                 
                                                                      
    RBTree_Direction dir =                                            
      (RBTree_Direction) _RBTree_Is_greater( compare_result );        
    iter_node = iter_node->child[dir];                                
 8004898:	68 21 00 00 	cmpgi r1,r1,0                                  
 800489c:	34 02 00 02 	mvi r2,2                                       
 80048a0:	fb ff f1 19 	calli 8000d04 <__ashlsi3>                      
 80048a4:	b5 a1 68 00 	add r13,r13,r1                                 
 80048a8:	29 ad 00 04 	lw r13,(r13+4)                                 
    )                                                                 
{                                                                     
  RBTree_Node* iter_node = the_rbtree->root;                          
  RBTree_Node* found = NULL;                                          
  int compare_result;                                                 
  while (iter_node) {                                                 
 80048ac:	5d a0 ff f3 	bne r13,r0,8004878 <rtems_rbheap_free+0x50>    
 80048b0:	b9 80 68 00 	mv r13,r12                                     
  if (ptr != NULL) {                                                  
    rtems_chain_control *free_chain = &control->free_chunk_chain;     
    rtems_rbtree_control *chunk_tree = &control->chunk_tree;          
    rtems_rbheap_chunk *chunk = find(chunk_tree, (uintptr_t) ptr);    
                                                                      
    if (chunk != NULL_PAGE) {                                         
 80048b4:	35 ac ff f8 	addi r12,r13,-8                                
        check_and_merge(free_chain, chunk_tree, chunk, pred);         
      } else {                                                        
        sc = RTEMS_INCORRECT_STATE;                                   
      }                                                               
    } else {                                                          
      sc = RTEMS_INVALID_ID;                                          
 80048b8:	34 01 00 04 	mvi r1,4                                       
  if (ptr != NULL) {                                                  
    rtems_chain_control *free_chain = &control->free_chunk_chain;     
    rtems_rbtree_control *chunk_tree = &control->chunk_tree;          
    rtems_rbheap_chunk *chunk = find(chunk_tree, (uintptr_t) ptr);    
                                                                      
    if (chunk != NULL_PAGE) {                                         
 80048bc:	45 a0 00 21 	be r13,r0,8004940 <rtems_rbheap_free+0x118>    
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_node_off_chain(                   
  const Chain_Node *node                                              
)                                                                     
{                                                                     
  return (node->next == NULL) && (node->previous == NULL);            
 80048c0:	29 a2 ff f8 	lw r2,(r13+-8)                                 
 80048c4:	34 01 00 00 	mvi r1,0                                       
 80048c8:	5c 40 00 03 	bne r2,r0,80048d4 <rtems_rbheap_free+0xac>     
    add_to_chain(free_chain, b);                                      
    _RBTree_Extract_unprotected(chunk_tree, &b->tree_node);           
  }                                                                   
}                                                                     
                                                                      
rtems_status_code rtems_rbheap_free(rtems_rbheap_control *control, void *ptr)
 80048cc:	29 81 00 04 	lw r1,(r12+4)                                  
 80048d0:	64 21 00 00 	cmpei r1,r1,0                                  
    rtems_chain_control *free_chain = &control->free_chunk_chain;     
    rtems_rbtree_control *chunk_tree = &control->chunk_tree;          
    rtems_rbheap_chunk *chunk = find(chunk_tree, (uintptr_t) ptr);    
                                                                      
    if (chunk != NULL_PAGE) {                                         
      if (!rtems_rbheap_is_chunk_free(chunk)) {                       
 80048d4:	18 22 00 01 	xori r2,r1,0x1                                 
                                                                      
        check_and_merge(free_chain, chunk_tree, chunk, succ);         
        add_to_chain(free_chain, chunk);                              
        check_and_merge(free_chain, chunk_tree, chunk, pred);         
      } else {                                                        
        sc = RTEMS_INCORRECT_STATE;                                   
 80048d8:	34 01 00 0e 	mvi r1,14                                      
    rtems_chain_control *free_chain = &control->free_chunk_chain;     
    rtems_rbtree_control *chunk_tree = &control->chunk_tree;          
    rtems_rbheap_chunk *chunk = find(chunk_tree, (uintptr_t) ptr);    
                                                                      
    if (chunk != NULL_PAGE) {                                         
      if (!rtems_rbheap_is_chunk_free(chunk)) {                       
 80048dc:	5c 40 00 19 	bne r2,r0,8004940 <rtems_rbheap_free+0x118>    
static rtems_rbheap_chunk *get_next(                                  
  const rtems_rbheap_chunk *chunk,                                    
  RBTree_Direction dir                                                
)                                                                     
{                                                                     
  return rtems_rbheap_chunk_of_node(                                  
 80048e0:	35 8e 00 08 	addi r14,r12,8                                 
 80048e4:	b9 c0 08 00 	mv r1,r14                                      
 80048e8:	f8 00 07 cf 	calli 8006824 <_RBTree_Next_unprotected>       
 80048ec:	b8 20 78 00 	mv r15,r1                                      
 80048f0:	34 02 00 01 	mvi r2,1                                       
 80048f4:	b9 c0 08 00 	mv r1,r14                                      
 80048f8:	f8 00 07 cb 	calli 8006824 <_RBTree_Next_unprotected>       
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (ptr != NULL) {                                                  
    rtems_chain_control *free_chain = &control->free_chunk_chain;     
    rtems_rbtree_control *chunk_tree = &control->chunk_tree;          
 80048fc:	35 6d 00 18 	addi r13,r11,24                                
static rtems_rbheap_chunk *get_next(                                  
  const rtems_rbheap_chunk *chunk,                                    
  RBTree_Direction dir                                                
)                                                                     
{                                                                     
  return rtems_rbheap_chunk_of_node(                                  
 8004900:	34 24 ff f8 	addi r4,r1,-8                                  
    if (chunk != NULL_PAGE) {                                         
      if (!rtems_rbheap_is_chunk_free(chunk)) {                       
        rtems_rbheap_chunk *pred = get_next(chunk, RBT_LEFT);         
        rtems_rbheap_chunk *succ = get_next(chunk, RBT_RIGHT);        
                                                                      
        check_and_merge(free_chain, chunk_tree, chunk, succ);         
 8004904:	b9 a0 10 00 	mv r2,r13                                      
 8004908:	b9 60 08 00 	mv r1,r11                                      
 800490c:	b9 80 18 00 	mv r3,r12                                      
 8004910:	fb ff fe f0 	calli 80044d0 <check_and_merge>                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
 8004914:	29 62 00 00 	lw r2,(r11+0)                                  
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
 8004918:	59 8b 00 04 	sw (r12+4),r11                                 
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
 800491c:	59 6c 00 00 	sw (r11+0),r12                                 
  the_node->next        = before_node;                                
 8004920:	59 82 00 00 	sw (r12+0),r2                                  
  before_node->previous = the_node;                                   
 8004924:	58 4c 00 04 	sw (r2+4),r12                                  
        add_to_chain(free_chain, chunk);                              
        check_and_merge(free_chain, chunk_tree, chunk, pred);         
 8004928:	b9 60 08 00 	mv r1,r11                                      
 800492c:	b9 a0 10 00 	mv r2,r13                                      
 8004930:	b9 80 18 00 	mv r3,r12                                      
 8004934:	35 e4 ff f8 	addi r4,r15,-8                                 
 8004938:	fb ff fe e6 	calli 80044d0 <check_and_merge>                
  }                                                                   
}                                                                     
                                                                      
rtems_status_code rtems_rbheap_free(rtems_rbheap_control *control, void *ptr)
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
 800493c:	34 01 00 00 	mvi r1,0                                       
      sc = RTEMS_INVALID_ID;                                          
    }                                                                 
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
 8004940:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004944:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8004948:	2b 8c 00 14 	lw r12,(sp+20)                                 
 800494c:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8004950:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8004954:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8004958:	37 9c 00 38 	addi sp,sp,56                                  
 800495c:	c3 a0 00 00 	ret                                            
                                                                      

08004560 <rtems_rbheap_initialize>: uintptr_t area_size, uintptr_t alignment, rtems_rbheap_extend_descriptors extend_descriptors, void *handler_arg ) {
 8004560:	37 9c ff dc 	addi sp,sp,-36                                 
 8004564:	5b 8b 00 24 	sw (sp+36),r11                                 
 8004568:	5b 8c 00 20 	sw (sp+32),r12                                 
 800456c:	5b 8d 00 1c 	sw (sp+28),r13                                 
 8004570:	5b 8e 00 18 	sw (sp+24),r14                                 
 8004574:	5b 8f 00 14 	sw (sp+20),r15                                 
 8004578:	5b 90 00 10 	sw (sp+16),r16                                 
 800457c:	5b 91 00 0c 	sw (sp+12),r17                                 
 8004580:	5b 92 00 08 	sw (sp+8),r18                                  
 8004584:	5b 9d 00 04 	sw (sp+4),ra                                   
      }                                                               
    } else {                                                          
      sc = RTEMS_INVALID_ADDRESS;                                     
    }                                                                 
  } else {                                                            
    sc = RTEMS_INVALID_NUMBER;                                        
 8004588:	34 0f 00 0a 	mvi r15,10                                     
  uintptr_t area_size,                                                
  uintptr_t alignment,                                                
  rtems_rbheap_extend_descriptors extend_descriptors,                 
  void *handler_arg                                                   
)                                                                     
{                                                                     
 800458c:	b8 20 58 00 	mv r11,r1                                      
 8004590:	b8 40 60 00 	mv r12,r2                                      
 8004594:	b8 80 70 00 	mv r14,r4                                      
 8004598:	b8 a0 88 00 	mv r17,r5                                      
 800459c:	b8 c0 90 00 	mv r18,r6                                      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (alignment > 0) {                                                
 80045a0:	44 80 00 3e 	be r4,r0,8004698 <rtems_rbheap_initialize+0x138>
    uintptr_t begin = (uintptr_t) area_begin;                         
    uintptr_t end = begin + area_size;                                
 80045a4:	b4 43 80 00 	add r16,r2,r3                                  
                                                                      
#include <stdlib.h>                                                   
                                                                      
static uintptr_t align_up(uintptr_t alignment, uintptr_t value)       
{                                                                     
  uintptr_t excess = value % alignment;                               
 80045a8:	b8 40 08 00 	mv r1,r2                                       
 80045ac:	b8 80 10 00 	mv r2,r4                                       
 80045b0:	f8 00 38 4e 	calli 80126e8 <__umodsi3>                      
                                                                      
  if (excess > 0) {                                                   
 80045b4:	b9 80 68 00 	mv r13,r12                                     
 80045b8:	44 20 00 03 	be r1,r0,80045c4 <rtems_rbheap_initialize+0x64>
    value += alignment - excess;                                      
 80045bc:	b5 8e 68 00 	add r13,r12,r14                                
 80045c0:	c9 a1 68 00 	sub r13,r13,r1                                 
    uintptr_t begin = (uintptr_t) area_begin;                         
    uintptr_t end = begin + area_size;                                
    uintptr_t aligned_begin = align_up(alignment, begin);             
    uintptr_t aligned_end = align_down(alignment, end);               
                                                                      
    if (begin < end && begin <= aligned_begin && aligned_begin < aligned_end) {
 80045c4:	f1 ac 08 00 	cmpgeu r1,r13,r12                              
 80045c8:	f6 0c 60 00 	cmpgu r12,r16,r12                              
        insert_into_tree(chunk_tree, first);                          
      } else {                                                        
        sc = RTEMS_NO_MEMORY;                                         
      }                                                               
    } else {                                                          
      sc = RTEMS_INVALID_ADDRESS;                                     
 80045cc:	34 0f 00 09 	mvi r15,9                                      
    uintptr_t begin = (uintptr_t) area_begin;                         
    uintptr_t end = begin + area_size;                                
    uintptr_t aligned_begin = align_up(alignment, begin);             
    uintptr_t aligned_end = align_down(alignment, end);               
                                                                      
    if (begin < end && begin <= aligned_begin && aligned_begin < aligned_end) {
 80045d0:	a0 2c 60 00 	and r12,r1,r12                                 
 80045d4:	45 80 00 31 	be r12,r0,8004698 <rtems_rbheap_initialize+0x138>
  return value;                                                       
}                                                                     
                                                                      
static uintptr_t align_down(uintptr_t alignment, uintptr_t value)     
{                                                                     
  uintptr_t excess = value % alignment;                               
 80045d8:	ba 00 08 00 	mv r1,r16                                      
 80045dc:	b9 c0 10 00 	mv r2,r14                                      
 80045e0:	f8 00 38 42 	calli 80126e8 <__umodsi3>                      
                                                                      
  return value - excess;                                              
 80045e4:	ca 01 80 00 	sub r16,r16,r1                                 
    uintptr_t begin = (uintptr_t) area_begin;                         
    uintptr_t end = begin + area_size;                                
    uintptr_t aligned_begin = align_up(alignment, begin);             
    uintptr_t aligned_end = align_down(alignment, end);               
                                                                      
    if (begin < end && begin <= aligned_begin && aligned_begin < aligned_end) {
 80045e8:	51 b0 00 2c 	bgeu r13,r16,8004698 <rtems_rbheap_initialize+0x138>
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
 80045ec:	35 61 00 04 	addi r1,r11,4                                  
{                                                                     
  the_rbtree->permanent_null   = NULL;                                
  the_rbtree->root             = NULL;                                
  the_rbtree->first[0]         = NULL;                                
  the_rbtree->first[1]         = NULL;                                
  the_rbtree->compare_function = compare_function;                    
 80045f0:	78 02 08 00 	mvhi r2,0x800                                  
 80045f4:	38 42 44 c0 	ori r2,r2,0x44c0                               
                                                                      
  head->next = tail;                                                  
 80045f8:	59 61 00 00 	sw (r11+0),r1                                  
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
 80045fc:	35 6c 00 0c 	addi r12,r11,12                                
  the_rbtree->is_unique        = is_unique;                           
 8004600:	34 01 00 01 	mvi r1,1                                       
  Chain_Node *tail = _Chain_Tail( the_chain );                        
 8004604:	35 6f 00 10 	addi r15,r11,16                                
{                                                                     
  the_rbtree->permanent_null   = NULL;                                
  the_rbtree->root             = NULL;                                
  the_rbtree->first[0]         = NULL;                                
  the_rbtree->first[1]         = NULL;                                
  the_rbtree->compare_function = compare_function;                    
 8004608:	59 62 00 28 	sw (r11+40),r2                                 
  the_rbtree->is_unique        = is_unique;                           
 800460c:	31 61 00 2c 	sb (r11+44),r1                                 
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
 8004610:	59 60 00 04 	sw (r11+4),r0                                  
  tail->previous = head;                                              
 8004614:	59 6b 00 08 	sw (r11+8),r11                                 
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 8004618:	59 6f 00 0c 	sw (r11+12),r15                                
  head->previous = NULL;                                              
 800461c:	59 60 00 10 	sw (r11+16),r0                                 
  tail->previous = head;                                              
 8004620:	59 6c 00 14 	sw (r11+20),r12                                
    RBTree_Control          *the_rbtree,                              
    RBTree_Compare_function  compare_function,                        
    bool                     is_unique                                
    )                                                                 
{                                                                     
  the_rbtree->permanent_null   = NULL;                                
 8004624:	59 60 00 18 	sw (r11+24),r0                                 
  the_rbtree->root             = NULL;                                
 8004628:	59 60 00 1c 	sw (r11+28),r0                                 
  the_rbtree->first[0]         = NULL;                                
 800462c:	59 60 00 20 	sw (r11+32),r0                                 
  the_rbtree->first[1]         = NULL;                                
 8004630:	59 60 00 24 	sw (r11+36),r0                                 
      rtems_rbheap_chunk *first = NULL;                               
                                                                      
      rtems_chain_initialize_empty(free_chain);                       
      rtems_chain_initialize_empty(&control->spare_descriptor_chain); 
      rtems_rbtree_initialize_empty(chunk_tree, chunk_compare, true); 
      control->alignment = alignment;                                 
 8004634:	59 6e 00 30 	sw (r11+48),r14                                
      control->handler_arg = handler_arg;                             
 8004638:	59 72 00 38 	sw (r11+56),r18                                
      control->extend_descriptors = extend_descriptors;               
 800463c:	59 71 00 34 	sw (r11+52),r17                                
{                                                                     
  rtems_chain_control *chain = &control->spare_descriptor_chain;      
  rtems_chain_node *chunk = rtems_chain_get_unprotected(chain);       
                                                                      
  if (chunk == NULL) {                                                
    (*control->extend_descriptors)(control);                          
 8004640:	b9 60 08 00 	mv r1,r11                                      
 8004644:	da 20 00 00 	call r17                                       
  rtems_rbheap_chunk *chunk = malloc(sizeof(*chunk));                 
                                                                      
  if (chunk != NULL) {                                                
    rtems_rbheap_add_to_spare_descriptor_chain(control, chunk);       
  }                                                                   
}                                                                     
 8004648:	29 62 00 0c 	lw r2,(r11+12)                                 
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
 800464c:	44 4f 00 12 	be r2,r15,8004694 <rtems_rbheap_initialize+0x134>
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
 8004650:	28 41 00 00 	lw r1,(r2+0)                                   
                                                                      
  head->next = new_first;                                             
 8004654:	59 61 00 0c 	sw (r11+12),r1                                 
  new_first->previous = head;                                         
 8004658:	58 2c 00 04 	sw (r1+4),r12                                  
      control->alignment = alignment;                                 
      control->handler_arg = handler_arg;                             
      control->extend_descriptors = extend_descriptors;               
                                                                      
      first = get_chunk(control);                                     
      if (first != NULL) {                                            
 800465c:	44 40 00 0e 	be r2,r0,8004694 <rtems_rbheap_initialize+0x134><== NEVER TAKEN
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
 8004660:	29 61 00 00 	lw r1,(r11+0)                                  
        first->begin = aligned_begin;                                 
        first->size = aligned_end - aligned_begin;                    
 8004664:	ca 0d 80 00 	sub r16,r16,r13                                
      control->handler_arg = handler_arg;                             
      control->extend_descriptors = extend_descriptors;               
                                                                      
      first = get_chunk(control);                                     
      if (first != NULL) {                                            
        first->begin = aligned_begin;                                 
 8004668:	58 4d 00 18 	sw (r2+24),r13                                 
        first->size = aligned_end - aligned_begin;                    
 800466c:	58 50 00 1c 	sw (r2+28),r16                                 
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
 8004670:	58 4b 00 04 	sw (r2+4),r11                                  
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
 8004674:	59 62 00 00 	sw (r11+0),r2                                  
  the_node->next        = before_node;                                
 8004678:	58 41 00 00 	sw (r2+0),r1                                   
  before_node->previous = the_node;                                   
 800467c:	58 22 00 04 	sw (r1+4),r2                                   
static void insert_into_tree(                                         
  rtems_rbtree_control *tree,                                         
  rtems_rbheap_chunk *chunk                                           
)                                                                     
{                                                                     
  _RBTree_Insert_unprotected(tree, &chunk->tree_node);                
 8004680:	35 61 00 18 	addi r1,r11,24                                 
 8004684:	34 42 00 08 	addi r2,r2,8                                   
 8004688:	f8 00 07 c2 	calli 8006590 <_RBTree_Insert_unprotected>     
  uintptr_t alignment,                                                
  rtems_rbheap_extend_descriptors extend_descriptors,                 
  void *handler_arg                                                   
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
 800468c:	34 0f 00 00 	mvi r15,0                                      
 8004690:	e0 00 00 02 	bi 8004698 <rtems_rbheap_initialize+0x138>     
        first->begin = aligned_begin;                                 
        first->size = aligned_end - aligned_begin;                    
        add_to_chain(free_chain, first);                              
        insert_into_tree(chunk_tree, first);                          
      } else {                                                        
        sc = RTEMS_NO_MEMORY;                                         
 8004694:	34 0f 00 1a 	mvi r15,26                                     
  } else {                                                            
    sc = RTEMS_INVALID_NUMBER;                                        
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
 8004698:	b9 e0 08 00 	mv r1,r15                                      
 800469c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80046a0:	2b 8b 00 24 	lw r11,(sp+36)                                 
 80046a4:	2b 8c 00 20 	lw r12,(sp+32)                                 
 80046a8:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 80046ac:	2b 8e 00 18 	lw r14,(sp+24)                                 
 80046b0:	2b 8f 00 14 	lw r15,(sp+20)                                 
 80046b4:	2b 90 00 10 	lw r16,(sp+16)                                 
 80046b8:	2b 91 00 0c 	lw r17,(sp+12)                                 
 80046bc:	2b 92 00 08 	lw r18,(sp+8)                                  
 80046c0:	37 9c 00 24 	addi sp,sp,36                                  
 80046c4:	c3 a0 00 00 	ret                                            
                                                                      

080141fc <rtems_signal_send>: rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) {
 80141fc:	37 9c ff f4 	addi sp,sp,-12                                 
 8014200:	5b 8b 00 08 	sw (sp+8),r11                                  
 8014204:	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;                                      
 8014208:	34 03 00 0a 	mvi r3,10                                      
                                                                      
rtems_status_code rtems_signal_send(                                  
  rtems_id          id,                                               
  rtems_signal_set  signal_set                                        
)                                                                     
{                                                                     
 801420c:	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 )                                                  
 8014210:	44 40 00 29 	be r2,r0,80142b4 <rtems_signal_send+0xb8>      
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 8014214:	37 82 00 0c 	addi r2,sp,12                                  
 8014218:	f8 00 16 14 	calli 8019a68 <_Thread_Get>                    
  switch ( location ) {                                               
 801421c:	2b 82 00 0c 	lw r2,(sp+12)                                  
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8014220:	34 03 00 04 	mvi r3,4                                       
                                                                      
  if ( !signal_set )                                                  
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  the_thread = _Thread_Get( id, &location );                          
  switch ( location ) {                                               
 8014224:	5c 40 00 24 	bne r2,r0,80142b4 <rtems_signal_send+0xb8>     
                                                                      
    case OBJECTS_LOCAL:                                               
      api = the_thread->API_Extensions[ THREAD_API_RTEMS ];           
 8014228:	28 23 01 14 	lw r3,(r1+276)                                 
      asr = &api->Signal;                                             
                                                                      
      if ( ! _ASR_Is_null_handler( asr->handler ) ) {                 
 801422c:	28 64 00 0c 	lw r4,(r3+12)                                  
 8014230:	44 82 00 1f 	be r4,r2,80142ac <rtems_signal_send+0xb0>      
        if ( asr->is_enabled ) {                                      
 8014234:	40 62 00 08 	lbu r2,(r3+8)                                  
 8014238:	44 40 00 12 	be r2,r0,8014280 <rtems_signal_send+0x84>      
  rtems_signal_set *signal_set                                        
)                                                                     
{                                                                     
  ISR_Level              _level;                                      
                                                                      
  _ISR_Disable( _level );                                             
 801423c:	90 00 10 00 	rcsr r2,IE                                     
 8014240:	34 04 ff fe 	mvi r4,-2                                      
 8014244:	a0 44 20 00 	and r4,r2,r4                                   
 8014248:	d0 04 00 00 	wcsr IE,r4                                     
    *signal_set |= signals;                                           
 801424c:	28 64 00 14 	lw r4,(r3+20)                                  
 8014250:	b8 8b 58 00 	or r11,r4,r11                                  
 8014254:	58 6b 00 14 	sw (r3+20),r11                                 
  _ISR_Enable( _level );                                              
 8014258:	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 ) )
 801425c:	78 02 08 03 	mvhi r2,0x803                                  
 8014260:	38 42 de 60 	ori r2,r2,0xde60                               
 8014264:	28 43 00 08 	lw r3,(r2+8)                                   
 8014268:	44 60 00 0e 	be r3,r0,80142a0 <rtems_signal_send+0xa4>      
 801426c:	28 43 00 10 	lw r3,(r2+16)                                  
 8014270:	5c 23 00 0c 	bne r1,r3,80142a0 <rtems_signal_send+0xa4>     <== NEVER TAKEN
            _Thread_Dispatch_necessary = true;                        
 8014274:	34 01 00 01 	mvi r1,1                                       
 8014278:	30 41 00 0c 	sb (r2+12),r1                                  
 801427c:	e0 00 00 09 	bi 80142a0 <rtems_signal_send+0xa4>            
  rtems_signal_set *signal_set                                        
)                                                                     
{                                                                     
  ISR_Level              _level;                                      
                                                                      
  _ISR_Disable( _level );                                             
 8014280:	90 00 08 00 	rcsr r1,IE                                     
 8014284:	34 02 ff fe 	mvi r2,-2                                      
 8014288:	a0 22 10 00 	and r2,r1,r2                                   
 801428c:	d0 02 00 00 	wcsr IE,r2                                     
    *signal_set |= signals;                                           
 8014290:	28 62 00 18 	lw r2,(r3+24)                                  
 8014294:	b8 4b 58 00 	or r11,r2,r11                                  
 8014298:	58 6b 00 18 	sw (r3+24),r11                                 
  _ISR_Enable( _level );                                              
 801429c:	d0 01 00 00 	wcsr IE,r1                                     
        } else {                                                      
          _ASR_Post_signals( signal_set, &asr->signals_pending );     
        }                                                             
        _Thread_Enable_dispatch();                                    
 80142a0:	f8 00 15 e6 	calli 8019a38 <_Thread_Enable_dispatch>        
        return RTEMS_SUCCESSFUL;                                      
 80142a4:	34 03 00 00 	mvi r3,0                                       
 80142a8:	e0 00 00 03 	bi 80142b4 <rtems_signal_send+0xb8>            
      }                                                               
      _Thread_Enable_dispatch();                                      
 80142ac:	f8 00 15 e3 	calli 8019a38 <_Thread_Enable_dispatch>        
      return RTEMS_NOT_DEFINED;                                       
 80142b0:	34 03 00 0b 	mvi r3,11                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 80142b4:	b8 60 08 00 	mv r1,r3                                       
 80142b8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80142bc:	2b 8b 00 08 	lw r11,(sp+8)                                  
 80142c0:	37 9c 00 0c 	addi sp,sp,12                                  
 80142c4:	c3 a0 00 00 	ret                                            
                                                                      

0800e028 <rtems_task_mode>: rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) {
 800e028:	37 9c ff e0 	addi sp,sp,-32                                 
 800e02c:	5b 8b 00 20 	sw (sp+32),r11                                 
 800e030:	5b 8c 00 1c 	sw (sp+28),r12                                 
 800e034:	5b 8d 00 18 	sw (sp+24),r13                                 
 800e038:	5b 8e 00 14 	sw (sp+20),r14                                 
 800e03c:	5b 8f 00 10 	sw (sp+16),r15                                 
 800e040:	5b 90 00 0c 	sw (sp+12),r16                                 
 800e044:	5b 91 00 08 	sw (sp+8),r17                                  
 800e048:	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;                                     
 800e04c:	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                                       
)                                                                     
{                                                                     
 800e050:	b8 20 68 00 	mv r13,r1                                      
 800e054:	b8 40 70 00 	mv r14,r2                                      
 800e058:	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 )                                           
 800e05c:	44 60 00 51 	be r3,r0,800e1a0 <rtems_task_mode+0x178>       
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
 800e060:	78 01 08 01 	mvhi r1,0x801                                  
 800e064:	38 21 9a 80 	ori r1,r1,0x9a80                               
 800e068:	28 2c 00 10 	lw r12,(r1+16)                                 
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
 800e06c:	41 8f 00 70 	lbu r15,(r12+112)                              
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
 800e070:	29 81 00 78 	lw r1,(r12+120)                                
                                                                      
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
 800e074:	29 8b 01 14 	lw r11,(r12+276)                               
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
 800e078:	65 ef 00 00 	cmpei r15,r15,0                                
 800e07c:	c8 0f 78 00 	sub r15,r0,r15                                 
 800e080:	21 ef 01 00 	andi r15,r15,0x100                             
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
 800e084:	44 20 00 02 	be r1,r0,800e08c <rtems_task_mode+0x64>        
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
 800e088:	39 ef 02 00 	ori r15,r15,0x200                              
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
 800e08c:	41 71 00 08 	lbu r17,(r11+8)                                
  old_mode |= _ISR_Get_level();                                       
 800e090:	fb ff eb 43 	calli 8008d9c <_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;           
 800e094:	66 31 00 00 	cmpei r17,r17,0                                
 800e098:	c8 11 88 00 	sub r17,r0,r17                                 
 800e09c:	22 31 04 00 	andi r17,r17,0x400                             
 800e0a0:	ba 21 08 00 	or r1,r17,r1                                   
  old_mode |= _ISR_Get_level();                                       
 800e0a4:	b8 2f 78 00 	or r15,r1,r15                                  
                                                                      
  *previous_mode_set = old_mode;                                      
 800e0a8:	5a 0f 00 00 	sw (r16+0),r15                                 
                                                                      
  /*                                                                  
   *  These are generic thread scheduling characteristics.            
   */                                                                 
  if ( mask & RTEMS_PREEMPT_MASK )                                    
 800e0ac:	21 c1 01 00 	andi r1,r14,0x100                              
 800e0b0:	44 20 00 04 	be r1,r0,800e0c0 <rtems_task_mode+0x98>        
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Modes_Is_preempt (                         
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
   return (mode_set & RTEMS_PREEMPT_MASK) == RTEMS_PREEMPT;           
 800e0b4:	21 a1 01 00 	andi r1,r13,0x100                              
    executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
 800e0b8:	64 21 00 00 	cmpei r1,r1,0                                  
 800e0bc:	31 81 00 70 	sb (r12+112),r1                                
                                                                      
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
 800e0c0:	21 c1 02 00 	andi r1,r14,0x200                              
 800e0c4:	44 20 00 0b 	be r1,r0,800e0f0 <rtems_task_mode+0xc8>        
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Modes_Is_timeslice (                       
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
  return (mode_set & RTEMS_TIMESLICE_MASK) == RTEMS_TIMESLICE;        
 800e0c8:	21 a1 02 00 	andi r1,r13,0x200                              
    if ( _Modes_Is_timeslice(mode_set) ) {                            
 800e0cc:	44 20 00 08 	be r1,r0,800e0ec <rtems_task_mode+0xc4>        
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
 800e0d0:	34 01 00 01 	mvi r1,1                                       
 800e0d4:	59 81 00 78 	sw (r12+120),r1                                
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
 800e0d8:	78 01 08 01 	mvhi r1,0x801                                  
 800e0dc:	38 21 98 98 	ori r1,r1,0x9898                               
 800e0e0:	28 21 00 00 	lw r1,(r1+0)                                   
 800e0e4:	59 81 00 74 	sw (r12+116),r1                                
 800e0e8:	e0 00 00 02 	bi 800e0f0 <rtems_task_mode+0xc8>              
    } else                                                            
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; 
 800e0ec:	59 80 00 78 	sw (r12+120),r0                                
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new interrupt level                                     
   */                                                                 
  if ( mask & RTEMS_INTERRUPT_MASK )                                  
 800e0f0:	21 c1 00 01 	andi r1,r14,0x1                                
 800e0f4:	44 20 00 04 	be r1,r0,800e104 <rtems_task_mode+0xdc>        
 */                                                                   
RTEMS_INLINE_ROUTINE ISR_Level _Modes_Get_interrupt_level (           
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
  return ( mode_set & RTEMS_INTERRUPT_MASK );                         
 800e0f8:	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 ) );           
 800e0fc:	64 21 00 00 	cmpei r1,r1,0                                  
 800e100:	d0 01 00 00 	wcsr IE,r1                                     
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
 800e104:	21 ce 04 00 	andi r14,r14,0x400                             
                                                                      
  /*                                                                  
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
 800e108:	34 03 00 00 	mvi r3,0                                       
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
 800e10c:	45 c0 00 11 	be r14,r0,800e150 <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;                
 800e110:	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 ) {                        
 800e114:	41 61 00 08 	lbu r1,(r11+8)                                 
#include <rtems/score/tod.h>                                          
#include <rtems/score/wkspace.h>                                      
#include <rtems/score/apiext.h>                                       
#include <rtems/score/sysstate.h>                                     
                                                                      
rtems_status_code rtems_task_mode(                                    
 800e118:	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 ) {                        
 800e11c:	44 2d 00 0d 	be r1,r13,800e150 <rtems_task_mode+0x128>      
      asr->is_enabled = is_asr_enabled;                               
 800e120:	31 6d 00 08 	sb (r11+8),r13                                 
)                                                                     
{                                                                     
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
 800e124:	90 00 08 00 	rcsr r1,IE                                     
 800e128:	34 02 ff fe 	mvi r2,-2                                      
 800e12c:	a0 22 10 00 	and r2,r1,r2                                   
 800e130:	d0 02 00 00 	wcsr IE,r2                                     
    _signals                     = information->signals_pending;      
 800e134:	29 62 00 18 	lw r2,(r11+24)                                 
    information->signals_pending = information->signals_posted;       
 800e138:	29 63 00 14 	lw r3,(r11+20)                                 
    information->signals_posted  = _signals;                          
 800e13c:	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;       
 800e140:	59 63 00 18 	sw (r11+24),r3                                 
    information->signals_posted  = _signals;                          
  _ISR_Enable( _level );                                              
 800e144:	d0 01 00 00 	wcsr IE,r1                                     
      _ASR_Swap_signals( asr );                                       
      if ( _ASR_Are_signals_pending( asr ) ) {                        
 800e148:	29 63 00 14 	lw r3,(r11+20)                                 
                                                                      
  /*                                                                  
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
 800e14c:	7c 63 00 00 	cmpnei r3,r3,0                                 
        needs_asr_dispatching = true;                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) ) {                 
 800e150:	78 01 08 01 	mvhi r1,0x801                                  
 800e154:	38 21 9a 74 	ori r1,r1,0x9a74                               
 800e158:	28 22 00 00 	lw r2,(r1+0)                                   
 800e15c:	34 01 00 03 	mvi r1,3                                       
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 800e160:	34 04 00 00 	mvi r4,0                                       
        needs_asr_dispatching = true;                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) ) {                 
 800e164:	5c 41 00 0f 	bne r2,r1,800e1a0 <rtems_task_mode+0x178>      
  bool are_signals_pending                                            
)                                                                     
{                                                                     
  Thread_Control     *executing;                                      
                                                                      
  executing = _Thread_Executing;                                      
 800e168:	78 01 08 01 	mvhi r1,0x801                                  
 800e16c:	38 21 9a 80 	ori r1,r1,0x9a80                               
 800e170:	28 22 00 10 	lw r2,(r1+16)                                  
                                                                      
  if ( are_signals_pending ||                                         
 800e174:	5c 60 00 05 	bne r3,r0,800e188 <rtems_task_mode+0x160>      
 800e178:	28 21 00 14 	lw r1,(r1+20)                                  
 800e17c:	44 41 00 09 	be r2,r1,800e1a0 <rtems_task_mode+0x178>       
       (!_Thread_Is_heir( executing ) && executing->is_preemptible) ) {
 800e180:	40 41 00 70 	lbu r1,(r2+112)                                
 800e184:	44 20 00 07 	be r1,r0,800e1a0 <rtems_task_mode+0x178>       <== NEVER TAKEN
    _Thread_Dispatch_necessary = true;                                
 800e188:	78 01 08 01 	mvhi r1,0x801                                  
 800e18c:	38 21 9a 80 	ori r1,r1,0x9a80                               
 800e190:	34 02 00 01 	mvi r2,1                                       
 800e194:	30 22 00 0c 	sb (r1+12),r2                                  
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
 800e198:	f8 00 03 70 	calli 800ef58 <_Thread_Dispatch>               
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 800e19c:	34 04 00 00 	mvi r4,0                                       
}                                                                     
 800e1a0:	b8 80 08 00 	mv r1,r4                                       
 800e1a4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800e1a8:	2b 8b 00 20 	lw r11,(sp+32)                                 
 800e1ac:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 800e1b0:	2b 8d 00 18 	lw r13,(sp+24)                                 
 800e1b4:	2b 8e 00 14 	lw r14,(sp+20)                                 
 800e1b8:	2b 8f 00 10 	lw r15,(sp+16)                                 
 800e1bc:	2b 90 00 0c 	lw r16,(sp+12)                                 
 800e1c0:	2b 91 00 08 	lw r17,(sp+8)                                  
 800e1c4:	37 9c 00 20 	addi sp,sp,32                                  
 800e1c8:	c3 a0 00 00 	ret                                            
                                                                      

08008e30 <rtems_task_set_priority>: rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) {
 8008e30:	37 9c ff f0 	addi sp,sp,-16                                 
 8008e34:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8008e38:	5b 8c 00 08 	sw (sp+8),r12                                  
 8008e3c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8008e40:	b8 40 58 00 	mv r11,r2                                      
 8008e44:	b8 60 60 00 	mv r12,r3                                      
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
 8008e48:	44 40 00 06 	be r2,r0,8008e60 <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 ) );             
 8008e4c:	78 02 08 01 	mvhi r2,0x801                                  
 8008e50:	38 42 90 d8 	ori r2,r2,0x90d8                               
 8008e54:	40 43 00 00 	lbu r3,(r2+0)                                  
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
 8008e58:	34 02 00 13 	mvi r2,19                                      
)                                                                     
{                                                                     
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
 8008e5c:	55 63 00 16 	bgu r11,r3,8008eb4 <rtems_task_set_priority+0x84>
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
                                                                      
  if ( !old_priority )                                                
    return RTEMS_INVALID_ADDRESS;                                     
 8008e60:	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 )                                                
 8008e64:	45 80 00 14 	be r12,r0,8008eb4 <rtems_task_set_priority+0x84>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 8008e68:	37 82 00 10 	addi r2,sp,16                                  
 8008e6c:	f8 00 0b 2b 	calli 800bb18 <_Thread_Get>                    
  switch ( location ) {                                               
 8008e70:	2b 82 00 10 	lw r2,(sp+16)                                  
 8008e74:	5c 40 00 0f 	bne r2,r0,8008eb0 <rtems_task_set_priority+0x80>
                                                                      
    case OBJECTS_LOCAL:                                               
      /* XXX need helper to "convert" from core priority */           
      *old_priority = the_thread->current_priority;                   
 8008e78:	28 23 00 14 	lw r3,(r1+20)                                  
 8008e7c:	59 83 00 00 	sw (r12+0),r3                                  
      if ( new_priority != RTEMS_CURRENT_PRIORITY ) {                 
 8008e80:	45 62 00 09 	be r11,r2,8008ea4 <rtems_task_set_priority+0x74>
        the_thread->real_priority = new_priority;                     
        if ( the_thread->resource_count == 0 ||                       
 8008e84:	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;                     
 8008e88:	58 2b 00 18 	sw (r1+24),r11                                 
        if ( the_thread->resource_count == 0 ||                       
 8008e8c:	44 40 00 03 	be r2,r0,8008e98 <rtems_task_set_priority+0x68>
 8008e90:	28 22 00 14 	lw r2,(r1+20)                                  
 8008e94:	51 62 00 04 	bgeu r11,r2,8008ea4 <rtems_task_set_priority+0x74><== ALWAYS TAKEN
             the_thread->current_priority > new_priority )            
          _Thread_Change_priority( the_thread, new_priority, false ); 
 8008e98:	b9 60 10 00 	mv r2,r11                                      
 8008e9c:	34 03 00 00 	mvi r3,0                                       
 8008ea0:	f8 00 09 c1 	calli 800b5a4 <_Thread_Change_priority>        
      }                                                               
      _Thread_Enable_dispatch();                                      
 8008ea4:	f8 00 0b 11 	calli 800bae8 <_Thread_Enable_dispatch>        
      return RTEMS_SUCCESSFUL;                                        
 8008ea8:	34 02 00 00 	mvi r2,0                                       
 8008eac:	e0 00 00 02 	bi 8008eb4 <rtems_task_set_priority+0x84>      
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8008eb0:	34 02 00 04 	mvi r2,4                                       
}                                                                     
 8008eb4:	b8 40 08 00 	mv r1,r2                                       
 8008eb8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8008ebc:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8008ec0:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8008ec4:	37 9c 00 10 	addi sp,sp,16                                  
 8008ec8:	c3 a0 00 00 	ret                                            
                                                                      

08014db4 <rtems_timer_cancel>: */ rtems_status_code rtems_timer_cancel( rtems_id id ) {
 8014db4:	37 9c ff f8 	addi sp,sp,-8                                  
 8014db8:	5b 9d 00 04 	sw (sp+4),ra                                   
 8014dbc:	b8 20 10 00 	mv r2,r1                                       
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Timer_Control *)                                            
    _Objects_Get( &_Timer_Information, id, location );                
 8014dc0:	78 01 08 03 	mvhi r1,0x803                                  
 8014dc4:	38 21 df 30 	ori r1,r1,0xdf30                               
 8014dc8:	37 83 00 08 	addi r3,sp,8                                   
 8014dcc:	f8 00 0e b8 	calli 80188ac <_Objects_Get>                   
  Timer_Control   *the_timer;                                         
  Objects_Locations       location;                                   
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
 8014dd0:	2b 82 00 08 	lw r2,(sp+8)                                   
 8014dd4:	5c 40 00 09 	bne r2,r0,8014df8 <rtems_timer_cancel+0x44>    
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( !_Timer_Is_dormant_class( the_timer->the_class ) )         
 8014dd8:	28 23 00 38 	lw r3,(r1+56)                                  
 8014ddc:	34 02 00 04 	mvi r2,4                                       
 8014de0:	44 62 00 03 	be r3,r2,8014dec <rtems_timer_cancel+0x38>     <== NEVER TAKEN
        (void) _Watchdog_Remove( &the_timer->Ticker );                
 8014de4:	34 21 00 10 	addi r1,r1,16                                  
 8014de8:	f8 00 17 b1 	calli 801acac <_Watchdog_Remove>               
      _Thread_Enable_dispatch();                                      
 8014dec:	f8 00 13 13 	calli 8019a38 <_Thread_Enable_dispatch>        
      return RTEMS_SUCCESSFUL;                                        
 8014df0:	34 01 00 00 	mvi r1,0                                       
 8014df4:	e0 00 00 02 	bi 8014dfc <rtems_timer_cancel+0x48>           
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8014df8:	34 01 00 04 	mvi r1,4                                       
}                                                                     
 8014dfc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8014e00:	37 9c 00 08 	addi sp,sp,8                                   
 8014e04:	c3 a0 00 00 	ret                                            
                                                                      

08003ce4 <rtems_timer_fire_after>: rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) {
 8003ce4:	37 9c ff e0 	addi sp,sp,-32                                 
 8003ce8:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8003cec:	5b 8c 00 18 	sw (sp+24),r12                                 
 8003cf0:	5b 8d 00 14 	sw (sp+20),r13                                 
 8003cf4:	5b 8e 00 10 	sw (sp+16),r14                                 
 8003cf8:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8003cfc:	5b 90 00 08 	sw (sp+8),r16                                  
 8003d00:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003d04:	b8 20 70 00 	mv r14,r1                                      
 8003d08:	b8 40 68 00 	mv r13,r2                                      
 8003d0c:	b8 60 78 00 	mv r15,r3                                      
 8003d10:	b8 80 80 00 	mv r16,r4                                      
  Timer_Control      *the_timer;                                      
  Objects_Locations   location;                                       
  ISR_Level           level;                                          
                                                                      
  if ( ticks == 0 )                                                   
    return RTEMS_INVALID_NUMBER;                                      
 8003d14:	34 01 00 0a 	mvi r1,10                                      
{                                                                     
  Timer_Control      *the_timer;                                      
  Objects_Locations   location;                                       
  ISR_Level           level;                                          
                                                                      
  if ( ticks == 0 )                                                   
 8003d18:	44 40 00 25 	be r2,r0,8003dac <rtems_timer_fire_after+0xc8> <== NEVER TAKEN
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
 8003d1c:	34 01 00 09 	mvi r1,9                                       
  ISR_Level           level;                                          
                                                                      
  if ( ticks == 0 )                                                   
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  if ( !routine )                                                     
 8003d20:	44 60 00 23 	be r3,r0,8003dac <rtems_timer_fire_after+0xc8> <== NEVER TAKEN
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Timer_Control *)                                            
    _Objects_Get( &_Timer_Information, id, location );                
 8003d24:	78 01 08 01 	mvhi r1,0x801                                  
 8003d28:	38 21 da b0 	ori r1,r1,0xdab0                               
 8003d2c:	b9 c0 10 00 	mv r2,r14                                      
 8003d30:	37 83 00 20 	addi r3,sp,32                                  
 8003d34:	f8 00 05 c3 	calli 8005440 <_Objects_Get>                   
 8003d38:	b8 20 58 00 	mv r11,r1                                      
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
 8003d3c:	2b 81 00 20 	lw r1,(sp+32)                                  
 8003d40:	5c 20 00 1a 	bne r1,r0,8003da8 <rtems_timer_fire_after+0xc4><== NEVER TAKEN
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
 8003d44:	35 6c 00 10 	addi r12,r11,16                                
 8003d48:	b9 80 08 00 	mv r1,r12                                      
 8003d4c:	f8 00 0d 96 	calli 80073a4 <_Watchdog_Remove>               
                                                                      
      _ISR_Disable( level );                                          
 8003d50:	90 00 28 00 	rcsr r5,IE                                     
 8003d54:	34 01 ff fe 	mvi r1,-2                                      
 8003d58:	a0 a1 08 00 	and r1,r5,r1                                   
 8003d5c:	d0 01 00 00 	wcsr IE,r1                                     
        /*                                                            
         *  Check to see if the watchdog has just been inserted by a  
         *  higher priority interrupt.  If so, abandon this insert.   
         */                                                           
                                                                      
        if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) {         
 8003d60:	29 61 00 18 	lw r1,(r11+24)                                 
 8003d64:	44 20 00 03 	be r1,r0,8003d70 <rtems_timer_fire_after+0x8c> 
          _ISR_Enable( level );                                       
 8003d68:	d0 05 00 00 	wcsr IE,r5                                     
 8003d6c:	e0 00 00 0c 	bi 8003d9c <rtems_timer_fire_after+0xb8>       
        /*                                                            
         *  OK.  Now we now the timer was not rescheduled by an interrupt
         *  so we can atomically initialize it as in use.             
         */                                                           
                                                                      
        the_timer->the_class = TIMER_INTERVAL;                        
 8003d70:	59 60 00 38 	sw (r11+56),r0                                 
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 8003d74:	59 61 00 18 	sw (r11+24),r1                                 
  the_watchdog->routine   = routine;                                  
 8003d78:	59 6f 00 2c 	sw (r11+44),r15                                
  the_watchdog->id        = id;                                       
 8003d7c:	59 6e 00 30 	sw (r11+48),r14                                
  the_watchdog->user_data = user_data;                                
 8003d80:	59 70 00 34 	sw (r11+52),r16                                
        _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
      _ISR_Enable( level );                                           
 8003d84:	d0 05 00 00 	wcsr IE,r5                                     
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 8003d88:	78 01 08 01 	mvhi r1,0x801                                  
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 8003d8c:	59 6d 00 1c 	sw (r11+28),r13                                
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 8003d90:	38 21 d9 38 	ori r1,r1,0xd938                               
 8003d94:	b9 80 10 00 	mv r2,r12                                      
 8003d98:	f8 00 0d 26 	calli 8007230 <_Watchdog_Insert>               
                                                                      
                                                                      
      _Watchdog_Insert_ticks( &the_timer->Ticker, ticks );            
      _Thread_Enable_dispatch();                                      
 8003d9c:	f8 00 09 82 	calli 80063a4 <_Thread_Enable_dispatch>        
      return RTEMS_SUCCESSFUL;                                        
 8003da0:	34 01 00 00 	mvi r1,0                                       
 8003da4:	e0 00 00 02 	bi 8003dac <rtems_timer_fire_after+0xc8>       
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8003da8:	34 01 00 04 	mvi r1,4                                       
}                                                                     
 8003dac:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003db0:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8003db4:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8003db8:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8003dbc:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8003dc0:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8003dc4:	2b 90 00 08 	lw r16,(sp+8)                                  
 8003dc8:	37 9c 00 20 	addi sp,sp,32                                  
 8003dcc:	c3 a0 00 00 	ret                                            
                                                                      

080153f8 <rtems_timer_server_fire_when>: rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) {
 80153f8:	37 9c ff dc 	addi sp,sp,-36                                 
 80153fc:	5b 8b 00 20 	sw (sp+32),r11                                 
 8015400:	5b 8c 00 1c 	sw (sp+28),r12                                 
 8015404:	5b 8d 00 18 	sw (sp+24),r13                                 
 8015408:	5b 8e 00 14 	sw (sp+20),r14                                 
 801540c:	5b 8f 00 10 	sw (sp+16),r15                                 
 8015410:	5b 90 00 0c 	sw (sp+12),r16                                 
 8015414:	5b 91 00 08 	sw (sp+8),r17                                  
 8015418:	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;                 
 801541c:	78 05 08 03 	mvhi r5,0x803                                  
 8015420:	38 a5 df 70 	ori r5,r5,0xdf70                               
 8015424:	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                        
)                                                                     
{                                                                     
 8015428:	b8 20 78 00 	mv r15,r1                                      
 801542c:	b8 40 70 00 	mv r14,r2                                      
 8015430:	b8 60 80 00 	mv r16,r3                                      
 8015434:	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;                                     
 8015438:	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 )                                                
 801543c:	45 a0 00 38 	be r13,r0,801551c <rtems_timer_server_fire_when+0x124>
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD.is_set )                                                 
 8015440:	78 0c 08 03 	mvhi r12,0x803                                 
 8015444:	39 8c dc 50 	ori r12,r12,0xdc50                             
 8015448:	41 81 00 14 	lbu r1,(r12+20)                                
    return RTEMS_NOT_DEFINED;                                         
 801544c:	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 )                                                 
 8015450:	44 20 00 33 	be r1,r0,801551c <rtems_timer_server_fire_when+0x124><== NEVER TAKEN
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
 8015454:	34 0b 00 09 	mvi r11,9                                      
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD.is_set )                                                 
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
 8015458:	44 60 00 31 	be r3,r0,801551c <rtems_timer_server_fire_when+0x124>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
 801545c:	b8 40 08 00 	mv r1,r2                                       
 8015460:	fb ff f0 f6 	calli 8011838 <_TOD_Validate>                  
    return RTEMS_INVALID_CLOCK;                                       
 8015464:	34 0b 00 14 	mvi r11,20                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
 8015468:	44 20 00 2d 	be r1,r0,801551c <rtems_timer_server_fire_when+0x124>
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
 801546c:	b9 c0 08 00 	mv r1,r14                                      
 8015470:	fb ff f0 aa 	calli 8011718 <_TOD_To_seconds>                
 8015474:	78 05 08 03 	mvhi r5,0x803                                  
 8015478:	38 a5 6f 2c 	ori r5,r5,0x6f2c                               
 801547c:	b8 20 70 00 	mv r14,r1                                      
 8015480:	29 82 00 04 	lw r2,(r12+4)                                  
 8015484:	29 81 00 00 	lw r1,(r12+0)                                  
 8015488:	28 a4 00 00 	lw r4,(r5+0)                                   
 801548c:	34 03 00 00 	mvi r3,0                                       
 8015490:	f8 00 51 b1 	calli 8029b54 <__divdi3>                       
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
 8015494:	50 4e 00 22 	bgeu r2,r14,801551c <rtems_timer_server_fire_when+0x124>
 8015498:	78 01 08 03 	mvhi r1,0x803                                  
 801549c:	38 21 df 30 	ori r1,r1,0xdf30                               
 80154a0:	b9 e0 10 00 	mv r2,r15                                      
 80154a4:	37 83 00 24 	addi r3,sp,36                                  
 80154a8:	f8 00 0d 01 	calli 80188ac <_Objects_Get>                   
 80154ac:	b8 20 58 00 	mv r11,r1                                      
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
 80154b0:	2b 81 00 24 	lw r1,(sp+36)                                  
 80154b4:	5c 20 00 19 	bne r1,r0,8015518 <rtems_timer_server_fire_when+0x120>
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
 80154b8:	35 61 00 10 	addi r1,r11,16                                 
 80154bc:	f8 00 15 fc 	calli 801acac <_Watchdog_Remove>               
      the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;               
 80154c0:	34 01 00 03 	mvi r1,3                                       
 80154c4:	78 05 08 03 	mvhi r5,0x803                                  
 80154c8:	59 61 00 38 	sw (r11+56),r1                                 
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 80154cc:	59 60 00 18 	sw (r11+24),r0                                 
  the_watchdog->routine   = routine;                                  
 80154d0:	59 70 00 2c 	sw (r11+44),r16                                
  the_watchdog->id        = id;                                       
 80154d4:	59 6f 00 30 	sw (r11+48),r15                                
  the_watchdog->user_data = user_data;                                
 80154d8:	59 71 00 34 	sw (r11+52),r17                                
 80154dc:	38 a5 6f 2c 	ori r5,r5,0x6f2c                               
 80154e0:	29 81 00 00 	lw r1,(r12+0)                                  
 80154e4:	29 82 00 04 	lw r2,(r12+4)                                  
 80154e8:	28 a4 00 00 	lw r4,(r5+0)                                   
 80154ec:	34 03 00 00 	mvi r3,0                                       
 80154f0:	f8 00 51 99 	calli 8029b54 <__divdi3>                       
      _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 ); 
 80154f4:	29 a3 00 04 	lw r3,(r13+4)                                  
                                                                      
    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();
 80154f8:	c9 c2 10 00 	sub r2,r14,r2                                  
 80154fc:	59 62 00 1c 	sw (r11+28),r2                                 
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
 8015500:	b9 a0 08 00 	mv r1,r13                                      
 8015504:	b9 60 10 00 	mv r2,r11                                      
 8015508:	d8 60 00 00 	call r3                                        
                                                                      
      _Thread_Enable_dispatch();                                      
      return RTEMS_SUCCESSFUL;                                        
 801550c:	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();                                      
 8015510:	f8 00 11 4a 	calli 8019a38 <_Thread_Enable_dispatch>        
      return RTEMS_SUCCESSFUL;                                        
 8015514:	e0 00 00 02 	bi 801551c <rtems_timer_server_fire_when+0x124>
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8015518:	34 0b 00 04 	mvi r11,4                                      
}                                                                     
 801551c:	b9 60 08 00 	mv r1,r11                                      
 8015520:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8015524:	2b 8b 00 20 	lw r11,(sp+32)                                 
 8015528:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 801552c:	2b 8d 00 18 	lw r13,(sp+24)                                 
 8015530:	2b 8e 00 14 	lw r14,(sp+20)                                 
 8015534:	2b 8f 00 10 	lw r15,(sp+16)                                 
 8015538:	2b 90 00 0c 	lw r16,(sp+12)                                 
 801553c:	2b 91 00 08 	lw r17,(sp+8)                                  
 8015540:	37 9c 00 24 	addi sp,sp,36                                  
 8015544:	c3 a0 00 00 	ret