RTEMS 4.11
Annotated Report
Sat Jul 17 06:31:04 2010

08003748 <_API_extensions_Run_postdriver>:                            
 *                                                                    
 *  _API_extensions_Run_postdriver                                    
 */                                                                   
                                                                      
void _API_extensions_Run_postdriver( void )                           
{                                                                     
 8003748:	37 9c ff f4 	addi sp,sp,-12                                 
 800374c:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8003750:	5b 8c 00 08 	sw (sp+8),r12                                  
 8003754:	5b 9d 00 04 	sw (sp+4),ra                                   
  Chain_Node             *the_node;                                   
  API_extensions_Control *the_extension;                              
                                                                      
  for ( the_node = _API_extensions_List.first ;                       
 8003758:	78 01 08 01 	mvhi r1,0x801                                  
 800375c:	38 21 4a 40 	ori r1,r1,0x4a40                               
 8003760:	28 2b 00 00 	lw r11,(r1+0)                                  
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 8003764:	78 0c 08 01 	mvhi r12,0x801                                 
 8003768:	39 8c 4a 44 	ori r12,r12,0x4a44                             
 800376c:	45 6c 00 05 	be r11,r12,8003780 <_API_extensions_Run_postdriver+0x38><== NEVER TAKEN
     *  Currently all APIs configure this hook so it is always non-NULL.
     */                                                               
#if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)              
    if ( the_extension->postdriver_hook )                             
#endif                                                                
      (*the_extension->postdriver_hook)();                            
 8003770:	29 61 00 08 	lw r1,(r11+8)                                  
 8003774:	d8 20 00 00 	call r1                                        
  Chain_Node             *the_node;                                   
  API_extensions_Control *the_extension;                              
                                                                      
  for ( the_node = _API_extensions_List.first ;                       
        !_Chain_Is_tail( &_API_extensions_List, the_node ) ;          
        the_node = the_node->next ) {                                 
 8003778:	29 6b 00 00 	lw r11,(r11+0)                                 
void _API_extensions_Run_postdriver( void )                           
{                                                                     
  Chain_Node             *the_node;                                   
  API_extensions_Control *the_extension;                              
                                                                      
  for ( the_node = _API_extensions_List.first ;                       
 800377c:	5d 6c ff fd 	bne r11,r12,8003770 <_API_extensions_Run_postdriver+0x28>
#if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)              
    if ( the_extension->postdriver_hook )                             
#endif                                                                
      (*the_extension->postdriver_hook)();                            
  }                                                                   
}                                                                     
 8003780:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003784:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8003788:	2b 8c 00 08 	lw r12,(sp+8)                                  
 800378c:	37 9c 00 0c 	addi sp,sp,12                                  
 8003790:	c3 a0 00 00 	ret                                            
                                                                      

08003794 <_API_extensions_Run_postswitch>: * * _API_extensions_Run_postswitch */ void _API_extensions_Run_postswitch( void ) {
 8003794:	37 9c ff f0 	addi sp,sp,-16                                 
 8003798:	5b 8b 00 10 	sw (sp+16),r11                                 
 800379c:	5b 8c 00 0c 	sw (sp+12),r12                                 
 80037a0:	5b 8d 00 08 	sw (sp+8),r13                                  
 80037a4:	5b 9d 00 04 	sw (sp+4),ra                                   
  Chain_Node             *the_node;                                   
  API_extensions_Control *the_extension;                              
                                                                      
  for ( the_node = _API_extensions_List.first ;                       
 80037a8:	78 01 08 01 	mvhi r1,0x801                                  
 80037ac:	38 21 4a 40 	ori r1,r1,0x4a40                               
 80037b0:	28 2b 00 00 	lw r11,(r1+0)                                  
 80037b4:	78 0c 08 01 	mvhi r12,0x801                                 
 80037b8:	39 8c 4a 44 	ori r12,r12,0x4a44                             
 80037bc:	45 6c 00 08 	be r11,r12,80037dc <_API_extensions_Run_postswitch+0x48><== NEVER TAKEN
 80037c0:	78 0d 08 01 	mvhi r13,0x801                                 
 80037c4:	39 ad 4d 84 	ori r13,r13,0x4d84                             
        !_Chain_Is_tail( &_API_extensions_List, the_node ) ;          
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (API_extensions_Control *) the_node;              
                                                                      
    (*the_extension->postswitch_hook)( _Thread_Executing );           
 80037c8:	29 62 00 0c 	lw r2,(r11+12)                                 
 80037cc:	29 a1 00 0c 	lw r1,(r13+12)                                 
 80037d0:	d8 40 00 00 	call r2                                        
  Chain_Node             *the_node;                                   
  API_extensions_Control *the_extension;                              
                                                                      
  for ( the_node = _API_extensions_List.first ;                       
        !_Chain_Is_tail( &_API_extensions_List, the_node ) ;          
        the_node = the_node->next ) {                                 
 80037d4:	29 6b 00 00 	lw r11,(r11+0)                                 
void _API_extensions_Run_postswitch( void )                           
{                                                                     
  Chain_Node             *the_node;                                   
  API_extensions_Control *the_extension;                              
                                                                      
  for ( the_node = _API_extensions_List.first ;                       
 80037d8:	5d 6c ff fc 	bne r11,r12,80037c8 <_API_extensions_Run_postswitch+0x34>
                                                                      
    the_extension = (API_extensions_Control *) the_node;              
                                                                      
    (*the_extension->postswitch_hook)( _Thread_Executing );           
  }                                                                   
}                                                                     
 80037dc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80037e0:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80037e4:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80037e8:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80037ec:	37 9c 00 10 	addi sp,sp,16                                  
 80037f0:	c3 a0 00 00 	ret                                            
                                                                      

0800610c <_CORE_RWLock_Obtain_for_reading>: Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_RWLock_API_mp_support_callout api_rwlock_mp_support ) {
 800610c:	37 9c ff e4 	addi sp,sp,-28                                 
 8006110:	5b 8b 00 14 	sw (sp+20),r11                                 
 8006114:	5b 8c 00 10 	sw (sp+16),r12                                 
 8006118:	5b 8d 00 0c 	sw (sp+12),r13                                 
 800611c:	5b 8e 00 08 	sw (sp+8),r14                                  
 8006120:	5b 9d 00 04 	sw (sp+4),ra                                   
  ISR_Level       level;                                              
  Thread_Control *executing = _Thread_Executing;                      
 8006124:	78 05 08 01 	mvhi r5,0x801                                  
 8006128:	38 a5 8d 44 	ori r5,r5,0x8d44                               
 800612c:	28 ac 00 0c 	lw r12,(r5+12)                                 
  Objects_Id                           id,                            
  bool                                 wait,                          
  Watchdog_Interval                    timeout,                       
  CORE_RWLock_API_mp_support_callout   api_rwlock_mp_support          
)                                                                     
{                                                                     
 8006130:	b8 20 58 00 	mv r11,r1                                      
 8006134:	20 6e 00 ff 	andi r14,r3,0xff                               
   *  If unlocked, then OK to read.                                   
   *  If locked for reading and no waiters, then OK to read.          
   *  If any thread is waiting, then we wait.                         
   */                                                                 
                                                                      
  _ISR_Disable( level );                                              
 8006138:	90 00 68 00 	rcsr r13,IE                                    
 800613c:	34 01 ff fe 	mvi r1,-2                                      
 8006140:	a1 a1 08 00 	and r1,r13,r1                                  
 8006144:	d0 01 00 00 	wcsr IE,r1                                     
    switch ( the_rwlock->current_state ) {                            
 8006148:	29 61 00 44 	lw r1,(r11+68)                                 
 800614c:	44 20 00 2e 	be r1,r0,8006204 <_CORE_RWLock_Obtain_for_reading+0xf8>
 8006150:	34 03 00 01 	mvi r3,1                                       
 8006154:	44 23 00 1f 	be r1,r3,80061d0 <_CORE_RWLock_Obtain_for_reading+0xc4>
                                                                      
    /*                                                                
     *  If the thread is not willing to wait, then return immediately.
     */                                                               
                                                                      
    if ( !wait ) {                                                    
 8006158:	5d c0 00 0b 	bne r14,r0,8006184 <_CORE_RWLock_Obtain_for_reading+0x78>
      _ISR_Enable( level );                                           
 800615c:	d0 0d 00 00 	wcsr IE,r13                                    
      executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;          
 8006160:	34 01 00 02 	mvi r1,2                                       
 8006164:	59 81 00 34 	sw (r12+52),r1                                 
       timeout,                                                       
       _CORE_RWLock_Timeout                                           
    );                                                                
                                                                      
    /* return to API level so it can dispatch and we block */         
}                                                                     
 8006168:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800616c:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8006170:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8006174:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8006178:	2b 8e 00 08 	lw r14,(sp+8)                                  
 800617c:	37 9c 00 1c 	addi sp,sp,28                                  
 8006180:	c3 a0 00 00 	ret                                            
 8006184:	34 01 00 01 	mvi r1,1                                       
 8006188:	59 61 00 30 	sw (r11+48),r1                                 
    /*                                                                
     *  We need to wait to enter this critical section                
     */                                                               
                                                                      
    _Thread_queue_Enter_critical_section( &the_rwlock->Wait_queue );  
    executing->Wait.queue       = &the_rwlock->Wait_queue;            
 800618c:	59 8b 00 44 	sw (r12+68),r11                                
    executing->Wait.id          = id;                                 
 8006190:	59 82 00 20 	sw (r12+32),r2                                 
    executing->Wait.option      = CORE_RWLOCK_THREAD_WAITING_FOR_READ;
 8006194:	59 80 00 30 	sw (r12+48),r0                                 
    executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;             
 8006198:	59 80 00 34 	sw (r12+52),r0                                 
    _ISR_Enable( level );                                             
 800619c:	d0 0d 00 00 	wcsr IE,r13                                    
                                                                      
    _Thread_queue_Enqueue_with_handler(                               
 80061a0:	78 03 08 00 	mvhi r3,0x800                                  
 80061a4:	b9 60 08 00 	mv r1,r11                                      
 80061a8:	b8 80 10 00 	mv r2,r4                                       
 80061ac:	38 63 63 fc 	ori r3,r3,0x63fc                               
 80061b0:	f8 00 07 d7 	calli 800810c <_Thread_queue_Enqueue_with_handler>
       timeout,                                                       
       _CORE_RWLock_Timeout                                           
    );                                                                
                                                                      
    /* return to API level so it can dispatch and we block */         
}                                                                     
 80061b4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80061b8:	2b 8b 00 14 	lw r11,(sp+20)                                 
 80061bc:	2b 8c 00 10 	lw r12,(sp+16)                                 
 80061c0:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 80061c4:	2b 8e 00 08 	lw r14,(sp+8)                                  
 80061c8:	37 9c 00 1c 	addi sp,sp,28                                  
 80061cc:	c3 a0 00 00 	ret                                            
	executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;                
	return;                                                              
                                                                      
      case CORE_RWLOCK_LOCKED_FOR_READING: {                          
        Thread_Control *waiter;                                       
        waiter = _Thread_queue_First( &the_rwlock->Wait_queue );      
 80061d0:	b9 60 08 00 	mv r1,r11                                      
 80061d4:	5b 82 00 1c 	sw (sp+28),r2                                  
 80061d8:	5b 84 00 18 	sw (sp+24),r4                                  
 80061dc:	f8 00 08 d7 	calli 8008538 <_Thread_queue_First>            
        if ( !waiter ) {                                              
 80061e0:	2b 82 00 1c 	lw r2,(sp+28)                                  
 80061e4:	2b 84 00 18 	lw r4,(sp+24)                                  
 80061e8:	5c 20 ff dc 	bne r1,r0,8006158 <_CORE_RWLock_Obtain_for_reading+0x4c><== NEVER TAKEN
	  the_rwlock->number_of_readers += 1;                                
 80061ec:	29 61 00 48 	lw r1,(r11+72)                                 
 80061f0:	34 21 00 01 	addi r1,r1,1                                   
 80061f4:	59 61 00 48 	sw (r11+72),r1                                 
	  _ISR_Enable( level );                                              
 80061f8:	d0 0d 00 00 	wcsr IE,r13                                    
	  executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;              
 80061fc:	59 80 00 34 	sw (r12+52),r0                                 
          return;                                                     
 8006200:	e3 ff ff da 	bi 8006168 <_CORE_RWLock_Obtain_for_reading+0x5c>
                                                                      
  _ISR_Disable( level );                                              
    switch ( the_rwlock->current_state ) {                            
      case CORE_RWLOCK_UNLOCKED:                                      
	the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING;          
	the_rwlock->number_of_readers += 1;                                  
 8006204:	29 61 00 48 	lw r1,(r11+72)                                 
   */                                                                 
                                                                      
  _ISR_Disable( level );                                              
    switch ( the_rwlock->current_state ) {                            
      case CORE_RWLOCK_UNLOCKED:                                      
	the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING;          
 8006208:	34 02 00 01 	mvi r2,1                                       
 800620c:	59 62 00 44 	sw (r11+68),r2                                 
	the_rwlock->number_of_readers += 1;                                  
 8006210:	34 21 00 01 	addi r1,r1,1                                   
 8006214:	59 61 00 48 	sw (r11+72),r1                                 
	_ISR_Enable( level );                                                
 8006218:	d0 0d 00 00 	wcsr IE,r13                                    
	executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;                
 800621c:	59 80 00 34 	sw (r12+52),r0                                 
       timeout,                                                       
       _CORE_RWLock_Timeout                                           
    );                                                                
                                                                      
    /* return to API level so it can dispatch and we block */         
}                                                                     
 8006220:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006224:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8006228:	2b 8c 00 10 	lw r12,(sp+16)                                 
 800622c:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8006230:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8006234:	37 9c 00 1c 	addi sp,sp,28                                  
 8006238:	c3 a0 00 00 	ret                                            
                                                                      

080062dc <_CORE_RWLock_Release>: */ CORE_RWLock_Status _CORE_RWLock_Release( CORE_RWLock_Control *the_rwlock ) {
 80062dc:	37 9c ff f4 	addi sp,sp,-12                                 
 80062e0:	5b 8b 00 0c 	sw (sp+12),r11                                 
 80062e4:	5b 8c 00 08 	sw (sp+8),r12                                  
 80062e8:	5b 9d 00 04 	sw (sp+4),ra                                   
  ISR_Level       level;                                              
  Thread_Control *executing = _Thread_Executing;                      
 80062ec:	78 02 08 01 	mvhi r2,0x801                                  
 80062f0:	38 42 8d 44 	ori r2,r2,0x8d44                               
 80062f4:	28 43 00 0c 	lw r3,(r2+12)                                  
 */                                                                   
                                                                      
CORE_RWLock_Status _CORE_RWLock_Release(                              
  CORE_RWLock_Control  *the_rwlock                                    
)                                                                     
{                                                                     
 80062f8:	b8 20 58 00 	mv r11,r1                                      
   *  Otherwise, we have to block.                                    
   *  If locked for reading and no waiters, then OK to read.          
   *  If any thread is waiting, then we wait.                         
   */                                                                 
                                                                      
  _ISR_Disable( level );                                              
 80062fc:	90 00 08 00 	rcsr r1,IE                                     
 8006300:	34 02 ff fe 	mvi r2,-2                                      
 8006304:	a0 22 10 00 	and r2,r1,r2                                   
 8006308:	d0 02 00 00 	wcsr IE,r2                                     
    if ( the_rwlock->current_state == CORE_RWLOCK_UNLOCKED){          
 800630c:	29 62 00 44 	lw r2,(r11+68)                                 
 8006310:	44 40 00 2f 	be r2,r0,80063cc <_CORE_RWLock_Release+0xf0>   
      _ISR_Enable( level );                                           
      executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;          
      return CORE_RWLOCK_SUCCESSFUL;                                  
    }                                                                 
    if ( the_rwlock->current_state == CORE_RWLOCK_LOCKED_FOR_READING ) {
 8006314:	34 04 00 01 	mvi r4,1                                       
 8006318:	44 44 00 22 	be r2,r4,80063a0 <_CORE_RWLock_Release+0xc4>   
          return CORE_RWLOCK_SUCCESSFUL;                              
        }                                                             
    }                                                                 
                                                                      
    /* CORE_RWLOCK_LOCKED_FOR_WRITING or READING with readers */      
    executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;             
 800631c:	58 60 00 34 	sw (r3+52),r0                                  
                                                                      
    /*                                                                
     * Implicitly transition to "unlocked" and find another thread interested
     * in obtaining this rwlock.                                      
     */                                                               
    the_rwlock->current_state = CORE_RWLOCK_UNLOCKED;                 
 8006320:	59 60 00 44 	sw (r11+68),r0                                 
  _ISR_Enable( level );                                               
 8006324:	d0 01 00 00 	wcsr IE,r1                                     
                                                                      
  next = _Thread_queue_Dequeue( &the_rwlock->Wait_queue );            
 8006328:	b9 60 08 00 	mv r1,r11                                      
 800632c:	f8 00 07 06 	calli 8007f44 <_Thread_queue_Dequeue>          
                                                                      
  if ( next ) {                                                       
 8006330:	44 20 00 16 	be r1,r0,8006388 <_CORE_RWLock_Release+0xac>   
    if ( next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) {
 8006334:	28 22 00 30 	lw r2,(r1+48)                                  
 8006338:	34 01 00 01 	mvi r1,1                                       
 800633c:	44 41 00 2d 	be r2,r1,80063f0 <_CORE_RWLock_Release+0x114>  
    }                                                                 
                                                                      
    /*                                                                
     * Must be CORE_RWLOCK_THREAD_WAITING_FOR_READING                 
     */                                                               
    the_rwlock->number_of_readers += 1;                               
 8006340:	29 62 00 48 	lw r2,(r11+72)                                 
    the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING;       
 8006344:	59 61 00 44 	sw (r11+68),r1                                 
    /*                                                                
     * Now see if more readers can be let go.                         
     */                                                               
    while ( 1 ) {                                                     
      next = _Thread_queue_First( &the_rwlock->Wait_queue );          
      if ( !next ||                                                   
 8006348:	34 0c 00 01 	mvi r12,1                                      
    }                                                                 
                                                                      
    /*                                                                
     * Must be CORE_RWLOCK_THREAD_WAITING_FOR_READING                 
     */                                                               
    the_rwlock->number_of_readers += 1;                               
 800634c:	34 41 00 01 	addi r1,r2,1                                   
 8006350:	59 61 00 48 	sw (r11+72),r1                                 
 8006354:	e0 00 00 07 	bi 8006370 <_CORE_RWLock_Release+0x94>         
    /*                                                                
     * Now see if more readers can be let go.                         
     */                                                               
    while ( 1 ) {                                                     
      next = _Thread_queue_First( &the_rwlock->Wait_queue );          
      if ( !next ||                                                   
 8006358:	28 63 00 30 	lw r3,(r3+48)                                  
 800635c:	44 6c 00 0b 	be r3,r12,8006388 <_CORE_RWLock_Release+0xac>  <== NEVER TAKEN
           next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE )
        return CORE_RWLOCK_SUCCESSFUL;                                
      the_rwlock->number_of_readers += 1;                             
 8006360:	29 63 00 48 	lw r3,(r11+72)                                 
 8006364:	34 63 00 01 	addi r3,r3,1                                   
 8006368:	59 63 00 48 	sw (r11+72),r3                                 
      _Thread_queue_Extract( &the_rwlock->Wait_queue, next );         
 800636c:	f8 00 08 22 	calli 80083f4 <_Thread_queue_Extract>          
                                                                      
    /*                                                                
     * Now see if more readers can be let go.                         
     */                                                               
    while ( 1 ) {                                                     
      next = _Thread_queue_First( &the_rwlock->Wait_queue );          
 8006370:	b9 60 08 00 	mv r1,r11                                      
 8006374:	f8 00 08 71 	calli 8008538 <_Thread_queue_First>            
 8006378:	b8 20 18 00 	mv r3,r1                                       
      if ( !next ||                                                   
           next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE )
        return CORE_RWLOCK_SUCCESSFUL;                                
      the_rwlock->number_of_readers += 1;                             
      _Thread_queue_Extract( &the_rwlock->Wait_queue, next );         
 800637c:	b8 20 10 00 	mv r2,r1                                       
 8006380:	b9 60 08 00 	mv r1,r11                                      
    /*                                                                
     * Now see if more readers can be let go.                         
     */                                                               
    while ( 1 ) {                                                     
      next = _Thread_queue_First( &the_rwlock->Wait_queue );          
      if ( !next ||                                                   
 8006384:	5c 60 ff f5 	bne r3,r0,8006358 <_CORE_RWLock_Release+0x7c>  
  }                                                                   
                                                                      
  /* indentation is to match _ISR_Disable at top */                   
                                                                      
  return CORE_RWLOCK_SUCCESSFUL;                                      
}                                                                     
 8006388:	34 01 00 00 	mvi r1,0                                       
 800638c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006390:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8006394:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8006398:	37 9c 00 0c 	addi sp,sp,12                                  
 800639c:	c3 a0 00 00 	ret                                            
      _ISR_Enable( level );                                           
      executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;          
      return CORE_RWLOCK_SUCCESSFUL;                                  
    }                                                                 
    if ( the_rwlock->current_state == CORE_RWLOCK_LOCKED_FOR_READING ) {
	the_rwlock->number_of_readers -= 1;                                  
 80063a0:	29 62 00 48 	lw r2,(r11+72)                                 
 80063a4:	34 42 ff ff 	addi r2,r2,-1                                  
 80063a8:	59 62 00 48 	sw (r11+72),r2                                 
	if ( the_rwlock->number_of_readers != 0 ) {                          
 80063ac:	44 40 ff dc 	be r2,r0,800631c <_CORE_RWLock_Release+0x40>   
          /* must be unlocked again */                                
	  _ISR_Enable( level );                                              
 80063b0:	d0 01 00 00 	wcsr IE,r1                                     
  }                                                                   
                                                                      
  /* indentation is to match _ISR_Disable at top */                   
                                                                      
  return CORE_RWLOCK_SUCCESSFUL;                                      
}                                                                     
 80063b4:	34 01 00 00 	mvi r1,0                                       
 80063b8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80063bc:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 80063c0:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80063c4:	37 9c 00 0c 	addi sp,sp,12                                  
 80063c8:	c3 a0 00 00 	ret                                            
   *  If any thread is waiting, then we wait.                         
   */                                                                 
                                                                      
  _ISR_Disable( level );                                              
    if ( the_rwlock->current_state == CORE_RWLOCK_UNLOCKED){          
      _ISR_Enable( level );                                           
 80063cc:	d0 01 00 00 	wcsr IE,r1                                     
      executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;          
 80063d0:	34 01 00 02 	mvi r1,2                                       
 80063d4:	58 61 00 34 	sw (r3+52),r1                                  
  }                                                                   
                                                                      
  /* indentation is to match _ISR_Disable at top */                   
                                                                      
  return CORE_RWLOCK_SUCCESSFUL;                                      
}                                                                     
 80063d8:	34 01 00 00 	mvi r1,0                                       
 80063dc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80063e0:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 80063e4:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80063e8:	37 9c 00 0c 	addi sp,sp,12                                  
 80063ec:	c3 a0 00 00 	ret                                            
                                                                      
  next = _Thread_queue_Dequeue( &the_rwlock->Wait_queue );            
                                                                      
  if ( next ) {                                                       
    if ( next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) {
      the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_WRITING;     
 80063f0:	34 01 00 02 	mvi r1,2                                       
 80063f4:	59 61 00 44 	sw (r11+68),r1                                 
      return CORE_RWLOCK_SUCCESSFUL;                                  
 80063f8:	e3 ff ff e4 	bi 8006388 <_CORE_RWLock_Release+0xac>         
                                                                      

080063fc <_CORE_RWLock_Timeout>: void _CORE_RWLock_Timeout( Objects_Id id, void *ignored ) {
 80063fc:	37 9c ff f8 	addi sp,sp,-8                                  
 8006400:	5b 9d 00 04 	sw (sp+4),ra                                   
  Thread_Control       *the_thread;                                   
  Objects_Locations     location;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 8006404:	37 82 00 08 	addi r2,sp,8                                   
 8006408:	f8 00 05 c7 	calli 8007b24 <_Thread_Get>                    
  switch ( location ) {                                               
 800640c:	2b 82 00 08 	lw r2,(sp+8)                                   
 8006410:	5c 40 00 07 	bne r2,r0,800642c <_CORE_RWLock_Timeout+0x30>  <== NEVER TAKEN
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
      break;                                                          
    case OBJECTS_LOCAL:                                               
      _Thread_queue_Process_timeout( the_thread );                    
 8006414:	f8 00 08 87 	calli 8008630 <_Thread_queue_Process_timeout>  
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
 8006418:	78 01 08 01 	mvhi r1,0x801                                  
 800641c:	38 21 88 6c 	ori r1,r1,0x886c                               
 8006420:	28 22 00 00 	lw r2,(r1+0)                                   
 8006424:	34 42 ff ff 	addi r2,r2,-1                                  
 8006428:	58 22 00 00 	sw (r1+0),r2                                   
      _Thread_Unnest_dispatch();                                      
      break;                                                          
  }                                                                   
}                                                                     
 800642c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006430:	37 9c 00 08 	addi sp,sp,8                                   
 8006434:	c3 a0 00 00 	ret                                            
                                                                      

08015484 <_CORE_message_queue_Broadcast>: Objects_Id id __attribute__((unused)), CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)), #endif uint32_t *count ) {
 8015484:	37 9c ff e4 	addi sp,sp,-28                                 
 8015488:	5b 8b 00 1c 	sw (sp+28),r11                                 
 801548c:	5b 8c 00 18 	sw (sp+24),r12                                 
 8015490:	5b 8d 00 14 	sw (sp+20),r13                                 
 8015494:	5b 8e 00 10 	sw (sp+16),r14                                 
 8015498:	5b 8f 00 0c 	sw (sp+12),r15                                 
 801549c:	5b 90 00 08 	sw (sp+8),r16                                  
 80154a0:	5b 9d 00 04 	sw (sp+4),ra                                   
  Thread_Control          *the_thread;                                
  uint32_t                 number_broadcasted;                        
  Thread_Wait_information *waitp;                                     
                                                                      
  if ( size > the_message_queue->maximum_message_size ) {             
 80154a4:	28 24 00 4c 	lw r4,(r1+76)                                  
    Objects_Id                                 id __attribute__((unused)),
    CORE_message_queue_API_mp_support_callout  api_message_queue_mp_support __attribute__((unused)),
  #endif                                                              
  uint32_t                                  *count                    
)                                                                     
{                                                                     
 80154a8:	b8 20 68 00 	mv r13,r1                                      
 80154ac:	b8 60 60 00 	mv r12,r3                                      
 80154b0:	b8 40 78 00 	mv r15,r2                                      
 80154b4:	b8 c0 80 00 	mv r16,r6                                      
  Thread_Control          *the_thread;                                
  uint32_t                 number_broadcasted;                        
  Thread_Wait_information *waitp;                                     
                                                                      
  if ( size > the_message_queue->maximum_message_size ) {             
    return CORE_MESSAGE_QUEUE_STATUS_INVALID_SIZE;                    
 80154b8:	34 01 00 01 	mvi r1,1                                       
{                                                                     
  Thread_Control          *the_thread;                                
  uint32_t                 number_broadcasted;                        
  Thread_Wait_information *waitp;                                     
                                                                      
  if ( size > the_message_queue->maximum_message_size ) {             
 80154bc:	54 64 00 06 	bgu r3,r4,80154d4 <_CORE_message_queue_Broadcast+0x50><== NEVER TAKEN
   *  NOTE: This check is critical because threads can block on       
   *        send and receive and this ensures that we are broadcasting
   *        the message to threads waiting to receive -- not to send. 
   */                                                                 
                                                                      
  if ( the_message_queue->number_of_pending_messages != 0 ) {         
 80154c0:	29 a1 00 48 	lw r1,(r13+72)                                 
 80154c4:	34 0e 00 00 	mvi r14,0                                      
 80154c8:	44 20 00 11 	be r1,r0,801550c <_CORE_message_queue_Broadcast+0x88>
    *count = 0;                                                       
 80154cc:	58 c0 00 00 	sw (r6+0),r0                                   
    return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;                      
 80154d0:	34 01 00 00 	mvi r1,0                                       
    #endif                                                            
                                                                      
  }                                                                   
  *count = number_broadcasted;                                        
  return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;                        
}                                                                     
 80154d4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80154d8:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 80154dc:	2b 8c 00 18 	lw r12,(sp+24)                                 
 80154e0:	2b 8d 00 14 	lw r13,(sp+20)                                 
 80154e4:	2b 8e 00 10 	lw r14,(sp+16)                                 
 80154e8:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 80154ec:	2b 90 00 08 	lw r16,(sp+8)                                  
 80154f0:	37 9c 00 1c 	addi sp,sp,28                                  
 80154f4:	c3 a0 00 00 	ret                                            
  const void *source,                                                 
  void       *destination,                                            
  size_t      size                                                    
)                                                                     
{                                                                     
  memcpy(destination, source, size);                                  
 80154f8:	29 61 00 2c 	lw r1,(r11+44)                                 
   */                                                                 
  number_broadcasted = 0;                                             
  while ((the_thread =                                                
          _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) {   
    waitp = &the_thread->Wait;                                        
    number_broadcasted += 1;                                          
 80154fc:	35 ce 00 01 	addi r14,r14,1                                 
 8015500:	f8 00 2b ab 	calli 80203ac <memcpy>                         
      buffer,                                                         
      waitp->return_argument_second.mutable_object,                   
      size                                                            
    );                                                                
                                                                      
    *(size_t *) the_thread->Wait.return_argument = size;              
 8015504:	29 61 00 28 	lw r1,(r11+40)                                 
 8015508:	58 2c 00 00 	sw (r1+0),r12                                  
  /*                                                                  
   *  There must be no pending messages if there is a thread waiting to
   *  receive a message.                                              
   */                                                                 
  number_broadcasted = 0;                                             
  while ((the_thread =                                                
 801550c:	b9 a0 08 00 	mv r1,r13                                      
 8015510:	f8 00 0c a4 	calli 80187a0 <_Thread_queue_Dequeue>          
 8015514:	b8 20 58 00 	mv r11,r1                                      
 8015518:	b9 e0 10 00 	mv r2,r15                                      
 801551c:	b9 80 18 00 	mv r3,r12                                      
 8015520:	5c 20 ff f6 	bne r1,r0,80154f8 <_CORE_message_queue_Broadcast+0x74>
      if ( !_Objects_Is_local_id( the_thread->Object.id ) )           
        (*api_message_queue_mp_support) ( the_thread, id );           
    #endif                                                            
                                                                      
  }                                                                   
  *count = number_broadcasted;                                        
 8015524:	5a 0e 00 00 	sw (r16+0),r14                                 
  return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;                        
 8015528:	34 01 00 00 	mvi r1,0                                       
 801552c:	e3 ff ff ea 	bi 80154d4 <_CORE_message_queue_Broadcast+0x50>
                                                                      

0800edfc <_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 ) {
 800edfc:	37 9c ff e4 	addi sp,sp,-28                                 
 800ee00:	5b 8b 00 1c 	sw (sp+28),r11                                 
 800ee04:	5b 8c 00 18 	sw (sp+24),r12                                 
 800ee08:	5b 8d 00 14 	sw (sp+20),r13                                 
 800ee0c:	5b 8e 00 10 	sw (sp+16),r14                                 
 800ee10:	5b 8f 00 0c 	sw (sp+12),r15                                 
 800ee14:	5b 90 00 08 	sw (sp+8),r16                                  
 800ee18:	5b 9d 00 04 	sw (sp+4),ra                                   
 800ee1c:	b8 20 58 00 	mv r11,r1                                      
  size_t message_buffering_required;                                  
  size_t allocated_message_size;                                      
                                                                      
  the_message_queue->maximum_pending_messages   = maximum_pending_messages;
  the_message_queue->number_of_pending_messages = 0;                  
 800ee20:	58 20 00 48 	sw (r1+72),r0                                  
  the_message_queue->maximum_message_size       = maximum_message_size;
 800ee24:	58 24 00 4c 	sw (r1+76),r4                                  
    CORE_message_queue_Control        *the_message_queue,             
    CORE_message_queue_Notify_Handler  the_handler,                   
    void                              *the_argument                   
  )                                                                   
  {                                                                   
    the_message_queue->notify_handler  = the_handler;                 
 800ee28:	58 20 00 60 	sw (r1+96),r0                                  
    the_message_queue->notify_argument = the_argument;                
 800ee2c:	58 20 00 64 	sw (r1+100),r0                                 
)                                                                     
{                                                                     
  size_t message_buffering_required;                                  
  size_t allocated_message_size;                                      
                                                                      
  the_message_queue->maximum_pending_messages   = maximum_pending_messages;
 800ee30:	59 63 00 44 	sw (r11+68),r3                                 
  /*                                                                  
   *  Round size up to multiple of a pointer for chain init and       
   *  check for overflow on adding overhead to each message.          
   */                                                                 
  allocated_message_size = maximum_message_size;                      
  if (allocated_message_size & (sizeof(uint32_t) - 1)) {              
 800ee34:	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                 
)                                                                     
{                                                                     
 800ee38:	b8 60 70 00 	mv r14,r3                                      
 800ee3c:	b8 40 80 00 	mv r16,r2                                      
  /*                                                                  
   *  Round size up to multiple of a pointer for chain init and       
   *  check for overflow on adding overhead to each message.          
   */                                                                 
  allocated_message_size = maximum_message_size;                      
  if (allocated_message_size & (sizeof(uint32_t) - 1)) {              
 800ee40:	b8 80 60 00 	mv r12,r4                                      
 800ee44:	44 20 00 06 	be r1,r0,800ee5c <_CORE_message_queue_Initialize+0x60>
    allocated_message_size += sizeof(uint32_t);                       
 800ee48:	34 8c 00 04 	addi r12,r4,4                                  
    allocated_message_size &= ~(sizeof(uint32_t) - 1);                
 800ee4c:	34 01 ff fc 	mvi r1,-4                                      
 800ee50:	a1 81 60 00 	and r12,r12,r1                                 
  }                                                                   
                                                                      
  if (allocated_message_size < maximum_message_size)                  
    return false;                                                     
 800ee54:	34 0d 00 00 	mvi r13,0                                      
  if (allocated_message_size & (sizeof(uint32_t) - 1)) {              
    allocated_message_size += sizeof(uint32_t);                       
    allocated_message_size &= ~(sizeof(uint32_t) - 1);                
  }                                                                   
                                                                      
  if (allocated_message_size < maximum_message_size)                  
 800ee58:	54 8c 00 1c 	bgu r4,r12,800eec8 <_CORE_message_queue_Initialize+0xcc><== NEVER TAKEN
  /*                                                                  
   *  Calculate how much total memory is required for message buffering and
   *  check for overflow on the multiplication.                       
   */                                                                 
  message_buffering_required = (size_t) maximum_pending_messages *    
       (allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
 800ee5c:	35 8f 00 14 	addi r15,r12,20                                
                                                                      
  /*                                                                  
   *  Calculate how much total memory is required for message buffering and
   *  check for overflow on the multiplication.                       
   */                                                                 
  message_buffering_required = (size_t) maximum_pending_messages *    
 800ee60:	b9 e0 08 00 	mv r1,r15                                      
 800ee64:	b9 c0 10 00 	mv r2,r14                                      
 800ee68:	f8 00 5d 99 	calli 80264cc <__mulsi3>                       
       (allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
                                                                      
  if (message_buffering_required < allocated_message_size)            
    return false;                                                     
 800ee6c:	34 0d 00 00 	mvi r13,0                                      
   *  check for overflow on the multiplication.                       
   */                                                                 
  message_buffering_required = (size_t) maximum_pending_messages *    
       (allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
                                                                      
  if (message_buffering_required < allocated_message_size)            
 800ee70:	55 81 00 16 	bgu r12,r1,800eec8 <_CORE_message_queue_Initialize+0xcc><== NEVER TAKEN
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
     _Workspace_Allocate( message_buffering_required );               
 800ee74:	f8 00 0e af 	calli 8012930 <_Workspace_Allocate>            
    return false;                                                     
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
 800ee78:	59 61 00 5c 	sw (r11+92),r1                                 
     _Workspace_Allocate( message_buffering_required );               
 800ee7c:	b8 20 18 00 	mv r3,r1                                       
                                                                      
  if (the_message_queue->message_buffers == 0)                        
 800ee80:	44 20 00 12 	be r1,r0,800eec8 <_CORE_message_queue_Initialize+0xcc>
                                                                      
  /*                                                                  
   *  Initialize the pool of inactive messages, pending messages,     
   *  and set of waiting threads.                                     
   */                                                                 
  _Chain_Initialize (                                                 
 800ee84:	b8 60 10 00 	mv r2,r3                                       
 800ee88:	35 61 00 68 	addi r1,r11,104                                
 800ee8c:	b9 c0 18 00 	mv r3,r14                                      
 800ee90:	b9 e0 20 00 	mv r4,r15                                      
 800ee94:	f8 00 1a 1f 	calli 8015710 <_Chain_Initialize>              
    allocated_message_size + sizeof( CORE_message_queue_Buffer_control )
  );                                                                  
                                                                      
  _Chain_Initialize_empty( &the_message_queue->Pending_messages );    
                                                                      
  _Thread_queue_Initialize(                                           
 800ee98:	2a 02 00 00 	lw r2,(r16+0)                                  
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 800ee9c:	35 63 00 54 	addi r3,r11,84                                 
    the_message_queue->message_buffers,                               
    (size_t) maximum_pending_messages,                                
    allocated_message_size + sizeof( CORE_message_queue_Buffer_control )
  );                                                                  
                                                                      
  _Chain_Initialize_empty( &the_message_queue->Pending_messages );    
 800eea0:	35 61 00 50 	addi r1,r11,80                                 
                                                                      
  _Thread_queue_Initialize(                                           
 800eea4:	64 42 00 01 	cmpei r2,r2,1                                  
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
 800eea8:	59 63 00 50 	sw (r11+80),r3                                 
  the_chain->permanent_null = NULL;                                   
  the_chain->last           = _Chain_Head(the_chain);                 
 800eeac:	59 61 00 58 	sw (r11+88),r1                                 
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
  the_chain->permanent_null = NULL;                                   
 800eeb0:	59 60 00 54 	sw (r11+84),r0                                 
 800eeb4:	b9 60 08 00 	mv r1,r11                                      
 800eeb8:	34 03 00 80 	mvi r3,128                                     
 800eebc:	34 04 00 06 	mvi r4,6                                       
 800eec0:	f8 00 0a b6 	calli 8011998 <_Thread_queue_Initialize>       
       THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO,
    STATES_WAITING_FOR_MESSAGE,                                       
    CORE_MESSAGE_QUEUE_STATUS_TIMEOUT                                 
  );                                                                  
                                                                      
  return true;                                                        
 800eec4:	34 0d 00 01 	mvi r13,1                                      
}                                                                     
 800eec8:	b9 a0 08 00 	mv r1,r13                                      
 800eecc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800eed0:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 800eed4:	2b 8c 00 18 	lw r12,(sp+24)                                 
 800eed8:	2b 8d 00 14 	lw r13,(sp+20)                                 
 800eedc:	2b 8e 00 10 	lw r14,(sp+16)                                 
 800eee0:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 800eee4:	2b 90 00 08 	lw r16,(sp+8)                                  
 800eee8:	37 9c 00 1c 	addi sp,sp,28                                  
 800eeec:	c3 a0 00 00 	ret                                            
                                                                      

08003b08 <_CORE_mutex_Seize>: Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) {
 8003b08:	37 9c ff e4 	addi sp,sp,-28                                 
 8003b0c:	5b 8b 00 18 	sw (sp+24),r11                                 
 8003b10:	5b 8c 00 14 	sw (sp+20),r12                                 
 8003b14:	5b 8d 00 10 	sw (sp+16),r13                                 
 8003b18:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8003b1c:	5b 8f 00 08 	sw (sp+8),r15                                  
 8003b20:	5b 9d 00 04 	sw (sp+4),ra                                   
  _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 
 8003b24:	78 0b 08 01 	mvhi r11,0x801                                 
 8003b28:	39 6b 48 ac 	ori r11,r11,0x48ac                             
 8003b2c:	29 66 00 00 	lw r6,(r11+0)                                  
  Objects_Id           _id,                                           
  bool                 _wait,                                         
  Watchdog_Interval    _timeout,                                      
  ISR_Level            _level                                         
)                                                                     
{                                                                     
 8003b30:	5b 85 00 1c 	sw (sp+28),r5                                  
 8003b34:	b8 20 60 00 	mv r12,r1                                      
 8003b38:	b8 40 78 00 	mv r15,r2                                      
 8003b3c:	b8 80 70 00 	mv r14,r4                                      
 8003b40:	20 6d 00 ff 	andi r13,r3,0xff                               
  _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 
 8003b44:	44 c0 00 02 	be r6,r0,8003b4c <_CORE_mutex_Seize+0x44>      
 8003b48:	5d a0 00 15 	bne r13,r0,8003b9c <_CORE_mutex_Seize+0x94>    <== ALWAYS TAKEN
 8003b4c:	b9 80 08 00 	mv r1,r12                                      
 8003b50:	37 82 00 1c 	addi r2,sp,28                                  
 8003b54:	f8 00 18 90 	calli 8009d94 <_CORE_mutex_Seize_interrupt_trylock>
 8003b58:	44 20 00 09 	be r1,r0,8003b7c <_CORE_mutex_Seize+0x74>      
 8003b5c:	5d a0 00 19 	bne r13,r0,8003bc0 <_CORE_mutex_Seize+0xb8>    
 8003b60:	2b 81 00 1c 	lw r1,(sp+28)                                  
 8003b64:	d0 01 00 00 	wcsr IE,r1                                     
 8003b68:	78 01 08 01 	mvhi r1,0x801                                  
 8003b6c:	38 21 4d 84 	ori r1,r1,0x4d84                               
 8003b70:	28 21 00 0c 	lw r1,(r1+12)                                  
 8003b74:	34 02 00 01 	mvi r2,1                                       
 8003b78:	58 22 00 34 	sw (r1+52),r2                                  
}                                                                     
 8003b7c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003b80:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8003b84:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8003b88:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8003b8c:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8003b90:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8003b94:	37 9c 00 1c 	addi sp,sp,28                                  
 8003b98:	c3 a0 00 00 	ret                                            
  bool                 _wait,                                         
  Watchdog_Interval    _timeout,                                      
  ISR_Level            _level                                         
)                                                                     
{                                                                     
  _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 
 8003b9c:	78 01 08 01 	mvhi r1,0x801                                  
 8003ba0:	38 21 4a 2c 	ori r1,r1,0x4a2c                               
 8003ba4:	28 21 00 00 	lw r1,(r1+0)                                   
 8003ba8:	34 02 00 01 	mvi r2,1                                       
 8003bac:	50 41 ff e8 	bgeu r2,r1,8003b4c <_CORE_mutex_Seize+0x44>    
 8003bb0:	34 01 00 00 	mvi r1,0                                       
 8003bb4:	34 02 00 00 	mvi r2,0                                       
 8003bb8:	34 03 00 12 	mvi r3,18                                      
 8003bbc:	f8 00 02 34 	calli 800448c <_Internal_error_Occurred>       
 8003bc0:	78 01 08 01 	mvhi r1,0x801                                  
 8003bc4:	29 62 00 00 	lw r2,(r11+0)                                  
 8003bc8:	38 21 4d 84 	ori r1,r1,0x4d84                               
 8003bcc:	28 21 00 0c 	lw r1,(r1+12)                                  
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section (      
  Thread_queue_Control *the_thread_queue                              
)                                                                     
{                                                                     
  the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
 8003bd0:	34 03 00 01 	mvi r3,1                                       
 8003bd4:	59 83 00 30 	sw (r12+48),r3                                 
 8003bd8:	34 42 00 01 	addi r2,r2,1                                   
 8003bdc:	58 2c 00 44 	sw (r1+68),r12                                 
 8003be0:	58 2f 00 20 	sw (r1+32),r15                                 
 8003be4:	59 62 00 00 	sw (r11+0),r2                                  
 8003be8:	2b 81 00 1c 	lw r1,(sp+28)                                  
 8003bec:	d0 01 00 00 	wcsr IE,r1                                     
 8003bf0:	b9 80 08 00 	mv r1,r12                                      
 8003bf4:	b9 c0 10 00 	mv r2,r14                                      
 8003bf8:	fb ff ff a3 	calli 8003a84 <_CORE_mutex_Seize_interrupt_blocking>
}                                                                     
 8003bfc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003c00:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8003c04:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8003c08:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8003c0c:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8003c10:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8003c14:	37 9c 00 1c 	addi sp,sp,28                                  
 8003c18:	c3 a0 00 00 	ret                                            
                                                                      

08003d88 <_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 ) {
 8003d88:	37 9c ff f8 	addi sp,sp,-8                                  
 8003d8c:	5b 8b 00 08 	sw (sp+8),r11                                  
 8003d90:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003d94:	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)) ) {
 8003d98:	f8 00 07 11 	calli 80059dc <_Thread_queue_Dequeue>          
{                                                                     
  Thread_Control *the_thread;                                         
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
 8003d9c:	34 02 00 00 	mvi r2,0                                       
                                                                      
  if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) {
 8003da0:	44 20 00 06 	be r1,r0,8003db8 <_CORE_semaphore_Surrender+0x30>
        status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;               
    _ISR_Enable( level );                                             
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
 8003da4:	b8 40 08 00 	mv r1,r2                                       
 8003da8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003dac:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8003db0:	37 9c 00 08 	addi sp,sp,8                                   
 8003db4:	c3 a0 00 00 	ret                                            
    if ( !_Objects_Is_local_id( the_thread->Object.id ) )             
      (*api_semaphore_mp_support) ( the_thread, id );                 
#endif                                                                
                                                                      
  } else {                                                            
    _ISR_Disable( level );                                            
 8003db8:	90 00 08 00 	rcsr r1,IE                                     
 8003dbc:	34 02 ff fe 	mvi r2,-2                                      
 8003dc0:	a0 22 10 00 	and r2,r1,r2                                   
 8003dc4:	d0 02 00 00 	wcsr IE,r2                                     
      if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
 8003dc8:	29 63 00 48 	lw r3,(r11+72)                                 
 8003dcc:	29 64 00 40 	lw r4,(r11+64)                                 
        the_semaphore->count += 1;                                    
      else                                                            
        status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;               
 8003dd0:	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 )
 8003dd4:	50 64 00 04 	bgeu r3,r4,8003de4 <_CORE_semaphore_Surrender+0x5c><== NEVER TAKEN
        the_semaphore->count += 1;                                    
 8003dd8:	34 63 00 01 	addi r3,r3,1                                   
 8003ddc:	59 63 00 48 	sw (r11+72),r3                                 
{                                                                     
  Thread_Control *the_thread;                                         
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
 8003de0:	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 );                                             
 8003de4:	d0 01 00 00 	wcsr IE,r1                                     
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
 8003de8:	b8 40 08 00 	mv r1,r2                                       
 8003dec:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003df0:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8003df4:	37 9c 00 08 	addi sp,sp,8                                   
 8003df8:	c3 a0 00 00 	ret                                            
                                                                      

08009d00 <_Chain_Initialize>: Chain_Control *the_chain, void *starting_address, size_t number_nodes, size_t node_size ) {
 8009d00:	37 9c ff f4 	addi sp,sp,-12                                 
 8009d04:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8009d08:	5b 8c 00 08 	sw (sp+8),r12                                  
 8009d0c:	5b 9d 00 04 	sw (sp+4),ra                                   
  Chain_Node *current;                                                
  Chain_Node *next;                                                   
                                                                      
  count                     = number_nodes;                           
  current                   = _Chain_Head( the_chain );               
  the_chain->permanent_null = NULL;                                   
 8009d10:	58 20 00 04 	sw (r1+4),r0                                   
  Chain_Control *the_chain,                                           
  void           *starting_address,                                   
  size_t         number_nodes,                                        
  size_t         node_size                                            
)                                                                     
{                                                                     
 8009d14:	b8 20 58 00 	mv r11,r1                                      
 8009d18:	b8 40 60 00 	mv r12,r2                                      
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) the_chain;                                   
 8009d1c:	b8 20 30 00 	mv r6,r1                                       
  Chain_Node *next;                                                   
                                                                      
  count                     = number_nodes;                           
  current                   = _Chain_Head( the_chain );               
  the_chain->permanent_null = NULL;                                   
  next                      = starting_address;                       
 8009d20:	b8 60 38 00 	mv r7,r3                                       
 8009d24:	b8 40 28 00 	mv r5,r2                                       
  while ( count-- ) {                                                 
 8009d28:	5c 60 00 04 	bne r3,r0,8009d38 <_Chain_Initialize+0x38>     <== ALWAYS TAKEN
 8009d2c:	e0 00 00 0c 	bi 8009d5c <_Chain_Initialize+0x5c>            <== NOT EXECUTED
 8009d30:	b8 a0 30 00 	mv r6,r5                                       
    current->next  = next;                                            
    next->previous = current;                                         
    current        = next;                                            
    next           = (Chain_Node *)                                   
 8009d34:	b9 00 28 00 	mv r5,r8                                       
  count                     = number_nodes;                           
  current                   = _Chain_Head( the_chain );               
  the_chain->permanent_null = NULL;                                   
  next                      = starting_address;                       
  while ( count-- ) {                                                 
    current->next  = next;                                            
 8009d38:	58 c5 00 00 	sw (r6+0),r5                                   
    next->previous = current;                                         
 8009d3c:	58 a6 00 04 	sw (r5+4),r6                                   
 *    node_size        - size of node in bytes                        
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Chain_Initialize(                                               
 8009d40:	34 e7 ff ff 	addi r7,r7,-1                                  
 8009d44:	b4 a4 40 00 	add r8,r5,r4                                   
                                                                      
  count                     = number_nodes;                           
  current                   = _Chain_Head( the_chain );               
  the_chain->permanent_null = NULL;                                   
  next                      = starting_address;                       
  while ( count-- ) {                                                 
 8009d48:	5c e0 ff fa 	bne r7,r0,8009d30 <_Chain_Initialize+0x30>     
 *    node_size        - size of node in bytes                        
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Chain_Initialize(                                               
 8009d4c:	34 61 ff ff 	addi r1,r3,-1                                  
 8009d50:	b8 80 10 00 	mv r2,r4                                       
 8009d54:	f8 00 21 09 	calli 8012178 <__mulsi3>                       
                                                                      
  count                     = number_nodes;                           
  current                   = _Chain_Head( the_chain );               
  the_chain->permanent_null = NULL;                                   
  next                      = starting_address;                       
  while ( count-- ) {                                                 
 8009d58:	b5 81 30 00 	add r6,r12,r1                                  
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 8009d5c:	35 61 00 04 	addi r1,r11,4                                  
    next->previous = current;                                         
    current        = next;                                            
    next           = (Chain_Node *)                                   
                        _Addresses_Add_offset( (void *) next, node_size );
  }                                                                   
  current->next    = _Chain_Tail( the_chain );                        
 8009d60:	58 c1 00 00 	sw (r6+0),r1                                   
  the_chain->last  = current;                                         
 8009d64:	59 66 00 08 	sw (r11+8),r6                                  
}                                                                     
 8009d68:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009d6c:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8009d70:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8009d74:	37 9c 00 0c 	addi sp,sp,12                                  
 8009d78:	c3 a0 00 00 	ret                                            
                                                                      

0800dde4 <_Event_Seize>: rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) {
 800dde4:	37 9c ff f4 	addi sp,sp,-12                                 
 800dde8:	5b 8b 00 0c 	sw (sp+12),r11                                 
 800ddec:	5b 8c 00 08 	sw (sp+8),r12                                  
 800ddf0:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_event_set                   pending_events;                   
  ISR_Level                         level;                            
  RTEMS_API_Control                *api;                              
  Thread_blocking_operation_States  sync_state;                       
                                                                      
  executing = _Thread_Executing;                                      
 800ddf4:	78 05 08 01 	mvhi r5,0x801                                  
 800ddf8:	38 a5 ad fc 	ori r5,r5,0xadfc                               
 800ddfc:	28 ab 00 0c 	lw r11,(r5+12)                                 
  executing->Wait.return_code = RTEMS_SUCCESSFUL;                     
 800de00:	59 60 00 34 	sw (r11+52),r0                                 
                                                                      
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
 800de04:	29 67 01 28 	lw r7,(r11+296)                                
                                                                      
  _ISR_Disable( level );                                              
 800de08:	90 00 30 00 	rcsr r6,IE                                     
 800de0c:	34 05 ff fe 	mvi r5,-2                                      
 800de10:	a0 c5 28 00 	and r5,r6,r5                                   
 800de14:	d0 05 00 00 	wcsr IE,r5                                     
  pending_events = api->pending_events;                               
 800de18:	28 e8 00 00 	lw r8,(r7+0)                                   
RTEMS_INLINE_ROUTINE rtems_event_set _Event_sets_Get(                 
  rtems_event_set the_event_set,                                      
  rtems_event_set the_event_condition                                 
)                                                                     
{                                                                     
   return ( the_event_set & the_event_condition );                    
 800de1c:	a0 28 28 00 	and r5,r1,r8                                   
  seized_events  = _Event_sets_Get( pending_events, event_in );       
                                                                      
  if ( !_Event_sets_Is_empty( seized_events ) &&                      
 800de20:	44 a0 00 04 	be r5,r0,800de30 <_Event_Seize+0x4c>           
 800de24:	44 25 00 29 	be r1,r5,800dec8 <_Event_Seize+0xe4>           
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Options_Is_any (                           
  rtems_option option_set                                             
)                                                                     
{                                                                     
   return (option_set & RTEMS_EVENT_ANY) ? true : false;              
 800de28:	20 49 00 02 	andi r9,r2,0x2                                 
       (seized_events == event_in || _Options_Is_any( option_set )) ) {
 800de2c:	5d 20 00 27 	bne r9,r0,800dec8 <_Event_Seize+0xe4>          <== ALWAYS TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Options_Is_no_wait (                       
  rtems_option option_set                                             
)                                                                     
{                                                                     
   return (option_set & RTEMS_NO_WAIT) ? true : false;                
 800de30:	20 47 00 01 	andi r7,r2,0x1                                 
    _ISR_Enable( level );                                             
    *event_out = seized_events;                                       
    return;                                                           
  }                                                                   
                                                                      
  if ( _Options_Is_no_wait( option_set ) ) {                          
 800de34:	5c e0 00 1c 	bne r7,r0,800dea4 <_Event_Seize+0xc0>          
   */                                                                 
  executing->Wait.option            = (uint32_t) option_set;          
  executing->Wait.count             = (uint32_t) event_in;            
  executing->Wait.return_argument   = event_out;                      
                                                                      
  _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;     
 800de38:	78 0c 08 01 	mvhi r12,0x801                                 
 800de3c:	39 8c b2 c8 	ori r12,r12,0xb2c8                             
   *                                                                  
   *  NOTE: Since interrupts are disabled, this isn't that much of an 
   *        issue but better safe than sorry.                         
   */                                                                 
  executing->Wait.option            = (uint32_t) option_set;          
  executing->Wait.count             = (uint32_t) event_in;            
 800de40:	59 61 00 24 	sw (r11+36),r1                                 
  executing->Wait.return_argument   = event_out;                      
                                                                      
  _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;     
 800de44:	34 01 00 01 	mvi r1,1                                       
   *  set properly when we are marked as in the event critical section.
   *                                                                  
   *  NOTE: Since interrupts are disabled, this isn't that much of an 
   *        issue but better safe than sorry.                         
   */                                                                 
  executing->Wait.option            = (uint32_t) option_set;          
 800de48:	59 62 00 30 	sw (r11+48),r2                                 
  executing->Wait.count             = (uint32_t) event_in;            
  executing->Wait.return_argument   = event_out;                      
 800de4c:	59 64 00 28 	sw (r11+40),r4                                 
                                                                      
  _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;     
 800de50:	59 81 00 00 	sw (r12+0),r1                                  
                                                                      
  _ISR_Enable( level );                                               
 800de54:	d0 06 00 00 	wcsr IE,r6                                     
                                                                      
  if ( ticks ) {                                                      
 800de58:	5c 60 00 2c 	bne r3,r0,800df08 <_Event_Seize+0x124>         
      NULL                                                            
    );                                                                
    _Watchdog_Insert_ticks( &executing->Timer, ticks );               
  }                                                                   
                                                                      
  _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT );           
 800de5c:	b9 60 08 00 	mv r1,r11                                      
 800de60:	34 02 01 00 	mvi r2,256                                     
 800de64:	fb ff e5 84 	calli 8007474 <_Thread_Set_state>              
                                                                      
  _ISR_Disable( level );                                              
 800de68:	90 00 18 00 	rcsr r3,IE                                     
 800de6c:	34 01 ff fe 	mvi r1,-2                                      
 800de70:	a0 61 08 00 	and r1,r3,r1                                   
 800de74:	d0 01 00 00 	wcsr IE,r1                                     
                                                                      
  sync_state = _Event_Sync_state;                                     
 800de78:	29 81 00 00 	lw r1,(r12+0)                                  
  _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;         
  if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) {   
 800de7c:	34 02 00 01 	mvi r2,1                                       
  _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT );           
                                                                      
  _ISR_Disable( level );                                              
                                                                      
  sync_state = _Event_Sync_state;                                     
  _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;         
 800de80:	59 80 00 00 	sw (r12+0),r0                                  
  if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) {   
 800de84:	44 22 00 1b 	be r1,r2,800def0 <_Event_Seize+0x10c>          
   *  An interrupt completed the thread's blocking request.           
   *  The blocking thread was satisfied by an ISR or timed out.       
   *                                                                  
   *  WARNING! Returning with interrupts disabled!                    
   */                                                                 
  _Thread_blocking_operation_Cancel( sync_state, executing, level );  
 800de88:	b9 60 10 00 	mv r2,r11                                      
 800de8c:	f8 00 05 8f 	calli 800f4c8 <_Thread_blocking_operation_Cancel>
}                                                                     
 800de90:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800de94:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 800de98:	2b 8c 00 08 	lw r12,(sp+8)                                  
 800de9c:	37 9c 00 0c 	addi sp,sp,12                                  
 800dea0:	c3 a0 00 00 	ret                                            
    *event_out = seized_events;                                       
    return;                                                           
  }                                                                   
                                                                      
  if ( _Options_Is_no_wait( option_set ) ) {                          
    _ISR_Enable( level );                                             
 800dea4:	d0 06 00 00 	wcsr IE,r6                                     
    executing->Wait.return_code = RTEMS_UNSATISFIED;                  
 800dea8:	34 01 00 0d 	mvi r1,13                                      
 800deac:	59 61 00 34 	sw (r11+52),r1                                 
    *event_out = seized_events;                                       
 800deb0:	58 85 00 00 	sw (r4+0),r5                                   
   *  The blocking thread was satisfied by an ISR or timed out.       
   *                                                                  
   *  WARNING! Returning with interrupts disabled!                    
   */                                                                 
  _Thread_blocking_operation_Cancel( sync_state, executing, level );  
}                                                                     
 800deb4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800deb8:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 800debc:	2b 8c 00 08 	lw r12,(sp+8)                                  
 800dec0:	37 9c 00 0c 	addi sp,sp,12                                  
 800dec4:	c3 a0 00 00 	ret                                            
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) );                            
 800dec8:	a4 a0 08 00 	not r1,r5                                      
 800decc:	a0 28 40 00 	and r8,r1,r8                                   
  pending_events = api->pending_events;                               
  seized_events  = _Event_sets_Get( pending_events, event_in );       
                                                                      
  if ( !_Event_sets_Is_empty( seized_events ) &&                      
       (seized_events == event_in || _Options_Is_any( option_set )) ) {
    api->pending_events =                                             
 800ded0:	58 e8 00 00 	sw (r7+0),r8                                   
      _Event_sets_Clear( pending_events, seized_events );             
    _ISR_Enable( level );                                             
 800ded4:	d0 06 00 00 	wcsr IE,r6                                     
    *event_out = seized_events;                                       
 800ded8:	58 85 00 00 	sw (r4+0),r5                                   
   *  The blocking thread was satisfied by an ISR or timed out.       
   *                                                                  
   *  WARNING! Returning with interrupts disabled!                    
   */                                                                 
  _Thread_blocking_operation_Cancel( sync_state, executing, level );  
}                                                                     
 800dedc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800dee0:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 800dee4:	2b 8c 00 08 	lw r12,(sp+8)                                  
 800dee8:	37 9c 00 0c 	addi sp,sp,12                                  
 800deec:	c3 a0 00 00 	ret                                            
  _ISR_Disable( level );                                              
                                                                      
  sync_state = _Event_Sync_state;                                     
  _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;         
  if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) {   
    _ISR_Enable( level );                                             
 800def0:	d0 03 00 00 	wcsr IE,r3                                     
   *  The blocking thread was satisfied by an ISR or timed out.       
   *                                                                  
   *  WARNING! Returning with interrupts disabled!                    
   */                                                                 
  _Thread_blocking_operation_Cancel( sync_state, executing, level );  
}                                                                     
 800def4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800def8:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 800defc:	2b 8c 00 08 	lw r12,(sp+8)                                  
 800df00:	37 9c 00 0c 	addi sp,sp,12                                  
 800df04:	c3 a0 00 00 	ret                                            
  _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;     
                                                                      
  _ISR_Enable( level );                                               
                                                                      
  if ( ticks ) {                                                      
    _Watchdog_Initialize(                                             
 800df08:	29 62 00 08 	lw r2,(r11+8)                                  
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
 800df0c:	78 01 08 00 	mvhi r1,0x800                                  
 800df10:	38 21 e1 14 	ori r1,r1,0xe114                               
 800df14:	59 61 00 64 	sw (r11+100),r1                                
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 800df18:	78 01 08 01 	mvhi r1,0x801                                  
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
  the_watchdog->id        = id;                                       
 800df1c:	59 62 00 68 	sw (r11+104),r2                                
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 800df20:	59 60 00 50 	sw (r11+80),r0                                 
  the_watchdog->routine   = routine;                                  
  the_watchdog->id        = id;                                       
  the_watchdog->user_data = user_data;                                
 800df24:	59 60 00 6c 	sw (r11+108),r0                                
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 800df28:	59 63 00 54 	sw (r11+84),r3                                 
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 800df2c:	38 21 a9 e8 	ori r1,r1,0xa9e8                               
 800df30:	35 62 00 48 	addi r2,r11,72                                 
 800df34:	fb ff e7 58 	calli 8007c94 <_Watchdog_Insert>               
 800df38:	e3 ff ff c9 	bi 800de5c <_Event_Seize+0x78>                 
                                                                      

0800dfb0 <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) {
 800dfb0:	37 9c ff f8 	addi sp,sp,-8                                  
 800dfb4:	5b 8b 00 08 	sw (sp+8),r11                                  
 800dfb8:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_event_set     event_condition;                                
  rtems_event_set     seized_events;                                  
  rtems_option        option_set;                                     
  RTEMS_API_Control  *api;                                            
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_RTEMS ];               
 800dfbc:	28 25 01 28 	lw r5,(r1+296)                                 
                                                                      
  option_set = (rtems_option) the_thread->Wait.option;                
 800dfc0:	28 28 00 30 	lw r8,(r1+48)                                  
 */                                                                   
                                                                      
void _Event_Surrender(                                                
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
 800dfc4:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_RTEMS ];               
                                                                      
  option_set = (rtems_option) the_thread->Wait.option;                
                                                                      
  _ISR_Disable( level );                                              
 800dfc8:	90 00 08 00 	rcsr r1,IE                                     
 800dfcc:	34 07 ff fe 	mvi r7,-2                                      
 800dfd0:	a0 27 38 00 	and r7,r1,r7                                   
 800dfd4:	d0 07 00 00 	wcsr IE,r7                                     
  pending_events  = api->pending_events;                              
 800dfd8:	28 a6 00 00 	lw r6,(r5+0)                                   
  event_condition = (rtems_event_set) the_thread->Wait.count;         
 800dfdc:	29 64 00 24 	lw r4,(r11+36)                                 
RTEMS_INLINE_ROUTINE rtems_event_set _Event_sets_Get(                 
  rtems_event_set the_event_set,                                      
  rtems_event_set the_event_condition                                 
)                                                                     
{                                                                     
   return ( the_event_set & the_event_condition );                    
 800dfe0:	a0 86 10 00 	and r2,r4,r6                                   
  seized_events = _Event_sets_Get( pending_events, event_condition ); 
                                                                      
  /*                                                                  
   *  No events were seized in this operation                         
   */                                                                 
  if ( _Event_sets_Is_empty( seized_events ) ) {                      
 800dfe4:	44 40 00 27 	be r2,r0,800e080 <_Event_Surrender+0xd0>       
                                                                      
  /*                                                                  
   *  If we are in an ISR and sending to the current thread, then     
   *  we have a critical section issue to deal with.                  
   */                                                                 
  if ( _ISR_Is_in_progress() &&                                       
 800dfe8:	78 03 08 01 	mvhi r3,0x801                                  
 800dfec:	38 63 ad fc 	ori r3,r3,0xadfc                               
 800dff0:	28 69 00 08 	lw r9,(r3+8)                                   
 800dff4:	45 20 00 03 	be r9,r0,800e000 <_Event_Surrender+0x50>       
 800dff8:	28 63 00 0c 	lw r3,(r3+12)                                  
 800dffc:	45 63 00 31 	be r11,r3,800e0c0 <_Event_Surrender+0x110>     <== NEVER TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_event (              
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_WAITING_FOR_EVENT);                    
 800e000:	29 63 00 10 	lw r3,(r11+16)                                 
 800e004:	20 63 01 00 	andi r3,r3,0x100                               
  }                                                                   
                                                                      
  /*                                                                  
   *  Otherwise, this is a normal send to another thread              
   */                                                                 
  if ( _States_Is_waiting_for_event( the_thread->current_state ) ) {  
 800e008:	44 60 00 19 	be r3,r0,800e06c <_Event_Surrender+0xbc>       
    if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
 800e00c:	44 82 00 03 	be r4,r2,800e018 <_Event_Surrender+0x68>       
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Options_Is_any (                           
  rtems_option option_set                                             
)                                                                     
{                                                                     
   return (option_set & RTEMS_EVENT_ANY) ? true : false;              
 800e010:	21 08 00 02 	andi r8,r8,0x2                                 
 800e014:	45 00 00 16 	be r8,r0,800e06c <_Event_Surrender+0xbc>       <== NEVER TAKEN
RTEMS_INLINE_ROUTINE rtems_event_set _Event_sets_Clear(               
 rtems_event_set the_event_set,                                       
 rtems_event_set the_mask                                             
)                                                                     
{                                                                     
   return ( the_event_set & ~(the_mask) );                            
 800e018:	a4 40 18 00 	not r3,r2                                      
      api->pending_events = _Event_sets_Clear( pending_events, seized_events );
      the_thread->Wait.count = 0;                                     
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
 800e01c:	29 64 00 28 	lw r4,(r11+40)                                 
 800e020:	a0 66 30 00 	and r6,r3,r6                                   
  /*                                                                  
   *  Otherwise, this is a normal send to another thread              
   */                                                                 
  if ( _States_Is_waiting_for_event( the_thread->current_state ) ) {  
    if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
      api->pending_events = _Event_sets_Clear( pending_events, seized_events );
 800e024:	58 a6 00 00 	sw (r5+0),r6                                   
      the_thread->Wait.count = 0;                                     
 800e028:	59 60 00 24 	sw (r11+36),r0                                 
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
 800e02c:	58 82 00 00 	sw (r4+0),r2                                   
                                                                      
      _ISR_Flash( level );                                            
 800e030:	d0 01 00 00 	wcsr IE,r1                                     
 800e034:	d0 07 00 00 	wcsr IE,r7                                     
                                                                      
      if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {             
 800e038:	29 63 00 50 	lw r3,(r11+80)                                 
 800e03c:	34 02 00 02 	mvi r2,2                                       
 800e040:	44 62 00 15 	be r3,r2,800e094 <_Event_Surrender+0xe4>       
        _ISR_Enable( level );                                         
 800e044:	d0 01 00 00 	wcsr IE,r1                                     
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
 800e048:	78 01 08 01 	mvhi r1,0x801                                  
 800e04c:	38 21 89 64 	ori r1,r1,0x8964                               
 800e050:	28 22 00 00 	lw r2,(r1+0)                                   
 800e054:	b9 60 08 00 	mv r1,r11                                      
 800e058:	f8 00 05 34 	calli 800f528 <_Thread_Clear_state>            
      }                                                               
      return;                                                         
    }                                                                 
  }                                                                   
  _ISR_Enable( level );                                               
}                                                                     
 800e05c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800e060:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800e064:	37 9c 00 08 	addi sp,sp,8                                   
 800e068:	c3 a0 00 00 	ret                                            
        _Thread_Unblock( the_thread );                                
      }                                                               
      return;                                                         
    }                                                                 
  }                                                                   
  _ISR_Enable( level );                                               
 800e06c:	d0 01 00 00 	wcsr IE,r1                                     
}                                                                     
 800e070:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800e074:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800e078:	37 9c 00 08 	addi sp,sp,8                                   
 800e07c:	c3 a0 00 00 	ret                                            
                                                                      
  /*                                                                  
   *  No events were seized in this operation                         
   */                                                                 
  if ( _Event_sets_Is_empty( seized_events ) ) {                      
    _ISR_Enable( level );                                             
 800e080:	d0 01 00 00 	wcsr IE,r1                                     
      }                                                               
      return;                                                         
    }                                                                 
  }                                                                   
  _ISR_Enable( level );                                               
}                                                                     
 800e084:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800e088:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800e08c:	37 9c 00 08 	addi sp,sp,8                                   
 800e090:	c3 a0 00 00 	ret                                            
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(                       
  Watchdog_Control *the_watchdog                                      
)                                                                     
{                                                                     
                                                                      
  the_watchdog->state = WATCHDOG_REMOVE_IT;                           
 800e094:	34 02 00 03 	mvi r2,3                                       
 800e098:	59 62 00 50 	sw (r11+80),r2                                 
      if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {             
        _ISR_Enable( level );                                         
        _Thread_Unblock( the_thread );                                
      } else {                                                        
        _Watchdog_Deactivate( &the_thread->Timer );                   
        _ISR_Enable( level );                                         
 800e09c:	d0 01 00 00 	wcsr IE,r1                                     
        (void) _Watchdog_Remove( &the_thread->Timer );                
 800e0a0:	35 61 00 48 	addi r1,r11,72                                 
 800e0a4:	fb ff e7 65 	calli 8007e38 <_Watchdog_Remove>               
 800e0a8:	78 03 08 01 	mvhi r3,0x801                                  
 800e0ac:	38 63 89 64 	ori r3,r3,0x8964                               
 800e0b0:	28 62 00 00 	lw r2,(r3+0)                                   
 800e0b4:	b9 60 08 00 	mv r1,r11                                      
 800e0b8:	f8 00 05 1c 	calli 800f528 <_Thread_Clear_state>            
 800e0bc:	e3 ff ff ed 	bi 800e070 <_Event_Surrender+0xc0>             
   *  If we are in an ISR and sending to the current thread, then     
   *  we have a critical section issue to deal with.                  
   */                                                                 
  if ( _ISR_Is_in_progress() &&                                       
       _Thread_Is_executing( the_thread ) &&                          
       ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||   
 800e0c0:	78 03 08 01 	mvhi r3,0x801                                  <== NOT EXECUTED
 800e0c4:	38 63 b2 c8 	ori r3,r3,0xb2c8                               <== NOT EXECUTED
 800e0c8:	28 6a 00 00 	lw r10,(r3+0)                                  <== NOT EXECUTED
  /*                                                                  
   *  If we are in an ISR and sending to the current thread, then     
   *  we have a critical section issue to deal with.                  
   */                                                                 
  if ( _ISR_Is_in_progress() &&                                       
       _Thread_Is_executing( the_thread ) &&                          
 800e0cc:	34 09 00 02 	mvi r9,2                                       <== NOT EXECUTED
 800e0d0:	45 49 00 04 	be r10,r9,800e0e0 <_Event_Surrender+0x130>     <== NOT EXECUTED
       ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||   
        (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
 800e0d4:	28 6a 00 00 	lw r10,(r3+0)                                  <== NOT EXECUTED
   *  If we are in an ISR and sending to the current thread, then     
   *  we have a critical section issue to deal with.                  
   */                                                                 
  if ( _ISR_Is_in_progress() &&                                       
       _Thread_Is_executing( the_thread ) &&                          
       ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||   
 800e0d8:	34 09 00 01 	mvi r9,1                                       <== NOT EXECUTED
 800e0dc:	5d 49 ff c9 	bne r10,r9,800e000 <_Event_Surrender+0x50>     <== NOT EXECUTED
        (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
    if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
 800e0e0:	44 82 00 03 	be r4,r2,800e0ec <_Event_Surrender+0x13c>      <== NOT EXECUTED
 800e0e4:	21 08 00 02 	andi r8,r8,0x2                                 <== NOT EXECUTED
 800e0e8:	45 00 00 09 	be r8,r0,800e10c <_Event_Surrender+0x15c>      <== NOT EXECUTED
 800e0ec:	a4 40 20 00 	not r4,r2                                      <== NOT EXECUTED
 800e0f0:	a0 86 30 00 	and r6,r4,r6                                   <== NOT EXECUTED
      api->pending_events = _Event_sets_Clear( pending_events,seized_events );
      the_thread->Wait.count = 0;                                     
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
 800e0f4:	29 64 00 28 	lw r4,(r11+40)                                 <== NOT EXECUTED
  if ( _ISR_Is_in_progress() &&                                       
       _Thread_Is_executing( the_thread ) &&                          
       ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||   
        (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
    if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
      api->pending_events = _Event_sets_Clear( pending_events,seized_events );
 800e0f8:	58 a6 00 00 	sw (r5+0),r6                                   <== NOT EXECUTED
      the_thread->Wait.count = 0;                                     
 800e0fc:	59 60 00 24 	sw (r11+36),r0                                 <== NOT EXECUTED
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
 800e100:	58 82 00 00 	sw (r4+0),r2                                   <== NOT EXECUTED
      _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;        
 800e104:	34 02 00 03 	mvi r2,3                                       <== NOT EXECUTED
 800e108:	58 62 00 00 	sw (r3+0),r2                                   <== NOT EXECUTED
    }                                                                 
    _ISR_Enable( level );                                             
 800e10c:	d0 01 00 00 	wcsr IE,r1                                     <== NOT EXECUTED
    return;                                                           
 800e110:	e3 ff ff d8 	bi 800e070 <_Event_Surrender+0xc0>             <== NOT EXECUTED
                                                                      

0800e114 <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) {
 800e114:	37 9c ff f8 	addi sp,sp,-8                                  
 800e118:	5b 9d 00 04 	sw (sp+4),ra                                   
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
  ISR_Level          level;                                           
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 800e11c:	37 82 00 08 	addi r2,sp,8                                   
 800e120:	fb ff e2 0d 	calli 8006954 <_Thread_Get>                    
  switch ( location ) {                                               
 800e124:	2b 82 00 08 	lw r2,(sp+8)                                   
 800e128:	44 40 00 04 	be r2,r0,800e138 <_Event_Timeout+0x24>         <== ALWAYS TAKEN
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
}                                                                     
 800e12c:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 800e130:	37 9c 00 08 	addi sp,sp,8                                   <== NOT EXECUTED
 800e134:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
       *                                                              
       *  If it is not satisfied, then it is "nothing happened" and   
       *  this is the "timeout" transition.  After a request is satisfied,
       *  a timeout is not allowed to occur.                          
       */                                                             
      _ISR_Disable( level );                                          
 800e138:	90 00 18 00 	rcsr r3,IE                                     
 800e13c:	34 02 ff fe 	mvi r2,-2                                      
 800e140:	a0 62 10 00 	and r2,r3,r2                                   
 800e144:	d0 02 00 00 	wcsr IE,r2                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
 800e148:	78 02 08 01 	mvhi r2,0x801                                  
 800e14c:	38 42 ad fc 	ori r2,r2,0xadfc                               
            return;                                                   
          }                                                           
        #endif                                                        
                                                                      
        the_thread->Wait.count = 0;                                   
        if ( _Thread_Is_executing( the_thread ) ) {                   
 800e150:	28 42 00 0c 	lw r2,(r2+12)                                  
            _ISR_Enable( level );                                     
            return;                                                   
          }                                                           
        #endif                                                        
                                                                      
        the_thread->Wait.count = 0;                                   
 800e154:	58 20 00 24 	sw (r1+36),r0                                  
        if ( _Thread_Is_executing( the_thread ) ) {                   
 800e158:	44 22 00 10 	be r1,r2,800e198 <_Event_Timeout+0x84>         <== NEVER TAKEN
          if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
            _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;    
        }                                                             
                                                                      
        the_thread->Wait.return_code = RTEMS_TIMEOUT;                 
 800e15c:	34 02 00 06 	mvi r2,6                                       
 800e160:	58 22 00 34 	sw (r1+52),r2                                  
      _ISR_Enable( level );                                           
 800e164:	d0 03 00 00 	wcsr IE,r3                                     
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
 800e168:	78 03 08 01 	mvhi r3,0x801                                  
 800e16c:	38 63 89 64 	ori r3,r3,0x8964                               
 800e170:	28 62 00 00 	lw r2,(r3+0)                                   
 800e174:	f8 00 04 ed 	calli 800f528 <_Thread_Clear_state>            
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
 800e178:	78 01 08 01 	mvhi r1,0x801                                  
 800e17c:	38 21 a9 24 	ori r1,r1,0xa924                               
 800e180:	28 22 00 00 	lw r2,(r1+0)                                   
 800e184:	34 42 ff ff 	addi r2,r2,-1                                  
 800e188:	58 22 00 00 	sw (r1+0),r2                                   
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
}                                                                     
 800e18c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800e190:	37 9c 00 08 	addi sp,sp,8                                   
 800e194:	c3 a0 00 00 	ret                                            
          }                                                           
        #endif                                                        
                                                                      
        the_thread->Wait.count = 0;                                   
        if ( _Thread_Is_executing( the_thread ) ) {                   
          if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
 800e198:	78 02 08 01 	mvhi r2,0x801                                  <== NOT EXECUTED
 800e19c:	38 42 b2 c8 	ori r2,r2,0xb2c8                               <== NOT EXECUTED
 800e1a0:	28 45 00 00 	lw r5,(r2+0)                                   <== NOT EXECUTED
 800e1a4:	34 04 00 01 	mvi r4,1                                       <== NOT EXECUTED
 800e1a8:	5c a4 ff ed 	bne r5,r4,800e15c <_Event_Timeout+0x48>        <== NOT EXECUTED
            _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;    
 800e1ac:	34 04 00 02 	mvi r4,2                                       <== NOT EXECUTED
 800e1b0:	58 44 00 00 	sw (r2+0),r4                                   <== NOT EXECUTED
 800e1b4:	e3 ff ff ea 	bi 800e15c <_Event_Timeout+0x48>               <== NOT EXECUTED
                                                                      

08009f94 <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) {
 8009f94:	37 9c ff bc 	addi sp,sp,-68                                 
 8009f98:	5b 8b 00 44 	sw (sp+68),r11                                 
 8009f9c:	5b 8c 00 40 	sw (sp+64),r12                                 
 8009fa0:	5b 8d 00 3c 	sw (sp+60),r13                                 
 8009fa4:	5b 8e 00 38 	sw (sp+56),r14                                 
 8009fa8:	5b 8f 00 34 	sw (sp+52),r15                                 
 8009fac:	5b 90 00 30 	sw (sp+48),r16                                 
 8009fb0:	5b 91 00 2c 	sw (sp+44),r17                                 
 8009fb4:	5b 92 00 28 	sw (sp+40),r18                                 
 8009fb8:	5b 93 00 24 	sw (sp+36),r19                                 
 8009fbc:	5b 94 00 20 	sw (sp+32),r20                                 
 8009fc0:	5b 95 00 1c 	sw (sp+28),r21                                 
 8009fc4:	5b 96 00 18 	sw (sp+24),r22                                 
 8009fc8:	5b 97 00 14 	sw (sp+20),r23                                 
 8009fcc:	5b 98 00 10 	sw (sp+16),r24                                 
 8009fd0:	5b 99 00 0c 	sw (sp+12),r25                                 
 8009fd4:	5b 9b 00 08 	sw (sp+8),fp                                   
 8009fd8:	5b 9d 00 04 	sw (sp+4),ra                                   
  Heap_Statistics *const stats = &heap->stats;                        
  Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );    
  Heap_Block *block = _Heap_Free_list_first( heap );                  
  uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE
 8009fdc:	34 54 00 04 	addi r20,r2,4                                  
  Heap_Control *heap,                                                 
  uintptr_t alloc_size,                                               
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
 8009fe0:	b8 20 78 00 	mv r15,r1                                      
  if ( stats->max_search < search_count ) {                           
    stats->max_search = search_count;                                 
  }                                                                   
                                                                      
  return (void *) alloc_begin;                                        
}                                                                     
 8009fe4:	28 2c 00 08 	lw r12,(r1+8)                                  
  Heap_Statistics *const stats = &heap->stats;                        
  Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );    
  Heap_Block *block = _Heap_Free_list_first( heap );                  
  uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE
    - HEAP_BLOCK_SIZE_OFFSET;                                         
  uintptr_t const page_size = heap->page_size;                        
 8009fe8:	28 37 00 10 	lw r23,(r1+16)                                 
  Heap_Control *heap,                                                 
  uintptr_t alloc_size,                                               
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
 8009fec:	b8 40 70 00 	mv r14,r2                                      
 8009ff0:	b8 60 80 00 	mv r16,r3                                      
 8009ff4:	b8 80 90 00 	mv r18,r4                                      
  uintptr_t alloc_begin = 0;                                          
  uint32_t search_count = 0;                                          
                                                                      
  if ( block_size_floor < alloc_size ) {                              
    /* Integer overflow occured */                                    
    return NULL;                                                      
 8009ff8:	34 01 00 00 	mvi r1,0                                       
    - HEAP_BLOCK_SIZE_OFFSET;                                         
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t alloc_begin = 0;                                          
  uint32_t search_count = 0;                                          
                                                                      
  if ( block_size_floor < alloc_size ) {                              
 8009ffc:	54 54 00 57 	bgu r2,r20,800a158 <_Heap_Allocate_aligned_with_boundary+0x1c4>
    /* Integer overflow occured */                                    
    return NULL;                                                      
  }                                                                   
                                                                      
  if ( boundary != 0 ) {                                              
 800a000:	5c 80 00 69 	bne r4,r0,800a1a4 <_Heap_Allocate_aligned_with_boundary+0x210>
    if ( alignment == 0 ) {                                           
      alignment = page_size;                                          
    }                                                                 
  }                                                                   
                                                                      
  while ( block != free_list_tail ) {                                 
 800a004:	34 01 00 00 	mvi r1,0                                       
 800a008:	45 ec 00 54 	be r15,r12,800a158 <_Heap_Allocate_aligned_with_boundary+0x1c4>
                                                                      
  uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
  uintptr_t const alloc_begin_ceiling = block_end - min_block_size    
    + HEAP_BLOCK_HEADER_SIZE + page_size - 1;                         
                                                                      
  uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET;           
 800a00c:	34 18 00 04 	mvi r24,4                                      
    if ( alignment == 0 ) {                                           
      alignment = page_size;                                          
    }                                                                 
  }                                                                   
                                                                      
  while ( block != free_list_tail ) {                                 
 800a010:	34 11 00 00 	mvi r17,0                                      
    - 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;                
 800a014:	34 1b ff fe 	mvi fp,-2                                      
  uintptr_t const block_begin = (uintptr_t) block;                    
  uintptr_t const block_size = _Heap_Block_size( block );             
  uintptr_t const block_end = block_begin + block_size;               
                                                                      
  uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
  uintptr_t const alloc_begin_ceiling = block_end - min_block_size    
 800a018:	36 f9 00 07 	addi r25,r23,7                                 
    + HEAP_BLOCK_HEADER_SIZE + page_size - 1;                         
                                                                      
  uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET;           
 800a01c:	cb 0e c0 00 	sub r24,r24,r14                                
    /*                                                                
     * The HEAP_PREV_BLOCK_USED flag is always set in the block size_and_flag
     * field.  Thus the value is about one unit larger than the real block
     * size.  The greater than operator takes this into account.      
     */                                                               
    if ( block->size_and_flag > block_size_floor ) {                  
 800a020:	29 81 00 04 	lw r1,(r12+4)                                  
                                                                      
  while ( block != free_list_tail ) {                                 
    _HAssert( _Heap_Is_prev_used( block ) );                          
                                                                      
    /* Statistics */                                                  
    ++search_count;                                                   
 800a024:	36 31 00 01 	addi r17,r17,1                                 
    /*                                                                
     * The HEAP_PREV_BLOCK_USED flag is always set in the block size_and_flag
     * field.  Thus the value is about one unit larger than the real block
     * size.  The greater than operator takes this into account.      
     */                                                               
    if ( block->size_and_flag > block_size_floor ) {                  
 800a028:	52 81 00 3c 	bgeu r20,r1,800a118 <_Heap_Allocate_aligned_with_boundary+0x184>
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(             
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;                  
 800a02c:	35 8b 00 08 	addi r11,r12,8                                 
      if ( alignment == 0 ) {                                         
 800a030:	46 00 00 39 	be r16,r0,800a114 <_Heap_Allocate_aligned_with_boundary+0x180>
    - 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;                
 800a034:	a0 3b 68 00 	and r13,r1,fp                                  
  if ( stats->max_search < search_count ) {                           
    stats->max_search = search_count;                                 
  }                                                                   
                                                                      
  return (void *) alloc_begin;                                        
}                                                                     
 800a038:	29 f5 00 14 	lw r21,(r15+20)                                
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const min_block_size = heap->min_block_size;              
                                                                      
  uintptr_t const block_begin = (uintptr_t) block;                    
  uintptr_t const block_size = _Heap_Block_size( block );             
  uintptr_t const block_end = block_begin + block_size;               
 800a03c:	b5 8d 68 00 	add r13,r12,r13                                
  uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
  uintptr_t const alloc_begin_ceiling = block_end - min_block_size    
    + HEAP_BLOCK_HEADER_SIZE + page_size - 1;                         
                                                                      
  uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET;           
  uintptr_t alloc_begin = alloc_end - alloc_size;                     
 800a040:	b7 0d 58 00 	add r11,r24,r13                                
  uintptr_t const block_size = _Heap_Block_size( block );             
  uintptr_t const block_end = block_begin + block_size;               
                                                                      
  uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
  uintptr_t const alloc_begin_ceiling = block_end - min_block_size    
    + HEAP_BLOCK_HEADER_SIZE + page_size - 1;                         
 800a044:	cb 35 18 00 	sub r3,r25,r21                                 
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 800a048:	b9 60 08 00 	mv r1,r11                                      
 800a04c:	ba 00 10 00 	mv r2,r16                                      
  uintptr_t const block_begin = (uintptr_t) block;                    
  uintptr_t const block_size = _Heap_Block_size( block );             
  uintptr_t const block_end = block_begin + block_size;               
                                                                      
  uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
  uintptr_t const alloc_begin_ceiling = block_end - min_block_size    
 800a050:	b4 6d 68 00 	add r13,r3,r13                                 
 800a054:	f8 00 20 be 	calli 801234c <__umodsi3>                      
 800a058:	c9 61 58 00 	sub r11,r11,r1                                 
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(             
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;                  
 800a05c:	35 96 00 08 	addi r22,r12,8                                 
  uintptr_t alloc_begin = alloc_end - alloc_size;                     
                                                                      
  alloc_begin = _Heap_Align_down( alloc_begin, alignment );           
                                                                      
  /* Ensure that the we have a valid new block at the end */          
  if ( alloc_begin > alloc_begin_ceiling ) {                          
 800a060:	51 ab 00 05 	bgeu r13,r11,800a074 <_Heap_Allocate_aligned_with_boundary+0xe0>
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 800a064:	b9 a0 08 00 	mv r1,r13                                      
 800a068:	ba 00 10 00 	mv r2,r16                                      
 800a06c:	f8 00 20 b8 	calli 801234c <__umodsi3>                      
 800a070:	c9 a1 58 00 	sub r11,r13,r1                                 
  }                                                                   
                                                                      
  alloc_end = alloc_begin + alloc_size;                               
                                                                      
  /* Ensure boundary constaint */                                     
  if ( boundary != 0 ) {                                              
 800a074:	46 40 00 1c 	be r18,r0,800a0e4 <_Heap_Allocate_aligned_with_boundary+0x150>
  /* Ensure that the we have a valid new block at the end */          
  if ( alloc_begin > alloc_begin_ceiling ) {                          
    alloc_begin = _Heap_Align_down( alloc_begin_ceiling, alignment ); 
  }                                                                   
                                                                      
  alloc_end = alloc_begin + alloc_size;                               
 800a078:	b5 6e 68 00 	add r13,r11,r14                                
 800a07c:	b9 a0 08 00 	mv r1,r13                                      
 800a080:	ba 40 10 00 	mv r2,r18                                      
 800a084:	f8 00 20 b2 	calli 801234c <__umodsi3>                      
 800a088:	c9 a1 28 00 	sub r5,r13,r1                                  
  /* Ensure boundary constaint */                                     
  if ( boundary != 0 ) {                                              
    uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;  
    uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
                                                                      
    while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
 800a08c:	f4 ab 08 00 	cmpgu r1,r5,r11                                
 800a090:	f5 a5 68 00 	cmpgu r13,r13,r5                               
 800a094:	a0 2d 68 00 	and r13,r1,r13                                 
 800a098:	45 a0 00 13 	be r13,r0,800a0e4 <_Heap_Allocate_aligned_with_boundary+0x150>
                                                                      
  alloc_end = alloc_begin + alloc_size;                               
                                                                      
  /* Ensure boundary constaint */                                     
  if ( boundary != 0 ) {                                              
    uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;  
 800a09c:	b6 ce 98 00 	add r19,r22,r14                                
    uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
                                                                      
    while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
      if ( boundary_line < boundary_floor ) {                         
 800a0a0:	56 65 00 1e 	bgu r19,r5,800a118 <_Heap_Allocate_aligned_with_boundary+0x184>
 800a0a4:	e0 00 00 02 	bi 800a0ac <_Heap_Allocate_aligned_with_boundary+0x118>
 800a0a8:	56 65 00 1c 	bgu r19,r5,800a118 <_Heap_Allocate_aligned_with_boundary+0x184><== NEVER TAKEN
        return 0;                                                     
      }                                                               
      alloc_begin = boundary_line - alloc_size;                       
 800a0ac:	c8 ae 58 00 	sub r11,r5,r14                                 
 800a0b0:	ba 00 10 00 	mv r2,r16                                      
 800a0b4:	b9 60 08 00 	mv r1,r11                                      
 800a0b8:	f8 00 20 a5 	calli 801234c <__umodsi3>                      
 800a0bc:	c9 61 58 00 	sub r11,r11,r1                                 
      alloc_begin = _Heap_Align_down( alloc_begin, alignment );       
      alloc_end = alloc_begin + alloc_size;                           
 800a0c0:	b5 6e 68 00 	add r13,r11,r14                                
 800a0c4:	b9 a0 08 00 	mv r1,r13                                      
 800a0c8:	ba 40 10 00 	mv r2,r18                                      
 800a0cc:	f8 00 20 a0 	calli 801234c <__umodsi3>                      
 800a0d0:	c9 a1 28 00 	sub r5,r13,r1                                  
  /* Ensure boundary constaint */                                     
  if ( boundary != 0 ) {                                              
    uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;  
    uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
                                                                      
    while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
 800a0d4:	f5 a5 68 00 	cmpgu r13,r13,r5                               
 800a0d8:	f4 ab 08 00 	cmpgu r1,r5,r11                                
 800a0dc:	a1 a1 68 00 	and r13,r13,r1                                 
 800a0e0:	5d a0 ff f2 	bne r13,r0,800a0a8 <_Heap_Allocate_aligned_with_boundary+0x114>
      boundary_line = _Heap_Align_down( alloc_end, boundary );        
    }                                                                 
  }                                                                   
                                                                      
  /* Ensure that the we have a valid new block at the beginning */    
  if ( alloc_begin >= alloc_begin_floor ) {                           
 800a0e4:	56 cb 00 0d 	bgu r22,r11,800a118 <_Heap_Allocate_aligned_with_boundary+0x184>
 800a0e8:	34 01 ff f8 	mvi r1,-8                                      
 800a0ec:	c8 2c 68 00 	sub r13,r1,r12                                 
 800a0f0:	ba e0 10 00 	mv r2,r23                                      
 800a0f4:	b9 60 08 00 	mv r1,r11                                      
 800a0f8:	f8 00 20 95 	calli 801234c <__umodsi3>                      
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
 800a0fc:	b5 ab 68 00 	add r13,r13,r11                                
    uintptr_t const alloc_block_begin =                               
      (uintptr_t) _Heap_Block_of_alloc_area( alloc_begin, page_size );
    uintptr_t const free_size = alloc_block_begin - block_begin;      
 800a100:	c9 a1 08 00 	sub r1,r13,r1                                  
                                                                      
    if ( free_size >= min_block_size || free_size == 0 ) {            
 800a104:	64 22 00 00 	cmpei r2,r1,0                                  
 800a108:	f0 35 a8 00 	cmpgeu r21,r1,r21                              
 800a10c:	b8 55 08 00 	or r1,r2,r21                                   
 800a110:	44 20 00 02 	be r1,r0,800a118 <_Heap_Allocate_aligned_with_boundary+0x184>
          boundary                                                    
        );                                                            
      }                                                               
    }                                                                 
                                                                      
    if ( alloc_begin != 0 ) {                                         
 800a114:	5d 60 00 05 	bne r11,r0,800a128 <_Heap_Allocate_aligned_with_boundary+0x194><== ALWAYS TAKEN
      break;                                                          
    }                                                                 
                                                                      
    block = block->next;                                              
 800a118:	29 8c 00 08 	lw r12,(r12+8)                                 
    if ( alignment == 0 ) {                                           
      alignment = page_size;                                          
    }                                                                 
  }                                                                   
                                                                      
  while ( block != free_list_tail ) {                                 
 800a11c:	5d ec ff c1 	bne r15,r12,800a020 <_Heap_Allocate_aligned_with_boundary+0x8c>
 800a120:	34 01 00 00 	mvi r1,0                                       
 800a124:	e0 00 00 0a 	bi 800a14c <_Heap_Allocate_aligned_with_boundary+0x1b8>
    block = block->next;                                              
  }                                                                   
                                                                      
  if ( alloc_begin != 0 ) {                                           
    /* Statistics */                                                  
    stats->searches += search_count;                                  
 800a128:	29 e3 00 4c 	lw r3,(r15+76)                                 
                                                                      
    block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
 800a12c:	b9 e0 08 00 	mv r1,r15                                      
 800a130:	b9 80 10 00 	mv r2,r12                                      
    block = block->next;                                              
  }                                                                   
                                                                      
  if ( alloc_begin != 0 ) {                                           
    /* Statistics */                                                  
    stats->searches += search_count;                                  
 800a134:	b4 71 18 00 	add r3,r3,r17                                  
 800a138:	59 e3 00 4c 	sw (r15+76),r3                                 
                                                                      
    block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
 800a13c:	b9 c0 20 00 	mv r4,r14                                      
 800a140:	b9 60 18 00 	mv r3,r11                                      
 800a144:	fb ff e8 76 	calli 800431c <_Heap_Block_allocate>           
 800a148:	b9 60 08 00 	mv r1,r11                                      
      boundary                                                        
    );                                                                
  }                                                                   
                                                                      
  /* Statistics */                                                    
  if ( stats->max_search < search_count ) {                           
 800a14c:	29 e2 00 44 	lw r2,(r15+68)                                 
 800a150:	50 51 00 02 	bgeu r2,r17,800a158 <_Heap_Allocate_aligned_with_boundary+0x1c4>
    stats->max_search = search_count;                                 
 800a154:	59 f1 00 44 	sw (r15+68),r17                                
  }                                                                   
                                                                      
  return (void *) alloc_begin;                                        
}                                                                     
 800a158:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a15c:	2b 8b 00 44 	lw r11,(sp+68)                                 
 800a160:	2b 8c 00 40 	lw r12,(sp+64)                                 
 800a164:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 800a168:	2b 8e 00 38 	lw r14,(sp+56)                                 
 800a16c:	2b 8f 00 34 	lw r15,(sp+52)                                 
 800a170:	2b 90 00 30 	lw r16,(sp+48)                                 
 800a174:	2b 91 00 2c 	lw r17,(sp+44)                                 
 800a178:	2b 92 00 28 	lw r18,(sp+40)                                 
 800a17c:	2b 93 00 24 	lw r19,(sp+36)                                 
 800a180:	2b 94 00 20 	lw r20,(sp+32)                                 
 800a184:	2b 95 00 1c 	lw r21,(sp+28)                                 
 800a188:	2b 96 00 18 	lw r22,(sp+24)                                 
 800a18c:	2b 97 00 14 	lw r23,(sp+20)                                 
 800a190:	2b 98 00 10 	lw r24,(sp+16)                                 
 800a194:	2b 99 00 0c 	lw r25,(sp+12)                                 
 800a198:	2b 9b 00 08 	lw fp,(sp+8)                                   
 800a19c:	37 9c 00 44 	addi sp,sp,68                                  
 800a1a0:	c3 a0 00 00 	ret                                            
    /* Integer overflow occured */                                    
    return NULL;                                                      
  }                                                                   
                                                                      
  if ( boundary != 0 ) {                                              
    if ( boundary < alloc_size ) {                                    
 800a1a4:	54 44 ff ed 	bgu r2,r4,800a158 <_Heap_Allocate_aligned_with_boundary+0x1c4>
      return NULL;                                                    
    }                                                                 
                                                                      
    if ( alignment == 0 ) {                                           
 800a1a8:	5c 60 ff 97 	bne r3,r0,800a004 <_Heap_Allocate_aligned_with_boundary+0x70>
      alignment = page_size;                                          
 800a1ac:	ba e0 80 00 	mv r16,r23                                     
 800a1b0:	e3 ff ff 95 	bi 800a004 <_Heap_Allocate_aligned_with_boundary+0x70>
                                                                      

0800a4b8 <_Heap_Extend>: Heap_Control *heap, void *extend_area_begin_ptr, uintptr_t extend_area_size, uintptr_t *extended_size_ptr ) {
 800a4b8:	37 9c ff b8 	addi sp,sp,-72                                 
 800a4bc:	5b 8b 00 40 	sw (sp+64),r11                                 
 800a4c0:	5b 8c 00 3c 	sw (sp+60),r12                                 
 800a4c4:	5b 8d 00 38 	sw (sp+56),r13                                 
 800a4c8:	5b 8e 00 34 	sw (sp+52),r14                                 
 800a4cc:	5b 8f 00 30 	sw (sp+48),r15                                 
 800a4d0:	5b 90 00 2c 	sw (sp+44),r16                                 
 800a4d4:	5b 91 00 28 	sw (sp+40),r17                                 
 800a4d8:	5b 92 00 24 	sw (sp+36),r18                                 
 800a4dc:	5b 93 00 20 	sw (sp+32),r19                                 
 800a4e0:	5b 94 00 1c 	sw (sp+28),r20                                 
 800a4e4:	5b 95 00 18 	sw (sp+24),r21                                 
 800a4e8:	5b 96 00 14 	sw (sp+20),r22                                 
 800a4ec:	5b 97 00 10 	sw (sp+16),r23                                 
 800a4f0:	5b 98 00 0c 	sw (sp+12),r24                                 
 800a4f4:	5b 99 00 08 	sw (sp+8),r25                                  
 800a4f8:	5b 9d 00 04 	sw (sp+4),ra                                   
  Heap_Block *start_block = first_block;                              
  Heap_Block *merge_below_block = NULL;                               
  Heap_Block *merge_above_block = NULL;                               
  Heap_Block *link_below_block = NULL;                                
  Heap_Block *link_above_block = NULL;                                
  Heap_Block *extend_first_block = NULL;                              
 800a4fc:	5b 80 00 48 	sw (sp+72),r0                                  
  Heap_Block *extend_last_block = NULL;                               
 800a500:	5b 80 00 44 	sw (sp+68),r0                                  
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const min_block_size = heap->min_block_size;              
  uintptr_t const extend_area_begin = (uintptr_t) extend_area_begin_ptr;
  uintptr_t const extend_area_end = extend_area_begin + extend_area_size;
 800a504:	b4 43 70 00 	add r14,r2,r3                                  
  Heap_Control *heap,                                                 
  void *extend_area_begin_ptr,                                        
  uintptr_t extend_area_size,                                         
  uintptr_t *extended_size_ptr                                        
)                                                                     
{                                                                     
 800a508:	b8 40 68 00 	mv r13,r2                                      
 800a50c:	b8 20 58 00 	mv r11,r1                                      
 800a510:	b8 80 b8 00 	mv r23,r4                                      
  Heap_Statistics *const stats = &heap->stats;                        
  Heap_Block *const first_block = heap->first_block;                  
 800a514:	28 30 00 20 	lw r16,(r1+32)                                 
  Heap_Block *merge_above_block = NULL;                               
  Heap_Block *link_below_block = NULL;                                
  Heap_Block *link_above_block = NULL;                                
  Heap_Block *extend_first_block = NULL;                              
  Heap_Block *extend_last_block = NULL;                               
  uintptr_t const page_size = heap->page_size;                        
 800a518:	28 32 00 10 	lw r18,(r1+16)                                 
  uintptr_t const min_block_size = heap->min_block_size;              
 800a51c:	28 25 00 14 	lw r5,(r1+20)                                  
  uintptr_t const extend_area_begin = (uintptr_t) extend_area_begin_ptr;
  uintptr_t const extend_area_end = extend_area_begin + extend_area_size;
  uintptr_t const free_size = stats->free_size;                       
 800a520:	28 38 00 30 	lw r24,(r1+48)                                 
  uintptr_t extend_first_block_size = 0;                              
  uintptr_t extended_size = 0;                                        
  bool extend_area_ok = false;                                        
                                                                      
  if ( extend_area_end < extend_area_begin ) {                        
    return false;                                                     
 800a524:	34 0c 00 00 	mvi r12,0                                      
  uintptr_t const free_size = stats->free_size;                       
  uintptr_t extend_first_block_size = 0;                              
  uintptr_t extended_size = 0;                                        
  bool extend_area_ok = false;                                        
                                                                      
  if ( extend_area_end < extend_area_begin ) {                        
 800a528:	54 4e 00 76 	bgu r2,r14,800a700 <_Heap_Extend+0x248>        
    return false;                                                     
  }                                                                   
                                                                      
  extend_area_ok = _Heap_Get_first_and_last_block(                    
 800a52c:	b8 40 08 00 	mv r1,r2                                       
 800a530:	b8 a0 20 00 	mv r4,r5                                       
 800a534:	b8 60 10 00 	mv r2,r3                                       
 800a538:	37 85 00 48 	addi r5,sp,72                                  
 800a53c:	ba 40 18 00 	mv r3,r18                                      
 800a540:	37 86 00 44 	addi r6,sp,68                                  
 800a544:	fb ff e7 aa 	calli 80043ec <_Heap_Get_first_and_last_block> 
    page_size,                                                        
    min_block_size,                                                   
    &extend_first_block,                                              
    &extend_last_block                                                
  );                                                                  
  if (!extend_area_ok ) {                                             
 800a548:	44 20 00 6e 	be r1,r0,800a700 <_Heap_Extend+0x248>          
 800a54c:	ba 00 60 00 	mv r12,r16                                     
 800a550:	34 16 00 00 	mvi r22,0                                      
 800a554:	34 19 00 00 	mvi r25,0                                      
 800a558:	34 11 00 00 	mvi r17,0                                      
 800a55c:	34 14 00 00 	mvi r20,0                                      
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 800a560:	34 15 ff fe 	mvi r21,-2                                     
 800a564:	e0 00 00 0d 	bi 800a598 <_Heap_Extend+0xe0>                 
      return false;                                                   
    }                                                                 
                                                                      
    if ( extend_area_end == sub_area_begin ) {                        
      merge_below_block = start_block;                                
    } else if ( extend_area_end < sub_area_end ) {                    
 800a568:	55 ee 00 7b 	bgu r15,r14,800a754 <_Heap_Extend+0x29c>       
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 800a56c:	b9 e0 08 00 	mv r1,r15                                      
 800a570:	ba 40 10 00 	mv r2,r18                                      
 800a574:	35 f3 ff f8 	addi r19,r15,-8                                
 800a578:	f8 00 21 1e 	calli 80129f0 <__umodsi3>                      
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
 800a57c:	ca 61 08 00 	sub r1,r19,r1                                  
      link_below_block = start_block;                                 
    }                                                                 
                                                                      
    if ( sub_area_end == extend_area_begin ) {                        
 800a580:	45 af 00 15 	be r13,r15,800a5d4 <_Heap_Extend+0x11c>        
      start_block->prev_size = extend_area_end;                       
                                                                      
      merge_above_block = end_block;                                  
    } else if ( sub_area_end < extend_area_begin ) {                  
 800a584:	55 af 00 72 	bgu r13,r15,800a74c <_Heap_Extend+0x294>       
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 800a588:	28 2c 00 04 	lw r12,(r1+4)                                  
 800a58c:	a2 ac 60 00 	and r12,r21,r12                                
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 800a590:	b4 2c 60 00 	add r12,r1,r12                                 
      link_above_block = end_block;                                   
    }                                                                 
                                                                      
    start_block = _Heap_Block_at( end_block, _Heap_Block_size( end_block ) );
  } while ( start_block != first_block );                             
 800a594:	46 0c 00 16 	be r16,r12,800a5ec <_Heap_Extend+0x134>        
    return false;                                                     
  }                                                                   
                                                                      
  do {                                                                
    uintptr_t const sub_area_begin = (start_block != first_block) ?   
      (uintptr_t) start_block : heap->area_begin;                     
 800a598:	b9 80 08 00 	mv r1,r12                                      
 800a59c:	45 90 00 70 	be r12,r16,800a75c <_Heap_Extend+0x2a4>        
    uintptr_t const sub_area_end = start_block->prev_size;            
 800a5a0:	29 8f 00 00 	lw r15,(r12+0)                                 
    Heap_Block *const end_block =                                     
      _Heap_Block_of_alloc_area( sub_area_end, page_size );           
                                                                      
    if (                                                              
      sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
 800a5a4:	f5 c1 30 00 	cmpgu r6,r14,r1                                
 800a5a8:	f5 ed 28 00 	cmpgu r5,r15,r13                               
      (uintptr_t) start_block : heap->area_begin;                     
    uintptr_t const sub_area_end = start_block->prev_size;            
    Heap_Block *const end_block =                                     
      _Heap_Block_of_alloc_area( sub_area_end, page_size );           
                                                                      
    if (                                                              
 800a5ac:	a0 c5 28 00 	and r5,r6,r5                                   
 800a5b0:	5c a0 00 75 	bne r5,r0,800a784 <_Heap_Extend+0x2cc>         
      sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
    ) {                                                               
      return false;                                                   
    }                                                                 
                                                                      
    if ( extend_area_end == sub_area_begin ) {                        
 800a5b4:	5c 2e ff ed 	bne r1,r14,800a568 <_Heap_Extend+0xb0>         
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 800a5b8:	b9 e0 08 00 	mv r1,r15                                      
 800a5bc:	ba 40 10 00 	mv r2,r18                                      
 800a5c0:	35 f3 ff f8 	addi r19,r15,-8                                
 800a5c4:	f8 00 21 0b 	calli 80129f0 <__umodsi3>                      
 800a5c8:	b9 80 a0 00 	mv r20,r12                                     
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
 800a5cc:	ca 61 08 00 	sub r1,r19,r1                                  
      merge_below_block = start_block;                                
    } else if ( extend_area_end < sub_area_end ) {                    
      link_below_block = start_block;                                 
    }                                                                 
                                                                      
    if ( sub_area_end == extend_area_begin ) {                        
 800a5d0:	5d af ff ed 	bne r13,r15,800a584 <_Heap_Extend+0xcc>        <== ALWAYS TAKEN
      start_block->prev_size = extend_area_end;                       
 800a5d4:	59 8e 00 00 	sw (r12+0),r14                                 
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 800a5d8:	28 2c 00 04 	lw r12,(r1+4)                                  
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area(           
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
 800a5dc:	b8 20 88 00 	mv r17,r1                                      
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 800a5e0:	a2 ac 60 00 	and r12,r21,r12                                
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 800a5e4:	b4 2c 60 00 	add r12,r1,r12                                 
    } else if ( sub_area_end < extend_area_begin ) {                  
      link_above_block = end_block;                                   
    }                                                                 
                                                                      
    start_block = _Heap_Block_at( end_block, _Heap_Block_size( end_block ) );
  } while ( start_block != first_block );                             
 800a5e8:	5e 0c ff ec 	bne r16,r12,800a598 <_Heap_Extend+0xe0>        <== NEVER TAKEN
                                                                      
  if ( extend_area_begin < heap->area_begin ) {                       
 800a5ec:	29 61 00 18 	lw r1,(r11+24)                                 
 800a5f0:	51 a1 00 61 	bgeu r13,r1,800a774 <_Heap_Extend+0x2bc>       
    heap->area_begin = extend_area_begin;                             
 800a5f4:	59 6d 00 18 	sw (r11+24),r13                                
  } else if ( heap->area_end < extend_area_end ) {                    
    heap->area_end = extend_area_end;                                 
  }                                                                   
                                                                      
  extend_first_block_size =                                           
    (uintptr_t) extend_last_block - (uintptr_t) extend_first_block;   
 800a5f8:	2b 81 00 44 	lw r1,(sp+68)                                  
 800a5fc:	2b 82 00 48 	lw r2,(sp+72)                                  
    extend_first_block_size | HEAP_PREV_BLOCK_USED;                   
                                                                      
  extend_last_block->prev_size = extend_first_block_size;             
  extend_last_block->size_and_flag = 0;                               
                                                                      
  if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) {
 800a600:	29 65 00 20 	lw r5,(r11+32)                                 
    heap->area_begin = extend_area_begin;                             
  } else if ( heap->area_end < extend_area_end ) {                    
    heap->area_end = extend_area_end;                                 
  }                                                                   
                                                                      
  extend_first_block_size =                                           
 800a604:	c8 22 18 00 	sub r3,r1,r2                                   
    (uintptr_t) extend_last_block - (uintptr_t) extend_first_block;   
                                                                      
  extend_first_block->prev_size = extend_area_end;                    
  extend_first_block->size_and_flag =                                 
    extend_first_block_size | HEAP_PREV_BLOCK_USED;                   
 800a608:	38 64 00 01 	ori r4,r3,0x1                                  
  }                                                                   
                                                                      
  extend_first_block_size =                                           
    (uintptr_t) extend_last_block - (uintptr_t) extend_first_block;   
                                                                      
  extend_first_block->prev_size = extend_area_end;                    
 800a60c:	58 4e 00 00 	sw (r2+0),r14                                  
  extend_first_block->size_and_flag =                                 
 800a610:	58 44 00 04 	sw (r2+4),r4                                   
    extend_first_block_size | HEAP_PREV_BLOCK_USED;                   
                                                                      
  extend_last_block->prev_size = extend_first_block_size;             
 800a614:	58 23 00 00 	sw (r1+0),r3                                   
  extend_last_block->size_and_flag = 0;                               
 800a618:	58 20 00 04 	sw (r1+4),r0                                   
                                                                      
  if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) {
 800a61c:	50 45 00 52 	bgeu r2,r5,800a764 <_Heap_Extend+0x2ac>        
    heap->first_block = extend_first_block;                           
 800a620:	59 62 00 20 	sw (r11+32),r2                                 
  } else if ( (uintptr_t) extend_last_block > (uintptr_t) heap->last_block ) {
    heap->last_block = extend_last_block;                             
  }                                                                   
                                                                      
  if ( merge_below_block != NULL ) {                                  
 800a624:	46 80 00 6a 	be r20,r0,800a7cc <_Heap_Extend+0x314>         
  Heap_Control *heap,                                                 
  uintptr_t extend_area_begin,                                        
  Heap_Block *first_block                                             
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
 800a628:	29 6c 00 10 	lw r12,(r11+16)                                
  uintptr_t const new_first_block_alloc_begin =                       
    _Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size );
 800a62c:	35 ad 00 08 	addi r13,r13,8                                 
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up(                        
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  uintptr_t remainder = value % alignment;                            
 800a630:	b9 a0 08 00 	mv r1,r13                                      
 800a634:	b9 80 10 00 	mv r2,r12                                      
 800a638:	f8 00 20 ee 	calli 80129f0 <__umodsi3>                      
                                                                      
  if ( remainder != 0 ) {                                             
 800a63c:	44 20 00 03 	be r1,r0,800a648 <_Heap_Extend+0x190>          <== ALWAYS TAKEN
    return value - remainder + alignment;                             
 800a640:	b5 ac 68 00 	add r13,r13,r12                                <== NOT EXECUTED
 800a644:	c9 a1 68 00 	sub r13,r13,r1                                 <== NOT EXECUTED
  uintptr_t const new_first_block_begin =                             
 800a648:	35 a2 ff f8 	addi r2,r13,-8                                 
  uintptr_t const first_block_begin = (uintptr_t) first_block;        
  uintptr_t const new_first_block_size =                              
    first_block_begin - new_first_block_begin;                        
  Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin;
                                                                      
  new_first_block->prev_size = first_block->prev_size;                
 800a64c:	2a 83 00 00 	lw r3,(r20+0)                                  
  uintptr_t const new_first_block_alloc_begin =                       
    _Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size );
  uintptr_t const new_first_block_begin =                             
    new_first_block_alloc_begin - HEAP_BLOCK_HEADER_SIZE;             
  uintptr_t const first_block_begin = (uintptr_t) first_block;        
  uintptr_t const new_first_block_size =                              
 800a650:	ca 82 08 00 	sub r1,r20,r2                                  
    first_block_begin - new_first_block_begin;                        
  Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin;
                                                                      
  new_first_block->prev_size = first_block->prev_size;                
  new_first_block->size_and_flag = new_first_block_size | HEAP_PREV_BLOCK_USED;
 800a654:	38 21 00 01 	ori r1,r1,0x1                                  
 800a658:	58 41 00 04 	sw (r2+4),r1                                   
  uintptr_t const first_block_begin = (uintptr_t) first_block;        
  uintptr_t const new_first_block_size =                              
    first_block_begin - new_first_block_begin;                        
  Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin;
                                                                      
  new_first_block->prev_size = first_block->prev_size;                
 800a65c:	59 a3 ff f8 	sw (r13+-8),r3                                 
  new_first_block->size_and_flag = new_first_block_size | HEAP_PREV_BLOCK_USED;
                                                                      
  _Heap_Free_block( heap, new_first_block );                          
 800a660:	b9 60 08 00 	mv r1,r11                                      
 800a664:	fb ff ff 88 	calli 800a484 <_Heap_Free_block>               
      link_below_block,                                               
      extend_last_block                                               
    );                                                                
  }                                                                   
                                                                      
  if ( merge_above_block != NULL ) {                                  
 800a668:	46 20 00 49 	be r17,r0,800a78c <_Heap_Extend+0x2d4>         
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 800a66c:	29 62 00 10 	lw r2,(r11+16)                                 
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const last_block_begin = (uintptr_t) last_block;          
  uintptr_t const last_block_new_size = _Heap_Align_down(             
    extend_area_end - last_block_begin - HEAP_BLOCK_HEADER_SIZE,      
 800a670:	35 ce ff f8 	addi r14,r14,-8                                
  uintptr_t extend_area_end                                           
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const last_block_begin = (uintptr_t) last_block;          
  uintptr_t const last_block_new_size = _Heap_Align_down(             
 800a674:	c9 d1 70 00 	sub r14,r14,r17                                
 800a678:	b9 c0 08 00 	mv r1,r14                                      
 800a67c:	f8 00 20 dd 	calli 80129f0 <__umodsi3>                      
  );                                                                  
  Heap_Block *const new_last_block =                                  
    _Heap_Block_at( last_block, last_block_new_size );                
                                                                      
  new_last_block->size_and_flag =                                     
    (last_block->size_and_flag - last_block_new_size)                 
 800a680:	2a 22 00 04 	lw r2,(r17+4)                                  
 800a684:	c9 c1 70 00 	sub r14,r14,r1                                 
    page_size                                                         
  );                                                                  
  Heap_Block *const new_last_block =                                  
    _Heap_Block_at( last_block, last_block_new_size );                
                                                                      
  new_last_block->size_and_flag =                                     
 800a688:	b5 d1 08 00 	add r1,r14,r17                                 
    (last_block->size_and_flag - last_block_new_size)                 
 800a68c:	c8 4e 10 00 	sub r2,r2,r14                                  
      | HEAP_PREV_BLOCK_USED;                                         
 800a690:	38 42 00 01 	ori r2,r2,0x1                                  
    page_size                                                         
  );                                                                  
  Heap_Block *const new_last_block =                                  
    _Heap_Block_at( last_block, last_block_new_size );                
                                                                      
  new_last_block->size_and_flag =                                     
 800a694:	58 22 00 04 	sw (r1+4),r2                                   
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(                       
  Heap_Block *block,                                                  
  uintptr_t size                                                      
)                                                                     
{                                                                     
  uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;       
 800a698:	2a 23 00 04 	lw r3,(r17+4)                                  
    (last_block->size_and_flag - last_block_new_size)                 
      | HEAP_PREV_BLOCK_USED;                                         
                                                                      
  _Heap_Block_set_size( last_block, last_block_new_size );            
                                                                      
  _Heap_Free_block( heap, last_block );                               
 800a69c:	b9 60 08 00 	mv r1,r11                                      
 800a6a0:	ba 20 10 00 	mv r2,r17                                      
 800a6a4:	20 63 00 01 	andi r3,r3,0x1                                 
                                                                      
  block->size_and_flag = size | flag;                                 
 800a6a8:	b9 c3 70 00 	or r14,r14,r3                                  
 800a6ac:	5a 2e 00 04 	sw (r17+4),r14                                 
 800a6b0:	fb ff ff 75 	calli 800a484 <_Heap_Free_block>               
      extend_first_block,                                             
      extend_last_block                                               
    );                                                                
  }                                                                   
                                                                      
  if ( merge_below_block == NULL && merge_above_block == NULL ) {     
 800a6b4:	66 31 00 00 	cmpei r17,r17,0                                
 800a6b8:	66 94 00 00 	cmpei r20,r20,0                                
 800a6bc:	a2 34 88 00 	and r17,r17,r20                                
 800a6c0:	5e 20 00 3f 	bne r17,r0,800a7bc <_Heap_Extend+0x304>        
                                                                      
  if ( extended_size_ptr != NULL )                                    
    *extended_size_ptr = extended_size;                               
                                                                      
  return true;                                                        
}                                                                     
 800a6c4:	29 61 00 24 	lw r1,(r11+36)                                 
 * This feature will be used to terminate the scattered heap area list.  See
 * also _Heap_Extend().                                               
 */                                                                   
RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap )
{                                                                     
  _Heap_Block_set_size(                                               
 800a6c8:	29 63 00 20 	lw r3,(r11+32)                                 
    _Heap_Free_block( heap, extend_first_block );                     
  }                                                                   
                                                                      
  _Heap_Set_last_block_size( heap );                                  
                                                                      
  extended_size = stats->free_size - free_size;                       
 800a6cc:	29 65 00 30 	lw r5,(r11+48)                                 
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(                       
  Heap_Block *block,                                                  
  uintptr_t size                                                      
)                                                                     
{                                                                     
  uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;       
 800a6d0:	28 22 00 04 	lw r2,(r1+4)                                   
                                                                      
  /* Statistics */                                                    
  stats->size += extended_size;                                       
 800a6d4:	29 64 00 2c 	lw r4,(r11+44)                                 
 * This feature will be used to terminate the scattered heap area list.  See
 * also _Heap_Extend().                                               
 */                                                                   
RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap )
{                                                                     
  _Heap_Block_set_size(                                               
 800a6d8:	c8 61 18 00 	sub r3,r3,r1                                   
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(                       
  Heap_Block *block,                                                  
  uintptr_t size                                                      
)                                                                     
{                                                                     
  uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;       
 800a6dc:	20 42 00 01 	andi r2,r2,0x1                                 
                                                                      
  block->size_and_flag = size | flag;                                 
 800a6e0:	b8 62 10 00 	or r2,r3,r2                                    
    _Heap_Free_block( heap, extend_first_block );                     
  }                                                                   
                                                                      
  _Heap_Set_last_block_size( heap );                                  
                                                                      
  extended_size = stats->free_size - free_size;                       
 800a6e4:	c8 b8 c0 00 	sub r24,r5,r24                                 
 800a6e8:	58 22 00 04 	sw (r1+4),r2                                   
                                                                      
  /* Statistics */                                                    
  stats->size += extended_size;                                       
 800a6ec:	b4 98 08 00 	add r1,r4,r24                                  
 800a6f0:	59 61 00 2c 	sw (r11+44),r1                                 
                                                                      
  if ( extended_size_ptr != NULL )                                    
    *extended_size_ptr = extended_size;                               
                                                                      
  return true;                                                        
 800a6f4:	34 0c 00 01 	mvi r12,1                                      
  extended_size = stats->free_size - free_size;                       
                                                                      
  /* Statistics */                                                    
  stats->size += extended_size;                                       
                                                                      
  if ( extended_size_ptr != NULL )                                    
 800a6f8:	46 e0 00 02 	be r23,r0,800a700 <_Heap_Extend+0x248>         <== NEVER TAKEN
    *extended_size_ptr = extended_size;                               
 800a6fc:	5a f8 00 00 	sw (r23+0),r24                                 
                                                                      
  return true;                                                        
}                                                                     
 800a700:	b9 80 08 00 	mv r1,r12                                      
 800a704:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a708:	2b 8b 00 40 	lw r11,(sp+64)                                 
 800a70c:	2b 8c 00 3c 	lw r12,(sp+60)                                 
 800a710:	2b 8d 00 38 	lw r13,(sp+56)                                 
 800a714:	2b 8e 00 34 	lw r14,(sp+52)                                 
 800a718:	2b 8f 00 30 	lw r15,(sp+48)                                 
 800a71c:	2b 90 00 2c 	lw r16,(sp+44)                                 
 800a720:	2b 91 00 28 	lw r17,(sp+40)                                 
 800a724:	2b 92 00 24 	lw r18,(sp+36)                                 
 800a728:	2b 93 00 20 	lw r19,(sp+32)                                 
 800a72c:	2b 94 00 1c 	lw r20,(sp+28)                                 
 800a730:	2b 95 00 18 	lw r21,(sp+24)                                 
 800a734:	2b 96 00 14 	lw r22,(sp+20)                                 
 800a738:	2b 97 00 10 	lw r23,(sp+16)                                 
 800a73c:	2b 98 00 0c 	lw r24,(sp+12)                                 
 800a740:	2b 99 00 08 	lw r25,(sp+8)                                  
 800a744:	37 9c 00 48 	addi sp,sp,72                                  
 800a748:	c3 a0 00 00 	ret                                            
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area(           
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
 800a74c:	b8 20 b0 00 	mv r22,r1                                      
 800a750:	e3 ff ff 8e 	bi 800a588 <_Heap_Extend+0xd0>                 
      return false;                                                   
    }                                                                 
                                                                      
    if ( extend_area_end == sub_area_begin ) {                        
      merge_below_block = start_block;                                
    } else if ( extend_area_end < sub_area_end ) {                    
 800a754:	b9 80 c8 00 	mv r25,r12                                     
 800a758:	e3 ff ff 85 	bi 800a56c <_Heap_Extend+0xb4>                 
    return false;                                                     
  }                                                                   
                                                                      
  do {                                                                
    uintptr_t const sub_area_begin = (start_block != first_block) ?   
      (uintptr_t) start_block : heap->area_begin;                     
 800a75c:	29 61 00 18 	lw r1,(r11+24)                                 
 800a760:	e3 ff ff 90 	bi 800a5a0 <_Heap_Extend+0xe8>                 
  extend_last_block->prev_size = extend_first_block_size;             
  extend_last_block->size_and_flag = 0;                               
                                                                      
  if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) {
    heap->first_block = extend_first_block;                           
  } else if ( (uintptr_t) extend_last_block > (uintptr_t) heap->last_block ) {
 800a764:	29 62 00 24 	lw r2,(r11+36)                                 
 800a768:	50 41 ff af 	bgeu r2,r1,800a624 <_Heap_Extend+0x16c>        
    heap->last_block = extend_last_block;                             
 800a76c:	59 61 00 24 	sw (r11+36),r1                                 
 800a770:	e3 ff ff ad 	bi 800a624 <_Heap_Extend+0x16c>                
    start_block = _Heap_Block_at( end_block, _Heap_Block_size( end_block ) );
  } while ( start_block != first_block );                             
                                                                      
  if ( extend_area_begin < heap->area_begin ) {                       
    heap->area_begin = extend_area_begin;                             
  } else if ( heap->area_end < extend_area_end ) {                    
 800a774:	29 61 00 1c 	lw r1,(r11+28)                                 
 800a778:	50 2e ff a0 	bgeu r1,r14,800a5f8 <_Heap_Extend+0x140>       
    heap->area_end = extend_area_end;                                 
 800a77c:	59 6e 00 1c 	sw (r11+28),r14                                
 800a780:	e3 ff ff 9e 	bi 800a5f8 <_Heap_Extend+0x140>                
      _Heap_Block_of_alloc_area( sub_area_end, page_size );           
                                                                      
    if (                                                              
      sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
    ) {                                                               
      return false;                                                   
 800a784:	34 0c 00 00 	mvi r12,0                                      
 800a788:	e3 ff ff de 	bi 800a700 <_Heap_Extend+0x248>                
    );                                                                
  }                                                                   
                                                                      
  if ( merge_above_block != NULL ) {                                  
    _Heap_Merge_above( heap, merge_above_block, extend_area_end );    
  } else if ( link_above_block != NULL ) {                            
 800a78c:	46 d1 ff ca 	be r22,r17,800a6b4 <_Heap_Extend+0x1fc>        
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(                       
  Heap_Block *block,                                                  
  uintptr_t size                                                      
)                                                                     
{                                                                     
  uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;       
 800a790:	2a c3 00 04 	lw r3,(r22+4)                                  
)                                                                     
{                                                                     
  uintptr_t const link_begin = (uintptr_t) link;                      
  uintptr_t const first_block_begin = (uintptr_t) first_block;        
                                                                      
  _Heap_Block_set_size( link, first_block_begin - link_begin );       
 800a794:	2b 82 00 48 	lw r2,(sp+72)                                  
  }                                                                   
                                                                      
  if ( merge_above_block != NULL ) {                                  
    _Heap_Merge_above( heap, merge_above_block, extend_area_end );    
  } else if ( link_above_block != NULL ) {                            
    _Heap_Link_above(                                                 
 800a798:	2b 81 00 44 	lw r1,(sp+68)                                  
 800a79c:	20 63 00 01 	andi r3,r3,0x1                                 
)                                                                     
{                                                                     
  uintptr_t const link_begin = (uintptr_t) link;                      
  uintptr_t const first_block_begin = (uintptr_t) first_block;        
                                                                      
  _Heap_Block_set_size( link, first_block_begin - link_begin );       
 800a7a0:	c8 56 10 00 	sub r2,r2,r22                                  
                                                                      
  block->size_and_flag = size | flag;                                 
 800a7a4:	b8 43 10 00 	or r2,r2,r3                                    
 800a7a8:	5a c2 00 04 	sw (r22+4),r2                                  
                                                                      
  last_block->size_and_flag |= HEAP_PREV_BLOCK_USED;                  
 800a7ac:	28 22 00 04 	lw r2,(r1+4)                                   
 800a7b0:	38 42 00 01 	ori r2,r2,0x1                                  
 800a7b4:	58 22 00 04 	sw (r1+4),r2                                   
 800a7b8:	e3 ff ff bf 	bi 800a6b4 <_Heap_Extend+0x1fc>                
      extend_last_block                                               
    );                                                                
  }                                                                   
                                                                      
  if ( merge_below_block == NULL && merge_above_block == NULL ) {     
    _Heap_Free_block( heap, extend_first_block );                     
 800a7bc:	2b 82 00 48 	lw r2,(sp+72)                                  
 800a7c0:	b9 60 08 00 	mv r1,r11                                      
 800a7c4:	fb ff ff 30 	calli 800a484 <_Heap_Free_block>               
 800a7c8:	e3 ff ff bf 	bi 800a6c4 <_Heap_Extend+0x20c>                
    heap->last_block = extend_last_block;                             
  }                                                                   
                                                                      
  if ( merge_below_block != NULL ) {                                  
    _Heap_Merge_below( heap, extend_area_begin, merge_below_block );  
  } else if ( link_below_block != NULL ) {                            
 800a7cc:	47 34 ff a7 	be r25,r20,800a668 <_Heap_Extend+0x1b0>        
{                                                                     
  uintptr_t const last_block_begin = (uintptr_t) last_block;          
  uintptr_t const link_begin = (uintptr_t) link;                      
                                                                      
  last_block->size_and_flag =                                         
    (link_begin - last_block_begin) | HEAP_PREV_BLOCK_USED;           
 800a7d0:	cb 21 c8 00 	sub r25,r25,r1                                 
 800a7d4:	3b 39 00 01 	ori r25,r25,0x1                                
)                                                                     
{                                                                     
  uintptr_t const last_block_begin = (uintptr_t) last_block;          
  uintptr_t const link_begin = (uintptr_t) link;                      
                                                                      
  last_block->size_and_flag =                                         
 800a7d8:	58 39 00 04 	sw (r1+4),r25                                  
 800a7dc:	e3 ff ff a3 	bi 800a668 <_Heap_Extend+0x1b0>                
                                                                      

0800a1b4 <_Heap_Free>: #include <rtems/system.h> #include <rtems/score/sysstate.h> #include <rtems/score/heap.h> bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) {
 800a1b4:	37 9c ff f4 	addi sp,sp,-12                                 
 800a1b8:	5b 8b 00 0c 	sw (sp+12),r11                                 
 800a1bc:	5b 8c 00 08 	sw (sp+8),r12                                  
 800a1c0:	5b 9d 00 04 	sw (sp+4),ra                                   
 800a1c4:	b8 40 18 00 	mv r3,r2                                       
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 800a1c8:	28 22 00 10 	lw r2,(r1+16)                                  
 800a1cc:	b8 20 58 00 	mv r11,r1                                      
 800a1d0:	b8 60 08 00 	mv r1,r3                                       
 800a1d4:	34 6c ff f8 	addi r12,r3,-8                                 
 800a1d8:	f8 00 20 5d 	calli 801234c <__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           
 800a1dc:	29 64 00 20 	lw r4,(r11+32)                                 
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
 800a1e0:	c9 81 10 00 	sub r2,r12,r1                                  
  uintptr_t block_size = 0;                                           
  uintptr_t next_block_size = 0;                                      
  bool next_is_free = false;                                          
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, block ) ) {                     
    return false;                                                     
 800a1e4:	34 01 00 00 	mvi r1,0                                       
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
 800a1e8:	54 82 00 43 	bgu r4,r2,800a2f4 <_Heap_Free+0x140>           
 800a1ec:	29 65 00 24 	lw r5,(r11+36)                                 
 800a1f0:	54 45 00 41 	bgu r2,r5,800a2f4 <_Heap_Free+0x140>           
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 800a1f4:	28 48 00 04 	lw r8,(r2+4)                                   
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 800a1f8:	34 07 ff fe 	mvi r7,-2                                      
 800a1fc:	a1 07 30 00 	and r6,r8,r7                                   
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 800a200:	b4 46 18 00 	add r3,r2,r6                                   
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
 800a204:	54 83 00 3c 	bgu r4,r3,800a2f4 <_Heap_Free+0x140>           <== NEVER TAKEN
 800a208:	54 65 00 3b 	bgu r3,r5,800a2f4 <_Heap_Free+0x140>           <== NEVER TAKEN
 800a20c:	28 69 00 04 	lw r9,(r3+4)                                   
  block->size_and_flag = size | flag;                                 
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & HEAP_PREV_BLOCK_USED;                 
 800a210:	21 2a 00 01 	andi r10,r9,0x1                                
  if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {                
    _HAssert( false );                                                
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( next_block ) ) {                          
 800a214:	45 40 00 38 	be r10,r0,800a2f4 <_Heap_Free+0x140>           <== NEVER TAKEN
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 800a218:	a1 27 48 00 	and r9,r9,r7                                   
    return false;                                                     
  }                                                                   
                                                                      
  next_block_size = _Heap_Block_size( next_block );                   
  next_is_free = next_block != heap->last_block                       
    && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
 800a21c:	34 07 00 00 	mvi r7,0                                       
 800a220:	44 a3 00 05 	be r5,r3,800a234 <_Heap_Free+0x80>             
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 800a224:	b4 69 08 00 	add r1,r3,r9                                   
  block->size_and_flag = size | flag;                                 
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & HEAP_PREV_BLOCK_USED;                 
 800a228:	28 27 00 04 	lw r7,(r1+4)                                   
 800a22c:	20 e7 00 01 	andi r7,r7,0x1                                 
                                                                      
#include <rtems/system.h>                                             
#include <rtems/score/sysstate.h>                                     
#include <rtems/score/heap.h>                                         
                                                                      
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )          
 800a230:	18 e7 00 01 	xori r7,r7,0x1                                 
 800a234:	21 08 00 01 	andi r8,r8,0x1                                 
                                                                      
  next_block_size = _Heap_Block_size( next_block );                   
  next_is_free = next_block != heap->last_block                       
    && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
                                                                      
  if ( !_Heap_Is_prev_used( block ) ) {                               
 800a238:	5d 00 00 19 	bne r8,r0,800a29c <_Heap_Free+0xe8>            
    uintptr_t const prev_size = block->prev_size;                     
 800a23c:	28 4a 00 00 	lw r10,(r2+0)                                  
    Heap_Block * const prev_block = _Heap_Block_at( block, -prev_size );
                                                                      
    if ( !_Heap_Is_block_in_heap( heap, prev_block ) ) {              
      _HAssert( false );                                              
      return( false );                                                
 800a240:	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);                 
 800a244:	c8 4a 10 00 	sub r2,r2,r10                                  
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
 800a248:	54 82 00 2b 	bgu r4,r2,800a2f4 <_Heap_Free+0x140>           <== NEVER TAKEN
 800a24c:	b9 00 08 00 	mv r1,r8                                       
 800a250:	54 45 00 29 	bgu r2,r5,800a2f4 <_Heap_Free+0x140>           <== 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;                 
 800a254:	28 44 00 04 	lw r4,(r2+4)                                   
 800a258:	20 84 00 01 	andi r4,r4,0x1                                 
    }                                                                 
                                                                      
    /* As we always coalesce free blocks, the block that preceedes prev_block
       must have been used. */                                        
    if ( !_Heap_Is_prev_used ( prev_block) ) {                        
 800a25c:	44 80 00 26 	be r4,r0,800a2f4 <_Heap_Free+0x140>            <== NEVER TAKEN
      _HAssert( false );                                              
      return( false );                                                
    }                                                                 
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
 800a260:	44 e0 00 3d 	be r7,r0,800a354 <_Heap_Free+0x1a0>            
      uintptr_t const size = block_size + prev_size + next_block_size;
      _Heap_Free_list_remove( next_block );                           
      stats->free_blocks -= 1;                                        
 800a264:	29 64 00 38 	lw r4,(r11+56)                                 
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 800a268:	28 61 00 08 	lw r1,(r3+8)                                   
 800a26c:	28 63 00 0c 	lw r3,(r3+12)                                  
      _HAssert( false );                                              
      return( false );                                                
    }                                                                 
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
      uintptr_t const size = block_size + prev_size + next_block_size;
 800a270:	b4 c9 48 00 	add r9,r6,r9                                   
 800a274:	b5 2a 50 00 	add r10,r9,r10                                 
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) 
{                                                                     
  Heap_Block *next = block->next;                                     
  Heap_Block *prev = block->prev;                                     
                                                                      
  prev->next = next;                                                  
 800a278:	58 61 00 08 	sw (r3+8),r1                                   
  next->prev = prev;                                                  
 800a27c:	58 23 00 0c 	sw (r1+12),r3                                  
      _Heap_Free_list_remove( next_block );                           
      stats->free_blocks -= 1;                                        
 800a280:	34 81 ff ff 	addi r1,r4,-1                                  
 800a284:	59 61 00 38 	sw (r11+56),r1                                 
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
 800a288:	39 43 00 01 	ori r3,r10,0x1                                 
      next_block = _Heap_Block_at( prev_block, size );                
      _HAssert(!_Heap_Is_prev_used( next_block));                     
      next_block->prev_size = size;                                   
 800a28c:	b4 4a 08 00 	add r1,r2,r10                                  
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
      uintptr_t const size = block_size + prev_size + next_block_size;
      _Heap_Free_list_remove( next_block );                           
      stats->free_blocks -= 1;                                        
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
 800a290:	58 43 00 04 	sw (r2+4),r3                                   
      next_block = _Heap_Block_at( prev_block, size );                
      _HAssert(!_Heap_Is_prev_used( next_block));                     
      next_block->prev_size = size;                                   
 800a294:	58 2a 00 00 	sw (r1+0),r10                                  
 800a298:	e0 00 00 0d 	bi 800a2cc <_Heap_Free+0x118>                  
      uintptr_t const size = block_size + prev_size;                  
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
      next_block->prev_size = size;                                   
    }                                                                 
  } else if ( next_is_free ) {    /* coalesce next */                 
 800a29c:	44 e0 00 1b 	be r7,r0,800a308 <_Heap_Free+0x154>            
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 800a2a0:	28 64 00 08 	lw r4,(r3+8)                                   
 800a2a4:	28 61 00 0c 	lw r1,(r3+12)                                  
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
      next_block->prev_size = size;                                   
    }                                                                 
  } else if ( next_is_free ) {    /* coalesce next */                 
    uintptr_t const size = block_size + next_block_size;              
 800a2a8:	b5 26 48 00 	add r9,r9,r6                                   
)                                                                     
{                                                                     
  Heap_Block *next = old_block->next;                                 
  Heap_Block *prev = old_block->prev;                                 
                                                                      
  new_block->next = next;                                             
 800a2ac:	58 44 00 08 	sw (r2+8),r4                                   
  new_block->prev = prev;                                             
 800a2b0:	58 41 00 0c 	sw (r2+12),r1                                  
    _Heap_Free_list_replace( next_block, block );                     
    block->size_and_flag = size | HEAP_PREV_BLOCK_USED;               
 800a2b4:	39 25 00 01 	ori r5,r9,0x1                                  
    next_block  = _Heap_Block_at( block, size );                      
    next_block->prev_size = size;                                     
 800a2b8:	b4 49 18 00 	add r3,r2,r9                                   
                                                                      
  next->prev = new_block;                                             
 800a2bc:	58 82 00 0c 	sw (r4+12),r2                                  
  prev->next = new_block;                                             
 800a2c0:	58 22 00 08 	sw (r1+8),r2                                   
      next_block->prev_size = size;                                   
    }                                                                 
  } else if ( next_is_free ) {    /* coalesce next */                 
    uintptr_t const size = block_size + next_block_size;              
    _Heap_Free_list_replace( next_block, block );                     
    block->size_and_flag = size | HEAP_PREV_BLOCK_USED;               
 800a2c4:	58 45 00 04 	sw (r2+4),r5                                   
    next_block  = _Heap_Block_at( block, size );                      
    next_block->prev_size = size;                                     
 800a2c8:	58 69 00 00 	sw (r3+0),r9                                   
      stats->max_free_blocks = stats->free_blocks;                    
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
 800a2cc:	29 62 00 40 	lw r2,(r11+64)                                 
  ++stats->frees;                                                     
 800a2d0:	29 61 00 50 	lw r1,(r11+80)                                 
  stats->free_size += block_size;                                     
 800a2d4:	29 63 00 30 	lw r3,(r11+48)                                 
      stats->max_free_blocks = stats->free_blocks;                    
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
 800a2d8:	34 42 ff ff 	addi r2,r2,-1                                  
  ++stats->frees;                                                     
 800a2dc:	34 21 00 01 	addi r1,r1,1                                   
  stats->free_size += block_size;                                     
 800a2e0:	b4 66 30 00 	add r6,r3,r6                                   
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
 800a2e4:	59 61 00 50 	sw (r11+80),r1                                 
      stats->max_free_blocks = stats->free_blocks;                    
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
 800a2e8:	59 62 00 40 	sw (r11+64),r2                                 
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
 800a2ec:	59 66 00 30 	sw (r11+48),r6                                 
                                                                      
  return( true );                                                     
 800a2f0:	34 01 00 01 	mvi r1,1                                       
}                                                                     
 800a2f4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a2f8:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 800a2fc:	2b 8c 00 08 	lw r12,(sp+8)                                  
 800a300:	37 9c 00 0c 	addi sp,sp,12                                  
 800a304:	c3 a0 00 00 	ret                                            
    next_block->prev_size = size;                                     
  } else {                        /* no coalesce */                   
    /* Add 'block' to the head of the free blocks list as it tends to 
       produce less fragmentation than adding to the tail. */         
    _Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block );
    block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;         
 800a308:	38 c1 00 01 	ori r1,r6,0x1                                  
 800a30c:	58 41 00 04 	sw (r2+4),r1                                   
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
 800a310:	28 67 00 04 	lw r7,(r3+4)                                   
    next_block->prev_size = block_size;                               
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
 800a314:	29 61 00 38 	lw r1,(r11+56)                                 
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after(               
  Heap_Block *block_before,                                           
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = block_before->next;                              
 800a318:	29 64 00 08 	lw r4,(r11+8)                                  
  } else {                        /* no coalesce */                   
    /* Add 'block' to the head of the free blocks list as it tends to 
       produce less fragmentation than adding to the tail. */         
    _Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block );
    block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;         
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
 800a31c:	34 05 ff fe 	mvi r5,-2                                      
                                                                      
  new_block->next = next;                                             
  new_block->prev = block_before;                                     
 800a320:	58 4b 00 0c 	sw (r2+12),r11                                 
 800a324:	a0 e5 28 00 	and r5,r7,r5                                   
    next_block->prev_size = block_size;                               
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
    if ( stats->max_free_blocks < stats->free_blocks ) {              
 800a328:	29 67 00 3c 	lw r7,(r11+60)                                 
    block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;         
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
    next_block->prev_size = block_size;                               
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
 800a32c:	34 21 00 01 	addi r1,r1,1                                   
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = block_before->next;                              
                                                                      
  new_block->next = next;                                             
 800a330:	58 44 00 08 	sw (r2+8),r4                                   
  new_block->prev = block_before;                                     
  block_before->next = new_block;                                     
  next->prev = new_block;                                             
 800a334:	58 82 00 0c 	sw (r4+12),r2                                  
  } else {                        /* no coalesce */                   
    /* Add 'block' to the head of the free blocks list as it tends to 
       produce less fragmentation than adding to the tail. */         
    _Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block );
    block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;         
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
 800a338:	58 65 00 04 	sw (r3+4),r5                                   
    next_block->prev_size = block_size;                               
 800a33c:	58 66 00 00 	sw (r3+0),r6                                   
{                                                                     
  Heap_Block *next = block_before->next;                              
                                                                      
  new_block->next = next;                                             
  new_block->prev = block_before;                                     
  block_before->next = new_block;                                     
 800a340:	59 62 00 08 	sw (r11+8),r2                                  
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
 800a344:	59 61 00 38 	sw (r11+56),r1                                 
    if ( stats->max_free_blocks < stats->free_blocks ) {              
 800a348:	50 e1 ff e1 	bgeu r7,r1,800a2cc <_Heap_Free+0x118>          
      stats->max_free_blocks = stats->free_blocks;                    
 800a34c:	59 61 00 3c 	sw (r11+60),r1                                 
 800a350:	e3 ff ff df 	bi 800a2cc <_Heap_Free+0x118>                  
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
      next_block = _Heap_Block_at( prev_block, size );                
      _HAssert(!_Heap_Is_prev_used( next_block));                     
      next_block->prev_size = size;                                   
    } else {                      /* coalesce prev */                 
      uintptr_t const size = block_size + prev_size;                  
 800a354:	b4 ca 50 00 	add r10,r6,r10                                 
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
 800a358:	39 41 00 01 	ori r1,r10,0x1                                 
 800a35c:	58 41 00 04 	sw (r2+4),r1                                   
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
 800a360:	28 62 00 04 	lw r2,(r3+4)                                   
 800a364:	34 01 ff fe 	mvi r1,-2                                      
      next_block->prev_size = size;                                   
 800a368:	58 6a 00 00 	sw (r3+0),r10                                  
      _HAssert(!_Heap_Is_prev_used( next_block));                     
      next_block->prev_size = size;                                   
    } else {                      /* coalesce prev */                 
      uintptr_t const size = block_size + prev_size;                  
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
 800a36c:	a0 41 08 00 	and r1,r2,r1                                   
 800a370:	58 61 00 04 	sw (r3+4),r1                                   
 800a374:	e3 ff ff d6 	bi 800a2cc <_Heap_Free+0x118>                  
                                                                      

08010614 <_Heap_Get_information>: void _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) {
 8010614:	37 9c ff fc 	addi sp,sp,-4                                  
 8010618:	5b 8b 00 04 	sw (sp+4),r11                                  
  Heap_Block *the_block = the_heap->first_block;                      
 801061c:	28 26 00 20 	lw r6,(r1+32)                                  
  Heap_Block *const end = the_heap->last_block;                       
 8010620:	28 29 00 24 	lw r9,(r1+36)                                  
                                                                      
  memset(the_info, 0, sizeof(*the_info));                             
 8010624:	58 40 00 00 	sw (r2+0),r0                                   
 8010628:	58 40 00 04 	sw (r2+4),r0                                   
 801062c:	58 40 00 08 	sw (r2+8),r0                                   
 8010630:	58 40 00 0c 	sw (r2+12),r0                                  
 8010634:	58 40 00 10 	sw (r2+16),r0                                  
 8010638:	58 40 00 14 	sw (r2+20),r0                                  
                                                                      
  while ( the_block != end ) {                                        
 801063c:	44 c9 00 15 	be r6,r9,8010690 <_Heap_Get_information+0x7c>  <== NEVER TAKEN
 8010640:	28 c5 00 04 	lw r5,(r6+4)                                   
 8010644:	34 0a ff fe 	mvi r10,-2                                     
 8010648:	a0 aa 18 00 	and r3,r5,r10                                  
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 801064c:	b4 c3 20 00 	add r4,r6,r3                                   
    if ( info->largest < the_size )                                   
      info->largest = the_size;                                       
                                                                      
    the_block = next_block;                                           
  }                                                                   
}                                                                     
 8010650:	28 85 00 04 	lw r5,(r4+4)                                   
    Heap_Information  *info;                                          
                                                                      
    if ( _Heap_Is_prev_used(next_block) )                             
      info = &the_info->Used;                                         
    else                                                              
      info = &the_info->Free;                                         
 8010654:	b8 40 08 00 	mv r1,r2                                       
  Heap_Block *the_block = the_heap->first_block;                      
  Heap_Block *const end = the_heap->last_block;                       
                                                                      
  memset(the_info, 0, sizeof(*the_info));                             
                                                                      
  while ( the_block != end ) {                                        
 8010658:	b8 80 30 00 	mv r6,r4                                       
  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;                 
 801065c:	20 a7 00 01 	andi r7,r5,0x1                                 
    uintptr_t const     the_size = _Heap_Block_size(the_block);       
    Heap_Block *const  next_block = _Heap_Block_at(the_block, the_size);
    Heap_Information  *info;                                          
                                                                      
    if ( _Heap_Is_prev_used(next_block) )                             
 8010660:	44 e0 00 02 	be r7,r0,8010668 <_Heap_Get_information+0x54>  
      info = &the_info->Used;                                         
 8010664:	34 41 00 0c 	addi r1,r2,12                                  
    else                                                              
      info = &the_info->Free;                                         
                                                                      
    info->number++;                                                   
 8010668:	28 28 00 00 	lw r8,(r1+0)                                   
    info->total += the_size;                                          
 801066c:	28 27 00 08 	lw r7,(r1+8)                                   
    if ( info->largest < the_size )                                   
 8010670:	28 2b 00 04 	lw r11,(r1+4)                                  
    if ( _Heap_Is_prev_used(next_block) )                             
      info = &the_info->Used;                                         
    else                                                              
      info = &the_info->Free;                                         
                                                                      
    info->number++;                                                   
 8010674:	35 08 00 01 	addi r8,r8,1                                   
    info->total += the_size;                                          
 8010678:	b4 e3 38 00 	add r7,r7,r3                                   
    if ( _Heap_Is_prev_used(next_block) )                             
      info = &the_info->Used;                                         
    else                                                              
      info = &the_info->Free;                                         
                                                                      
    info->number++;                                                   
 801067c:	58 28 00 00 	sw (r1+0),r8                                   
    info->total += the_size;                                          
 8010680:	58 27 00 08 	sw (r1+8),r7                                   
    if ( info->largest < the_size )                                   
 8010684:	51 63 00 02 	bgeu r11,r3,801068c <_Heap_Get_information+0x78>
      info->largest = the_size;                                       
 8010688:	58 23 00 04 	sw (r1+4),r3                                   
  Heap_Block *the_block = the_heap->first_block;                      
  Heap_Block *const end = the_heap->last_block;                       
                                                                      
  memset(the_info, 0, sizeof(*the_info));                             
                                                                      
  while ( the_block != end ) {                                        
 801068c:	5d 24 ff ef 	bne r9,r4,8010648 <_Heap_Get_information+0x34> 
    if ( info->largest < the_size )                                   
      info->largest = the_size;                                       
                                                                      
    the_block = next_block;                                           
  }                                                                   
}                                                                     
 8010690:	2b 8b 00 04 	lw r11,(sp+4)                                  
 8010694:	37 9c 00 04 	addi sp,sp,4                                   
 8010698:	c3 a0 00 00 	ret                                            
                                                                      

08012d98 <_Heap_Size_of_alloc_area>: bool _Heap_Size_of_alloc_area( Heap_Control *heap, void *alloc_begin_ptr, uintptr_t *alloc_size ) {
 8012d98:	37 9c ff f0 	addi sp,sp,-16                                 
 8012d9c:	5b 8b 00 10 	sw (sp+16),r11                                 
 8012da0:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8012da4:	5b 8d 00 08 	sw (sp+8),r13                                  
 8012da8:	5b 9d 00 04 	sw (sp+4),ra                                   
 8012dac:	b8 40 60 00 	mv r12,r2                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 8012db0:	28 22 00 10 	lw r2,(r1+16)                                  
 8012db4:	b8 20 58 00 	mv r11,r1                                      
 8012db8:	b9 80 08 00 	mv r1,r12                                      
 8012dbc:	b8 60 68 00 	mv r13,r3                                      
 8012dc0:	fb ff fd 63 	calli 801234c <__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           
 8012dc4:	29 62 00 20 	lw r2,(r11+32)                                 
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 8012dc8:	35 84 ff f8 	addi r4,r12,-8                                 
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
 8012dcc:	c8 81 20 00 	sub r4,r4,r1                                   
  Heap_Block *block = _Heap_Block_of_alloc_area( alloc_begin, page_size );
  Heap_Block *next_block = NULL;                                      
  uintptr_t block_size = 0;                                           
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, block ) ) {                     
    return false;                                                     
 8012dd0:	34 01 00 00 	mvi r1,0                                       
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
 8012dd4:	54 44 00 10 	bgu r2,r4,8012e14 <_Heap_Size_of_alloc_area+0x7c>
 8012dd8:	29 65 00 24 	lw r5,(r11+36)                                 
 8012ddc:	54 85 00 0e 	bgu r4,r5,8012e14 <_Heap_Size_of_alloc_area+0x7c><== NEVER TAKEN
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 8012de0:	28 86 00 04 	lw r6,(r4+4)                                   
 8012de4:	34 03 ff fe 	mvi r3,-2                                      
 8012de8:	a0 66 18 00 	and r3,r3,r6                                   
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 8012dec:	b4 83 20 00 	add r4,r4,r3                                   
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
 8012df0:	54 44 00 09 	bgu r2,r4,8012e14 <_Heap_Size_of_alloc_area+0x7c><== NEVER TAKEN
 8012df4:	54 85 00 08 	bgu r4,r5,8012e14 <_Heap_Size_of_alloc_area+0x7c><== NEVER TAKEN
  block->size_and_flag = size | flag;                                 
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & HEAP_PREV_BLOCK_USED;                 
 8012df8:	28 82 00 04 	lw r2,(r4+4)                                   
 8012dfc:	20 42 00 01 	andi r2,r2,0x1                                 
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if (                                                                
    !_Heap_Is_block_in_heap( heap, next_block )                       
      || !_Heap_Is_prev_used( next_block )                            
 8012e00:	44 40 00 05 	be r2,r0,8012e14 <_Heap_Size_of_alloc_area+0x7c><== NEVER TAKEN
  ) {                                                                 
    return false;                                                     
  }                                                                   
                                                                      
  *alloc_size = (uintptr_t) next_block + HEAP_BLOCK_SIZE_OFFSET - alloc_begin;
 8012e04:	c8 8c 20 00 	sub r4,r4,r12                                  
 8012e08:	34 84 00 04 	addi r4,r4,4                                   
 8012e0c:	59 a4 00 00 	sw (r13+0),r4                                  
                                                                      
  return true;                                                        
 8012e10:	34 01 00 01 	mvi r1,1                                       
}                                                                     
 8012e14:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8012e18:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8012e1c:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8012e20:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8012e24:	37 9c 00 10 	addi sp,sp,16                                  
 8012e28:	c3 a0 00 00 	ret                                            
                                                                      

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

08003608 <_IO_Initialize_all_drivers>: * * Output Parameters: NONE */ void _IO_Initialize_all_drivers( void ) {
 8003608:	37 9c ff f4 	addi sp,sp,-12                                 
 800360c:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8003610:	5b 8c 00 08 	sw (sp+8),r12                                  
 8003614:	5b 9d 00 04 	sw (sp+4),ra                                   
   rtems_device_major_number major;                                   
                                                                      
   for ( major=0 ; major < _IO_Number_of_drivers ; major ++ )         
 8003618:	78 0c 08 01 	mvhi r12,0x801                                 
 800361c:	39 8c 51 88 	ori r12,r12,0x5188                             
 8003620:	29 81 00 00 	lw r1,(r12+0)                                  
 8003624:	44 20 00 09 	be r1,r0,8003648 <_IO_Initialize_all_drivers+0x40><== NEVER TAKEN
 8003628:	34 0b 00 00 	mvi r11,0                                      
     (void) rtems_io_initialize( major, 0, NULL );                    
 800362c:	b9 60 08 00 	mv r1,r11                                      
 8003630:	34 02 00 00 	mvi r2,0                                       
 8003634:	34 03 00 00 	mvi r3,0                                       
 8003638:	f8 00 19 99 	calli 8009c9c <rtems_io_initialize>            
                                                                      
void _IO_Initialize_all_drivers( void )                               
{                                                                     
   rtems_device_major_number major;                                   
                                                                      
   for ( major=0 ; major < _IO_Number_of_drivers ; major ++ )         
 800363c:	29 81 00 00 	lw r1,(r12+0)                                  
 8003640:	35 6b 00 01 	addi r11,r11,1                                 
 8003644:	54 2b ff fa 	bgu r1,r11,800362c <_IO_Initialize_all_drivers+0x24>
     (void) rtems_io_initialize( major, 0, NULL );                    
}                                                                     
 8003648:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800364c:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8003650:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8003654:	37 9c 00 0c 	addi sp,sp,12                                  
 8003658:	c3 a0 00 00 	ret                                            
                                                                      

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

08004550 <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) {
 8004550:	37 9c ff ec 	addi sp,sp,-20                                 
 8004554:	5b 8b 00 14 	sw (sp+20),r11                                 
 8004558:	5b 8c 00 10 	sw (sp+16),r12                                 
 800455c:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8004560:	5b 8e 00 08 	sw (sp+8),r14                                  
 8004564:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004568:	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 )                                       
 800456c:	28 21 00 18 	lw r1,(r1+24)                                  
    return NULL;                                                      
 8004570:	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 )                                       
 8004574:	5c 20 00 09 	bne r1,r0,8004598 <_Objects_Allocate+0x48>     <== ALWAYS TAKEN
    );                                                                
  }                                                                   
#endif                                                                
                                                                      
  return the_object;                                                  
}                                                                     
 8004578:	b9 80 08 00 	mv r1,r12                                      
 800457c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004580:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8004584:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8004588:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800458c:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8004590:	37 9c 00 14 	addi sp,sp,20                                  
 8004594:	c3 a0 00 00 	ret                                            
                                                                      
  /*                                                                  
   *  OK.  The manager should be initialized and configured to have objects.
   *  With any luck, it is safe to attempt to allocate an object.     
   */                                                                 
  the_object = (Objects_Control *) _Chain_Get( &information->Inactive );
 8004598:	35 6d 00 20 	addi r13,r11,32                                
 800459c:	b9 a0 08 00 	mv r1,r13                                      
 80045a0:	fb ff fc fb 	calli 800398c <_Chain_Get>                     
 80045a4:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  if ( information->auto_extend ) {                                   
 80045a8:	41 61 00 12 	lbu r1,(r11+18)                                
                                                                      
  /*                                                                  
   *  OK.  The manager should be initialized and configured to have objects.
   *  With any luck, it is safe to attempt to allocate an object.     
   */                                                                 
  the_object = (Objects_Control *) _Chain_Get( &information->Inactive );
 80045ac:	b9 80 70 00 	mv r14,r12                                     
                                                                      
  if ( information->auto_extend ) {                                   
 80045b0:	44 20 ff f2 	be r1,r0,8004578 <_Objects_Allocate+0x28>      
    /*                                                                
     *  If the list is empty then we are out of objects and need to   
     *  extend information base.                                      
     */                                                               
                                                                      
    if ( !the_object ) {                                              
 80045b4:	45 80 00 18 	be r12,r0,8004614 <_Objects_Allocate+0xc4>     
    }                                                                 
                                                                      
    if ( the_object ) {                                               
      uint32_t   block;                                               
                                                                      
      block = (uint32_t) _Objects_Get_index( the_object->id ) -       
 80045b8:	2d 83 00 0a 	lhu r3,(r12+10)                                
 80045bc:	2d 61 00 0a 	lhu r1,(r11+10)                                
              _Objects_Get_index( information->minimum_id );          
      block /= information->allocation_size;                          
 80045c0:	2d 62 00 14 	lhu r2,(r11+20)                                
 80045c4:	c8 61 08 00 	sub r1,r3,r1                                   
 80045c8:	f8 00 37 51 	calli 801230c <__udivsi3>                      
                                                                      
      information->inactive_per_block[ block ]--;                     
 80045cc:	29 62 00 30 	lw r2,(r11+48)                                 
 80045d0:	b4 21 08 00 	add r1,r1,r1                                   
 80045d4:	b4 21 08 00 	add r1,r1,r1                                   
 80045d8:	b4 41 08 00 	add r1,r2,r1                                   
 80045dc:	28 22 00 00 	lw r2,(r1+0)                                   
      information->inactive--;                                        
 80045e0:	2d 63 00 2c 	lhu r3,(r11+44)                                
                                                                      
      block = (uint32_t) _Objects_Get_index( the_object->id ) -       
              _Objects_Get_index( information->minimum_id );          
      block /= information->allocation_size;                          
                                                                      
      information->inactive_per_block[ block ]--;                     
 80045e4:	34 42 ff ff 	addi r2,r2,-1                                  
 80045e8:	58 22 00 00 	sw (r1+0),r2                                   
      information->inactive--;                                        
 80045ec:	34 61 ff ff 	addi r1,r3,-1                                  
 80045f0:	0d 61 00 2c 	sh (r11+44),r1                                 
    );                                                                
  }                                                                   
#endif                                                                
                                                                      
  return the_object;                                                  
}                                                                     
 80045f4:	b9 80 08 00 	mv r1,r12                                      
 80045f8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80045fc:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8004600:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8004604:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8004608:	2b 8e 00 08 	lw r14,(sp+8)                                  
 800460c:	37 9c 00 14 	addi sp,sp,20                                  
 8004610:	c3 a0 00 00 	ret                                            
     *  If the list is empty then we are out of objects and need to   
     *  extend information base.                                      
     */                                                               
                                                                      
    if ( !the_object ) {                                              
      _Objects_Extend_information( information );                     
 8004614:	b9 60 08 00 	mv r1,r11                                      
 8004618:	f8 00 00 06 	calli 8004630 <_Objects_Extend_information>    
      the_object =  (Objects_Control *) _Chain_Get( &information->Inactive );
 800461c:	b9 a0 08 00 	mv r1,r13                                      
 8004620:	fb ff fc db 	calli 800398c <_Chain_Get>                     
 8004624:	b8 20 60 00 	mv r12,r1                                      
    }                                                                 
                                                                      
    if ( the_object ) {                                               
 8004628:	44 2e ff d4 	be r1,r14,8004578 <_Objects_Allocate+0x28>     
 800462c:	e3 ff ff e3 	bi 80045b8 <_Objects_Allocate+0x68>            
                                                                      

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

08004a48 <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint32_t the_class ) {
 8004a48:	37 9c ff f0 	addi sp,sp,-16                                 
 8004a4c:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8004a50:	5b 8c 00 08 	sw (sp+8),r12                                  
 8004a54:	5b 9d 00 04 	sw (sp+4),ra                                   
  Objects_Information *info;                                          
  int the_class_api_maximum;                                          
                                                                      
  if ( !the_class )                                                   
    return NULL;                                                      
 8004a58:	34 0b 00 00 	mvi r11,0                                      
                                                                      
Objects_Information *_Objects_Get_information(                        
  Objects_APIs   the_api,                                             
  uint32_t       the_class                                            
)                                                                     
{                                                                     
 8004a5c:	b8 20 60 00 	mv r12,r1                                      
  Objects_Information *info;                                          
  int the_class_api_maximum;                                          
                                                                      
  if ( !the_class )                                                   
 8004a60:	5c 40 00 07 	bne r2,r0,8004a7c <_Objects_Get_information+0x34>
    if ( info->maximum == 0 )                                         
      return NULL;                                                    
  #endif                                                              
                                                                      
  return info;                                                        
}                                                                     
 8004a64:	b9 60 08 00 	mv r1,r11                                      
 8004a68:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004a6c:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8004a70:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8004a74:	37 9c 00 10 	addi sp,sp,16                                  
 8004a78:	c3 a0 00 00 	ret                                            
                                                                      
  /*                                                                  
   *  This call implicitly validates the_api so we do not call        
   *  _Objects_Is_api_valid above here.                               
   */                                                                 
  the_class_api_maximum = _Objects_API_maximum_class( the_api );      
 8004a7c:	5b 82 00 10 	sw (sp+16),r2                                  
 8004a80:	f8 00 16 3e 	calli 800a378 <_Objects_API_maximum_class>     
  if ( the_class_api_maximum == 0 )                                   
 8004a84:	2b 82 00 10 	lw r2,(sp+16)                                  
 8004a88:	44 20 ff f7 	be r1,r0,8004a64 <_Objects_Get_information+0x1c>
    return NULL;                                                      
                                                                      
  if ( the_class > (uint32_t) the_class_api_maximum )                 
 8004a8c:	54 41 ff f6 	bgu r2,r1,8004a64 <_Objects_Get_information+0x1c>
    return NULL;                                                      
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
 8004a90:	78 01 08 01 	mvhi r1,0x801                                  
 8004a94:	b5 8c 60 00 	add r12,r12,r12                                
 8004a98:	38 21 48 48 	ori r1,r1,0x4848                               
 8004a9c:	b5 8c 60 00 	add r12,r12,r12                                
 8004aa0:	b4 2c 08 00 	add r1,r1,r12                                  
 8004aa4:	28 21 00 00 	lw r1,(r1+0)                                   
 8004aa8:	44 20 ff ef 	be r1,r0,8004a64 <_Objects_Get_information+0x1c><== NEVER TAKEN
    return NULL;                                                      
                                                                      
  info = _Objects_Information_table[ the_api ][ the_class ];          
 8004aac:	b4 42 10 00 	add r2,r2,r2                                   
 8004ab0:	b4 42 10 00 	add r2,r2,r2                                   
 8004ab4:	b4 22 08 00 	add r1,r1,r2                                   
 8004ab8:	28 2b 00 00 	lw r11,(r1+0)                                  
  if ( !info )                                                        
 8004abc:	45 60 ff ea 	be r11,r0,8004a64 <_Objects_Get_information+0x1c><== 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 )                                         
 8004ac0:	2d 61 00 10 	lhu r1,(r11+16)                                
      return NULL;                                                    
 8004ac4:	7c 21 00 00 	cmpnei r1,r1,0                                 
 8004ac8:	c8 01 08 00 	sub r1,r0,r1                                   
 8004acc:	a1 61 58 00 	and r11,r11,r1                                 
 8004ad0:	e3 ff ff e5 	bi 8004a64 <_Objects_Get_information+0x1c>     
                                                                      

08006a9c <_Objects_Get_name_as_string>: char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) {
 8006a9c:	37 9c ff e0 	addi sp,sp,-32                                 
 8006aa0:	5b 8b 00 14 	sw (sp+20),r11                                 
 8006aa4:	5b 8c 00 10 	sw (sp+16),r12                                 
 8006aa8:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8006aac:	5b 8e 00 08 	sw (sp+8),r14                                  
 8006ab0:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006ab4:	b8 40 60 00 	mv r12,r2                                      
 8006ab8:	b8 60 58 00 	mv r11,r3                                      
  char                   lname[5];                                    
  Objects_Control       *the_object;                                  
  Objects_Locations      location;                                    
  Objects_Id             tmpId;                                       
                                                                      
  if ( length == 0 )                                                  
 8006abc:	5c 40 00 0a 	bne r2,r0,8006ae4 <_Objects_Get_name_as_string+0x48>
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:                                              
      /* not supported */                                             
#endif                                                                
    case OBJECTS_ERROR:                                               
      return NULL;                                                    
 8006ac0:	34 0b 00 00 	mvi r11,0                                      
                                                                      
      _Thread_Enable_dispatch();                                      
      return name;                                                    
  }                                                                   
  return NULL;                  /* unreachable path */                
}                                                                     
 8006ac4:	b9 60 08 00 	mv r1,r11                                      
 8006ac8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006acc:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8006ad0:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8006ad4:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8006ad8:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8006adc:	37 9c 00 20 	addi sp,sp,32                                  
 8006ae0:	c3 a0 00 00 	ret                                            
  Objects_Id             tmpId;                                       
                                                                      
  if ( length == 0 )                                                  
    return NULL;                                                      
                                                                      
  if ( name == NULL )                                                 
 8006ae4:	44 60 ff f8 	be r3,r0,8006ac4 <_Objects_Get_name_as_string+0x28>
    return NULL;                                                      
                                                                      
  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
 8006ae8:	b8 20 68 00 	mv r13,r1                                      
 8006aec:	5c 20 00 05 	bne r1,r0,8006b00 <_Objects_Get_name_as_string+0x64>
 8006af0:	78 01 08 02 	mvhi r1,0x802                                  
 8006af4:	38 21 ab b4 	ori r1,r1,0xabb4                               
 8006af8:	28 21 00 0c 	lw r1,(r1+12)                                  
 8006afc:	28 2d 00 08 	lw r13,(r1+8)                                  
                                                                      
  information = _Objects_Get_information_id( tmpId );                 
 8006b00:	b9 a0 08 00 	mv r1,r13                                      
 8006b04:	fb ff ff 95 	calli 8006958 <_Objects_Get_information_id>    
 8006b08:	b8 20 70 00 	mv r14,r1                                      
  if ( !information )                                                 
 8006b0c:	44 20 ff ed 	be r1,r0,8006ac0 <_Objects_Get_name_as_string+0x24>
    return NULL;                                                      
                                                                      
  the_object = _Objects_Get( information, tmpId, &location );         
 8006b10:	b9 a0 10 00 	mv r2,r13                                      
 8006b14:	37 83 00 20 	addi r3,sp,32                                  
 8006b18:	f8 00 00 36 	calli 8006bf0 <_Objects_Get>                   
  switch ( location ) {                                               
 8006b1c:	2b 82 00 20 	lw r2,(sp+32)                                  
 8006b20:	5c 40 ff e8 	bne r2,r0,8006ac0 <_Objects_Get_name_as_string+0x24>
      return NULL;                                                    
                                                                      
    case OBJECTS_LOCAL:                                               
                                                                      
      #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)             
        if ( information->is_string ) {                               
 8006b24:	41 c3 00 38 	lbu r3,(r14+56)                                
 8006b28:	44 62 00 1c 	be r3,r2,8006b98 <_Objects_Get_name_as_string+0xfc>
          s = the_object->name.name_p;                                
 8006b2c:	28 27 00 0c 	lw r7,(r1+12)                                  
        lname[ 4 ] = '\0';                                            
        s = lname;                                                    
      }                                                               
                                                                      
      d = name;                                                       
      if ( s ) {                                                      
 8006b30:	b9 60 10 00 	mv r2,r11                                      
 8006b34:	44 e0 00 16 	be r7,r0,8006b8c <_Objects_Get_name_as_string+0xf0><== NEVER TAKEN
        for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {            
 8006b38:	35 8c ff ff 	addi r12,r12,-1                                
 8006b3c:	b9 60 10 00 	mv r2,r11                                      
 8006b40:	45 80 00 13 	be r12,r0,8006b8c <_Objects_Get_name_as_string+0xf0><== NEVER TAKEN
 8006b44:	40 e1 00 00 	lbu r1,(r7+0)                                  
 8006b48:	44 20 00 11 	be r1,r0,8006b8c <_Objects_Get_name_as_string+0xf0>
 8006b4c:	78 04 08 02 	mvhi r4,0x802                                  
 8006b50:	34 03 00 00 	mvi r3,0                                       
 8006b54:	38 84 21 fc 	ori r4,r4,0x21fc                               
          *d = (isprint((unsigned char)*s)) ? *s : '*';               
 8006b58:	28 85 00 00 	lw r5,(r4+0)                                   
        s = lname;                                                    
      }                                                               
                                                                      
      d = name;                                                       
      if ( s ) {                                                      
        for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {            
 8006b5c:	34 63 00 01 	addi r3,r3,1                                   
 *  This method objects the name of an object and returns its name    
 *  in the form of a C string.  It attempts to be careful about       
 *  overflowing the user's string and about returning unprintable characters.
 */                                                                   
                                                                      
char *_Objects_Get_name_as_string(                                    
 8006b60:	b4 e3 30 00 	add r6,r7,r3                                   
      }                                                               
                                                                      
      d = name;                                                       
      if ( s ) {                                                      
        for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {            
          *d = (isprint((unsigned char)*s)) ? *s : '*';               
 8006b64:	b4 a1 28 00 	add r5,r5,r1                                   
 8006b68:	40 a5 00 01 	lbu r5,(r5+1)                                  
 8006b6c:	20 a5 00 97 	andi r5,r5,0x97                                
 8006b70:	5c a0 00 02 	bne r5,r0,8006b78 <_Objects_Get_name_as_string+0xdc>
 8006b74:	34 01 00 2a 	mvi r1,42                                      
 8006b78:	30 41 00 00 	sb (r2+0),r1                                   
        s = lname;                                                    
      }                                                               
                                                                      
      d = name;                                                       
      if ( s ) {                                                      
        for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {            
 8006b7c:	34 42 00 01 	addi r2,r2,1                                   
 8006b80:	50 6c 00 03 	bgeu r3,r12,8006b8c <_Objects_Get_name_as_string+0xf0>
 8006b84:	40 c1 00 00 	lbu r1,(r6+0)                                  
 8006b88:	5c 20 ff f4 	bne r1,r0,8006b58 <_Objects_Get_name_as_string+0xbc>
          *d = (isprint((unsigned char)*s)) ? *s : '*';               
        }                                                             
      }                                                               
      *d = '\0';                                                      
 8006b8c:	30 40 00 00 	sb (r2+0),r0                                   
                                                                      
      _Thread_Enable_dispatch();                                      
 8006b90:	f8 00 02 58 	calli 80074f0 <_Thread_Enable_dispatch>        
      return name;                                                    
 8006b94:	e3 ff ff cc 	bi 8006ac4 <_Objects_Get_name_as_string+0x28>  
        if ( information->is_string ) {                               
          s = the_object->name.name_p;                                
        } else                                                        
      #endif                                                          
      {                                                               
        uint32_t  u32_name = (uint32_t) the_object->name.name_u32;    
 8006b98:	28 2d 00 0c 	lw r13,(r1+12)                                 
                                                                      
        lname[ 0 ] = (u32_name >> 24) & 0xff;                         
 8006b9c:	34 02 00 18 	mvi r2,24                                      
 8006ba0:	b9 a0 08 00 	mv r1,r13                                      
 8006ba4:	fb ff e9 82 	calli 80011ac <__lshrsi3>                      
 8006ba8:	33 81 00 18 	sb (sp+24),r1                                  
        lname[ 1 ] = (u32_name >> 16) & 0xff;                         
 8006bac:	34 02 00 10 	mvi r2,16                                      
 8006bb0:	b9 a0 08 00 	mv r1,r13                                      
 8006bb4:	fb ff e9 7e 	calli 80011ac <__lshrsi3>                      
        lname[ 2 ] = (u32_name >>  8) & 0xff;                         
 8006bb8:	01 a2 00 01 	srui r2,r13,1                                  
      #endif                                                          
      {                                                               
        uint32_t  u32_name = (uint32_t) the_object->name.name_u32;    
                                                                      
        lname[ 0 ] = (u32_name >> 24) & 0xff;                         
        lname[ 1 ] = (u32_name >> 16) & 0xff;                         
 8006bbc:	33 81 00 19 	sb (sp+25),r1                                  
        lname[ 2 ] = (u32_name >>  8) & 0xff;                         
 8006bc0:	00 42 00 01 	srui r2,r2,1                                   
        lname[ 3 ] = (u32_name >>  0) & 0xff;                         
 8006bc4:	33 8d 00 1b 	sb (sp+27),r13                                 
      {                                                               
        uint32_t  u32_name = (uint32_t) the_object->name.name_u32;    
                                                                      
        lname[ 0 ] = (u32_name >> 24) & 0xff;                         
        lname[ 1 ] = (u32_name >> 16) & 0xff;                         
        lname[ 2 ] = (u32_name >>  8) & 0xff;                         
 8006bc8:	00 42 00 01 	srui r2,r2,1                                   
        lname[ 3 ] = (u32_name >>  0) & 0xff;                         
        lname[ 4 ] = '\0';                                            
 8006bcc:	33 80 00 1c 	sb (sp+28),r0                                  
      {                                                               
        uint32_t  u32_name = (uint32_t) the_object->name.name_u32;    
                                                                      
        lname[ 0 ] = (u32_name >> 24) & 0xff;                         
        lname[ 1 ] = (u32_name >> 16) & 0xff;                         
        lname[ 2 ] = (u32_name >>  8) & 0xff;                         
 8006bd0:	00 42 00 01 	srui r2,r2,1                                   
        lname[ 3 ] = (u32_name >>  0) & 0xff;                         
        lname[ 4 ] = '\0';                                            
        s = lname;                                                    
 8006bd4:	37 87 00 18 	addi r7,sp,24                                  
      {                                                               
        uint32_t  u32_name = (uint32_t) the_object->name.name_u32;    
                                                                      
        lname[ 0 ] = (u32_name >> 24) & 0xff;                         
        lname[ 1 ] = (u32_name >> 16) & 0xff;                         
        lname[ 2 ] = (u32_name >>  8) & 0xff;                         
 8006bd8:	00 42 00 01 	srui r2,r2,1                                   
 8006bdc:	00 42 00 01 	srui r2,r2,1                                   
 8006be0:	00 42 00 01 	srui r2,r2,1                                   
 8006be4:	00 42 00 01 	srui r2,r2,1                                   
 8006be8:	33 82 00 1a 	sb (sp+26),r2                                  
 8006bec:	e3 ff ff d3 	bi 8006b38 <_Objects_Get_name_as_string+0x9c>  
                                                                      

08017724 <_Objects_Get_no_protection>: /* * You can't just extract the index portion or you can get tricked * by a value between 1 and maximum. */ index = id - information->minimum_id + 1;
 8017724:	28 25 00 08 	lw r5,(r1+8)                                   
                                                                      
  if ( information->maximum >= index ) {                              
 8017728:	2c 24 00 10 	lhu r4,(r1+16)                                 
                                                                      
  /*                                                                  
   * You can't just extract the index portion or you can get tricked  
   * by a value between 1 and maximum.                                
   */                                                                 
  index = id - information->minimum_id + 1;                           
 801772c:	c8 45 10 00 	sub r2,r2,r5                                   
 8017730:	34 42 00 01 	addi r2,r2,1                                   
                                                                      
  if ( information->maximum >= index ) {                              
 8017734:	54 44 00 09 	bgu r2,r4,8017758 <_Objects_Get_no_protection+0x34>
    if ( (the_object = information->local_table[ index ]) != NULL ) { 
 8017738:	28 24 00 1c 	lw r4,(r1+28)                                  
 801773c:	b4 42 08 00 	add r1,r2,r2                                   
 8017740:	b4 21 08 00 	add r1,r1,r1                                   
 8017744:	b4 81 08 00 	add r1,r4,r1                                   
 8017748:	28 21 00 00 	lw r1,(r1+0)                                   
 801774c:	44 20 00 03 	be r1,r0,8017758 <_Objects_Get_no_protection+0x34><== NEVER TAKEN
      *location = OBJECTS_LOCAL;                                      
 8017750:	58 60 00 00 	sw (r3+0),r0                                   
      return the_object;                                              
 8017754:	c3 a0 00 00 	ret                                            
                                                                      
  /*                                                                  
   *  This isn't supported or required yet for Global objects so      
   *  if it isn't local, we don't find it.                            
   */                                                                 
  *location = OBJECTS_ERROR;                                          
 8017758:	34 01 00 01 	mvi r1,1                                       
 801775c:	58 61 00 00 	sw (r3+0),r1                                   
  return NULL;                                                        
 8017760:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 8017764:	c3 a0 00 00 	ret                                            
                                                                      

080065c4 <_Objects_Id_to_name>: */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) {
 80065c4:	37 9c ff e8 	addi sp,sp,-24                                 
 80065c8:	5b 8b 00 14 	sw (sp+20),r11                                 
 80065cc:	5b 8c 00 10 	sw (sp+16),r12                                 
 80065d0:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80065d4:	5b 8e 00 08 	sw (sp+8),r14                                  
 80065d8:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
  /*                                                                  
   *  Caller is trusted for name != NULL.                             
   */                                                                 
                                                                      
  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
 80065dc:	b8 20 58 00 	mv r11,r1                                      
 */                                                                   
Objects_Name_or_id_lookup_errors _Objects_Id_to_name (                
  Objects_Id      id,                                                 
  Objects_Name   *name                                                
)                                                                     
{                                                                     
 80065e0:	b8 40 70 00 	mv r14,r2                                      
                                                                      
  /*                                                                  
   *  Caller is trusted for name != NULL.                             
   */                                                                 
                                                                      
  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
 80065e4:	5c 20 00 05 	bne r1,r0,80065f8 <_Objects_Id_to_name+0x34>   
 80065e8:	78 01 08 02 	mvhi r1,0x802                                  
 80065ec:	38 21 0d cc 	ori r1,r1,0xdcc                                
 80065f0:	28 21 00 0c 	lw r1,(r1+12)                                  
 80065f4:	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);
 80065f8:	b9 60 08 00 	mv r1,r11                                      
 80065fc:	34 02 00 18 	mvi r2,24                                      
 8006600:	f8 00 57 db 	calli 801c56c <__lshrsi3>                      
 8006604:	20 23 00 07 	andi r3,r1,0x7                                 
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(                      
  uint32_t   the_api                                                  
)                                                                     
{                                                                     
  if ( !the_api || the_api > OBJECTS_APIS_LAST )                      
 8006608:	34 64 ff ff 	addi r4,r3,-1                                  
 800660c:	34 01 00 02 	mvi r1,2                                       
                                                                      
  the_api = _Objects_Get_API( tmpId );                                
  if ( !_Objects_Is_api_valid( the_api ) )                            
    return OBJECTS_INVALID_ID;                                        
 8006610:	34 0c 00 03 	mvi r12,3                                      
 8006614:	54 81 00 12 	bgu r4,r1,800665c <_Objects_Id_to_name+0x98>   <== NEVER TAKEN
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
 8006618:	78 04 08 02 	mvhi r4,0x802                                  
 800661c:	b4 63 18 00 	add r3,r3,r3                                   
 8006620:	38 84 08 90 	ori r4,r4,0x890                                
 8006624:	b4 63 18 00 	add r3,r3,r3                                   
 8006628:	b4 83 18 00 	add r3,r4,r3                                   
 800662c:	28 6d 00 00 	lw r13,(r3+0)                                  
 8006630:	45 a0 00 0b 	be r13,r0,800665c <_Objects_Id_to_name+0x98>   <== NEVER TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class(                     
  Objects_Id id                                                       
)                                                                     
{                                                                     
  return (uint32_t)                                                   
 8006634:	b9 60 08 00 	mv r1,r11                                      
 8006638:	34 02 00 1b 	mvi r2,27                                      
 800663c:	f8 00 57 cc 	calli 801c56c <__lshrsi3>                      
    return OBJECTS_INVALID_ID;                                        
                                                                      
  the_class = _Objects_Get_class( tmpId );                            
                                                                      
  information = _Objects_Information_table[ the_api ][ the_class ];   
 8006640:	b4 21 18 00 	add r3,r1,r1                                   
 8006644:	b4 63 18 00 	add r3,r3,r3                                   
 8006648:	b5 a3 18 00 	add r3,r13,r3                                  
 800664c:	28 63 00 00 	lw r3,(r3+0)                                   
  if ( !information )                                                 
 8006650:	44 60 00 03 	be r3,r0,800665c <_Objects_Id_to_name+0x98>    <== NEVER TAKEN
    return OBJECTS_INVALID_ID;                                        
                                                                      
  #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)                 
    if ( information->is_string )                                     
 8006654:	40 6d 00 38 	lbu r13,(r3+56)                                
 8006658:	45 a0 00 09 	be r13,r0,800667c <_Objects_Id_to_name+0xb8>   <== ALWAYS TAKEN
    return OBJECTS_INVALID_ID;                                        
                                                                      
  *name = the_object->name;                                           
  _Thread_Enable_dispatch();                                          
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
}                                                                     
 800665c:	b9 80 08 00 	mv r1,r12                                      
 8006660:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006664:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8006668:	2b 8c 00 10 	lw r12,(sp+16)                                 
 800666c:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8006670:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8006674:	37 9c 00 18 	addi sp,sp,24                                  
 8006678:	c3 a0 00 00 	ret                                            
  #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 ); 
 800667c:	b8 60 08 00 	mv r1,r3                                       
 8006680:	b9 60 10 00 	mv r2,r11                                      
 8006684:	37 83 00 18 	addi r3,sp,24                                  
 8006688:	fb ff ff a9 	calli 800652c <_Objects_Get>                   
  if ( !the_object )                                                  
 800668c:	44 2d ff f4 	be r1,r13,800665c <_Objects_Id_to_name+0x98>   
    return OBJECTS_INVALID_ID;                                        
                                                                      
  *name = the_object->name;                                           
 8006690:	28 21 00 0c 	lw r1,(r1+12)                                  
  _Thread_Enable_dispatch();                                          
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
 8006694:	34 0c 00 00 	mvi r12,0                                      
                                                                      
  the_object = _Objects_Get( information, tmpId, &ignored_location ); 
  if ( !the_object )                                                  
    return OBJECTS_INVALID_ID;                                        
                                                                      
  *name = the_object->name;                                           
 8006698:	59 c1 00 00 	sw (r14+0),r1                                  
  _Thread_Enable_dispatch();                                          
 800669c:	f8 00 02 87 	calli 80070b8 <_Thread_Enable_dispatch>        
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
}                                                                     
 80066a0:	b9 80 08 00 	mv r1,r12                                      
 80066a4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80066a8:	2b 8b 00 14 	lw r11,(sp+20)                                 
 80066ac:	2b 8c 00 10 	lw r12,(sp+16)                                 
 80066b0:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 80066b4:	2b 8e 00 08 	lw r14,(sp+8)                                  
 80066b8:	37 9c 00 18 	addi sp,sp,24                                  
 80066bc:	c3 a0 00 00 	ret                                            
                                                                      

08004bd8 <_Objects_Initialize_information>: , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) {
 8004bd8:	37 9c ff e8 	addi sp,sp,-24                                 
 8004bdc:	5b 8b 00 18 	sw (sp+24),r11                                 
 8004be0:	5b 8c 00 14 	sw (sp+20),r12                                 
 8004be4:	5b 8d 00 10 	sw (sp+16),r13                                 
 8004be8:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8004bec:	5b 8f 00 08 	sw (sp+8),r15                                  
 8004bf0:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004bf4:	b8 40 68 00 	mv r13,r2                                      
  information->maximum = 0;                                           
                                                                      
  /*                                                                  
   *  Register this Object Class in the Object Information Table.     
   */                                                                 
  _Objects_Information_table[ the_api ][ the_class ] = information;   
 8004bf8:	b5 ad 40 00 	add r8,r13,r13                                 
 8004bfc:	78 02 08 01 	mvhi r2,0x801                                  
 8004c00:	38 42 48 48 	ori r2,r2,0x4848                               
 8004c04:	b5 08 40 00 	add r8,r8,r8                                   
 8004c08:	b4 48 40 00 	add r8,r2,r8                                   
 8004c0c:	29 02 00 00 	lw r2,(r8+0)                                   
 8004c10:	b4 63 40 00 	add r8,r3,r3                                   
  ,                                                                   
  bool                 supports_global,                               
  Objects_Thread_queue_Extract_callout extract                        
#endif                                                                
)                                                                     
{                                                                     
 8004c14:	b8 20 58 00 	mv r11,r1                                      
 8004c18:	20 a5 ff ff 	andi r5,r5,0xffff                              
  information->maximum = 0;                                           
                                                                      
  /*                                                                  
   *  Register this Object Class in the Object Information Table.     
   */                                                                 
  _Objects_Information_table[ the_api ][ the_class ] = information;   
 8004c1c:	b5 08 40 00 	add r8,r8,r8                                   
  uint32_t                maximum_per_allocation;                     
  #if defined(RTEMS_MULTIPROCESSING)                                  
    uint32_t              index;                                      
  #endif                                                              
                                                                      
  information->the_api            = the_api;                          
 8004c20:	58 2d 00 00 	sw (r1+0),r13                                  
  information->the_class          = the_class;                        
 8004c24:	0d 63 00 04 	sh (r11+4),r3                                  
  information->size               = size;                             
 8004c28:	58 25 00 18 	sw (r1+24),r5                                  
  information->local_table        = 0;                                
 8004c2c:	58 20 00 1c 	sw (r1+28),r0                                  
  information->inactive_per_block = 0;                                
 8004c30:	58 20 00 30 	sw (r1+48),r0                                  
  information->object_blocks      = 0;                                
 8004c34:	58 20 00 34 	sw (r1+52),r0                                  
  information->inactive           = 0;                                
 8004c38:	0c 20 00 2c 	sh (r1+44),r0                                  
  #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)                 
    information->is_string        = is_string;                        
 8004c3c:	30 26 00 38 	sb (r1+56),r6                                  
                                                                      
  /*                                                                  
   *  Set the maximum value to 0. It will be updated when objects are 
   *  added to the inactive set from _Objects_Extend_information()    
   */                                                                 
  information->maximum = 0;                                           
 8004c40:	0c 20 00 10 	sh (r1+16),r0                                  
                                                                      
  /*                                                                  
   *  Register this Object Class in the Object Information Table.     
   */                                                                 
  _Objects_Information_table[ the_api ][ the_class ] = information;   
 8004c44:	b4 48 40 00 	add r8,r2,r8                                   
 8004c48:	59 01 00 00 	sw (r8+0),r1                                   
                                                                      
  /*                                                                  
   *  Are we operating in limited or unlimited (e.g. auto-extend) mode.
   */                                                                 
  information->auto_extend =                                          
        (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;         
 8004c4c:	34 02 00 1f 	mvi r2,31                                      
 8004c50:	b8 80 08 00 	mv r1,r4                                       
  ,                                                                   
  bool                 supports_global,                               
  Objects_Thread_queue_Extract_callout extract                        
#endif                                                                
)                                                                     
{                                                                     
 8004c54:	b8 60 60 00 	mv r12,r3                                      
 8004c58:	b8 80 70 00 	mv r14,r4                                      
 8004c5c:	b8 e0 78 00 	mv r15,r7                                      
                                                                      
  /*                                                                  
   *  Are we operating in limited or unlimited (e.g. auto-extend) mode.
   */                                                                 
  information->auto_extend =                                          
        (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;         
 8004c60:	f8 00 35 1f 	calli 80120dc <__lshrsi3>                      
  maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS;      
 8004c64:	78 03 08 01 	mvhi r3,0x801                                  
 8004c68:	38 63 35 4c 	ori r3,r3,0x354c                               
                                                                      
  /*                                                                  
   *  Are we operating in limited or unlimited (e.g. auto-extend) mode.
   */                                                                 
  information->auto_extend =                                          
        (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;         
 8004c6c:	20 22 00 ff 	andi r2,r1,0xff                                
  maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS;      
 8004c70:	28 61 00 00 	lw r1,(r3+0)                                   
  _Objects_Information_table[ the_api ][ the_class ] = information;   
                                                                      
  /*                                                                  
   *  Are we operating in limited or unlimited (e.g. auto-extend) mode.
   */                                                                 
  information->auto_extend =                                          
 8004c74:	31 62 00 12 	sb (r11+18),r2                                 
        (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;         
  maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS;      
 8004c78:	a1 c1 70 00 	and r14,r14,r1                                 
                                                                      
  /*                                                                  
   *  Unlimited and maximum of zero is illogical.                     
   */                                                                 
  if ( information->auto_extend && maximum_per_allocation == 0) {     
 8004c7c:	44 40 00 02 	be r2,r0,8004c84 <_Objects_Initialize_information+0xac>
 8004c80:	45 c0 00 29 	be r14,r0,8004d24 <_Objects_Initialize_information+0x14c><== NEVER TAKEN
  information->allocation_size = maximum_per_allocation;              
                                                                      
  /*                                                                  
   *  Provide a null local table entry for the case of any empty table.
   */                                                                 
  information->local_table = &null_local_table;                       
 8004c84:	78 01 08 01 	mvhi r1,0x801                                  
 8004c88:	38 21 46 b4 	ori r1,r1,0x46b4                               
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
 8004c8c:	34 02 00 18 	mvi r2,24                                      
 8004c90:	59 61 00 1c 	sw (r11+28),r1                                 
  }                                                                   
                                                                      
  /*                                                                  
   *  The allocation unit is the maximum value                        
   */                                                                 
  information->allocation_size = maximum_per_allocation;              
 8004c94:	0d 6e 00 14 	sh (r11+20),r14                                
 8004c98:	b9 a0 08 00 	mv r1,r13                                      
 8004c9c:	f8 00 34 c2 	calli 8011fa4 <__ashlsi3>                      
 8004ca0:	78 0d 00 01 	mvhi r13,0x1                                   
 8004ca4:	b8 2d 68 00 	or r13,r1,r13                                  
         (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |    
 8004ca8:	34 02 00 1b 	mvi r2,27                                      
 8004cac:	b9 80 08 00 	mv r1,r12                                      
 8004cb0:	f8 00 34 bd 	calli 8011fa4 <__ashlsi3>                      
  information->local_table = &null_local_table;                       
                                                                      
  /*                                                                  
   *  Calculate minimum and maximum Id's                              
   */                                                                 
  minimum_index = (maximum_per_allocation == 0) ? 0 : 1;              
 8004cb4:	7d c2 00 00 	cmpnei r2,r14,0                                
 8004cb8:	b9 a1 08 00 	or r1,r13,r1                                   
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
 8004cbc:	b8 22 08 00 	or r1,r1,r2                                    
  information->minimum_id =                                           
 8004cc0:	59 61 00 08 	sw (r11+8),r1                                  
  /*                                                                  
   *  Calculate the maximum name length                               
   */                                                                 
  name_length = maximum_name_length;                                  
                                                                      
  if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )                     
 8004cc4:	21 e1 00 03 	andi r1,r15,0x3                                
 8004cc8:	b9 e0 38 00 	mv r7,r15                                      
 8004ccc:	5c 20 00 12 	bne r1,r0,8004d14 <_Objects_Initialize_information+0x13c>
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 8004cd0:	35 62 00 24 	addi r2,r11,36                                 
    name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &            
                  ~(OBJECTS_NAME_ALIGNMENT-1);                        
                                                                      
  information->name_length = name_length;                             
                                                                      
  _Chain_Initialize_empty( &information->Inactive );                  
 8004cd4:	35 61 00 20 	addi r1,r11,32                                 
                                                                      
  if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )                     
    name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &            
                  ~(OBJECTS_NAME_ALIGNMENT-1);                        
                                                                      
  information->name_length = name_length;                             
 8004cd8:	0d 67 00 3a 	sh (r11+58),r7                                 
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
 8004cdc:	59 62 00 20 	sw (r11+32),r2                                 
  the_chain->permanent_null = NULL;                                   
 8004ce0:	59 60 00 24 	sw (r11+36),r0                                 
  the_chain->last           = _Chain_Head(the_chain);                 
 8004ce4:	59 61 00 28 	sw (r11+40),r1                                 
  _Chain_Initialize_empty( &information->Inactive );                  
                                                                      
  /*                                                                  
   *  Initialize objects .. if there are any                          
   */                                                                 
  if ( maximum_per_allocation ) {                                     
 8004ce8:	45 c0 00 03 	be r14,r0,8004cf4 <_Objects_Initialize_information+0x11c>
    /*                                                                
     *  Always have the maximum size available so the current performance
     *  figures are create are met.  If the user moves past the maximum
     *  number then a performance hit is taken.                       
     */                                                               
    _Objects_Extend_information( information );                       
 8004cec:	b9 60 08 00 	mv r1,r11                                      
 8004cf0:	fb ff fe 50 	calli 8004630 <_Objects_Extend_information>    
	_Chain_Initialize_empty( &information->global_table[ index ] );      
     }                                                                
     else                                                             
       information->global_table = NULL;                              
  #endif                                                              
}                                                                     
 8004cf4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004cf8:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8004cfc:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8004d00:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8004d04:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8004d08:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8004d0c:	37 9c 00 18 	addi sp,sp,24                                  
 8004d10:	c3 a0 00 00 	ret                                            
   *  Calculate the maximum name length                               
   */                                                                 
  name_length = maximum_name_length;                                  
                                                                      
  if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )                     
    name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &            
 8004d14:	35 e7 00 04 	addi r7,r15,4                                  
 8004d18:	34 01 ff fc 	mvi r1,-4                                      
 8004d1c:	a0 e1 38 00 	and r7,r7,r1                                   
 8004d20:	e3 ff ff ec 	bi 8004cd0 <_Objects_Initialize_information+0xf8>
                                                                      
  /*                                                                  
   *  Unlimited and maximum of zero is illogical.                     
   */                                                                 
  if ( information->auto_extend && maximum_per_allocation == 0) {     
    _Internal_error_Occurred(                                         
 8004d24:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 8004d28:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 8004d2c:	34 03 00 13 	mvi r3,19                                      <== NOT EXECUTED
 8004d30:	fb ff fd d7 	calli 800448c <_Internal_error_Occurred>       <== NOT EXECUTED
                                                                      

08005280 <_Objects_Set_name>: bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) {
 8005280:	37 9c ff ec 	addi sp,sp,-20                                 
 8005284:	5b 8b 00 14 	sw (sp+20),r11                                 
 8005288:	5b 8c 00 10 	sw (sp+16),r12                                 
 800528c:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8005290:	5b 8e 00 08 	sw (sp+8),r14                                  
 8005294:	5b 9d 00 04 	sw (sp+4),ra                                   
 8005298:	b8 40 68 00 	mv r13,r2                                      
  size_t                 length;                                      
  const char            *s;                                           
                                                                      
  s      = name;                                                      
  length = strnlen( name, information->name_length );                 
 800529c:	2c 22 00 3a 	lhu r2,(r1+58)                                 
bool _Objects_Set_name(                                               
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  const char          *name                                           
)                                                                     
{                                                                     
 80052a0:	b8 20 70 00 	mv r14,r1                                      
  size_t                 length;                                      
  const char            *s;                                           
                                                                      
  s      = name;                                                      
  length = strnlen( name, information->name_length );                 
 80052a4:	b8 60 08 00 	mv r1,r3                                       
bool _Objects_Set_name(                                               
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  const char          *name                                           
)                                                                     
{                                                                     
 80052a8:	b8 60 58 00 	mv r11,r3                                      
  size_t                 length;                                      
  const char            *s;                                           
                                                                      
  s      = name;                                                      
  length = strnlen( name, information->name_length );                 
 80052ac:	f8 00 28 3e 	calli 800f3a4 <strnlen>                        
 80052b0:	b8 20 60 00 	mv r12,r1                                      
                                                                      
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)                   
  if ( information->is_string ) {                                     
 80052b4:	41 c1 00 38 	lbu r1,(r14+56)                                
 80052b8:	5c 20 00 2a 	bne r1,r0,8005360 <_Objects_Set_name+0xe0>     
    d[length] = '\0';                                                 
    the_object->name.name_p = d;                                      
  } else                                                              
#endif                                                                
  {                                                                   
    the_object->name.name_u32 =  _Objects_Build_name(                 
 80052bc:	41 61 00 00 	lbu r1,(r11+0)                                 
 80052c0:	34 02 00 18 	mvi r2,24                                      
 80052c4:	f8 00 58 37 	calli 801b3a0 <__ashlsi3>                      
 80052c8:	34 03 00 01 	mvi r3,1                                       
 80052cc:	b8 20 70 00 	mv r14,r1                                      
 80052d0:	50 6c 00 1f 	bgeu r3,r12,800534c <_Objects_Set_name+0xcc>   
 80052d4:	41 61 00 01 	lbu r1,(r11+1)                                 
 80052d8:	34 02 00 10 	mvi r2,16                                      
 80052dc:	f8 00 58 31 	calli 801b3a0 <__ashlsi3>                      
 80052e0:	34 02 00 02 	mvi r2,2                                       
 80052e4:	b8 2e 08 00 	or r1,r1,r14                                   
 80052e8:	45 82 00 1b 	be r12,r2,8005354 <_Objects_Set_name+0xd4>     
 80052ec:	41 64 00 02 	lbu r4,(r11+2)                                 
 80052f0:	34 03 00 03 	mvi r3,3                                       
 80052f4:	34 02 00 20 	mvi r2,32                                      
 80052f8:	b4 84 20 00 	add r4,r4,r4                                   
 80052fc:	b4 84 20 00 	add r4,r4,r4                                   
 8005300:	b4 84 20 00 	add r4,r4,r4                                   
 8005304:	b4 84 20 00 	add r4,r4,r4                                   
 8005308:	b4 84 20 00 	add r4,r4,r4                                   
 800530c:	b4 84 20 00 	add r4,r4,r4                                   
 8005310:	b4 84 20 00 	add r4,r4,r4                                   
 8005314:	b4 84 20 00 	add r4,r4,r4                                   
 8005318:	b8 24 08 00 	or r1,r1,r4                                    
 800531c:	45 83 00 02 	be r12,r3,8005324 <_Objects_Set_name+0xa4>     
 8005320:	41 62 00 03 	lbu r2,(r11+3)                                 
 8005324:	b8 22 08 00 	or r1,r1,r2                                    
 8005328:	59 a1 00 0c 	sw (r13+12),r1                                 
      ((3 <  length) ? s[ 3 ] : ' ')                                  
    );                                                                
                                                                      
  }                                                                   
                                                                      
  return true;                                                        
 800532c:	34 01 00 01 	mvi r1,1                                       
}                                                                     
 8005330:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005334:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8005338:	2b 8c 00 10 	lw r12,(sp+16)                                 
 800533c:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8005340:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8005344:	37 9c 00 14 	addi sp,sp,20                                  
 8005348:	c3 a0 00 00 	ret                                            
    d[length] = '\0';                                                 
    the_object->name.name_p = d;                                      
  } else                                                              
#endif                                                                
  {                                                                   
    the_object->name.name_u32 =  _Objects_Build_name(                 
 800534c:	78 01 00 20 	mvhi r1,0x20                                   
 8005350:	b9 c1 08 00 	or r1,r14,r1                                   
 8005354:	38 21 20 00 	ori r1,r1,0x2000                               
 8005358:	34 02 00 20 	mvi r2,32                                      
 800535c:	e3 ff ff f2 	bi 8005324 <_Objects_Set_name+0xa4>            
                                                                      
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)                   
  if ( information->is_string ) {                                     
    char *d;                                                          
                                                                      
    d = _Workspace_Allocate( length + 1 );                            
 8005360:	35 81 00 01 	addi r1,r12,1                                  
 8005364:	f8 00 07 9e 	calli 80071dc <_Workspace_Allocate>            
 8005368:	b8 20 70 00 	mv r14,r1                                      
    if ( !d )                                                         
      return false;                                                   
 800536c:	34 01 00 00 	mvi r1,0                                       
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)                   
  if ( information->is_string ) {                                     
    char *d;                                                          
                                                                      
    d = _Workspace_Allocate( length + 1 );                            
    if ( !d )                                                         
 8005370:	45 c0 ff f0 	be r14,r0,8005330 <_Objects_Set_name+0xb0>     <== NEVER TAKEN
      return false;                                                   
                                                                      
    if ( the_object->name.name_p ) {                                  
 8005374:	29 a1 00 0c 	lw r1,(r13+12)                                 
 8005378:	44 20 00 03 	be r1,r0,8005384 <_Objects_Set_name+0x104>     
      _Workspace_Free( (void *)the_object->name.name_p );             
 800537c:	f8 00 07 a3 	calli 8007208 <_Workspace_Free>                
      the_object->name.name_p = NULL;                                 
 8005380:	59 a0 00 0c 	sw (r13+12),r0                                 
    }                                                                 
                                                                      
    strncpy( d, name, length );                                       
 8005384:	b9 80 18 00 	mv r3,r12                                      
 8005388:	b9 c0 08 00 	mv r1,r14                                      
 800538c:	b9 60 10 00 	mv r2,r11                                      
 8005390:	f8 00 27 d2 	calli 800f2d8 <strncpy>                        
    d[length] = '\0';                                                 
 8005394:	b5 cc 60 00 	add r12,r14,r12                                
 8005398:	31 80 00 00 	sb (r12+0),r0                                  
      ((3 <  length) ? s[ 3 ] : ' ')                                  
    );                                                                
                                                                      
  }                                                                   
                                                                      
  return true;                                                        
 800539c:	34 01 00 01 	mvi r1,1                                       
      the_object->name.name_p = NULL;                                 
    }                                                                 
                                                                      
    strncpy( d, name, length );                                       
    d[length] = '\0';                                                 
    the_object->name.name_p = d;                                      
 80053a0:	59 ae 00 0c 	sw (r13+12),r14                                
    );                                                                
                                                                      
  }                                                                   
                                                                      
  return true;                                                        
}                                                                     
 80053a4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80053a8:	2b 8b 00 14 	lw r11,(sp+20)                                 
 80053ac:	2b 8c 00 10 	lw r12,(sp+16)                                 
 80053b0:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 80053b4:	2b 8e 00 08 	lw r14,(sp+8)                                  
 80053b8:	37 9c 00 14 	addi sp,sp,20                                  
 80053bc:	c3 a0 00 00 	ret                                            
                                                                      

08004db0 <_Objects_Shrink_information>: */ void _Objects_Shrink_information( Objects_Information *information ) {
 8004db0:	37 9c ff ec 	addi sp,sp,-20                                 
 8004db4:	5b 8b 00 14 	sw (sp+20),r11                                 
 8004db8:	5b 8c 00 10 	sw (sp+16),r12                                 
 8004dbc:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8004dc0:	5b 8e 00 08 	sw (sp+8),r14                                  
 8004dc4:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
  /*                                                                  
   * Search the list to find block or chunk with all objects inactive.
   */                                                                 
                                                                      
  index_base = _Objects_Get_index( information->minimum_id );         
 8004dc8:	2c 2c 00 0a 	lhu r12,(r1+10)                                
  block_count = (information->maximum - index_base) /                 
 8004dcc:	2c 2d 00 14 	lhu r13,(r1+20)                                
 */                                                                   
                                                                      
void _Objects_Shrink_information(                                     
  Objects_Information *information                                    
)                                                                     
{                                                                     
 8004dd0:	b8 20 70 00 	mv r14,r1                                      
  /*                                                                  
   * Search the list to find block or chunk with all objects inactive.
   */                                                                 
                                                                      
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
 8004dd4:	2c 21 00 10 	lhu r1,(r1+16)                                 
 8004dd8:	b9 a0 10 00 	mv r2,r13                                      
 8004ddc:	c8 2c 08 00 	sub r1,r1,r12                                  
 8004de0:	f8 00 35 4b 	calli 801230c <__udivsi3>                      
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
 8004de4:	44 20 00 09 	be r1,r0,8004e08 <_Objects_Shrink_information+0x58><== NEVER TAKEN
    if ( information->inactive_per_block[ block ] ==                  
 8004de8:	29 c5 00 30 	lw r5,(r14+48)                                 
 8004dec:	34 0b 00 04 	mvi r11,4                                      
 8004df0:	34 03 00 00 	mvi r3,0                                       
 8004df4:	28 a2 00 00 	lw r2,(r5+0)                                   
 8004df8:	45 a2 00 11 	be r13,r2,8004e3c <_Objects_Shrink_information+0x8c><== NEVER TAKEN
                                                                      
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
 8004dfc:	34 63 00 01 	addi r3,r3,1                                   
 *    the_block       - the block to remove                           
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Objects_Shrink_information(                                     
 8004e00:	b4 ab 10 00 	add r2,r5,r11                                  
                                                                      
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
 8004e04:	54 23 00 08 	bgu r1,r3,8004e24 <_Objects_Shrink_information+0x74>
      return;                                                         
    }                                                                 
                                                                      
    index_base += information->allocation_size;                       
  }                                                                   
}                                                                     
 8004e08:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004e0c:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8004e10:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8004e14:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8004e18:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8004e1c:	37 9c 00 14 	addi sp,sp,20                                  
 8004e20:	c3 a0 00 00 	ret                                            
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
    if ( information->inactive_per_block[ block ] ==                  
 8004e24:	28 42 00 00 	lw r2,(r2+0)                                   
      information->inactive -= information->allocation_size;          
                                                                      
      return;                                                         
    }                                                                 
                                                                      
    index_base += information->allocation_size;                       
 8004e28:	35 64 00 04 	addi r4,r11,4                                  
 8004e2c:	b5 8d 60 00 	add r12,r12,r13                                
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
    if ( information->inactive_per_block[ block ] ==                  
 8004e30:	45 a2 00 04 	be r13,r2,8004e40 <_Objects_Shrink_information+0x90>
 8004e34:	b8 80 58 00 	mv r11,r4                                      
 8004e38:	e3 ff ff f1 	bi 8004dfc <_Objects_Shrink_information+0x4c>  
 8004e3c:	34 0b 00 00 	mvi r11,0                                      <== NOT EXECUTED
         information->allocation_size ) {                             
                                                                      
      /*                                                              
       *  Assume the Inactive chain is never empty at this point      
       */                                                             
      the_object = (Objects_Control *) information->Inactive.first;   
 8004e40:	29 c1 00 20 	lw r1,(r14+32)                                 
                                                                      
      do {                                                            
         index = _Objects_Get_index( the_object->id );                
 8004e44:	2c 22 00 0a 	lhu r2,(r1+10)                                 
         /*                                                           
          *  Get the next node before the node is extracted           
          */                                                          
         extract_me = the_object;                                     
         the_object = (Objects_Control *) the_object->Node.next;      
 8004e48:	28 2d 00 00 	lw r13,(r1+0)                                  
         if ((index >= index_base) &&                                 
 8004e4c:	55 82 00 05 	bgu r12,r2,8004e60 <_Objects_Shrink_information+0xb0>
             (index < (index_base + information->allocation_size))) { 
 8004e50:	2d c3 00 14 	lhu r3,(r14+20)                                
 8004e54:	b5 83 18 00 	add r3,r12,r3                                  
         /*                                                           
          *  Get the next node before the node is extracted           
          */                                                          
         extract_me = the_object;                                     
         the_object = (Objects_Control *) the_object->Node.next;      
         if ((index >= index_base) &&                                 
 8004e58:	50 43 00 02 	bgeu r2,r3,8004e60 <_Objects_Shrink_information+0xb0>
             (index < (index_base + information->allocation_size))) { 
           _Chain_Extract( &extract_me->Node );                       
 8004e5c:	fb ff fa c2 	calli 8003964 <_Chain_Extract>                 
         }                                                            
       }                                                              
       while ( the_object );                                          
 8004e60:	45 a0 00 03 	be r13,r0,8004e6c <_Objects_Shrink_information+0xbc>
         index = _Objects_Get_index( the_object->id );                
         /*                                                           
          *  Get the next node before the node is extracted           
          */                                                          
         extract_me = the_object;                                     
         the_object = (Objects_Control *) the_object->Node.next;      
 8004e64:	b9 a0 08 00 	mv r1,r13                                      
 8004e68:	e3 ff ff f7 	bi 8004e44 <_Objects_Shrink_information+0x94>  
       while ( the_object );                                          
      /*                                                              
       *  Free the memory and reset the structures in the object' information
       */                                                             
                                                                      
      _Workspace_Free( information->object_blocks[ block ] );         
 8004e6c:	29 c1 00 34 	lw r1,(r14+52)                                 
 8004e70:	b4 2b 08 00 	add r1,r1,r11                                  
 8004e74:	28 21 00 00 	lw r1,(r1+0)                                   
 8004e78:	f8 00 08 06 	calli 8006e90 <_Workspace_Free>                
      information->object_blocks[ block ] = NULL;                     
 8004e7c:	29 c2 00 34 	lw r2,(r14+52)                                 
      information->inactive_per_block[ block ] = 0;                   
 8004e80:	29 c4 00 30 	lw r4,(r14+48)                                 
                                                                      
      information->inactive -= information->allocation_size;          
 8004e84:	2d c3 00 2c 	lhu r3,(r14+44)                                
 8004e88:	2d c1 00 14 	lhu r1,(r14+20)                                
      /*                                                              
       *  Free the memory and reset the structures in the object' information
       */                                                             
                                                                      
      _Workspace_Free( information->object_blocks[ block ] );         
      information->object_blocks[ block ] = NULL;                     
 8004e8c:	b4 4b 10 00 	add r2,r2,r11                                  
 8004e90:	58 40 00 00 	sw (r2+0),r0                                   
      information->inactive_per_block[ block ] = 0;                   
 8004e94:	b4 8b 58 00 	add r11,r4,r11                                 
 8004e98:	59 60 00 00 	sw (r11+0),r0                                  
                                                                      
      information->inactive -= information->allocation_size;          
 8004e9c:	c8 61 08 00 	sub r1,r3,r1                                   
 8004ea0:	0d c1 00 2c 	sh (r14+44),r1                                 
      return;                                                         
    }                                                                 
                                                                      
    index_base += information->allocation_size;                       
  }                                                                   
}                                                                     
 8004ea4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004ea8:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8004eac:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8004eb0:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8004eb4:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8004eb8:	37 9c 00 14 	addi sp,sp,20                                  
 8004ebc:	c3 a0 00 00 	ret                                            
                                                                      

08004318 <_POSIX_Condition_variables_Wait_support>: pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) {
 8004318:	37 9c ff e0 	addi sp,sp,-32                                 
 800431c:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8004320:	5b 8c 00 18 	sw (sp+24),r12                                 
 8004324:	5b 8d 00 14 	sw (sp+20),r13                                 
 8004328:	5b 8e 00 10 	sw (sp+16),r14                                 
 800432c:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8004330:	5b 90 00 08 	sw (sp+8),r16                                  
 8004334:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004338:	b8 40 58 00 	mv r11,r2                                      
 800433c:	b8 20 70 00 	mv r14,r1                                      
  register POSIX_Condition_variables_Control *the_cond;               
  Objects_Locations                           location;               
  int                                         status;                 
  int                                         mutex_status;           
                                                                      
  if ( !_POSIX_Mutex_Get( mutex, &location ) ) {                      
 8004340:	37 82 00 20 	addi r2,sp,32                                  
 8004344:	b9 60 08 00 	mv r1,r11                                      
  pthread_cond_t            *cond,                                    
  pthread_mutex_t           *mutex,                                   
  Watchdog_Interval          timeout,                                 
  bool                       already_timedout                         
)                                                                     
{                                                                     
 8004348:	b8 60 80 00 	mv r16,r3                                      
 800434c:	20 8f 00 ff 	andi r15,r4,0xff                               
  register POSIX_Condition_variables_Control *the_cond;               
  Objects_Locations                           location;               
  int                                         status;                 
  int                                         mutex_status;           
                                                                      
  if ( !_POSIX_Mutex_Get( mutex, &location ) ) {                      
 8004350:	f8 00 00 6c 	calli 8004500 <_POSIX_Mutex_Get>               
     return EINVAL;                                                   
 8004354:	34 0c 00 16 	mvi r12,22                                     
  register POSIX_Condition_variables_Control *the_cond;               
  Objects_Locations                           location;               
  int                                         status;                 
  int                                         mutex_status;           
                                                                      
  if ( !_POSIX_Mutex_Get( mutex, &location ) ) {                      
 8004358:	44 20 00 0c 	be r1,r0,8004388 <_POSIX_Condition_variables_Wait_support+0x70>
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
 800435c:	78 05 08 01 	mvhi r5,0x801                                  
 8004360:	38 a5 78 6c 	ori r5,r5,0x786c                               
 8004364:	28 a6 00 00 	lw r6,(r5+0)                                   
     return EINVAL;                                                   
  }                                                                   
                                                                      
  _Thread_Unnest_dispatch();                                          
                                                                      
  the_cond = _POSIX_Condition_variables_Get( cond, &location );       
 8004368:	b9 c0 08 00 	mv r1,r14                                      
 800436c:	37 82 00 20 	addi r2,sp,32                                  
 8004370:	34 c6 ff ff 	addi r6,r6,-1                                  
 8004374:	58 a6 00 00 	sw (r5+0),r6                                   
 8004378:	fb ff ff 43 	calli 8004084 <_POSIX_Condition_variables_Get> 
  switch ( location ) {                                               
 800437c:	2b 85 00 20 	lw r5,(sp+32)                                  
     return EINVAL;                                                   
  }                                                                   
                                                                      
  _Thread_Unnest_dispatch();                                          
                                                                      
  the_cond = _POSIX_Condition_variables_Get( cond, &location );       
 8004380:	b8 20 68 00 	mv r13,r1                                      
  switch ( location ) {                                               
 8004384:	44 a0 00 0b 	be r5,r0,80043b0 <_POSIX_Condition_variables_Wait_support+0x98>
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return EINVAL;                                                      
}                                                                     
 8004388:	b9 80 08 00 	mv r1,r12                                      
 800438c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004390:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8004394:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8004398:	2b 8d 00 14 	lw r13,(sp+20)                                 
 800439c:	2b 8e 00 10 	lw r14,(sp+16)                                 
 80043a0:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 80043a4:	2b 90 00 08 	lw r16,(sp+8)                                  
 80043a8:	37 9c 00 20 	addi sp,sp,32                                  
 80043ac:	c3 a0 00 00 	ret                                            
  the_cond = _POSIX_Condition_variables_Get( cond, &location );       
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
                                                                      
      if ( the_cond->Mutex && ( the_cond->Mutex != *mutex ) ) {       
 80043b0:	28 21 00 14 	lw r1,(r1+20)                                  
 80043b4:	44 25 00 05 	be r1,r5,80043c8 <_POSIX_Condition_variables_Wait_support+0xb0>
 80043b8:	29 62 00 00 	lw r2,(r11+0)                                  
 80043bc:	44 22 00 03 	be r1,r2,80043c8 <_POSIX_Condition_variables_Wait_support+0xb0>
        _Thread_Enable_dispatch();                                    
 80043c0:	f8 00 0d 54 	calli 8007910 <_Thread_Enable_dispatch>        
        return EINVAL;                                                
 80043c4:	e3 ff ff f1 	bi 8004388 <_POSIX_Condition_variables_Wait_support+0x70>
      }                                                               
                                                                      
      (void) pthread_mutex_unlock( mutex );                           
 80043c8:	b9 60 08 00 	mv r1,r11                                      
 80043cc:	f8 00 01 1a 	calli 8004834 <pthread_mutex_unlock>           
        _Thread_Enable_dispatch();                                    
        return EINVAL;                                                
      }                                                               
*/                                                                    
                                                                      
      if ( !already_timedout ) {                                      
 80043d0:	45 e0 00 08 	be r15,r0,80043f0 <_POSIX_Condition_variables_Wait_support+0xd8>
        status = _Thread_Executing->Wait.return_code;                 
        if ( status && status != ETIMEDOUT )                          
          return status;                                              
                                                                      
      } else {                                                        
        _Thread_Enable_dispatch();                                    
 80043d4:	f8 00 0d 4f 	calli 8007910 <_Thread_Enable_dispatch>        
        status = ETIMEDOUT;                                           
 80043d8:	34 0c 00 74 	mvi r12,116                                    
                                                                      
      /*                                                              
       *  When we get here the dispatch disable level is 0.           
       */                                                             
                                                                      
      mutex_status = pthread_mutex_lock( mutex );                     
 80043dc:	b9 60 08 00 	mv r1,r11                                      
 80043e0:	f8 00 00 e5 	calli 8004774 <pthread_mutex_lock>             
      if ( mutex_status )                                             
 80043e4:	44 20 ff e9 	be r1,r0,8004388 <_POSIX_Condition_variables_Wait_support+0x70>
        return EINVAL;                                                
 80043e8:	34 0c 00 16 	mvi r12,22                                     
 80043ec:	e3 ff ff e7 	bi 8004388 <_POSIX_Condition_variables_Wait_support+0x70>
        return EINVAL;                                                
      }                                                               
*/                                                                    
                                                                      
      if ( !already_timedout ) {                                      
        the_cond->Mutex = *mutex;                                     
 80043f0:	29 61 00 00 	lw r1,(r11+0)                                  
                                                                      
        _Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
        _Thread_Executing->Wait.return_code = 0;                      
 80043f4:	78 0c 08 01 	mvhi r12,0x801                                 
 80043f8:	39 8c 7d 44 	ori r12,r12,0x7d44                             
 80043fc:	29 84 00 0c 	lw r4,(r12+12)                                 
        return EINVAL;                                                
      }                                                               
*/                                                                    
                                                                      
      if ( !already_timedout ) {                                      
        the_cond->Mutex = *mutex;                                     
 8004400:	59 a1 00 14 	sw (r13+20),r1                                 
                                                                      
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;
 8004404:	34 01 00 01 	mvi r1,1                                       
 8004408:	59 a1 00 48 	sw (r13+72),r1                                 
                                                                      
        _Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
        _Thread_Executing->Wait.return_code = 0;                      
 800440c:	58 80 00 34 	sw (r4+52),r0                                  
        _Thread_Executing->Wait.queue       = &the_cond->Wait_queue;  
        _Thread_Executing->Wait.id          = *cond;                  
 8004410:	29 c5 00 00 	lw r5,(r14+0)                                  
      if ( !already_timedout ) {                                      
        the_cond->Mutex = *mutex;                                     
                                                                      
        _Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
        _Thread_Executing->Wait.return_code = 0;                      
        _Thread_Executing->Wait.queue       = &the_cond->Wait_queue;  
 8004414:	35 ad 00 18 	addi r13,r13,24                                
        _Thread_Executing->Wait.id          = *cond;                  
                                                                      
        _Thread_queue_Enqueue( &the_cond->Wait_queue, timeout );      
 8004418:	78 03 08 00 	mvhi r3,0x800                                  
 800441c:	b9 a0 08 00 	mv r1,r13                                      
 8004420:	ba 00 10 00 	mv r2,r16                                      
 8004424:	38 63 83 24 	ori r3,r3,0x8324                               
      if ( !already_timedout ) {                                      
        the_cond->Mutex = *mutex;                                     
                                                                      
        _Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
        _Thread_Executing->Wait.return_code = 0;                      
        _Thread_Executing->Wait.queue       = &the_cond->Wait_queue;  
 8004428:	58 8d 00 44 	sw (r4+68),r13                                 
        _Thread_Executing->Wait.id          = *cond;                  
 800442c:	58 85 00 20 	sw (r4+32),r5                                  
                                                                      
        _Thread_queue_Enqueue( &the_cond->Wait_queue, timeout );      
 8004430:	f8 00 0e 77 	calli 8007e0c <_Thread_queue_Enqueue_with_handler>
                                                                      
        _Thread_Enable_dispatch();                                    
 8004434:	f8 00 0d 37 	calli 8007910 <_Thread_Enable_dispatch>        
        /*                                                            
         *  Switch ourself out because we blocked as a result of the  
         *  _Thread_queue_Enqueue.                                    
         */                                                           
                                                                      
        status = _Thread_Executing->Wait.return_code;                 
 8004438:	29 81 00 0c 	lw r1,(r12+12)                                 
 800443c:	28 2c 00 34 	lw r12,(r1+52)                                 
        if ( status && status != ETIMEDOUT )                          
 8004440:	7d 82 00 74 	cmpnei r2,r12,116                              
 8004444:	7d 81 00 00 	cmpnei r1,r12,0                                
 8004448:	a0 41 08 00 	and r1,r2,r1                                   
 800444c:	44 2f ff e4 	be r1,r15,80043dc <_POSIX_Condition_variables_Wait_support+0xc4><== ALWAYS TAKEN
 8004450:	e3 ff ff ce 	bi 8004388 <_POSIX_Condition_variables_Wait_support+0x70><== NOT EXECUTED
                                                                      

080090a0 <_POSIX_Message_queue_Receive_support>: size_t msg_len, unsigned int *msg_prio, bool wait, Watchdog_Interval timeout ) {
 80090a0:	37 9c ff dc 	addi sp,sp,-36                                 
 80090a4:	5b 8b 00 1c 	sw (sp+28),r11                                 
 80090a8:	5b 8c 00 18 	sw (sp+24),r12                                 
 80090ac:	5b 8d 00 14 	sw (sp+20),r13                                 
 80090b0:	5b 8e 00 10 	sw (sp+16),r14                                 
 80090b4:	5b 8f 00 0c 	sw (sp+12),r15                                 
 80090b8:	5b 90 00 08 	sw (sp+8),r16                                  
 80090bc:	5b 9d 00 04 	sw (sp+4),ra                                   
 80090c0:	b8 20 60 00 	mv r12,r1                                      
RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *_POSIX_Message_queue_Get_fd (
  mqd_t              id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (POSIX_Message_queue_Control_fd *) _Objects_Get(             
 80090c4:	78 01 08 02 	mvhi r1,0x802                                  
 80090c8:	b8 40 78 00 	mv r15,r2                                      
 80090cc:	b8 60 58 00 	mv r11,r3                                      
 80090d0:	b9 80 10 00 	mv r2,r12                                      
 80090d4:	38 21 a2 28 	ori r1,r1,0xa228                               
 80090d8:	37 83 00 24 	addi r3,sp,36                                  
 80090dc:	b8 80 68 00 	mv r13,r4                                      
 80090e0:	b8 c0 70 00 	mv r14,r6                                      
 80090e4:	20 b0 00 ff 	andi r16,r5,0xff                               
 80090e8:	f8 00 0d 19 	calli 800c54c <_Objects_Get>                   
  Objects_Locations                location;                          
  size_t                           length_out;                        
  bool                             do_wait;                           
                                                                      
  the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );        
  switch ( location ) {                                               
 80090ec:	2b 82 00 24 	lw r2,(sp+36)                                  
 80090f0:	44 40 00 0e 	be r2,r0,8009128 <_POSIX_Message_queue_Receive_support+0x88>
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  rtems_set_errno_and_return_minus_one( EBADF );                      
 80090f4:	f8 00 2f fc 	calli 80150e4 <__errno>                        
 80090f8:	34 02 00 09 	mvi r2,9                                       
 80090fc:	58 22 00 00 	sw (r1+0),r2                                   
 8009100:	34 01 ff ff 	mvi r1,-1                                      
}                                                                     
 8009104:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009108:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 800910c:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8009110:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8009114:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8009118:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 800911c:	2b 90 00 08 	lw r16,(sp+8)                                  
 8009120:	37 9c 00 24 	addi sp,sp,36                                  
 8009124:	c3 a0 00 00 	ret                                            
                                                                      
  the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );        
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( (the_mq_fd->oflag & O_ACCMODE) == O_WRONLY ) {             
 8009128:	28 28 00 14 	lw r8,(r1+20)                                  
 800912c:	34 07 00 01 	mvi r7,1                                       
 8009130:	21 09 00 03 	andi r9,r8,0x3                                 
 8009134:	45 27 00 2e 	be r9,r7,80091ec <_POSIX_Message_queue_Receive_support+0x14c>
        _Thread_Enable_dispatch();                                    
        rtems_set_errno_and_return_minus_one( EBADF );                
      }                                                               
                                                                      
      the_mq = the_mq_fd->Queue;                                      
 8009138:	28 27 00 10 	lw r7,(r1+16)                                  
                                                                      
      if ( msg_len < the_mq->Message_queue.maximum_message_size ) {   
 800913c:	28 e1 00 68 	lw r1,(r7+104)                                 
 8009140:	51 61 00 07 	bgeu r11,r1,800915c <_POSIX_Message_queue_Receive_support+0xbc>
        _Thread_Enable_dispatch();                                    
 8009144:	f8 00 0f b0 	calli 800d004 <_Thread_Enable_dispatch>        
        rtems_set_errno_and_return_minus_one( EMSGSIZE );             
 8009148:	f8 00 2f e7 	calli 80150e4 <__errno>                        
 800914c:	34 02 00 7a 	mvi r2,122                                     
 8009150:	58 22 00 00 	sw (r1+0),r2                                   
 8009154:	34 01 ff ff 	mvi r1,-1                                      
 8009158:	e3 ff ff eb 	bi 8009104 <_POSIX_Message_queue_Receive_support+0x64>
      /*                                                              
       *  Now if something goes wrong, we return a "length" of -1     
       *  to indicate an error.                                       
       */                                                             
                                                                      
      length_out = -1;                                                
 800915c:	34 01 ff ff 	mvi r1,-1                                      
 8009160:	5b 81 00 20 	sw (sp+32),r1                                  
                                                                      
      /*                                                              
       *  A timed receive with a bad time will do a poll regardless.  
       */                                                             
      if ( wait )                                                     
 8009164:	34 05 00 00 	mvi r5,0                                       
 8009168:	5e 00 00 16 	bne r16,r0,80091c0 <_POSIX_Message_queue_Receive_support+0x120><== ALWAYS TAKEN
        timeout                                                       
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      *msg_prio =                                                     
        _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count);
 800916c:	78 0b 08 02 	mvhi r11,0x802                                 
        do_wait = wait;                                               
                                                                      
      /*                                                              
       *  Now perform the actual message receive                      
       */                                                             
      _CORE_message_queue_Seize(                                      
 8009170:	34 e1 00 1c 	addi r1,r7,28                                  
 8009174:	b9 80 10 00 	mv r2,r12                                      
 8009178:	b9 e0 18 00 	mv r3,r15                                      
 800917c:	37 84 00 20 	addi r4,sp,32                                  
 8009180:	b9 c0 30 00 	mv r6,r14                                      
        timeout                                                       
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      *msg_prio =                                                     
        _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count);
 8009184:	39 6b a2 94 	ori r11,r11,0xa294                             
        do_wait = wait;                                               
                                                                      
      /*                                                              
       *  Now perform the actual message receive                      
       */                                                             
      _CORE_message_queue_Seize(                                      
 8009188:	f8 00 07 bf 	calli 800b084 <_CORE_message_queue_Seize>      
        &length_out,                                                  
        do_wait,                                                      
        timeout                                                       
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
 800918c:	f8 00 0f 9e 	calli 800d004 <_Thread_Enable_dispatch>        
      *msg_prio =                                                     
        _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count);
 8009190:	29 6c 00 0c 	lw r12,(r11+12)                                
RTEMS_INLINE_ROUTINE unsigned int _POSIX_Message_queue_Priority_from_core(
  CORE_message_queue_Submit_types priority                            
)                                                                     
{                                                                     
  /* absolute value without a library dependency */                   
  return ((priority >= 0) ? priority : -priority);                    
 8009194:	34 02 00 1f 	mvi r2,31                                      
 8009198:	29 81 00 24 	lw r1,(r12+36)                                 
 800919c:	f8 00 6d 4c 	calli 80246cc <__ashrsi3>                      
 80091a0:	29 83 00 24 	lw r3,(r12+36)                                 
                                                                      
      if ( !_Thread_Executing->Wait.return_code )                     
 80091a4:	29 82 00 34 	lw r2,(r12+52)                                 
 80091a8:	98 23 18 00 	xor r3,r1,r3                                   
 80091ac:	c8 61 08 00 	sub r1,r3,r1                                   
        do_wait,                                                      
        timeout                                                       
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      *msg_prio =                                                     
 80091b0:	59 a1 00 00 	sw (r13+0),r1                                  
        _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count);
                                                                      
      if ( !_Thread_Executing->Wait.return_code )                     
 80091b4:	5c 40 00 06 	bne r2,r0,80091cc <_POSIX_Message_queue_Receive_support+0x12c>
        return length_out;                                            
 80091b8:	2b 81 00 20 	lw r1,(sp+32)                                  
 80091bc:	e3 ff ff d2 	bi 8009104 <_POSIX_Message_queue_Receive_support+0x64>
                                                                      
      /*                                                              
       *  A timed receive with a bad time will do a poll regardless.  
       */                                                             
      if ( wait )                                                     
        do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? false : true;     
 80091c0:	21 05 40 00 	andi r5,r8,0x4000                              
      length_out = -1;                                                
                                                                      
      /*                                                              
       *  A timed receive with a bad time will do a poll regardless.  
       */                                                             
      if ( wait )                                                     
 80091c4:	64 a5 00 00 	cmpei r5,r5,0                                  
 80091c8:	e3 ff ff e9 	bi 800916c <_POSIX_Message_queue_Receive_support+0xcc>
        _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count);
                                                                      
      if ( !_Thread_Executing->Wait.return_code )                     
        return length_out;                                            
                                                                      
      rtems_set_errno_and_return_minus_one(                           
 80091cc:	f8 00 2f c6 	calli 80150e4 <__errno>                        
 80091d0:	b8 20 60 00 	mv r12,r1                                      
 80091d4:	29 61 00 0c 	lw r1,(r11+12)                                 
 80091d8:	28 21 00 34 	lw r1,(r1+52)                                  
 80091dc:	f8 00 00 c2 	calli 80094e4 <_POSIX_Message_queue_Translate_core_message_queue_return_code>
 80091e0:	59 81 00 00 	sw (r12+0),r1                                  
 80091e4:	34 01 ff ff 	mvi r1,-1                                      
 80091e8:	e3 ff ff c7 	bi 8009104 <_POSIX_Message_queue_Receive_support+0x64>
  the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );        
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( (the_mq_fd->oflag & O_ACCMODE) == O_WRONLY ) {             
        _Thread_Enable_dispatch();                                    
 80091ec:	f8 00 0f 86 	calli 800d004 <_Thread_Enable_dispatch>        
        rtems_set_errno_and_return_minus_one( EBADF );                
 80091f0:	f8 00 2f bd 	calli 80150e4 <__errno>                        
 80091f4:	34 02 00 09 	mvi r2,9                                       
 80091f8:	58 22 00 00 	sw (r1+0),r2                                   
 80091fc:	34 01 ff ff 	mvi r1,-1                                      
 8009200:	e3 ff ff c1 	bi 8009104 <_POSIX_Message_queue_Receive_support+0x64>
                                                                      

0800cf30 <_POSIX_Semaphore_Create_support>: const char *name, int pshared, unsigned int value, POSIX_Semaphore_Control **the_sem ) {
 800cf30:	37 9c ff e8 	addi sp,sp,-24                                 
 800cf34:	5b 8b 00 18 	sw (sp+24),r11                                 
 800cf38:	5b 8c 00 14 	sw (sp+20),r12                                 
 800cf3c:	5b 8d 00 10 	sw (sp+16),r13                                 
 800cf40:	5b 8e 00 0c 	sw (sp+12),r14                                 
 800cf44:	5b 8f 00 08 	sw (sp+8),r15                                  
 800cf48:	5b 9d 00 04 	sw (sp+4),ra                                   
 800cf4c:	b8 20 68 00 	mv r13,r1                                      
 800cf50:	b8 60 78 00 	mv r15,r3                                      
 800cf54:	b8 80 70 00 	mv r14,r4                                      
  POSIX_Semaphore_Control   *the_semaphore;                           
  CORE_semaphore_Attributes *the_sem_attr;                            
  char                      *name_p = (char *)name;                   
                                                                      
  /* Sharing semaphores among processes is not currently supported */ 
  if (pshared != 0)                                                   
 800cf58:	5c 40 00 3a 	bne r2,r0,800d040 <_POSIX_Semaphore_Create_support+0x110><== NEVER TAKEN
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
                                                                      
  if ( name ) {                                                       
 800cf5c:	44 22 00 0a 	be r1,r2,800cf84 <_POSIX_Semaphore_Create_support+0x54>
    if ( strnlen( name, NAME_MAX ) >= NAME_MAX )                      
 800cf60:	34 02 00 ff 	mvi r2,255                                     
 800cf64:	f8 00 16 91 	calli 80129a8 <strnlen>                        
 800cf68:	34 02 00 fe 	mvi r2,254                                     
 800cf6c:	50 41 00 06 	bgeu r2,r1,800cf84 <_POSIX_Semaphore_Create_support+0x54>
      rtems_set_errno_and_return_minus_one( ENAMETOOLONG );           
 800cf70:	f8 00 10 20 	calli 8010ff0 <__errno>                        
 800cf74:	34 02 00 5b 	mvi r2,91                                      
 800cf78:	58 22 00 00 	sw (r1+0),r2                                   
 800cf7c:	34 01 ff ff 	mvi r1,-1                                      
 800cf80:	e0 00 00 24 	bi 800d010 <_POSIX_Semaphore_Create_support+0xe0>
 800cf84:	78 02 08 02 	mvhi r2,0x802                                  
 800cf88:	38 42 4a 54 	ori r2,r2,0x4a54                               
 800cf8c:	28 41 00 00 	lw r1,(r2+0)                                   
 800cf90:	34 21 00 01 	addi r1,r1,1                                   
 800cf94:	58 41 00 00 	sw (r2+0),r1                                   
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control *_POSIX_Semaphore_Allocate( void )
{                                                                     
  return (POSIX_Semaphore_Control *)                                  
    _Objects_Allocate( &_POSIX_Semaphore_Information );               
 800cf98:	78 0c 08 02 	mvhi r12,0x802                                 
 800cf9c:	39 8c 4c b4 	ori r12,r12,0x4cb4                             
 800cfa0:	b9 80 08 00 	mv r1,r12                                      
 800cfa4:	fb ff eb 24 	calli 8007c34 <_Objects_Allocate>              
 800cfa8:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  the_semaphore = _POSIX_Semaphore_Allocate();                        
                                                                      
  if ( !the_semaphore ) {                                             
 800cfac:	44 20 00 2a 	be r1,r0,800d054 <_POSIX_Semaphore_Create_support+0x124><== NEVER TAKEN
    _Thread_Enable_dispatch();                                        
    rtems_set_errno_and_return_minus_one( ENOSPC );                   
  }                                                                   
                                                                      
  the_semaphore->process_shared  = pshared;                           
 800cfb0:	58 20 00 10 	sw (r1+16),r0                                  
                                                                      
  if ( name ) {                                                       
 800cfb4:	45 a0 00 1f 	be r13,r0,800d030 <_POSIX_Semaphore_Create_support+0x100><== NEVER TAKEN
    the_semaphore->named = true;                                      
    the_semaphore->open_count = 1;                                    
 800cfb8:	34 01 00 01 	mvi r1,1                                       
  }                                                                   
                                                                      
  the_semaphore->process_shared  = pshared;                           
                                                                      
  if ( name ) {                                                       
    the_semaphore->named = true;                                      
 800cfbc:	34 02 00 01 	mvi r2,1                                       
 800cfc0:	31 62 00 14 	sb (r11+20),r2                                 
    the_semaphore->open_count = 1;                                    
 800cfc4:	59 61 00 18 	sw (r11+24),r1                                 
    the_semaphore->linked = true;                                     
 800cfc8:	31 61 00 15 	sb (r11+21),r1                                 
  the_sem_attr->discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO;         
                                                                      
  /*                                                                  
   *  This effectively disables limit checking.                       
   */                                                                 
  the_sem_attr->maximum_count = 0xFFFFFFFF;                           
 800cfcc:	34 04 ff ff 	mvi r4,-1                                      
                                                                      
  _CORE_semaphore_Initialize( &the_semaphore->Semaphore, the_sem_attr, value );
 800cfd0:	35 61 00 1c 	addi r1,r11,28                                 
 800cfd4:	35 62 00 5c 	addi r2,r11,92                                 
 800cfd8:	b9 e0 18 00 	mv r3,r15                                      
  the_sem_attr->discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO;         
                                                                      
  /*                                                                  
   *  This effectively disables limit checking.                       
   */                                                                 
  the_sem_attr->maximum_count = 0xFFFFFFFF;                           
 800cfdc:	59 64 00 5c 	sw (r11+92),r4                                 
   *  blocking tasks on this semaphore should be.  It could somehow   
   *  be derived from the current scheduling policy.  One             
   *  thing is certain, no matter what we decide, it won't be         
   *  the same as  all other POSIX implementations. :)                
   */                                                                 
  the_sem_attr->discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO;         
 800cfe0:	59 60 00 60 	sw (r11+96),r0                                 
  /*                                                                  
   *  This effectively disables limit checking.                       
   */                                                                 
  the_sem_attr->maximum_count = 0xFFFFFFFF;                           
                                                                      
  _CORE_semaphore_Initialize( &the_semaphore->Semaphore, the_sem_attr, value );
 800cfe4:	fb ff e9 13 	calli 8007430 <_CORE_semaphore_Initialize>     
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  const char          *name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 800cfe8:	2d 62 00 0a 	lhu r2,(r11+10)                                
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 800cfec:	29 81 00 1c 	lw r1,(r12+28)                                 
 800cff0:	b4 42 10 00 	add r2,r2,r2                                   
 800cff4:	b4 42 10 00 	add r2,r2,r2                                   
 800cff8:	b4 22 10 00 	add r2,r1,r2                                   
 800cffc:	58 4b 00 00 	sw (r2+0),r11                                  
    the_object                                                        
  );                                                                  
                                                                      
  #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)                 
    /* ASSERT: information->is_string */                              
    the_object->name.name_p = name;                                   
 800d000:	59 6d 00 0c 	sw (r11+12),r13                                
    &_POSIX_Semaphore_Information,                                    
    &the_semaphore->Object,                                           
    name_p                                                            
  );                                                                  
                                                                      
  *the_sem = the_semaphore;                                           
 800d004:	59 cb 00 00 	sw (r14+0),r11                                 
                                                                      
  _Thread_Enable_dispatch();                                          
 800d008:	fb ff ee cc 	calli 8008b38 <_Thread_Enable_dispatch>        
  return 0;                                                           
 800d00c:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 800d010:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800d014:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800d018:	2b 8c 00 14 	lw r12,(sp+20)                                 
 800d01c:	2b 8d 00 10 	lw r13,(sp+16)                                 
 800d020:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800d024:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800d028:	37 9c 00 18 	addi sp,sp,24                                  
 800d02c:	c3 a0 00 00 	ret                                            
  if ( name ) {                                                       
    the_semaphore->named = true;                                      
    the_semaphore->open_count = 1;                                    
    the_semaphore->linked = true;                                     
  } else {                                                            
    the_semaphore->named = false;                                     
 800d030:	30 20 00 14 	sb (r1+20),r0                                  
    the_semaphore->open_count = 0;                                    
 800d034:	58 20 00 18 	sw (r1+24),r0                                  
    the_semaphore->linked = false;                                    
 800d038:	30 20 00 15 	sb (r1+21),r0                                  
 800d03c:	e3 ff ff e4 	bi 800cfcc <_POSIX_Semaphore_Create_support+0x9c>
  CORE_semaphore_Attributes *the_sem_attr;                            
  char                      *name_p = (char *)name;                   
                                                                      
  /* Sharing semaphores among processes is not currently supported */ 
  if (pshared != 0)                                                   
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
 800d040:	f8 00 0f ec 	calli 8010ff0 <__errno>                        
 800d044:	34 02 00 58 	mvi r2,88                                      
 800d048:	58 22 00 00 	sw (r1+0),r2                                   
 800d04c:	34 01 ff ff 	mvi r1,-1                                      
 800d050:	e3 ff ff f0 	bi 800d010 <_POSIX_Semaphore_Create_support+0xe0>
  _Thread_Disable_dispatch();                                         
                                                                      
  the_semaphore = _POSIX_Semaphore_Allocate();                        
                                                                      
  if ( !the_semaphore ) {                                             
    _Thread_Enable_dispatch();                                        
 800d054:	fb ff ee b9 	calli 8008b38 <_Thread_Enable_dispatch>        
    rtems_set_errno_and_return_minus_one( ENOSPC );                   
 800d058:	f8 00 0f e6 	calli 8010ff0 <__errno>                        
 800d05c:	34 02 00 1c 	mvi r2,28                                      
 800d060:	58 22 00 00 	sw (r1+0),r2                                   
 800d064:	34 01 ff ff 	mvi r1,-1                                      
 800d068:	e3 ff ff ea 	bi 800d010 <_POSIX_Semaphore_Create_support+0xe0>
                                                                      

08008ac0 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch>: #include <rtems/posix/pthread.h> void _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch( Thread_Control *the_thread ) {
 8008ac0:	37 9c ff fc 	addi sp,sp,-4                                  
 8008ac4:	5b 9d 00 04 	sw (sp+4),ra                                   
  POSIX_API_Control *thread_support;                                  
                                                                      
  thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];    
 8008ac8:	28 22 01 2c 	lw r2,(r1+300)                                 
                                                                      
  if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
 8008acc:	28 43 00 d4 	lw r3,(r2+212)                                 
 8008ad0:	5c 60 00 04 	bne r3,r0,8008ae0 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x20><== NEVER TAKEN
 8008ad4:	28 44 00 d8 	lw r4,(r2+216)                                 
 8008ad8:	34 03 00 01 	mvi r3,1                                       
 8008adc:	44 83 00 05 	be r4,r3,8008af0 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x30>
       thread_support->cancelability_type == PTHREAD_CANCEL_ASYNCHRONOUS &&
       thread_support->cancelation_requested ) {                      
    _Thread_Unnest_dispatch();                                        
    _POSIX_Thread_Exit( the_thread, PTHREAD_CANCELED );               
  } else                                                              
    _Thread_Enable_dispatch();                                        
 8008ae0:	fb ff f2 9c 	calli 8005550 <_Thread_Enable_dispatch>        
                                                                      
}                                                                     
 8008ae4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8008ae8:	37 9c 00 04 	addi sp,sp,4                                   
 8008aec:	c3 a0 00 00 	ret                                            
  POSIX_API_Control *thread_support;                                  
                                                                      
  thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];    
                                                                      
  if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
       thread_support->cancelability_type == PTHREAD_CANCEL_ASYNCHRONOUS &&
 8008af0:	28 42 00 dc 	lw r2,(r2+220)                                 
 8008af4:	44 40 ff fb 	be r2,r0,8008ae0 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x20>
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
 8008af8:	78 03 08 01 	mvhi r3,0x801                                  
 8008afc:	38 63 68 5c 	ori r3,r3,0x685c                               
 8008b00:	28 64 00 00 	lw r4,(r3+0)                                   
       thread_support->cancelation_requested ) {                      
    _Thread_Unnest_dispatch();                                        
    _POSIX_Thread_Exit( the_thread, PTHREAD_CANCELED );               
 8008b04:	34 02 ff ff 	mvi r2,-1                                      
 8008b08:	34 84 ff ff 	addi r4,r4,-1                                  
 8008b0c:	58 64 00 00 	sw (r3+0),r4                                   
 8008b10:	f8 00 02 82 	calli 8009518 <_POSIX_Thread_Exit>             
 8008b14:	e3 ff ff f4 	bi 8008ae4 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x24>
                                                                      

0800a648 <_POSIX_Thread_Translate_sched_param>: int policy, struct sched_param *param, Thread_CPU_budget_algorithms *budget_algorithm, Thread_CPU_budget_algorithm_callout *budget_callout ) {
 800a648:	37 9c ff e8 	addi sp,sp,-24                                 
 800a64c:	5b 8b 00 18 	sw (sp+24),r11                                 
 800a650:	5b 8c 00 14 	sw (sp+20),r12                                 
 800a654:	5b 8d 00 10 	sw (sp+16),r13                                 
 800a658:	5b 8e 00 0c 	sw (sp+12),r14                                 
 800a65c:	5b 8f 00 08 	sw (sp+8),r15                                  
 800a660:	5b 9d 00 04 	sw (sp+4),ra                                   
 800a664:	b8 20 68 00 	mv r13,r1                                      
  if ( !_POSIX_Priority_Is_valid( param->sched_priority ) )           
 800a668:	28 41 00 00 	lw r1,(r2+0)                                   
  int                                  policy,                        
  struct sched_param                  *param,                         
  Thread_CPU_budget_algorithms        *budget_algorithm,              
  Thread_CPU_budget_algorithm_callout *budget_callout                 
)                                                                     
{                                                                     
 800a66c:	b8 40 60 00 	mv r12,r2                                      
 800a670:	b8 60 70 00 	mv r14,r3                                      
 800a674:	b8 80 78 00 	mv r15,r4                                      
  if ( !_POSIX_Priority_Is_valid( param->sched_priority ) )           
 800a678:	fb ff ff ec 	calli 800a628 <_POSIX_Priority_Is_valid>       
    return EINVAL;                                                    
 800a67c:	34 0b 00 16 	mvi r11,22                                     
  struct sched_param                  *param,                         
  Thread_CPU_budget_algorithms        *budget_algorithm,              
  Thread_CPU_budget_algorithm_callout *budget_callout                 
)                                                                     
{                                                                     
  if ( !_POSIX_Priority_Is_valid( param->sched_priority ) )           
 800a680:	44 20 00 0c 	be r1,r0,800a6b0 <_POSIX_Thread_Translate_sched_param+0x68><== NEVER TAKEN
    return EINVAL;                                                    
                                                                      
  *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;               
 800a684:	59 c0 00 00 	sw (r14+0),r0                                  
  *budget_callout = NULL;                                             
 800a688:	59 e0 00 00 	sw (r15+0),r0                                  
                                                                      
  if ( policy == SCHED_OTHER ) {                                      
 800a68c:	45 a0 00 12 	be r13,r0,800a6d4 <_POSIX_Thread_Translate_sched_param+0x8c>
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;  
    return 0;                                                         
  }                                                                   
                                                                      
  if ( policy == SCHED_FIFO ) {                                       
 800a690:	34 01 00 01 	mvi r1,1                                       
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;             
    return 0;                                                         
 800a694:	34 0b 00 00 	mvi r11,0                                      
  if ( policy == SCHED_OTHER ) {                                      
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;  
    return 0;                                                         
  }                                                                   
                                                                      
  if ( policy == SCHED_FIFO ) {                                       
 800a698:	45 a1 00 06 	be r13,r1,800a6b0 <_POSIX_Thread_Translate_sched_param+0x68>
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;             
    return 0;                                                         
  }                                                                   
                                                                      
  if ( policy == SCHED_RR ) {                                         
 800a69c:	34 01 00 02 	mvi r1,2                                       
 800a6a0:	45 a1 00 2b 	be r13,r1,800a74c <_POSIX_Thread_Translate_sched_param+0x104>
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE;
    return 0;                                                         
  }                                                                   
                                                                      
  if ( policy == SCHED_SPORADIC ) {                                   
 800a6a4:	34 01 00 04 	mvi r1,4                                       
    *budget_algorithm  = THREAD_CPU_BUDGET_ALGORITHM_CALLOUT;         
    *budget_callout = _POSIX_Threads_Sporadic_budget_callout;         
    return 0;                                                         
  }                                                                   
                                                                      
  return EINVAL;                                                      
 800a6a8:	34 0b 00 16 	mvi r11,22                                     
  if ( policy == SCHED_RR ) {                                         
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE;
    return 0;                                                         
  }                                                                   
                                                                      
  if ( policy == SCHED_SPORADIC ) {                                   
 800a6ac:	45 a1 00 0e 	be r13,r1,800a6e4 <_POSIX_Thread_Translate_sched_param+0x9c>
    *budget_callout = _POSIX_Threads_Sporadic_budget_callout;         
    return 0;                                                         
  }                                                                   
                                                                      
  return EINVAL;                                                      
}                                                                     
 800a6b0:	b9 60 08 00 	mv r1,r11                                      
 800a6b4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a6b8:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800a6bc:	2b 8c 00 14 	lw r12,(sp+20)                                 
 800a6c0:	2b 8d 00 10 	lw r13,(sp+16)                                 
 800a6c4:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800a6c8:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800a6cc:	37 9c 00 18 	addi sp,sp,24                                  
 800a6d0:	c3 a0 00 00 	ret                                            
                                                                      
  *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;               
  *budget_callout = NULL;                                             
                                                                      
  if ( policy == SCHED_OTHER ) {                                      
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;  
 800a6d4:	34 01 00 01 	mvi r1,1                                       
 800a6d8:	59 c1 00 00 	sw (r14+0),r1                                  
    return 0;                                                         
 800a6dc:	34 0b 00 00 	mvi r11,0                                      
 800a6e0:	e3 ff ff f4 	bi 800a6b0 <_POSIX_Thread_Translate_sched_param+0x68>
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE;
    return 0;                                                         
  }                                                                   
                                                                      
  if ( policy == SCHED_SPORADIC ) {                                   
    if ( (param->sched_ss_repl_period.tv_sec == 0) &&                 
 800a6e4:	29 81 00 08 	lw r1,(r12+8)                                  
 800a6e8:	5c 20 00 03 	bne r1,r0,800a6f4 <_POSIX_Thread_Translate_sched_param+0xac>
 800a6ec:	29 82 00 0c 	lw r2,(r12+12)                                 
 800a6f0:	44 41 ff f0 	be r2,r1,800a6b0 <_POSIX_Thread_Translate_sched_param+0x68><== NEVER TAKEN
         (param->sched_ss_repl_period.tv_nsec == 0) )                 
      return EINVAL;                                                  
                                                                      
    if ( (param->sched_ss_init_budget.tv_sec == 0) &&                 
 800a6f4:	29 81 00 10 	lw r1,(r12+16)                                 
 800a6f8:	5c 20 00 04 	bne r1,r0,800a708 <_POSIX_Thread_Translate_sched_param+0xc0>
 800a6fc:	29 82 00 14 	lw r2,(r12+20)                                 
         (param->sched_ss_init_budget.tv_nsec == 0) )                 
      return EINVAL;                                                  
 800a700:	34 0b 00 16 	mvi r11,22                                     
  if ( policy == SCHED_SPORADIC ) {                                   
    if ( (param->sched_ss_repl_period.tv_sec == 0) &&                 
         (param->sched_ss_repl_period.tv_nsec == 0) )                 
      return EINVAL;                                                  
                                                                      
    if ( (param->sched_ss_init_budget.tv_sec == 0) &&                 
 800a704:	44 41 ff eb 	be r2,r1,800a6b0 <_POSIX_Thread_Translate_sched_param+0x68><== NEVER TAKEN
         (param->sched_ss_init_budget.tv_nsec == 0) )                 
      return EINVAL;                                                  
                                                                      
    if ( _Timespec_To_ticks( ¶m->sched_ss_repl_period ) <         
 800a708:	35 81 00 08 	addi r1,r12,8                                  
 800a70c:	fb ff f4 28 	calli 80077ac <_Timespec_To_ticks>             
 800a710:	b8 20 68 00 	mv r13,r1                                      
	 _Timespec_To_ticks( ¶m->sched_ss_init_budget ) )                
 800a714:	35 81 00 10 	addi r1,r12,16                                 
 800a718:	fb ff f4 25 	calli 80077ac <_Timespec_To_ticks>             
      return EINVAL;                                                  
 800a71c:	34 0b 00 16 	mvi r11,22                                     
                                                                      
    if ( (param->sched_ss_init_budget.tv_sec == 0) &&                 
         (param->sched_ss_init_budget.tv_nsec == 0) )                 
      return EINVAL;                                                  
                                                                      
    if ( _Timespec_To_ticks( ¶m->sched_ss_repl_period ) <         
 800a720:	54 2d ff e4 	bgu r1,r13,800a6b0 <_POSIX_Thread_Translate_sched_param+0x68>
	 _Timespec_To_ticks( ¶m->sched_ss_init_budget ) )                
      return EINVAL;                                                  
                                                                      
    if ( !_POSIX_Priority_Is_valid( param->sched_ss_low_priority ) )  
 800a724:	29 81 00 04 	lw r1,(r12+4)                                  
 800a728:	fb ff ff c0 	calli 800a628 <_POSIX_Priority_Is_valid>       
 800a72c:	44 20 ff e1 	be r1,r0,800a6b0 <_POSIX_Thread_Translate_sched_param+0x68>
      return EINVAL;                                                  
                                                                      
    *budget_algorithm  = THREAD_CPU_BUDGET_ALGORITHM_CALLOUT;         
    *budget_callout = _POSIX_Threads_Sporadic_budget_callout;         
 800a730:	78 01 08 00 	mvhi r1,0x800                                  
      return EINVAL;                                                  
                                                                      
    if ( !_POSIX_Priority_Is_valid( param->sched_ss_low_priority ) )  
      return EINVAL;                                                  
                                                                      
    *budget_algorithm  = THREAD_CPU_BUDGET_ALGORITHM_CALLOUT;         
 800a734:	34 02 00 03 	mvi r2,3                                       
 800a738:	59 c2 00 00 	sw (r14+0),r2                                  
    *budget_callout = _POSIX_Threads_Sporadic_budget_callout;         
 800a73c:	38 21 3c 64 	ori r1,r1,0x3c64                               
 800a740:	59 e1 00 00 	sw (r15+0),r1                                  
    return 0;                                                         
 800a744:	34 0b 00 00 	mvi r11,0                                      
 800a748:	e3 ff ff da 	bi 800a6b0 <_POSIX_Thread_Translate_sched_param+0x68>
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;             
    return 0;                                                         
  }                                                                   
                                                                      
  if ( policy == SCHED_RR ) {                                         
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE;
 800a74c:	59 cd 00 00 	sw (r14+0),r13                                 
    return 0;                                                         
 800a750:	e3 ff ff d8 	bi 800a6b0 <_POSIX_Thread_Translate_sched_param+0x68>
                                                                      

08009258 <_POSIX_Threads_Exitted_extension>: * This method is invoked each time a thread exits. */ void _POSIX_Threads_Exitted_extension( Thread_Control *executing ) {
 8009258:	37 9c ff f8 	addi sp,sp,-8                                  
 800925c:	5b 8b 00 08 	sw (sp+8),r11                                  
 8009260:	5b 9d 00 04 	sw (sp+4),ra                                   
 8009264:	b8 20 58 00 	mv r11,r1                                      
 */                                                                   
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(                   
  Objects_Id id                                                       
)                                                                     
{                                                                     
  return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
 8009268:	28 21 00 08 	lw r1,(r1+8)                                   
 800926c:	34 02 00 18 	mvi r2,24                                      
 8009270:	f8 00 23 9b 	calli 80120dc <__lshrsi3>                      
 8009274:	20 21 00 07 	andi r1,r1,0x7                                 
  /*                                                                  
   *  If the executing thread was not created with the POSIX API, then this
   *  API do not get to define its exit behavior.                     
   */                                                                 
  if ( _Objects_Get_API( executing->Object.id ) == OBJECTS_POSIX_API )
 8009278:	34 02 00 03 	mvi r2,3                                       
 800927c:	44 22 00 05 	be r1,r2,8009290 <_POSIX_Threads_Exitted_extension+0x38>
    pthread_exit( executing->Wait.return_argument );                  
}                                                                     
 8009280:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009284:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8009288:	37 9c 00 08 	addi sp,sp,8                                   
 800928c:	c3 a0 00 00 	ret                                            
  /*                                                                  
   *  If the executing thread was not created with the POSIX API, then this
   *  API do not get to define its exit behavior.                     
   */                                                                 
  if ( _Objects_Get_API( executing->Object.id ) == OBJECTS_POSIX_API )
    pthread_exit( executing->Wait.return_argument );                  
 8009290:	29 61 00 28 	lw r1,(r11+40)                                 
 8009294:	f8 00 0c ce 	calli 800c5cc <pthread_exit>                   
}                                                                     
 8009298:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 800929c:	2b 8b 00 08 	lw r11,(sp+8)                                  <== NOT EXECUTED
 80092a0:	37 9c 00 08 	addi sp,sp,8                                   <== NOT EXECUTED
 80092a4:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

080038bc <_POSIX_Threads_Initialize_user_threads_body>: * * Output parameters: NONE */ void _POSIX_Threads_Initialize_user_threads_body(void) {
 80038bc:	37 9c ff ac 	addi sp,sp,-84                                 
 80038c0:	5b 8b 00 14 	sw (sp+20),r11                                 
 80038c4:	5b 8c 00 10 	sw (sp+16),r12                                 
 80038c8:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80038cc:	5b 8e 00 08 	sw (sp+8),r14                                  
 80038d0:	5b 9d 00 04 	sw (sp+4),ra                                   
  uint32_t                            maximum;                        
  posix_initialization_threads_table *user_threads;                   
  pthread_t                           thread_id;                      
  pthread_attr_t                      attr;                           
                                                                      
  user_threads = Configuration_POSIX_API.User_initialization_threads_table;
 80038d4:	78 01 08 01 	mvhi r1,0x801                                  
 80038d8:	38 21 f0 a8 	ori r1,r1,0xf0a8                               
  maximum      = Configuration_POSIX_API.number_of_initialization_threads;
 80038dc:	28 2e 00 30 	lw r14,(r1+48)                                 
  uint32_t                            maximum;                        
  posix_initialization_threads_table *user_threads;                   
  pthread_t                           thread_id;                      
  pthread_attr_t                      attr;                           
                                                                      
  user_threads = Configuration_POSIX_API.User_initialization_threads_table;
 80038e0:	28 2c 00 34 	lw r12,(r1+52)                                 
  maximum      = Configuration_POSIX_API.number_of_initialization_threads;
                                                                      
  if ( !user_threads || maximum == 0 )                                
 80038e4:	65 c2 00 00 	cmpei r2,r14,0                                 
 80038e8:	65 81 00 00 	cmpei r1,r12,0                                 
 80038ec:	b8 41 08 00 	or r1,r2,r1                                    
 80038f0:	5c 20 00 15 	bne r1,r0,8003944 <_POSIX_Threads_Initialize_user_threads_body+0x88><== NEVER TAKEN
 80038f4:	34 0d 00 00 	mvi r13,0                                      
 80038f8:	37 8b 00 18 	addi r11,sp,24                                 
                                                                      
  for ( index=0 ; index < maximum ; index++ ) {                       
    /*                                                                
     * There is no way for these calls to fail in this situation.     
     */                                                               
    (void) pthread_attr_init( &attr );                                
 80038fc:	b9 60 08 00 	mv r1,r11                                      
 8003900:	f8 00 1b 95 	calli 800a754 <pthread_attr_init>              
    (void) pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED );
 8003904:	34 02 00 02 	mvi r2,2                                       
 8003908:	b9 60 08 00 	mv r1,r11                                      
 800390c:	f8 00 1b c5 	calli 800a820 <pthread_attr_setinheritsched>   
    (void) pthread_attr_setstacksize(&attr, user_threads[ index ].stack_size);
 8003910:	29 82 00 04 	lw r2,(r12+4)                                  
 8003914:	b9 60 08 00 	mv r1,r11                                      
 8003918:	f8 00 1b ce 	calli 800a850 <pthread_attr_setstacksize>      
                                                                      
    status = pthread_create(                                          
 800391c:	29 83 00 00 	lw r3,(r12+0)                                  
 8003920:	37 81 00 54 	addi r1,sp,84                                  
 8003924:	b9 60 10 00 	mv r2,r11                                      
 8003928:	34 04 00 00 	mvi r4,0                                       
 800392c:	fb ff fe dd 	calli 80034a0 <pthread_create>                 
 8003930:	b8 20 18 00 	mv r3,r1                                       
      &thread_id,                                                     
      &attr,                                                          
      user_threads[ index ].thread_entry,                             
      NULL                                                            
    );                                                                
    if ( status )                                                     
 8003934:	5c 20 00 0b 	bne r1,r0,8003960 <_POSIX_Threads_Initialize_user_threads_body+0xa4><== NEVER TAKEN
   *                                                                  
   *  Setting the attributes explicitly is critical, since we don't want
   *  to inherit the idle tasks attributes.                           
   */                                                                 
                                                                      
  for ( index=0 ; index < maximum ; index++ ) {                       
 8003938:	35 ad 00 01 	addi r13,r13,1                                 
 800393c:	35 8c 00 08 	addi r12,r12,8                                 
 8003940:	55 cd ff ef 	bgu r14,r13,80038fc <_POSIX_Threads_Initialize_user_threads_body+0x40><== NEVER TAKEN
      NULL                                                            
    );                                                                
    if ( status )                                                     
      _Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, true, status );
  }                                                                   
}                                                                     
 8003944:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003948:	2b 8b 00 14 	lw r11,(sp+20)                                 
 800394c:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8003950:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8003954:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8003958:	37 9c 00 54 	addi sp,sp,84                                  
 800395c:	c3 a0 00 00 	ret                                            
      &attr,                                                          
      user_threads[ index ].thread_entry,                             
      NULL                                                            
    );                                                                
    if ( status )                                                     
      _Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, true, status );
 8003960:	34 01 00 02 	mvi r1,2                                       <== NOT EXECUTED
 8003964:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 8003968:	f8 00 07 60 	calli 80056e8 <_Internal_error_Occurred>       <== NOT EXECUTED
                                                                      

080094a0 <_POSIX_Threads_Sporadic_budget_TSR>: */ void _POSIX_Threads_Sporadic_budget_TSR( Objects_Id id __attribute__((unused)), void *argument ) {
 80094a0:	37 9c ff f4 	addi sp,sp,-12                                 
 80094a4:	5b 8b 00 0c 	sw (sp+12),r11                                 
 80094a8:	5b 8c 00 08 	sw (sp+8),r12                                  
 80094ac:	5b 9d 00 04 	sw (sp+4),ra                                   
  Thread_Control     *the_thread;                                     
  POSIX_API_Control  *api;                                            
                                                                      
  the_thread = argument;                                              
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
 80094b0:	28 4c 01 2c 	lw r12,(r2+300)                                
 */                                                                   
void _POSIX_Threads_Sporadic_budget_TSR(                              
  Objects_Id      id __attribute__((unused)),                         
  void           *argument                                            
)                                                                     
{                                                                     
 80094b4:	b8 40 58 00 	mv r11,r2                                      
  the_thread = argument;                                              
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
                                                                      
  /* ticks is guaranteed to be at least one */                        
  ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_init_budget );
 80094b8:	35 81 00 94 	addi r1,r12,148                                
 80094bc:	f8 00 05 4e 	calli 800a9f4 <_Timespec_To_ticks>             
                                                                      
RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(        
  int priority                                                        
)                                                                     
{                                                                     
  return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
 80094c0:	78 03 08 01 	mvhi r3,0x801                                  
 80094c4:	38 63 40 c0 	ori r3,r3,0x40c0                               
 80094c8:	29 84 00 84 	lw r4,(r12+132)                                
 80094cc:	40 62 00 00 	lbu r2,(r3+0)                                  
   */                                                                 
  #if 0                                                               
    printk( "TSR %d %d %d\n", the_thread->resource_count,             
        the_thread->current_priority, new_priority );                 
  #endif                                                              
  if ( the_thread->resource_count == 0 ) {                            
 80094d0:	29 63 00 1c 	lw r3,(r11+28)                                 
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
                                                                      
  /* ticks is guaranteed to be at least one */                        
  ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_init_budget );
                                                                      
  the_thread->cpu_time_budget = ticks;                                
 80094d4:	59 61 00 78 	sw (r11+120),r1                                
 80094d8:	c8 44 10 00 	sub r2,r2,r4                                   
                                                                      
  new_priority = _POSIX_Priority_To_core( api->schedparam.sched_priority );
  the_thread->real_priority = new_priority;                           
 80094dc:	59 62 00 18 	sw (r11+24),r2                                 
   */                                                                 
  #if 0                                                               
    printk( "TSR %d %d %d\n", the_thread->resource_count,             
        the_thread->current_priority, new_priority );                 
  #endif                                                              
  if ( the_thread->resource_count == 0 ) {                            
 80094e0:	5c 60 00 06 	bne r3,r0,80094f8 <_POSIX_Threads_Sporadic_budget_TSR+0x58><== NEVER TAKEN
    /*                                                                
     *  If this would make them less important, then do not change it.
     */                                                               
    if ( the_thread->current_priority > new_priority ) {              
 80094e4:	29 61 00 14 	lw r1,(r11+20)                                 
 80094e8:	50 41 00 04 	bgeu r2,r1,80094f8 <_POSIX_Threads_Sporadic_budget_TSR+0x58>
      _Thread_Change_priority( the_thread, new_priority, true );      
 80094ec:	b9 60 08 00 	mv r1,r11                                      
 80094f0:	34 03 00 01 	mvi r3,1                                       
 80094f4:	fb ff ee a5 	calli 8004f88 <_Thread_Change_priority>        
      #endif                                                          
    }                                                                 
  }                                                                   
                                                                      
  /* ticks is guaranteed to be at least one */                        
  ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_repl_period );
 80094f8:	35 81 00 8c 	addi r1,r12,140                                
 80094fc:	f8 00 05 3e 	calli 800a9f4 <_Timespec_To_ticks>             
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 8009500:	59 81 00 b0 	sw (r12+176),r1                                
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 8009504:	78 01 08 01 	mvhi r1,0x801                                  
 8009508:	35 82 00 a4 	addi r2,r12,164                                
 800950c:	38 21 49 70 	ori r1,r1,0x4970                               
 8009510:	fb ff f5 5d 	calli 8006a84 <_Watchdog_Insert>               
                                                                      
  _Watchdog_Insert_ticks( &api->Sporadic_timer, ticks );              
}                                                                     
 8009514:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009518:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 800951c:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8009520:	37 9c 00 0c 	addi sp,sp,12                                  
 8009524:	c3 a0 00 00 	ret                                            
                                                                      

08009528 <_POSIX_Threads_Sporadic_budget_callout>: * _POSIX_Threads_Sporadic_budget_callout */ void _POSIX_Threads_Sporadic_budget_callout( Thread_Control *the_thread ) {
 8009528:	37 9c ff fc 	addi sp,sp,-4                                  
 800952c:	5b 9d 00 04 	sw (sp+4),ra                                   
  POSIX_API_Control *api;                                             
  uint32_t           new_priority;                                    
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
 8009530:	28 22 01 2c 	lw r2,(r1+300)                                 
 8009534:	78 04 08 01 	mvhi r4,0x801                                  
 8009538:	38 84 40 c0 	ori r4,r4,0x40c0                               
 800953c:	28 42 00 88 	lw r2,(r2+136)                                 
 8009540:	40 84 00 00 	lbu r4,(r4+0)                                  
   */                                                                 
  #if 0                                                               
    printk( "callout %d %d %d\n", the_thread->resource_count,         
	the_thread->current_priority, new_priority );                        
  #endif                                                              
  if ( the_thread->resource_count == 0 ) {                            
 8009544:	28 25 00 1c 	lw r5,(r1+28)                                  
 8009548:	c8 82 10 00 	sub r2,r4,r2                                   
                                                                      
  /*                                                                  
   *  This will prevent the thread from consuming its entire "budget" 
   *  while at low priority.                                          
   */                                                                 
  the_thread->cpu_time_budget = 0xFFFFFFFF; /* XXX should be based on MAX_U32 */
 800954c:	34 04 ff ff 	mvi r4,-1                                      
 8009550:	58 24 00 78 	sw (r1+120),r4                                 
                                                                      
  new_priority = _POSIX_Priority_To_core(api->schedparam.sched_ss_low_priority);
  the_thread->real_priority = new_priority;                           
 8009554:	58 22 00 18 	sw (r1+24),r2                                  
   */                                                                 
  #if 0                                                               
    printk( "callout %d %d %d\n", the_thread->resource_count,         
	the_thread->current_priority, new_priority );                        
  #endif                                                              
  if ( the_thread->resource_count == 0 ) {                            
 8009558:	5c a0 00 05 	bne r5,r0,800956c <_POSIX_Threads_Sporadic_budget_callout+0x44><== NEVER TAKEN
    /*                                                                
     *  Make sure we are actually lowering it. If they have lowered it
     *  to logically lower than sched_ss_low_priority, then we do not want to
     *  change it.                                                    
     */                                                               
    if ( the_thread->current_priority < new_priority ) {              
 800955c:	28 23 00 14 	lw r3,(r1+20)                                  
 8009560:	50 62 00 03 	bgeu r3,r2,800956c <_POSIX_Threads_Sporadic_budget_callout+0x44><== NEVER TAKEN
      _Thread_Change_priority( the_thread, new_priority, true );      
 8009564:	34 03 00 01 	mvi r3,1                                       
 8009568:	fb ff ee 88 	calli 8004f88 <_Thread_Change_priority>        
      #if 0                                                           
        printk( "lower priority\n" );                                 
      #endif                                                          
    }                                                                 
  }                                                                   
}                                                                     
 800956c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009570:	37 9c 00 04 	addi sp,sp,4                                   
 8009574:	c3 a0 00 00 	ret                                            
                                                                      

0800c154 <_POSIX_Threads_cancel_run>: #include <rtems/posix/threadsup.h> void _POSIX_Threads_cancel_run( Thread_Control *the_thread ) {
 800c154:	37 9c ff ec 	addi sp,sp,-20                                 
 800c158:	5b 8b 00 14 	sw (sp+20),r11                                 
 800c15c:	5b 8c 00 10 	sw (sp+16),r12                                 
 800c160:	5b 8d 00 0c 	sw (sp+12),r13                                 
 800c164:	5b 8e 00 08 	sw (sp+8),r14                                  
 800c168:	5b 9d 00 04 	sw (sp+4),ra                                   
  POSIX_Cancel_Handler_control      *handler;                         
  Chain_Control                     *handler_stack;                   
  POSIX_API_Control                 *thread_support;                  
  ISR_Level                          level;                           
                                                                      
  thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];    
 800c16c:	28 2c 01 2c 	lw r12,(r1+300)                                
                                                                      
  handler_stack = &thread_support->Cancellation_Handlers;             
                                                                      
  thread_support->cancelability_state = PTHREAD_CANCEL_DISABLE;       
 800c170:	34 01 00 01 	mvi r1,1                                       
                                                                      
  while ( !_Chain_Is_empty( handler_stack ) ) {                       
 800c174:	29 82 00 e0 	lw r2,(r12+224)                                
                                                                      
  thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];    
                                                                      
  handler_stack = &thread_support->Cancellation_Handlers;             
                                                                      
  thread_support->cancelability_state = PTHREAD_CANCEL_DISABLE;       
 800c178:	59 81 00 d4 	sw (r12+212),r1                                
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 800c17c:	35 8d 00 e4 	addi r13,r12,228                               
                                                                      
  while ( !_Chain_Is_empty( handler_stack ) ) {                       
 800c180:	44 4d 00 12 	be r2,r13,800c1c8 <_POSIX_Threads_cancel_run+0x74>
    _ISR_Disable( level );                                            
 800c184:	34 0e ff fe 	mvi r14,-2                                     
 800c188:	90 00 08 00 	rcsr r1,IE                                     
 800c18c:	a0 2e 10 00 	and r2,r1,r14                                  
 800c190:	d0 02 00 00 	wcsr IE,r2                                     
      handler = (POSIX_Cancel_Handler_control *)                      
 800c194:	29 ab 00 04 	lw r11,(r13+4)                                 
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
 800c198:	29 63 00 00 	lw r3,(r11+0)                                  
  previous       = the_node->previous;                                
 800c19c:	29 62 00 04 	lw r2,(r11+4)                                  
  next->previous = previous;                                          
 800c1a0:	58 62 00 04 	sw (r3+4),r2                                   
  previous->next = next;                                              
 800c1a4:	58 43 00 00 	sw (r2+0),r3                                   
           _Chain_Tail( handler_stack )->previous;                    
      _Chain_Extract_unprotected( &handler->Node );                   
    _ISR_Enable( level );                                             
 800c1a8:	d0 01 00 00 	wcsr IE,r1                                     
                                                                      
    (*handler->routine)( handler->arg );                              
 800c1ac:	29 62 00 08 	lw r2,(r11+8)                                  
 800c1b0:	29 61 00 0c 	lw r1,(r11+12)                                 
 800c1b4:	d8 40 00 00 	call r2                                        
                                                                      
    _Workspace_Free( handler );                                       
 800c1b8:	b9 60 08 00 	mv r1,r11                                      
 800c1bc:	fb ff eb 35 	calli 8006e90 <_Workspace_Free>                
                                                                      
  handler_stack = &thread_support->Cancellation_Handlers;             
                                                                      
  thread_support->cancelability_state = PTHREAD_CANCEL_DISABLE;       
                                                                      
  while ( !_Chain_Is_empty( handler_stack ) ) {                       
 800c1c0:	29 81 00 e0 	lw r1,(r12+224)                                
 800c1c4:	5c 2d ff f1 	bne r1,r13,800c188 <_POSIX_Threads_cancel_run+0x34><== NEVER TAKEN
                                                                      
    (*handler->routine)( handler->arg );                              
                                                                      
    _Workspace_Free( handler );                                       
  }                                                                   
}                                                                     
 800c1c8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800c1cc:	2b 8b 00 14 	lw r11,(sp+20)                                 
 800c1d0:	2b 8c 00 10 	lw r12,(sp+16)                                 
 800c1d4:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800c1d8:	2b 8e 00 08 	lw r14,(sp+8)                                  
 800c1dc:	37 9c 00 14 	addi sp,sp,20                                  
 800c1e0:	c3 a0 00 00 	ret                                            
                                                                      

08003554 <_POSIX_Timer_TSR>: * This is the operation that is run when a timer expires */ void _POSIX_Timer_TSR( Objects_Id timer __attribute__((unused)), void *data) {
 8003554:	37 9c ff f8 	addi sp,sp,-8                                  
 8003558:	5b 8b 00 08 	sw (sp+8),r11                                  
 800355c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003560:	b8 40 58 00 	mv r11,r2                                      
  bool                 activated;                                     
                                                                      
  ptimer = (POSIX_Timer_Control *)data;                               
                                                                      
  /* Increment the number of expirations. */                          
  ptimer->overrun = ptimer->overrun + 1;                              
 8003564:	28 42 00 68 	lw r2,(r2+104)                                 
                                                                      
  /* The timer must be reprogrammed */                                
  if ( ( ptimer->timer_data.it_interval.tv_sec  != 0 ) ||             
 8003568:	29 61 00 54 	lw r1,(r11+84)                                 
  bool                 activated;                                     
                                                                      
  ptimer = (POSIX_Timer_Control *)data;                               
                                                                      
  /* Increment the number of expirations. */                          
  ptimer->overrun = ptimer->overrun + 1;                              
 800356c:	34 42 00 01 	addi r2,r2,1                                   
 8003570:	59 62 00 68 	sw (r11+104),r2                                
                                                                      
  /* The timer must be reprogrammed */                                
  if ( ( ptimer->timer_data.it_interval.tv_sec  != 0 ) ||             
 8003574:	5c 20 00 0d 	bne r1,r0,80035a8 <_POSIX_Timer_TSR+0x54>      
 8003578:	29 62 00 58 	lw r2,(r11+88)                                 
 800357c:	5c 41 00 0b 	bne r2,r1,80035a8 <_POSIX_Timer_TSR+0x54>      <== ALWAYS TAKEN
                                                                      
    /* The state really did not change but just to be safe */         
    ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;                     
  } else {                                                            
   /* Indicates that the timer is stopped */                          
   ptimer->state = POSIX_TIMER_STATE_CREATE_STOP;                     
 8003580:	34 01 00 04 	mvi r1,4                                       <== NOT EXECUTED
 8003584:	31 61 00 3c 	sb (r11+60),r1                                 <== NOT EXECUTED
  /*                                                                  
   * The sending of the signal to the process running the handling function
   * specified for that signal is simulated                           
   */                                                                 
                                                                      
  if ( pthread_kill ( ptimer->thread_id, ptimer->inf.sigev_signo ) ) {
 8003588:	29 61 00 38 	lw r1,(r11+56)                                 
 800358c:	29 62 00 44 	lw r2,(r11+68)                                 
 8003590:	f8 00 19 95 	calli 8009be4 <pthread_kill>                   
  }                                                                   
                                                                      
  /* After the signal handler returns, the count of expirations of the
   * timer must be set to 0.                                          
   */                                                                 
  ptimer->overrun = 0;                                                
 8003594:	59 60 00 68 	sw (r11+104),r0                                
}                                                                     
 8003598:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800359c:	2b 8b 00 08 	lw r11,(sp+8)                                  
 80035a0:	37 9c 00 08 	addi sp,sp,8                                   
 80035a4:	c3 a0 00 00 	ret                                            
  ptimer->overrun = ptimer->overrun + 1;                              
                                                                      
  /* The timer must be reprogrammed */                                
  if ( ( ptimer->timer_data.it_interval.tv_sec  != 0 ) ||             
       ( ptimer->timer_data.it_interval.tv_nsec != 0 ) ) {            
    activated = _POSIX_Timer_Insert_helper(                           
 80035a8:	29 62 00 64 	lw r2,(r11+100)                                
 80035ac:	29 63 00 08 	lw r3,(r11+8)                                  
 80035b0:	78 04 08 00 	mvhi r4,0x800                                  
 80035b4:	35 61 00 10 	addi r1,r11,16                                 
 80035b8:	38 84 35 54 	ori r4,r4,0x3554                               
 80035bc:	b9 60 28 00 	mv r5,r11                                      
 80035c0:	f8 00 1a ea 	calli 800a168 <_POSIX_Timer_Insert_helper>     
      ptimer->ticks,                                                  
      ptimer->Object.id,                                              
      _POSIX_Timer_TSR,                                               
      ptimer                                                          
    );                                                                
    if ( !activated )                                                 
 80035c4:	44 20 ff f5 	be r1,r0,8003598 <_POSIX_Timer_TSR+0x44>       <== NEVER TAKEN
      return;                                                         
                                                                      
    /* Store the time when the timer was started again */             
    _TOD_Get( &ptimer->time );                                        
 80035c8:	35 61 00 6c 	addi r1,r11,108                                
 80035cc:	f8 00 04 ab 	calli 8004878 <_TOD_Get>                       
                                                                      
    /* The state really did not change but just to be safe */         
    ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;                     
 80035d0:	34 01 00 03 	mvi r1,3                                       
 80035d4:	31 61 00 3c 	sb (r11+60),r1                                 
 80035d8:	e3 ff ff ec 	bi 8003588 <_POSIX_Timer_TSR+0x34>             
                                                                      

0800c2f8 <_POSIX_signals_Check_signal>: bool _POSIX_signals_Check_signal( POSIX_API_Control *api, int signo, bool is_global ) {
 800c2f8:	37 9c ff e0 	addi sp,sp,-32                                 
 800c2fc:	5b 8b 00 14 	sw (sp+20),r11                                 
 800c300:	5b 8c 00 10 	sw (sp+16),r12                                 
 800c304:	5b 8d 00 0c 	sw (sp+12),r13                                 
 800c308:	5b 8e 00 08 	sw (sp+8),r14                                  
 800c30c:	5b 9d 00 04 	sw (sp+4),ra                                   
  siginfo_t                   siginfo_struct;                         
  sigset_t                    saved_signals_blocked;                  
                                                                      
  if ( ! _POSIX_signals_Clear_signals( api, signo, &siginfo_struct,   
 800c310:	37 8d 00 18 	addi r13,sp,24                                 
bool    _POSIX_signals_Check_signal(                                  
  POSIX_API_Control  *api,                                            
  int                 signo,                                          
  bool                is_global                                       
)                                                                     
{                                                                     
 800c314:	20 64 00 ff 	andi r4,r3,0xff                                
  siginfo_t                   siginfo_struct;                         
  sigset_t                    saved_signals_blocked;                  
                                                                      
  if ( ! _POSIX_signals_Clear_signals( api, signo, &siginfo_struct,   
 800c318:	34 05 00 01 	mvi r5,1                                       
 800c31c:	b9 a0 18 00 	mv r3,r13                                      
bool    _POSIX_signals_Check_signal(                                  
  POSIX_API_Control  *api,                                            
  int                 signo,                                          
  bool                is_global                                       
)                                                                     
{                                                                     
 800c320:	b8 20 60 00 	mv r12,r1                                      
 800c324:	b8 40 58 00 	mv r11,r2                                      
  siginfo_t                   siginfo_struct;                         
  sigset_t                    saved_signals_blocked;                  
                                                                      
  if ( ! _POSIX_signals_Clear_signals( api, signo, &siginfo_struct,   
 800c328:	f8 00 00 25 	calli 800c3bc <_POSIX_signals_Clear_signals>   
                                       is_global, true ) )            
    return false;                                                     
 800c32c:	34 06 00 00 	mvi r6,0                                       
)                                                                     
{                                                                     
  siginfo_t                   siginfo_struct;                         
  sigset_t                    saved_signals_blocked;                  
                                                                      
  if ( ! _POSIX_signals_Clear_signals( api, signo, &siginfo_struct,   
 800c330:	44 20 00 16 	be r1,r0,800c388 <_POSIX_signals_Check_signal+0x90>
  #endif                                                              
                                                                      
  /*                                                                  
   *  Just to prevent sending a signal which is currently being ignored.
   */                                                                 
  if ( _POSIX_signals_Vectors[ signo ].sa_handler == SIG_IGN )        
 800c334:	b5 6b 20 00 	add r4,r11,r11                                 
 800c338:	b4 8b 20 00 	add r4,r4,r11                                  
 800c33c:	78 05 08 01 	mvhi r5,0x801                                  
 800c340:	b4 84 20 00 	add r4,r4,r4                                   
 800c344:	38 a5 4d a8 	ori r5,r5,0x4da8                               
 800c348:	b4 84 20 00 	add r4,r4,r4                                   
 800c34c:	b4 a4 20 00 	add r4,r5,r4                                   
 800c350:	28 85 00 08 	lw r5,(r4+8)                                   
 800c354:	34 01 00 01 	mvi r1,1                                       
 800c358:	44 a1 00 0c 	be r5,r1,800c388 <_POSIX_signals_Check_signal+0x90><== NEVER TAKEN
    return false;                                                     
                                                                      
  /*                                                                  
   *  Block the signals requested in sa_mask                          
   */                                                                 
  saved_signals_blocked = api->signals_blocked;                       
 800c35c:	29 8e 00 cc 	lw r14,(r12+204)                               
  api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask;    
 800c360:	28 81 00 04 	lw r1,(r4+4)                                   
                                                                      
  /*                                                                  
   *  Here, the signal handler function executes                      
   */                                                                 
  switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) {               
 800c364:	28 82 00 00 	lw r2,(r4+0)                                   
                                                                      
  /*                                                                  
   *  Block the signals requested in sa_mask                          
   */                                                                 
  saved_signals_blocked = api->signals_blocked;                       
  api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask;    
 800c368:	b8 2e 08 00 	or r1,r1,r14                                   
 800c36c:	59 81 00 cc 	sw (r12+204),r1                                
                                                                      
  /*                                                                  
   *  Here, the signal handler function executes                      
   */                                                                 
  switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) {               
 800c370:	34 01 00 02 	mvi r1,2                                       
 800c374:	44 41 00 0d 	be r2,r1,800c3a8 <_POSIX_signals_Check_signal+0xb0>
        &siginfo_struct,                                              
        NULL        /* context is undefined per 1003.1b-1993, p. 66 */
      );                                                              
      break;                                                          
    default:                                                          
      (*_POSIX_signals_Vectors[ signo ].sa_handler)( signo );         
 800c378:	b9 60 08 00 	mv r1,r11                                      
 800c37c:	d8 a0 00 00 	call r5                                        
  }                                                                   
                                                                      
  /*                                                                  
   *  Restore the previous set of blocked signals                     
   */                                                                 
  api->signals_blocked = saved_signals_blocked;                       
 800c380:	59 8e 00 cc 	sw (r12+204),r14                               
                                                                      
  return true;                                                        
 800c384:	34 06 00 01 	mvi r6,1                                       
}                                                                     
 800c388:	b8 c0 08 00 	mv r1,r6                                       
 800c38c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800c390:	2b 8b 00 14 	lw r11,(sp+20)                                 
 800c394:	2b 8c 00 10 	lw r12,(sp+16)                                 
 800c398:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800c39c:	2b 8e 00 08 	lw r14,(sp+8)                                  
 800c3a0:	37 9c 00 20 	addi sp,sp,32                                  
 800c3a4:	c3 a0 00 00 	ret                                            
  /*                                                                  
   *  Here, the signal handler function executes                      
   */                                                                 
  switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) {               
    case SA_SIGINFO:                                                  
      (*_POSIX_signals_Vectors[ signo ].sa_sigaction)(                
 800c3a8:	b9 60 08 00 	mv r1,r11                                      
 800c3ac:	b9 a0 10 00 	mv r2,r13                                      
 800c3b0:	34 03 00 00 	mvi r3,0                                       
 800c3b4:	d8 a0 00 00 	call r5                                        
        signo,                                                        
        &siginfo_struct,                                              
        NULL        /* context is undefined per 1003.1b-1993, p. 66 */
      );                                                              
      break;                                                          
 800c3b8:	e3 ff ff f2 	bi 800c380 <_POSIX_signals_Check_signal+0x88>  
                                                                      

0800cb9c <_POSIX_signals_Clear_process_signals>: */ void _POSIX_signals_Clear_process_signals( int signo ) {
 800cb9c:	37 9c ff f4 	addi sp,sp,-12                                 
 800cba0:	5b 8b 00 0c 	sw (sp+12),r11                                 
 800cba4:	5b 8c 00 08 	sw (sp+8),r12                                  
 800cba8:	5b 9d 00 04 	sw (sp+4),ra                                   
 800cbac:	b8 20 10 00 	mv r2,r1                                       
  clear_signal = true;                                                
  mask         = signo_to_mask( signo );                              
                                                                      
  ISR_Level  level;                                                   
                                                                      
  _ISR_Disable( level );                                              
 800cbb0:	90 00 60 00 	rcsr r12,IE                                    
 800cbb4:	34 01 ff fe 	mvi r1,-2                                      
 800cbb8:	a1 81 08 00 	and r1,r12,r1                                  
 800cbbc:	d0 01 00 00 	wcsr IE,r1                                     
    if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) {   
 800cbc0:	b4 42 20 00 	add r4,r2,r2                                   
 800cbc4:	b4 82 20 00 	add r4,r4,r2                                   
 800cbc8:	78 01 08 01 	mvhi r1,0x801                                  
 800cbcc:	b4 84 18 00 	add r3,r4,r4                                   
 800cbd0:	38 21 4d a8 	ori r1,r1,0x4da8                               
 800cbd4:	b4 63 18 00 	add r3,r3,r3                                   
 800cbd8:	b4 23 18 00 	add r3,r1,r3                                   
 800cbdc:	28 63 00 00 	lw r3,(r3+0)                                   
 800cbe0:	34 01 00 02 	mvi r1,2                                       
 800cbe4:	44 61 00 10 	be r3,r1,800cc24 <_POSIX_signals_Clear_process_signals+0x88>
 800cbe8:	34 42 ff ff 	addi r2,r2,-1                                  
      if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) )     
       clear_signal = false;                                          
    }                                                                 
    if ( clear_signal ) {                                             
      _POSIX_signals_Pending &= ~mask;                                
 800cbec:	78 0b 08 01 	mvhi r11,0x801                                 
 800cbf0:	34 01 00 01 	mvi r1,1                                       
 800cbf4:	f8 00 14 ec 	calli 8011fa4 <__ashlsi3>                      
 800cbf8:	39 6b 4f 9c 	ori r11,r11,0x4f9c                             
 800cbfc:	29 62 00 00 	lw r2,(r11+0)                                  
 800cc00:	a4 20 08 00 	not r1,r1                                      
 800cc04:	a0 22 08 00 	and r1,r1,r2                                   
 800cc08:	59 61 00 00 	sw (r11+0),r1                                  
    }                                                                 
  _ISR_Enable( level );                                               
 800cc0c:	d0 0c 00 00 	wcsr IE,r12                                    
}                                                                     
 800cc10:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800cc14:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 800cc18:	2b 8c 00 08 	lw r12,(sp+8)                                  
 800cc1c:	37 9c 00 0c 	addi sp,sp,12                                  
 800cc20:	c3 a0 00 00 	ret                                            
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
 800cc24:	78 01 08 01 	mvhi r1,0x801                                  
 800cc28:	b4 84 20 00 	add r4,r4,r4                                   
 800cc2c:	38 21 4f a0 	ori r1,r1,0x4fa0                               
 800cc30:	b4 84 20 00 	add r4,r4,r4                                   
 800cc34:	b4 24 20 00 	add r4,r1,r4                                   
                                                                      
  ISR_Level  level;                                                   
                                                                      
  _ISR_Disable( level );                                              
    if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) {   
      if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) )     
 800cc38:	28 81 00 00 	lw r1,(r4+0)                                   
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 800cc3c:	34 84 00 04 	addi r4,r4,4                                   
 800cc40:	44 24 ff ea 	be r1,r4,800cbe8 <_POSIX_signals_Clear_process_signals+0x4c><== ALWAYS TAKEN
       clear_signal = false;                                          
    }                                                                 
    if ( clear_signal ) {                                             
      _POSIX_signals_Pending &= ~mask;                                
    }                                                                 
  _ISR_Enable( level );                                               
 800cc44:	d0 0c 00 00 	wcsr IE,r12                                    <== NOT EXECUTED
}                                                                     
 800cc48:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 800cc4c:	2b 8b 00 0c 	lw r11,(sp+12)                                 <== NOT EXECUTED
 800cc50:	2b 8c 00 08 	lw r12,(sp+8)                                  <== NOT EXECUTED
 800cc54:	37 9c 00 0c 	addi sp,sp,12                                  <== NOT EXECUTED
 800cc58:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

0800421c <_POSIX_signals_Get_highest>: #include <rtems/score/isr.h> int _POSIX_signals_Get_highest( sigset_t set ) {
 800421c:	37 9c ff f0 	addi sp,sp,-16                                 
 8004220:	5b 8b 00 10 	sw (sp+16),r11                                 
 8004224:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8004228:	5b 8d 00 08 	sw (sp+8),r13                                  
 800422c:	5b 9d 00 04 	sw (sp+4),ra                                   
  int signo;                                                          
                                                                      
  for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {            
 8004230:	34 0b 00 1b 	mvi r11,27                                     
#include <rtems/score/isr.h>                                          
                                                                      
int _POSIX_signals_Get_highest(                                       
  sigset_t   set                                                      
)                                                                     
{                                                                     
 8004234:	b8 20 60 00 	mv r12,r1                                      
  int signo;                                                          
                                                                      
  for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {            
 8004238:	34 0d 00 20 	mvi r13,32                                     
 800423c:	35 62 ff ff 	addi r2,r11,-1                                 
 8004240:	34 01 00 01 	mvi r1,1                                       
 8004244:	f8 00 66 40 	calli 801db44 <__ashlsi3>                      
    if ( set & signo_to_mask( signo ) ) {                             
 8004248:	a0 2c 08 00 	and r1,r1,r12                                  
 800424c:	5c 20 00 0d 	bne r1,r0,8004280 <_POSIX_signals_Get_highest+0x64><== NEVER TAKEN
  sigset_t   set                                                      
)                                                                     
{                                                                     
  int signo;                                                          
                                                                      
  for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {            
 8004250:	35 6b 00 01 	addi r11,r11,1                                 
 8004254:	5d 6d ff fa 	bne r11,r13,800423c <_POSIX_signals_Get_highest+0x20>
 8004258:	34 0b 00 01 	mvi r11,1                                      
   */                                                                 
                                                                      
  #if (SIGHUP != 1)                                                   
    #error "Assumption that SIGHUP==1 violated!!"                     
  #endif                                                              
  for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {        
 800425c:	34 0d 00 1b 	mvi r13,27                                     
 8004260:	e0 00 00 03 	bi 800426c <_POSIX_signals_Get_highest+0x50>   
 8004264:	35 6b 00 01 	addi r11,r11,1                                 
 8004268:	45 6d 00 06 	be r11,r13,8004280 <_POSIX_signals_Get_highest+0x64><== NEVER TAKEN
 800426c:	35 62 ff ff 	addi r2,r11,-1                                 
 8004270:	34 01 00 01 	mvi r1,1                                       
 8004274:	f8 00 66 34 	calli 801db44 <__ashlsi3>                      
    if ( set & signo_to_mask( signo ) ) {                             
 8004278:	a0 2c 10 00 	and r2,r1,r12                                  
 800427c:	44 40 ff fa 	be r2,r0,8004264 <_POSIX_signals_Get_highest+0x48>
   *  a return 0.  This routine will NOT be called unless a signal    
   *  is pending in the set passed in.                                
   */                                                                 
found_it:                                                             
  return signo;                                                       
}                                                                     
 8004280:	b9 60 08 00 	mv r1,r11                                      
 8004284:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004288:	2b 8b 00 10 	lw r11,(sp+16)                                 
 800428c:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8004290:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8004294:	37 9c 00 10 	addi sp,sp,16                                  
 8004298:	c3 a0 00 00 	ret                                            
                                                                      

0802611c <_POSIX_signals_Unblock_thread>: bool _POSIX_signals_Unblock_thread( Thread_Control *the_thread, int signo, siginfo_t *info ) {
 802611c:	37 9c ff f0 	addi sp,sp,-16                                 
 8026120:	5b 8b 00 10 	sw (sp+16),r11                                 
 8026124:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8026128:	5b 8d 00 08 	sw (sp+8),r13                                  
 802612c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8026130:	b8 20 58 00 	mv r11,r1                                      
 8026134:	b8 40 68 00 	mv r13,r2                                      
 8026138:	34 01 00 01 	mvi r1,1                                       
 802613c:	34 42 ff ff 	addi r2,r2,-1                                  
 8026140:	b8 60 60 00 	mv r12,r3                                      
 8026144:	fb ff 70 08 	calli 8002164 <__ashlsi3>                      
                                                                      
  /*                                                                  
   *  Is the thread is specifically waiting for a signal?             
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
 8026148:	78 02 08 02 	mvhi r2,0x802                                  
 802614c:	38 42 79 a8 	ori r2,r2,0x79a8                               
 8026150:	29 65 00 10 	lw r5,(r11+16)                                 
 8026154:	28 43 00 00 	lw r3,(r2+0)                                   
{                                                                     
  POSIX_API_Control  *api;                                            
  sigset_t            mask;                                           
  siginfo_t          *the_info = NULL;                                
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
 8026158:	29 64 01 2c 	lw r4,(r11+300)                                
                                                                      
  /*                                                                  
   *  Is the thread is specifically waiting for a signal?             
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
 802615c:	a0 a3 10 00 	and r2,r5,r3                                   
 8026160:	44 43 00 1d 	be r2,r3,80261d4 <_POSIX_signals_Unblock_thread+0xb8>
  }                                                                   
                                                                      
  /*                                                                  
   *  Thread is not waiting due to a sigwait.                         
   */                                                                 
  if ( ~api->signals_blocked & mask ) {                               
 8026164:	28 82 00 cc 	lw r2,(r4+204)                                 
    } else if ( the_thread->current_state == STATES_READY ) {         
      if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
	_Context_Switch_necessary = true;                                    
    }                                                                 
  }                                                                   
  return false;                                                       
 8026168:	34 04 00 00 	mvi r4,0                                       
  }                                                                   
                                                                      
  /*                                                                  
   *  Thread is not waiting due to a sigwait.                         
   */                                                                 
  if ( ~api->signals_blocked & mask ) {                               
 802616c:	a4 40 10 00 	not r2,r2                                      
 8026170:	a0 22 08 00 	and r1,r1,r2                                   
 8026174:	44 20 00 11 	be r1,r0,80261b8 <_POSIX_signals_Unblock_thread+0x9c>
     *      it is not blocked, THEN                                   
     *        we need to dispatch at the end of this ISR.             
     *    + Any other combination, do nothing.                        
     */                                                               
                                                                      
    if ( the_thread->current_state & STATES_INTERRUPTIBLE_BY_SIGNAL ) {
 8026178:	78 01 10 00 	mvhi r1,0x1000                                 
 802617c:	a0 a1 08 00 	and r1,r5,r1                                   
 8026180:	44 20 00 2c 	be r1,r0,8026230 <_POSIX_signals_Unblock_thread+0x114>
      the_thread->Wait.return_code = EINTR;                           
 8026184:	34 01 00 04 	mvi r1,4                                       
 8026188:	59 61 00 34 	sw (r11+52),r1                                 
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_delaying (                       
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_DELAYING);                             
 802618c:	20 a5 00 08 	andi r5,r5,0x8                                 
      #if 0                                                           
	if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) ) 
	  _Thread_queue_Extract_with_proxy( the_thread );                    
	else                                                                 
      #endif                                                          
	  if ( _States_Is_delaying(the_thread->current_state) ){             
 8026190:	44 a0 00 0a 	be r5,r0,80261b8 <_POSIX_signals_Unblock_thread+0x9c><== NEVER TAKEN
	    if ( _Watchdog_Is_active( &the_thread->Timer ) )                 
 8026194:	29 62 00 50 	lw r2,(r11+80)                                 
 8026198:	34 01 00 02 	mvi r1,2                                       
 802619c:	44 41 00 3a 	be r2,r1,8026284 <_POSIX_signals_Unblock_thread+0x168><== ALWAYS TAKEN
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
 80261a0:	78 01 08 02 	mvhi r1,0x802                                  
 80261a4:	38 21 75 94 	ori r1,r1,0x7594                               
 80261a8:	28 22 00 00 	lw r2,(r1+0)                                   
 80261ac:	b9 60 08 00 	mv r1,r11                                      
 80261b0:	fb ff 98 41 	calli 800c2b4 <_Thread_Clear_state>            
    } else if ( the_thread->current_state == STATES_READY ) {         
      if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
	_Context_Switch_necessary = true;                                    
    }                                                                 
  }                                                                   
  return false;                                                       
 80261b4:	34 04 00 00 	mvi r4,0                                       
}                                                                     
 80261b8:	b8 80 08 00 	mv r1,r4                                       
 80261bc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80261c0:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80261c4:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80261c8:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80261cc:	37 9c 00 10 	addi sp,sp,16                                  
 80261d0:	c3 a0 00 00 	ret                                            
   *  Is the thread is specifically waiting for a signal?             
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
                                                                      
    if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) {
 80261d4:	29 62 00 30 	lw r2,(r11+48)                                 
 80261d8:	a0 22 10 00 	and r2,r1,r2                                   
 80261dc:	44 40 00 1f 	be r2,r0,8026258 <_POSIX_signals_Unblock_thread+0x13c>
      the_thread->Wait.return_code = EINTR;                           
 80261e0:	34 01 00 04 	mvi r1,4                                       
 80261e4:	59 61 00 34 	sw (r11+52),r1                                 
                                                                      
      the_info = (siginfo_t *) the_thread->Wait.return_argument;      
 80261e8:	29 61 00 28 	lw r1,(r11+40)                                 
                                                                      
      if ( !info ) {                                                  
 80261ec:	45 80 00 21 	be r12,r0,8026270 <_POSIX_signals_Unblock_thread+0x154>
        the_info->si_signo = signo;                                   
        the_info->si_code = SI_USER;                                  
        the_info->si_value.sival_int = 0;                             
      } else {                                                        
        *the_info = *info;                                            
 80261f0:	29 82 00 00 	lw r2,(r12+0)                                  
 80261f4:	58 22 00 00 	sw (r1+0),r2                                   
 80261f8:	29 82 00 04 	lw r2,(r12+4)                                  
 80261fc:	58 22 00 04 	sw (r1+4),r2                                   
 8026200:	29 82 00 08 	lw r2,(r12+8)                                  
 8026204:	58 22 00 08 	sw (r1+8),r2                                   
      }                                                               
                                                                      
      _Thread_queue_Extract_with_proxy( the_thread );                 
 8026208:	b9 60 08 00 	mv r1,r11                                      
 802620c:	fb ff 9b 8b 	calli 800d038 <_Thread_queue_Extract_with_proxy>
      return true;                                                    
 8026210:	34 04 00 01 	mvi r4,1                                       
      if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
	_Context_Switch_necessary = true;                                    
    }                                                                 
  }                                                                   
  return false;                                                       
}                                                                     
 8026214:	b8 80 08 00 	mv r1,r4                                       
 8026218:	2b 9d 00 04 	lw ra,(sp+4)                                   
 802621c:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8026220:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8026224:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8026228:	37 9c 00 10 	addi sp,sp,16                                  
 802622c:	c3 a0 00 00 	ret                                            
	  if ( _States_Is_delaying(the_thread->current_state) ){             
	    if ( _Watchdog_Is_active( &the_thread->Timer ) )                 
	      (void) _Watchdog_Remove( &the_thread->Timer );                 
	    _Thread_Unblock( the_thread );                                   
	  }                                                                  
    } else if ( the_thread->current_state == STATES_READY ) {         
 8026230:	5c a4 ff e2 	bne r5,r4,80261b8 <_POSIX_signals_Unblock_thread+0x9c><== NEVER TAKEN
      if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
 8026234:	78 01 08 02 	mvhi r1,0x802                                  
 8026238:	38 21 9e ec 	ori r1,r1,0x9eec                               
 802623c:	28 22 00 08 	lw r2,(r1+8)                                   
 8026240:	44 44 ff de 	be r2,r4,80261b8 <_POSIX_signals_Unblock_thread+0x9c>
 8026244:	28 22 00 0c 	lw r2,(r1+12)                                  
 8026248:	5d 62 ff dc 	bne r11,r2,80261b8 <_POSIX_signals_Unblock_thread+0x9c><== NEVER TAKEN
	_Context_Switch_necessary = true;                                    
 802624c:	34 02 00 01 	mvi r2,1                                       
 8026250:	30 22 00 18 	sb (r1+24),r2                                  
 8026254:	e3 ff ff d9 	bi 80261b8 <_POSIX_signals_Unblock_thread+0x9c>
   *  Is the thread is specifically waiting for a signal?             
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
                                                                      
    if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) {
 8026258:	28 82 00 cc 	lw r2,(r4+204)                                 
                                                                      
    /*                                                                
     *  This should only be reached via pthread_kill().               
     */                                                               
                                                                      
    return false;                                                     
 802625c:	34 04 00 00 	mvi r4,0                                       
   *  Is the thread is specifically waiting for a signal?             
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
                                                                      
    if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) {
 8026260:	a4 40 10 00 	not r2,r2                                      
 8026264:	a0 22 08 00 	and r1,r1,r2                                   
 8026268:	5c 24 ff de 	bne r1,r4,80261e0 <_POSIX_signals_Unblock_thread+0xc4>
 802626c:	e3 ff ff d3 	bi 80261b8 <_POSIX_signals_Unblock_thread+0x9c>
                                                                      
      the_info = (siginfo_t *) the_thread->Wait.return_argument;      
                                                                      
      if ( !info ) {                                                  
        the_info->si_signo = signo;                                   
        the_info->si_code = SI_USER;                                  
 8026270:	34 02 00 01 	mvi r2,1                                       
      the_thread->Wait.return_code = EINTR;                           
                                                                      
      the_info = (siginfo_t *) the_thread->Wait.return_argument;      
                                                                      
      if ( !info ) {                                                  
        the_info->si_signo = signo;                                   
 8026274:	58 2d 00 00 	sw (r1+0),r13                                  
        the_info->si_code = SI_USER;                                  
 8026278:	58 22 00 04 	sw (r1+4),r2                                   
        the_info->si_value.sival_int = 0;                             
 802627c:	58 20 00 08 	sw (r1+8),r0                                   
 8026280:	e3 ff ff e2 	bi 8026208 <_POSIX_signals_Unblock_thread+0xec>
	  _Thread_queue_Extract_with_proxy( the_thread );                    
	else                                                                 
      #endif                                                          
	  if ( _States_Is_delaying(the_thread->current_state) ){             
	    if ( _Watchdog_Is_active( &the_thread->Timer ) )                 
	      (void) _Watchdog_Remove( &the_thread->Timer );                 
 8026284:	35 61 00 48 	addi r1,r11,72                                 
 8026288:	fb ff 9e e3 	calli 800de14 <_Watchdog_Remove>               
 802628c:	e3 ff ff c5 	bi 80261a0 <_POSIX_signals_Unblock_thread+0x84>
                                                                      

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

08009a00 <_RTEMS_tasks_Post_switch_extension>: */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) {
 8009a00:	37 9c ff f0 	addi sp,sp,-16                                 
 8009a04:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8009a08:	5b 8c 00 08 	sw (sp+8),r12                                  
 8009a0c:	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 ];                
 8009a10:	28 2b 01 28 	lw r11,(r1+296)                                
  if ( !api )                                                         
 8009a14:	45 60 00 1a 	be r11,r0,8009a7c <_RTEMS_tasks_Post_switch_extension+0x7c><== NEVER TAKEN
   *  Signal Processing                                               
   */                                                                 
                                                                      
  asr = &api->Signal;                                                 
                                                                      
  _ISR_Disable( level );                                              
 8009a18:	90 00 10 00 	rcsr r2,IE                                     
 8009a1c:	34 01 ff fe 	mvi r1,-2                                      
 8009a20:	a0 41 08 00 	and r1,r2,r1                                   
 8009a24:	d0 01 00 00 	wcsr IE,r1                                     
    signal_set = asr->signals_posted;                                 
 8009a28:	29 6c 00 14 	lw r12,(r11+20)                                
    asr->signals_posted = 0;                                          
 8009a2c:	59 60 00 14 	sw (r11+20),r0                                 
  _ISR_Enable( level );                                               
 8009a30:	d0 02 00 00 	wcsr IE,r2                                     
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
 8009a34:	45 80 00 12 	be r12,r0,8009a7c <_RTEMS_tasks_Post_switch_extension+0x7c>
    return;                                                           
                                                                      
  asr->nest_level += 1;                                               
 8009a38:	29 64 00 1c 	lw r4,(r11+28)                                 
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
 8009a3c:	29 61 00 10 	lw r1,(r11+16)                                 
 8009a40:	37 83 00 10 	addi r3,sp,16                                  
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
    return;                                                           
                                                                      
  asr->nest_level += 1;                                               
 8009a44:	34 84 00 01 	addi r4,r4,1                                   
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
 8009a48:	38 02 ff ff 	mvu r2,0xffff                                  
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
    return;                                                           
                                                                      
  asr->nest_level += 1;                                               
 8009a4c:	59 64 00 1c 	sw (r11+28),r4                                 
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
 8009a50:	f8 00 0a e9 	calli 800c5f4 <rtems_task_mode>                
                                                                      
  (*asr->handler)( signal_set );                                      
 8009a54:	29 62 00 0c 	lw r2,(r11+12)                                 
 8009a58:	b9 80 08 00 	mv r1,r12                                      
 8009a5c:	d8 40 00 00 	call r2                                        
                                                                      
  asr->nest_level -= 1;                                               
 8009a60:	29 63 00 1c 	lw r3,(r11+28)                                 
  rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );     
 8009a64:	2b 81 00 10 	lw r1,(sp+16)                                  
 8009a68:	38 02 ff ff 	mvu r2,0xffff                                  
  asr->nest_level += 1;                                               
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
                                                                      
  (*asr->handler)( signal_set );                                      
                                                                      
  asr->nest_level -= 1;                                               
 8009a6c:	34 63 ff ff 	addi r3,r3,-1                                  
 8009a70:	59 63 00 1c 	sw (r11+28),r3                                 
  rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );     
 8009a74:	37 83 00 10 	addi r3,sp,16                                  
 8009a78:	f8 00 0a df 	calli 800c5f4 <rtems_task_mode>                
                                                                      
}                                                                     
 8009a7c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009a80:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8009a84:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8009a88:	37 9c 00 10 	addi sp,sp,16                                  
 8009a8c:	c3 a0 00 00 	ret                                            
                                                                      

0800998c <_RTEMS_tasks_Switch_extension>: /* * Per Task Variables */ tvp = executing->task_variables;
 800998c:	28 21 01 34 	lw r1,(r1+308)                                 
  while (tvp) {                                                       
 8009990:	44 20 00 08 	be r1,r0,80099b0 <_RTEMS_tasks_Switch_extension+0x24>
    tvp->tval = *tvp->ptr;                                            
 8009994:	28 23 00 04 	lw r3,(r1+4)                                   
    *tvp->ptr = tvp->gval;                                            
 8009998:	28 24 00 08 	lw r4,(r1+8)                                   
   *  Per Task Variables                                              
   */                                                                 
                                                                      
  tvp = executing->task_variables;                                    
  while (tvp) {                                                       
    tvp->tval = *tvp->ptr;                                            
 800999c:	28 65 00 00 	lw r5,(r3+0)                                   
 80099a0:	58 25 00 0c 	sw (r1+12),r5                                  
    *tvp->ptr = tvp->gval;                                            
    tvp = (rtems_task_variable_t *)tvp->next;                         
 80099a4:	28 21 00 00 	lw r1,(r1+0)                                   
   */                                                                 
                                                                      
  tvp = executing->task_variables;                                    
  while (tvp) {                                                       
    tvp->tval = *tvp->ptr;                                            
    *tvp->ptr = tvp->gval;                                            
 80099a8:	58 64 00 00 	sw (r3+0),r4                                   
  /*                                                                  
   *  Per Task Variables                                              
   */                                                                 
                                                                      
  tvp = executing->task_variables;                                    
  while (tvp) {                                                       
 80099ac:	5c 20 ff fa 	bne r1,r0,8009994 <_RTEMS_tasks_Switch_extension+0x8><== NEVER TAKEN
    tvp->tval = *tvp->ptr;                                            
    *tvp->ptr = tvp->gval;                                            
    tvp = (rtems_task_variable_t *)tvp->next;                         
  }                                                                   
                                                                      
  tvp = heir->task_variables;                                         
 80099b0:	28 41 01 34 	lw r1,(r2+308)                                 
  while (tvp) {                                                       
 80099b4:	44 20 00 08 	be r1,r0,80099d4 <_RTEMS_tasks_Switch_extension+0x48>
    tvp->gval = *tvp->ptr;                                            
 80099b8:	28 22 00 04 	lw r2,(r1+4)                                   
    *tvp->ptr = tvp->tval;                                            
 80099bc:	28 23 00 0c 	lw r3,(r1+12)                                  
    tvp = (rtems_task_variable_t *)tvp->next;                         
  }                                                                   
                                                                      
  tvp = heir->task_variables;                                         
  while (tvp) {                                                       
    tvp->gval = *tvp->ptr;                                            
 80099c0:	28 44 00 00 	lw r4,(r2+0)                                   
 80099c4:	58 24 00 08 	sw (r1+8),r4                                   
    *tvp->ptr = tvp->tval;                                            
    tvp = (rtems_task_variable_t *)tvp->next;                         
 80099c8:	28 21 00 00 	lw r1,(r1+0)                                   
  }                                                                   
                                                                      
  tvp = heir->task_variables;                                         
  while (tvp) {                                                       
    tvp->gval = *tvp->ptr;                                            
    *tvp->ptr = tvp->tval;                                            
 80099cc:	58 43 00 00 	sw (r2+0),r3                                   
    *tvp->ptr = tvp->gval;                                            
    tvp = (rtems_task_variable_t *)tvp->next;                         
  }                                                                   
                                                                      
  tvp = heir->task_variables;                                         
  while (tvp) {                                                       
 80099d0:	5c 20 ff fa 	bne r1,r0,80099b8 <_RTEMS_tasks_Switch_extension+0x2c><== NEVER TAKEN
 80099d4:	c3 a0 00 00 	ret                                            
                                                                      

080048fc <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) {
 80048fc:	37 9c ff f4 	addi sp,sp,-12                                 
 8004900:	5b 8b 00 08 	sw (sp+8),r11                                  
 8004904:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004908:	b8 20 10 00 	mv r2,r1                                       
 800490c:	78 01 08 02 	mvhi r1,0x802                                  
 8004910:	38 21 18 90 	ori r1,r1,0x1890                               
 8004914:	37 83 00 0c 	addi r3,sp,12                                  
 8004918:	f8 00 09 2c 	calli 8006dc8 <_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 ) {                                               
 800491c:	2b 82 00 0c 	lw r2,(sp+12)                                  
 8004920:	b8 20 58 00 	mv r11,r1                                      
 8004924:	44 40 00 05 	be r2,r0,8004938 <_Rate_monotonic_Timeout+0x3c><== ALWAYS TAKEN
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
}                                                                     
 8004928:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 800492c:	2b 8b 00 08 	lw r11,(sp+8)                                  <== NOT EXECUTED
 8004930:	37 9c 00 0c 	addi sp,sp,12                                  <== NOT EXECUTED
 8004934:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
   */                                                                 
  the_period = _Rate_monotonic_Get( id, &location );                  
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      the_thread = the_period->owner;                                 
 8004938:	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);                   
 800493c:	28 23 00 10 	lw r3,(r1+16)                                  
 8004940:	20 63 40 00 	andi r3,r3,0x4000                              
      if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
 8004944:	44 62 00 04 	be r3,r2,8004954 <_Rate_monotonic_Timeout+0x58>
 8004948:	28 23 00 20 	lw r3,(r1+32)                                  
 800494c:	29 62 00 08 	lw r2,(r11+8)                                  
 8004950:	44 62 00 1a 	be r3,r2,80049b8 <_Rate_monotonic_Timeout+0xbc>
        _Thread_Unblock( the_thread );                                
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
      } else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) {
 8004954:	29 62 00 38 	lw r2,(r11+56)                                 
 8004958:	34 01 00 01 	mvi r1,1                                       
 800495c:	44 41 00 0c 	be r2,r1,800498c <_Rate_monotonic_Timeout+0x90><== NEVER TAKEN
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
      } else                                                          
        the_period->state = RATE_MONOTONIC_EXPIRED;                   
 8004960:	34 01 00 04 	mvi r1,4                                       
 8004964:	59 61 00 38 	sw (r11+56),r1                                 
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
 8004968:	78 01 08 02 	mvhi r1,0x802                                  
 800496c:	38 21 19 bc 	ori r1,r1,0x19bc                               
 8004970:	28 22 00 00 	lw r2,(r1+0)                                   
 8004974:	34 42 ff ff 	addi r2,r2,-1                                  
 8004978:	58 22 00 00 	sw (r1+0),r2                                   
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
}                                                                     
 800497c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004980:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8004984:	37 9c 00 0c 	addi sp,sp,12                                  
 8004988:	c3 a0 00 00 	ret                                            
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
      } else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) {
        the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING;    
 800498c:	34 02 00 03 	mvi r2,3                                       <== NOT EXECUTED
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
 8004990:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
      } else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) {
        the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING;    
 8004994:	59 62 00 38 	sw (r11+56),r2                                 <== NOT EXECUTED
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
 8004998:	fb ff fe 00 	calli 8004198 <_Rate_monotonic_Initiate_statistics>
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 800499c:	29 62 00 3c 	lw r2,(r11+60)                                 
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 80049a0:	78 01 08 02 	mvhi r1,0x802                                  
 80049a4:	38 21 1a 80 	ori r1,r1,0x1a80                               
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 80049a8:	59 62 00 1c 	sw (r11+28),r2                                 
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 80049ac:	35 62 00 10 	addi r2,r11,16                                 
 80049b0:	f8 00 12 09 	calli 80091d4 <_Watchdog_Insert>               
 80049b4:	e3 ff ff ed 	bi 8004968 <_Rate_monotonic_Timeout+0x6c>      
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
 80049b8:	78 03 08 01 	mvhi r3,0x801                                  
 80049bc:	38 63 ef e4 	ori r3,r3,0xefe4                               
 80049c0:	28 62 00 00 	lw r2,(r3+0)                                   
 80049c4:	f8 00 0a b5 	calli 8007498 <_Thread_Clear_state>            
      the_thread = the_period->owner;                                 
      if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
            the_thread->Wait.id == the_period->Object.id ) {          
        _Thread_Unblock( the_thread );                                
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
 80049c8:	b9 60 08 00 	mv r1,r11                                      
 80049cc:	e3 ff ff f3 	bi 8004998 <_Rate_monotonic_Timeout+0x9c>      
                                                                      

08004244 <_Rate_monotonic_Update_statistics>: void _Rate_monotonic_Update_statistics( Rate_monotonic_Control *the_period ) {
 8004244:	37 9c ff e0 	addi sp,sp,-32                                 
 8004248:	5b 8b 00 10 	sw (sp+16),r11                                 
 800424c:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8004250:	5b 8d 00 08 	sw (sp+8),r13                                  
 8004254:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004258:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  /*                                                                  
   *  Update the counts.                                              
   */                                                                 
  stats = &the_period->Statistics;                                    
  stats->count++;                                                     
 800425c:	28 21 00 54 	lw r1,(r1+84)                                  
                                                                      
  if ( the_period->state == RATE_MONOTONIC_EXPIRED )                  
 8004260:	29 62 00 38 	lw r2,(r11+56)                                 
                                                                      
  /*                                                                  
   *  Update the counts.                                              
   */                                                                 
  stats = &the_period->Statistics;                                    
  stats->count++;                                                     
 8004264:	34 21 00 01 	addi r1,r1,1                                   
 8004268:	59 61 00 54 	sw (r11+84),r1                                 
                                                                      
  if ( the_period->state == RATE_MONOTONIC_EXPIRED )                  
 800426c:	34 01 00 04 	mvi r1,4                                       
 8004270:	44 41 00 36 	be r2,r1,8004348 <_Rate_monotonic_Update_statistics+0x104>
                                                                      
  /*                                                                  
   *  Grab status for time statistics.                                
   */                                                                 
  valid_status =                                                      
    _Rate_monotonic_Get_status( the_period, &since_last_period, &executed );
 8004274:	37 8c 00 14 	addi r12,sp,20                                 
 8004278:	37 8d 00 1c 	addi r13,sp,28                                 
    stats->missed_count++;                                            
                                                                      
  /*                                                                  
   *  Grab status for time statistics.                                
   */                                                                 
  valid_status =                                                      
 800427c:	b9 60 08 00 	mv r1,r11                                      
 8004280:	b9 80 10 00 	mv r2,r12                                      
 8004284:	b9 a0 18 00 	mv r3,r13                                      
 8004288:	fb ff ff 8a 	calli 80040b0 <_Rate_monotonic_Get_status>     
    _Rate_monotonic_Get_status( the_period, &since_last_period, &executed );
  if (!valid_status)                                                  
 800428c:	5c 20 00 07 	bne r1,r0,80042a8 <_Rate_monotonic_Update_statistics+0x64><== ALWAYS TAKEN
      stats->min_wall_time = since_last_period;                       
                                                                      
    if ( since_last_period > stats->max_wall_time )                   
      stats->max_wall_time = since_last_period;                       
  #endif                                                              
}                                                                     
 8004290:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004294:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8004298:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 800429c:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80042a0:	37 9c 00 20 	addi sp,sp,32                                  
 80042a4:	c3 a0 00 00 	ret                                            
                                                                      
  /*                                                                  
   *  Update CPU time                                                 
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Add_to( &stats->total_cpu_time, &executed );           
 80042a8:	b9 a0 10 00 	mv r2,r13                                      
 80042ac:	35 61 00 6c 	addi r1,r11,108                                
 80042b0:	f8 00 11 cb 	calli 80089dc <_Timespec_Add_to>               
                                                                      
    if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) )    
 80042b4:	b9 a0 08 00 	mv r1,r13                                      
 80042b8:	35 62 00 5c 	addi r2,r11,92                                 
 80042bc:	f8 00 12 b4 	calli 8008d8c <_Timespec_Less_than>            
 80042c0:	44 20 00 05 	be r1,r0,80042d4 <_Rate_monotonic_Update_statistics+0x90>
      stats->min_cpu_time = executed;                                 
 80042c4:	2b 81 00 1c 	lw r1,(sp+28)                                  
 80042c8:	59 61 00 5c 	sw (r11+92),r1                                 
 80042cc:	2b 81 00 20 	lw r1,(sp+32)                                  
 80042d0:	59 61 00 60 	sw (r11+96),r1                                 
                                                                      
    if ( _Timestamp_Greater_than( &executed, &stats->max_cpu_time ) ) 
 80042d4:	b9 a0 08 00 	mv r1,r13                                      
 80042d8:	35 62 00 64 	addi r2,r11,100                                
 80042dc:	f8 00 12 a1 	calli 8008d60 <_Timespec_Greater_than>         
 80042e0:	44 20 00 05 	be r1,r0,80042f4 <_Rate_monotonic_Update_statistics+0xb0>
      stats->max_cpu_time = executed;                                 
 80042e4:	2b 81 00 1c 	lw r1,(sp+28)                                  
 80042e8:	59 61 00 64 	sw (r11+100),r1                                
 80042ec:	2b 81 00 20 	lw r1,(sp+32)                                  
 80042f0:	59 61 00 68 	sw (r11+104),r1                                
                                                                      
  /*                                                                  
   *  Update Wall time                                                
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Add_to( &stats->total_wall_time, &since_last_period ); 
 80042f4:	b9 80 10 00 	mv r2,r12                                      
 80042f8:	35 61 00 84 	addi r1,r11,132                                
 80042fc:	f8 00 11 b8 	calli 80089dc <_Timespec_Add_to>               
                                                                      
    if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) )
 8004300:	b9 80 08 00 	mv r1,r12                                      
 8004304:	35 62 00 74 	addi r2,r11,116                                
 8004308:	f8 00 12 a1 	calli 8008d8c <_Timespec_Less_than>            
 800430c:	5c 20 00 13 	bne r1,r0,8004358 <_Rate_monotonic_Update_statistics+0x114>
      stats->min_wall_time = since_last_period;                       
                                                                      
    if ( _Timestamp_Greater_than( &since_last_period, &stats->max_wall_time ) )
 8004310:	b9 80 08 00 	mv r1,r12                                      
 8004314:	35 62 00 7c 	addi r2,r11,124                                
 8004318:	f8 00 12 92 	calli 8008d60 <_Timespec_Greater_than>         
 800431c:	44 20 ff dd 	be r1,r0,8004290 <_Rate_monotonic_Update_statistics+0x4c>
      stats->max_wall_time = since_last_period;                       
 8004320:	2b 81 00 14 	lw r1,(sp+20)                                  
 8004324:	59 61 00 7c 	sw (r11+124),r1                                
 8004328:	2b 81 00 18 	lw r1,(sp+24)                                  
 800432c:	59 61 00 80 	sw (r11+128),r1                                
      stats->min_wall_time = since_last_period;                       
                                                                      
    if ( since_last_period > stats->max_wall_time )                   
      stats->max_wall_time = since_last_period;                       
  #endif                                                              
}                                                                     
 8004330:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004334:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8004338:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 800433c:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8004340:	37 9c 00 20 	addi sp,sp,32                                  
 8004344:	c3 a0 00 00 	ret                                            
   */                                                                 
  stats = &the_period->Statistics;                                    
  stats->count++;                                                     
                                                                      
  if ( the_period->state == RATE_MONOTONIC_EXPIRED )                  
    stats->missed_count++;                                            
 8004348:	29 61 00 58 	lw r1,(r11+88)                                 
 800434c:	34 21 00 01 	addi r1,r1,1                                   
 8004350:	59 61 00 58 	sw (r11+88),r1                                 
 8004354:	e3 ff ff c8 	bi 8004274 <_Rate_monotonic_Update_statistics+0x30>
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Add_to( &stats->total_wall_time, &since_last_period ); 
                                                                      
    if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) )
      stats->min_wall_time = since_last_period;                       
 8004358:	2b 81 00 14 	lw r1,(sp+20)                                  
 800435c:	59 61 00 74 	sw (r11+116),r1                                
 8004360:	2b 81 00 18 	lw r1,(sp+24)                                  
 8004364:	59 61 00 78 	sw (r11+120),r1                                
 8004368:	e3 ff ff ea 	bi 8004310 <_Rate_monotonic_Update_statistics+0xcc>
                                                                      

08003dfc <_TOD_Get>: */ void _TOD_Get( struct timespec *time ) {
 8003dfc:	37 9c ff e4 	addi sp,sp,-28                                 
 8003e00:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8003e04:	5b 8c 00 08 	sw (sp+8),r12                                  
 8003e08:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003e0c:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  /* assume time checked for NULL by caller */                        
                                                                      
  /* _TOD_Now is the native current time */                           
  nanoseconds = 0;                                                    
  _ISR_Disable( level );                                              
 8003e10:	90 00 60 00 	rcsr r12,IE                                    
 8003e14:	34 01 ff fe 	mvi r1,-2                                      
 8003e18:	a1 81 08 00 	and r1,r12,r1                                  
 8003e1c:	d0 01 00 00 	wcsr IE,r1                                     
    now = _TOD_Now;                                                   
 8003e20:	78 02 08 01 	mvhi r2,0x801                                  
 8003e24:	38 42 49 34 	ori r2,r2,0x4934                               
    if ( _Watchdog_Nanoseconds_since_tick_handler )                   
 8003e28:	78 03 08 01 	mvhi r3,0x801                                  
  /* assume time checked for NULL by caller */                        
                                                                      
  /* _TOD_Now is the native current time */                           
  nanoseconds = 0;                                                    
  _ISR_Disable( level );                                              
    now = _TOD_Now;                                                   
 8003e2c:	28 44 00 00 	lw r4,(r2+0)                                   
    if ( _Watchdog_Nanoseconds_since_tick_handler )                   
 8003e30:	38 63 4a 30 	ori r3,r3,0x4a30                               
  /* assume time checked for NULL by caller */                        
                                                                      
  /* _TOD_Now is the native current time */                           
  nanoseconds = 0;                                                    
  _ISR_Disable( level );                                              
    now = _TOD_Now;                                                   
 8003e34:	28 42 00 04 	lw r2,(r2+4)                                   
    if ( _Watchdog_Nanoseconds_since_tick_handler )                   
 8003e38:	28 61 00 00 	lw r1,(r3+0)                                   
  /* assume time checked for NULL by caller */                        
                                                                      
  /* _TOD_Now is the native current time */                           
  nanoseconds = 0;                                                    
  _ISR_Disable( level );                                              
    now = _TOD_Now;                                                   
 8003e3c:	5b 84 00 10 	sw (sp+16),r4                                  
 8003e40:	5b 82 00 14 	sw (sp+20),r2                                  
  long              nanoseconds;                                      
                                                                      
  /* assume time checked for NULL by caller */                        
                                                                      
  /* _TOD_Now is the native current time */                           
  nanoseconds = 0;                                                    
 8003e44:	34 03 00 00 	mvi r3,0                                       
  _ISR_Disable( level );                                              
    now = _TOD_Now;                                                   
    if ( _Watchdog_Nanoseconds_since_tick_handler )                   
 8003e48:	44 20 00 03 	be r1,r0,8003e54 <_TOD_Get+0x58>               <== ALWAYS TAKEN
      nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)();    
 8003e4c:	d8 20 00 00 	call r1                                        <== NOT EXECUTED
 8003e50:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
  _ISR_Enable( level );                                               
 8003e54:	d0 0c 00 00 	wcsr IE,r12                                    
                                                                      
  _Timestamp_Set( &offset, 0, nanoseconds );                          
  _Timestamp_Add_to( &now, &offset );                                 
 8003e58:	37 82 00 18 	addi r2,sp,24                                  
 8003e5c:	37 81 00 10 	addi r1,sp,16                                  
    now = _TOD_Now;                                                   
    if ( _Watchdog_Nanoseconds_since_tick_handler )                   
      nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)();    
  _ISR_Enable( level );                                               
                                                                      
  _Timestamp_Set( &offset, 0, nanoseconds );                          
 8003e60:	5b 80 00 18 	sw (sp+24),r0                                  
 8003e64:	5b 83 00 1c 	sw (sp+28),r3                                  
  _Timestamp_Add_to( &now, &offset );                                 
 8003e68:	f8 00 09 ce 	calli 80065a0 <_Timespec_Add_to>               
  _Timestamp_To_timespec( &now, time );                               
 8003e6c:	2b 81 00 14 	lw r1,(sp+20)                                  
 8003e70:	2b 82 00 10 	lw r2,(sp+16)                                  
 8003e74:	59 61 00 04 	sw (r11+4),r1                                  
 8003e78:	59 62 00 00 	sw (r11+0),r2                                  
}                                                                     
 8003e7c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003e80:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8003e84:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8003e88:	37 9c 00 1c 	addi sp,sp,28                                  
 8003e8c:	c3 a0 00 00 	ret                                            
                                                                      

08009f00 <_TOD_Get_uptime>: */ void _TOD_Get_uptime( Timestamp_Control *uptime ) {
 8009f00:	37 9c ff e4 	addi sp,sp,-28                                 
 8009f04:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8009f08:	5b 8c 00 08 	sw (sp+8),r12                                  
 8009f0c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8009f10:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  /* assume time checked for NULL by caller */                        
                                                                      
  /* _TOD_Uptime is in native timestamp format */                     
  nanoseconds = 0;                                                    
  _ISR_Disable( level );                                              
 8009f14:	90 00 60 00 	rcsr r12,IE                                    
 8009f18:	34 01 ff fe 	mvi r1,-2                                      
 8009f1c:	a1 81 08 00 	and r1,r12,r1                                  
 8009f20:	d0 01 00 00 	wcsr IE,r1                                     
    up = _TOD_Uptime;                                                 
 8009f24:	78 02 08 01 	mvhi r2,0x801                                  
 8009f28:	38 42 49 28 	ori r2,r2,0x4928                               
    if ( _Watchdog_Nanoseconds_since_tick_handler )                   
 8009f2c:	78 03 08 01 	mvhi r3,0x801                                  
  /* assume time checked for NULL by caller */                        
                                                                      
  /* _TOD_Uptime is in native timestamp format */                     
  nanoseconds = 0;                                                    
  _ISR_Disable( level );                                              
    up = _TOD_Uptime;                                                 
 8009f30:	28 44 00 00 	lw r4,(r2+0)                                   
    if ( _Watchdog_Nanoseconds_since_tick_handler )                   
 8009f34:	38 63 4a 30 	ori r3,r3,0x4a30                               
  /* assume time checked for NULL by caller */                        
                                                                      
  /* _TOD_Uptime is in native timestamp format */                     
  nanoseconds = 0;                                                    
  _ISR_Disable( level );                                              
    up = _TOD_Uptime;                                                 
 8009f38:	28 42 00 04 	lw r2,(r2+4)                                   
    if ( _Watchdog_Nanoseconds_since_tick_handler )                   
 8009f3c:	28 61 00 00 	lw r1,(r3+0)                                   
  /* assume time checked for NULL by caller */                        
                                                                      
  /* _TOD_Uptime is in native timestamp format */                     
  nanoseconds = 0;                                                    
  _ISR_Disable( level );                                              
    up = _TOD_Uptime;                                                 
 8009f40:	5b 84 00 10 	sw (sp+16),r4                                  
 8009f44:	5b 82 00 14 	sw (sp+20),r2                                  
  long              nanoseconds;                                      
                                                                      
  /* assume time checked for NULL by caller */                        
                                                                      
  /* _TOD_Uptime is in native timestamp format */                     
  nanoseconds = 0;                                                    
 8009f48:	34 03 00 00 	mvi r3,0                                       
  _ISR_Disable( level );                                              
    up = _TOD_Uptime;                                                 
    if ( _Watchdog_Nanoseconds_since_tick_handler )                   
 8009f4c:	44 20 00 03 	be r1,r0,8009f58 <_TOD_Get_uptime+0x58>        <== ALWAYS TAKEN
      nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)();    
 8009f50:	d8 20 00 00 	call r1                                        <== NOT EXECUTED
 8009f54:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
  _ISR_Enable( level );                                               
 8009f58:	d0 0c 00 00 	wcsr IE,r12                                    
                                                                      
  _Timestamp_Set( &offset, 0, nanoseconds );                          
  _Timestamp_Add_to( &up, &offset );                                  
 8009f5c:	37 82 00 18 	addi r2,sp,24                                  
 8009f60:	37 81 00 10 	addi r1,sp,16                                  
    up = _TOD_Uptime;                                                 
    if ( _Watchdog_Nanoseconds_since_tick_handler )                   
      nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)();    
  _ISR_Enable( level );                                               
                                                                      
  _Timestamp_Set( &offset, 0, nanoseconds );                          
 8009f64:	5b 80 00 18 	sw (sp+24),r0                                  
 8009f68:	5b 83 00 1c 	sw (sp+28),r3                                  
  _Timestamp_Add_to( &up, &offset );                                  
 8009f6c:	fb ff f1 8d 	calli 80065a0 <_Timespec_Add_to>               
  *uptime = up;                                                       
 8009f70:	2b 81 00 14 	lw r1,(sp+20)                                  
 8009f74:	2b 82 00 10 	lw r2,(sp+16)                                  
 8009f78:	59 61 00 04 	sw (r11+4),r1                                  
 8009f7c:	59 62 00 00 	sw (r11+0),r2                                  
}                                                                     
 8009f80:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009f84:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8009f88:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8009f8c:	37 9c 00 1c 	addi sp,sp,28                                  
 8009f90:	c3 a0 00 00 	ret                                            
                                                                      

08003ecc <_TOD_Tickle_ticks>: * * Output parameters: NONE */ void _TOD_Tickle_ticks( void ) {
 8003ecc:	37 9c ff ec 	addi sp,sp,-20                                 
 8003ed0:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8003ed4:	5b 8c 00 08 	sw (sp+8),r12                                  
 8003ed8:	5b 9d 00 04 	sw (sp+4),ra                                   
  Timestamp_Control tick;                                             
  uint32_t          seconds;                                          
                                                                      
  /* Convert the tick quantum to a timestamp */                       
  _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
 8003edc:	78 01 08 01 	mvhi r1,0x801                                  
 8003ee0:	38 21 40 c4 	ori r1,r1,0x40c4                               
 8003ee4:	28 21 00 0c 	lw r1,(r1+12)                                  
                                                                      
  /* Update the counter of ticks since boot */                        
  _Watchdog_Ticks_since_boot += 1;                                    
 8003ee8:	78 03 08 01 	mvhi r3,0x801                                  
 8003eec:	38 63 49 e4 	ori r3,r3,0x49e4                               
{                                                                     
  Timestamp_Control tick;                                             
  uint32_t          seconds;                                          
                                                                      
  /* Convert the tick quantum to a timestamp */                       
  _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
 8003ef0:	b4 21 08 00 	add r1,r1,r1                                   
 8003ef4:	b4 21 08 00 	add r1,r1,r1                                   
 8003ef8:	b4 21 08 00 	add r1,r1,r1                                   
 8003efc:	b4 21 10 00 	add r2,r1,r1                                   
 8003f00:	b4 42 10 00 	add r2,r2,r2                                   
 8003f04:	b4 22 08 00 	add r1,r1,r2                                   
 8003f08:	b4 21 10 00 	add r2,r1,r1                                   
 8003f0c:	b4 42 10 00 	add r2,r2,r2                                   
 8003f10:	b4 22 08 00 	add r1,r1,r2                                   
                                                                      
  /* Update the counter of ticks since boot */                        
  _Watchdog_Ticks_since_boot += 1;                                    
 8003f14:	28 65 00 00 	lw r5,(r3+0)                                   
{                                                                     
  Timestamp_Control tick;                                             
  uint32_t          seconds;                                          
                                                                      
  /* Convert the tick quantum to a timestamp */                       
  _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
 8003f18:	b4 21 20 00 	add r4,r1,r1                                   
 8003f1c:	b4 84 20 00 	add r4,r4,r4                                   
 8003f20:	b4 24 20 00 	add r4,r1,r4                                   
                                                                      
  /* Update the counter of ticks since boot */                        
  _Watchdog_Ticks_since_boot += 1;                                    
                                                                      
  /* Update the timespec format uptime */                             
  _Timestamp_Add_to( &_TOD_Uptime, &tick );                           
 8003f24:	37 8b 00 10 	addi r11,sp,16                                 
                                                                      
  /* Convert the tick quantum to a timestamp */                       
  _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
                                                                      
  /* Update the counter of ticks since boot */                        
  _Watchdog_Ticks_since_boot += 1;                                    
 8003f28:	34 a5 00 01 	addi r5,r5,1                                   
                                                                      
  /* Update the timespec format uptime */                             
  _Timestamp_Add_to( &_TOD_Uptime, &tick );                           
 8003f2c:	78 01 08 01 	mvhi r1,0x801                                  
 8003f30:	b9 60 10 00 	mv r2,r11                                      
                                                                      
  /* Convert the tick quantum to a timestamp */                       
  _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
                                                                      
  /* Update the counter of ticks since boot */                        
  _Watchdog_Ticks_since_boot += 1;                                    
 8003f34:	58 65 00 00 	sw (r3+0),r5                                   
                                                                      
  /* Update the timespec format uptime */                             
  _Timestamp_Add_to( &_TOD_Uptime, &tick );                           
 8003f38:	38 21 49 28 	ori r1,r1,0x4928                               
{                                                                     
  Timestamp_Control tick;                                             
  uint32_t          seconds;                                          
                                                                      
  /* Convert the tick quantum to a timestamp */                       
  _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
 8003f3c:	5b 84 00 14 	sw (sp+20),r4                                  
 8003f40:	5b 80 00 10 	sw (sp+16),r0                                  
                                                                      
  /* Update the counter of ticks since boot */                        
  _Watchdog_Ticks_since_boot += 1;                                    
                                                                      
  /* Update the timespec format uptime */                             
  _Timestamp_Add_to( &_TOD_Uptime, &tick );                           
 8003f44:	f8 00 09 97 	calli 80065a0 <_Timespec_Add_to>               
  /* we do not care how much the uptime changed */                    
                                                                      
  /* Update the timespec format TOD */                                
  seconds = _Timestamp_Add_to_at_tick( &_TOD_Now, &tick );            
 8003f48:	78 01 08 01 	mvhi r1,0x801                                  
 8003f4c:	b9 60 10 00 	mv r2,r11                                      
 8003f50:	38 21 49 34 	ori r1,r1,0x4934                               
 8003f54:	f8 00 09 93 	calli 80065a0 <_Timespec_Add_to>               
 8003f58:	b8 20 58 00 	mv r11,r1                                      
  while ( seconds ) {                                                 
 8003f5c:	44 20 00 07 	be r1,r0,8003f78 <_TOD_Tickle_ticks+0xac>      
 8003f60:	78 0c 08 01 	mvhi r12,0x801                                 
 8003f64:	39 8c 49 64 	ori r12,r12,0x4964                             
    _Watchdog_Tickle_seconds();                                       
    seconds--;                                                        
 8003f68:	35 6b ff ff 	addi r11,r11,-1                                
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_seconds( void )            
{                                                                     
                                                                      
  _Watchdog_Tickle( &_Watchdog_Seconds_chain );                       
 8003f6c:	b9 80 08 00 	mv r1,r12                                      
 8003f70:	f8 00 0b 63 	calli 8006cfc <_Watchdog_Tickle>               
  _Timestamp_Add_to( &_TOD_Uptime, &tick );                           
  /* we do not care how much the uptime changed */                    
                                                                      
  /* Update the timespec format TOD */                                
  seconds = _Timestamp_Add_to_at_tick( &_TOD_Now, &tick );            
  while ( seconds ) {                                                 
 8003f74:	5d 60 ff fd 	bne r11,r0,8003f68 <_TOD_Tickle_ticks+0x9c>    <== NEVER TAKEN
    _Watchdog_Tickle_seconds();                                       
    seconds--;                                                        
  }                                                                   
}                                                                     
 8003f78:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003f7c:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8003f80:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8003f84:	37 9c 00 14 	addi sp,sp,20                                  
 8003f88:	c3 a0 00 00 	ret                                            
                                                                      

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

08004f88 <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) {
 8004f88:	37 9c ff ec 	addi sp,sp,-20                                 
 8004f8c:	5b 8b 00 14 	sw (sp+20),r11                                 
 8004f90:	5b 8c 00 10 	sw (sp+16),r12                                 
 8004f94:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8004f98:	5b 8e 00 08 	sw (sp+8),r14                                  
 8004f9c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004fa0:	b8 20 58 00 	mv r11,r1                                      
*/                                                                    
                                                                      
  /*                                                                  
   * Save original state                                              
   */                                                                 
  original_state = the_thread->current_state;                         
 8004fa4:	28 2d 00 10 	lw r13,(r1+16)                                 
void _Thread_Change_priority(                                         
  Thread_Control   *the_thread,                                       
  Priority_Control  new_priority,                                     
  bool              prepend_it                                        
)                                                                     
{                                                                     
 8004fa8:	b8 40 60 00 	mv r12,r2                                      
 8004fac:	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 );                                
 8004fb0:	f8 00 04 b8 	calli 8006290 <_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 )                  
 8004fb4:	29 61 00 14 	lw r1,(r11+20)                                 
 8004fb8:	44 2c 00 04 	be r1,r12,8004fc8 <_Thread_Change_priority+0x40>
    _Thread_Set_priority( the_thread, new_priority );                 
 8004fbc:	b9 60 08 00 	mv r1,r11                                      
 8004fc0:	b9 80 10 00 	mv r2,r12                                      
 8004fc4:	f8 00 04 1a 	calli 800602c <_Thread_Set_priority>           
                                                                      
  _ISR_Disable( level );                                              
 8004fc8:	90 00 20 00 	rcsr r4,IE                                     
 8004fcc:	34 02 ff fe 	mvi r2,-2                                      
 8004fd0:	a0 82 10 00 	and r2,r4,r2                                   
 8004fd4:	d0 02 00 00 	wcsr IE,r2                                     
                                                                      
  /*                                                                  
   *  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;                                  
 8004fd8:	29 61 00 10 	lw r1,(r11+16)                                 
  if ( state != STATES_TRANSIENT ) {                                  
 8004fdc:	34 05 00 04 	mvi r5,4                                       
 8004fe0:	44 25 00 23 	be r1,r5,800506c <_Thread_Change_priority+0xe4>
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_transient (                      
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_TRANSIENT);                            
 8004fe4:	21 ad 00 04 	andi r13,r13,0x4                               
    /* Only clear the transient state if it wasn't set already */     
    if ( ! _States_Is_transient( original_state ) )                   
 8004fe8:	45 a0 00 0e 	be r13,r0,8005020 <_Thread_Change_priority+0x98><== ALWAYS TAKEN
      the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
    _ISR_Enable( level );                                             
 8004fec:	d0 04 00 00 	wcsr IE,r4                                     <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (        
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_WAITING_ON_THREAD_QUEUE);              
 8004ff0:	78 03 08 01 	mvhi r3,0x801                                  <== NOT EXECUTED
 8004ff4:	38 63 35 50 	ori r3,r3,0x3550                               <== NOT EXECUTED
 8004ff8:	28 62 00 00 	lw r2,(r3+0)                                   <== NOT EXECUTED
 8004ffc:	a0 22 08 00 	and r1,r1,r2                                   <== NOT EXECUTED
    if ( _States_Is_waiting_on_thread_queue( state ) ) {              
 8005000:	5c 20 00 11 	bne r1,r0,8005044 <_Thread_Change_priority+0xbc><== NOT EXECUTED
                                                                      
  if ( !_Thread_Is_executing_also_the_heir() &&                       
       _Thread_Executing->is_preemptible )                            
    _Context_Switch_necessary = true;                                 
  _ISR_Enable( level );                                               
}                                                                     
 8005004:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005008:	2b 8b 00 14 	lw r11,(sp+20)                                 
 800500c:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8005010:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8005014:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8005018:	37 9c 00 14 	addi sp,sp,20                                  
 800501c:	c3 a0 00 00 	ret                                            
RTEMS_INLINE_ROUTINE States_Control _States_Clear (                   
  States_Control states_to_clear,                                     
  States_Control current_state                                        
)                                                                     
{                                                                     
   return (current_state & ~states_to_clear);                         
 8005020:	34 02 ff fb 	mvi r2,-5                                      
 8005024:	a0 22 10 00 	and r2,r1,r2                                   
   */                                                                 
  state = the_thread->current_state;                                  
  if ( state != STATES_TRANSIENT ) {                                  
    /* Only clear the transient state if it wasn't set already */     
    if ( ! _States_Is_transient( original_state ) )                   
      the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
 8005028:	59 62 00 10 	sw (r11+16),r2                                 
    _ISR_Enable( level );                                             
 800502c:	d0 04 00 00 	wcsr IE,r4                                     
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (        
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_WAITING_ON_THREAD_QUEUE);              
 8005030:	78 03 08 01 	mvhi r3,0x801                                  
 8005034:	38 63 35 50 	ori r3,r3,0x3550                               
 8005038:	28 62 00 00 	lw r2,(r3+0)                                   
 800503c:	a0 22 08 00 	and r1,r1,r2                                   
    if ( _States_Is_waiting_on_thread_queue( state ) ) {              
 8005040:	44 20 ff f1 	be r1,r0,8005004 <_Thread_Change_priority+0x7c>
      _Thread_queue_Requeue( the_thread->Wait.queue, the_thread );    
 8005044:	29 61 00 44 	lw r1,(r11+68)                                 
 8005048:	b9 60 10 00 	mv r2,r11                                      
 800504c:	f8 00 03 bb 	calli 8005f38 <_Thread_queue_Requeue>          
                                                                      
  if ( !_Thread_Is_executing_also_the_heir() &&                       
       _Thread_Executing->is_preemptible )                            
    _Context_Switch_necessary = true;                                 
  _ISR_Enable( level );                                               
}                                                                     
 8005050:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005054:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8005058:	2b 8c 00 10 	lw r12,(sp+16)                                 
 800505c:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8005060:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8005064:	37 9c 00 14 	addi sp,sp,20                                  
 8005068:	c3 a0 00 00 	ret                                            
 800506c:	78 01 08 01 	mvhi r1,0x801                                  
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_transient (                      
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_TRANSIENT);                            
 8005070:	21 ad 00 04 	andi r13,r13,0x4                               
 8005074:	38 21 49 4c 	ori r1,r1,0x494c                               
    }                                                                 
    return;                                                           
  }                                                                   
                                                                      
  /* Only clear the transient state if it wasn't set already */       
  if ( ! _States_Is_transient( original_state ) ) {                   
 8005078:	5d a0 00 13 	bne r13,r0,80050c4 <_Thread_Change_priority+0x13c><== NEVER TAKEN
                                                                      
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (                  
  Priority_Information *the_priority_map                              
)                                                                     
{                                                                     
  *the_priority_map->minor |= the_priority_map->ready_minor;          
 800507c:	29 63 00 90 	lw r3,(r11+144)                                
 8005080:	2d 65 00 96 	lhu r5,(r11+150)                               
     *  Interrupts are STILL disabled.                                
     *  We now know the thread will be in the READY state when we remove
     *  the TRANSIENT state.  So we have to place it on the appropriate
     *  Ready Queue with interrupts off.                              
     */                                                               
    the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
 8005084:	59 60 00 10 	sw (r11+16),r0                                 
 8005088:	2c 66 00 00 	lhu r6,(r3+0)                                  
 800508c:	b8 c5 28 00 	or r5,r6,r5                                    
 8005090:	0c 65 00 00 	sh (r3+0),r5                                   
  _Priority_Major_bit_map  |= the_priority_map->ready_major;          
 8005094:	2c 23 00 00 	lhu r3,(r1+0)                                  
 8005098:	2d 65 00 94 	lhu r5,(r11+148)                               
 800509c:	b8 a3 18 00 	or r3,r5,r3                                    
 80050a0:	20 63 ff ff 	andi r3,r3,0xffff                              
 80050a4:	0c 23 00 00 	sh (r1+0),r3                                   
                                                                      
    _Priority_Add_to_bit_map( &the_thread->Priority_map );            
    if ( prepend_it )                                                 
 80050a8:	45 cd 00 52 	be r14,r13,80051f0 <_Thread_Change_priority+0x268>
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) the_chain;                                   
 80050ac:	29 63 00 8c 	lw r3,(r11+140)                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
 80050b0:	28 65 00 00 	lw r5,(r3+0)                                   
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
 80050b4:	59 63 00 04 	sw (r11+4),r3                                  
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
 80050b8:	58 6b 00 00 	sw (r3+0),r11                                  
  the_node->next        = before_node;                                
 80050bc:	59 65 00 00 	sw (r11+0),r5                                  
  before_node->previous = the_node;                                   
 80050c0:	58 ab 00 04 	sw (r5+4),r11                                  
      _Chain_Prepend_unprotected( the_thread->ready, &the_thread->Object.Node );
    else                                                              
      _Chain_Append_unprotected( the_thread->ready, &the_thread->Object.Node );
  }                                                                   
                                                                      
  _ISR_Flash( level );                                                
 80050c4:	d0 04 00 00 	wcsr IE,r4                                     
 80050c8:	d0 02 00 00 	wcsr IE,r2                                     
RTEMS_INLINE_ROUTINE Priority_Control _Priority_Get_highest( void )   
{                                                                     
  Priority_Bit_map_control minor;                                     
  Priority_Bit_map_control major;                                     
                                                                      
  _Bitfield_Find_first_bit( _Priority_Major_bit_map, major );         
 80050cc:	2c 22 00 00 	lhu r2,(r1+0)                                  
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )              
{                                                                     
  _Thread_Heir = (Thread_Control *)                                   
    _Thread_Ready_chain[ _Priority_Get_highest() ].first;             
 80050d0:	78 01 08 01 	mvhi r1,0x801                                  
 80050d4:	38 21 48 40 	ori r1,r1,0x4840                               
 80050d8:	28 26 00 00 	lw r6,(r1+0)                                   
 80050dc:	20 42 ff ff 	andi r2,r2,0xffff                              
 80050e0:	34 01 00 ff 	mvi r1,255                                     
 80050e4:	54 41 00 07 	bgu r2,r1,8005100 <_Thread_Change_priority+0x178>
 80050e8:	78 03 08 01 	mvhi r3,0x801                                  
 80050ec:	38 63 33 e8 	ori r3,r3,0x33e8                               
 80050f0:	b4 62 10 00 	add r2,r3,r2                                   
 80050f4:	40 42 00 00 	lbu r2,(r2+0)                                  
 80050f8:	34 42 00 08 	addi r2,r2,8                                   
 80050fc:	e0 00 00 0d 	bi 8005130 <_Thread_Change_priority+0x1a8>     
 8005100:	00 42 00 01 	srui r2,r2,1                                   
 8005104:	78 03 08 01 	mvhi r3,0x801                                  
 8005108:	00 42 00 01 	srui r2,r2,1                                   
 800510c:	38 63 33 e8 	ori r3,r3,0x33e8                               
 8005110:	00 42 00 01 	srui r2,r2,1                                   
 8005114:	00 42 00 01 	srui r2,r2,1                                   
 8005118:	00 42 00 01 	srui r2,r2,1                                   
 800511c:	00 42 00 01 	srui r2,r2,1                                   
 8005120:	00 42 00 01 	srui r2,r2,1                                   
 8005124:	00 42 00 01 	srui r2,r2,1                                   
 8005128:	b4 62 10 00 	add r2,r3,r2                                   
 800512c:	40 42 00 00 	lbu r2,(r2+0)                                  
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
 8005130:	78 05 08 01 	mvhi r5,0x801                                  
 8005134:	38 a5 49 c0 	ori r5,r5,0x49c0                               
 8005138:	b4 42 10 00 	add r2,r2,r2                                   
 800513c:	b4 a2 28 00 	add r5,r5,r2                                   
 8005140:	2c a1 00 00 	lhu r1,(r5+0)                                  
 8005144:	34 05 00 ff 	mvi r5,255                                     
 8005148:	54 25 00 1f 	bgu r1,r5,80051c4 <_Thread_Change_priority+0x23c>
 800514c:	b4 61 08 00 	add r1,r3,r1                                   
 8005150:	40 23 00 00 	lbu r3,(r1+0)                                  
 8005154:	34 63 00 08 	addi r3,r3,8                                   
                                                                      
  return (_Priority_Bits_index( major ) << 4) +                       
 8005158:	b4 42 08 00 	add r1,r2,r2                                   
 800515c:	b4 21 08 00 	add r1,r1,r1                                   
 8005160:	b4 21 08 00 	add r1,r1,r1                                   
 8005164:	b4 61 08 00 	add r1,r3,r1                                   
 8005168:	b4 21 10 00 	add r2,r1,r1                                   
 800516c:	b4 41 08 00 	add r1,r2,r1                                   
 8005170:	b4 21 08 00 	add r1,r1,r1                                   
 8005174:	b4 21 08 00 	add r1,r1,r1                                   
 8005178:	b4 c1 08 00 	add r1,r6,r1                                   
 *  ready thread.                                                     
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )              
{                                                                     
  _Thread_Heir = (Thread_Control *)                                   
 800517c:	78 02 08 01 	mvhi r2,0x801                                  
 8005180:	38 42 4d 84 	ori r2,r2,0x4d84                               
 8005184:	28 21 00 00 	lw r1,(r1+0)                                   
 *  is also the heir thread, and false otherwise.                     
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void )  
{                                                                     
  return ( _Thread_Executing == _Thread_Heir );                       
 8005188:	28 43 00 0c 	lw r3,(r2+12)                                  
 *  ready thread.                                                     
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )              
{                                                                     
  _Thread_Heir = (Thread_Control *)                                   
 800518c:	58 41 00 10 	sw (r2+16),r1                                  
   *  We altered the set of thread priorities.  So let's figure out   
   *  who is the heir and if we need to switch to them.               
   */                                                                 
  _Thread_Calculate_heir();                                           
                                                                      
  if ( !_Thread_Is_executing_also_the_heir() &&                       
 8005190:	44 23 00 05 	be r1,r3,80051a4 <_Thread_Change_priority+0x21c>
 8005194:	40 61 00 74 	lbu r1,(r3+116)                                
 8005198:	44 20 00 03 	be r1,r0,80051a4 <_Thread_Change_priority+0x21c>
       _Thread_Executing->is_preemptible )                            
    _Context_Switch_necessary = true;                                 
 800519c:	34 01 00 01 	mvi r1,1                                       
 80051a0:	30 41 00 18 	sb (r2+24),r1                                  
  _ISR_Enable( level );                                               
 80051a4:	d0 04 00 00 	wcsr IE,r4                                     
}                                                                     
 80051a8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80051ac:	2b 8b 00 14 	lw r11,(sp+20)                                 
 80051b0:	2b 8c 00 10 	lw r12,(sp+16)                                 
 80051b4:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 80051b8:	2b 8e 00 08 	lw r14,(sp+8)                                  
 80051bc:	37 9c 00 14 	addi sp,sp,20                                  
 80051c0:	c3 a0 00 00 	ret                                            
{                                                                     
  Priority_Bit_map_control minor;                                     
  Priority_Bit_map_control major;                                     
                                                                      
  _Bitfield_Find_first_bit( _Priority_Major_bit_map, major );         
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
 80051c4:	00 21 00 01 	srui r1,r1,1                                   
 80051c8:	00 21 00 01 	srui r1,r1,1                                   
 80051cc:	00 21 00 01 	srui r1,r1,1                                   
 80051d0:	00 21 00 01 	srui r1,r1,1                                   
 80051d4:	00 21 00 01 	srui r1,r1,1                                   
 80051d8:	00 21 00 01 	srui r1,r1,1                                   
 80051dc:	00 21 00 01 	srui r1,r1,1                                   
 80051e0:	00 21 00 01 	srui r1,r1,1                                   
 80051e4:	b4 61 08 00 	add r1,r3,r1                                   
 80051e8:	40 23 00 00 	lbu r3,(r1+0)                                  
 80051ec:	e3 ff ff db 	bi 8005158 <_Thread_Change_priority+0x1d0>     
                                                                      
    _Priority_Add_to_bit_map( &the_thread->Priority_map );            
    if ( prepend_it )                                                 
      _Chain_Prepend_unprotected( the_thread->ready, &the_thread->Object.Node );
    else                                                              
      _Chain_Append_unprotected( the_thread->ready, &the_thread->Object.Node );
 80051f0:	29 63 00 8c 	lw r3,(r11+140)                                
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
  old_last_node       = the_chain->last;                              
 80051f4:	28 65 00 08 	lw r5,(r3+8)                                   
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 80051f8:	34 66 00 04 	addi r6,r3,4                                   
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
 80051fc:	59 66 00 00 	sw (r11+0),r6                                  
  old_last_node       = the_chain->last;                              
  the_chain->last     = the_node;                                     
 8005200:	58 6b 00 08 	sw (r3+8),r11                                  
  old_last_node->next = the_node;                                     
 8005204:	58 ab 00 00 	sw (r5+0),r11                                  
  the_node->previous  = old_last_node;                                
 8005208:	59 65 00 04 	sw (r11+4),r5                                  
 800520c:	e3 ff ff ae 	bi 80050c4 <_Thread_Change_priority+0x13c>     
                                                                      

0800a468 <_Thread_Clear_state>: ) { ISR_Level level; States_Control current_state; _ISR_Disable( level );
 800a468:	90 00 18 00 	rcsr r3,IE                                     
 800a46c:	34 05 ff fe 	mvi r5,-2                                      
 800a470:	a0 65 28 00 	and r5,r3,r5                                   
 800a474:	d0 05 00 00 	wcsr IE,r5                                     
    current_state = the_thread->current_state;                        
 800a478:	28 24 00 10 	lw r4,(r1+16)                                  
                                                                      
    if ( current_state & state ) {                                    
 800a47c:	a0 44 30 00 	and r6,r2,r4                                   
 800a480:	44 c0 00 26 	be r6,r0,800a518 <_Thread_Clear_state+0xb0>    
RTEMS_INLINE_ROUTINE States_Control _States_Clear (                   
  States_Control states_to_clear,                                     
  States_Control current_state                                        
)                                                                     
{                                                                     
   return (current_state & ~states_to_clear);                         
 800a484:	a4 40 10 00 	not r2,r2                                      
 800a488:	a0 44 20 00 	and r4,r2,r4                                   
      current_state =                                                 
      the_thread->current_state = _States_Clear( state, current_state );
 800a48c:	58 24 00 10 	sw (r1+16),r4                                  
                                                                      
      if ( _States_Is_ready( current_state ) ) {                      
 800a490:	5c 80 00 22 	bne r4,r0,800a518 <_Thread_Clear_state+0xb0>   
                                                                      
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (                  
  Priority_Information *the_priority_map                              
)                                                                     
{                                                                     
  *the_priority_map->minor |= the_priority_map->ready_minor;          
 800a494:	28 26 00 90 	lw r6,(r1+144)                                 
 800a498:	2c 27 00 96 	lhu r7,(r1+150)                                
  _Priority_Major_bit_map  |= the_priority_map->ready_major;          
 800a49c:	78 02 08 01 	mvhi r2,0x801                                  
                                                                      
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (                  
  Priority_Information *the_priority_map                              
)                                                                     
{                                                                     
  *the_priority_map->minor |= the_priority_map->ready_minor;          
 800a4a0:	2c c8 00 00 	lhu r8,(r6+0)                                  
                                                                      
        _Priority_Add_to_bit_map( &the_thread->Priority_map );        
                                                                      
        _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
 800a4a4:	28 24 00 8c 	lw r4,(r1+140)                                 
  _Priority_Major_bit_map  |= the_priority_map->ready_major;          
 800a4a8:	38 42 49 4c 	ori r2,r2,0x494c                               
                                                                      
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (                  
  Priority_Information *the_priority_map                              
)                                                                     
{                                                                     
  *the_priority_map->minor |= the_priority_map->ready_minor;          
 800a4ac:	b9 07 38 00 	or r7,r8,r7                                    
 800a4b0:	0c c7 00 00 	sh (r6+0),r7                                   
  _Priority_Major_bit_map  |= the_priority_map->ready_major;          
 800a4b4:	2c 48 00 00 	lhu r8,(r2+0)                                  
 800a4b8:	2c 29 00 94 	lhu r9,(r1+148)                                
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
  old_last_node       = the_chain->last;                              
 800a4bc:	28 86 00 08 	lw r6,(r4+8)                                   
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 800a4c0:	34 87 00 04 	addi r7,r4,4                                   
 800a4c4:	b9 28 40 00 	or r8,r9,r8                                    
 800a4c8:	21 08 ff ff 	andi r8,r8,0xffff                              
 800a4cc:	0c 48 00 00 	sh (r2+0),r8                                   
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
 800a4d0:	58 27 00 00 	sw (r1+0),r7                                   
  old_last_node       = the_chain->last;                              
  the_chain->last     = the_node;                                     
 800a4d4:	58 81 00 08 	sw (r4+8),r1                                   
  old_last_node->next = the_node;                                     
 800a4d8:	58 c1 00 00 	sw (r6+0),r1                                   
  the_node->previous  = old_last_node;                                
 800a4dc:	58 26 00 04 	sw (r1+4),r6                                   
                                                                      
        _ISR_Flash( level );                                          
 800a4e0:	d0 03 00 00 	wcsr IE,r3                                     
 800a4e4:	d0 05 00 00 	wcsr IE,r5                                     
         *    a context switch.                                       
         *  Pseudo-ISR case:                                          
         *    Even if the thread isn't preemptible, if the new heir is
         *    a pseudo-ISR system task, we need to do a context switch.
         */                                                           
        if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
 800a4e8:	78 02 08 01 	mvhi r2,0x801                                  
 800a4ec:	38 42 4d 84 	ori r2,r2,0x4d84                               
 800a4f0:	28 45 00 10 	lw r5,(r2+16)                                  
 800a4f4:	28 24 00 14 	lw r4,(r1+20)                                  
 800a4f8:	28 a5 00 14 	lw r5,(r5+20)                                  
 800a4fc:	50 85 00 07 	bgeu r4,r5,800a518 <_Thread_Clear_state+0xb0>  
          _Thread_Heir = the_thread;                                  
          if ( _Thread_Executing->is_preemptible ||                   
 800a500:	28 45 00 0c 	lw r5,(r2+12)                                  
         *  Pseudo-ISR case:                                          
         *    Even if the thread isn't preemptible, if the new heir is
         *    a pseudo-ISR system task, we need to do a context switch.
         */                                                           
        if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
          _Thread_Heir = the_thread;                                  
 800a504:	58 41 00 10 	sw (r2+16),r1                                  
          if ( _Thread_Executing->is_preemptible ||                   
 800a508:	40 a1 00 74 	lbu r1,(r5+116)                                
 800a50c:	44 20 00 05 	be r1,r0,800a520 <_Thread_Clear_state+0xb8>    
               the_thread->current_priority == 0 )                    
            _Context_Switch_necessary = true;                         
 800a510:	34 01 00 01 	mvi r1,1                                       
 800a514:	30 41 00 18 	sb (r2+24),r1                                  
        }                                                             
      }                                                               
  }                                                                   
  _ISR_Enable( level );                                               
 800a518:	d0 03 00 00 	wcsr IE,r3                                     
}                                                                     
 800a51c:	c3 a0 00 00 	ret                                            
         *    Even if the thread isn't preemptible, if the new heir is
         *    a pseudo-ISR system task, we need to do a context switch.
         */                                                           
        if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
          _Thread_Heir = the_thread;                                  
          if ( _Thread_Executing->is_preemptible ||                   
 800a520:	44 81 ff fc 	be r4,r1,800a510 <_Thread_Clear_state+0xa8>    <== NEVER TAKEN
 800a524:	e3 ff ff fd 	bi 800a518 <_Thread_Clear_state+0xb0>          
                                                                      

0800c534 <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) {
 800c534:	37 9c ff f8 	addi sp,sp,-8                                  
 800c538:	5b 9d 00 04 	sw (sp+4),ra                                   
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 800c53c:	37 82 00 08 	addi r2,sp,8                                   
 800c540:	f8 00 00 8a 	calli 800c768 <_Thread_Get>                    
  switch ( location ) {                                               
 800c544:	2b 82 00 08 	lw r2,(sp+8)                                   
 800c548:	5c 40 00 0a 	bne r2,r0,800c570 <_Thread_Delay_ended+0x3c>   <== NEVER TAKEN
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
      break;                                                          
    case OBJECTS_LOCAL:                                               
      _Thread_Clear_state(                                            
 800c54c:	78 03 08 02 	mvhi r3,0x802                                  
 800c550:	38 63 77 38 	ori r3,r3,0x7738                               
 800c554:	28 62 00 00 	lw r2,(r3+0)                                   
 800c558:	fb ff ff 57 	calli 800c2b4 <_Thread_Clear_state>            
 800c55c:	78 01 08 02 	mvhi r1,0x802                                  
 800c560:	38 21 9a 14 	ori r1,r1,0x9a14                               
 800c564:	28 22 00 00 	lw r2,(r1+0)                                   
 800c568:	34 42 ff ff 	addi r2,r2,-1                                  
 800c56c:	58 22 00 00 	sw (r1+0),r2                                   
          | STATES_INTERRUPTIBLE_BY_SIGNAL                            
      );                                                              
      _Thread_Unnest_dispatch();                                      
      break;                                                          
  }                                                                   
}                                                                     
 800c570:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800c574:	37 9c 00 08 	addi sp,sp,8                                   
 800c578:	c3 a0 00 00 	ret                                            
                                                                      

080053d0 <_Thread_Dispatch>: * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) {
 80053d0:	37 9c ff bc 	addi sp,sp,-68                                 
 80053d4:	5b 8b 00 34 	sw (sp+52),r11                                 
 80053d8:	5b 8c 00 30 	sw (sp+48),r12                                 
 80053dc:	5b 8d 00 2c 	sw (sp+44),r13                                 
 80053e0:	5b 8e 00 28 	sw (sp+40),r14                                 
 80053e4:	5b 8f 00 24 	sw (sp+36),r15                                 
 80053e8:	5b 90 00 20 	sw (sp+32),r16                                 
 80053ec:	5b 91 00 1c 	sw (sp+28),r17                                 
 80053f0:	5b 92 00 18 	sw (sp+24),r18                                 
 80053f4:	5b 93 00 14 	sw (sp+20),r19                                 
 80053f8:	5b 94 00 10 	sw (sp+16),r20                                 
 80053fc:	5b 95 00 0c 	sw (sp+12),r21                                 
 8005400:	5b 96 00 08 	sw (sp+8),r22                                  
 8005404:	5b 9d 00 04 	sw (sp+4),ra                                   
  Thread_Control   *executing;                                        
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
 8005408:	78 01 08 01 	mvhi r1,0x801                                  
 800540c:	38 21 4d 84 	ori r1,r1,0x4d84                               
 8005410:	28 2c 00 0c 	lw r12,(r1+12)                                 
  _ISR_Disable( level );                                              
 8005414:	90 00 08 00 	rcsr r1,IE                                     
 8005418:	34 02 ff fe 	mvi r2,-2                                      
 800541c:	a0 22 10 00 	and r2,r1,r2                                   
 8005420:	d0 02 00 00 	wcsr IE,r2                                     
  while ( _Context_Switch_necessary == true ) {                       
 8005424:	78 0e 08 01 	mvhi r14,0x801                                 
 8005428:	39 ce 4d 84 	ori r14,r14,0x4d84                             
 800542c:	41 c2 00 18 	lbu r2,(r14+24)                                
 8005430:	78 10 08 01 	mvhi r16,0x801                                 
  Thread_Control   *executing;                                        
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
 8005434:	b8 20 20 00 	mv r4,r1                                       
  while ( _Context_Switch_necessary == true ) {                       
 8005438:	20 42 00 ff 	andi r2,r2,0xff                                
 800543c:	3a 10 48 ac 	ori r16,r16,0x48ac                             
 8005440:	44 40 00 40 	be r2,r0,8005540 <_Thread_Dispatch+0x170>      
    heir = _Thread_Heir;                                              
 8005444:	29 cb 00 10 	lw r11,(r14+16)                                
    _Thread_Dispatch_disable_level = 1;                               
 8005448:	34 02 00 01 	mvi r2,1                                       
 800544c:	5a 02 00 00 	sw (r16+0),r2                                  
    _Context_Switch_necessary = false;                                
 8005450:	31 c0 00 18 	sb (r14+24),r0                                 
    _Thread_Executing = heir;                                         
 8005454:	59 cb 00 0c 	sw (r14+12),r11                                
    /*                                                                
     *  When the heir and executing are the same, then we are being   
     *  requested to do the post switch dispatching.  This is normally
     *  done to dispatch signals.                                     
     */                                                               
    if ( heir == executing )                                          
 8005458:	45 8b 00 3a 	be r12,r11,8005540 <_Thread_Dispatch+0x170>    
 800545c:	78 0f 08 01 	mvhi r15,0x801                                 
 8005460:	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;            
 8005464:	78 15 08 01 	mvhi r21,0x801                                 
 8005468:	37 92 00 40 	addi r18,sp,64                                 
 800546c:	39 ef 49 5c 	ori r15,r15,0x495c                             
 8005470:	37 91 00 38 	addi r17,sp,56                                 
 8005474:	3a 94 49 30 	ori r20,r20,0x4930                             
     */                                                               
#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 )
 8005478:	34 13 00 01 	mvi r19,1                                      
      heir->cpu_time_budget = _Thread_Ticks_per_timeslice;            
 800547c:	3a b5 48 44 	ori r21,r21,0x4844                             
#endif                                                                
#endif                                                                
                                                                      
    executing = _Thread_Executing;                                    
                                                                      
    _ISR_Disable( level );                                            
 8005480:	34 16 ff fe 	mvi r22,-2                                     
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Context_Switch_necessary == true ) {                       
 8005484:	b9 c0 68 00 	mv r13,r14                                     
 8005488:	e0 00 00 29 	bi 800552c <_Thread_Dispatch+0x15c>            
    rtems_ada_self = heir->rtems_ada_self;                            
#endif                                                                
    if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE )
      heir->cpu_time_budget = _Thread_Ticks_per_timeslice;            
                                                                      
    _ISR_Enable( level );                                             
 800548c:	d0 01 00 00 	wcsr IE,r1                                     
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
 8005490:	ba 40 08 00 	mv r1,r18                                      
 8005494:	f8 00 12 9b 	calli 8009f00 <_TOD_Get_uptime>                
        _Timestamp_Subtract(                                          
 8005498:	ba 20 18 00 	mv r3,r17                                      
 800549c:	b9 e0 08 00 	mv r1,r15                                      
 80054a0:	ba 40 10 00 	mv r2,r18                                      
 80054a4:	f8 00 04 56 	calli 80065fc <_Timespec_Subtract>             
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
 80054a8:	ba 20 10 00 	mv r2,r17                                      
 80054ac:	35 81 00 84 	addi r1,r12,132                                
 80054b0:	f8 00 04 3c 	calli 80065a0 <_Timespec_Add_to>               
        _Thread_Time_of_last_context_switch = uptime;                 
 80054b4:	2b 83 00 40 	lw r3,(sp+64)                                  
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
 80054b8:	2a 84 00 00 	lw r4,(r20+0)                                  
      executing->libc_reent = *_Thread_libc_reent;                    
      *_Thread_libc_reent = heir->libc_reent;                         
    }                                                                 
                                                                      
    _User_extensions_Thread_switch( executing, heir );                
 80054bc:	b9 80 08 00 	mv r1,r12                                      
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
        _Thread_Time_of_last_context_switch = uptime;                 
 80054c0:	59 e3 00 00 	sw (r15+0),r3                                  
 80054c4:	2b 83 00 44 	lw r3,(sp+68)                                  
    if ( _Thread_libc_reent ) {                                       
      executing->libc_reent = *_Thread_libc_reent;                    
      *_Thread_libc_reent = heir->libc_reent;                         
    }                                                                 
                                                                      
    _User_extensions_Thread_switch( executing, heir );                
 80054c8:	b9 60 10 00 	mv r2,r11                                      
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
        _Thread_Time_of_last_context_switch = uptime;                 
 80054cc:	59 e3 00 04 	sw (r15+4),r3                                  
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
 80054d0:	44 80 00 05 	be r4,r0,80054e4 <_Thread_Dispatch+0x114>      <== NEVER TAKEN
      executing->libc_reent = *_Thread_libc_reent;                    
 80054d4:	28 83 00 00 	lw r3,(r4+0)                                   
 80054d8:	59 83 01 24 	sw (r12+292),r3                                
      *_Thread_libc_reent = heir->libc_reent;                         
 80054dc:	29 63 01 24 	lw r3,(r11+292)                                
 80054e0:	58 83 00 00 	sw (r4+0),r3                                   
    }                                                                 
                                                                      
    _User_extensions_Thread_switch( executing, heir );                
 80054e4:	f8 00 05 4d 	calli 8006a18 <_User_extensions_Thread_switch> 
    if ( executing->fp_context != NULL )                              
      _Context_Save_fp( &executing->fp_context );                     
#endif                                                                
#endif                                                                
                                                                      
    _Context_Switch( &executing->Registers, &heir->Registers );       
 80054e8:	35 81 00 d0 	addi r1,r12,208                                
 80054ec:	35 62 00 d0 	addi r2,r11,208                                
 80054f0:	f8 00 06 80 	calli 8006ef0 <_CPU_Context_switch>            
    if ( executing->fp_context != NULL )                              
      _Context_Restore_fp( &executing->fp_context );                  
#endif                                                                
#endif                                                                
                                                                      
    executing = _Thread_Executing;                                    
 80054f4:	29 cc 00 0c 	lw r12,(r14+12)                                
                                                                      
    _ISR_Disable( level );                                            
 80054f8:	90 00 20 00 	rcsr r4,IE                                     
 80054fc:	a0 96 08 00 	and r1,r4,r22                                  
 8005500:	d0 01 00 00 	wcsr IE,r1                                     
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Context_Switch_necessary == true ) {                       
 8005504:	41 a2 00 18 	lbu r2,(r13+24)                                
 8005508:	b9 a0 70 00 	mv r14,r13                                     
#endif                                                                
#endif                                                                
                                                                      
    executing = _Thread_Executing;                                    
                                                                      
    _ISR_Disable( level );                                            
 800550c:	b8 80 08 00 	mv r1,r4                                       
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Context_Switch_necessary == true ) {                       
 8005510:	20 42 00 ff 	andi r2,r2,0xff                                
 8005514:	44 40 00 0b 	be r2,r0,8005540 <_Thread_Dispatch+0x170>      <== ALWAYS TAKEN
    heir = _Thread_Heir;                                              
 8005518:	29 ab 00 10 	lw r11,(r13+16)                                <== NOT EXECUTED
    _Thread_Dispatch_disable_level = 1;                               
 800551c:	5a 13 00 00 	sw (r16+0),r19                                 <== NOT EXECUTED
    _Context_Switch_necessary = false;                                
 8005520:	31 a0 00 18 	sb (r13+24),r0                                 <== NOT EXECUTED
    _Thread_Executing = heir;                                         
 8005524:	59 ab 00 0c 	sw (r13+12),r11                                <== NOT EXECUTED
    /*                                                                
     *  When the heir and executing are the same, then we are being   
     *  requested to do the post switch dispatching.  This is normally
     *  done to dispatch signals.                                     
     */                                                               
    if ( heir == executing )                                          
 8005528:	45 6c 00 06 	be r11,r12,8005540 <_Thread_Dispatch+0x170>    <== NOT EXECUTED
     */                                                               
#if __RTEMS_ADA__                                                     
    executing->rtems_ada_self = rtems_ada_self;                       
    rtems_ada_self = heir->rtems_ada_self;                            
#endif                                                                
    if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE )
 800552c:	29 62 00 7c 	lw r2,(r11+124)                                
 8005530:	5c 53 ff d7 	bne r2,r19,800548c <_Thread_Dispatch+0xbc>     
      heir->cpu_time_budget = _Thread_Ticks_per_timeslice;            
 8005534:	2a a2 00 00 	lw r2,(r21+0)                                  
 8005538:	59 62 00 78 	sw (r11+120),r2                                
 800553c:	e3 ff ff d4 	bi 800548c <_Thread_Dispatch+0xbc>             
                                                                      
    _ISR_Disable( level );                                            
  }                                                                   
                                                                      
post_switch:                                                          
  _Thread_Dispatch_disable_level = 0;                                 
 8005540:	5a 00 00 00 	sw (r16+0),r0                                  
                                                                      
  _ISR_Enable( level );                                               
 8005544:	d0 04 00 00 	wcsr IE,r4                                     
                                                                      
  _API_extensions_Run_postswitch();                                   
 8005548:	fb ff f8 93 	calli 8003794 <_API_extensions_Run_postswitch> 
}                                                                     
 800554c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005550:	2b 8b 00 34 	lw r11,(sp+52)                                 
 8005554:	2b 8c 00 30 	lw r12,(sp+48)                                 
 8005558:	2b 8d 00 2c 	lw r13,(sp+44)                                 
 800555c:	2b 8e 00 28 	lw r14,(sp+40)                                 
 8005560:	2b 8f 00 24 	lw r15,(sp+36)                                 
 8005564:	2b 90 00 20 	lw r16,(sp+32)                                 
 8005568:	2b 91 00 1c 	lw r17,(sp+28)                                 
 800556c:	2b 92 00 18 	lw r18,(sp+24)                                 
 8005570:	2b 93 00 14 	lw r19,(sp+20)                                 
 8005574:	2b 94 00 10 	lw r20,(sp+16)                                 
 8005578:	2b 95 00 0c 	lw r21,(sp+12)                                 
 800557c:	2b 96 00 08 	lw r22,(sp+8)                                  
 8005580:	37 9c 00 44 	addi sp,sp,68                                  
 8005584:	c3 a0 00 00 	ret                                            
                                                                      

080055bc <_Thread_Get>: Thread_Control *_Thread_Get ( Objects_Id id, Objects_Locations *location ) {
 80055bc:	37 9c ff f0 	addi sp,sp,-16                                 
 80055c0:	5b 8b 00 10 	sw (sp+16),r11                                 
 80055c4:	5b 8c 00 0c 	sw (sp+12),r12                                 
 80055c8:	5b 8d 00 08 	sw (sp+8),r13                                  
 80055cc:	5b 9d 00 04 	sw (sp+4),ra                                   
 80055d0:	b8 20 58 00 	mv r11,r1                                      
 80055d4:	b8 40 60 00 	mv r12,r2                                      
  uint32_t             the_class;                                     
  Objects_Information **api_information;                              
  Objects_Information *information;                                   
  Thread_Control      *tp = (Thread_Control *) 0;                     
                                                                      
  if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) {           
 80055d8:	44 20 00 28 	be r1,r0,8005678 <_Thread_Get+0xbc>            
 */                                                                   
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(                   
  Objects_Id id                                                       
)                                                                     
{                                                                     
  return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
 80055dc:	34 02 00 18 	mvi r2,24                                      
 80055e0:	f8 00 32 bf 	calli 80120dc <__lshrsi3>                      
 80055e4:	20 2d 00 07 	andi r13,r1,0x7                                
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(                      
  uint32_t   the_api                                                  
)                                                                     
{                                                                     
  if ( !the_api || the_api > OBJECTS_APIS_LAST )                      
 80055e8:	35 a1 ff ff 	addi r1,r13,-1                                 
 80055ec:	34 02 00 02 	mvi r2,2                                       
 80055f0:	50 41 00 0a 	bgeu r2,r1,8005618 <_Thread_Get+0x5c>          
    goto done;                                                        
  }                                                                   
                                                                      
  the_api = _Objects_Get_API( id );                                   
  if ( !_Objects_Is_api_valid( the_api ) ) {                          
    *location = OBJECTS_ERROR;                                        
 80055f4:	34 01 00 01 	mvi r1,1                                       
 80055f8:	59 81 00 00 	sw (r12+0),r1                                  
{                                                                     
  uint32_t             the_api;                                       
  uint32_t             the_class;                                     
  Objects_Information **api_information;                              
  Objects_Information *information;                                   
  Thread_Control      *tp = (Thread_Control *) 0;                     
 80055fc:	34 01 00 00 	mvi r1,0                                       
                                                                      
  tp = (Thread_Control *) _Objects_Get( information, id, location );  
                                                                      
done:                                                                 
  return tp;                                                          
}                                                                     
 8005600:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005604:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8005608:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 800560c:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8005610:	37 9c 00 10 	addi sp,sp,16                                  
 8005614:	c3 a0 00 00 	ret                                            
 */                                                                   
RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class(                     
  Objects_Id id                                                       
)                                                                     
{                                                                     
  return (uint32_t)                                                   
 8005618:	b9 60 08 00 	mv r1,r11                                      
 800561c:	34 02 00 1b 	mvi r2,27                                      
 8005620:	f8 00 32 af 	calli 80120dc <__lshrsi3>                      
 8005624:	b8 20 20 00 	mv r4,r1                                       
    *location = OBJECTS_ERROR;                                        
    goto done;                                                        
  }                                                                   
                                                                      
  the_class = _Objects_Get_class( id );                               
  if ( the_class != 1 ) {       /* threads are always first class :) */
 8005628:	34 01 00 01 	mvi r1,1                                       
 800562c:	5c 81 00 22 	bne r4,r1,80056b4 <_Thread_Get+0xf8>           
    *location = OBJECTS_ERROR;                                        
    goto done;                                                        
  }                                                                   
                                                                      
  api_information = _Objects_Information_table[ the_api ];            
 8005630:	78 03 08 01 	mvhi r3,0x801                                  
 8005634:	b5 ad 10 00 	add r2,r13,r13                                 
 8005638:	38 63 48 48 	ori r3,r3,0x4848                               
 800563c:	b4 42 10 00 	add r2,r2,r2                                   
 8005640:	b4 62 10 00 	add r2,r3,r2                                   
 8005644:	28 41 00 00 	lw r1,(r2+0)                                   
  if ( !api_information ) {                                           
 8005648:	44 20 00 23 	be r1,r0,80056d4 <_Thread_Get+0x118>           <== NEVER TAKEN
    *location = OBJECTS_ERROR;                                        
    goto done;                                                        
  }                                                                   
                                                                      
  information = api_information[ the_class ];                         
 800564c:	28 21 00 04 	lw r1,(r1+4)                                   
  if ( !information ) {                                               
 8005650:	44 20 00 21 	be r1,r0,80056d4 <_Thread_Get+0x118>           
    *location = OBJECTS_ERROR;                                        
    goto done;                                                        
  }                                                                   
                                                                      
  tp = (Thread_Control *) _Objects_Get( information, id, location );  
 8005654:	b9 60 10 00 	mv r2,r11                                      
 8005658:	b9 80 18 00 	mv r3,r12                                      
 800565c:	fb ff fd 39 	calli 8004b40 <_Objects_Get>                   
                                                                      
done:                                                                 
  return tp;                                                          
}                                                                     
 8005660:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005664:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8005668:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 800566c:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8005670:	37 9c 00 10 	addi sp,sp,16                                  
 8005674:	c3 a0 00 00 	ret                                            
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
 8005678:	78 01 08 01 	mvhi r1,0x801                                  
 800567c:	38 21 48 ac 	ori r1,r1,0x48ac                               
 8005680:	28 22 00 00 	lw r2,(r1+0)                                   
 8005684:	34 42 00 01 	addi r2,r2,1                                   
 8005688:	58 22 00 00 	sw (r1+0),r2                                   
  Thread_Control      *tp = (Thread_Control *) 0;                     
                                                                      
  if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) {           
    _Thread_Disable_dispatch();                                       
    *location = OBJECTS_LOCAL;                                        
    tp = _Thread_Executing;                                           
 800568c:	78 01 08 01 	mvhi r1,0x801                                  
 8005690:	38 21 4d 84 	ori r1,r1,0x4d84                               
 8005694:	28 21 00 0c 	lw r1,(r1+12)                                  
  Objects_Information *information;                                   
  Thread_Control      *tp = (Thread_Control *) 0;                     
                                                                      
  if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) {           
    _Thread_Disable_dispatch();                                       
    *location = OBJECTS_LOCAL;                                        
 8005698:	59 80 00 00 	sw (r12+0),r0                                  
                                                                      
  tp = (Thread_Control *) _Objects_Get( information, id, location );  
                                                                      
done:                                                                 
  return tp;                                                          
}                                                                     
 800569c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80056a0:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80056a4:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80056a8:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80056ac:	37 9c 00 10 	addi sp,sp,16                                  
 80056b0:	c3 a0 00 00 	ret                                            
    goto done;                                                        
  }                                                                   
                                                                      
  the_class = _Objects_Get_class( id );                               
  if ( the_class != 1 ) {       /* threads are always first class :) */
    *location = OBJECTS_ERROR;                                        
 80056b4:	59 81 00 00 	sw (r12+0),r1                                  
{                                                                     
  uint32_t             the_api;                                       
  uint32_t             the_class;                                     
  Objects_Information **api_information;                              
  Objects_Information *information;                                   
  Thread_Control      *tp = (Thread_Control *) 0;                     
 80056b8:	34 01 00 00 	mvi r1,0                                       
                                                                      
  tp = (Thread_Control *) _Objects_Get( information, id, location );  
                                                                      
done:                                                                 
  return tp;                                                          
}                                                                     
 80056bc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80056c0:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80056c4:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80056c8:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80056cc:	37 9c 00 10 	addi sp,sp,16                                  
 80056d0:	c3 a0 00 00 	ret                                            
    goto done;                                                        
  }                                                                   
                                                                      
  information = api_information[ the_class ];                         
  if ( !information ) {                                               
    *location = OBJECTS_ERROR;                                        
 80056d4:	59 84 00 00 	sw (r12+0),r4                                  
    goto done;                                                        
 80056d8:	e3 ff ff e2 	bi 8005660 <_Thread_Get+0xa4>                  
                                                                      

0800c9ec <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) {
 800c9ec:	37 9c ff f4 	addi sp,sp,-12                                 
 800c9f0:	5b 8b 00 0c 	sw (sp+12),r11                                 
 800c9f4:	5b 8c 00 08 	sw (sp+8),r12                                  
 800c9f8:	5b 9d 00 04 	sw (sp+4),ra                                   
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    static char doneConstructors;                                     
    char doneCons;                                                    
  #endif                                                              
                                                                      
  executing = _Thread_Executing;                                      
 800c9fc:	78 01 08 01 	mvhi r1,0x801                                  
 800ca00:	38 21 4d 84 	ori r1,r1,0x4d84                               
 800ca04:	28 2b 00 0c 	lw r11,(r1+12)                                 
  /*                                                                  
   * have to put level into a register for those cpu's that use       
   * inline asm here                                                  
   */                                                                 
                                                                      
  level = executing->Start.isr_level;                                 
 800ca08:	29 61 00 b8 	lw r1,(r11+184)                                
  _ISR_Set_level(level);                                              
 800ca0c:	64 21 00 00 	cmpei r1,r1,0                                  
 800ca10:	d0 01 00 00 	wcsr IE,r1                                     
                                                                      
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    doneCons = doneConstructors;                                      
 800ca14:	78 02 08 01 	mvhi r2,0x801                                  
 800ca18:	38 42 46 bc 	ori r2,r2,0x46bc                               
 800ca1c:	40 4c 00 00 	lbu r12,(r2+0)                                 
    doneConstructors = 1;                                             
 800ca20:	34 03 00 01 	mvi r3,1                                       
  /*                                                                  
   * Take care that 'begin' extensions get to complete before         
   * 'switch' extensions can run.  This means must keep dispatch      
   * disabled until all 'begin' extensions complete.                  
   */                                                                 
  _User_extensions_Thread_begin( executing );                         
 800ca24:	b9 60 08 00 	mv r1,r11                                      
  level = executing->Start.isr_level;                                 
  _ISR_Set_level(level);                                              
                                                                      
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    doneCons = doneConstructors;                                      
    doneConstructors = 1;                                             
 800ca28:	30 43 00 00 	sb (r2+0),r3                                   
  /*                                                                  
   * Take care that 'begin' extensions get to complete before         
   * 'switch' extensions can run.  This means must keep dispatch      
   * disabled until all 'begin' extensions complete.                  
   */                                                                 
  _User_extensions_Thread_begin( executing );                         
 800ca2c:	fb ff e7 4f 	calli 8006768 <_User_extensions_Thread_begin>  
                                                                      
  /*                                                                  
   *  At this point, the dispatch disable level BETTER be 1.          
   */                                                                 
  _Thread_Enable_dispatch();                                          
 800ca30:	fb ff e2 d6 	calli 8005588 <_Thread_Enable_dispatch>        
    /*                                                                
     *  _init could be a weak symbol and we SHOULD test it but it isn't
     *  in any configuration I know of and it generates a warning on every
     *  RTEMS target configuration.  --joel (12 May 2007)             
     */                                                               
    if (!doneCons) /* && (volatile void *)_init) */ {                 
 800ca34:	45 80 00 0b 	be r12,r0,800ca60 <_Thread_Handler+0x74>       
      INIT_NAME ();                                                   
    }                                                                 
  #endif                                                              
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
 800ca38:	29 61 00 a0 	lw r1,(r11+160)                                
 800ca3c:	44 20 00 0c 	be r1,r0,800ca6c <_Thread_Handler+0x80>        
      (*(Thread_Entry_numeric) executing->Start.entry_point)(         
        executing->Start.numeric_argument                             
      );                                                              
  }                                                                   
  #if defined(RTEMS_POSIX_API)                                        
    else if ( executing->Start.prototype == THREAD_START_POINTER ) {  
 800ca40:	34 02 00 01 	mvi r2,1                                       
 800ca44:	44 22 00 0f 	be r1,r2,800ca80 <_Thread_Handler+0x94>        <== ALWAYS TAKEN
   *  was placed in return_argument.  This assumed that if it returned
   *  anything (which is not supporting in all APIs), then it would be
   *  able to fit in a (void *).                                      
   */                                                                 
                                                                      
  _User_extensions_Thread_exitted( executing );                       
 800ca48:	b9 60 08 00 	mv r1,r11                                      
 800ca4c:	fb ff e7 5f 	calli 80067c8 <_User_extensions_Thread_exitted>
                                                                      
  _Internal_error_Occurred(                                           
 800ca50:	34 01 00 00 	mvi r1,0                                       
 800ca54:	34 02 00 01 	mvi r2,1                                       
 800ca58:	34 03 00 05 	mvi r3,5                                       
 800ca5c:	fb ff de 8c 	calli 800448c <_Internal_error_Occurred>       
     *  _init could be a weak symbol and we SHOULD test it but it isn't
     *  in any configuration I know of and it generates a warning on every
     *  RTEMS target configuration.  --joel (12 May 2007)             
     */                                                               
    if (!doneCons) /* && (volatile void *)_init) */ {                 
      INIT_NAME ();                                                   
 800ca60:	fb ff cd 68 	calli 8000000 <RamBase>                        
    }                                                                 
  #endif                                                              
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
 800ca64:	29 61 00 a0 	lw r1,(r11+160)                                
 800ca68:	5c 20 ff f6 	bne r1,r0,800ca40 <_Thread_Handler+0x54>       
    executing->Wait.return_argument =                                 
      (*(Thread_Entry_numeric) executing->Start.entry_point)(         
 800ca6c:	29 62 00 9c 	lw r2,(r11+156)                                
 800ca70:	29 61 00 a8 	lw r1,(r11+168)                                
 800ca74:	d8 40 00 00 	call r2                                        
      INIT_NAME ();                                                   
    }                                                                 
  #endif                                                              
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
    executing->Wait.return_argument =                                 
 800ca78:	59 61 00 28 	sw (r11+40),r1                                 
 800ca7c:	e3 ff ff f3 	bi 800ca48 <_Thread_Handler+0x5c>              
      );                                                              
  }                                                                   
  #if defined(RTEMS_POSIX_API)                                        
    else if ( executing->Start.prototype == THREAD_START_POINTER ) {  
      executing->Wait.return_argument =                               
        (*(Thread_Entry_pointer) executing->Start.entry_point)(       
 800ca80:	29 62 00 9c 	lw r2,(r11+156)                                
 800ca84:	29 61 00 a4 	lw r1,(r11+164)                                
 800ca88:	d8 40 00 00 	call r2                                        
        executing->Start.numeric_argument                             
      );                                                              
  }                                                                   
  #if defined(RTEMS_POSIX_API)                                        
    else if ( executing->Start.prototype == THREAD_START_POINTER ) {  
      executing->Wait.return_argument =                               
 800ca8c:	59 61 00 28 	sw (r11+40),r1                                 
 800ca90:	e3 ff ff ee 	bi 800ca48 <_Thread_Handler+0x5c>              
                                                                      

08006f80 <_Thread_Restart>: bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) {
 8006f80:	37 9c ff ec 	addi sp,sp,-20                                 
 8006f84:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8006f88:	5b 8c 00 08 	sw (sp+8),r12                                  
 8006f8c:	5b 9d 00 04 	sw (sp+4),ra                                   
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_dormant (                        
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_DORMANT);                              
 8006f90:	28 24 00 10 	lw r4,(r1+16)                                  
 8006f94:	b8 20 58 00 	mv r11,r1                                      
      _Thread_Restart_self();                                         
                                                                      
    return true;                                                      
  }                                                                   
                                                                      
  return false;                                                       
 8006f98:	34 0c 00 00 	mvi r12,0                                      
 8006f9c:	20 84 00 01 	andi r4,r4,0x1                                 
  Thread_Control            *the_thread,                              
  void                      *pointer_argument,                        
  Thread_Entry_numeric_type  numeric_argument                         
)                                                                     
{                                                                     
  if ( !_States_Is_dormant( the_thread->current_state ) ) {           
 8006fa0:	44 80 00 07 	be r4,r0,8006fbc <_Thread_Restart+0x3c>        
                                                                      
    return true;                                                      
  }                                                                   
                                                                      
  return false;                                                       
}                                                                     
 8006fa4:	b9 80 08 00 	mv r1,r12                                      
 8006fa8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006fac:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8006fb0:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8006fb4:	37 9c 00 14 	addi sp,sp,20                                  
 8006fb8:	c3 a0 00 00 	ret                                            
  Thread_Entry_numeric_type  numeric_argument                         
)                                                                     
{                                                                     
  if ( !_States_Is_dormant( the_thread->current_state ) ) {           
                                                                      
    _Thread_Set_transient( the_thread );                              
 8006fbc:	5b 82 00 14 	sw (sp+20),r2                                  
 8006fc0:	5b 83 00 10 	sw (sp+16),r3                                  
 8006fc4:	f8 00 00 ac 	calli 8007274 <_Thread_Set_transient>          
                                                                      
    _Thread_Reset( the_thread, pointer_argument, numeric_argument );  
 8006fc8:	2b 82 00 14 	lw r2,(sp+20)                                  
 8006fcc:	2b 83 00 10 	lw r3,(sp+16)                                  
 8006fd0:	b9 60 08 00 	mv r1,r11                                      
    _User_extensions_Thread_restart( the_thread );                    
                                                                      
    if ( _Thread_Is_executing ( the_thread ) )                        
      _Thread_Restart_self();                                         
                                                                      
    return true;                                                      
 8006fd4:	34 0c 00 01 	mvi r12,1                                      
{                                                                     
  if ( !_States_Is_dormant( the_thread->current_state ) ) {           
                                                                      
    _Thread_Set_transient( the_thread );                              
                                                                      
    _Thread_Reset( the_thread, pointer_argument, numeric_argument );  
 8006fd8:	f8 00 12 db 	calli 800bb44 <_Thread_Reset>                  
                                                                      
    _Thread_Load_environment( the_thread );                           
 8006fdc:	b9 60 08 00 	mv r1,r11                                      
 8006fe0:	f8 00 11 a6 	calli 800b678 <_Thread_Load_environment>       
                                                                      
    _Thread_Ready( the_thread );                                      
 8006fe4:	b9 60 08 00 	mv r1,r11                                      
 8006fe8:	f8 00 12 78 	calli 800b9c8 <_Thread_Ready>                  
                                                                      
    _User_extensions_Thread_restart( the_thread );                    
 8006fec:	b9 60 08 00 	mv r1,r11                                      
 8006ff0:	f8 00 02 66 	calli 8007988 <_User_extensions_Thread_restart>
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
 8006ff4:	78 01 08 01 	mvhi r1,0x801                                  
 8006ff8:	38 21 fd cc 	ori r1,r1,0xfdcc                               
                                                                      
    if ( _Thread_Is_executing ( the_thread ) )                        
 8006ffc:	28 21 00 0c 	lw r1,(r1+12)                                  
 8007000:	5d 61 ff e9 	bne r11,r1,8006fa4 <_Thread_Restart+0x24>      
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )        
  if ( _Thread_Executing->fp_context != NULL )                        
    _Context_Restore_fp( &_Thread_Executing->fp_context );            
#endif                                                                
                                                                      
  _CPU_Context_Restart_self( &_Thread_Executing->Registers );         
 8007004:	35 61 00 d0 	addi r1,r11,208                                
 8007008:	f8 00 04 05 	calli 800801c <_CPU_Context_restore>           
 800700c:	e3 ff ff e6 	bi 8006fa4 <_Thread_Restart+0x24>              <== NOT EXECUTED
                                                                      

0800a718 <_Thread_Resume>: { ISR_Level level; States_Control current_state; _ISR_Disable( level );
 800a718:	90 00 10 00 	rcsr r2,IE                                     
 800a71c:	34 04 ff fe 	mvi r4,-2                                      
 800a720:	a0 44 20 00 	and r4,r2,r4                                   
 800a724:	d0 04 00 00 	wcsr IE,r4                                     
                                                                      
  current_state = the_thread->current_state;                          
 800a728:	28 23 00 10 	lw r3,(r1+16)                                  
  if ( current_state & STATES_SUSPENDED ) {                           
 800a72c:	20 65 00 02 	andi r5,r3,0x2                                 
 800a730:	44 a0 00 26 	be r5,r0,800a7c8 <_Thread_Resume+0xb0>         <== NEVER TAKEN
RTEMS_INLINE_ROUTINE States_Control _States_Clear (                   
  States_Control states_to_clear,                                     
  States_Control current_state                                        
)                                                                     
{                                                                     
   return (current_state & ~states_to_clear);                         
 800a734:	34 05 ff fd 	mvi r5,-3                                      
 800a738:	a0 65 18 00 	and r3,r3,r5                                   
    current_state =                                                   
    the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state);
 800a73c:	58 23 00 10 	sw (r1+16),r3                                  
                                                                      
    if ( _States_Is_ready( current_state ) ) {                        
 800a740:	5c 60 00 22 	bne r3,r0,800a7c8 <_Thread_Resume+0xb0>        
                                                                      
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (                  
  Priority_Information *the_priority_map                              
)                                                                     
{                                                                     
  *the_priority_map->minor |= the_priority_map->ready_minor;          
 800a744:	28 26 00 90 	lw r6,(r1+144)                                 
 800a748:	2c 27 00 96 	lhu r7,(r1+150)                                
  _Priority_Major_bit_map  |= the_priority_map->ready_major;          
 800a74c:	78 03 08 01 	mvhi r3,0x801                                  
                                                                      
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (                  
  Priority_Information *the_priority_map                              
)                                                                     
{                                                                     
  *the_priority_map->minor |= the_priority_map->ready_minor;          
 800a750:	2c c8 00 00 	lhu r8,(r6+0)                                  
                                                                      
      _Priority_Add_to_bit_map( &the_thread->Priority_map );          
                                                                      
      _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
 800a754:	28 25 00 8c 	lw r5,(r1+140)                                 
  _Priority_Major_bit_map  |= the_priority_map->ready_major;          
 800a758:	38 63 aa 14 	ori r3,r3,0xaa14                               
                                                                      
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (                  
  Priority_Information *the_priority_map                              
)                                                                     
{                                                                     
  *the_priority_map->minor |= the_priority_map->ready_minor;          
 800a75c:	b9 07 38 00 	or r7,r8,r7                                    
 800a760:	0c c7 00 00 	sh (r6+0),r7                                   
  _Priority_Major_bit_map  |= the_priority_map->ready_major;          
 800a764:	2c 68 00 00 	lhu r8,(r3+0)                                  
 800a768:	2c 29 00 94 	lhu r9,(r1+148)                                
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
  old_last_node       = the_chain->last;                              
 800a76c:	28 a6 00 08 	lw r6,(r5+8)                                   
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 800a770:	34 a7 00 04 	addi r7,r5,4                                   
 800a774:	b9 28 40 00 	or r8,r9,r8                                    
 800a778:	21 08 ff ff 	andi r8,r8,0xffff                              
 800a77c:	0c 68 00 00 	sh (r3+0),r8                                   
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
 800a780:	58 27 00 00 	sw (r1+0),r7                                   
  old_last_node       = the_chain->last;                              
  the_chain->last     = the_node;                                     
 800a784:	58 a1 00 08 	sw (r5+8),r1                                   
  old_last_node->next = the_node;                                     
 800a788:	58 c1 00 00 	sw (r6+0),r1                                   
  the_node->previous  = old_last_node;                                
 800a78c:	58 26 00 04 	sw (r1+4),r6                                   
                                                                      
      _ISR_Flash( level );                                            
 800a790:	d0 02 00 00 	wcsr IE,r2                                     
 800a794:	d0 04 00 00 	wcsr IE,r4                                     
                                                                      
      if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
 800a798:	78 03 08 01 	mvhi r3,0x801                                  
 800a79c:	38 63 ae 4c 	ori r3,r3,0xae4c                               
 800a7a0:	28 65 00 10 	lw r5,(r3+16)                                  
 800a7a4:	28 24 00 14 	lw r4,(r1+20)                                  
 800a7a8:	28 a5 00 14 	lw r5,(r5+20)                                  
 800a7ac:	50 85 00 07 	bgeu r4,r5,800a7c8 <_Thread_Resume+0xb0>       
        _Thread_Heir = the_thread;                                    
        if ( _Thread_Executing->is_preemptible ||                     
 800a7b0:	28 65 00 0c 	lw r5,(r3+12)                                  
      _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
                                                                      
      _ISR_Flash( level );                                            
                                                                      
      if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
        _Thread_Heir = the_thread;                                    
 800a7b4:	58 61 00 10 	sw (r3+16),r1                                  
        if ( _Thread_Executing->is_preemptible ||                     
 800a7b8:	40 a1 00 74 	lbu r1,(r5+116)                                
 800a7bc:	44 20 00 05 	be r1,r0,800a7d0 <_Thread_Resume+0xb8>         
             the_thread->current_priority == 0 )                      
          _Context_Switch_necessary = true;                           
 800a7c0:	34 01 00 01 	mvi r1,1                                       
 800a7c4:	30 61 00 18 	sb (r3+24),r1                                  
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
 800a7c8:	d0 02 00 00 	wcsr IE,r2                                     
}                                                                     
 800a7cc:	c3 a0 00 00 	ret                                            
                                                                      
      _ISR_Flash( level );                                            
                                                                      
      if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
        _Thread_Heir = the_thread;                                    
        if ( _Thread_Executing->is_preemptible ||                     
 800a7d0:	44 81 ff fc 	be r4,r1,800a7c0 <_Thread_Resume+0xa8>         <== NEVER TAKEN
 800a7d4:	e3 ff ff fd 	bi 800a7c8 <_Thread_Resume+0xb0>               
                                                                      

08006484 <_Thread_Tickle_timeslice>: * * Output parameters: NONE */ void _Thread_Tickle_timeslice( void ) {
 8006484:	37 9c ff f8 	addi sp,sp,-8                                  
 8006488:	5b 9d 00 04 	sw (sp+4),ra                                   
  Thread_Control *executing;                                          
                                                                      
  executing = _Thread_Executing;                                      
 800648c:	78 01 08 01 	mvhi r1,0x801                                  
 8006490:	38 21 4d 84 	ori r1,r1,0x4d84                               
 8006494:	28 21 00 0c 	lw r1,(r1+12)                                  
  /*                                                                  
   *  If the thread is not preemptible or is not ready, then          
   *  just return.                                                    
   */                                                                 
                                                                      
  if ( !executing->is_preemptible )                                   
 8006498:	40 22 00 74 	lbu r2,(r1+116)                                
 800649c:	44 40 00 09 	be r2,r0,80064c0 <_Thread_Tickle_timeslice+0x3c>
    return;                                                           
                                                                      
  if ( !_States_Is_ready( executing->current_state ) )                
 80064a0:	28 22 00 10 	lw r2,(r1+16)                                  
 80064a4:	5c 40 00 07 	bne r2,r0,80064c0 <_Thread_Tickle_timeslice+0x3c>
                                                                      
  /*                                                                  
   *  The cpu budget algorithm determines what happens next.          
   */                                                                 
                                                                      
  switch ( executing->budget_algorithm ) {                            
 80064a8:	28 22 00 7c 	lw r2,(r1+124)                                 
 80064ac:	44 40 00 05 	be r2,r0,80064c0 <_Thread_Tickle_timeslice+0x3c>
 80064b0:	34 03 00 02 	mvi r3,2                                       
 80064b4:	50 62 00 0d 	bgeu r3,r2,80064e8 <_Thread_Tickle_timeslice+0x64>
 80064b8:	34 03 00 03 	mvi r3,3                                       
 80064bc:	44 43 00 04 	be r2,r3,80064cc <_Thread_Tickle_timeslice+0x48><== ALWAYS TAKEN
	if ( --executing->cpu_time_budget == 0 )                             
	  (*executing->budget_callout)( executing );                         
	break;                                                               
    #endif                                                            
  }                                                                   
}                                                                     
 80064c0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80064c4:	37 9c 00 08 	addi sp,sp,8                                   
 80064c8:	c3 a0 00 00 	ret                                            
      }                                                               
      break;                                                          
                                                                      
    #if defined(RTEMS_SCORE_THREAD_ENABLE_SCHEDULER_CALLOUT)          
      case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:                       
	if ( --executing->cpu_time_budget == 0 )                             
 80064cc:	28 22 00 78 	lw r2,(r1+120)                                 
 80064d0:	34 42 ff ff 	addi r2,r2,-1                                  
 80064d4:	58 22 00 78 	sw (r1+120),r2                                 
 80064d8:	5c 40 ff fa 	bne r2,r0,80064c0 <_Thread_Tickle_timeslice+0x3c>
	  (*executing->budget_callout)( executing );                         
 80064dc:	28 22 00 80 	lw r2,(r1+128)                                 
 80064e0:	d8 40 00 00 	call r2                                        
 80064e4:	e3 ff ff f7 	bi 80064c0 <_Thread_Tickle_timeslice+0x3c>     
                                                                      
    case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE:                 
    #if defined(RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE)          
      case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE:             
    #endif                                                            
      if ( (int)(--executing->cpu_time_budget) <= 0 ) {               
 80064e8:	28 22 00 78 	lw r2,(r1+120)                                 
 80064ec:	34 42 ff ff 	addi r2,r2,-1                                  
 80064f0:	58 22 00 78 	sw (r1+120),r2                                 
 80064f4:	48 40 ff f3 	bg r2,r0,80064c0 <_Thread_Tickle_timeslice+0x3c>
         *  at the priority of the currently executing thread, then the
         *  executing thread's timeslice is reset.  Otherwise, the    
         *  currently executing thread is placed at the rear of the   
         *  FIFO for this priority and a new heir is selected.        
         */                                                           
        _Thread_Yield_processor();                                    
 80064f8:	5b 81 00 08 	sw (sp+8),r1                                   
 80064fc:	f8 00 00 07 	calli 8006518 <_Thread_Yield_processor>        
        executing->cpu_time_budget = _Thread_Ticks_per_timeslice;     
 8006500:	78 02 08 01 	mvhi r2,0x801                                  
 8006504:	38 42 48 44 	ori r2,r2,0x4844                               
 8006508:	28 42 00 00 	lw r2,(r2+0)                                   
 800650c:	2b 81 00 08 	lw r1,(sp+8)                                   
 8006510:	58 22 00 78 	sw (r1+120),r2                                 
 8006514:	e3 ff ff eb 	bi 80064c0 <_Thread_Tickle_timeslice+0x3c>     
                                                                      

08005c80 <_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 ) {
 8005c80:	37 9c ff f0 	addi sp,sp,-16                                 
 8005c84:	5b 8b 00 10 	sw (sp+16),r11                                 
 8005c88:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8005c8c:	5b 8d 00 08 	sw (sp+8),r13                                  
 8005c90:	5b 8e 00 04 	sw (sp+4),r14                                  
  Priority_Control     priority;                                      
  States_Control       block_state;                                   
                                                                      
  _Chain_Initialize_empty( &the_thread->Wait.Block2n );               
                                                                      
  priority     = the_thread->current_priority;                        
 8005c94:	28 45 00 14 	lw r5,(r2+20)                                  
 8005c98:	34 47 00 3c 	addi r7,r2,60                                  
  Chain_Node          *previous_node;                                 
  Chain_Node          *search_node;                                   
  Priority_Control     priority;                                      
  States_Control       block_state;                                   
                                                                      
  _Chain_Initialize_empty( &the_thread->Wait.Block2n );               
 8005c9c:	34 46 00 38 	addi r6,r2,56                                  
                                                                      
RTEMS_INLINE_ROUTINE uint32_t   _Thread_queue_Header_number (         
  Priority_Control the_priority                                       
)                                                                     
{                                                                     
  return (the_priority / TASK_QUEUE_DATA_PRIORITIES_PER_HEADER);      
 8005ca0:	00 a4 00 01 	srui r4,r5,1                                   
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
 8005ca4:	58 47 00 38 	sw (r2+56),r7                                  
 8005ca8:	00 84 00 01 	srui r4,r4,1                                   
  the_chain->permanent_null = NULL;                                   
  the_chain->last           = _Chain_Head(the_chain);                 
 8005cac:	58 46 00 40 	sw (r2+64),r6                                  
 8005cb0:	00 84 00 01 	srui r4,r4,1                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
  the_chain->permanent_null = NULL;                                   
 8005cb4:	58 40 00 3c 	sw (r2+60),r0                                  
 8005cb8:	00 84 00 01 	srui r4,r4,1                                   
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_queue_Is_reverse_search (           
  Priority_Control the_priority                                       
)                                                                     
{                                                                     
  return ( the_priority & TASK_QUEUE_DATA_REVERSE_SEARCH_MASK );      
 8005cbc:	20 a6 00 20 	andi r6,r5,0x20                                
                                                                      
RTEMS_INLINE_ROUTINE uint32_t   _Thread_queue_Header_number (         
  Priority_Control the_priority                                       
)                                                                     
{                                                                     
  return (the_priority / TASK_QUEUE_DATA_PRIORITIES_PER_HEADER);      
 8005cc0:	00 84 00 01 	srui r4,r4,1                                   
                                                                      
  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;                             
 8005cc4:	28 27 00 38 	lw r7,(r1+56)                                  
 8005cc8:	00 84 00 01 	srui r4,r4,1                                   
                                                                      
  if ( _Thread_queue_Is_reverse_search( priority ) )                  
 8005ccc:	5c c0 00 19 	bne r6,r0,8005d30 <_Thread_queue_Enqueue_priority+0xb0>
 8005cd0:	b4 84 50 00 	add r10,r4,r4                                  
    goto restart_reverse_search;                                      
                                                                      
restart_forward_search:                                               
  search_priority = PRIORITY_MINIMUM - 1;                             
  _ISR_Disable( level );                                              
  search_thread = (Thread_Control *) header->first;                   
 8005cd4:	b5 44 20 00 	add r4,r10,r4                                  
 8005cd8:	b4 84 20 00 	add r4,r4,r4                                   
 8005cdc:	b4 84 20 00 	add r4,r4,r4                                   
 8005ce0:	b4 24 60 00 	add r12,r1,r4                                  
  if ( _Thread_queue_Is_reverse_search( priority ) )                  
    goto restart_reverse_search;                                      
                                                                      
restart_forward_search:                                               
  search_priority = PRIORITY_MINIMUM - 1;                             
  _ISR_Disable( level );                                              
 8005ce4:	34 0d ff fe 	mvi r13,-2                                     
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 8005ce8:	35 8b 00 04 	addi r11,r12,4                                 
 8005cec:	90 00 40 00 	rcsr r8,IE                                     
 8005cf0:	a1 0d 50 00 	and r10,r8,r13                                 
 8005cf4:	d0 0a 00 00 	wcsr IE,r10                                    
  search_thread = (Thread_Control *) header->first;                   
 8005cf8:	29 84 00 00 	lw r4,(r12+0)                                  
  while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {  
 8005cfc:	5c 8b 00 04 	bne r4,r11,8005d0c <_Thread_queue_Enqueue_priority+0x8c>
 8005d00:	e0 00 00 28 	bi 8005da0 <_Thread_queue_Enqueue_priority+0x120>
    if ( !_States_Are_set( search_thread->current_state, block_state) ) {
      _ISR_Enable( level );                                           
      goto restart_forward_search;                                    
    }                                                                 
    search_thread =                                                   
       (Thread_Control *)search_thread->Object.Node.next;             
 8005d04:	28 84 00 00 	lw r4,(r4+0)                                   
                                                                      
restart_forward_search:                                               
  search_priority = PRIORITY_MINIMUM - 1;                             
  _ISR_Disable( level );                                              
  search_thread = (Thread_Control *) header->first;                   
  while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {  
 8005d08:	44 8b 00 27 	be r4,r11,8005da4 <_Thread_queue_Enqueue_priority+0x124>
    search_priority = search_thread->current_priority;                
 8005d0c:	28 86 00 14 	lw r6,(r4+20)                                  
    if ( priority <= search_priority )                                
 8005d10:	50 c5 00 25 	bgeu r6,r5,8005da4 <_Thread_queue_Enqueue_priority+0x124>
      break;                                                          
    search_priority = search_thread->current_priority;                
    if ( priority <= search_priority )                                
      break;                                                          
#endif                                                                
    _ISR_Flash( level );                                              
 8005d14:	d0 08 00 00 	wcsr IE,r8                                     
 8005d18:	d0 0a 00 00 	wcsr IE,r10                                    
RTEMS_INLINE_ROUTINE bool _States_Are_set (                           
  States_Control the_states,                                          
  States_Control mask                                                 
)                                                                     
{                                                                     
   return ( (the_states & mask) != STATES_READY);                     
 8005d1c:	28 89 00 10 	lw r9,(r4+16)                                  
 8005d20:	a0 e9 48 00 	and r9,r7,r9                                   
    if ( !_States_Are_set( search_thread->current_state, block_state) ) {
 8005d24:	5d 20 ff f8 	bne r9,r0,8005d04 <_Thread_queue_Enqueue_priority+0x84><== ALWAYS TAKEN
      _ISR_Enable( level );                                           
 8005d28:	d0 08 00 00 	wcsr IE,r8                                     <== NOT EXECUTED
      goto restart_forward_search;                                    
 8005d2c:	e3 ff ff f0 	bi 8005cec <_Thread_queue_Enqueue_priority+0x6c><== NOT EXECUTED
                                                                      
  _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 ];  
 8005d30:	b4 84 50 00 	add r10,r4,r4                                  
 8005d34:	b5 44 50 00 	add r10,r10,r4                                 
 8005d38:	b5 4a 50 00 	add r10,r10,r10                                
 8005d3c:	b5 4a 50 00 	add r10,r10,r10                                
 8005d40:	b4 2a 50 00 	add r10,r1,r10                                 
 8005d44:	78 0c 08 01 	mvhi r12,0x801                                 
 8005d48:	39 8c 40 c0 	ori r12,r12,0x40c0                             
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
                                                                      
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
                                                                      
  _ISR_Disable( level );                                              
 8005d4c:	34 0e ff fe 	mvi r14,-2                                     
  search_thread = (Thread_Control *) header->last;                    
 8005d50:	b9 40 68 00 	mv r13,r10                                     
  the_thread->Wait.queue = the_thread_queue;                          
  _ISR_Enable( level );                                               
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
                                                                      
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
 8005d54:	41 86 00 00 	lbu r6,(r12+0)                                 
 8005d58:	34 c6 00 01 	addi r6,r6,1                                   
                                                                      
  _ISR_Disable( level );                                              
 8005d5c:	90 00 40 00 	rcsr r8,IE                                     
 8005d60:	a1 0e 58 00 	and r11,r8,r14                                 
 8005d64:	d0 0b 00 00 	wcsr IE,r11                                    
  search_thread = (Thread_Control *) header->last;                    
 8005d68:	29 a4 00 08 	lw r4,(r13+8)                                  
  while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {  
 8005d6c:	5c 8a 00 04 	bne r4,r10,8005d7c <_Thread_queue_Enqueue_priority+0xfc>
 8005d70:	e0 00 00 19 	bi 8005dd4 <_Thread_queue_Enqueue_priority+0x154>
    if ( !_States_Are_set( search_thread->current_state, block_state) ) {
      _ISR_Enable( level );                                           
      goto restart_reverse_search;                                    
    }                                                                 
    search_thread = (Thread_Control *)                                
                         search_thread->Object.Node.previous;         
 8005d74:	28 84 00 04 	lw r4,(r4+4)                                   
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
                                                                      
  _ISR_Disable( level );                                              
  search_thread = (Thread_Control *) header->last;                    
  while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {  
 8005d78:	44 8a 00 17 	be r4,r10,8005dd4 <_Thread_queue_Enqueue_priority+0x154>
    search_priority = search_thread->current_priority;                
 8005d7c:	28 86 00 14 	lw r6,(r4+20)                                  
    if ( priority >= search_priority )                                
 8005d80:	50 a6 00 15 	bgeu r5,r6,8005dd4 <_Thread_queue_Enqueue_priority+0x154>
      break;                                                          
    search_priority = search_thread->current_priority;                
    if ( priority >= search_priority )                                
      break;                                                          
#endif                                                                
    _ISR_Flash( level );                                              
 8005d84:	d0 08 00 00 	wcsr IE,r8                                     
 8005d88:	d0 0b 00 00 	wcsr IE,r11                                    
 8005d8c:	28 89 00 10 	lw r9,(r4+16)                                  
 8005d90:	a0 e9 48 00 	and r9,r7,r9                                   
    if ( !_States_Are_set( search_thread->current_state, block_state) ) {
 8005d94:	5d 20 ff f8 	bne r9,r0,8005d74 <_Thread_queue_Enqueue_priority+0xf4><== ALWAYS TAKEN
      _ISR_Enable( level );                                           
 8005d98:	d0 08 00 00 	wcsr IE,r8                                     <== NOT EXECUTED
      goto restart_reverse_search;                                    
 8005d9c:	e3 ff ff ee 	bi 8005d54 <_Thread_queue_Enqueue_priority+0xd4><== NOT EXECUTED
                                                                      
  if ( _Thread_queue_Is_reverse_search( priority ) )                  
    goto restart_reverse_search;                                      
                                                                      
restart_forward_search:                                               
  search_priority = PRIORITY_MINIMUM - 1;                             
 8005da0:	34 06 ff ff 	mvi r6,-1                                      
    }                                                                 
    search_thread =                                                   
       (Thread_Control *)search_thread->Object.Node.next;             
  }                                                                   
                                                                      
  if ( the_thread_queue->sync_state !=                                
 8005da4:	28 27 00 30 	lw r7,(r1+48)                                  
 8005da8:	34 0a 00 01 	mvi r10,1                                      
 8005dac:	b9 00 48 00 	mv r9,r8                                       
 8005db0:	44 ea 00 1d 	be r7,r10,8005e24 <_Thread_queue_Enqueue_priority+0x1a4>
   *  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;                                                   
 8005db4:	58 69 00 00 	sw (r3+0),r9                                   
  return the_thread_queue->sync_state;                                
}                                                                     
 8005db8:	b8 e0 08 00 	mv r1,r7                                       
 8005dbc:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8005dc0:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8005dc4:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8005dc8:	2b 8e 00 04 	lw r14,(sp+4)                                  
 8005dcc:	37 9c 00 10 	addi sp,sp,16                                  
 8005dd0:	c3 a0 00 00 	ret                                            
    }                                                                 
    search_thread = (Thread_Control *)                                
                         search_thread->Object.Node.previous;         
  }                                                                   
                                                                      
  if ( the_thread_queue->sync_state !=                                
 8005dd4:	28 27 00 30 	lw r7,(r1+48)                                  
 8005dd8:	34 0a 00 01 	mvi r10,1                                      
 8005ddc:	b9 00 48 00 	mv r9,r8                                       
 8005de0:	5c ea ff f5 	bne r7,r10,8005db4 <_Thread_queue_Enqueue_priority+0x134>
       THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )                   
    goto synchronize;                                                 
                                                                      
  the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
 8005de4:	58 20 00 30 	sw (r1+48),r0                                  
                                                                      
  if ( priority == search_priority )                                  
 8005de8:	44 a6 00 1f 	be r5,r6,8005e64 <_Thread_queue_Enqueue_priority+0x1e4>
    goto equal_priority;                                              
                                                                      
  search_node = (Chain_Node *) search_thread;                         
  next_node   = search_node->next;                                    
 8005dec:	28 83 00 00 	lw r3,(r4+0)                                   
  the_node    = (Chain_Node *) the_thread;                            
                                                                      
  the_node->next          = next_node;                                
  the_node->previous      = search_node;                              
 8005df0:	58 44 00 04 	sw (r2+4),r4                                   
                                                                      
  search_node = (Chain_Node *) search_thread;                         
  next_node   = search_node->next;                                    
  the_node    = (Chain_Node *) the_thread;                            
                                                                      
  the_node->next          = next_node;                                
 8005df4:	58 43 00 00 	sw (r2+0),r3                                   
  the_node->previous      = search_node;                              
  search_node->next       = the_node;                                 
 8005df8:	58 82 00 00 	sw (r4+0),r2                                   
  next_node->previous    = the_node;                                  
 8005dfc:	58 62 00 04 	sw (r3+4),r2                                   
  the_thread->Wait.queue = the_thread_queue;                          
 8005e00:	58 41 00 44 	sw (r2+68),r1                                  
  _ISR_Enable( level );                                               
 8005e04:	d0 08 00 00 	wcsr IE,r8                                     
   *                                                                  
   *  WARNING! Returning with interrupts disabled!                    
   */                                                                 
  *level_p = level;                                                   
  return the_thread_queue->sync_state;                                
}                                                                     
 8005e08:	b8 e0 08 00 	mv r1,r7                                       
 8005e0c:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8005e10:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8005e14:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8005e18:	2b 8e 00 04 	lw r14,(sp+4)                                  
 8005e1c:	37 9c 00 10 	addi sp,sp,16                                  
 8005e20:	c3 a0 00 00 	ret                                            
                                                                      
  if ( the_thread_queue->sync_state !=                                
       THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )                   
    goto synchronize;                                                 
                                                                      
  the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
 8005e24:	58 20 00 30 	sw (r1+48),r0                                  
                                                                      
  if ( priority == search_priority )                                  
 8005e28:	44 a6 00 0f 	be r5,r6,8005e64 <_Thread_queue_Enqueue_priority+0x1e4>
    goto equal_priority;                                              
                                                                      
  search_node   = (Chain_Node *) search_thread;                       
  previous_node = search_node->previous;                              
 8005e2c:	28 83 00 04 	lw r3,(r4+4)                                   
  the_node      = (Chain_Node *) the_thread;                          
                                                                      
  the_node->next         = search_node;                               
 8005e30:	58 44 00 00 	sw (r2+0),r4                                   
  the_node->previous     = previous_node;                             
 8005e34:	58 43 00 04 	sw (r2+4),r3                                   
  previous_node->next    = the_node;                                  
 8005e38:	58 62 00 00 	sw (r3+0),r2                                   
  search_node->previous  = the_node;                                  
 8005e3c:	58 82 00 04 	sw (r4+4),r2                                   
  the_thread->Wait.queue = the_thread_queue;                          
 8005e40:	58 41 00 44 	sw (r2+68),r1                                  
  _ISR_Enable( level );                                               
 8005e44:	d0 08 00 00 	wcsr IE,r8                                     
   *                                                                  
   *  WARNING! Returning with interrupts disabled!                    
   */                                                                 
  *level_p = level;                                                   
  return the_thread_queue->sync_state;                                
}                                                                     
 8005e48:	b8 e0 08 00 	mv r1,r7                                       
 8005e4c:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8005e50:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8005e54:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8005e58:	2b 8e 00 04 	lw r14,(sp+4)                                  
 8005e5c:	37 9c 00 10 	addi sp,sp,16                                  
 8005e60:	c3 a0 00 00 	ret                                            
 8005e64:	34 84 00 3c 	addi r4,r4,60                                  
  _ISR_Enable( level );                                               
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
                                                                      
equal_priority:               /* add at end of priority group */      
  search_node   = _Chain_Tail( &search_thread->Wait.Block2n );        
  previous_node = search_node->previous;                              
 8005e68:	28 83 00 04 	lw r3,(r4+4)                                   
  the_node      = (Chain_Node *) the_thread;                          
                                                                      
  the_node->next         = search_node;                               
 8005e6c:	58 44 00 00 	sw (r2+0),r4                                   
  the_node->previous     = previous_node;                             
 8005e70:	58 43 00 04 	sw (r2+4),r3                                   
  previous_node->next    = the_node;                                  
 8005e74:	58 62 00 00 	sw (r3+0),r2                                   
  search_node->previous  = the_node;                                  
 8005e78:	58 82 00 04 	sw (r4+4),r2                                   
  the_thread->Wait.queue = the_thread_queue;                          
 8005e7c:	58 41 00 44 	sw (r2+68),r1                                  
  _ISR_Enable( level );                                               
 8005e80:	d0 08 00 00 	wcsr IE,r8                                     
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
 8005e84:	34 07 00 01 	mvi r7,1                                       
 8005e88:	e3 ff ff cc 	bi 8005db8 <_Thread_queue_Enqueue_priority+0x138>
                                                                      

0800a6c8 <_Thread_queue_Extract_priority_helper>: void _Thread_queue_Extract_priority_helper( Thread_queue_Control *the_thread_queue __attribute__((unused)), Thread_Control *the_thread, bool requeuing ) {
 800a6c8:	37 9c ff f8 	addi sp,sp,-8                                  
 800a6cc:	5b 8b 00 08 	sw (sp+8),r11                                  
 800a6d0:	5b 9d 00 04 	sw (sp+4),ra                                   
 800a6d4:	b8 40 58 00 	mv r11,r2                                      
 800a6d8:	20 63 00 ff 	andi r3,r3,0xff                                
  Chain_Node     *new_first_node;                                     
  Chain_Node     *new_second_node;                                    
  Chain_Node     *last_node;                                          
                                                                      
  the_node = (Chain_Node *) the_thread;                               
  _ISR_Disable( level );                                              
 800a6dc:	90 00 10 00 	rcsr r2,IE                                     
 800a6e0:	34 01 ff fe 	mvi r1,-2                                      
 800a6e4:	a0 41 08 00 	and r1,r2,r1                                   
 800a6e8:	d0 01 00 00 	wcsr IE,r1                                     
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (        
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_WAITING_ON_THREAD_QUEUE);              
 800a6ec:	78 05 08 01 	mvhi r5,0x801                                  
 800a6f0:	38 a5 35 50 	ori r5,r5,0x3550                               
 800a6f4:	29 64 00 10 	lw r4,(r11+16)                                 
 800a6f8:	28 a1 00 00 	lw r1,(r5+0)                                   
 800a6fc:	a0 81 08 00 	and r1,r4,r1                                   
  if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
 800a700:	44 20 00 26 	be r1,r0,800a798 <_Thread_queue_Extract_priority_helper+0xd0>
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
 800a704:	29 61 00 38 	lw r1,(r11+56)                                 
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 800a708:	35 64 00 3c 	addi r4,r11,60                                 
                                                                      
  /*                                                                  
   *  The thread was actually waiting on a thread queue so let's remove it.
   */                                                                 
                                                                      
  next_node     = the_node->next;                                     
 800a70c:	29 65 00 00 	lw r5,(r11+0)                                  
  previous_node = the_node->previous;                                 
 800a710:	29 66 00 04 	lw r6,(r11+4)                                  
                                                                      
  if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) {              
 800a714:	44 24 00 26 	be r1,r4,800a7ac <_Thread_queue_Extract_priority_helper+0xe4>
    new_first_node   = the_thread->Wait.Block2n.first;                
    new_first_thread = (Thread_Control *) new_first_node;             
    last_node        = the_thread->Wait.Block2n.last;                 
 800a718:	29 64 00 40 	lw r4,(r11+64)                                 
    new_second_node  = new_first_node->next;                          
 800a71c:	28 27 00 00 	lw r7,(r1+0)                                   
                                                                      
    previous_node->next      = new_first_node;                        
    next_node->previous      = new_first_node;                        
 800a720:	58 a1 00 04 	sw (r5+4),r1                                   
    new_first_node   = the_thread->Wait.Block2n.first;                
    new_first_thread = (Thread_Control *) new_first_node;             
    last_node        = the_thread->Wait.Block2n.last;                 
    new_second_node  = new_first_node->next;                          
                                                                      
    previous_node->next      = new_first_node;                        
 800a724:	58 c1 00 00 	sw (r6+0),r1                                   
    next_node->previous      = new_first_node;                        
    new_first_node->next     = next_node;                             
 800a728:	58 25 00 00 	sw (r1+0),r5                                   
    new_first_node->previous = previous_node;                         
 800a72c:	58 26 00 04 	sw (r1+4),r6                                   
                                                                      
    if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) {   
 800a730:	44 81 00 07 	be r4,r1,800a74c <_Thread_queue_Extract_priority_helper+0x84>
                                        /* > two threads on 2-n */    
      new_second_node->previous =                                     
                _Chain_Head( &new_first_thread->Wait.Block2n );       
 800a734:	34 25 00 38 	addi r5,r1,56                                  
    new_first_node->next     = next_node;                             
    new_first_node->previous = previous_node;                         
                                                                      
    if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) {   
                                        /* > two threads on 2-n */    
      new_second_node->previous =                                     
 800a738:	58 e5 00 04 	sw (r7+4),r5                                   
                _Chain_Head( &new_first_thread->Wait.Block2n );       
      new_first_thread->Wait.Block2n.first = new_second_node;         
 800a73c:	58 27 00 38 	sw (r1+56),r7                                  
                                                                      
      new_first_thread->Wait.Block2n.last = last_node;                
 800a740:	58 24 00 40 	sw (r1+64),r4                                  
 800a744:	34 21 00 3c 	addi r1,r1,60                                  
      last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n );
 800a748:	58 81 00 00 	sw (r4+0),r1                                   
                                                                      
  /*                                                                  
   *  If we are not supposed to touch timers or the thread's state, return.
   */                                                                 
                                                                      
  if ( requeuing ) {                                                  
 800a74c:	5c 60 00 0e 	bne r3,r0,800a784 <_Thread_queue_Extract_priority_helper+0xbc>
    _ISR_Enable( level );                                             
    return;                                                           
  }                                                                   
                                                                      
  if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {                 
 800a750:	29 63 00 50 	lw r3,(r11+80)                                 
 800a754:	34 01 00 02 	mvi r1,2                                       
 800a758:	44 61 00 19 	be r3,r1,800a7bc <_Thread_queue_Extract_priority_helper+0xf4><== NEVER TAKEN
    _ISR_Enable( level );                                             
 800a75c:	d0 02 00 00 	wcsr IE,r2                                     
 800a760:	78 01 08 01 	mvhi r1,0x801                                  
 800a764:	38 21 35 58 	ori r1,r1,0x3558                               
 800a768:	28 22 00 00 	lw r2,(r1+0)                                   
 800a76c:	b9 60 08 00 	mv r1,r11                                      
 800a770:	fb ff ff 3e 	calli 800a468 <_Thread_Clear_state>            
                                                                      
#if defined(RTEMS_MULTIPROCESSING)                                    
  if ( !_Objects_Is_local_id( the_thread->Object.id ) )               
    _Thread_MP_Free_proxy( the_thread );                              
#endif                                                                
}                                                                     
 800a774:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a778:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800a77c:	37 9c 00 08 	addi sp,sp,8                                   
 800a780:	c3 a0 00 00 	ret                                            
  /*                                                                  
   *  If we are not supposed to touch timers or the thread's state, return.
   */                                                                 
                                                                      
  if ( requeuing ) {                                                  
    _ISR_Enable( level );                                             
 800a784:	d0 02 00 00 	wcsr IE,r2                                     
                                                                      
#if defined(RTEMS_MULTIPROCESSING)                                    
  if ( !_Objects_Is_local_id( the_thread->Object.id ) )               
    _Thread_MP_Free_proxy( the_thread );                              
#endif                                                                
}                                                                     
 800a788:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a78c:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800a790:	37 9c 00 08 	addi sp,sp,8                                   
 800a794:	c3 a0 00 00 	ret                                            
  Chain_Node     *last_node;                                          
                                                                      
  the_node = (Chain_Node *) the_thread;                               
  _ISR_Disable( level );                                              
  if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
    _ISR_Enable( level );                                             
 800a798:	d0 02 00 00 	wcsr IE,r2                                     
                                                                      
#if defined(RTEMS_MULTIPROCESSING)                                    
  if ( !_Objects_Is_local_id( the_thread->Object.id ) )               
    _Thread_MP_Free_proxy( the_thread );                              
#endif                                                                
}                                                                     
 800a79c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a7a0:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800a7a4:	37 9c 00 08 	addi sp,sp,8                                   
 800a7a8:	c3 a0 00 00 	ret                                            
                                                                      
      new_first_thread->Wait.Block2n.last = last_node;                
      last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n );
    }                                                                 
  } else {                                                            
    previous_node->next = next_node;                                  
 800a7ac:	58 c5 00 00 	sw (r6+0),r5                                   
    next_node->previous = previous_node;                              
 800a7b0:	58 a6 00 04 	sw (r5+4),r6                                   
                                                                      
  /*                                                                  
   *  If we are not supposed to touch timers or the thread's state, return.
   */                                                                 
                                                                      
  if ( requeuing ) {                                                  
 800a7b4:	44 60 ff e7 	be r3,r0,800a750 <_Thread_queue_Extract_priority_helper+0x88>
 800a7b8:	e3 ff ff f3 	bi 800a784 <_Thread_queue_Extract_priority_helper+0xbc>
 800a7bc:	34 01 00 03 	mvi r1,3                                       <== NOT EXECUTED
 800a7c0:	59 61 00 50 	sw (r11+80),r1                                 <== NOT EXECUTED
                                                                      
  if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {                 
    _ISR_Enable( level );                                             
  } else {                                                            
    _Watchdog_Deactivate( &the_thread->Timer );                       
    _ISR_Enable( level );                                             
 800a7c4:	d0 02 00 00 	wcsr IE,r2                                     <== NOT EXECUTED
    (void) _Watchdog_Remove( &the_thread->Timer );                    
 800a7c8:	35 61 00 48 	addi r1,r11,72                                 <== NOT EXECUTED
 800a7cc:	fb ff f1 17 	calli 8006c28 <_Watchdog_Remove>               <== NOT EXECUTED
 800a7d0:	e3 ff ff e4 	bi 800a760 <_Thread_queue_Extract_priority_helper+0x98><== NOT EXECUTED
                                                                      

0800a814 <_Thread_queue_Process_timeout>: #include <rtems/score/tqdata.h> void _Thread_queue_Process_timeout( Thread_Control *the_thread ) {
 800a814:	37 9c ff fc 	addi sp,sp,-4                                  
 800a818:	5b 9d 00 04 	sw (sp+4),ra                                   
  Thread_queue_Control *the_thread_queue = the_thread->Wait.queue;    
 800a81c:	28 23 00 44 	lw r3,(r1+68)                                  
#include <rtems/score/tqdata.h>                                       
                                                                      
void _Thread_queue_Process_timeout(                                   
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
 800a820:	b8 20 20 00 	mv r4,r1                                       
   *  If it is not satisfied, then it is "nothing happened" and       
   *  this is the "timeout" transition.  After a request is satisfied,
   *  a timeout is not allowed to occur.                              
   */                                                                 
                                                                      
  if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SYNCHRONIZED &&
 800a824:	28 62 00 30 	lw r2,(r3+48)                                  
 800a828:	44 40 00 05 	be r2,r0,800a83c <_Thread_queue_Process_timeout+0x28><== ALWAYS TAKEN
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
 800a82c:	78 01 08 01 	mvhi r1,0x801                                  <== NOT EXECUTED
 800a830:	38 21 4d 84 	ori r1,r1,0x4d84                               <== NOT EXECUTED
 800a834:	28 21 00 0c 	lw r1,(r1+12)                                  <== NOT EXECUTED
 800a838:	44 81 00 09 	be r4,r1,800a85c <_Thread_queue_Process_timeout+0x48><== NOT EXECUTED
    if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) {
      the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
      the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
    }                                                                 
  } else {                                                            
    the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
 800a83c:	28 65 00 3c 	lw r5,(r3+60)                                  
    _Thread_queue_Extract( the_thread->Wait.queue, the_thread );      
 800a840:	b8 60 08 00 	mv r1,r3                                       
 800a844:	b8 80 10 00 	mv r2,r4                                       
    if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) {
      the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
      the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
    }                                                                 
  } else {                                                            
    the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
 800a848:	58 85 00 34 	sw (r4+52),r5                                  
    _Thread_queue_Extract( the_thread->Wait.queue, the_thread );      
 800a84c:	fb ff ff 91 	calli 800a690 <_Thread_queue_Extract>          
  }                                                                   
}                                                                     
 800a850:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a854:	37 9c 00 04 	addi sp,sp,4                                   
 800a858:	c3 a0 00 00 	ret                                            
   *  a timeout is not allowed to occur.                              
   */                                                                 
                                                                      
  if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SYNCHRONIZED &&
       _Thread_Is_executing( the_thread ) ) {                         
    if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) {
 800a85c:	34 01 00 03 	mvi r1,3                                       <== NOT EXECUTED
 800a860:	44 41 ff fc 	be r2,r1,800a850 <_Thread_queue_Process_timeout+0x3c><== NOT EXECUTED
      the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
 800a864:	28 61 00 3c 	lw r1,(r3+60)                                  <== NOT EXECUTED
 800a868:	58 81 00 34 	sw (r4+52),r1                                  <== NOT EXECUTED
      the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
 800a86c:	34 01 00 02 	mvi r1,2                                       <== NOT EXECUTED
 800a870:	58 61 00 30 	sw (r3+48),r1                                  <== NOT EXECUTED
 800a874:	e3 ff ff f7 	bi 800a850 <_Thread_queue_Process_timeout+0x3c><== NOT EXECUTED
                                                                      

08005f38 <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) {
 8005f38:	37 9c ff ec 	addi sp,sp,-20                                 
 8005f3c:	5b 8b 00 10 	sw (sp+16),r11                                 
 8005f40:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8005f44:	5b 8d 00 08 	sw (sp+8),r13                                  
 8005f48:	5b 9d 00 04 	sw (sp+4),ra                                   
 8005f4c:	b8 20 58 00 	mv r11,r1                                      
 8005f50:	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 )                                            
 8005f54:	44 20 00 04 	be r1,r0,8005f64 <_Thread_queue_Requeue+0x2c>  <== NEVER TAKEN
                                                                      
  /*                                                                  
   * If queueing by FIFO, there is nothing to do. This only applies to
   * priority blocking discipline.                                    
   */                                                                 
  if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) {
 8005f58:	28 22 00 34 	lw r2,(r1+52)                                  
 8005f5c:	34 01 00 01 	mvi r1,1                                       
 8005f60:	44 41 00 07 	be r2,r1,8005f7c <_Thread_queue_Requeue+0x44>  <== ALWAYS TAKEN
      _Thread_queue_Extract_priority_helper( tq, the_thread, true );  
      (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
    }                                                                 
    _ISR_Enable( level );                                             
  }                                                                   
}                                                                     
 8005f64:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 8005f68:	2b 8b 00 10 	lw r11,(sp+16)                                 <== NOT EXECUTED
 8005f6c:	2b 8c 00 0c 	lw r12,(sp+12)                                 <== NOT EXECUTED
 8005f70:	2b 8d 00 08 	lw r13,(sp+8)                                  <== NOT EXECUTED
 8005f74:	37 9c 00 14 	addi sp,sp,20                                  <== NOT EXECUTED
 8005f78:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
  if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) {
    Thread_queue_Control *tq = the_thread_queue;                      
    ISR_Level             level;                                      
    ISR_Level             level_ignored;                              
                                                                      
    _ISR_Disable( level );                                            
 8005f7c:	90 00 68 00 	rcsr r13,IE                                    
 8005f80:	34 01 ff fe 	mvi r1,-2                                      
 8005f84:	a1 a1 08 00 	and r1,r13,r1                                  
 8005f88:	d0 01 00 00 	wcsr IE,r1                                     
 8005f8c:	78 03 08 01 	mvhi r3,0x801                                  
 8005f90:	38 63 35 50 	ori r3,r3,0x3550                               
 8005f94:	29 82 00 10 	lw r2,(r12+16)                                 
 8005f98:	28 61 00 00 	lw r1,(r3+0)                                   
 8005f9c:	a0 41 08 00 	and r1,r2,r1                                   
    if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
 8005fa0:	5c 20 00 08 	bne r1,r0,8005fc0 <_Thread_queue_Requeue+0x88> <== ALWAYS TAKEN
      _Thread_queue_Enter_critical_section( tq );                     
      _Thread_queue_Extract_priority_helper( tq, the_thread, true );  
      (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
    }                                                                 
    _ISR_Enable( level );                                             
 8005fa4:	d0 0d 00 00 	wcsr IE,r13                                    <== NOT EXECUTED
  }                                                                   
}                                                                     
 8005fa8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005fac:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8005fb0:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8005fb4:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8005fb8:	37 9c 00 14 	addi sp,sp,20                                  
 8005fbc:	c3 a0 00 00 	ret                                            
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section (      
  Thread_queue_Control *the_thread_queue                              
)                                                                     
{                                                                     
  the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
 8005fc0:	34 01 00 01 	mvi r1,1                                       
 8005fc4:	59 61 00 30 	sw (r11+48),r1                                 
    ISR_Level             level_ignored;                              
                                                                      
    _ISR_Disable( level );                                            
    if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
      _Thread_queue_Enter_critical_section( tq );                     
      _Thread_queue_Extract_priority_helper( tq, the_thread, true );  
 8005fc8:	b9 80 10 00 	mv r2,r12                                      
 8005fcc:	b9 60 08 00 	mv r1,r11                                      
 8005fd0:	34 03 00 01 	mvi r3,1                                       
 8005fd4:	f8 00 11 bd 	calli 800a6c8 <_Thread_queue_Extract_priority_helper>
      (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
 8005fd8:	b9 60 08 00 	mv r1,r11                                      
 8005fdc:	b9 80 10 00 	mv r2,r12                                      
 8005fe0:	37 83 00 14 	addi r3,sp,20                                  
 8005fe4:	fb ff ff 27 	calli 8005c80 <_Thread_queue_Enqueue_priority> 
    }                                                                 
    _ISR_Enable( level );                                             
 8005fe8:	d0 0d 00 00 	wcsr IE,r13                                    
 8005fec:	e3 ff ff ef 	bi 8005fa8 <_Thread_queue_Requeue+0x70>        
                                                                      

08005ff0 <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) {
 8005ff0:	37 9c ff f8 	addi sp,sp,-8                                  
 8005ff4:	5b 9d 00 04 	sw (sp+4),ra                                   
  Thread_Control       *the_thread;                                   
  Objects_Locations     location;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 8005ff8:	37 82 00 08 	addi r2,sp,8                                   
 8005ffc:	fb ff fd 70 	calli 80055bc <_Thread_Get>                    
  switch ( location ) {                                               
 8006000:	2b 82 00 08 	lw r2,(sp+8)                                   
 8006004:	5c 40 00 07 	bne r2,r0,8006020 <_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 );                    
 8006008:	f8 00 12 03 	calli 800a814 <_Thread_queue_Process_timeout>  
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
 800600c:	78 01 08 01 	mvhi r1,0x801                                  
 8006010:	38 21 48 ac 	ori r1,r1,0x48ac                               
 8006014:	28 22 00 00 	lw r2,(r1+0)                                   
 8006018:	34 42 ff ff 	addi r2,r2,-1                                  
 800601c:	58 22 00 00 	sw (r1+0),r2                                   
      _Thread_Unnest_dispatch();                                      
      break;                                                          
  }                                                                   
}                                                                     
 8006020:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006024:	37 9c 00 08 	addi sp,sp,8                                   
 8006028:	c3 a0 00 00 	ret                                            
                                                                      

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

080147b4 <_Timer_server_Schedule_operation_method>: static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) {
 80147b4:	37 9c ff f8 	addi sp,sp,-8                                  
 80147b8:	5b 8b 00 08 	sw (sp+8),r11                                  
 80147bc:	5b 9d 00 04 	sw (sp+4),ra                                   
 80147c0:	b8 20 58 00 	mv r11,r1                                      
  if ( ts->insert_chain == NULL ) {                                   
 80147c4:	28 21 00 78 	lw r1,(r1+120)                                 
                                                                      
static void _Timer_server_Schedule_operation_method(                  
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
 80147c8:	b8 40 18 00 	mv r3,r2                                       
  if ( ts->insert_chain == NULL ) {                                   
 80147cc:	44 20 00 07 	be r1,r0,80147e8 <_Timer_server_Schedule_operation_method+0x34>
     *  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 );           
 80147d0:	29 61 00 78 	lw r1,(r11+120)                                
 80147d4:	f8 00 02 e7 	calli 8015370 <_Chain_Append>                  
  }                                                                   
}                                                                     
 80147d8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80147dc:	2b 8b 00 08 	lw r11,(sp+8)                                  
 80147e0:	37 9c 00 08 	addi sp,sp,8                                   
 80147e4:	c3 a0 00 00 	ret                                            
 80147e8:	78 01 08 04 	mvhi r1,0x804                                  
 80147ec:	38 21 0c a4 	ori r1,r1,0xca4                                
 80147f0:	28 22 00 00 	lw r2,(r1+0)                                   
 80147f4:	34 42 00 01 	addi r2,r2,1                                   
 80147f8:	58 22 00 00 	sw (r1+0),r2                                   
   *  being inserted.  This could result in an integer overflow.      
   */                                                                 
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
 80147fc:	28 61 00 38 	lw r1,(r3+56)                                  
 8014800:	34 02 00 01 	mvi r2,1                                       
 8014804:	44 22 00 28 	be r1,r2,80148a4 <_Timer_server_Schedule_operation_method+0xf0>
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
                                                                      
    if ( !ts->active ) {                                              
      _Timer_server_Reset_interval_system_watchdog( ts );             
    }                                                                 
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
 8014808:	34 02 00 03 	mvi r2,3                                       
 801480c:	44 22 00 06 	be r1,r2,8014824 <_Timer_server_Schedule_operation_method+0x70><== ALWAYS TAKEN
    if ( !ts->active ) {                                              
      _Timer_server_Reset_tod_system_watchdog( ts );                  
    }                                                                 
  }                                                                   
                                                                      
  _Thread_Enable_dispatch();                                          
 8014810:	f8 00 0e cf 	calli 801834c <_Thread_Enable_dispatch>        
     *  critical section.  We have to use the protected chain methods because
     *  we may be interrupted by a higher priority interrupt.         
     */                                                               
    _Chain_Append( ts->insert_chain, &timer->Object.Node );           
  }                                                                   
}                                                                     
 8014814:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8014818:	2b 8b 00 08 	lw r11,(sp+8)                                  
 801481c:	37 9c 00 08 	addi sp,sp,8                                   
 8014820:	c3 a0 00 00 	ret                                            
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
    /*                                                                
     *  We have to advance the last known seconds value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
 8014824:	90 00 38 00 	rcsr r7,IE                                     
 8014828:	34 01 ff fe 	mvi r1,-2                                      
 801482c:	a0 e1 08 00 	and r1,r7,r1                                   
 8014830:	d0 01 00 00 	wcsr IE,r1                                     
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
 8014834:	29 62 00 68 	lw r2,(r11+104)                                
    snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();        
 8014838:	78 01 08 04 	mvhi r1,0x804                                  
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
 801483c:	29 64 00 74 	lw r4,(r11+116)                                
    /*                                                                
     *  We have to advance the last known seconds value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
    snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();        
 8014840:	38 21 0d 2c 	ori r1,r1,0xd2c                                
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 8014844:	35 65 00 6c 	addi r5,r11,108                                
 8014848:	28 21 00 00 	lw r1,(r1+0)                                   
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
    if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {             
 801484c:	44 45 00 0a 	be r2,r5,8014874 <_Timer_server_Schedule_operation_method+0xc0>
      first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );   
      delta_interval = first_watchdog->delta_interval;                
 8014850:	28 46 00 10 	lw r6,(r2+16)                                  
        }                                                             
      } else {                                                        
        /*                                                            
         *  Someone put us in the past.                               
         */                                                           
        delta = last_snapshot - snapshot;                             
 8014854:	b4 c4 28 00 	add r5,r6,r4                                   
        delta_interval += delta;                                      
 8014858:	c8 a1 28 00 	sub r5,r5,r1                                   
    snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();        
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
    if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {             
      first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );   
      delta_interval = first_watchdog->delta_interval;                
      if ( snapshot > last_snapshot ) {                               
 801485c:	50 81 00 05 	bgeu r4,r1,8014870 <_Timer_server_Schedule_operation_method+0xbc>
        /*                                                            
         *  We advanced in time.                                      
         */                                                           
        delta = snapshot - last_snapshot;                             
 8014860:	c8 24 20 00 	sub r4,r1,r4                                   
        if (delta_interval > delta) {                                 
          delta_interval -= delta;                                    
        } else {                                                      
          delta_interval = 0;                                         
 8014864:	34 05 00 00 	mvi r5,0                                       
      if ( snapshot > last_snapshot ) {                               
        /*                                                            
         *  We advanced in time.                                      
         */                                                           
        delta = snapshot - last_snapshot;                             
        if (delta_interval > delta) {                                 
 8014868:	50 86 00 02 	bgeu r4,r6,8014870 <_Timer_server_Schedule_operation_method+0xbc><== NEVER TAKEN
          delta_interval -= delta;                                    
 801486c:	c8 c4 28 00 	sub r5,r6,r4                                   
         *  Someone put us in the past.                               
         */                                                           
        delta = last_snapshot - snapshot;                             
        delta_interval += delta;                                      
      }                                                               
      first_watchdog->delta_interval = delta_interval;                
 8014870:	58 45 00 10 	sw (r2+16),r5                                  
    }                                                                 
    ts->TOD_watchdogs.last_snapshot = snapshot;                       
 8014874:	59 61 00 74 	sw (r11+116),r1                                
    _ISR_Enable( level );                                             
 8014878:	d0 07 00 00 	wcsr IE,r7                                     
                                                                      
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
 801487c:	35 61 00 68 	addi r1,r11,104                                
 8014880:	34 62 00 10 	addi r2,r3,16                                  
 8014884:	f8 00 15 5a 	calli 8019dec <_Watchdog_Insert>               
                                                                      
    if ( !ts->active ) {                                              
 8014888:	41 61 00 7c 	lbu r1,(r11+124)                               
 801488c:	20 21 00 ff 	andi r1,r1,0xff                                
 8014890:	5c 20 ff e0 	bne r1,r0,8014810 <_Timer_server_Schedule_operation_method+0x5c>
      _Timer_server_Reset_tod_system_watchdog( ts );                  
 8014894:	b9 60 08 00 	mv r1,r11                                      
 8014898:	fb ff ff 25 	calli 801452c <_Timer_server_Reset_tod_system_watchdog>
    }                                                                 
  }                                                                   
                                                                      
  _Thread_Enable_dispatch();                                          
 801489c:	f8 00 0e ac 	calli 801834c <_Thread_Enable_dispatch>        
 80148a0:	e3 ff ff dd 	bi 8014814 <_Timer_server_Schedule_operation_method+0x60>
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
    /*                                                                
     *  We have to advance the last known ticks value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
 80148a4:	90 00 20 00 	rcsr r4,IE                                     
 80148a8:	34 01 ff fe 	mvi r1,-2                                      
 80148ac:	a0 81 08 00 	and r1,r4,r1                                   
 80148b0:	d0 01 00 00 	wcsr IE,r1                                     
    snapshot = _Watchdog_Ticks_since_boot;                            
 80148b4:	78 01 08 04 	mvhi r1,0x804                                  
 80148b8:	38 21 0d dc 	ori r1,r1,0xddc                                
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
 80148bc:	29 62 00 30 	lw r2,(r11+48)                                 
 80148c0:	28 21 00 00 	lw r1,(r1+0)                                   
    last_snapshot = ts->Interval_watchdogs.last_snapshot;             
 80148c4:	29 66 00 3c 	lw r6,(r11+60)                                 
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 80148c8:	35 65 00 34 	addi r5,r11,52                                 
    if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) {        
 80148cc:	44 45 00 07 	be r2,r5,80148e8 <_Timer_server_Schedule_operation_method+0x134>
      /*                                                              
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
                                                                      
      delta_interval = first_watchdog->delta_interval;                
 80148d0:	28 47 00 10 	lw r7,(r2+16)                                  
      first_watchdog = _Watchdog_First( &ts->Interval_watchdogs.Chain );
                                                                      
      /*                                                              
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
 80148d4:	c8 26 30 00 	sub r6,r1,r6                                   
                                                                      
      delta_interval = first_watchdog->delta_interval;                
      if (delta_interval > delta) {                                   
        delta_interval -= delta;                                      
      } else {                                                        
        delta_interval = 0;                                           
 80148d8:	34 05 00 00 	mvi r5,0                                       
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
                                                                      
      delta_interval = first_watchdog->delta_interval;                
      if (delta_interval > delta) {                                   
 80148dc:	50 c7 00 02 	bgeu r6,r7,80148e4 <_Timer_server_Schedule_operation_method+0x130>
        delta_interval -= delta;                                      
 80148e0:	c8 e6 28 00 	sub r5,r7,r6                                   
      } else {                                                        
        delta_interval = 0;                                           
      }                                                               
      first_watchdog->delta_interval = delta_interval;                
 80148e4:	58 45 00 10 	sw (r2+16),r5                                  
    }                                                                 
    ts->Interval_watchdogs.last_snapshot = snapshot;                  
 80148e8:	59 61 00 3c 	sw (r11+60),r1                                 
    _ISR_Enable( level );                                             
 80148ec:	d0 04 00 00 	wcsr IE,r4                                     
                                                                      
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
 80148f0:	35 61 00 30 	addi r1,r11,48                                 
 80148f4:	34 62 00 10 	addi r2,r3,16                                  
 80148f8:	f8 00 15 3d 	calli 8019dec <_Watchdog_Insert>               
                                                                      
    if ( !ts->active ) {                                              
 80148fc:	41 61 00 7c 	lbu r1,(r11+124)                               
 8014900:	20 21 00 ff 	andi r1,r1,0xff                                
 8014904:	5c 20 ff c3 	bne r1,r0,8014810 <_Timer_server_Schedule_operation_method+0x5c>
      _Timer_server_Reset_interval_system_watchdog( ts );             
 8014908:	b9 60 08 00 	mv r1,r11                                      
 801490c:	fb ff fe e7 	calli 80144a8 <_Timer_server_Reset_interval_system_watchdog>
    if ( !ts->active ) {                                              
      _Timer_server_Reset_tod_system_watchdog( ts );                  
    }                                                                 
  }                                                                   
                                                                      
  _Thread_Enable_dispatch();                                          
 8014910:	f8 00 0e 8f 	calli 801834c <_Thread_Enable_dispatch>        
 8014914:	e3 ff ff c0 	bi 8014814 <_Timer_server_Schedule_operation_method+0x60>
                                                                      

08006820 <_User_extensions_Fatal>: void _User_extensions_Fatal ( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) {
 8006820:	37 9c ff e8 	addi sp,sp,-24                                 
 8006824:	5b 8b 00 18 	sw (sp+24),r11                                 
 8006828:	5b 8c 00 14 	sw (sp+20),r12                                 
 800682c:	5b 8d 00 10 	sw (sp+16),r13                                 
 8006830:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8006834:	5b 8f 00 08 	sw (sp+8),r15                                  
 8006838:	5b 9d 00 04 	sw (sp+4),ra                                   
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.last ;                       
 800683c:	78 0c 08 01 	mvhi r12,0x801                                 
 8006840:	39 8c 4a 34 	ori r12,r12,0x4a34                             
 8006844:	29 8b 00 08 	lw r11,(r12+8)                                 
void _User_extensions_Fatal (                                         
  Internal_errors_Source  the_source,                                 
  bool                    is_internal,                                
  Internal_errors_t       the_error                                   
)                                                                     
{                                                                     
 8006848:	b8 20 78 00 	mv r15,r1                                      
 800684c:	b8 60 70 00 	mv r14,r3                                      
 8006850:	20 4d 00 ff 	andi r13,r2,0xff                               
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.last ;                       
 8006854:	45 6c 00 09 	be r11,r12,8006878 <_User_extensions_Fatal+0x58><== NEVER TAKEN
        !_Chain_Is_head( &_User_extensions_List, the_node ) ;         
        the_node = the_node->previous ) {                             
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.fatal != NULL )                      
 8006858:	29 64 00 30 	lw r4,(r11+48)                                 
      (*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
 800685c:	b9 e0 08 00 	mv r1,r15                                      
 8006860:	b9 a0 10 00 	mv r2,r13                                      
 8006864:	b9 c0 18 00 	mv r3,r14                                      
        !_Chain_Is_head( &_User_extensions_List, the_node ) ;         
        the_node = the_node->previous ) {                             
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.fatal != NULL )                      
 8006868:	44 80 00 02 	be r4,r0,8006870 <_User_extensions_Fatal+0x50> 
      (*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
 800686c:	d8 80 00 00 	call r4                                        
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.last ;                       
        !_Chain_Is_head( &_User_extensions_List, the_node ) ;         
        the_node = the_node->previous ) {                             
 8006870:	29 6b 00 04 	lw r11,(r11+4)                                 
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.last ;                       
 8006874:	5d 6c ff f9 	bne r11,r12,8006858 <_User_extensions_Fatal+0x38>
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.fatal != NULL )                      
      (*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
  }                                                                   
}                                                                     
 8006878:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800687c:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8006880:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8006884:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8006888:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800688c:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8006890:	37 9c 00 18 	addi sp,sp,24                                  
 8006894:	c3 a0 00 00 	ret                                            
                                                                      

08006654 <_User_extensions_Handler_initialization>: #include <rtems/score/userext.h> #include <rtems/score/wkspace.h> #include <string.h> void _User_extensions_Handler_initialization(void) {
 8006654:	37 9c ff ec 	addi sp,sp,-20                                 
 8006658:	5b 8b 00 14 	sw (sp+20),r11                                 
 800665c:	5b 8c 00 10 	sw (sp+16),r12                                 
 8006660:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8006664:	5b 8e 00 08 	sw (sp+8),r14                                  
 8006668:	5b 9d 00 04 	sw (sp+4),ra                                   
  User_extensions_Control *extension;                                 
  uint32_t                 i;                                         
  uint32_t                 number_of_extensions;                      
  User_extensions_Table   *initial_extensions;                        
                                                                      
  number_of_extensions = Configuration.number_of_initial_extensions;  
 800666c:	78 03 08 01 	mvhi r3,0x801                                  
 8006670:	38 63 40 c4 	ori r3,r3,0x40c4                               
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
 8006674:	78 02 08 01 	mvhi r2,0x801                                  
 8006678:	78 05 08 01 	mvhi r5,0x801                                  
 800667c:	78 01 08 01 	mvhi r1,0x801                                  
 8006680:	78 04 08 01 	mvhi r4,0x801                                  
  initial_extensions   = Configuration.User_extension_table;          
 8006684:	28 6b 00 3c 	lw r11,(r3+60)                                 
 8006688:	38 42 4a 34 	ori r2,r2,0x4a34                               
 800668c:	38 21 48 b0 	ori r1,r1,0x48b0                               
 8006690:	38 a5 4a 38 	ori r5,r5,0x4a38                               
 8006694:	38 84 48 b4 	ori r4,r4,0x48b4                               
 8006698:	58 45 00 00 	sw (r2+0),r5                                   
  the_chain->permanent_null = NULL;                                   
 800669c:	58 40 00 04 	sw (r2+4),r0                                   
  the_chain->last           = _Chain_Head(the_chain);                 
 80066a0:	58 42 00 08 	sw (r2+8),r2                                   
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
 80066a4:	58 24 00 00 	sw (r1+0),r4                                   
  the_chain->permanent_null = NULL;                                   
 80066a8:	58 20 00 04 	sw (r1+4),r0                                   
  the_chain->last           = _Chain_Head(the_chain);                 
 80066ac:	58 21 00 08 	sw (r1+8),r1                                   
  User_extensions_Control *extension;                                 
  uint32_t                 i;                                         
  uint32_t                 number_of_extensions;                      
  User_extensions_Table   *initial_extensions;                        
                                                                      
  number_of_extensions = Configuration.number_of_initial_extensions;  
 80066b0:	28 6e 00 38 	lw r14,(r3+56)                                 
  initial_extensions   = Configuration.User_extension_table;          
                                                                      
  _Chain_Initialize_empty( &_User_extensions_List );                  
  _Chain_Initialize_empty( &_User_extensions_Switches_list );         
                                                                      
  if ( initial_extensions ) {                                         
 80066b4:	45 60 00 26 	be r11,r0,800674c <_User_extensions_Handler_initialization+0xf8><== NEVER TAKEN
    extension = (User_extensions_Control *)                           
      _Workspace_Allocate_or_fatal_error(                             
        number_of_extensions * sizeof( User_extensions_Control )      
 80066b8:	b5 ce 68 00 	add r13,r14,r14                                
 80066bc:	b5 ae 68 00 	add r13,r13,r14                                
 80066c0:	b5 ad 68 00 	add r13,r13,r13                                
 80066c4:	b5 ad 68 00 	add r13,r13,r13                                
 80066c8:	b5 ae 68 00 	add r13,r13,r14                                
 80066cc:	b5 ad 68 00 	add r13,r13,r13                                
 80066d0:	b5 ad 68 00 	add r13,r13,r13                                
  _Chain_Initialize_empty( &_User_extensions_List );                  
  _Chain_Initialize_empty( &_User_extensions_Switches_list );         
                                                                      
  if ( initial_extensions ) {                                         
    extension = (User_extensions_Control *)                           
      _Workspace_Allocate_or_fatal_error(                             
 80066d4:	b9 a0 08 00 	mv r1,r13                                      
 80066d8:	f8 00 01 f7 	calli 8006eb4 <_Workspace_Allocate_or_fatal_error>
        number_of_extensions * sizeof( User_extensions_Control )      
      );                                                              
                                                                      
    memset (                                                          
 80066dc:	34 02 00 00 	mvi r2,0                                       
 80066e0:	b9 a0 18 00 	mv r3,r13                                      
  _Chain_Initialize_empty( &_User_extensions_List );                  
  _Chain_Initialize_empty( &_User_extensions_Switches_list );         
                                                                      
  if ( initial_extensions ) {                                         
    extension = (User_extensions_Control *)                           
      _Workspace_Allocate_or_fatal_error(                             
 80066e4:	b8 20 60 00 	mv r12,r1                                      
        number_of_extensions * sizeof( User_extensions_Control )      
      );                                                              
                                                                      
    memset (                                                          
 80066e8:	f8 00 1c 69 	calli 800d88c <memset>                         
      extension,                                                      
      0,                                                              
      number_of_extensions * sizeof( User_extensions_Control )        
    );                                                                
                                                                      
    for ( i = 0 ; i < number_of_extensions ; i++ ) {                  
 80066ec:	45 c0 00 18 	be r14,r0,800674c <_User_extensions_Handler_initialization+0xf8><== NEVER TAKEN
 80066f0:	34 0d 00 00 	mvi r13,0                                      
RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table(        
  User_extensions_Control     *extension,                             
  const User_extensions_Table *extension_table                        
)                                                                     
{                                                                     
  extension->Callouts = *extension_table;                             
 80066f4:	29 62 00 00 	lw r2,(r11+0)                                  
                                                                      
  _User_extensions_Add_set( extension );                              
 80066f8:	b9 80 08 00 	mv r1,r12                                      
 80066fc:	35 ad 00 01 	addi r13,r13,1                                 
RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table(        
  User_extensions_Control     *extension,                             
  const User_extensions_Table *extension_table                        
)                                                                     
{                                                                     
  extension->Callouts = *extension_table;                             
 8006700:	59 82 00 14 	sw (r12+20),r2                                 
 8006704:	29 62 00 04 	lw r2,(r11+4)                                  
 8006708:	59 82 00 18 	sw (r12+24),r2                                 
 800670c:	29 62 00 08 	lw r2,(r11+8)                                  
 8006710:	59 82 00 1c 	sw (r12+28),r2                                 
 8006714:	29 62 00 0c 	lw r2,(r11+12)                                 
 8006718:	59 82 00 20 	sw (r12+32),r2                                 
 800671c:	29 62 00 10 	lw r2,(r11+16)                                 
 8006720:	59 82 00 24 	sw (r12+36),r2                                 
 8006724:	29 62 00 14 	lw r2,(r11+20)                                 
 8006728:	59 82 00 28 	sw (r12+40),r2                                 
 800672c:	29 62 00 18 	lw r2,(r11+24)                                 
 8006730:	59 82 00 2c 	sw (r12+44),r2                                 
 8006734:	29 62 00 1c 	lw r2,(r11+28)                                 
 8006738:	35 6b 00 20 	addi r11,r11,32                                
 800673c:	59 82 00 30 	sw (r12+48),r2                                 
                                                                      
  _User_extensions_Add_set( extension );                              
 8006740:	f8 00 10 d9 	calli 800aaa4 <_User_extensions_Add_set>       
      _User_extensions_Add_set_with_table (extension, &initial_extensions[i]);
      extension++;                                                    
 8006744:	35 8c 00 34 	addi r12,r12,52                                
      extension,                                                      
      0,                                                              
      number_of_extensions * sizeof( User_extensions_Control )        
    );                                                                
                                                                      
    for ( i = 0 ; i < number_of_extensions ; i++ ) {                  
 8006748:	55 cd ff eb 	bgu r14,r13,80066f4 <_User_extensions_Handler_initialization+0xa0>
      _User_extensions_Add_set_with_table (extension, &initial_extensions[i]);
      extension++;                                                    
    }                                                                 
  }                                                                   
}                                                                     
 800674c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006750:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8006754:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8006758:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800675c:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8006760:	37 9c 00 14 	addi sp,sp,20                                  
 8006764:	c3 a0 00 00 	ret                                            
                                                                      

08006768 <_User_extensions_Thread_begin>: #include <rtems/score/userext.h> void _User_extensions_Thread_begin ( Thread_Control *executing ) {
 8006768:	37 9c ff f0 	addi sp,sp,-16                                 
 800676c:	5b 8b 00 10 	sw (sp+16),r11                                 
 8006770:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8006774:	5b 8d 00 08 	sw (sp+8),r13                                  
 8006778:	5b 9d 00 04 	sw (sp+4),ra                                   
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.first ;                      
 800677c:	78 02 08 01 	mvhi r2,0x801                                  
 8006780:	38 42 4a 34 	ori r2,r2,0x4a34                               
 8006784:	28 4b 00 00 	lw r11,(r2+0)                                  
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 8006788:	78 0c 08 01 	mvhi r12,0x801                                 
 800678c:	39 8c 4a 38 	ori r12,r12,0x4a38                             
#include <rtems/score/userext.h>                                      
                                                                      
void _User_extensions_Thread_begin (                                  
  Thread_Control *executing                                           
)                                                                     
{                                                                     
 8006790:	b8 20 68 00 	mv r13,r1                                      
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.first ;                      
 8006794:	45 6c 00 07 	be r11,r12,80067b0 <_User_extensions_Thread_begin+0x48><== NEVER TAKEN
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_begin != NULL )               
 8006798:	29 62 00 28 	lw r2,(r11+40)                                 
      (*the_extension->Callouts.thread_begin)( executing );           
 800679c:	b9 a0 08 00 	mv r1,r13                                      
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_begin != NULL )               
 80067a0:	44 40 00 02 	be r2,r0,80067a8 <_User_extensions_Thread_begin+0x40>
      (*the_extension->Callouts.thread_begin)( executing );           
 80067a4:	d8 40 00 00 	call r2                                        
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.first ;                      
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
 80067a8:	29 6b 00 00 	lw r11,(r11+0)                                 
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.first ;                      
 80067ac:	5d 6c ff fb 	bne r11,r12,8006798 <_User_extensions_Thread_begin+0x30>
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_begin != NULL )               
      (*the_extension->Callouts.thread_begin)( executing );           
  }                                                                   
}                                                                     
 80067b0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80067b4:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80067b8:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80067bc:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80067c0:	37 9c 00 10 	addi sp,sp,16                                  
 80067c4:	c3 a0 00 00 	ret                                            
                                                                      

08006898 <_User_extensions_Thread_create>: #include <rtems/score/userext.h> bool _User_extensions_Thread_create ( Thread_Control *the_thread ) {
 8006898:	37 9c ff ec 	addi sp,sp,-20                                 
 800689c:	5b 8b 00 14 	sw (sp+20),r11                                 
 80068a0:	5b 8c 00 10 	sw (sp+16),r12                                 
 80068a4:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80068a8:	5b 8e 00 08 	sw (sp+8),r14                                  
 80068ac:	5b 9d 00 04 	sw (sp+4),ra                                   
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
  bool                     status;                                    
                                                                      
  for ( the_node = _User_extensions_List.first ;                      
 80068b0:	78 02 08 01 	mvhi r2,0x801                                  
 80068b4:	38 42 4a 34 	ori r2,r2,0x4a34                               
 80068b8:	28 4b 00 00 	lw r11,(r2+0)                                  
 80068bc:	78 0c 08 01 	mvhi r12,0x801                                 
 80068c0:	39 8c 4a 38 	ori r12,r12,0x4a38                             
#include <rtems/score/userext.h>                                      
                                                                      
bool _User_extensions_Thread_create (                                 
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
 80068c4:	b8 20 70 00 	mv r14,r1                                      
      if ( !status )                                                  
        return false;                                                 
    }                                                                 
  }                                                                   
                                                                      
  return true;                                                        
 80068c8:	34 01 00 01 	mvi r1,1                                       
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
  bool                     status;                                    
                                                                      
  for ( the_node = _User_extensions_List.first ;                      
 80068cc:	45 6c 00 0c 	be r11,r12,80068fc <_User_extensions_Thread_create+0x64><== NEVER TAKEN
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_create != NULL ) {            
      status = (*the_extension->Callouts.thread_create)(              
 80068d0:	78 0d 08 01 	mvhi r13,0x801                                 
 80068d4:	39 ad 4d 84 	ori r13,r13,0x4d84                             
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_create != NULL ) {            
 80068d8:	29 63 00 14 	lw r3,(r11+20)                                 
      status = (*the_extension->Callouts.thread_create)(              
 80068dc:	b9 c0 10 00 	mv r2,r14                                      
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_create != NULL ) {            
 80068e0:	44 60 00 04 	be r3,r0,80068f0 <_User_extensions_Thread_create+0x58>
      status = (*the_extension->Callouts.thread_create)(              
 80068e4:	29 a1 00 0c 	lw r1,(r13+12)                                 
 80068e8:	d8 60 00 00 	call r3                                        
        _Thread_Executing,                                            
        the_thread                                                    
      );                                                              
      if ( !status )                                                  
 80068ec:	44 20 00 0b 	be r1,r0,8006918 <_User_extensions_Thread_create+0x80>
  User_extensions_Control *the_extension;                             
  bool                     status;                                    
                                                                      
  for ( the_node = _User_extensions_List.first ;                      
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
 80068f0:	29 6b 00 00 	lw r11,(r11+0)                                 
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
  bool                     status;                                    
                                                                      
  for ( the_node = _User_extensions_List.first ;                      
 80068f4:	5d 6c ff f9 	bne r11,r12,80068d8 <_User_extensions_Thread_create+0x40>
      if ( !status )                                                  
        return false;                                                 
    }                                                                 
  }                                                                   
                                                                      
  return true;                                                        
 80068f8:	34 01 00 01 	mvi r1,1                                       
}                                                                     
 80068fc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006900:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8006904:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8006908:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800690c:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8006910:	37 9c 00 14 	addi sp,sp,20                                  
 8006914:	c3 a0 00 00 	ret                                            
      status = (*the_extension->Callouts.thread_create)(              
        _Thread_Executing,                                            
        the_thread                                                    
      );                                                              
      if ( !status )                                                  
        return false;                                                 
 8006918:	34 01 00 00 	mvi r1,0                                       
    }                                                                 
  }                                                                   
                                                                      
  return true;                                                        
}                                                                     
 800691c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006920:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8006924:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8006928:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800692c:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8006930:	37 9c 00 14 	addi sp,sp,20                                  
 8006934:	c3 a0 00 00 	ret                                            
                                                                      

08006938 <_User_extensions_Thread_delete>: #include <rtems/score/userext.h> void _User_extensions_Thread_delete ( Thread_Control *the_thread ) {
 8006938:	37 9c ff ec 	addi sp,sp,-20                                 
 800693c:	5b 8b 00 14 	sw (sp+20),r11                                 
 8006940:	5b 8c 00 10 	sw (sp+16),r12                                 
 8006944:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8006948:	5b 8e 00 08 	sw (sp+8),r14                                  
 800694c:	5b 9d 00 04 	sw (sp+4),ra                                   
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.last ;                       
 8006950:	78 0d 08 01 	mvhi r13,0x801                                 
 8006954:	39 ad 4a 34 	ori r13,r13,0x4a34                             
 8006958:	29 ab 00 08 	lw r11,(r13+8)                                 
#include <rtems/score/userext.h>                                      
                                                                      
void _User_extensions_Thread_delete (                                 
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
 800695c:	b8 20 70 00 	mv r14,r1                                      
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.last ;                       
 8006960:	45 6d 00 0a 	be r11,r13,8006988 <_User_extensions_Thread_delete+0x50><== NEVER TAKEN
        the_node = the_node->previous ) {                             
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_delete != NULL )              
      (*the_extension->Callouts.thread_delete)(                       
 8006964:	78 0c 08 01 	mvhi r12,0x801                                 
 8006968:	39 8c 4d 84 	ori r12,r12,0x4d84                             
        !_Chain_Is_head( &_User_extensions_List, the_node ) ;         
        the_node = the_node->previous ) {                             
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_delete != NULL )              
 800696c:	29 63 00 20 	lw r3,(r11+32)                                 
      (*the_extension->Callouts.thread_delete)(                       
 8006970:	b9 c0 10 00 	mv r2,r14                                      
        !_Chain_Is_head( &_User_extensions_List, the_node ) ;         
        the_node = the_node->previous ) {                             
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_delete != NULL )              
 8006974:	44 60 00 03 	be r3,r0,8006980 <_User_extensions_Thread_delete+0x48>
      (*the_extension->Callouts.thread_delete)(                       
 8006978:	29 81 00 0c 	lw r1,(r12+12)                                 
 800697c:	d8 60 00 00 	call r3                                        
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.last ;                       
        !_Chain_Is_head( &_User_extensions_List, the_node ) ;         
        the_node = the_node->previous ) {                             
 8006980:	29 6b 00 04 	lw r11,(r11+4)                                 
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.last ;                       
 8006984:	5d 6d ff fa 	bne r11,r13,800696c <_User_extensions_Thread_delete+0x34>
      (*the_extension->Callouts.thread_delete)(                       
        _Thread_Executing,                                            
        the_thread                                                    
      );                                                              
  }                                                                   
}                                                                     
 8006988:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800698c:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8006990:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8006994:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8006998:	2b 8e 00 08 	lw r14,(sp+8)                                  
 800699c:	37 9c 00 14 	addi sp,sp,20                                  
 80069a0:	c3 a0 00 00 	ret                                            
                                                                      

080067c8 <_User_extensions_Thread_exitted>: void _User_extensions_Thread_exitted ( Thread_Control *executing ) {
 80067c8:	37 9c ff f0 	addi sp,sp,-16                                 
 80067cc:	5b 8b 00 10 	sw (sp+16),r11                                 
 80067d0:	5b 8c 00 0c 	sw (sp+12),r12                                 
 80067d4:	5b 8d 00 08 	sw (sp+8),r13                                  
 80067d8:	5b 9d 00 04 	sw (sp+4),ra                                   
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.last ;                       
 80067dc:	78 0c 08 01 	mvhi r12,0x801                                 
 80067e0:	39 8c 4a 34 	ori r12,r12,0x4a34                             
 80067e4:	29 8b 00 08 	lw r11,(r12+8)                                 
}                                                                     
                                                                      
void _User_extensions_Thread_exitted (                                
  Thread_Control *executing                                           
)                                                                     
{                                                                     
 80067e8:	b8 20 68 00 	mv r13,r1                                      
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.last ;                       
 80067ec:	45 6c 00 07 	be r11,r12,8006808 <_User_extensions_Thread_exitted+0x40><== NEVER TAKEN
        !_Chain_Is_head( &_User_extensions_List, the_node ) ;         
        the_node = the_node->previous ) {                             
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_exitted != NULL )             
 80067f0:	29 62 00 2c 	lw r2,(r11+44)                                 
      (*the_extension->Callouts.thread_exitted)( executing );         
 80067f4:	b9 a0 08 00 	mv r1,r13                                      
        !_Chain_Is_head( &_User_extensions_List, the_node ) ;         
        the_node = the_node->previous ) {                             
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_exitted != NULL )             
 80067f8:	44 40 00 02 	be r2,r0,8006800 <_User_extensions_Thread_exitted+0x38>
      (*the_extension->Callouts.thread_exitted)( executing );         
 80067fc:	d8 40 00 00 	call r2                                        
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.last ;                       
        !_Chain_Is_head( &_User_extensions_List, the_node ) ;         
        the_node = the_node->previous ) {                             
 8006800:	29 6b 00 04 	lw r11,(r11+4)                                 
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.last ;                       
 8006804:	5d 6c ff fb 	bne r11,r12,80067f0 <_User_extensions_Thread_exitted+0x28>
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_exitted != NULL )             
      (*the_extension->Callouts.thread_exitted)( executing );         
  }                                                                   
}                                                                     
 8006808:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800680c:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8006810:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8006814:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8006818:	37 9c 00 10 	addi sp,sp,16                                  
 800681c:	c3 a0 00 00 	ret                                            
                                                                      

08007988 <_User_extensions_Thread_restart>: #include <rtems/score/userext.h> void _User_extensions_Thread_restart ( Thread_Control *the_thread ) {
 8007988:	37 9c ff ec 	addi sp,sp,-20                                 
 800798c:	5b 8b 00 14 	sw (sp+20),r11                                 
 8007990:	5b 8c 00 10 	sw (sp+16),r12                                 
 8007994:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8007998:	5b 8e 00 08 	sw (sp+8),r14                                  
 800799c:	5b 9d 00 04 	sw (sp+4),ra                                   
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.first ;                      
 80079a0:	78 02 08 01 	mvhi r2,0x801                                  
 80079a4:	38 42 fa 7c 	ori r2,r2,0xfa7c                               
 80079a8:	28 4b 00 00 	lw r11,(r2+0)                                  
 80079ac:	78 0c 08 01 	mvhi r12,0x801                                 
 80079b0:	39 8c fa 80 	ori r12,r12,0xfa80                             
#include <rtems/score/userext.h>                                      
                                                                      
void _User_extensions_Thread_restart (                                
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
 80079b4:	b8 20 70 00 	mv r14,r1                                      
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.first ;                      
 80079b8:	45 6c 00 0a 	be r11,r12,80079e0 <_User_extensions_Thread_restart+0x58><== NEVER TAKEN
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_restart != NULL )             
      (*the_extension->Callouts.thread_restart)(                      
 80079bc:	78 0d 08 01 	mvhi r13,0x801                                 
 80079c0:	39 ad fd cc 	ori r13,r13,0xfdcc                             
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_restart != NULL )             
 80079c4:	29 63 00 1c 	lw r3,(r11+28)                                 
      (*the_extension->Callouts.thread_restart)(                      
 80079c8:	b9 c0 10 00 	mv r2,r14                                      
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_restart != NULL )             
 80079cc:	44 60 00 03 	be r3,r0,80079d8 <_User_extensions_Thread_restart+0x50>
      (*the_extension->Callouts.thread_restart)(                      
 80079d0:	29 a1 00 0c 	lw r1,(r13+12)                                 
 80079d4:	d8 60 00 00 	call r3                                        
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.first ;                      
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
 80079d8:	29 6b 00 00 	lw r11,(r11+0)                                 
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.first ;                      
 80079dc:	5d 6c ff fa 	bne r11,r12,80079c4 <_User_extensions_Thread_restart+0x3c>
      (*the_extension->Callouts.thread_restart)(                      
        _Thread_Executing,                                            
        the_thread                                                    
      );                                                              
  }                                                                   
}                                                                     
 80079e0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80079e4:	2b 8b 00 14 	lw r11,(sp+20)                                 
 80079e8:	2b 8c 00 10 	lw r12,(sp+16)                                 
 80079ec:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 80079f0:	2b 8e 00 08 	lw r14,(sp+8)                                  
 80079f4:	37 9c 00 14 	addi sp,sp,20                                  
 80079f8:	c3 a0 00 00 	ret                                            
                                                                      

080069a4 <_User_extensions_Thread_start>: #include <rtems/score/userext.h> void _User_extensions_Thread_start ( Thread_Control *the_thread ) {
 80069a4:	37 9c ff ec 	addi sp,sp,-20                                 
 80069a8:	5b 8b 00 14 	sw (sp+20),r11                                 
 80069ac:	5b 8c 00 10 	sw (sp+16),r12                                 
 80069b0:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80069b4:	5b 8e 00 08 	sw (sp+8),r14                                  
 80069b8:	5b 9d 00 04 	sw (sp+4),ra                                   
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.first ;                      
 80069bc:	78 02 08 01 	mvhi r2,0x801                                  
 80069c0:	38 42 4a 34 	ori r2,r2,0x4a34                               
 80069c4:	28 4b 00 00 	lw r11,(r2+0)                                  
 80069c8:	78 0c 08 01 	mvhi r12,0x801                                 
 80069cc:	39 8c 4a 38 	ori r12,r12,0x4a38                             
#include <rtems/score/userext.h>                                      
                                                                      
void _User_extensions_Thread_start (                                  
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
 80069d0:	b8 20 70 00 	mv r14,r1                                      
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.first ;                      
 80069d4:	45 6c 00 0a 	be r11,r12,80069fc <_User_extensions_Thread_start+0x58><== NEVER TAKEN
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_start != NULL )               
      (*the_extension->Callouts.thread_start)(                        
 80069d8:	78 0d 08 01 	mvhi r13,0x801                                 
 80069dc:	39 ad 4d 84 	ori r13,r13,0x4d84                             
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_start != NULL )               
 80069e0:	29 63 00 18 	lw r3,(r11+24)                                 
      (*the_extension->Callouts.thread_start)(                        
 80069e4:	b9 c0 10 00 	mv r2,r14                                      
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_start != NULL )               
 80069e8:	44 60 00 03 	be r3,r0,80069f4 <_User_extensions_Thread_start+0x50>
      (*the_extension->Callouts.thread_start)(                        
 80069ec:	29 a1 00 0c 	lw r1,(r13+12)                                 
 80069f0:	d8 60 00 00 	call r3                                        
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.first ;                      
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
 80069f4:	29 6b 00 00 	lw r11,(r11+0)                                 
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.first ;                      
 80069f8:	5d 6c ff fa 	bne r11,r12,80069e0 <_User_extensions_Thread_start+0x3c>
      (*the_extension->Callouts.thread_start)(                        
        _Thread_Executing,                                            
        the_thread                                                    
      );                                                              
  }                                                                   
}                                                                     
 80069fc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006a00:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8006a04:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8006a08:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8006a0c:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8006a10:	37 9c 00 14 	addi sp,sp,20                                  
 8006a14:	c3 a0 00 00 	ret                                            
                                                                      

08006a18 <_User_extensions_Thread_switch>: void _User_extensions_Thread_switch ( Thread_Control *executing, Thread_Control *heir ) {
 8006a18:	37 9c ff ec 	addi sp,sp,-20                                 
 8006a1c:	5b 8b 00 14 	sw (sp+20),r11                                 
 8006a20:	5b 8c 00 10 	sw (sp+16),r12                                 
 8006a24:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8006a28:	5b 8e 00 08 	sw (sp+8),r14                                  
 8006a2c:	5b 9d 00 04 	sw (sp+4),ra                                   
  Chain_Node                     *the_node;                           
  User_extensions_Switch_control *the_extension_switch;               
                                                                      
  for ( the_node = _User_extensions_Switches_list.first ;             
 8006a30:	78 03 08 01 	mvhi r3,0x801                                  
 8006a34:	38 63 48 b0 	ori r3,r3,0x48b0                               
 8006a38:	28 6b 00 00 	lw r11,(r3+0)                                  
 8006a3c:	78 0c 08 01 	mvhi r12,0x801                                 
 8006a40:	39 8c 48 b4 	ori r12,r12,0x48b4                             
                                                                      
void _User_extensions_Thread_switch (                                 
  Thread_Control *executing,                                          
  Thread_Control *heir                                                
)                                                                     
{                                                                     
 8006a44:	b8 20 70 00 	mv r14,r1                                      
 8006a48:	b8 40 68 00 	mv r13,r2                                      
  Chain_Node                     *the_node;                           
  User_extensions_Switch_control *the_extension_switch;               
                                                                      
  for ( the_node = _User_extensions_Switches_list.first ;             
 8006a4c:	45 6c 00 07 	be r11,r12,8006a68 <_User_extensions_Thread_switch+0x50><== NEVER TAKEN
        !_Chain_Is_tail( &_User_extensions_Switches_list, the_node ) ;
        the_node = the_node->next ) {                                 
                                                                      
    the_extension_switch = (User_extensions_Switch_control *) the_node;
                                                                      
    (*the_extension_switch->thread_switch)( executing, heir );        
 8006a50:	29 63 00 08 	lw r3,(r11+8)                                  
 8006a54:	b9 c0 08 00 	mv r1,r14                                      
 8006a58:	b9 a0 10 00 	mv r2,r13                                      
 8006a5c:	d8 60 00 00 	call r3                                        
  Chain_Node                     *the_node;                           
  User_extensions_Switch_control *the_extension_switch;               
                                                                      
  for ( the_node = _User_extensions_Switches_list.first ;             
        !_Chain_Is_tail( &_User_extensions_Switches_list, the_node ) ;
        the_node = the_node->next ) {                                 
 8006a60:	29 6b 00 00 	lw r11,(r11+0)                                 
)                                                                     
{                                                                     
  Chain_Node                     *the_node;                           
  User_extensions_Switch_control *the_extension_switch;               
                                                                      
  for ( the_node = _User_extensions_Switches_list.first ;             
 8006a64:	5d 6c ff fb 	bne r11,r12,8006a50 <_User_extensions_Thread_switch+0x38>
                                                                      
    the_extension_switch = (User_extensions_Switch_control *) the_node;
                                                                      
    (*the_extension_switch->thread_switch)( executing, heir );        
  }                                                                   
}                                                                     
 8006a68:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006a6c:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8006a70:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8006a74:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8006a78:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8006a7c:	37 9c 00 14 	addi sp,sp,20                                  
 8006a80:	c3 a0 00 00 	ret                                            
                                                                      

08009320 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) {
 8009320:	37 9c ff e4 	addi sp,sp,-28                                 
 8009324:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8009328:	5b 8c 00 18 	sw (sp+24),r12                                 
 800932c:	5b 8d 00 14 	sw (sp+20),r13                                 
 8009330:	5b 8e 00 10 	sw (sp+16),r14                                 
 8009334:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8009338:	5b 90 00 08 	sw (sp+8),r16                                  
 800933c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8009340:	b8 20 60 00 	mv r12,r1                                      
 8009344:	b8 60 58 00 	mv r11,r3                                      
  ISR_Level level;                                                    
                                                                      
  _ISR_Disable( level );                                              
 8009348:	90 00 18 00 	rcsr r3,IE                                     
 800934c:	34 01 ff fe 	mvi r1,-2                                      
 8009350:	a0 61 08 00 	and r1,r3,r1                                   
 8009354:	d0 01 00 00 	wcsr IE,r1                                     
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
 8009358:	29 81 00 00 	lw r1,(r12+0)                                  
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 800935c:	35 8e 00 04 	addi r14,r12,4                                 
 8009360:	b8 60 20 00 	mv r4,r3                                       
   *       hence the compiler must not assume *header to remain       
   *       unmodified across that call.                               
   *                                                                  
   *       Till Straumann, 7/2003                                     
   */                                                                 
  if ( !_Chain_Is_empty( header ) ) {                                 
 8009364:	44 2e 00 04 	be r1,r14,8009374 <_Watchdog_Adjust+0x54>      
    switch ( direction ) {                                            
 8009368:	44 40 00 11 	be r2,r0,80093ac <_Watchdog_Adjust+0x8c>       
 800936c:	34 03 00 01 	mvi r3,1                                       
 8009370:	44 43 00 0b 	be r2,r3,800939c <_Watchdog_Adjust+0x7c>       <== ALWAYS TAKEN
        }                                                             
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
 8009374:	d0 04 00 00 	wcsr IE,r4                                     
                                                                      
}                                                                     
 8009378:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800937c:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8009380:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8009384:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8009388:	2b 8e 00 10 	lw r14,(sp+16)                                 
 800938c:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8009390:	2b 90 00 08 	lw r16,(sp+8)                                  
 8009394:	37 9c 00 1c 	addi sp,sp,28                                  
 8009398:	c3 a0 00 00 	ret                                            
   *       Till Straumann, 7/2003                                     
   */                                                                 
  if ( !_Chain_Is_empty( header ) ) {                                 
    switch ( direction ) {                                            
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
 800939c:	28 22 00 10 	lw r2,(r1+16)                                  
 80093a0:	b4 4b 58 00 	add r11,r2,r11                                 
 80093a4:	58 2b 00 10 	sw (r1+16),r11                                 
        break;                                                        
 80093a8:	e3 ff ff f3 	bi 8009374 <_Watchdog_Adjust+0x54>             
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
 80093ac:	b8 60 20 00 	mv r4,r3                                       
 80093b0:	45 62 ff f1 	be r11,r2,8009374 <_Watchdog_Adjust+0x54>      <== NEVER TAKEN
          if ( units < _Watchdog_First( header )->delta_interval ) {  
 80093b4:	28 2d 00 10 	lw r13,(r1+16)                                 
 80093b8:	55 ab 00 13 	bgu r13,r11,8009404 <_Watchdog_Adjust+0xe4>    <== NEVER TAKEN
            _Watchdog_First( header )->delta_interval -= units;       
            break;                                                    
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
            _Watchdog_First( header )->delta_interval = 1;            
 80093bc:	34 10 00 01 	mvi r16,1                                      
                                                                      
            _ISR_Enable( level );                                     
                                                                      
            _Watchdog_Tickle( header );                               
                                                                      
            _ISR_Disable( level );                                    
 80093c0:	34 0f ff fe 	mvi r15,-2                                     
          if ( units < _Watchdog_First( header )->delta_interval ) {  
            _Watchdog_First( header )->delta_interval -= units;       
            break;                                                    
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
            _Watchdog_First( header )->delta_interval = 1;            
 80093c4:	58 30 00 10 	sw (r1+16),r16                                 
                                                                      
            _ISR_Enable( level );                                     
 80093c8:	d0 03 00 00 	wcsr IE,r3                                     
                                                                      
            _Watchdog_Tickle( header );                               
 80093cc:	b9 80 08 00 	mv r1,r12                                      
 80093d0:	f8 00 00 b0 	calli 8009690 <_Watchdog_Tickle>               
                                                                      
            _ISR_Disable( level );                                    
 80093d4:	90 00 10 00 	rcsr r2,IE                                     
 80093d8:	a0 4f 08 00 	and r1,r2,r15                                  
 80093dc:	d0 01 00 00 	wcsr IE,r1                                     
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
 80093e0:	29 84 00 00 	lw r4,(r12+0)                                  
        while ( units ) {                                             
          if ( units < _Watchdog_First( header )->delta_interval ) {  
            _Watchdog_First( header )->delta_interval -= units;       
            break;                                                    
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
 80093e4:	c9 6d 58 00 	sub r11,r11,r13                                
                                                                      
            _ISR_Enable( level );                                     
                                                                      
            _Watchdog_Tickle( header );                               
                                                                      
            _ISR_Disable( level );                                    
 80093e8:	b8 40 18 00 	mv r3,r2                                       
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First(               
  Chain_Control *header                                               
)                                                                     
{                                                                     
                                                                      
  return ( (Watchdog_Control *) header->first );                      
 80093ec:	b8 80 08 00 	mv r1,r4                                       
                                                                      
            if ( _Chain_Is_empty( header ) )                          
 80093f0:	45 c4 00 08 	be r14,r4,8009410 <_Watchdog_Adjust+0xf0>      
    switch ( direction ) {                                            
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
 80093f4:	45 60 00 07 	be r11,r0,8009410 <_Watchdog_Adjust+0xf0>      <== NEVER TAKEN
          if ( units < _Watchdog_First( header )->delta_interval ) {  
 80093f8:	28 2d 00 10 	lw r13,(r1+16)                                 
 80093fc:	51 6d ff f2 	bgeu r11,r13,80093c4 <_Watchdog_Adjust+0xa4>   
                                                                      
            _ISR_Enable( level );                                     
                                                                      
            _Watchdog_Tickle( header );                               
                                                                      
            _ISR_Disable( level );                                    
 8009400:	b8 40 20 00 	mv r4,r2                                       
        _Watchdog_First( header )->delta_interval += units;           
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
          if ( units < _Watchdog_First( header )->delta_interval ) {  
            _Watchdog_First( header )->delta_interval -= units;       
 8009404:	c9 ab 58 00 	sub r11,r13,r11                                
 8009408:	58 2b 00 10 	sw (r1+16),r11                                 
            break;                                                    
 800940c:	e3 ff ff da 	bi 8009374 <_Watchdog_Adjust+0x54>             
                                                                      
            _ISR_Enable( level );                                     
                                                                      
            _Watchdog_Tickle( header );                               
                                                                      
            _ISR_Disable( level );                                    
 8009410:	b8 40 20 00 	mv r4,r2                                       
 8009414:	e3 ff ff d8 	bi 8009374 <_Watchdog_Adjust+0x54>             
                                                                      

08006a84 <_Watchdog_Insert>: void _Watchdog_Insert( Chain_Control *header, Watchdog_Control *the_watchdog ) {
 8006a84:	37 9c ff f8 	addi sp,sp,-8                                  
 8006a88:	5b 8b 00 08 	sw (sp+8),r11                                  
 8006a8c:	5b 8c 00 04 	sw (sp+4),r12                                  
  Watchdog_Control  *after;                                           
  uint32_t           insert_isr_nest_level;                           
  Watchdog_Interval  delta_interval;                                  
                                                                      
                                                                      
  insert_isr_nest_level   = _ISR_Nest_level;                          
 8006a90:	78 03 08 01 	mvhi r3,0x801                                  
 8006a94:	38 63 4d 84 	ori r3,r3,0x4d84                               
 8006a98:	28 69 00 08 	lw r9,(r3+8)                                   
                                                                      
  _ISR_Disable( level );                                              
 8006a9c:	90 00 30 00 	rcsr r6,IE                                     
 8006aa0:	34 08 ff fe 	mvi r8,-2                                      
 8006aa4:	a0 c8 40 00 	and r8,r6,r8                                   
 8006aa8:	d0 08 00 00 	wcsr IE,r8                                     
  /*                                                                  
   *  Check to see if the watchdog has just been inserted by a        
   *  higher priority interrupt.  If so, abandon this insert.         
   */                                                                 
                                                                      
  if ( the_watchdog->state != WATCHDOG_INACTIVE ) {                   
 8006aac:	28 43 00 08 	lw r3,(r2+8)                                   
 8006ab0:	5c 60 00 3f 	bne r3,r0,8006bac <_Watchdog_Insert+0x128>     
    _ISR_Enable( level );                                             
    return;                                                           
  }                                                                   
                                                                      
  the_watchdog->state = WATCHDOG_BEING_INSERTED;                      
  _Watchdog_Sync_count++;                                             
 8006ab4:	78 0c 08 01 	mvhi r12,0x801                                 
 8006ab8:	39 8c 49 e0 	ori r12,r12,0x49e0                             
 8006abc:	29 83 00 00 	lw r3,(r12+0)                                  
 8006ac0:	78 07 08 01 	mvhi r7,0x801                                  
  if ( the_watchdog->state != WATCHDOG_INACTIVE ) {                   
    _ISR_Enable( level );                                             
    return;                                                           
  }                                                                   
                                                                      
  the_watchdog->state = WATCHDOG_BEING_INSERTED;                      
 8006ac4:	34 04 00 01 	mvi r4,1                                       
  _Watchdog_Sync_count++;                                             
 8006ac8:	34 63 00 01 	addi r3,r3,1                                   
  if ( the_watchdog->state != WATCHDOG_INACTIVE ) {                   
    _ISR_Enable( level );                                             
    return;                                                           
  }                                                                   
                                                                      
  the_watchdog->state = WATCHDOG_BEING_INSERTED;                      
 8006acc:	58 44 00 08 	sw (r2+8),r4                                   
  _Watchdog_Sync_count++;                                             
 8006ad0:	59 83 00 00 	sw (r12+0),r3                                  
 8006ad4:	38 e7 49 54 	ori r7,r7,0x4954                               
      *  mechanism used here WAS redesigned to address this.          
      */                                                              
                                                                      
     _ISR_Flash( level );                                             
                                                                      
     if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {          
 8006ad8:	34 0a 00 01 	mvi r10,1                                      
                                                                      
  the_watchdog->state = WATCHDOG_BEING_INSERTED;                      
  _Watchdog_Sync_count++;                                             
                                                                      
restart:                                                              
  delta_interval = the_watchdog->initial;                             
 8006adc:	28 44 00 0c 	lw r4,(r2+12)                                  
   * cache *header!!                                                  
   *                                                                  
   *  Till Straumann, 7/2003 (gcc-3.2.2 -O4 on powerpc)               
   *                                                                  
   */                                                                 
  for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ;
 8006ae0:	28 23 00 00 	lw r3,(r1+0)                                   
        ;                                                             
        after = _Watchdog_Next( after ) ) {                           
                                                                      
     if ( delta_interval == 0 || !_Watchdog_Next( after ) )           
 8006ae4:	44 80 00 14 	be r4,r0,8006b34 <_Watchdog_Insert+0xb0>       
 8006ae8:	28 65 00 00 	lw r5,(r3+0)                                   
 8006aec:	44 a0 00 12 	be r5,r0,8006b34 <_Watchdog_Insert+0xb0>       
       break;                                                         
                                                                      
     if ( delta_interval < after->delta_interval ) {                  
 8006af0:	28 65 00 10 	lw r5,(r3+16)                                  
 8006af4:	54 a4 00 0e 	bgu r5,r4,8006b2c <_Watchdog_Insert+0xa8>      
      *  used around this flash point allowed interrupts to execute   
      *  which violated the design assumptions.  The critical section 
      *  mechanism used here WAS redesigned to address this.          
      */                                                              
                                                                      
     _ISR_Flash( level );                                             
 8006af8:	d0 06 00 00 	wcsr IE,r6                                     
 8006afc:	d0 08 00 00 	wcsr IE,r8                                     
                                                                      
     if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {          
 8006b00:	28 4b 00 08 	lw r11,(r2+8)                                  
 8006b04:	5d 6a 00 19 	bne r11,r10,8006b68 <_Watchdog_Insert+0xe4>    
       goto exit_insert;                                              
     }                                                                
                                                                      
     if ( _Watchdog_Sync_level > insert_isr_nest_level ) {            
 8006b08:	28 eb 00 00 	lw r11,(r7+0)                                  
 8006b0c:	55 69 00 2d 	bgu r11,r9,8006bc0 <_Watchdog_Insert+0x13c>    
     if ( delta_interval < after->delta_interval ) {                  
       after->delta_interval -= delta_interval;                       
       break;                                                         
     }                                                                
                                                                      
     delta_interval -= after->delta_interval;                         
 8006b10:	c8 85 20 00 	sub r4,r4,r5                                   
                                                                      
exit_insert:                                                          
  _Watchdog_Sync_level = insert_isr_nest_level;                       
  _Watchdog_Sync_count--;                                             
  _ISR_Enable( level );                                               
}                                                                     
 8006b14:	28 63 00 00 	lw r3,(r3+0)                                   
   */                                                                 
  for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ;
        ;                                                             
        after = _Watchdog_Next( after ) ) {                           
                                                                      
     if ( delta_interval == 0 || !_Watchdog_Next( after ) )           
 8006b18:	44 80 00 07 	be r4,r0,8006b34 <_Watchdog_Insert+0xb0>       
 8006b1c:	28 65 00 00 	lw r5,(r3+0)                                   
 8006b20:	44 a0 00 05 	be r5,r0,8006b34 <_Watchdog_Insert+0xb0>       
       break;                                                         
                                                                      
     if ( delta_interval < after->delta_interval ) {                  
 8006b24:	28 65 00 10 	lw r5,(r3+16)                                  
 8006b28:	50 85 00 19 	bgeu r4,r5,8006b8c <_Watchdog_Insert+0x108>    
       after->delta_interval -= delta_interval;                       
 8006b2c:	c8 a4 28 00 	sub r5,r5,r4                                   
 8006b30:	58 65 00 10 	sw (r3+16),r5                                  
                                                                      
  _Watchdog_Activate( the_watchdog );                                 
                                                                      
  the_watchdog->delta_interval = delta_interval;                      
                                                                      
  _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node );
 8006b34:	28 63 00 04 	lw r3,(r3+4)                                   
                                                                      
  the_watchdog->start_time = _Watchdog_Ticks_since_boot;              
 8006b38:	78 01 08 01 	mvhi r1,0x801                                  
 8006b3c:	38 21 49 e4 	ori r1,r1,0x49e4                               
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
 8006b40:	28 65 00 00 	lw r5,(r3+0)                                   
 8006b44:	28 28 00 00 	lw r8,(r1+0)                                   
RTEMS_INLINE_ROUTINE void _Watchdog_Activate(                         
  Watchdog_Control *the_watchdog                                      
)                                                                     
{                                                                     
                                                                      
  the_watchdog->state = WATCHDOG_ACTIVE;                              
 8006b48:	34 01 00 02 	mvi r1,2                                       
 8006b4c:	58 41 00 08 	sw (r2+8),r1                                   
     }                                                                
  }                                                                   
                                                                      
  _Watchdog_Activate( the_watchdog );                                 
                                                                      
  the_watchdog->delta_interval = delta_interval;                      
 8006b50:	58 44 00 10 	sw (r2+16),r4                                  
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
 8006b54:	58 43 00 04 	sw (r2+4),r3                                   
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
 8006b58:	58 62 00 00 	sw (r3+0),r2                                   
  the_node->next        = before_node;                                
  before_node->previous = the_node;                                   
 8006b5c:	58 a2 00 04 	sw (r5+4),r2                                   
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
  the_node->next        = before_node;                                
 8006b60:	58 45 00 00 	sw (r2+0),r5                                   
                                                                      
  _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node );
                                                                      
  the_watchdog->start_time = _Watchdog_Ticks_since_boot;              
 8006b64:	58 48 00 14 	sw (r2+20),r8                                  
                                                                      
exit_insert:                                                          
  _Watchdog_Sync_level = insert_isr_nest_level;                       
 8006b68:	58 e9 00 00 	sw (r7+0),r9                                   
  _Watchdog_Sync_count--;                                             
 8006b6c:	29 81 00 00 	lw r1,(r12+0)                                  
 8006b70:	34 21 ff ff 	addi r1,r1,-1                                  
 8006b74:	59 81 00 00 	sw (r12+0),r1                                  
  _ISR_Enable( level );                                               
 8006b78:	d0 06 00 00 	wcsr IE,r6                                     
}                                                                     
 8006b7c:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8006b80:	2b 8c 00 04 	lw r12,(sp+4)                                  
 8006b84:	37 9c 00 08 	addi sp,sp,8                                   
 8006b88:	c3 a0 00 00 	ret                                            
      *  used around this flash point allowed interrupts to execute   
      *  which violated the design assumptions.  The critical section 
      *  mechanism used here WAS redesigned to address this.          
      */                                                              
                                                                      
     _ISR_Flash( level );                                             
 8006b8c:	d0 06 00 00 	wcsr IE,r6                                     
 8006b90:	d0 08 00 00 	wcsr IE,r8                                     
                                                                      
     if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {          
 8006b94:	28 4b 00 08 	lw r11,(r2+8)                                  
     if ( delta_interval < after->delta_interval ) {                  
       after->delta_interval -= delta_interval;                       
       break;                                                         
     }                                                                
                                                                      
     delta_interval -= after->delta_interval;                         
 8006b98:	c8 85 20 00 	sub r4,r4,r5                                   
      *  mechanism used here WAS redesigned to address this.          
      */                                                              
                                                                      
     _ISR_Flash( level );                                             
                                                                      
     if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {          
 8006b9c:	5d 6a ff f3 	bne r11,r10,8006b68 <_Watchdog_Insert+0xe4>    <== NEVER TAKEN
       goto exit_insert;                                              
     }                                                                
                                                                      
     if ( _Watchdog_Sync_level > insert_isr_nest_level ) {            
 8006ba0:	28 e5 00 00 	lw r5,(r7+0)                                   
 8006ba4:	54 a9 00 07 	bgu r5,r9,8006bc0 <_Watchdog_Insert+0x13c>     <== NEVER TAKEN
 8006ba8:	e3 ff ff db 	bi 8006b14 <_Watchdog_Insert+0x90>             
   *  Check to see if the watchdog has just been inserted by a        
   *  higher priority interrupt.  If so, abandon this insert.         
   */                                                                 
                                                                      
  if ( the_watchdog->state != WATCHDOG_INACTIVE ) {                   
    _ISR_Enable( level );                                             
 8006bac:	d0 06 00 00 	wcsr IE,r6                                     
                                                                      
exit_insert:                                                          
  _Watchdog_Sync_level = insert_isr_nest_level;                       
  _Watchdog_Sync_count--;                                             
  _ISR_Enable( level );                                               
}                                                                     
 8006bb0:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8006bb4:	2b 8c 00 04 	lw r12,(sp+4)                                  
 8006bb8:	37 9c 00 08 	addi sp,sp,8                                   
 8006bbc:	c3 a0 00 00 	ret                                            
     if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {          
       goto exit_insert;                                              
     }                                                                
                                                                      
     if ( _Watchdog_Sync_level > insert_isr_nest_level ) {            
       _Watchdog_Sync_level = insert_isr_nest_level;                  
 8006bc0:	58 e9 00 00 	sw (r7+0),r9                                   
       goto restart;                                                  
 8006bc4:	e3 ff ff c6 	bi 8006adc <_Watchdog_Insert+0x58>             
                                                                      

08006c28 <_Watchdog_Remove>: { ISR_Level level; Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level );
 8006c28:	90 00 20 00 	rcsr r4,IE                                     
 8006c2c:	34 02 ff fe 	mvi r2,-2                                      
 8006c30:	a0 82 10 00 	and r2,r4,r2                                   
 8006c34:	d0 02 00 00 	wcsr IE,r2                                     
  previous_state = the_watchdog->state;                               
 8006c38:	28 22 00 08 	lw r2,(r1+8)                                   
  switch ( previous_state ) {                                         
 8006c3c:	34 03 00 01 	mvi r3,1                                       
 8006c40:	44 43 00 27 	be r2,r3,8006cdc <_Watchdog_Remove+0xb4>       
 8006c44:	5c 40 00 08 	bne r2,r0,8006c64 <_Watchdog_Remove+0x3c>      
        _Watchdog_Sync_level = _ISR_Nest_level;                       
                                                                      
      _Chain_Extract_unprotected( &the_watchdog->Node );              
      break;                                                          
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
 8006c48:	78 03 08 01 	mvhi r3,0x801                                  
 8006c4c:	38 63 49 e4 	ori r3,r3,0x49e4                               
 8006c50:	28 63 00 00 	lw r3,(r3+0)                                   
 8006c54:	58 23 00 18 	sw (r1+24),r3                                  
                                                                      
  _ISR_Enable( level );                                               
 8006c58:	d0 04 00 00 	wcsr IE,r4                                     
  return( previous_state );                                           
}                                                                     
 8006c5c:	b8 40 08 00 	mv r1,r2                                       
 8006c60:	c3 a0 00 00 	ret                                            
  Watchdog_States   previous_state;                                   
  Watchdog_Control *next_watchdog;                                    
                                                                      
  _ISR_Disable( level );                                              
  previous_state = the_watchdog->state;                               
  switch ( previous_state ) {                                         
 8006c64:	34 03 00 03 	mvi r3,3                                       
 8006c68:	54 43 ff f8 	bgu r2,r3,8006c48 <_Watchdog_Remove+0x20>      <== NEVER TAKEN
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
                                                                      
  _ISR_Enable( level );                                               
  return( previous_state );                                           
}                                                                     
 8006c6c:	28 23 00 00 	lw r3,(r1+0)                                   
      break;                                                          
                                                                      
    case WATCHDOG_ACTIVE:                                             
    case WATCHDOG_REMOVE_IT:                                          
                                                                      
      the_watchdog->state = WATCHDOG_INACTIVE;                        
 8006c70:	58 20 00 08 	sw (r1+8),r0                                   
      next_watchdog = _Watchdog_Next( the_watchdog );                 
                                                                      
      if ( _Watchdog_Next(next_watchdog) )                            
 8006c74:	28 65 00 00 	lw r5,(r3+0)                                   
 8006c78:	44 a0 00 05 	be r5,r0,8006c8c <_Watchdog_Remove+0x64>       
        next_watchdog->delta_interval += the_watchdog->delta_interval;
 8006c7c:	28 66 00 10 	lw r6,(r3+16)                                  
 8006c80:	28 25 00 10 	lw r5,(r1+16)                                  
 8006c84:	b4 c5 28 00 	add r5,r6,r5                                   
 8006c88:	58 65 00 10 	sw (r3+16),r5                                  
                                                                      
      if ( _Watchdog_Sync_count )                                     
 8006c8c:	78 05 08 01 	mvhi r5,0x801                                  
 8006c90:	38 a5 49 e0 	ori r5,r5,0x49e0                               
 8006c94:	28 a5 00 00 	lw r5,(r5+0)                                   
 8006c98:	44 a0 00 07 	be r5,r0,8006cb4 <_Watchdog_Remove+0x8c>       
        _Watchdog_Sync_level = _ISR_Nest_level;                       
 8006c9c:	78 05 08 01 	mvhi r5,0x801                                  
 8006ca0:	38 a5 4d 84 	ori r5,r5,0x4d84                               
 8006ca4:	28 a6 00 08 	lw r6,(r5+8)                                   
 8006ca8:	78 05 08 01 	mvhi r5,0x801                                  
 8006cac:	38 a5 49 54 	ori r5,r5,0x4954                               
 8006cb0:	58 a6 00 00 	sw (r5+0),r6                                   
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
 8006cb4:	28 25 00 04 	lw r5,(r1+4)                                   
  next->previous = previous;                                          
 8006cb8:	58 65 00 04 	sw (r3+4),r5                                   
  previous->next = next;                                              
 8006cbc:	58 a3 00 00 	sw (r5+0),r3                                   
                                                                      
      _Chain_Extract_unprotected( &the_watchdog->Node );              
      break;                                                          
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
 8006cc0:	78 03 08 01 	mvhi r3,0x801                                  
 8006cc4:	38 63 49 e4 	ori r3,r3,0x49e4                               
 8006cc8:	28 63 00 00 	lw r3,(r3+0)                                   
 8006ccc:	58 23 00 18 	sw (r1+24),r3                                  
                                                                      
  _ISR_Enable( level );                                               
 8006cd0:	d0 04 00 00 	wcsr IE,r4                                     
  return( previous_state );                                           
}                                                                     
 8006cd4:	b8 40 08 00 	mv r1,r2                                       
 8006cd8:	c3 a0 00 00 	ret                                            
        _Watchdog_Sync_level = _ISR_Nest_level;                       
                                                                      
      _Chain_Extract_unprotected( &the_watchdog->Node );              
      break;                                                          
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
 8006cdc:	78 03 08 01 	mvhi r3,0x801                                  
 8006ce0:	38 63 49 e4 	ori r3,r3,0x49e4                               
 8006ce4:	28 63 00 00 	lw r3,(r3+0)                                   
                                                                      
      /*                                                              
       *  It is not actually on the chain so just change the state and
       *  the Insert operation we interrupted will be aborted.        
       */                                                             
      the_watchdog->state = WATCHDOG_INACTIVE;                        
 8006ce8:	58 20 00 08 	sw (r1+8),r0                                   
        _Watchdog_Sync_level = _ISR_Nest_level;                       
                                                                      
      _Chain_Extract_unprotected( &the_watchdog->Node );              
      break;                                                          
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
 8006cec:	58 23 00 18 	sw (r1+24),r3                                  
                                                                      
  _ISR_Enable( level );                                               
 8006cf0:	d0 04 00 00 	wcsr IE,r4                                     
  return( previous_state );                                           
}                                                                     
 8006cf4:	b8 40 08 00 	mv r1,r2                                       
 8006cf8:	c3 a0 00 00 	ret                                            
                                                                      

08008a5c <_Watchdog_Report_chain>: void _Watchdog_Report_chain( const char *name, Chain_Control *header ) {
 8008a5c:	37 9c ff ec 	addi sp,sp,-20                                 
 8008a60:	5b 8b 00 14 	sw (sp+20),r11                                 
 8008a64:	5b 8c 00 10 	sw (sp+16),r12                                 
 8008a68:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8008a6c:	5b 8e 00 08 	sw (sp+8),r14                                  
 8008a70:	5b 9d 00 04 	sw (sp+4),ra                                   
 8008a74:	b8 20 70 00 	mv r14,r1                                      
 8008a78:	b8 40 60 00 	mv r12,r2                                      
  ISR_Level          level;                                           
  Chain_Node        *node;                                            
                                                                      
  _ISR_Disable( level );                                              
 8008a7c:	90 00 68 00 	rcsr r13,IE                                    
 8008a80:	34 01 ff fe 	mvi r1,-2                                      
 8008a84:	a1 a1 08 00 	and r1,r13,r1                                  
 8008a88:	d0 01 00 00 	wcsr IE,r1                                     
    printk( "Watchdog Chain: %s %p\n", name, header );                
 8008a8c:	78 01 08 01 	mvhi r1,0x801                                  
 8008a90:	b9 80 18 00 	mv r3,r12                                      
 8008a94:	38 21 f0 28 	ori r1,r1,0xf028                               
 8008a98:	b9 c0 10 00 	mv r2,r14                                      
 8008a9c:	fb ff ea d4 	calli 80035ec <printk>                         
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
 8008aa0:	29 8b 00 00 	lw r11,(r12+0)                                 
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 8008aa4:	35 8c 00 04 	addi r12,r12,4                                 
    if ( !_Chain_Is_empty( header ) ) {                               
 8008aa8:	45 6c 00 12 	be r11,r12,8008af0 <_Watchdog_Report_chain+0x94>
            node != _Chain_Tail(header) ;                             
            node = node->next )                                       
      {                                                               
        Watchdog_Control *watch = (Watchdog_Control *) node;          
                                                                      
        _Watchdog_Report( NULL, watch );                              
 8008aac:	b9 60 10 00 	mv r2,r11                                      
 8008ab0:	34 01 00 00 	mvi r1,0                                       
 8008ab4:	f8 00 00 13 	calli 8008b00 <_Watchdog_Report>               
  _ISR_Disable( level );                                              
    printk( "Watchdog Chain: %s %p\n", name, header );                
    if ( !_Chain_Is_empty( header ) ) {                               
      for ( node = header->first ;                                    
            node != _Chain_Tail(header) ;                             
            node = node->next )                                       
 8008ab8:	29 6b 00 00 	lw r11,(r11+0)                                 
  Chain_Node        *node;                                            
                                                                      
  _ISR_Disable( level );                                              
    printk( "Watchdog Chain: %s %p\n", name, header );                
    if ( !_Chain_Is_empty( header ) ) {                               
      for ( node = header->first ;                                    
 8008abc:	5d 6c ff fc 	bne r11,r12,8008aac <_Watchdog_Report_chain+0x50><== NEVER TAKEN
      {                                                               
        Watchdog_Control *watch = (Watchdog_Control *) node;          
                                                                      
        _Watchdog_Report( NULL, watch );                              
      }                                                               
      printk( "== end of %s \n", name );                              
 8008ac0:	78 01 08 01 	mvhi r1,0x801                                  
 8008ac4:	38 21 f0 40 	ori r1,r1,0xf040                               
 8008ac8:	b9 c0 10 00 	mv r2,r14                                      
 8008acc:	fb ff ea c8 	calli 80035ec <printk>                         
    } else {                                                          
      printk( "Chain is empty\n" );                                   
    }                                                                 
  _ISR_Enable( level );                                               
 8008ad0:	d0 0d 00 00 	wcsr IE,r13                                    
}                                                                     
 8008ad4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8008ad8:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8008adc:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8008ae0:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8008ae4:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8008ae8:	37 9c 00 14 	addi sp,sp,20                                  
 8008aec:	c3 a0 00 00 	ret                                            
                                                                      
        _Watchdog_Report( NULL, watch );                              
      }                                                               
      printk( "== end of %s \n", name );                              
    } else {                                                          
      printk( "Chain is empty\n" );                                   
 8008af0:	78 01 08 01 	mvhi r1,0x801                                  
 8008af4:	38 21 f0 50 	ori r1,r1,0xf050                               
 8008af8:	fb ff ea bd 	calli 80035ec <printk>                         
 8008afc:	e3 ff ff f5 	bi 8008ad0 <_Watchdog_Report_chain+0x74>       
                                                                      

08006cfc <_Watchdog_Tickle>: */ void _Watchdog_Tickle( Chain_Control *header ) {
 8006cfc:	37 9c ff e4 	addi sp,sp,-28                                 
 8006d00:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8006d04:	5b 8c 00 18 	sw (sp+24),r12                                 
 8006d08:	5b 8d 00 14 	sw (sp+20),r13                                 
 8006d0c:	5b 8e 00 10 	sw (sp+16),r14                                 
 8006d10:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8006d14:	5b 90 00 08 	sw (sp+8),r16                                  
 8006d18:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006d1c:	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 );                                              
 8006d20:	90 00 68 00 	rcsr r13,IE                                    
 8006d24:	34 01 ff fe 	mvi r1,-2                                      
 8006d28:	a1 a1 08 00 	and r1,r13,r1                                  
 8006d2c:	d0 01 00 00 	wcsr IE,r1                                     
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
 8006d30:	29 8b 00 00 	lw r11,(r12+0)                                 
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
 8006d34:	35 8e 00 04 	addi r14,r12,4                                 
 8006d38:	b9 a0 10 00 	mv r2,r13                                      
                                                                      
  if ( _Chain_Is_empty( header ) )                                    
 8006d3c:	45 6e 00 1e 	be r11,r14,8006db4 <_Watchdog_Tickle+0xb8>     
   * to be inserted has already had its delta_interval adjusted to 0, and
   * so is added to the head of the chain with a delta_interval of 0. 
   *                                                                  
   * Steven Johnson - 12/2005 (gcc-3.2.3 -O3 on powerpc)              
   */                                                                 
  if (the_watchdog->delta_interval != 0) {                            
 8006d40:	29 61 00 10 	lw r1,(r11+16)                                 
 8006d44:	5c 20 00 26 	bne r1,r0,8006ddc <_Watchdog_Tickle+0xe0>      
  do {                                                                
     watchdog_state = _Watchdog_Remove( the_watchdog );               
                                                                      
     _ISR_Enable( level );                                            
                                                                      
     switch( watchdog_state ) {                                       
 8006d48:	34 10 00 02 	mvi r16,2                                      
                                                                      
       case WATCHDOG_REMOVE_IT:                                       
         break;                                                       
     }                                                                
                                                                      
     _ISR_Disable( level );                                           
 8006d4c:	34 0f ff fe 	mvi r15,-2                                     
 8006d50:	e0 00 00 0a 	bi 8006d78 <_Watchdog_Tickle+0x7c>             
 8006d54:	90 00 10 00 	rcsr r2,IE                                     <== NOT EXECUTED
 8006d58:	a0 4f 08 00 	and r1,r2,r15                                  <== NOT EXECUTED
 8006d5c:	d0 01 00 00 	wcsr IE,r1                                     <== NOT EXECUTED
   } while ( !_Chain_Is_empty( header ) &&                            
             (the_watchdog->delta_interval == 0) );                   
                                                                      
leave:                                                                
   _ISR_Enable(level);                                                
}                                                                     
 8006d60:	29 81 00 00 	lw r1,(r12+0)                                  <== NOT EXECUTED
                                                                      
       case WATCHDOG_REMOVE_IT:                                       
         break;                                                       
     }                                                                
                                                                      
     _ISR_Disable( level );                                           
 8006d64:	b8 40 68 00 	mv r13,r2                                      <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First(               
  Chain_Control *header                                               
)                                                                     
{                                                                     
                                                                      
  return ( (Watchdog_Control *) header->first );                      
 8006d68:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
                                                                      
     the_watchdog = _Watchdog_First( header );                        
   } while ( !_Chain_Is_empty( header ) &&                            
             (the_watchdog->delta_interval == 0) );                   
 8006d6c:	44 2e 00 12 	be r1,r14,8006db4 <_Watchdog_Tickle+0xb8>      <== NOT EXECUTED
     }                                                                
                                                                      
     _ISR_Disable( level );                                           
                                                                      
     the_watchdog = _Watchdog_First( header );                        
   } while ( !_Chain_Is_empty( header ) &&                            
 8006d70:	28 21 00 10 	lw r1,(r1+16)                                  
 8006d74:	5c 20 00 10 	bne r1,r0,8006db4 <_Watchdog_Tickle+0xb8>      
    if ( the_watchdog->delta_interval != 0 )                          
      goto leave;                                                     
  }                                                                   
                                                                      
  do {                                                                
     watchdog_state = _Watchdog_Remove( the_watchdog );               
 8006d78:	b9 60 08 00 	mv r1,r11                                      
 8006d7c:	fb ff ff ab 	calli 8006c28 <_Watchdog_Remove>               
                                                                      
     _ISR_Enable( level );                                            
 8006d80:	d0 0d 00 00 	wcsr IE,r13                                    
                                                                      
     switch( watchdog_state ) {                                       
 8006d84:	5c 30 ff f4 	bne r1,r16,8006d54 <_Watchdog_Tickle+0x58>     <== NEVER TAKEN
       case WATCHDOG_ACTIVE:                                          
         (*the_watchdog->routine)(                                    
 8006d88:	29 63 00 1c 	lw r3,(r11+28)                                 
 8006d8c:	29 61 00 20 	lw r1,(r11+32)                                 
 8006d90:	29 62 00 24 	lw r2,(r11+36)                                 
 8006d94:	d8 60 00 00 	call r3                                        
                                                                      
       case WATCHDOG_REMOVE_IT:                                       
         break;                                                       
     }                                                                
                                                                      
     _ISR_Disable( level );                                           
 8006d98:	90 00 10 00 	rcsr r2,IE                                     
 8006d9c:	a0 4f 08 00 	and r1,r2,r15                                  
 8006da0:	d0 01 00 00 	wcsr IE,r1                                     
   } while ( !_Chain_Is_empty( header ) &&                            
             (the_watchdog->delta_interval == 0) );                   
                                                                      
leave:                                                                
   _ISR_Enable(level);                                                
}                                                                     
 8006da4:	29 81 00 00 	lw r1,(r12+0)                                  
                                                                      
       case WATCHDOG_REMOVE_IT:                                       
         break;                                                       
     }                                                                
                                                                      
     _ISR_Disable( level );                                           
 8006da8:	b8 40 68 00 	mv r13,r2                                      
 8006dac:	b8 20 58 00 	mv r11,r1                                      
                                                                      
     the_watchdog = _Watchdog_First( header );                        
   } while ( !_Chain_Is_empty( header ) &&                            
             (the_watchdog->delta_interval == 0) );                   
 8006db0:	5c 2e ff f0 	bne r1,r14,8006d70 <_Watchdog_Tickle+0x74>     
                                                                      
leave:                                                                
   _ISR_Enable(level);                                                
 8006db4:	d0 02 00 00 	wcsr IE,r2                                     
}                                                                     
 8006db8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006dbc:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8006dc0:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8006dc4:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8006dc8:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8006dcc:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8006dd0:	2b 90 00 08 	lw r16,(sp+8)                                  
 8006dd4:	37 9c 00 1c 	addi sp,sp,28                                  
 8006dd8:	c3 a0 00 00 	ret                                            
   * so is added to the head of the chain with a delta_interval of 0. 
   *                                                                  
   * Steven Johnson - 12/2005 (gcc-3.2.3 -O3 on powerpc)              
   */                                                                 
  if (the_watchdog->delta_interval != 0) {                            
    the_watchdog->delta_interval--;                                   
 8006ddc:	34 21 ff ff 	addi r1,r1,-1                                  
 8006de0:	59 61 00 10 	sw (r11+16),r1                                 
    if ( the_watchdog->delta_interval != 0 )                          
 8006de4:	44 20 ff d9 	be r1,r0,8006d48 <_Watchdog_Tickle+0x4c>       
 8006de8:	e3 ff ff f3 	bi 8006db4 <_Watchdog_Tickle+0xb8>             
                                                                      

08003364 <adjtime>: int adjtime( struct timeval *delta, struct timeval *olddelta ) {
 8003364:	37 9c ff e8 	addi sp,sp,-24                                 
 8003368:	5b 8b 00 10 	sw (sp+16),r11                                 
 800336c:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8003370:	5b 8d 00 08 	sw (sp+8),r13                                  
 8003374:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003378:	b8 20 58 00 	mv r11,r1                                      
 800337c:	b8 40 60 00 	mv r12,r2                                      
  long   adjustment;                                                  
                                                                      
  /*                                                                  
   * Simple validations                                               
   */                                                                 
  if ( !delta )                                                       
 8003380:	44 20 00 06 	be r1,r0,8003398 <adjtime+0x34>                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( delta->tv_usec >= TOD_MICROSECONDS_PER_SECOND )                
 8003384:	78 03 08 01 	mvhi r3,0x801                                  
 8003388:	38 63 de ec 	ori r3,r3,0xdeec                               
 800338c:	28 22 00 04 	lw r2,(r1+4)                                   
 8003390:	28 61 00 00 	lw r1,(r3+0)                                   
 8003394:	50 22 00 0b 	bgeu r1,r2,80033c0 <adjtime+0x5c>              
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 8003398:	f8 00 2a 54 	calli 800dce8 <__errno>                        
 800339c:	34 02 00 16 	mvi r2,22                                      
 80033a0:	58 22 00 00 	sw (r1+0),r2                                   
 80033a4:	34 01 ff ff 	mvi r1,-1                                      
  /* set the user's output */                                         
  if ( olddelta )                                                     
    *olddelta = *delta;                                               
                                                                      
  return 0;                                                           
}                                                                     
 80033a8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80033ac:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80033b0:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80033b4:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80033b8:	37 9c 00 18 	addi sp,sp,24                                  
 80033bc:	c3 a0 00 00 	ret                                            
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( delta->tv_usec >= TOD_MICROSECONDS_PER_SECOND )                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( olddelta ) {                                                   
 80033c0:	45 80 00 04 	be r12,r0,80033d0 <adjtime+0x6c>               
    olddelta->tv_sec  = 0;                                            
    olddelta->tv_usec = 0;                                            
 80033c4:	59 80 00 04 	sw (r12+4),r0                                  
 80033c8:	29 62 00 04 	lw r2,(r11+4)                                  
                                                                      
  if ( delta->tv_usec >= TOD_MICROSECONDS_PER_SECOND )                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( olddelta ) {                                                   
    olddelta->tv_sec  = 0;                                            
 80033cc:	59 80 00 00 	sw (r12+0),r0                                  
    olddelta->tv_usec = 0;                                            
  }                                                                   
                                                                      
  /* convert delta to microseconds */                                 
  adjustment  = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND);        
 80033d0:	29 63 00 00 	lw r3,(r11+0)                                  
  adjustment += delta->tv_usec;                                       
                                                                      
  /* too small to account for */                                      
  if ( adjustment < rtems_configuration_get_microseconds_per_tick() ) 
 80033d4:	78 01 08 02 	mvhi r1,0x802                                  
 80033d8:	38 21 00 c4 	ori r1,r1,0xc4                                 
    olddelta->tv_sec  = 0;                                            
    olddelta->tv_usec = 0;                                            
  }                                                                   
                                                                      
  /* convert delta to microseconds */                                 
  adjustment  = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND);        
 80033dc:	b4 63 20 00 	add r4,r3,r3                                   
 80033e0:	b4 84 20 00 	add r4,r4,r4                                   
 80033e4:	b4 84 20 00 	add r4,r4,r4                                   
 80033e8:	b4 84 28 00 	add r5,r4,r4                                   
 80033ec:	b4 a5 28 00 	add r5,r5,r5                                   
 80033f0:	b4 a5 28 00 	add r5,r5,r5                                   
 80033f4:	b4 a5 28 00 	add r5,r5,r5                                   
 80033f8:	b4 a5 28 00 	add r5,r5,r5                                   
 80033fc:	c8 a4 28 00 	sub r5,r5,r4                                   
 8003400:	b4 a5 20 00 	add r4,r5,r5                                   
 8003404:	b4 84 20 00 	add r4,r4,r4                                   
 8003408:	b4 84 20 00 	add r4,r4,r4                                   
 800340c:	b4 84 20 00 	add r4,r4,r4                                   
 8003410:	b4 84 20 00 	add r4,r4,r4                                   
 8003414:	b4 84 20 00 	add r4,r4,r4                                   
 8003418:	c8 85 20 00 	sub r4,r4,r5                                   
 800341c:	b4 83 18 00 	add r3,r4,r3                                   
 8003420:	b4 63 18 00 	add r3,r3,r3                                   
 8003424:	b4 63 18 00 	add r3,r3,r3                                   
 8003428:	b4 63 18 00 	add r3,r3,r3                                   
 800342c:	b4 63 18 00 	add r3,r3,r3                                   
 8003430:	b4 63 18 00 	add r3,r3,r3                                   
  adjustment += delta->tv_usec;                                       
                                                                      
  /* too small to account for */                                      
  if ( adjustment < rtems_configuration_get_microseconds_per_tick() ) 
 8003434:	28 24 00 0c 	lw r4,(r1+12)                                  
    olddelta->tv_sec  = 0;                                            
    olddelta->tv_usec = 0;                                            
  }                                                                   
                                                                      
  /* convert delta to microseconds */                                 
  adjustment  = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND);        
 8003438:	b4 63 18 00 	add r3,r3,r3                                   
  adjustment += delta->tv_usec;                                       
 800343c:	b4 43 18 00 	add r3,r2,r3                                   
                                                                      
  /* too small to account for */                                      
  if ( adjustment < rtems_configuration_get_microseconds_per_tick() ) 
    return 0;                                                         
 8003440:	34 01 00 00 	mvi r1,0                                       
  /* convert delta to microseconds */                                 
  adjustment  = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND);        
  adjustment += delta->tv_usec;                                       
                                                                      
  /* too small to account for */                                      
  if ( adjustment < rtems_configuration_get_microseconds_per_tick() ) 
 8003444:	54 83 ff d9 	bgu r4,r3,80033a8 <adjtime+0x44>               
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
 8003448:	78 01 08 02 	mvhi r1,0x802                                  
 800344c:	38 21 09 94 	ori r1,r1,0x994                                
 8003450:	28 22 00 00 	lw r2,(r1+0)                                   
 8003454:	34 42 00 01 	addi r2,r2,1                                   
 8003458:	58 22 00 00 	sw (r1+0),r2                                   
   * This prevents context switches while we are adjusting the TOD    
   */                                                                 
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
    _TOD_Get( &ts );                                                  
 800345c:	37 8d 00 14 	addi r13,sp,20                                 
 8003460:	b9 a0 08 00 	mv r1,r13                                      
 8003464:	f8 00 05 7f 	calli 8004a60 <_TOD_Get>                       
                                                                      
    ts.tv_sec  += delta->tv_sec;                                      
    ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;   
 8003468:	29 63 00 04 	lw r3,(r11+4)                                  
                                                                      
    /* if adjustment is too much positive */                          
    while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {              
 800346c:	78 04 08 01 	mvhi r4,0x801                                  
 8003470:	38 84 e0 68 	ori r4,r4,0xe068                               
  _Thread_Disable_dispatch();                                         
                                                                      
    _TOD_Get( &ts );                                                  
                                                                      
    ts.tv_sec  += delta->tv_sec;                                      
    ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;   
 8003474:	b4 63 18 00 	add r3,r3,r3                                   
 8003478:	b4 63 18 00 	add r3,r3,r3                                   
 800347c:	b4 63 18 00 	add r3,r3,r3                                   
 8003480:	b4 63 10 00 	add r2,r3,r3                                   
 8003484:	b4 42 10 00 	add r2,r2,r2                                   
 8003488:	b4 62 18 00 	add r3,r3,r2                                   
 800348c:	b4 63 10 00 	add r2,r3,r3                                   
 8003490:	b4 42 10 00 	add r2,r2,r2                                   
 8003494:	b4 62 18 00 	add r3,r3,r2                                   
 8003498:	b4 63 10 00 	add r2,r3,r3                                   
 800349c:	b4 42 10 00 	add r2,r2,r2                                   
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
    _TOD_Get( &ts );                                                  
                                                                      
    ts.tv_sec  += delta->tv_sec;                                      
 80034a0:	29 61 00 00 	lw r1,(r11+0)                                  
    ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;   
 80034a4:	b4 62 18 00 	add r3,r3,r2                                   
                                                                      
    /* if adjustment is too much positive */                          
    while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {              
 80034a8:	28 82 00 00 	lw r2,(r4+0)                                   
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
    _TOD_Get( &ts );                                                  
                                                                      
    ts.tv_sec  += delta->tv_sec;                                      
 80034ac:	2b 84 00 14 	lw r4,(sp+20)                                  
 80034b0:	b4 81 20 00 	add r4,r4,r1                                   
    ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;   
 80034b4:	2b 81 00 18 	lw r1,(sp+24)                                  
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
    _TOD_Get( &ts );                                                  
                                                                      
    ts.tv_sec  += delta->tv_sec;                                      
 80034b8:	5b 84 00 14 	sw (sp+20),r4                                  
    ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;   
 80034bc:	b4 61 18 00 	add r3,r3,r1                                   
 80034c0:	5b 83 00 18 	sw (sp+24),r3                                  
                                                                      
    /* if adjustment is too much positive */                          
    while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {              
 80034c4:	50 43 00 09 	bgeu r2,r3,80034e8 <adjtime+0x184>             
      ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND;                       
 80034c8:	78 01 08 01 	mvhi r1,0x801                                  
 80034cc:	38 21 e0 6c 	ori r1,r1,0xe06c                               
 80034d0:	28 25 00 00 	lw r5,(r1+0)                                   
 80034d4:	b4 65 18 00 	add r3,r3,r5                                   
 *  At one point there was a static variable named adjustment         
 *  used by this implementation.  I don't see any reason for it       
 *  to be here based upon the GNU/Linux documentation.                
 */                                                                   
                                                                      
int  adjtime(                                                         
 80034d8:	34 84 00 01 	addi r4,r4,1                                   
                                                                      
    ts.tv_sec  += delta->tv_sec;                                      
    ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;   
                                                                      
    /* if adjustment is too much positive */                          
    while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {              
 80034dc:	54 62 ff fe 	bgu r3,r2,80034d4 <adjtime+0x170>              <== NEVER TAKEN
 80034e0:	5b 83 00 18 	sw (sp+24),r3                                  
 80034e4:	5b 84 00 14 	sw (sp+20),r4                                  
      ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND;                       
      ts.tv_sec++;                                                    
    }                                                                 
                                                                      
    /* if adjustment is too much negative */                          
    while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) {       
 80034e8:	78 04 08 01 	mvhi r4,0x801                                  
 80034ec:	38 84 e0 6c 	ori r4,r4,0xe06c                               
 80034f0:	28 82 00 00 	lw r2,(r4+0)                                   
 80034f4:	54 62 00 0a 	bgu r3,r2,800351c <adjtime+0x1b8>              <== NEVER TAKEN
      ts.tv_nsec += TOD_NANOSECONDS_PER_SECOND;                       
 80034f8:	78 01 08 01 	mvhi r1,0x801                                  
 80034fc:	38 21 de e8 	ori r1,r1,0xdee8                               
      ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND;                       
      ts.tv_sec++;                                                    
    }                                                                 
                                                                      
    /* if adjustment is too much negative */                          
    while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) {       
 8003500:	2b 84 00 14 	lw r4,(sp+20)                                  
      ts.tv_nsec += TOD_NANOSECONDS_PER_SECOND;                       
 8003504:	28 25 00 00 	lw r5,(r1+0)                                   
 8003508:	b4 65 18 00 	add r3,r3,r5                                   
 *  At one point there was a static variable named adjustment         
 *  used by this implementation.  I don't see any reason for it       
 *  to be here based upon the GNU/Linux documentation.                
 */                                                                   
                                                                      
int  adjtime(                                                         
 800350c:	34 84 ff ff 	addi r4,r4,-1                                  
      ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND;                       
      ts.tv_sec++;                                                    
    }                                                                 
                                                                      
    /* if adjustment is too much negative */                          
    while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) {       
 8003510:	50 43 ff fe 	bgeu r2,r3,8003508 <adjtime+0x1a4>             
 8003514:	5b 83 00 18 	sw (sp+24),r3                                  
 8003518:	5b 84 00 14 	sw (sp+20),r4                                  
      ts.tv_nsec += TOD_NANOSECONDS_PER_SECOND;                       
      ts.tv_sec--;                                                    
    }                                                                 
                                                                      
    _TOD_Set( &ts );                                                  
 800351c:	b9 a0 08 00 	mv r1,r13                                      
 8003520:	f8 00 05 84 	calli 8004b30 <_TOD_Set>                       
                                                                      
  _Thread_Enable_dispatch();                                          
 8003524:	f8 00 0a e4 	calli 80060b4 <_Thread_Enable_dispatch>        
                                                                      
  /* set the user's output */                                         
  if ( olddelta )                                                     
    *olddelta = *delta;                                               
                                                                      
  return 0;                                                           
 8003528:	34 01 00 00 	mvi r1,0                                       
    _TOD_Set( &ts );                                                  
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  /* set the user's output */                                         
  if ( olddelta )                                                     
 800352c:	45 80 ff 9f 	be r12,r0,80033a8 <adjtime+0x44>               
    *olddelta = *delta;                                               
 8003530:	29 62 00 00 	lw r2,(r11+0)                                  
 8003534:	59 82 00 00 	sw (r12+0),r2                                  
 8003538:	29 62 00 04 	lw r2,(r11+4)                                  
 800353c:	59 82 00 04 	sw (r12+4),r2                                  
                                                                      
  return 0;                                                           
}                                                                     
 8003540:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003544:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8003548:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 800354c:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8003550:	37 9c 00 18 	addi sp,sp,24                                  
 8003554:	c3 a0 00 00 	ret                                            
                                                                      

08003170 <clock_gettime>: int clock_gettime( clockid_t clock_id, struct timespec *tp ) {
 8003170:	37 9c ff fc 	addi sp,sp,-4                                  
 8003174:	5b 9d 00 04 	sw (sp+4),ra                                   
  if ( !tp )                                                          
 8003178:	44 40 00 09 	be r2,r0,800319c <clock_gettime+0x2c>          
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( clock_id == CLOCK_REALTIME ) {                                 
 800317c:	34 03 00 01 	mvi r3,1                                       
 8003180:	44 23 00 1b 	be r1,r3,80031ec <clock_gettime+0x7c>          
    _TOD_Get(tp);                                                     
    return 0;                                                         
  }                                                                   
#ifdef CLOCK_MONOTONIC                                                
  if ( clock_id == CLOCK_MONOTONIC ) {                                
 8003184:	34 03 00 04 	mvi r3,4                                       
 8003188:	44 23 00 13 	be r1,r3,80031d4 <clock_gettime+0x64>          <== NEVER TAKEN
    return 0;                                                         
  }                                                                   
#endif                                                                
                                                                      
#ifdef _POSIX_CPUTIME                                                 
  if ( clock_id == CLOCK_PROCESS_CPUTIME ) {                          
 800318c:	34 03 00 02 	mvi r3,2                                       
 8003190:	44 23 00 11 	be r1,r3,80031d4 <clock_gettime+0x64>          
    return 0;                                                         
  }                                                                   
#endif                                                                
                                                                      
#ifdef _POSIX_THREAD_CPUTIME                                          
  if ( clock_id == CLOCK_THREAD_CPUTIME )                             
 8003194:	34 02 00 03 	mvi r2,3                                       
 8003198:	44 22 00 08 	be r1,r2,80031b8 <clock_gettime+0x48>          
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
#endif                                                                
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
 800319c:	f8 00 2b cb 	calli 800e0c8 <__errno>                        
 80031a0:	34 02 00 16 	mvi r2,22                                      
 80031a4:	58 22 00 00 	sw (r1+0),r2                                   
 80031a8:	34 01 ff ff 	mvi r1,-1                                      
                                                                      
  return 0;                                                           
}                                                                     
 80031ac:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80031b0:	37 9c 00 04 	addi sp,sp,4                                   
 80031b4:	c3 a0 00 00 	ret                                            
  }                                                                   
#endif                                                                
                                                                      
#ifdef _POSIX_THREAD_CPUTIME                                          
  if ( clock_id == CLOCK_THREAD_CPUTIME )                             
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
 80031b8:	f8 00 2b c4 	calli 800e0c8 <__errno>                        
 80031bc:	34 02 00 58 	mvi r2,88                                      
 80031c0:	58 22 00 00 	sw (r1+0),r2                                   
 80031c4:	34 01 ff ff 	mvi r1,-1                                      
#endif                                                                
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
                                                                      
  return 0;                                                           
}                                                                     
 80031c8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80031cc:	37 9c 00 04 	addi sp,sp,4                                   
 80031d0:	c3 a0 00 00 	ret                                            
  }                                                                   
#endif                                                                
                                                                      
#ifdef _POSIX_CPUTIME                                                 
  if ( clock_id == CLOCK_PROCESS_CPUTIME ) {                          
    _TOD_Get_uptime_as_timespec( tp );                                
 80031d4:	b8 40 08 00 	mv r1,r2                                       
 80031d8:	f8 00 07 5d 	calli 8004f4c <_TOD_Get_uptime_as_timespec>    
    return 0;                                                         
 80031dc:	34 01 00 00 	mvi r1,0                                       
#endif                                                                
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
                                                                      
  return 0;                                                           
}                                                                     
 80031e0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80031e4:	37 9c 00 04 	addi sp,sp,4                                   
 80031e8:	c3 a0 00 00 	ret                                            
{                                                                     
  if ( !tp )                                                          
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( clock_id == CLOCK_REALTIME ) {                                 
    _TOD_Get(tp);                                                     
 80031ec:	b8 40 08 00 	mv r1,r2                                       
 80031f0:	f8 00 07 32 	calli 8004eb8 <_TOD_Get>                       
    return 0;                                                         
 80031f4:	34 01 00 00 	mvi r1,0                                       
 80031f8:	e3 ff ff ed 	bi 80031ac <clock_gettime+0x3c>                
                                                                      

080031fc <clock_settime>: int clock_settime( clockid_t clock_id, const struct timespec *tp ) {
 80031fc:	37 9c ff fc 	addi sp,sp,-4                                  
 8003200:	5b 9d 00 04 	sw (sp+4),ra                                   
  if ( !tp )                                                          
 8003204:	44 40 00 07 	be r2,r0,8003220 <clock_settime+0x24>          <== NEVER TAKEN
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( clock_id == CLOCK_REALTIME ) {                                 
 8003208:	34 03 00 01 	mvi r3,1                                       
 800320c:	44 23 00 0c 	be r1,r3,800323c <clock_settime+0x40>          
    _Thread_Disable_dispatch();                                       
      _TOD_Set( tp );                                                 
    _Thread_Enable_dispatch();                                        
  }                                                                   
#ifdef _POSIX_CPUTIME                                                 
  else if ( clock_id == CLOCK_PROCESS_CPUTIME )                       
 8003210:	34 02 00 02 	mvi r2,2                                       
 8003214:	44 22 00 1c 	be r1,r2,8003284 <clock_settime+0x88>          
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
#endif                                                                
#ifdef _POSIX_THREAD_CPUTIME                                          
  else if ( clock_id == CLOCK_THREAD_CPUTIME )                        
 8003218:	34 02 00 03 	mvi r2,3                                       
 800321c:	44 22 00 1a 	be r1,r2,8003284 <clock_settime+0x88>          
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
#endif                                                                
  else                                                                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 8003220:	f8 00 2b aa 	calli 800e0c8 <__errno>                        
 8003224:	34 02 00 16 	mvi r2,22                                      
 8003228:	58 22 00 00 	sw (r1+0),r2                                   
 800322c:	34 01 ff ff 	mvi r1,-1                                      
                                                                      
  return 0;                                                           
}                                                                     
 8003230:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003234:	37 9c 00 04 	addi sp,sp,4                                   
 8003238:	c3 a0 00 00 	ret                                            
{                                                                     
  if ( !tp )                                                          
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( clock_id == CLOCK_REALTIME ) {                                 
    if ( tp->tv_sec < TOD_SECONDS_1970_THROUGH_1988 )                 
 800323c:	78 04 08 01 	mvhi r4,0x801                                  
 8003240:	38 84 ea f4 	ori r4,r4,0xeaf4                               
 8003244:	28 43 00 00 	lw r3,(r2+0)                                   
 8003248:	28 81 00 00 	lw r1,(r4+0)                                   
 800324c:	54 61 00 02 	bgu r3,r1,8003254 <clock_settime+0x58>         
 8003250:	e3 ff ff f4 	bi 8003220 <clock_settime+0x24>                
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
 8003254:	78 01 08 02 	mvhi r1,0x802                                  
 8003258:	38 21 08 ac 	ori r1,r1,0x8ac                                
 800325c:	28 23 00 00 	lw r3,(r1+0)                                   
 8003260:	34 63 00 01 	addi r3,r3,1                                   
 8003264:	58 23 00 00 	sw (r1+0),r3                                   
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    _Thread_Disable_dispatch();                                       
      _TOD_Set( tp );                                                 
 8003268:	b8 40 08 00 	mv r1,r2                                       
 800326c:	f8 00 07 55 	calli 8004fc0 <_TOD_Set>                       
    _Thread_Enable_dispatch();                                        
 8003270:	f8 00 0c b5 	calli 8006544 <_Thread_Enable_dispatch>        
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
#endif                                                                
  else                                                                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  return 0;                                                           
 8003274:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 8003278:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800327c:	37 9c 00 04 	addi sp,sp,4                                   
 8003280:	c3 a0 00 00 	ret                                            
  else if ( clock_id == CLOCK_PROCESS_CPUTIME )                       
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
#endif                                                                
#ifdef _POSIX_THREAD_CPUTIME                                          
  else if ( clock_id == CLOCK_THREAD_CPUTIME )                        
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
 8003284:	f8 00 2b 91 	calli 800e0c8 <__errno>                        
 8003288:	34 02 00 58 	mvi r2,88                                      
 800328c:	58 22 00 00 	sw (r1+0),r2                                   
 8003290:	34 01 ff ff 	mvi r1,-1                                      
#endif                                                                
  else                                                                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  return 0;                                                           
}                                                                     
 8003294:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003298:	37 9c 00 04 	addi sp,sp,4                                   
 800329c:	c3 a0 00 00 	ret                                            
                                                                      

08025e0c <killinfo>: int killinfo( pid_t pid, int sig, const union sigval *value ) {
 8025e0c:	37 9c ff d8 	addi sp,sp,-40                                 
 8025e10:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8025e14:	5b 8c 00 18 	sw (sp+24),r12                                 
 8025e18:	5b 8d 00 14 	sw (sp+20),r13                                 
 8025e1c:	5b 8e 00 10 	sw (sp+16),r14                                 
 8025e20:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8025e24:	5b 90 00 08 	sw (sp+8),r16                                  
 8025e28:	5b 9d 00 04 	sw (sp+4),ra                                   
 8025e2c:	b8 20 58 00 	mv r11,r1                                      
 8025e30:	b8 40 60 00 	mv r12,r2                                      
 8025e34:	b8 60 70 00 	mv r14,r3                                      
  POSIX_signals_Siginfo_node  *psiginfo;                              
                                                                      
  /*                                                                  
   *  Only supported for the "calling process" (i.e. this node).      
   */                                                                 
  if ( pid != getpid() )                                              
 8025e38:	fb ff fe d9 	calli 802599c <getpid>                         
 8025e3c:	5c 2b 00 a2 	bne r1,r11,80260c4 <killinfo+0x2b8>            
    rtems_set_errno_and_return_minus_one( ESRCH );                    
                                                                      
  /*                                                                  
   *  Validate the signal passed.                                     
   */                                                                 
  if ( !sig )                                                         
 8025e40:	45 80 00 04 	be r12,r0,8025e50 <killinfo+0x44>              
                                                                      
static inline bool is_valid_signo(                                    
  int signo                                                           
)                                                                     
{                                                                     
  return ((signo) >= 1 && (signo) <= 32 );                            
 8025e44:	35 82 ff ff 	addi r2,r12,-1                                 
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !is_valid_signo(sig) )                                         
 8025e48:	34 01 00 1f 	mvi r1,31                                      
 8025e4c:	50 22 00 0e 	bgeu r1,r2,8025e84 <killinfo+0x78>             
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 8025e50:	fb ff b7 a2 	calli 8013cd8 <__errno>                        
 8025e54:	34 02 00 16 	mvi r2,22                                      
 8025e58:	58 22 00 00 	sw (r1+0),r2                                   
 8025e5c:	34 01 ff ff 	mvi r1,-1                                      
  }                                                                   
                                                                      
  DEBUG_STEP("\n");                                                   
  _Thread_Enable_dispatch();                                          
  return 0;                                                           
}                                                                     
 8025e60:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8025e64:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8025e68:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8025e6c:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8025e70:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8025e74:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8025e78:	2b 90 00 08 	lw r16,(sp+8)                                  
 8025e7c:	37 9c 00 28 	addi sp,sp,40                                  
 8025e80:	c3 a0 00 00 	ret                                            
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  /*                                                                  
   *  If the signal is being ignored, then we are out of here.        
   */                                                                 
  if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN )          
 8025e84:	b5 8c 80 00 	add r16,r12,r12                                
 8025e88:	b6 0c 08 00 	add r1,r16,r12                                 
 8025e8c:	78 0d 08 02 	mvhi r13,0x802                                 
 8025e90:	b4 21 08 00 	add r1,r1,r1                                   
 8025e94:	39 ad 9f 10 	ori r13,r13,0x9f10                             
 8025e98:	b4 21 08 00 	add r1,r1,r1                                   
 8025e9c:	b5 a1 08 00 	add r1,r13,r1                                  
 8025ea0:	28 23 00 08 	lw r3,(r1+8)                                   
 8025ea4:	34 0f 00 01 	mvi r15,1                                      
    return 0;                                                         
 8025ea8:	34 01 00 00 	mvi r1,0                                       
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  /*                                                                  
   *  If the signal is being ignored, then we are out of here.        
   */                                                                 
  if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN )          
 8025eac:	44 6f ff ed 	be r3,r15,8025e60 <killinfo+0x54>              
  /*                                                                  
   *  P1003.1c/Draft 10, p. 33 says that certain signals should always
   *  be directed to the executing thread such as those caused by hardware
   *  faults.                                                         
   */                                                                 
  if ( (sig == SIGFPE) || (sig == SIGILL) || (sig == SIGSEGV ) )      
 8025eb0:	65 83 00 04 	cmpei r3,r12,4                                 
 8025eb4:	65 81 00 08 	cmpei r1,r12,8                                 
 8025eb8:	b8 61 08 00 	or r1,r3,r1                                    
 8025ebc:	5c 20 00 3f 	bne r1,r0,8025fb8 <killinfo+0x1ac>             
 8025ec0:	34 01 00 0b 	mvi r1,11                                      
 8025ec4:	45 81 00 3d 	be r12,r1,8025fb8 <killinfo+0x1ac>             
                                                                      
static inline sigset_t signo_to_mask(                                 
  uint32_t sig                                                        
)                                                                     
{                                                                     
  return 1u << (sig - 1);                                             
 8025ec8:	34 01 00 01 	mvi r1,1                                       
 8025ecc:	fb ff 70 a6 	calli 8002164 <__ashlsi3>                      
                                                                      
  /*                                                                  
   *  Build up a siginfo structure                                    
   */                                                                 
  siginfo = &siginfo_struct;                                          
  siginfo->si_signo = sig;                                            
 8025ed0:	5b 8c 00 20 	sw (sp+32),r12                                 
  siginfo->si_code = SI_USER;                                         
 8025ed4:	5b 8f 00 24 	sw (sp+36),r15                                 
 8025ed8:	b8 20 58 00 	mv r11,r1                                      
  if ( !value ) {                                                     
 8025edc:	45 c0 00 3b 	be r14,r0,8025fc8 <killinfo+0x1bc>             
    siginfo->si_value.sival_int = 0;                                  
  } else {                                                            
    siginfo->si_value = *value;                                       
 8025ee0:	29 c1 00 00 	lw r1,(r14+0)                                  
 8025ee4:	5b 81 00 28 	sw (sp+40),r1                                  
 8025ee8:	78 01 08 02 	mvhi r1,0x802                                  
 8025eec:	38 21 9a 14 	ori r1,r1,0x9a14                               
 8025ef0:	28 22 00 00 	lw r2,(r1+0)                                   
 8025ef4:	34 42 00 01 	addi r2,r2,1                                   
 8025ef8:	58 22 00 00 	sw (r1+0),r2                                   
                                                                      
  /*                                                                  
   *  Is the currently executing thread interested?  If so then it will
   *  get it an execute it as soon as the dispatcher executes.        
   */                                                                 
  the_thread = _Thread_Executing;                                     
 8025efc:	78 01 08 02 	mvhi r1,0x802                                  
 8025f00:	38 21 9e ec 	ori r1,r1,0x9eec                               
 8025f04:	28 21 00 0c 	lw r1,(r1+12)                                  
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
  if ( _POSIX_signals_Is_interested( api, mask ) ) {                  
 8025f08:	28 22 01 2c 	lw r2,(r1+300)                                 
 8025f0c:	28 42 00 cc 	lw r2,(r2+204)                                 
 8025f10:	a4 40 10 00 	not r2,r2                                      
 8025f14:	a1 62 10 00 	and r2,r11,r2                                  
 8025f18:	5c 40 00 18 	bne r2,r0,8025f78 <killinfo+0x16c>             
                                                                      
  /* XXX violation of visibility -- need to define thread queue support */
                                                                      
  the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo;                 
                                                                      
  for ( the_node = the_chain->first ;                                 
 8025f1c:	78 01 08 02 	mvhi r1,0x802                                  
 8025f20:	38 21 a0 9c 	ori r1,r1,0xa09c                               
 8025f24:	28 23 00 00 	lw r3,(r1+0)                                   
 8025f28:	78 04 08 02 	mvhi r4,0x802                                  
 8025f2c:	38 84 a0 a0 	ori r4,r4,0xa0a0                               
 8025f30:	44 64 00 28 	be r3,r4,8025fd0 <killinfo+0x1c4>              
    #endif                                                            
                                                                      
    /*                                                                
     * Is this thread is actually blocked waiting for the signal?     
     */                                                               
    if (the_thread->Wait.option & mask)                               
 8025f34:	28 62 00 30 	lw r2,(r3+48)                                  
                                                                      
  for ( the_node = the_chain->first ;                                 
        !_Chain_Is_tail( the_chain, the_node ) ;                      
        the_node = the_node->next ) {                                 
                                                                      
    the_thread = (Thread_Control *)the_node;                          
 8025f38:	b8 60 08 00 	mv r1,r3                                       
    api = the_thread->API_Extensions[ THREAD_API_POSIX ];             
 8025f3c:	28 65 01 2c 	lw r5,(r3+300)                                 
    #endif                                                            
                                                                      
    /*                                                                
     * Is this thread is actually blocked waiting for the signal?     
     */                                                               
    if (the_thread->Wait.option & mask)                               
 8025f40:	a1 62 10 00 	and r2,r11,r2                                  
 8025f44:	44 40 00 09 	be r2,r0,8025f68 <killinfo+0x15c>              
 8025f48:	e0 00 00 0c 	bi 8025f78 <killinfo+0x16c>                    
                                                                      
  the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo;                 
                                                                      
  for ( the_node = the_chain->first ;                                 
        !_Chain_Is_tail( the_chain, the_node ) ;                      
        the_node = the_node->next ) {                                 
 8025f4c:	28 63 00 00 	lw r3,(r3+0)                                   
                                                                      
  /* XXX violation of visibility -- need to define thread queue support */
                                                                      
  the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo;                 
                                                                      
  for ( the_node = the_chain->first ;                                 
 8025f50:	44 64 00 20 	be r3,r4,8025fd0 <killinfo+0x1c4>              <== ALWAYS TAKEN
    #endif                                                            
                                                                      
    /*                                                                
     * Is this thread is actually blocked waiting for the signal?     
     */                                                               
    if (the_thread->Wait.option & mask)                               
 8025f54:	28 62 00 30 	lw r2,(r3+48)                                  <== NOT EXECUTED
  for ( the_node = the_chain->first ;                                 
        !_Chain_Is_tail( the_chain, the_node ) ;                      
        the_node = the_node->next ) {                                 
                                                                      
    the_thread = (Thread_Control *)the_node;                          
    api = the_thread->API_Extensions[ THREAD_API_POSIX ];             
 8025f58:	28 65 01 2c 	lw r5,(r3+300)                                 <== NOT EXECUTED
                                                                      
  for ( the_node = the_chain->first ;                                 
        !_Chain_Is_tail( the_chain, the_node ) ;                      
        the_node = the_node->next ) {                                 
                                                                      
    the_thread = (Thread_Control *)the_node;                          
 8025f5c:	b8 60 08 00 	mv r1,r3                                       <== NOT EXECUTED
    #endif                                                            
                                                                      
    /*                                                                
     * Is this thread is actually blocked waiting for the signal?     
     */                                                               
    if (the_thread->Wait.option & mask)                               
 8025f60:	a1 62 10 00 	and r2,r11,r2                                  <== NOT EXECUTED
 8025f64:	5c 40 00 05 	bne r2,r0,8025f78 <killinfo+0x16c>             <== NOT EXECUTED
                                                                      
    /*                                                                
     * Is this thread is blocked waiting for another signal but has   
     * not blocked this one?                                          
     */                                                               
    if (~api->signals_blocked & mask)                                 
 8025f68:	28 a5 00 cc 	lw r5,(r5+204)                                 
 8025f6c:	a4 a0 28 00 	not r5,r5                                      
 8025f70:	a1 65 28 00 	and r5,r11,r5                                  
 8025f74:	44 a2 ff f6 	be r5,r2,8025f4c <killinfo+0x140>              
                                                                      
  /*                                                                  
   *  Returns true if the signal was synchronously given to a thread  
   *  blocked waiting for the signal.                                 
   */                                                                 
  if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) {  
 8025f78:	b9 80 10 00 	mv r2,r12                                      
 8025f7c:	37 83 00 20 	addi r3,sp,32                                  
 8025f80:	f8 00 00 67 	calli 802611c <_POSIX_signals_Unblock_thread>  
 8025f84:	5c 20 00 0a 	bne r1,r0,8025fac <killinfo+0x1a0>             
   *  We may have woken up a thread but we definitely need to post the
   *  signal to the process wide information set.                     
   */                                                                 
  _POSIX_signals_Set_process_signals( mask );                         
                                                                      
  if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) {       
 8025f88:	b6 0c 60 00 	add r12,r16,r12                                
 8025f8c:	b5 8c 60 00 	add r12,r12,r12                                
                                                                      
  /*                                                                  
   *  We may have woken up a thread but we definitely need to post the
   *  signal to the process wide information set.                     
   */                                                                 
  _POSIX_signals_Set_process_signals( mask );                         
 8025f90:	b9 60 08 00 	mv r1,r11                                      
                                                                      
  if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) {       
 8025f94:	b5 8c 60 00 	add r12,r12,r12                                
                                                                      
  /*                                                                  
   *  We may have woken up a thread but we definitely need to post the
   *  signal to the process wide information set.                     
   */                                                                 
  _POSIX_signals_Set_process_signals( mask );                         
 8025f98:	f8 00 00 56 	calli 80260f0 <_POSIX_signals_Set_process_signals>
                                                                      
  if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) {       
 8025f9c:	b5 ac 68 00 	add r13,r13,r12                                
 8025fa0:	29 a2 00 00 	lw r2,(r13+0)                                  
 8025fa4:	34 01 00 02 	mvi r1,2                                       
 8025fa8:	44 41 00 37 	be r2,r1,8026084 <killinfo+0x278>              
                                                                      
    _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 
  }                                                                   
                                                                      
  DEBUG_STEP("\n");                                                   
  _Thread_Enable_dispatch();                                          
 8025fac:	fb ff 99 e2 	calli 800c734 <_Thread_Enable_dispatch>        
  return 0;                                                           
 8025fb0:	34 01 00 00 	mvi r1,0                                       
 8025fb4:	e3 ff ff ab 	bi 8025e60 <killinfo+0x54>                     
   *  P1003.1c/Draft 10, p. 33 says that certain signals should always
   *  be directed to the executing thread such as those caused by hardware
   *  faults.                                                         
   */                                                                 
  if ( (sig == SIGFPE) || (sig == SIGILL) || (sig == SIGSEGV ) )      
      return pthread_kill( pthread_self(), sig );                     
 8025fb8:	f8 00 01 02 	calli 80263c0 <pthread_self>                   
 8025fbc:	b9 80 10 00 	mv r2,r12                                      
 8025fc0:	f8 00 00 b4 	calli 8026290 <pthread_kill>                   
 8025fc4:	e3 ff ff a7 	bi 8025e60 <killinfo+0x54>                     
   */                                                                 
  siginfo = &siginfo_struct;                                          
  siginfo->si_signo = sig;                                            
  siginfo->si_code = SI_USER;                                         
  if ( !value ) {                                                     
    siginfo->si_value.sival_int = 0;                                  
 8025fc8:	5b 80 00 28 	sw (sp+40),r0                                  
 8025fcc:	e3 ff ff c7 	bi 8025ee8 <killinfo+0xdc>                     
   *  NOTES:                                                          
   *                                                                  
   *    + rtems internal threads do not receive signals.              
   */                                                                 
  interested = NULL;                                                  
  interested_priority = PRIORITY_MAXIMUM + 1;                         
 8025fd0:	78 01 08 02 	mvhi r1,0x802                                  
 8025fd4:	38 21 90 c0 	ori r1,r1,0x90c0                               
 8025fd8:	40 26 00 00 	lbu r6,(r1+0)                                  
 */                                                                   
                                                                      
#define _POSIX_signals_Is_interested( _api, _mask ) \                 
  ( ~(_api)->signals_blocked & (_mask) )                              
                                                                      
int killinfo(                                                         
 8025fdc:	78 01 08 02 	mvhi r1,0x802                                  
 8025fe0:	38 21 99 b0 	ori r1,r1,0x99b0                               
   *  NOTES:                                                          
   *                                                                  
   *    + rtems internal threads do not receive signals.              
   */                                                                 
  interested = NULL;                                                  
  interested_priority = PRIORITY_MAXIMUM + 1;                         
 8025fe4:	78 08 08 02 	mvhi r8,0x802                                  
 */                                                                   
                                                                      
#define _POSIX_signals_Is_interested( _api, _mask ) \                 
  ( ~(_api)->signals_blocked & (_mask) )                              
                                                                      
int killinfo(                                                         
 8025fe8:	34 2a 00 10 	addi r10,r1,16                                 
   *  NOTES:                                                          
   *                                                                  
   *    + rtems internal threads do not receive signals.              
   */                                                                 
  interested = NULL;                                                  
  interested_priority = PRIORITY_MAXIMUM + 1;                         
 8025fec:	34 c6 00 01 	addi r6,r6,1                                   
 8025ff0:	39 08 99 b8 	ori r8,r8,0x99b8                               
   *                                                                  
   *  NOTES:                                                          
   *                                                                  
   *    + rtems internal threads do not receive signals.              
   */                                                                 
  interested = NULL;                                                  
 8025ff4:	34 01 00 00 	mvi r1,0                                       
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_interruptible_by_signal (        
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_INTERRUPTIBLE_BY_SIGNAL);              
 8025ff8:	78 0f 10 00 	mvhi r15,0x1000                                
  for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) {
                                                                      
    /*                                                                
     *  This can occur when no one is interested and an API is not configured.
     */                                                               
    if ( !_Objects_Information_table[ the_api ] )                     
 8025ffc:	29 02 00 00 	lw r2,(r8+0)                                   
 8026000:	44 40 00 1d 	be r2,r0,8026074 <killinfo+0x268>              <== NEVER TAKEN
      continue;                                                       
                                                                      
    the_info = _Objects_Information_table[ the_api ][ 1 ];            
 8026004:	28 42 00 04 	lw r2,(r2+4)                                   
       */                                                             
      if ( !the_info )                                                
        continue;                                                     
    #endif                                                            
                                                                      
    maximum = the_info->maximum;                                      
 8026008:	2c 47 00 10 	lhu r7,(r2+16)                                 
    object_table = the_info->local_table;                             
 802600c:	28 44 00 1c 	lw r4,(r2+28)                                  
                                                                      
    for ( index = 1 ; index <= maximum ; index++ ) {                  
 8026010:	44 e0 00 19 	be r7,r0,8026074 <killinfo+0x268>              
 8026014:	34 03 00 01 	mvi r3,1                                       
      the_thread = (Thread_Control *) object_table[ index ];          
 8026018:	28 82 00 04 	lw r2,(r4+4)                                   
                                                                      
      if ( !the_thread )                                              
 802601c:	44 40 00 13 	be r2,r0,8026068 <killinfo+0x25c>              
                                                                      
      /*                                                              
       *  If this thread is of lower priority than the interested thread,
       *  go on to the next thread.                                   
       */                                                             
      if ( the_thread->current_priority > interested_priority )       
 8026020:	28 45 00 14 	lw r5,(r2+20)                                  
 8026024:	54 a6 00 11 	bgu r5,r6,8026068 <killinfo+0x25c>             
      #if defined(RTEMS_DEBUG)                                        
        if ( !api )                                                   
          continue;                                                   
      #endif                                                          
                                                                      
      if ( !_POSIX_signals_Is_interested( api, mask ) )               
 8026028:	28 49 01 2c 	lw r9,(r2+300)                                 
 802602c:	29 29 00 cc 	lw r9,(r9+204)                                 
 8026030:	a5 20 48 00 	not r9,r9                                      
 8026034:	a1 69 48 00 	and r9,r11,r9                                  
 8026038:	45 20 00 0c 	be r9,r0,8026068 <killinfo+0x25c>              
       *                                                              
       *  NOTE: We initialized interested_priority to PRIORITY_MAXIMUM + 1
       *        so we never have to worry about deferencing a NULL    
       *        interested thread.                                    
       */                                                             
      if ( the_thread->current_priority < interested_priority ) {     
 802603c:	54 c5 00 09 	bgu r6,r5,8026060 <killinfo+0x254>             
       *  and blocking interruptibutable by signal.                   
       *                                                              
       *  If the interested thread is ready, don't think about changing.
       */                                                             
                                                                      
      if ( !_States_Is_ready( interested->current_state ) ) {         
 8026040:	28 29 00 10 	lw r9,(r1+16)                                  
 8026044:	45 20 00 09 	be r9,r0,8026068 <killinfo+0x25c>              <== NEVER TAKEN
        /* preferred ready over blocked */                            
        DEBUG_STEP("5");                                              
        if ( _States_Is_ready( the_thread->current_state ) ) {        
 8026048:	28 4e 00 10 	lw r14,(r2+16)                                 
 802604c:	45 c0 00 05 	be r14,r0,8026060 <killinfo+0x254>             
 8026050:	a1 2f 48 00 	and r9,r9,r15                                  
          continue;                                                   
        }                                                             
                                                                      
        DEBUG_STEP("6");                                              
        /* prefer blocked/interruptible over blocked/not interruptible */
        if ( !_States_Is_interruptible_by_signal(interested->current_state) ) {
 8026054:	5d 20 00 05 	bne r9,r0,8026068 <killinfo+0x25c>             
 8026058:	a1 cf 70 00 	and r14,r14,r15                                
          DEBUG_STEP("7");                                            
          if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) {
 802605c:	45 c9 00 03 	be r14,r9,8026068 <killinfo+0x25c>             
       */                                                             
                                                                      
      if ( !_States_Is_ready( interested->current_state ) ) {         
        /* preferred ready over blocked */                            
        DEBUG_STEP("5");                                              
        if ( _States_Is_ready( the_thread->current_state ) ) {        
 8026060:	b8 a0 30 00 	mv r6,r5                                       
 8026064:	b8 40 08 00 	mv r1,r2                                       
    #endif                                                            
                                                                      
    maximum = the_info->maximum;                                      
    object_table = the_info->local_table;                             
                                                                      
    for ( index = 1 ; index <= maximum ; index++ ) {                  
 8026068:	34 63 00 01 	addi r3,r3,1                                   
 802606c:	34 84 00 04 	addi r4,r4,4                                   
 8026070:	50 e3 ff ea 	bgeu r7,r3,8026018 <killinfo+0x20c>            
 8026074:	35 08 00 04 	addi r8,r8,4                                   
   *    + rtems internal threads do not receive signals.              
   */                                                                 
  interested = NULL;                                                  
  interested_priority = PRIORITY_MAXIMUM + 1;                         
                                                                      
  for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) {
 8026078:	5d 0a ff e1 	bne r8,r10,8025ffc <killinfo+0x1f0>            
        }                                                             
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( interested ) {                                                 
 802607c:	5c 20 ff bf 	bne r1,r0,8025f78 <killinfo+0x16c>             
 8026080:	e3 ff ff c2 	bi 8025f88 <killinfo+0x17c>                    
  _POSIX_signals_Set_process_signals( mask );                         
                                                                      
  if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) {       
                                                                      
    psiginfo = (POSIX_signals_Siginfo_node *)                         
               _Chain_Get( &_POSIX_signals_Inactive_siginfo );        
 8026084:	78 01 08 02 	mvhi r1,0x802                                  
 8026088:	38 21 a0 90 	ori r1,r1,0xa090                               
 802608c:	fb ff 92 05 	calli 800a8a0 <_Chain_Get>                     
 8026090:	b8 20 10 00 	mv r2,r1                                       
    if ( !psiginfo ) {                                                
 8026094:	44 20 00 11 	be r1,r0,80260d8 <killinfo+0x2cc>              
      _Thread_Enable_dispatch();                                      
      rtems_set_errno_and_return_minus_one( EAGAIN );                 
    }                                                                 
                                                                      
    psiginfo->Info = *siginfo;                                        
 8026098:	2b 83 00 20 	lw r3,(sp+32)                                  
                                                                      
    _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 
 802609c:	78 01 08 02 	mvhi r1,0x802                                  
 80260a0:	38 21 a1 08 	ori r1,r1,0xa108                               
    if ( !psiginfo ) {                                                
      _Thread_Enable_dispatch();                                      
      rtems_set_errno_and_return_minus_one( EAGAIN );                 
    }                                                                 
                                                                      
    psiginfo->Info = *siginfo;                                        
 80260a4:	58 43 00 08 	sw (r2+8),r3                                   
 80260a8:	2b 83 00 24 	lw r3,(sp+36)                                  
                                                                      
    _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 
 80260ac:	b5 81 08 00 	add r1,r12,r1                                  
    if ( !psiginfo ) {                                                
      _Thread_Enable_dispatch();                                      
      rtems_set_errno_and_return_minus_one( EAGAIN );                 
    }                                                                 
                                                                      
    psiginfo->Info = *siginfo;                                        
 80260b0:	58 43 00 0c 	sw (r2+12),r3                                  
 80260b4:	2b 83 00 28 	lw r3,(sp+40)                                  
 80260b8:	58 43 00 10 	sw (r2+16),r3                                  
                                                                      
    _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 
 80260bc:	fb ff 91 e3 	calli 800a848 <_Chain_Append>                  
 80260c0:	e3 ff ff bb 	bi 8025fac <killinfo+0x1a0>                    
                                                                      
  /*                                                                  
   *  Only supported for the "calling process" (i.e. this node).      
   */                                                                 
  if ( pid != getpid() )                                              
    rtems_set_errno_and_return_minus_one( ESRCH );                    
 80260c4:	fb ff b7 05 	calli 8013cd8 <__errno>                        
 80260c8:	34 02 00 03 	mvi r2,3                                       
 80260cc:	58 22 00 00 	sw (r1+0),r2                                   
 80260d0:	34 01 ff ff 	mvi r1,-1                                      
 80260d4:	e3 ff ff 63 	bi 8025e60 <killinfo+0x54>                     
  if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) {       
                                                                      
    psiginfo = (POSIX_signals_Siginfo_node *)                         
               _Chain_Get( &_POSIX_signals_Inactive_siginfo );        
    if ( !psiginfo ) {                                                
      _Thread_Enable_dispatch();                                      
 80260d8:	fb ff 99 97 	calli 800c734 <_Thread_Enable_dispatch>        
      rtems_set_errno_and_return_minus_one( EAGAIN );                 
 80260dc:	fb ff b6 ff 	calli 8013cd8 <__errno>                        
 80260e0:	34 02 00 0b 	mvi r2,11                                      
 80260e4:	58 22 00 00 	sw (r1+0),r2                                   
 80260e8:	34 01 ff ff 	mvi r1,-1                                      
 80260ec:	e3 ff ff 5d 	bi 8025e60 <killinfo+0x54>                     
                                                                      

08008e7c <mq_open>: int oflag, ... /* mode_t mode, */ /* struct mq_attr attr */ ) {
 8008e7c:	37 9c ff b8 	addi sp,sp,-72                                 
 8008e80:	5b 8b 00 20 	sw (sp+32),r11                                 
 8008e84:	5b 8c 00 1c 	sw (sp+28),r12                                 
 8008e88:	5b 8d 00 18 	sw (sp+24),r13                                 
 8008e8c:	5b 8e 00 14 	sw (sp+20),r14                                 
 8008e90:	5b 8f 00 10 	sw (sp+16),r15                                 
 8008e94:	5b 90 00 0c 	sw (sp+12),r16                                 
 8008e98:	5b 91 00 08 	sw (sp+8),r17                                  
 8008e9c:	5b 9d 00 04 	sw (sp+4),ra                                   
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
 8008ea0:	78 09 08 02 	mvhi r9,0x802                                  
 8008ea4:	39 29 9d bc 	ori r9,r9,0x9dbc                               
 8008ea8:	29 2a 00 00 	lw r10,(r9+0)                                  
 8008eac:	b8 20 80 00 	mv r16,r1                                      
 8008eb0:	5b 82 00 30 	sw (sp+48),r2                                  
 8008eb4:	35 4a 00 01 	addi r10,r10,1                                 
 8008eb8:	5b 83 00 34 	sw (sp+52),r3                                  
 8008ebc:	5b 84 00 38 	sw (sp+56),r4                                  
 8008ec0:	5b 85 00 3c 	sw (sp+60),r5                                  
 8008ec4:	5b 86 00 40 	sw (sp+64),r6                                  
 8008ec8:	5b 87 00 44 	sw (sp+68),r7                                  
 8008ecc:	5b 88 00 48 	sw (sp+72),r8                                  
 8008ed0:	b8 40 68 00 	mv r13,r2                                      
 8008ed4:	59 2a 00 00 	sw (r9+0),r10                                  
  POSIX_Message_queue_Control_fd *the_mq_fd;                          
  Objects_Locations               location;                           
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( oflag & O_CREAT ) {                                            
 8008ed8:	20 4f 02 00 	andi r15,r2,0x200                              
  /* struct mq_attr  attr */                                          
)                                                                     
{                                                                     
  va_list                         arg;                                
  mode_t                          mode;                               
  struct mq_attr                 *attr = NULL;                        
 8008edc:	34 11 00 00 	mvi r17,0                                      
  POSIX_Message_queue_Control_fd *the_mq_fd;                          
  Objects_Locations               location;                           
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( oflag & O_CREAT ) {                                            
 8008ee0:	5d e0 00 38 	bne r15,r0,8008fc0 <mq_open+0x144>             
                                                                      
RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *                 
  _POSIX_Message_queue_Allocate_fd( void )                            
{                                                                     
  return (POSIX_Message_queue_Control_fd *)                           
    _Objects_Allocate( &_POSIX_Message_queue_Information_fds );       
 8008ee4:	78 0c 08 02 	mvhi r12,0x802                                 
 8008ee8:	39 8c a2 28 	ori r12,r12,0xa228                             
 8008eec:	b9 80 08 00 	mv r1,r12                                      
 8008ef0:	f8 00 0c 0f 	calli 800bf2c <_Objects_Allocate>              
 8008ef4:	b8 20 58 00 	mv r11,r1                                      
    attr = (struct mq_attr *) va_arg( arg, struct mq_attr * );        
    va_end(arg);                                                      
  }                                                                   
                                                                      
  the_mq_fd = _POSIX_Message_queue_Allocate_fd();                     
  if ( !the_mq_fd ) {                                                 
 8008ef8:	44 20 00 39 	be r1,r0,8008fdc <mq_open+0x160>               <== NEVER TAKEN
    _Thread_Enable_dispatch();                                        
    rtems_set_errno_and_return_minus_one( ENFILE );                   
  }                                                                   
  the_mq_fd->oflag = oflag;                                           
 8008efc:	58 2d 00 14 	sw (r1+20),r13                                 
                                                                      
  status = _POSIX_Message_queue_Name_to_id( name, &the_mq_id );       
 8008f00:	37 82 00 2c 	addi r2,sp,44                                  
 8008f04:	ba 00 08 00 	mv r1,r16                                      
 8008f08:	f8 00 1f 2e 	calli 8010bc0 <_POSIX_Message_queue_Name_to_id>
 8008f0c:	b8 20 70 00 	mv r14,r1                                      
   *  If the name to id translation worked, then the message queue exists
   *  and we can just return a pointer to the id.  Otherwise we may   
   *  need to check to see if this is a "message queue does not exist"
   *  or some other miscellaneous error on the name.                  
   */                                                                 
  if ( status ) {                                                     
 8008f10:	5c 20 00 22 	bne r1,r0,8008f98 <mq_open+0x11c>              
                                                                      
  } else {                /* name -> ID translation succeeded */      
    /*                                                                
     * Check for existence with creation.                             
     */                                                               
    if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {       
 8008f14:	21 ad 0a 00 	andi r13,r13,0xa00                             
 8008f18:	34 01 0a 00 	mvi r1,2560                                    
 8008f1c:	45 a1 00 36 	be r13,r1,8008ff4 <mq_open+0x178>              
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (POSIX_Message_queue_Control *)                              
    _Objects_Get( &_POSIX_Message_queue_Information, id, location );  
 8008f20:	2b 82 00 2c 	lw r2,(sp+44)                                  
 8008f24:	78 01 08 02 	mvhi r1,0x802                                  
 8008f28:	37 83 00 24 	addi r3,sp,36                                  
 8008f2c:	38 21 a0 9c 	ori r1,r1,0xa09c                               
 8008f30:	f8 00 0d 87 	calli 800c54c <_Objects_Get>                   
    /*                                                                
     * In this case we need to do an ID->pointer conversion to        
     * check the mode.                                                
     */                                                               
    the_mq = _POSIX_Message_queue_Get( the_mq_id, &location );        
    the_mq->open_count += 1;                                          
 8008f34:	28 24 00 18 	lw r4,(r1+24)                                  
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  const char          *name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 8008f38:	2d 62 00 0a 	lhu r2,(r11+10)                                
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 8008f3c:	29 83 00 1c 	lw r3,(r12+28)                                 
 8008f40:	34 84 00 01 	addi r4,r4,1                                   
 8008f44:	b4 42 10 00 	add r2,r2,r2                                   
 8008f48:	58 24 00 18 	sw (r1+24),r4                                  
 8008f4c:	b4 42 10 00 	add r2,r2,r2                                   
                                                                      
    /*                                                                
     * In this case we need to do an ID->pointer conversion to        
     * check the mode.                                                
     */                                                               
    the_mq = _POSIX_Message_queue_Get( the_mq_id, &location );        
 8008f50:	5b 81 00 28 	sw (sp+40),r1                                  
    the_mq->open_count += 1;                                          
    the_mq_fd->Queue = the_mq;                                        
 8008f54:	59 61 00 10 	sw (r11+16),r1                                 
 8008f58:	b4 62 10 00 	add r2,r3,r2                                   
 8008f5c:	58 4b 00 00 	sw (r2+0),r11                                  
    the_object                                                        
  );                                                                  
                                                                      
  #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)                 
    /* ASSERT: information->is_string */                              
    the_object->name.name_p = name;                                   
 8008f60:	59 60 00 0c 	sw (r11+12),r0                                 
    _Objects_Open_string(                                             
      &_POSIX_Message_queue_Information_fds,                          
      &the_mq_fd->Object,                                             
      NULL                                                            
    );                                                                
    _Thread_Enable_dispatch();                                        
 8008f64:	f8 00 10 28 	calli 800d004 <_Thread_Enable_dispatch>        
    _Thread_Enable_dispatch();                                        
 8008f68:	f8 00 10 27 	calli 800d004 <_Thread_Enable_dispatch>        
    return (mqd_t)the_mq_fd->Object.id;                               
 8008f6c:	29 61 00 08 	lw r1,(r11+8)                                  
  );                                                                  
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return (mqd_t) the_mq_fd->Object.id;                                
}                                                                     
 8008f70:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8008f74:	2b 8b 00 20 	lw r11,(sp+32)                                 
 8008f78:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 8008f7c:	2b 8d 00 18 	lw r13,(sp+24)                                 
 8008f80:	2b 8e 00 14 	lw r14,(sp+20)                                 
 8008f84:	2b 8f 00 10 	lw r15,(sp+16)                                 
 8008f88:	2b 90 00 0c 	lw r16,(sp+12)                                 
 8008f8c:	2b 91 00 08 	lw r17,(sp+8)                                  
 8008f90:	37 9c 00 48 	addi sp,sp,72                                  
 8008f94:	c3 a0 00 00 	ret                                            
  if ( status ) {                                                     
    /*                                                                
     * Unless provided a valid name that did not already exist        
     * and we are willing to create then it is an error.              
     */                                                               
    if ( !( status == ENOENT && (oflag & O_CREAT) ) ) {               
 8008f98:	34 01 00 02 	mvi r1,2                                       
 8008f9c:	45 c1 00 1f 	be r14,r1,8009018 <mq_open+0x19c>              
                                                                      
RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Free_fd (              
  POSIX_Message_queue_Control_fd *the_mq_fd                           
)                                                                     
{                                                                     
  _Objects_Free( &_POSIX_Message_queue_Information_fds, &the_mq_fd->Object );
 8008fa0:	b9 80 08 00 	mv r1,r12                                      
 8008fa4:	b9 60 10 00 	mv r2,r11                                      
 8008fa8:	f8 00 0c f1 	calli 800c36c <_Objects_Free>                  
      _POSIX_Message_queue_Free_fd( the_mq_fd );                      
      _Thread_Enable_dispatch();                                      
 8008fac:	f8 00 10 16 	calli 800d004 <_Thread_Enable_dispatch>        
      rtems_set_errno_and_return_minus_one_cast( status, mqd_t );     
 8008fb0:	f8 00 30 4d 	calli 80150e4 <__errno>                        
 8008fb4:	58 2e 00 00 	sw (r1+0),r14                                  
 8008fb8:	34 01 ff ff 	mvi r1,-1                                      
 8008fbc:	e3 ff ff ed 	bi 8008f70 <mq_open+0xf4>                      
                                                                      
RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *                 
  _POSIX_Message_queue_Allocate_fd( void )                            
{                                                                     
  return (POSIX_Message_queue_Control_fd *)                           
    _Objects_Allocate( &_POSIX_Message_queue_Information_fds );       
 8008fc0:	78 0c 08 02 	mvhi r12,0x802                                 
 8008fc4:	39 8c a2 28 	ori r12,r12,0xa228                             
 8008fc8:	b9 80 08 00 	mv r1,r12                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( oflag & O_CREAT ) {                                            
    va_start(arg, oflag);                                             
    mode = (mode_t) va_arg( arg, unsigned int );                      
    attr = (struct mq_attr *) va_arg( arg, struct mq_attr * );        
 8008fcc:	2b 91 00 38 	lw r17,(sp+56)                                 
 8008fd0:	f8 00 0b d7 	calli 800bf2c <_Objects_Allocate>              
 8008fd4:	b8 20 58 00 	mv r11,r1                                      
    va_end(arg);                                                      
  }                                                                   
                                                                      
  the_mq_fd = _POSIX_Message_queue_Allocate_fd();                     
  if ( !the_mq_fd ) {                                                 
 8008fd8:	5c 20 ff c9 	bne r1,r0,8008efc <mq_open+0x80>               
    _Thread_Enable_dispatch();                                        
 8008fdc:	f8 00 10 0a 	calli 800d004 <_Thread_Enable_dispatch>        
    rtems_set_errno_and_return_minus_one( ENFILE );                   
 8008fe0:	f8 00 30 41 	calli 80150e4 <__errno>                        
 8008fe4:	34 02 00 17 	mvi r2,23                                      
 8008fe8:	58 22 00 00 	sw (r1+0),r2                                   
 8008fec:	34 01 ff ff 	mvi r1,-1                                      
 8008ff0:	e3 ff ff e0 	bi 8008f70 <mq_open+0xf4>                      
                                                                      
RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Free_fd (              
  POSIX_Message_queue_Control_fd *the_mq_fd                           
)                                                                     
{                                                                     
  _Objects_Free( &_POSIX_Message_queue_Information_fds, &the_mq_fd->Object );
 8008ff4:	b9 60 10 00 	mv r2,r11                                      
 8008ff8:	b9 80 08 00 	mv r1,r12                                      
 8008ffc:	f8 00 0c dc 	calli 800c36c <_Objects_Free>                  
    /*                                                                
     * Check for existence with creation.                             
     */                                                               
    if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {       
      _POSIX_Message_queue_Free_fd( the_mq_fd );                      
      _Thread_Enable_dispatch();                                      
 8009000:	f8 00 10 01 	calli 800d004 <_Thread_Enable_dispatch>        
      rtems_set_errno_and_return_minus_one_cast( EEXIST, mqd_t );     
 8009004:	f8 00 30 38 	calli 80150e4 <__errno>                        
 8009008:	34 02 00 11 	mvi r2,17                                      
 800900c:	58 22 00 00 	sw (r1+0),r2                                   
 8009010:	34 01 ff ff 	mvi r1,-1                                      
 8009014:	e3 ff ff d7 	bi 8008f70 <mq_open+0xf4>                      
  if ( status ) {                                                     
    /*                                                                
     * Unless provided a valid name that did not already exist        
     * and we are willing to create then it is an error.              
     */                                                               
    if ( !( status == ENOENT && (oflag & O_CREAT) ) ) {               
 8009018:	45 e0 ff e2 	be r15,r0,8008fa0 <mq_open+0x124>              <== NEVER TAKEN
                                                                      
  /*                                                                  
   *  At this point, the message queue does not exist and everything has been
   *  checked. We should go ahead and create a message queue.         
   */                                                                 
  status = _POSIX_Message_queue_Create_support(                       
 800901c:	34 02 00 01 	mvi r2,1                                       
 8009020:	ba 00 08 00 	mv r1,r16                                      
 8009024:	ba 20 18 00 	mv r3,r17                                      
 8009028:	37 84 00 28 	addi r4,sp,40                                  
 800902c:	f8 00 1e 77 	calli 8010a08 <_POSIX_Message_queue_Create_support>
  );                                                                  
                                                                      
  /*                                                                  
   * errno was set by Create_support, so don't set it again.          
   */                                                                 
  if ( status == -1 ) {                                               
 8009030:	34 02 ff ff 	mvi r2,-1                                      
 8009034:	44 22 00 0d 	be r1,r2,8009068 <mq_open+0x1ec>               
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  const char          *name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 8009038:	2d 61 00 0a 	lhu r1,(r11+10)                                
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 800903c:	29 82 00 1c 	lw r2,(r12+28)                                 
    _POSIX_Message_queue_Free_fd( the_mq_fd );                        
    _Thread_Enable_dispatch();                                        
    return (mqd_t) -1;                                                
  }                                                                   
                                                                      
  the_mq_fd->Queue = the_mq;                                          
 8009040:	2b 83 00 28 	lw r3,(sp+40)                                  
 8009044:	b4 21 08 00 	add r1,r1,r1                                   
 8009048:	b4 21 08 00 	add r1,r1,r1                                   
 800904c:	b4 41 08 00 	add r1,r2,r1                                   
 8009050:	59 63 00 10 	sw (r11+16),r3                                 
 8009054:	58 2b 00 00 	sw (r1+0),r11                                  
    the_object                                                        
  );                                                                  
                                                                      
  #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)                 
    /* ASSERT: information->is_string */                              
    the_object->name.name_p = name;                                   
 8009058:	59 60 00 0c 	sw (r11+12),r0                                 
    &_POSIX_Message_queue_Information_fds,                            
    &the_mq_fd->Object,                                               
    NULL                                                              
  );                                                                  
                                                                      
  _Thread_Enable_dispatch();                                          
 800905c:	f8 00 0f ea 	calli 800d004 <_Thread_Enable_dispatch>        
                                                                      
  return (mqd_t) the_mq_fd->Object.id;                                
 8009060:	29 61 00 08 	lw r1,(r11+8)                                  
 8009064:	e3 ff ff c3 	bi 8008f70 <mq_open+0xf4>                      
 8009068:	b9 80 08 00 	mv r1,r12                                      
 800906c:	b9 60 10 00 	mv r2,r11                                      
 8009070:	f8 00 0c bf 	calli 800c36c <_Objects_Free>                  
  /*                                                                  
   * errno was set by Create_support, so don't set it again.          
   */                                                                 
  if ( status == -1 ) {                                               
    _POSIX_Message_queue_Free_fd( the_mq_fd );                        
    _Thread_Enable_dispatch();                                        
 8009074:	f8 00 0f e4 	calli 800d004 <_Thread_Enable_dispatch>        
    return (mqd_t) -1;                                                
 8009078:	34 01 ff ff 	mvi r1,-1                                      
 800907c:	e3 ff ff bd 	bi 8008f70 <mq_open+0xf4>                      
                                                                      

08007a80 <pthread_attr_setschedpolicy>: pthread_attr_t *attr, int policy ) { if ( !attr || !attr->is_initialized ) return EINVAL;
 8007a80:	34 03 00 16 	mvi r3,22                                      
int pthread_attr_setschedpolicy(                                      
  pthread_attr_t  *attr,                                              
  int              policy                                             
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
 8007a84:	44 20 00 09 	be r1,r0,8007aa8 <pthread_attr_setschedpolicy+0x28>
 8007a88:	28 24 00 00 	lw r4,(r1+0)                                   
 8007a8c:	44 80 00 07 	be r4,r0,8007aa8 <pthread_attr_setschedpolicy+0x28>
    return EINVAL;                                                    
                                                                      
  switch ( policy ) {                                                 
 8007a90:	48 02 00 05 	bg r0,r2,8007aa4 <pthread_attr_setschedpolicy+0x24>
 8007a94:	34 03 00 02 	mvi r3,2                                       
 8007a98:	4c 62 00 06 	bge r3,r2,8007ab0 <pthread_attr_setschedpolicy+0x30>
 8007a9c:	34 03 00 04 	mvi r3,4                                       
 8007aa0:	44 43 00 04 	be r2,r3,8007ab0 <pthread_attr_setschedpolicy+0x30><== ALWAYS TAKEN
    case SCHED_SPORADIC:                                              
      attr->schedpolicy = policy;                                     
      return 0;                                                       
                                                                      
    default:                                                          
      return ENOTSUP;                                                 
 8007aa4:	34 03 00 86 	mvi r3,134                                     
  }                                                                   
}                                                                     
 8007aa8:	b8 60 08 00 	mv r1,r3                                       
 8007aac:	c3 a0 00 00 	ret                                            
    case SCHED_OTHER:                                                 
    case SCHED_FIFO:                                                  
    case SCHED_RR:                                                    
    case SCHED_SPORADIC:                                              
      attr->schedpolicy = policy;                                     
      return 0;                                                       
 8007ab0:	34 03 00 00 	mvi r3,0                                       
  switch ( policy ) {                                                 
    case SCHED_OTHER:                                                 
    case SCHED_FIFO:                                                  
    case SCHED_RR:                                                    
    case SCHED_SPORADIC:                                              
      attr->schedpolicy = policy;                                     
 8007ab4:	58 22 00 14 	sw (r1+20),r2                                  
      return 0;                                                       
                                                                      
    default:                                                          
      return ENOTSUP;                                                 
  }                                                                   
}                                                                     
 8007ab8:	b8 60 08 00 	mv r1,r3                                       
 8007abc:	c3 a0 00 00 	ret                                            
                                                                      

080037dc <pthread_barrier_init>: int pthread_barrier_init( pthread_barrier_t *barrier, const pthread_barrierattr_t *attr, unsigned int count ) {
 80037dc:	37 9c ff d8 	addi sp,sp,-40                                 
 80037e0:	5b 8b 00 14 	sw (sp+20),r11                                 
 80037e4:	5b 8c 00 10 	sw (sp+16),r12                                 
 80037e8:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80037ec:	5b 8e 00 08 	sw (sp+8),r14                                  
 80037f0:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
  /*                                                                  
   *  Error check parameters                                          
   */                                                                 
  if ( !barrier )                                                     
    return EINVAL;                                                    
 80037f4:	34 04 00 16 	mvi r4,22                                      
int pthread_barrier_init(                                             
  pthread_barrier_t           *barrier,                               
  const pthread_barrierattr_t *attr,                                  
  unsigned int                 count                                  
)                                                                     
{                                                                     
 80037f8:	b8 20 58 00 	mv r11,r1                                      
  const pthread_barrierattr_t   *the_attr;                            
                                                                      
  /*                                                                  
   *  Error check parameters                                          
   */                                                                 
  if ( !barrier )                                                     
 80037fc:	44 20 00 08 	be r1,r0,800381c <pthread_barrier_init+0x40>   
    return EINVAL;                                                    
                                                                      
  if ( count == 0 )                                                   
 8003800:	44 60 00 07 	be r3,r0,800381c <pthread_barrier_init+0x40>   
    return EINVAL;                                                    
                                                                      
  /*                                                                  
   * If the user passed in NULL, use the default attributes           
   */                                                                 
  if ( attr ) {                                                       
 8003804:	44 40 00 34 	be r2,r0,80038d4 <pthread_barrier_init+0xf8>   
  }                                                                   
                                                                      
  /*                                                                  
   * Now start error checking the attributes that we are going to use 
   */                                                                 
  if ( !the_attr->is_initialized )                                    
 8003808:	28 41 00 00 	lw r1,(r2+0)                                   
    return EINVAL;                                                    
 800380c:	34 04 00 16 	mvi r4,22                                      
  }                                                                   
                                                                      
  /*                                                                  
   * Now start error checking the attributes that we are going to use 
   */                                                                 
  if ( !the_attr->is_initialized )                                    
 8003810:	44 20 00 03 	be r1,r0,800381c <pthread_barrier_init+0x40>   
    return EINVAL;                                                    
                                                                      
  switch ( the_attr->process_shared ) {                               
 8003814:	28 4e 00 04 	lw r14,(r2+4)                                  
 8003818:	45 c0 00 09 	be r14,r0,800383c <pthread_barrier_init+0x60>  <== ALWAYS TAKEN
   * Exit the critical section and return the user an operational barrier
   */                                                                 
  *barrier = the_barrier->Object.id;                                  
  _Thread_Enable_dispatch();                                          
  return 0;                                                           
}                                                                     
 800381c:	b8 80 08 00 	mv r1,r4                                       
 8003820:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003824:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8003828:	2b 8c 00 10 	lw r12,(sp+16)                                 
 800382c:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8003830:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8003834:	37 9c 00 28 	addi sp,sp,40                                  
 8003838:	c3 a0 00 00 	ret                                            
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
 800383c:	78 01 08 01 	mvhi r1,0x801                                  
 8003840:	38 21 68 6c 	ori r1,r1,0x686c                               
 8003844:	28 22 00 00 	lw r2,(r1+0)                                   
  }                                                                   
                                                                      
  /*                                                                  
   * Convert from POSIX attributes to Core Barrier attributes         
   */                                                                 
  the_attributes.discipline    = CORE_BARRIER_AUTOMATIC_RELEASE;      
 8003848:	5b 80 00 24 	sw (sp+36),r0                                  
  the_attributes.maximum_count = count;                               
 800384c:	5b 83 00 28 	sw (sp+40),r3                                  
 8003850:	34 42 00 01 	addi r2,r2,1                                   
 8003854:	58 22 00 00 	sw (r1+0),r2                                   
 *  the inactive chain of free barrier control blocks.                
 */                                                                   
RTEMS_INLINE_ROUTINE POSIX_Barrier_Control *_POSIX_Barrier_Allocate( void )
{                                                                     
  return (POSIX_Barrier_Control *)                                    
    _Objects_Allocate( &_POSIX_Barrier_Information );                 
 8003858:	78 0d 08 01 	mvhi r13,0x801                                 
 800385c:	39 ad 6b cc 	ori r13,r13,0x6bcc                             
 8003860:	b9 a0 08 00 	mv r1,r13                                      
 8003864:	f8 00 08 40 	calli 8005964 <_Objects_Allocate>              
 8003868:	b8 20 60 00 	mv r12,r1                                      
   */                                                                 
  _Thread_Disable_dispatch();             /* prevents deletion */     
                                                                      
  the_barrier = _POSIX_Barrier_Allocate();                            
                                                                      
  if ( !the_barrier ) {                                               
 800386c:	44 2e 00 17 	be r1,r14,80038c8 <pthread_barrier_init+0xec>  
    _Thread_Enable_dispatch();                                        
    return EAGAIN;                                                    
  }                                                                   
                                                                      
  _CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes ); 
 8003870:	37 82 00 24 	addi r2,sp,36                                  
 8003874:	34 21 00 10 	addi r1,r1,16                                  
 8003878:	f8 00 05 28 	calli 8004d18 <_CORE_barrier_Initialize>       
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
 800387c:	29 82 00 08 	lw r2,(r12+8)                                  
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 8003880:	29 a3 00 1c 	lw r3,(r13+28)                                 
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 8003884:	20 41 ff ff 	andi r1,r2,0xffff                              
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 8003888:	b4 21 08 00 	add r1,r1,r1                                   
 800388c:	b4 21 08 00 	add r1,r1,r1                                   
 8003890:	b4 61 08 00 	add r1,r3,r1                                   
 8003894:	58 2c 00 00 	sw (r1+0),r12                                  
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  /* ASSERT: information->is_string == false */                       
  the_object->name.name_u32 = name;                                   
 8003898:	59 80 00 0c 	sw (r12+12),r0                                 
  );                                                                  
                                                                      
  /*                                                                  
   * Exit the critical section and return the user an operational barrier
   */                                                                 
  *barrier = the_barrier->Object.id;                                  
 800389c:	59 62 00 00 	sw (r11+0),r2                                  
  _Thread_Enable_dispatch();                                          
 80038a0:	f8 00 0b d0 	calli 80067e0 <_Thread_Enable_dispatch>        
  return 0;                                                           
 80038a4:	34 04 00 00 	mvi r4,0                                       
}                                                                     
 80038a8:	b8 80 08 00 	mv r1,r4                                       
 80038ac:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80038b0:	2b 8b 00 14 	lw r11,(sp+20)                                 
 80038b4:	2b 8c 00 10 	lw r12,(sp+16)                                 
 80038b8:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 80038bc:	2b 8e 00 08 	lw r14,(sp+8)                                  
 80038c0:	37 9c 00 28 	addi sp,sp,40                                  
 80038c4:	c3 a0 00 00 	ret                                            
  _Thread_Disable_dispatch();             /* prevents deletion */     
                                                                      
  the_barrier = _POSIX_Barrier_Allocate();                            
                                                                      
  if ( !the_barrier ) {                                               
    _Thread_Enable_dispatch();                                        
 80038c8:	f8 00 0b c6 	calli 80067e0 <_Thread_Enable_dispatch>        
    return EAGAIN;                                                    
 80038cc:	34 04 00 0b 	mvi r4,11                                      
 80038d0:	e3 ff ff d3 	bi 800381c <pthread_barrier_init+0x40>         
   * If the user passed in NULL, use the default attributes           
   */                                                                 
  if ( attr ) {                                                       
    the_attr = attr;                                                  
  } else {                                                            
    (void) pthread_barrierattr_init( &my_attr );                      
 80038d4:	37 8c 00 1c 	addi r12,sp,28                                 
 80038d8:	b9 80 08 00 	mv r1,r12                                      
 80038dc:	5b 83 00 18 	sw (sp+24),r3                                  
 80038e0:	fb ff ff 7c 	calli 80036d0 <pthread_barrierattr_init>       
    the_attr = &my_attr;                                              
 80038e4:	b9 80 10 00 	mv r2,r12                                      
 80038e8:	2b 83 00 18 	lw r3,(sp+24)                                  
 80038ec:	e3 ff ff c7 	bi 8003808 <pthread_barrier_init+0x2c>         
                                                                      

08002fe8 <pthread_cleanup_push>: void pthread_cleanup_push( void (*routine)( void * ), void *arg ) {
 8002fe8:	37 9c ff f4 	addi sp,sp,-12                                 
 8002fec:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8002ff0:	5b 8c 00 08 	sw (sp+8),r12                                  
 8002ff4:	5b 9d 00 04 	sw (sp+4),ra                                   
 8002ff8:	b8 20 58 00 	mv r11,r1                                      
 8002ffc:	b8 40 60 00 	mv r12,r2                                      
  /*                                                                  
   *  The POSIX standard does not address what to do when the routine 
   *  is NULL.  It also does not address what happens when we cannot  
   *  allocate memory or anything else bad happens.                   
   */                                                                 
  if ( !routine )                                                     
 8003000:	44 20 00 14 	be r1,r0,8003050 <pthread_cleanup_push+0x68>   
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
 8003004:	78 03 08 01 	mvhi r3,0x801                                  
 8003008:	38 63 68 54 	ori r3,r3,0x6854                               
 800300c:	28 61 00 00 	lw r1,(r3+0)                                   
 8003010:	34 21 00 01 	addi r1,r1,1                                   
 8003014:	58 61 00 00 	sw (r3+0),r1                                   
    return;                                                           
                                                                      
  _Thread_Disable_dispatch();                                         
  handler = _Workspace_Allocate( sizeof( POSIX_Cancel_Handler_control ) );
 8003018:	34 01 00 10 	mvi r1,16                                      
 800301c:	f8 00 11 c4 	calli 800772c <_Workspace_Allocate>            
 8003020:	b8 20 18 00 	mv r3,r1                                       
                                                                      
  if ( handler ) {                                                    
 8003024:	44 20 00 0a 	be r1,r0,800304c <pthread_cleanup_push+0x64>   <== NEVER TAKEN
    thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
 8003028:	78 04 08 01 	mvhi r4,0x801                                  
 800302c:	38 84 6d 2c 	ori r4,r4,0x6d2c                               
 8003030:	28 81 00 0c 	lw r1,(r4+12)                                  
    handler_stack = &thread_support->Cancellation_Handlers;           
                                                                      
    handler->routine = routine;                                       
    handler->arg = arg;                                               
                                                                      
    _Chain_Append( handler_stack, &handler->Node );                   
 8003034:	b8 60 10 00 	mv r2,r3                                       
  handler = _Workspace_Allocate( sizeof( POSIX_Cancel_Handler_control ) );
                                                                      
  if ( handler ) {                                                    
    thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
                                                                      
    handler_stack = &thread_support->Cancellation_Handlers;           
 8003038:	28 21 01 2c 	lw r1,(r1+300)                                 
                                                                      
    handler->routine = routine;                                       
 800303c:	58 6b 00 08 	sw (r3+8),r11                                  
    handler->arg = arg;                                               
 8003040:	58 6c 00 0c 	sw (r3+12),r12                                 
                                                                      
    _Chain_Append( handler_stack, &handler->Node );                   
 8003044:	34 21 00 e0 	addi r1,r1,224                                 
 8003048:	f8 00 05 29 	calli 80044ec <_Chain_Append>                  
  }                                                                   
  _Thread_Enable_dispatch();                                          
 800304c:	f8 00 0b b5 	calli 8005f20 <_Thread_Enable_dispatch>        
}                                                                     
 8003050:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003054:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8003058:	2b 8c 00 08 	lw r12,(sp+8)                                  
 800305c:	37 9c 00 0c 	addi sp,sp,12                                  
 8003060:	c3 a0 00 00 	ret                                            
                                                                      

080040f4 <pthread_cond_init>: int pthread_cond_init( pthread_cond_t *cond, const pthread_condattr_t *attr ) {
 80040f4:	37 9c ff ec 	addi sp,sp,-20                                 
 80040f8:	5b 8b 00 10 	sw (sp+16),r11                                 
 80040fc:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8004100:	5b 8d 00 08 	sw (sp+8),r13                                  
 8004104:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004108:	b8 20 68 00 	mv r13,r1                                      
  POSIX_Condition_variables_Control   *the_cond;                      
  const pthread_condattr_t            *the_attr;                      
                                                                      
  if ( attr ) the_attr = attr;                                        
 800410c:	44 40 00 33 	be r2,r0,80041d8 <pthread_cond_init+0xe4>      
                                                                      
  /*                                                                  
   *  Be careful about attributes when global!!!                      
   */                                                                 
                                                                      
  if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED )           
 8004110:	28 44 00 04 	lw r4,(r2+4)                                   
 8004114:	34 03 00 01 	mvi r3,1                                       
    return EINVAL;                                                    
 8004118:	34 01 00 16 	mvi r1,22                                      
                                                                      
  /*                                                                  
   *  Be careful about attributes when global!!!                      
   */                                                                 
                                                                      
  if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED )           
 800411c:	44 83 00 03 	be r4,r3,8004128 <pthread_cond_init+0x34>      <== NEVER TAKEN
    return EINVAL;                                                    
                                                                      
  if ( !the_attr->is_initialized )                                    
 8004120:	28 43 00 00 	lw r3,(r2+0)                                   
 8004124:	5c 60 00 07 	bne r3,r0,8004140 <pthread_cond_init+0x4c>     
  *cond = the_cond->Object.id;                                        
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return 0;                                                           
}                                                                     
 8004128:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800412c:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8004130:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8004134:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8004138:	37 9c 00 14 	addi sp,sp,20                                  
 800413c:	c3 a0 00 00 	ret                                            
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
 8004140:	78 03 08 01 	mvhi r3,0x801                                  
 8004144:	38 63 78 6c 	ori r3,r3,0x786c                               
 8004148:	28 61 00 00 	lw r1,(r3+0)                                   
 800414c:	34 21 00 01 	addi r1,r1,1                                   
 8004150:	58 61 00 00 	sw (r3+0),r1                                   
                                                                      
RTEMS_INLINE_ROUTINE POSIX_Condition_variables_Control                
  *_POSIX_Condition_variables_Allocate( void )                        
{                                                                     
  return (POSIX_Condition_variables_Control *)                        
    _Objects_Allocate( &_POSIX_Condition_variables_Information );     
 8004154:	78 0c 08 01 	mvhi r12,0x801                                 
 8004158:	39 8c 7c 64 	ori r12,r12,0x7c64                             
 800415c:	b9 80 08 00 	mv r1,r12                                      
 8004160:	5b 82 00 14 	sw (sp+20),r2                                  
 8004164:	f8 00 09 e3 	calli 80068f0 <_Objects_Allocate>              
 8004168:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  the_cond = _POSIX_Condition_variables_Allocate();                   
                                                                      
  if ( !the_cond ) {                                                  
 800416c:	2b 82 00 14 	lw r2,(sp+20)                                  
 8004170:	44 20 00 1d 	be r1,r0,80041e4 <pthread_cond_init+0xf0>      
    _Thread_Enable_dispatch();                                        
    return ENOMEM;                                                    
  }                                                                   
                                                                      
  the_cond->process_shared  = the_attr->process_shared;               
 8004174:	28 45 00 04 	lw r5,(r2+4)                                   
                                                                      
  the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX;               
                                                                      
/* XXX some more initialization might need to go here */              
  _Thread_queue_Initialize(                                           
 8004178:	34 04 00 74 	mvi r4,116                                     
 800417c:	34 21 00 18 	addi r1,r1,24                                  
  if ( !the_cond ) {                                                  
    _Thread_Enable_dispatch();                                        
    return ENOMEM;                                                    
  }                                                                   
                                                                      
  the_cond->process_shared  = the_attr->process_shared;               
 8004180:	59 65 00 10 	sw (r11+16),r5                                 
                                                                      
  the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX;               
                                                                      
/* XXX some more initialization might need to go here */              
  _Thread_queue_Initialize(                                           
 8004184:	34 02 00 00 	mvi r2,0                                       
 8004188:	34 03 08 00 	mvi r3,2048                                    
    return ENOMEM;                                                    
  }                                                                   
                                                                      
  the_cond->process_shared  = the_attr->process_shared;               
                                                                      
  the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX;               
 800418c:	59 60 00 14 	sw (r11+20),r0                                 
                                                                      
/* XXX some more initialization might need to go here */              
  _Thread_queue_Initialize(                                           
 8004190:	f8 00 10 1c 	calli 8008200 <_Thread_queue_Initialize>       
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
 8004194:	29 61 00 08 	lw r1,(r11+8)                                  
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 8004198:	29 83 00 1c 	lw r3,(r12+28)                                 
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 800419c:	20 22 ff ff 	andi r2,r1,0xffff                              
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 80041a0:	b4 42 10 00 	add r2,r2,r2                                   
 80041a4:	b4 42 10 00 	add r2,r2,r2                                   
 80041a8:	b4 62 10 00 	add r2,r3,r2                                   
 80041ac:	58 4b 00 00 	sw (r2+0),r11                                  
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  /* ASSERT: information->is_string == false */                       
  the_object->name.name_u32 = name;                                   
 80041b0:	59 60 00 0c 	sw (r11+12),r0                                 
    &_POSIX_Condition_variables_Information,                          
    &the_cond->Object,                                                
    0                                                                 
  );                                                                  
                                                                      
  *cond = the_cond->Object.id;                                        
 80041b4:	59 a1 00 00 	sw (r13+0),r1                                  
                                                                      
  _Thread_Enable_dispatch();                                          
 80041b8:	f8 00 0d d6 	calli 8007910 <_Thread_Enable_dispatch>        
                                                                      
  return 0;                                                           
 80041bc:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 80041c0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80041c4:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80041c8:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80041cc:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80041d0:	37 9c 00 14 	addi sp,sp,20                                  
 80041d4:	c3 a0 00 00 	ret                                            
{                                                                     
  POSIX_Condition_variables_Control   *the_cond;                      
  const pthread_condattr_t            *the_attr;                      
                                                                      
  if ( attr ) the_attr = attr;                                        
  else        the_attr = &_POSIX_Condition_variables_Default_attributes;
 80041d8:	78 02 08 01 	mvhi r2,0x801                                  
 80041dc:	38 42 60 d0 	ori r2,r2,0x60d0                               
 80041e0:	e3 ff ff cc 	bi 8004110 <pthread_cond_init+0x1c>            
  _Thread_Disable_dispatch();                                         
                                                                      
  the_cond = _POSIX_Condition_variables_Allocate();                   
                                                                      
  if ( !the_cond ) {                                                  
    _Thread_Enable_dispatch();                                        
 80041e4:	f8 00 0d cb 	calli 8007910 <_Thread_Enable_dispatch>        
    return ENOMEM;                                                    
 80041e8:	34 01 00 0c 	mvi r1,12                                      
 80041ec:	e3 ff ff cf 	bi 8004128 <pthread_cond_init+0x34>            
                                                                      

08003f50 <pthread_condattr_destroy>: int pthread_condattr_destroy( pthread_condattr_t *attr ) { if ( !attr || attr->is_initialized == false ) return EINVAL;
 8003f50:	34 02 00 16 	mvi r2,22                                      
                                                                      
int pthread_condattr_destroy(                                         
  pthread_condattr_t *attr                                            
)                                                                     
{                                                                     
  if ( !attr || attr->is_initialized == false )                       
 8003f54:	44 20 00 05 	be r1,r0,8003f68 <pthread_condattr_destroy+0x18>
 8003f58:	28 23 00 00 	lw r3,(r1+0)                                   
 8003f5c:	44 60 00 03 	be r3,r0,8003f68 <pthread_condattr_destroy+0x18><== NEVER TAKEN
    return EINVAL;                                                    
                                                                      
  attr->is_initialized = false;                                       
 8003f60:	58 20 00 00 	sw (r1+0),r0                                   
  return 0;                                                           
 8003f64:	34 02 00 00 	mvi r2,0                                       
}                                                                     
 8003f68:	b8 40 08 00 	mv r1,r2                                       
 8003f6c:	c3 a0 00 00 	ret                                            
                                                                      

080034a0 <pthread_create>: pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)( void * ), void *arg ) {
 80034a0:	37 9c ff a0 	addi sp,sp,-96                                 
 80034a4:	5b 8b 00 3c 	sw (sp+60),r11                                 
 80034a8:	5b 8c 00 38 	sw (sp+56),r12                                 
 80034ac:	5b 8d 00 34 	sw (sp+52),r13                                 
 80034b0:	5b 8e 00 30 	sw (sp+48),r14                                 
 80034b4:	5b 8f 00 2c 	sw (sp+44),r15                                 
 80034b8:	5b 90 00 28 	sw (sp+40),r16                                 
 80034bc:	5b 91 00 24 	sw (sp+36),r17                                 
 80034c0:	5b 92 00 20 	sw (sp+32),r18                                 
 80034c4:	5b 93 00 1c 	sw (sp+28),r19                                 
 80034c8:	5b 94 00 18 	sw (sp+24),r20                                 
 80034cc:	5b 95 00 14 	sw (sp+20),r21                                 
 80034d0:	5b 9d 00 10 	sw (sp+16),ra                                  
  struct sched_param                  schedparam;                     
  Objects_Name                        name;                           
  int                                 rc;                             
                                                                      
  if ( !start_routine )                                               
    return EFAULT;                                                    
 80034d4:	34 0c 00 0e 	mvi r12,14                                     
  pthread_t              *thread,                                     
  const pthread_attr_t   *attr,                                       
  void                 *(*start_routine)( void * ),                   
  void                   *arg                                         
)                                                                     
{                                                                     
 80034d8:	b8 60 68 00 	mv r13,r3                                      
 80034dc:	b8 20 78 00 	mv r15,r1                                      
 80034e0:	b8 80 70 00 	mv r14,r4                                      
  int                                 schedpolicy = SCHED_RR;         
  struct sched_param                  schedparam;                     
  Objects_Name                        name;                           
  int                                 rc;                             
                                                                      
  if ( !start_routine )                                               
 80034e4:	44 60 00 13 	be r3,r0,8003530 <pthread_create+0x90>         <== NEVER TAKEN
    return EFAULT;                                                    
                                                                      
  the_attr = (attr) ? attr : &_POSIX_Threads_Default_attributes;      
 80034e8:	b8 40 58 00 	mv r11,r2                                      
 80034ec:	44 40 00 66 	be r2,r0,8003684 <pthread_create+0x1e4>        
                                                                      
  if ( !the_attr->is_initialized )                                    
 80034f0:	29 61 00 00 	lw r1,(r11+0)                                  
    return EINVAL;                                                    
 80034f4:	34 0c 00 16 	mvi r12,22                                     
  if ( !start_routine )                                               
    return EFAULT;                                                    
                                                                      
  the_attr = (attr) ? attr : &_POSIX_Threads_Default_attributes;      
                                                                      
  if ( !the_attr->is_initialized )                                    
 80034f8:	44 20 00 0e 	be r1,r0,8003530 <pthread_create+0x90>         
   *  stack space if it is allowed to allocate it itself.             
   *                                                                  
   *  NOTE: If the user provides the stack we will let it drop below  
   *        twice the minimum.                                        
   */                                                                 
  if ( the_attr->stackaddr && !_Stack_Is_enough(the_attr->stacksize) )
 80034fc:	29 61 00 04 	lw r1,(r11+4)                                  
 8003500:	44 20 00 06 	be r1,r0,8003518 <pthread_create+0x78>         
 8003504:	78 02 08 01 	mvhi r2,0x801                                  
 8003508:	38 42 f0 e0 	ori r2,r2,0xf0e0                               
 800350c:	29 63 00 08 	lw r3,(r11+8)                                  
 8003510:	28 41 00 00 	lw r1,(r2+0)                                   
 8003514:	54 23 00 07 	bgu r1,r3,8003530 <pthread_create+0x90>        
   *  If inheritsched is set to PTHREAD_INHERIT_SCHED, then this thread
   *  inherits scheduling attributes from the creating thread.   If it is
   *  PTHREAD_EXPLICIT_SCHED, then scheduling parameters come from the
   *  attributes structure.                                           
   */                                                                 
  switch ( the_attr->inheritsched ) {                                 
 8003518:	29 61 00 10 	lw r1,(r11+16)                                 
 800351c:	34 02 00 01 	mvi r2,1                                       
 8003520:	44 22 00 5c 	be r1,r2,8003690 <pthread_create+0x1f0>        
 8003524:	34 02 00 02 	mvi r2,2                                       
      schedpolicy = the_attr->schedpolicy;                            
      schedparam  = the_attr->schedparam;                             
      break;                                                          
                                                                      
    default:                                                          
      return EINVAL;                                                  
 8003528:	34 0c 00 16 	mvi r12,22                                     
   *  If inheritsched is set to PTHREAD_INHERIT_SCHED, then this thread
   *  inherits scheduling attributes from the creating thread.   If it is
   *  PTHREAD_EXPLICIT_SCHED, then scheduling parameters come from the
   *  attributes structure.                                           
   */                                                                 
  switch ( the_attr->inheritsched ) {                                 
 800352c:	44 22 00 10 	be r1,r2,800356c <pthread_create+0xcc>         
   */                                                                 
  *thread = the_thread->Object.id;                                    
                                                                      
  _RTEMS_Unlock_allocator();                                          
  return 0;                                                           
}                                                                     
 8003530:	b9 80 08 00 	mv r1,r12                                      
 8003534:	2b 9d 00 10 	lw ra,(sp+16)                                  
 8003538:	2b 8b 00 3c 	lw r11,(sp+60)                                 
 800353c:	2b 8c 00 38 	lw r12,(sp+56)                                 
 8003540:	2b 8d 00 34 	lw r13,(sp+52)                                 
 8003544:	2b 8e 00 30 	lw r14,(sp+48)                                 
 8003548:	2b 8f 00 2c 	lw r15,(sp+44)                                 
 800354c:	2b 90 00 28 	lw r16,(sp+40)                                 
 8003550:	2b 91 00 24 	lw r17,(sp+36)                                 
 8003554:	2b 92 00 20 	lw r18,(sp+32)                                 
 8003558:	2b 93 00 1c 	lw r19,(sp+28)                                 
 800355c:	2b 94 00 18 	lw r20,(sp+24)                                 
 8003560:	2b 95 00 14 	lw r21,(sp+20)                                 
 8003564:	37 9c 00 60 	addi sp,sp,96                                  
 8003568:	c3 a0 00 00 	ret                                            
      schedparam  = api->schedparam;                                  
      break;                                                          
                                                                      
    case PTHREAD_EXPLICIT_SCHED:                                      
      schedpolicy = the_attr->schedpolicy;                            
      schedparam  = the_attr->schedparam;                             
 800356c:	29 67 00 18 	lw r7,(r11+24)                                 
 8003570:	29 66 00 1c 	lw r6,(r11+28)                                 
 8003574:	29 65 00 20 	lw r5,(r11+32)                                 
 8003578:	29 64 00 24 	lw r4,(r11+36)                                 
 800357c:	29 63 00 28 	lw r3,(r11+40)                                 
 8003580:	29 62 00 2c 	lw r2,(r11+44)                                 
 8003584:	29 61 00 30 	lw r1,(r11+48)                                 
      schedpolicy = api->schedpolicy;                                 
      schedparam  = api->schedparam;                                  
      break;                                                          
                                                                      
    case PTHREAD_EXPLICIT_SCHED:                                      
      schedpolicy = the_attr->schedpolicy;                            
 8003588:	29 71 00 14 	lw r17,(r11+20)                                
      schedparam  = the_attr->schedparam;                             
 800358c:	5b 87 00 40 	sw (sp+64),r7                                  
 8003590:	5b 86 00 44 	sw (sp+68),r6                                  
 8003594:	5b 85 00 48 	sw (sp+72),r5                                  
 8003598:	5b 84 00 4c 	sw (sp+76),r4                                  
 800359c:	5b 83 00 50 	sw (sp+80),r3                                  
 80035a0:	5b 82 00 54 	sw (sp+84),r2                                  
 80035a4:	5b 81 00 58 	sw (sp+88),r1                                  
                                                                      
  /*                                                                  
   *  Check the contentionscope since rtems only supports PROCESS wide
   *  contention (i.e. no system wide contention).                    
   */                                                                 
  if ( the_attr->contentionscope != PTHREAD_SCOPE_PROCESS )           
 80035a8:	29 70 00 0c 	lw r16,(r11+12)                                
    return ENOTSUP;                                                   
 80035ac:	34 0c 00 86 	mvi r12,134                                    
                                                                      
  /*                                                                  
   *  Check the contentionscope since rtems only supports PROCESS wide
   *  contention (i.e. no system wide contention).                    
   */                                                                 
  if ( the_attr->contentionscope != PTHREAD_SCOPE_PROCESS )           
 80035b0:	5e 00 ff e0 	bne r16,r0,8003530 <pthread_create+0x90>       
    return ENOTSUP;                                                   
                                                                      
  /*                                                                  
   *  Interpret the scheduling parameters.                            
   */                                                                 
  if ( !_POSIX_Priority_Is_valid( schedparam.sched_priority ) )       
 80035b4:	2b 81 00 40 	lw r1,(sp+64)                                  
    return EINVAL;                                                    
 80035b8:	34 0c 00 16 	mvi r12,22                                     
    return ENOTSUP;                                                   
                                                                      
  /*                                                                  
   *  Interpret the scheduling parameters.                            
   */                                                                 
  if ( !_POSIX_Priority_Is_valid( schedparam.sched_priority ) )       
 80035bc:	f8 00 1c 1b 	calli 800a628 <_POSIX_Priority_Is_valid>       
 80035c0:	44 30 ff dc 	be r1,r16,8003530 <pthread_create+0x90>        <== NEVER TAKEN
                                                                      
RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(        
  int priority                                                        
)                                                                     
{                                                                     
  return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
 80035c4:	78 05 08 01 	mvhi r5,0x801                                  
 80035c8:	38 a5 f0 e4 	ori r5,r5,0xf0e4                               
  core_priority = _POSIX_Priority_To_core( schedparam.sched_priority );
                                                                      
  /*                                                                  
   *  Set the core scheduling policy information.                     
   */                                                                 
  rc = _POSIX_Thread_Translate_sched_param(                           
 80035cc:	ba 20 08 00 	mv r1,r17                                      
 80035d0:	37 82 00 40 	addi r2,sp,64                                  
 80035d4:	37 83 00 60 	addi r3,sp,96                                  
 80035d8:	37 84 00 5c 	addi r4,sp,92                                  
   *  Interpret the scheduling parameters.                            
   */                                                                 
  if ( !_POSIX_Priority_Is_valid( schedparam.sched_priority ) )       
    return EINVAL;                                                    
                                                                      
  core_priority = _POSIX_Priority_To_core( schedparam.sched_priority );
 80035dc:	2b 94 00 40 	lw r20,(sp+64)                                 
 80035e0:	40 b5 00 00 	lbu r21,(r5+0)                                 
                                                                      
  /*                                                                  
   *  Set the core scheduling policy information.                     
   */                                                                 
  rc = _POSIX_Thread_Translate_sched_param(                           
 80035e4:	f8 00 1c 19 	calli 800a648 <_POSIX_Thread_Translate_sched_param>
 80035e8:	b8 20 60 00 	mv r12,r1                                      
    schedpolicy,                                                      
    &schedparam,                                                      
    &budget_algorithm,                                                
    &budget_callout                                                   
  );                                                                  
  if ( rc )                                                           
 80035ec:	5c 20 ff d1 	bne r1,r0,8003530 <pthread_create+0x90>        
  #endif                                                              
                                                                      
  /*                                                                  
   *  Lock the allocator mutex for protection                         
   */                                                                 
  _RTEMS_Lock_allocator();                                            
 80035f0:	78 12 08 01 	mvhi r18,0x801                                 
 80035f4:	3a 52 f9 00 	ori r18,r18,0xf900                             
 80035f8:	2a 41 00 00 	lw r1,(r18+0)                                  
 *  _POSIX_Threads_Allocate                                           
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Allocate( void )  
{                                                                     
  return (Thread_Control *) _Objects_Allocate( &_POSIX_Threads_Information );
 80035fc:	78 10 08 01 	mvhi r16,0x801                                 
 8003600:	3a 10 fa 3c 	ori r16,r16,0xfa3c                             
 8003604:	f8 00 05 38 	calli 8004ae4 <_API_Mutex_Lock>                
 8003608:	ba 00 08 00 	mv r1,r16                                      
 800360c:	f8 00 08 68 	calli 80057ac <_Objects_Allocate>              
 8003610:	b8 20 98 00 	mv r19,r1                                      
   *  Allocate the thread control block.                              
   *                                                                  
   *  NOTE:  Global threads are not currently supported.              
   */                                                                 
  the_thread = _POSIX_Threads_Allocate();                             
  if ( !the_thread ) {                                                
 8003614:	44 2c 00 18 	be r1,r12,8003674 <pthread_create+0x1d4>       
                                                                      
static inline size_t _POSIX_Threads_Ensure_minimum_stack (            
  size_t size                                                         
)                                                                     
{                                                                     
  if ( size >= PTHREAD_MINIMUM_STACK_SIZE )                           
 8003618:	78 01 08 01 	mvhi r1,0x801                                  
 800361c:	38 21 f0 e0 	ori r1,r1,0xf0e0                               
 8003620:	28 24 00 00 	lw r4,(r1+0)                                   
                                                                      
  /*                                                                  
   *  Initialize the core thread for this task.                       
   */                                                                 
  name.name_p = NULL;   /* posix threads don't have a name by default */
  status = _Thread_Initialize(                                        
 8003624:	29 61 00 08 	lw r1,(r11+8)                                  
 8003628:	29 63 00 04 	lw r3,(r11+4)                                  
                                                                      
static inline size_t _POSIX_Threads_Ensure_minimum_stack (            
  size_t size                                                         
)                                                                     
{                                                                     
  if ( size >= PTHREAD_MINIMUM_STACK_SIZE )                           
 800362c:	b4 84 20 00 	add r4,r4,r4                                   
                                                                      
  /*                                                                  
   *  Initialize the core thread for this task.                       
   */                                                                 
  name.name_p = NULL;   /* posix threads don't have a name by default */
  status = _Thread_Initialize(                                        
 8003630:	50 81 00 02 	bgeu r4,r1,8003638 <pthread_create+0x198>      
 8003634:	b8 20 20 00 	mv r4,r1                                       
 8003638:	2b 89 00 5c 	lw r9,(sp+92)                                  
 800363c:	2b 88 00 60 	lw r8,(sp+96)                                  
 8003640:	ba 00 08 00 	mv r1,r16                                      
 8003644:	ba 60 10 00 	mv r2,r19                                      
 8003648:	34 05 00 00 	mvi r5,0                                       
 800364c:	ca b4 30 00 	sub r6,r21,r20                                 
 8003650:	34 07 00 01 	mvi r7,1                                       
 8003654:	5b 89 00 04 	sw (sp+4),r9                                   
 8003658:	5b 80 00 08 	sw (sp+8),r0                                   
 800365c:	5b 80 00 0c 	sw (sp+12),r0                                  
 8003660:	f8 00 0c 4f 	calli 800679c <_Thread_Initialize>             
    budget_callout,                                                   
    0,                    /* isr level */                             
    name                  /* posix threads don't have a name */       
  );                                                                  
                                                                      
  if ( !status ) {                                                    
 8003664:	5c 20 00 1f 	bne r1,r0,80036e0 <pthread_create+0x240>       
                                                                      
RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free (                       
  Thread_Control *the_pthread                                         
)                                                                     
{                                                                     
  _Objects_Free( &_POSIX_Threads_Information, &the_pthread->Object ); 
 8003668:	ba 00 08 00 	mv r1,r16                                      
 800366c:	ba 60 10 00 	mv r2,r19                                      
 8003670:	f8 00 09 53 	calli 8005bbc <_Objects_Free>                  
    _POSIX_Threads_Free( the_thread );                                
    _RTEMS_Unlock_allocator();                                        
 8003674:	2a 41 00 00 	lw r1,(r18+0)                                  
    return EAGAIN;                                                    
 8003678:	34 0c 00 0b 	mvi r12,11                                     
    name                  /* posix threads don't have a name */       
  );                                                                  
                                                                      
  if ( !status ) {                                                    
    _POSIX_Threads_Free( the_thread );                                
    _RTEMS_Unlock_allocator();                                        
 800367c:	f8 00 05 36 	calli 8004b54 <_API_Mutex_Unlock>              
    return EAGAIN;                                                    
 8003680:	e3 ff ff ac 	bi 8003530 <pthread_create+0x90>               
  int                                 rc;                             
                                                                      
  if ( !start_routine )                                               
    return EFAULT;                                                    
                                                                      
  the_attr = (attr) ? attr : &_POSIX_Threads_Default_attributes;      
 8003684:	78 0b 08 01 	mvhi r11,0x801                                 
 8003688:	39 6b d9 30 	ori r11,r11,0xd930                             
 800368c:	e3 ff ff 99 	bi 80034f0 <pthread_create+0x50>               
   *  PTHREAD_EXPLICIT_SCHED, then scheduling parameters come from the
   *  attributes structure.                                           
   */                                                                 
  switch ( the_attr->inheritsched ) {                                 
    case PTHREAD_INHERIT_SCHED:                                       
      api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];    
 8003690:	78 01 08 01 	mvhi r1,0x801                                  
 8003694:	38 21 fd 34 	ori r1,r1,0xfd34                               
 8003698:	28 21 00 0c 	lw r1,(r1+12)                                  
 800369c:	28 22 01 2c 	lw r2,(r1+300)                                 
      schedpolicy = api->schedpolicy;                                 
      schedparam  = api->schedparam;                                  
 80036a0:	28 48 00 84 	lw r8,(r2+132)                                 
 80036a4:	28 47 00 88 	lw r7,(r2+136)                                 
 80036a8:	28 46 00 8c 	lw r6,(r2+140)                                 
 80036ac:	28 45 00 90 	lw r5,(r2+144)                                 
 80036b0:	28 44 00 94 	lw r4,(r2+148)                                 
 80036b4:	28 43 00 98 	lw r3,(r2+152)                                 
 80036b8:	28 41 00 9c 	lw r1,(r2+156)                                 
   *  attributes structure.                                           
   */                                                                 
  switch ( the_attr->inheritsched ) {                                 
    case PTHREAD_INHERIT_SCHED:                                       
      api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];    
      schedpolicy = api->schedpolicy;                                 
 80036bc:	28 51 00 80 	lw r17,(r2+128)                                
      schedparam  = api->schedparam;                                  
 80036c0:	5b 88 00 40 	sw (sp+64),r8                                  
 80036c4:	5b 87 00 44 	sw (sp+68),r7                                  
 80036c8:	5b 86 00 48 	sw (sp+72),r6                                  
 80036cc:	5b 85 00 4c 	sw (sp+76),r5                                  
 80036d0:	5b 84 00 50 	sw (sp+80),r4                                  
 80036d4:	5b 83 00 54 	sw (sp+84),r3                                  
 80036d8:	5b 81 00 58 	sw (sp+88),r1                                  
      break;                                                          
 80036dc:	e3 ff ff b3 	bi 80035a8 <pthread_create+0x108>              
  }                                                                   
                                                                      
  /*                                                                  
   *  finish initializing the per API structure                       
   */                                                                 
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
 80036e0:	2a 70 01 2c 	lw r16,(r19+300)                               
                                                                      
  api->Attributes  = *the_attr;                                       
 80036e4:	29 63 00 00 	lw r3,(r11+0)                                  
  api->schedparam  = schedparam;                                      
                                                                      
  /*                                                                  
   *  POSIX threads are allocated and started in one operation.       
   */                                                                 
  status = _Thread_Start(                                             
 80036e8:	ba 60 08 00 	mv r1,r19                                      
 80036ec:	34 02 00 01 	mvi r2,1                                       
  /*                                                                  
   *  finish initializing the per API structure                       
   */                                                                 
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
                                                                      
  api->Attributes  = *the_attr;                                       
 80036f0:	5a 03 00 00 	sw (r16+0),r3                                  
 80036f4:	29 65 00 04 	lw r5,(r11+4)                                  
  api->schedparam  = schedparam;                                      
                                                                      
  /*                                                                  
   *  POSIX threads are allocated and started in one operation.       
   */                                                                 
  status = _Thread_Start(                                             
 80036f8:	b9 a0 18 00 	mv r3,r13                                      
 80036fc:	b9 c0 20 00 	mv r4,r14                                      
  /*                                                                  
   *  finish initializing the per API structure                       
   */                                                                 
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
                                                                      
  api->Attributes  = *the_attr;                                       
 8003700:	5a 05 00 04 	sw (r16+4),r5                                  
 8003704:	29 66 00 08 	lw r6,(r11+8)                                  
  api->schedparam  = schedparam;                                      
                                                                      
  /*                                                                  
   *  POSIX threads are allocated and started in one operation.       
   */                                                                 
  status = _Thread_Start(                                             
 8003708:	34 05 00 00 	mvi r5,0                                       
  /*                                                                  
   *  finish initializing the per API structure                       
   */                                                                 
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
                                                                      
  api->Attributes  = *the_attr;                                       
 800370c:	5a 06 00 08 	sw (r16+8),r6                                  
 8003710:	29 66 00 0c 	lw r6,(r11+12)                                 
 8003714:	5a 06 00 0c 	sw (r16+12),r6                                 
 8003718:	29 66 00 10 	lw r6,(r11+16)                                 
 800371c:	5a 06 00 10 	sw (r16+16),r6                                 
 8003720:	29 66 00 14 	lw r6,(r11+20)                                 
 8003724:	5a 06 00 14 	sw (r16+20),r6                                 
 8003728:	29 66 00 18 	lw r6,(r11+24)                                 
 800372c:	5a 06 00 18 	sw (r16+24),r6                                 
 8003730:	29 66 00 1c 	lw r6,(r11+28)                                 
 8003734:	5a 06 00 1c 	sw (r16+28),r6                                 
 8003738:	29 66 00 20 	lw r6,(r11+32)                                 
 800373c:	5a 06 00 20 	sw (r16+32),r6                                 
 8003740:	29 66 00 24 	lw r6,(r11+36)                                 
 8003744:	5a 06 00 24 	sw (r16+36),r6                                 
 8003748:	29 66 00 28 	lw r6,(r11+40)                                 
 800374c:	5a 06 00 28 	sw (r16+40),r6                                 
 8003750:	29 66 00 2c 	lw r6,(r11+44)                                 
 8003754:	5a 06 00 2c 	sw (r16+44),r6                                 
 8003758:	29 66 00 30 	lw r6,(r11+48)                                 
 800375c:	5a 06 00 30 	sw (r16+48),r6                                 
 8003760:	29 66 00 34 	lw r6,(r11+52)                                 
 8003764:	5a 06 00 34 	sw (r16+52),r6                                 
 8003768:	29 66 00 38 	lw r6,(r11+56)                                 
 800376c:	5a 06 00 38 	sw (r16+56),r6                                 
  api->detachstate = the_attr->detachstate;                           
 8003770:	29 66 00 38 	lw r6,(r11+56)                                 
 8003774:	5a 06 00 3c 	sw (r16+60),r6                                 
  api->schedpolicy = schedpolicy;                                     
 8003778:	5a 11 00 80 	sw (r16+128),r17                               
  api->schedparam  = schedparam;                                      
 800377c:	2b 86 00 40 	lw r6,(sp+64)                                  
 8003780:	5a 06 00 84 	sw (r16+132),r6                                
 8003784:	2b 86 00 44 	lw r6,(sp+68)                                  
 8003788:	5a 06 00 88 	sw (r16+136),r6                                
 800378c:	2b 86 00 48 	lw r6,(sp+72)                                  
 8003790:	5a 06 00 8c 	sw (r16+140),r6                                
 8003794:	2b 86 00 4c 	lw r6,(sp+76)                                  
 8003798:	5a 06 00 90 	sw (r16+144),r6                                
 800379c:	2b 86 00 50 	lw r6,(sp+80)                                  
 80037a0:	5a 06 00 94 	sw (r16+148),r6                                
 80037a4:	2b 86 00 54 	lw r6,(sp+84)                                  
 80037a8:	5a 06 00 98 	sw (r16+152),r6                                
 80037ac:	2b 86 00 58 	lw r6,(sp+88)                                  
 80037b0:	5a 06 00 9c 	sw (r16+156),r6                                
                                                                      
  /*                                                                  
   *  POSIX threads are allocated and started in one operation.       
   */                                                                 
  status = _Thread_Start(                                             
 80037b4:	f8 00 0f 4d 	calli 80074e8 <_Thread_Start>                  
      _RTEMS_Unlock_allocator();                                      
      return EINVAL;                                                  
    }                                                                 
  #endif                                                              
                                                                      
  if ( schedpolicy == SCHED_SPORADIC ) {                              
 80037b8:	34 01 00 04 	mvi r1,4                                       
 80037bc:	46 21 00 06 	be r17,r1,80037d4 <pthread_create+0x334>       
  }                                                                   
                                                                      
  /*                                                                  
   *  Return the id and indicate we successfully created the thread   
   */                                                                 
  *thread = the_thread->Object.id;                                    
 80037c0:	2a 62 00 08 	lw r2,(r19+8)                                  
                                                                      
  _RTEMS_Unlock_allocator();                                          
 80037c4:	2a 41 00 00 	lw r1,(r18+0)                                  
  }                                                                   
                                                                      
  /*                                                                  
   *  Return the id and indicate we successfully created the thread   
   */                                                                 
  *thread = the_thread->Object.id;                                    
 80037c8:	59 e2 00 00 	sw (r15+0),r2                                  
                                                                      
  _RTEMS_Unlock_allocator();                                          
 80037cc:	f8 00 04 e2 	calli 8004b54 <_API_Mutex_Unlock>              
  return 0;                                                           
 80037d0:	e3 ff ff 58 	bi 8003530 <pthread_create+0x90>               
      return EINVAL;                                                  
    }                                                                 
  #endif                                                              
                                                                      
  if ( schedpolicy == SCHED_SPORADIC ) {                              
    _Watchdog_Insert_ticks(                                           
 80037d4:	36 01 00 8c 	addi r1,r16,140                                
 80037d8:	f8 00 0f f5 	calli 80077ac <_Timespec_To_ticks>             
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 80037dc:	5a 01 00 b0 	sw (r16+176),r1                                
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 80037e0:	78 01 08 01 	mvhi r1,0x801                                  
 80037e4:	36 02 00 a4 	addi r2,r16,164                                
 80037e8:	38 21 f9 20 	ori r1,r1,0xf920                               
 80037ec:	f8 00 11 3b 	calli 8007cd8 <_Watchdog_Insert>               
 80037f0:	e3 ff ff f4 	bi 80037c0 <pthread_create+0x320>              
                                                                      

0800c5cc <pthread_exit>: void pthread_exit( void *value_ptr ) {
 800c5cc:	37 9c ff fc 	addi sp,sp,-4                                  
 800c5d0:	5b 9d 00 04 	sw (sp+4),ra                                   
  _POSIX_Thread_Exit( _Thread_Executing, value_ptr );                 
 800c5d4:	78 03 08 01 	mvhi r3,0x801                                  
 800c5d8:	38 63 4d 84 	ori r3,r3,0x4d84                               
}                                                                     
                                                                      
void pthread_exit(                                                    
  void  *value_ptr                                                    
)                                                                     
{                                                                     
 800c5dc:	b8 20 10 00 	mv r2,r1                                       
  _POSIX_Thread_Exit( _Thread_Executing, value_ptr );                 
 800c5e0:	28 61 00 0c 	lw r1,(r3+12)                                  
 800c5e4:	fb ff ff d4 	calli 800c534 <_POSIX_Thread_Exit>             
}                                                                     
 800c5e8:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 800c5ec:	37 9c 00 04 	addi sp,sp,4                                   <== NOT EXECUTED
 800c5f0:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

0800322c <pthread_key_create>: int pthread_key_create( pthread_key_t *key, void (*destructor)( void * ) ) {
 800322c:	37 9c ff dc 	addi sp,sp,-36                                 
 8003230:	5b 8b 00 24 	sw (sp+36),r11                                 
 8003234:	5b 8c 00 20 	sw (sp+32),r12                                 
 8003238:	5b 8d 00 1c 	sw (sp+28),r13                                 
 800323c:	5b 8e 00 18 	sw (sp+24),r14                                 
 8003240:	5b 8f 00 14 	sw (sp+20),r15                                 
 8003244:	5b 90 00 10 	sw (sp+16),r16                                 
 8003248:	5b 91 00 0c 	sw (sp+12),r17                                 
 800324c:	5b 92 00 08 	sw (sp+8),r18                                  
 8003250:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003254:	78 03 08 01 	mvhi r3,0x801                                  
 8003258:	38 63 78 bc 	ori r3,r3,0x78bc                               
 800325c:	28 64 00 00 	lw r4,(r3+0)                                   
 8003260:	b8 20 90 00 	mv r18,r1                                      
 8003264:	b8 40 58 00 	mv r11,r2                                      
 8003268:	34 84 00 01 	addi r4,r4,1                                   
 800326c:	58 64 00 00 	sw (r3+0),r4                                   
 *  the inactive chain of free keys control blocks.                   
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE POSIX_Keys_Control *_POSIX_Keys_Allocate( void ) 
{                                                                     
  return (POSIX_Keys_Control *) _Objects_Allocate( &_POSIX_Keys_Information );
 8003270:	78 10 08 01 	mvhi r16,0x801                                 
 8003274:	3a 10 7c 74 	ori r16,r16,0x7c74                             
 8003278:	ba 00 08 00 	mv r1,r16                                      
 800327c:	f8 00 08 cf 	calli 80055b8 <_Objects_Allocate>              
 8003280:	b8 20 68 00 	mv r13,r1                                      
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  the_key = _POSIX_Keys_Allocate();                                   
                                                                      
  if ( !the_key ) {                                                   
 8003284:	44 20 00 31 	be r1,r0,8003348 <pthread_key_create+0x11c>    
    _Thread_Enable_dispatch();                                        
    return EAGAIN;                                                    
  }                                                                   
                                                                      
  the_key->destructor = destructor;                                   
 8003288:	78 0c 08 01 	mvhi r12,0x801                                 
 800328c:	58 2b 00 10 	sw (r1+16),r11                                 
 8003290:	39 8c 78 5c 	ori r12,r12,0x785c                             
 8003294:	b8 20 78 00 	mv r15,r1                                      
   *  APIs are optional.                                              
   *                                                                  
   *  NOTE: Currently RTEMS Classic API tasks are always enabled.     
   */                                                                 
                                                                      
  for ( the_api = 1;                                                  
 8003298:	34 0e 00 01 	mvi r14,1                                      
 800329c:	34 11 00 04 	mvi r17,4                                      
        the_api <= OBJECTS_APIS_LAST;                                 
        the_api++ ) {                                                 
                                                                      
    if ( _Objects_Information_table[ the_api ] ) {                    
 80032a0:	29 82 00 00 	lw r2,(r12+0)                                  
 80032a4:	44 40 00 27 	be r2,r0,8003340 <pthread_key_create+0x114>    <== NEVER TAKEN
            true,                                                     
            INTERNAL_ERROR_IMPLEMENTATION_KEY_CREATE_INCONSISTENCY    
          );                                                          
      #endif                                                          
      bytes_to_allocate = sizeof( void * ) *                          
        (_Objects_Information_table[ the_api ][ 1 ]->maximum + 1);    
 80032a8:	28 42 00 04 	lw r2,(r2+4)                                   
 80032ac:	2c 4b 00 10 	lhu r11,(r2+16)                                
 80032b0:	35 6b 00 01 	addi r11,r11,1                                 
            INTERNAL_ERROR_CORE,                                      
            true,                                                     
            INTERNAL_ERROR_IMPLEMENTATION_KEY_CREATE_INCONSISTENCY    
          );                                                          
      #endif                                                          
      bytes_to_allocate = sizeof( void * ) *                          
 80032b4:	b5 6b 58 00 	add r11,r11,r11                                
 80032b8:	b5 6b 58 00 	add r11,r11,r11                                
        (_Objects_Information_table[ the_api ][ 1 ]->maximum + 1);    
      table = _Workspace_Allocate( bytes_to_allocate );               
 80032bc:	b9 60 08 00 	mv r1,r11                                      
 80032c0:	f8 00 13 32 	calli 8007f88 <_Workspace_Allocate>            
        _Thread_Enable_dispatch();                                    
        return ENOMEM;                                                
      }                                                               
                                                                      
      the_key->Values[ the_api ] = table;                             
      memset( table, '\0', bytes_to_allocate );                       
 80032c4:	34 02 00 00 	mvi r2,0                                       
 80032c8:	b9 60 18 00 	mv r3,r11                                      
          );                                                          
      #endif                                                          
      bytes_to_allocate = sizeof( void * ) *                          
        (_Objects_Information_table[ the_api ][ 1 ]->maximum + 1);    
      table = _Workspace_Allocate( bytes_to_allocate );               
      if ( !table ) {                                                 
 80032cc:	44 20 00 22 	be r1,r0,8003354 <pthread_key_create+0x128>    
        _POSIX_Keys_Free( the_key );                                  
        _Thread_Enable_dispatch();                                    
        return ENOMEM;                                                
      }                                                               
                                                                      
      the_key->Values[ the_api ] = table;                             
 80032d0:	59 e1 00 18 	sw (r15+24),r1                                 
      memset( table, '\0', bytes_to_allocate );                       
 80032d4:	f8 00 2d 2a 	calli 800e77c <memset>                         
   *  NOTE: Currently RTEMS Classic API tasks are always enabled.     
   */                                                                 
                                                                      
  for ( the_api = 1;                                                  
        the_api <= OBJECTS_APIS_LAST;                                 
        the_api++ ) {                                                 
 80032d8:	35 ce 00 01 	addi r14,r14,1                                 
 80032dc:	35 8c 00 04 	addi r12,r12,4                                 
 80032e0:	35 ef 00 04 	addi r15,r15,4                                 
   *  APIs are optional.                                              
   *                                                                  
   *  NOTE: Currently RTEMS Classic API tasks are always enabled.     
   */                                                                 
                                                                      
  for ( the_api = 1;                                                  
 80032e4:	5d d1 ff ef 	bne r14,r17,80032a0 <pthread_key_create+0x74>  
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
 80032e8:	29 a3 00 08 	lw r3,(r13+8)                                  
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 80032ec:	2a 01 00 1c 	lw r1,(r16+28)                                 
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 80032f0:	20 62 ff ff 	andi r2,r3,0xffff                              
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 80032f4:	b4 42 10 00 	add r2,r2,r2                                   
 80032f8:	b4 42 10 00 	add r2,r2,r2                                   
 80032fc:	b4 22 10 00 	add r2,r1,r2                                   
 8003300:	58 4d 00 00 	sw (r2+0),r13                                  
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  /* ASSERT: information->is_string == false */                       
  the_object->name.name_u32 = name;                                   
 8003304:	59 a0 00 0c 	sw (r13+12),r0                                 
                                                                      
  }                                                                   
                                                                      
  _Objects_Open_u32( &_POSIX_Keys_Information, &the_key->Object, 0 ); 
                                                                      
  *key = the_key->Object.id;                                          
 8003308:	5a 43 00 00 	sw (r18+0),r3                                  
                                                                      
  _Thread_Enable_dispatch();                                          
 800330c:	f8 00 0c b3 	calli 80065d8 <_Thread_Enable_dispatch>        
                                                                      
  return 0;                                                           
 8003310:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 8003314:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003318:	2b 8b 00 24 	lw r11,(sp+36)                                 
 800331c:	2b 8c 00 20 	lw r12,(sp+32)                                 
 8003320:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 8003324:	2b 8e 00 18 	lw r14,(sp+24)                                 
 8003328:	2b 8f 00 14 	lw r15,(sp+20)                                 
 800332c:	2b 90 00 10 	lw r16,(sp+16)                                 
 8003330:	2b 91 00 0c 	lw r17,(sp+12)                                 
 8003334:	2b 92 00 08 	lw r18,(sp+8)                                  
 8003338:	37 9c 00 24 	addi sp,sp,36                                  
 800333c:	c3 a0 00 00 	ret                                            
      }                                                               
                                                                      
      the_key->Values[ the_api ] = table;                             
      memset( table, '\0', bytes_to_allocate );                       
    } else {                                                          
      the_key->Values[ the_api ] = NULL;                              
 8003340:	59 e0 00 18 	sw (r15+24),r0                                 <== NOT EXECUTED
 8003344:	e3 ff ff e5 	bi 80032d8 <pthread_key_create+0xac>           <== NOT EXECUTED
  _Thread_Disable_dispatch();                                         
                                                                      
  the_key = _POSIX_Keys_Allocate();                                   
                                                                      
  if ( !the_key ) {                                                   
    _Thread_Enable_dispatch();                                        
 8003348:	f8 00 0c a4 	calli 80065d8 <_Thread_Enable_dispatch>        
    return EAGAIN;                                                    
 800334c:	34 01 00 0b 	mvi r1,11                                      
 8003350:	e3 ff ff f1 	bi 8003314 <pthread_key_create+0xe8>           
      #endif                                                          
      bytes_to_allocate = sizeof( void * ) *                          
        (_Objects_Information_table[ the_api ][ 1 ]->maximum + 1);    
      table = _Workspace_Allocate( bytes_to_allocate );               
      if ( !table ) {                                                 
        for ( --the_api;                                              
 8003354:	35 cb ff ff 	addi r11,r14,-1                                
 8003358:	45 61 00 0b 	be r11,r1,8003384 <pthread_key_create+0x158>   
int	_EXFUN(pthread_once,                                              
	(pthread_once_t *__once_control, void (*__init_routine)(void)));     
                                                                      
/* Thread-Specific Data Key Create, P1003.1c/Draft 10, p. 163 */      
                                                                      
int	_EXFUN(pthread_key_create,                                        
 800335c:	35 ce 00 03 	addi r14,r14,3                                 
 8003360:	b5 ce 70 00 	add r14,r14,r14                                
 8003364:	b5 ce 70 00 	add r14,r14,r14                                
 8003368:	b5 ae 60 00 	add r12,r13,r14                                
 800336c:	35 8c 00 04 	addi r12,r12,4                                 
              the_api >= 1;                                           
              the_api-- )                                             
          _Workspace_Free( the_key->Values[ the_api ] );              
 8003370:	29 81 00 00 	lw r1,(r12+0)                                  
        (_Objects_Information_table[ the_api ][ 1 ]->maximum + 1);    
      table = _Workspace_Allocate( bytes_to_allocate );               
      if ( !table ) {                                                 
        for ( --the_api;                                              
              the_api >= 1;                                           
              the_api-- )                                             
 8003374:	35 6b ff ff 	addi r11,r11,-1                                
 8003378:	35 8c ff fc 	addi r12,r12,-4                                
          _Workspace_Free( the_key->Values[ the_api ] );              
 800337c:	f8 00 13 0e 	calli 8007fb4 <_Workspace_Free>                
      #endif                                                          
      bytes_to_allocate = sizeof( void * ) *                          
        (_Objects_Information_table[ the_api ][ 1 ]->maximum + 1);    
      table = _Workspace_Allocate( bytes_to_allocate );               
      if ( !table ) {                                                 
        for ( --the_api;                                              
 8003380:	5d 60 ff fc 	bne r11,r0,8003370 <pthread_key_create+0x144>  
 */                                                                   
RTEMS_INLINE_ROUTINE void _POSIX_Keys_Free (                          
  POSIX_Keys_Control *the_key                                         
)                                                                     
{                                                                     
  _Objects_Free( &_POSIX_Keys_Information, &the_key->Object );        
 8003384:	ba 00 08 00 	mv r1,r16                                      
 8003388:	b9 a0 10 00 	mv r2,r13                                      
 800338c:	f8 00 09 9b 	calli 80059f8 <_Objects_Free>                  
              the_api >= 1;                                           
              the_api-- )                                             
          _Workspace_Free( the_key->Values[ the_api ] );              
                                                                      
        _POSIX_Keys_Free( the_key );                                  
        _Thread_Enable_dispatch();                                    
 8003390:	f8 00 0c 92 	calli 80065d8 <_Thread_Enable_dispatch>        
        return ENOMEM;                                                
 8003394:	34 01 00 0c 	mvi r1,12                                      
 8003398:	e3 ff ff df 	bi 8003314 <pthread_key_create+0xe8>           
                                                                      

0800339c <pthread_key_delete>: */ int pthread_key_delete( pthread_key_t key ) {
 800339c:	37 9c ff e8 	addi sp,sp,-24                                 
 80033a0:	5b 8b 00 14 	sw (sp+20),r11                                 
 80033a4:	5b 8c 00 10 	sw (sp+16),r12                                 
 80033a8:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80033ac:	5b 8e 00 08 	sw (sp+8),r14                                  
 80033b0:	5b 9d 00 04 	sw (sp+4),ra                                   
  pthread_key_t      id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (POSIX_Keys_Control *)                                       
    _Objects_Get( &_POSIX_Keys_Information, (Objects_Id) id, location );
 80033b4:	78 0b 08 01 	mvhi r11,0x801                                 
 80033b8:	39 6b 7c 74 	ori r11,r11,0x7c74                             
 80033bc:	b8 20 10 00 	mv r2,r1                                       
 80033c0:	37 83 00 18 	addi r3,sp,24                                  
 80033c4:	b9 60 08 00 	mv r1,r11                                      
 80033c8:	f8 00 0a 04 	calli 8005bd8 <_Objects_Get>                   
 80033cc:	b8 20 70 00 	mv r14,r1                                      
  register POSIX_Keys_Control *the_key;                               
  Objects_Locations            location;                              
  uint32_t                     the_api;                               
                                                                      
  the_key = _POSIX_Keys_Get( key, &location );                        
  switch ( location ) {                                               
 80033d0:	2b 81 00 18 	lw r1,(sp+24)                                  
 80033d4:	44 20 00 09 	be r1,r0,80033f8 <pthread_key_delete+0x5c>     
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return EINVAL;                                                      
 80033d8:	34 01 00 16 	mvi r1,22                                      
}                                                                     
 80033dc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80033e0:	2b 8b 00 14 	lw r11,(sp+20)                                 
 80033e4:	2b 8c 00 10 	lw r12,(sp+16)                                 
 80033e8:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 80033ec:	2b 8e 00 08 	lw r14,(sp+8)                                  
 80033f0:	37 9c 00 18 	addi sp,sp,24                                  
 80033f4:	c3 a0 00 00 	ret                                            
                                                                      
  the_key = _POSIX_Keys_Get( key, &location );                        
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      _Objects_Close( &_POSIX_Keys_Information, &the_key->Object );   
 80033f8:	b9 60 08 00 	mv r1,r11                                      
 80033fc:	b9 c0 10 00 	mv r2,r14                                      
 8003400:	f8 00 08 a6 	calli 8005698 <_Objects_Close>                 
 8003404:	b9 c0 68 00 	mv r13,r14                                     
 8003408:	34 0c 00 03 	mvi r12,3                                      
                                                                      
      for ( the_api = 1; the_api <= OBJECTS_APIS_LAST; the_api++ )    
        if ( the_key->Values[ the_api ] )                             
 800340c:	29 a3 00 18 	lw r3,(r13+24)                                 
          _Workspace_Free( the_key->Values[ the_api ] );              
 8003410:	35 8c ff ff 	addi r12,r12,-1                                
 8003414:	35 ad 00 04 	addi r13,r13,4                                 
 8003418:	b8 60 08 00 	mv r1,r3                                       
                                                                      
    case OBJECTS_LOCAL:                                               
      _Objects_Close( &_POSIX_Keys_Information, &the_key->Object );   
                                                                      
      for ( the_api = 1; the_api <= OBJECTS_APIS_LAST; the_api++ )    
        if ( the_key->Values[ the_api ] )                             
 800341c:	44 60 00 02 	be r3,r0,8003424 <pthread_key_delete+0x88>     <== NEVER TAKEN
          _Workspace_Free( the_key->Values[ the_api ] );              
 8003420:	f8 00 12 e5 	calli 8007fb4 <_Workspace_Free>                
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      _Objects_Close( &_POSIX_Keys_Information, &the_key->Object );   
                                                                      
      for ( the_api = 1; the_api <= OBJECTS_APIS_LAST; the_api++ )    
 8003424:	5d 80 ff fa 	bne r12,r0,800340c <pthread_key_delete+0x70>   
 */                                                                   
RTEMS_INLINE_ROUTINE void _POSIX_Keys_Free (                          
  POSIX_Keys_Control *the_key                                         
)                                                                     
{                                                                     
  _Objects_Free( &_POSIX_Keys_Information, &the_key->Object );        
 8003428:	b9 60 08 00 	mv r1,r11                                      
 800342c:	b9 c0 10 00 	mv r2,r14                                      
 8003430:	f8 00 09 72 	calli 80059f8 <_Objects_Free>                  
       *  NOTE:  The destructor is not called and it is the responsibility
       *         of the application to free the memory.               
       */                                                             
                                                                      
      _POSIX_Keys_Free( the_key );                                    
      _Thread_Enable_dispatch();                                      
 8003434:	f8 00 0c 69 	calli 80065d8 <_Thread_Enable_dispatch>        
      return 0;                                                       
 8003438:	34 01 00 00 	mvi r1,0                                       
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return EINVAL;                                                      
}                                                                     
 800343c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003440:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8003444:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8003448:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800344c:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8003450:	37 9c 00 18 	addi sp,sp,24                                  
 8003454:	c3 a0 00 00 	ret                                            
                                                                      

08002c10 <pthread_mutexattr_gettype>: const pthread_mutexattr_t *attr, int *type ) { if ( !attr ) return EINVAL;
 8002c10:	34 03 00 16 	mvi r3,22                                      
int pthread_mutexattr_gettype(                                        
  const pthread_mutexattr_t *attr,                                    
  int                       *type                                     
)                                                                     
{                                                                     
  if ( !attr )                                                        
 8002c14:	44 20 00 07 	be r1,r0,8002c30 <pthread_mutexattr_gettype+0x20>
    return EINVAL;                                                    
                                                                      
  if ( !attr->is_initialized )                                        
 8002c18:	28 24 00 00 	lw r4,(r1+0)                                   
 8002c1c:	44 80 00 05 	be r4,r0,8002c30 <pthread_mutexattr_gettype+0x20>
    return EINVAL;                                                    
                                                                      
  if ( !type )                                                        
 8002c20:	44 40 00 04 	be r2,r0,8002c30 <pthread_mutexattr_gettype+0x20><== NEVER TAKEN
    return EINVAL;                                                    
                                                                      
  *type = attr->type;                                                 
 8002c24:	28 21 00 10 	lw r1,(r1+16)                                  
  return 0;                                                           
 8002c28:	34 03 00 00 	mvi r3,0                                       
    return EINVAL;                                                    
                                                                      
  if ( !type )                                                        
    return EINVAL;                                                    
                                                                      
  *type = attr->type;                                                 
 8002c2c:	58 41 00 00 	sw (r2+0),r1                                   
  return 0;                                                           
}                                                                     
 8002c30:	b8 60 08 00 	mv r1,r3                                       
 8002c34:	c3 a0 00 00 	ret                                            
                                                                      

080054c4 <pthread_mutexattr_setpshared>: pthread_mutexattr_t *attr, int pshared ) { if ( !attr || !attr->is_initialized ) return EINVAL;
 80054c4:	34 03 00 16 	mvi r3,22                                      
int pthread_mutexattr_setpshared(                                     
  pthread_mutexattr_t *attr,                                          
  int                  pshared                                        
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
 80054c8:	44 20 00 07 	be r1,r0,80054e4 <pthread_mutexattr_setpshared+0x20>
 80054cc:	28 24 00 00 	lw r4,(r1+0)                                   
 80054d0:	44 80 00 05 	be r4,r0,80054e4 <pthread_mutexattr_setpshared+0x20>
    return EINVAL;                                                    
                                                                      
  switch ( pshared ) {                                                
 80054d4:	34 04 00 01 	mvi r4,1                                       
 80054d8:	54 44 00 03 	bgu r2,r4,80054e4 <pthread_mutexattr_setpshared+0x20><== NEVER TAKEN
    case PTHREAD_PROCESS_SHARED:                                      
    case PTHREAD_PROCESS_PRIVATE:                                     
      attr->process_shared = pshared;                                 
 80054dc:	58 22 00 04 	sw (r1+4),r2                                   
      return 0;                                                       
 80054e0:	34 03 00 00 	mvi r3,0                                       
                                                                      
    default:                                                          
      return EINVAL;                                                  
  }                                                                   
}                                                                     
 80054e4:	b8 60 08 00 	mv r1,r3                                       
 80054e8:	c3 a0 00 00 	ret                                            
                                                                      

08002c84 <pthread_mutexattr_settype>: pthread_mutexattr_t *attr, int type ) { if ( !attr || !attr->is_initialized ) return EINVAL;
 8002c84:	34 03 00 16 	mvi r3,22                                      
int pthread_mutexattr_settype(                                        
  pthread_mutexattr_t *attr,                                          
  int                  type                                           
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
 8002c88:	44 20 00 07 	be r1,r0,8002ca4 <pthread_mutexattr_settype+0x20>
 8002c8c:	28 24 00 00 	lw r4,(r1+0)                                   
 8002c90:	44 80 00 05 	be r4,r0,8002ca4 <pthread_mutexattr_settype+0x20><== NEVER TAKEN
    return EINVAL;                                                    
                                                                      
  switch ( type ) {                                                   
 8002c94:	34 04 00 03 	mvi r4,3                                       
 8002c98:	54 44 00 03 	bgu r2,r4,8002ca4 <pthread_mutexattr_settype+0x20>
    case PTHREAD_MUTEX_NORMAL:                                        
    case PTHREAD_MUTEX_RECURSIVE:                                     
    case PTHREAD_MUTEX_ERRORCHECK:                                    
    case PTHREAD_MUTEX_DEFAULT:                                       
      attr->type = type;                                              
 8002c9c:	58 22 00 10 	sw (r1+16),r2                                  
      return 0;                                                       
 8002ca0:	34 03 00 00 	mvi r3,0                                       
                                                                      
    default:                                                          
      return EINVAL;                                                  
  }                                                                   
}                                                                     
 8002ca4:	b8 60 08 00 	mv r1,r3                                       
 8002ca8:	c3 a0 00 00 	ret                                            
                                                                      

08003d0c <pthread_once>: int pthread_once( pthread_once_t *once_control, void (*init_routine)(void) ) {
 8003d0c:	37 9c ff ec 	addi sp,sp,-20                                 
 8003d10:	5b 8b 00 10 	sw (sp+16),r11                                 
 8003d14:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8003d18:	5b 8d 00 08 	sw (sp+8),r13                                  
 8003d1c:	5b 9d 00 04 	sw (sp+4),ra                                   
  if ( !once_control || !init_routine )                               
 8003d20:	64 43 00 00 	cmpei r3,r2,0                                  
                                                                      
int pthread_once(                                                     
  pthread_once_t  *once_control,                                      
  void           (*init_routine)(void)                                
)                                                                     
{                                                                     
 8003d24:	b8 40 60 00 	mv r12,r2                                      
  if ( !once_control || !init_routine )                               
 8003d28:	64 22 00 00 	cmpei r2,r1,0                                  
                                                                      
int pthread_once(                                                     
  pthread_once_t  *once_control,                                      
  void           (*init_routine)(void)                                
)                                                                     
{                                                                     
 8003d2c:	b8 20 58 00 	mv r11,r1                                      
  if ( !once_control || !init_routine )                               
 8003d30:	b8 62 18 00 	or r3,r3,r2                                    
    return EINVAL;                                                    
 8003d34:	34 01 00 16 	mvi r1,22                                      
int pthread_once(                                                     
  pthread_once_t  *once_control,                                      
  void           (*init_routine)(void)                                
)                                                                     
{                                                                     
  if ( !once_control || !init_routine )                               
 8003d38:	5c 60 00 04 	bne r3,r0,8003d48 <pthread_once+0x3c>          
    return EINVAL;                                                    
                                                                      
  if ( !once_control->init_executed ) {                               
 8003d3c:	29 6d 00 04 	lw r13,(r11+4)                                 
      once_control->init_executed = true;                             
      (*init_routine)();                                              
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
  }                                                                   
  return 0;                                                           
 8003d40:	34 01 00 00 	mvi r1,0                                       
)                                                                     
{                                                                     
  if ( !once_control || !init_routine )                               
    return EINVAL;                                                    
                                                                      
  if ( !once_control->init_executed ) {                               
 8003d44:	45 a3 00 07 	be r13,r3,8003d60 <pthread_once+0x54>          
      (*init_routine)();                                              
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
  }                                                                   
  return 0;                                                           
}                                                                     
 8003d48:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003d4c:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8003d50:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8003d54:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8003d58:	37 9c 00 14 	addi sp,sp,20                                  
 8003d5c:	c3 a0 00 00 	ret                                            
  if ( !once_control || !init_routine )                               
    return EINVAL;                                                    
                                                                      
  if ( !once_control->init_executed ) {                               
    rtems_mode saveMode;                                              
    rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 
 8003d60:	34 01 01 00 	mvi r1,256                                     
 8003d64:	34 02 01 00 	mvi r2,256                                     
 8003d68:	37 83 00 14 	addi r3,sp,20                                  
 8003d6c:	f8 00 01 a8 	calli 800440c <rtems_task_mode>                
    if ( !once_control->init_executed ) {                             
 8003d70:	29 61 00 04 	lw r1,(r11+4)                                  
 8003d74:	44 2d 00 0c 	be r1,r13,8003da4 <pthread_once+0x98>          <== ALWAYS TAKEN
      once_control->is_initialized = true;                            
      once_control->init_executed = true;                             
      (*init_routine)();                                              
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
 8003d78:	2b 81 00 14 	lw r1,(sp+20)                                  
 8003d7c:	34 02 01 00 	mvi r2,256                                     
 8003d80:	37 83 00 14 	addi r3,sp,20                                  
 8003d84:	f8 00 01 a2 	calli 800440c <rtems_task_mode>                
  }                                                                   
  return 0;                                                           
 8003d88:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 8003d8c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003d90:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8003d94:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8003d98:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8003d9c:	37 9c 00 14 	addi sp,sp,20                                  
 8003da0:	c3 a0 00 00 	ret                                            
                                                                      
  if ( !once_control->init_executed ) {                               
    rtems_mode saveMode;                                              
    rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 
    if ( !once_control->init_executed ) {                             
      once_control->is_initialized = true;                            
 8003da4:	34 01 00 01 	mvi r1,1                                       
 8003da8:	59 61 00 00 	sw (r11+0),r1                                  
      once_control->init_executed = true;                             
 8003dac:	59 61 00 04 	sw (r11+4),r1                                  
      (*init_routine)();                                              
 8003db0:	d9 80 00 00 	call r12                                       
 8003db4:	e3 ff ff f1 	bi 8003d78 <pthread_once+0x6c>                 
                                                                      

080043c8 <pthread_rwlock_init>: int pthread_rwlock_init( pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr ) {
 80043c8:	37 9c ff e0 	addi sp,sp,-32                                 
 80043cc:	5b 8b 00 14 	sw (sp+20),r11                                 
 80043d0:	5b 8c 00 10 	sw (sp+16),r12                                 
 80043d4:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80043d8:	5b 8e 00 08 	sw (sp+8),r14                                  
 80043dc:	5b 9d 00 04 	sw (sp+4),ra                                   
 80043e0:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  /*                                                                  
   *  Error check parameters                                          
   */                                                                 
  if ( !rwlock )                                                      
    return EINVAL;                                                    
 80043e4:	34 01 00 16 	mvi r1,22                                      
  const pthread_rwlockattr_t  *the_attr;                              
                                                                      
  /*                                                                  
   *  Error check parameters                                          
   */                                                                 
  if ( !rwlock )                                                      
 80043e8:	45 60 00 07 	be r11,r0,8004404 <pthread_rwlock_init+0x3c>   
    return EINVAL;                                                    
                                                                      
  /*                                                                  
   * If the user passed in NULL, use the default attributes           
   */                                                                 
  if ( attr ) {                                                       
 80043ec:	44 40 00 30 	be r2,r0,80044ac <pthread_rwlock_init+0xe4>    
  }                                                                   
                                                                      
  /*                                                                  
   * Now start error checking the attributes that we are going to use 
   */                                                                 
  if ( !the_attr->is_initialized )                                    
 80043f0:	28 43 00 00 	lw r3,(r2+0)                                   
    return EINVAL;                                                    
 80043f4:	34 01 00 16 	mvi r1,22                                      
  }                                                                   
                                                                      
  /*                                                                  
   * Now start error checking the attributes that we are going to use 
   */                                                                 
  if ( !the_attr->is_initialized )                                    
 80043f8:	44 60 00 03 	be r3,r0,8004404 <pthread_rwlock_init+0x3c>    <== NEVER TAKEN
    return EINVAL;                                                    
                                                                      
  switch ( the_attr->process_shared ) {                               
 80043fc:	28 4e 00 04 	lw r14,(r2+4)                                  
 8004400:	45 c0 00 08 	be r14,r0,8004420 <pthread_rwlock_init+0x58>   <== ALWAYS TAKEN
                                                                      
  *rwlock = the_rwlock->Object.id;                                    
                                                                      
  _Thread_Enable_dispatch();                                          
  return 0;                                                           
}                                                                     
 8004404:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004408:	2b 8b 00 14 	lw r11,(sp+20)                                 
 800440c:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8004410:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8004414:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8004418:	37 9c 00 20 	addi sp,sp,32                                  
 800441c:	c3 a0 00 00 	ret                                            
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
 8004420:	78 01 08 01 	mvhi r1,0x801                                  
 8004424:	38 21 88 6c 	ori r1,r1,0x886c                               
 8004428:	28 22 00 00 	lw r2,(r1+0)                                   
 800442c:	34 42 00 01 	addi r2,r2,1                                   
 8004430:	58 22 00 00 	sw (r1+0),r2                                   
 *  the inactive chain of free RWLock control blocks.                 
 */                                                                   
RTEMS_INLINE_ROUTINE POSIX_RWLock_Control *_POSIX_RWLock_Allocate( void )
{                                                                     
  return (POSIX_RWLock_Control *)                                     
    _Objects_Allocate( &_POSIX_RWLock_Information );                  
 8004434:	78 0d 08 01 	mvhi r13,0x801                                 
 8004438:	39 ad 8a 0c 	ori r13,r13,0x8a0c                             
 800443c:	b9 a0 08 00 	mv r1,r13                                      
 8004440:	f8 00 0a 0d 	calli 8006c74 <_Objects_Allocate>              
 8004444:	b8 20 60 00 	mv r12,r1                                      
   */                                                                 
  _Thread_Disable_dispatch();             /* prevents deletion */     
                                                                      
  the_rwlock = _POSIX_RWLock_Allocate();                              
                                                                      
  if ( !the_rwlock ) {                                                
 8004448:	44 2e 00 16 	be r1,r14,80044a0 <pthread_rwlock_init+0xd8>   
    _Thread_Enable_dispatch();                                        
    return EAGAIN;                                                    
  }                                                                   
                                                                      
  _CORE_RWLock_Initialize( &the_rwlock->RWLock, &the_attributes );    
 800444c:	37 82 00 20 	addi r2,sp,32                                  
 8004450:	34 21 00 10 	addi r1,r1,16                                  
 8004454:	f8 00 07 21 	calli 80060d8 <_CORE_RWLock_Initialize>        
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
 8004458:	29 82 00 08 	lw r2,(r12+8)                                  
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 800445c:	29 a3 00 1c 	lw r3,(r13+28)                                 
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 8004460:	20 41 ff ff 	andi r1,r2,0xffff                              
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 8004464:	b4 21 08 00 	add r1,r1,r1                                   
 8004468:	b4 21 08 00 	add r1,r1,r1                                   
 800446c:	b4 61 08 00 	add r1,r3,r1                                   
 8004470:	58 2c 00 00 	sw (r1+0),r12                                  
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  /* ASSERT: information->is_string == false */                       
  the_object->name.name_u32 = name;                                   
 8004474:	59 80 00 0c 	sw (r12+12),r0                                 
    &_POSIX_RWLock_Information,                                       
    &the_rwlock->Object,                                              
    0                                                                 
  );                                                                  
                                                                      
  *rwlock = the_rwlock->Object.id;                                    
 8004478:	59 62 00 00 	sw (r11+0),r2                                  
                                                                      
  _Thread_Enable_dispatch();                                          
 800447c:	f8 00 0d 9d 	calli 8007af0 <_Thread_Enable_dispatch>        
  return 0;                                                           
 8004480:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 8004484:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004488:	2b 8b 00 14 	lw r11,(sp+20)                                 
 800448c:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8004490:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8004494:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8004498:	37 9c 00 20 	addi sp,sp,32                                  
 800449c:	c3 a0 00 00 	ret                                            
  _Thread_Disable_dispatch();             /* prevents deletion */     
                                                                      
  the_rwlock = _POSIX_RWLock_Allocate();                              
                                                                      
  if ( !the_rwlock ) {                                                
    _Thread_Enable_dispatch();                                        
 80044a0:	f8 00 0d 94 	calli 8007af0 <_Thread_Enable_dispatch>        
    return EAGAIN;                                                    
 80044a4:	34 01 00 0b 	mvi r1,11                                      
 80044a8:	e3 ff ff d7 	bi 8004404 <pthread_rwlock_init+0x3c>          
   * If the user passed in NULL, use the default attributes           
   */                                                                 
  if ( attr ) {                                                       
    the_attr = attr;                                                  
  } else {                                                            
    (void) pthread_rwlockattr_init( &default_attr );                  
 80044ac:	37 8c 00 18 	addi r12,sp,24                                 
 80044b0:	b9 80 08 00 	mv r1,r12                                      
 80044b4:	f8 00 02 e8 	calli 8005054 <pthread_rwlockattr_init>        
    the_attr = &default_attr;                                         
 80044b8:	b9 80 10 00 	mv r2,r12                                      
 80044bc:	e3 ff ff cd 	bi 80043f0 <pthread_rwlock_init+0x28>          
                                                                      

08004544 <pthread_rwlock_timedrdlock>: int pthread_rwlock_timedrdlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) {
 8004544:	37 9c ff e0 	addi sp,sp,-32                                 
 8004548:	5b 8b 00 18 	sw (sp+24),r11                                 
 800454c:	5b 8c 00 14 	sw (sp+20),r12                                 
 8004550:	5b 8d 00 10 	sw (sp+16),r13                                 
 8004554:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8004558:	5b 8f 00 08 	sw (sp+8),r15                                  
 800455c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004560:	b8 20 58 00 	mv r11,r1                                      
  Watchdog_Interval                            ticks;                 
  bool                                         do_wait = true;        
  POSIX_Absolute_timeout_conversion_results_t  status;                
                                                                      
  if ( !rwlock )                                                      
    return EINVAL;                                                    
 8004564:	34 0c 00 16 	mvi r12,22                                     
                                                                      
int pthread_rwlock_timedrdlock(                                       
  pthread_rwlock_t      *rwlock,                                      
  const struct timespec *abstime                                      
)                                                                     
{                                                                     
 8004568:	b8 40 08 00 	mv r1,r2                                       
  Objects_Locations                            location;              
  Watchdog_Interval                            ticks;                 
  bool                                         do_wait = true;        
  POSIX_Absolute_timeout_conversion_results_t  status;                
                                                                      
  if ( !rwlock )                                                      
 800456c:	45 60 00 0c 	be r11,r0,800459c <pthread_rwlock_timedrdlock+0x58>
   *                                                                  
   *  If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,                
   *  POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
   *  then we should not wait.                                        
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
 8004570:	37 82 00 1c 	addi r2,sp,28                                  
 8004574:	f8 00 1c a1 	calli 800b7f8 <_POSIX_Absolute_timeout_to_ticks>
 8004578:	78 03 08 01 	mvhi r3,0x801                                  
 800457c:	29 62 00 00 	lw r2,(r11+0)                                  
 8004580:	b8 20 68 00 	mv r13,r1                                      
 8004584:	b8 60 08 00 	mv r1,r3                                       
 8004588:	38 21 8a 0c 	ori r1,r1,0x8a0c                               
 800458c:	37 83 00 20 	addi r3,sp,32                                  
 8004590:	f8 00 0b 0b 	calli 80071bc <_Objects_Get>                   
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
    do_wait = false;                                                  
                                                                      
  the_rwlock = _POSIX_RWLock_Get( rwlock, &location );                
  switch ( location ) {                                               
 8004594:	2b 8e 00 20 	lw r14,(sp+32)                                 
 8004598:	45 c0 00 0a 	be r14,r0,80045c0 <pthread_rwlock_timedrdlock+0x7c>
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return EINVAL;                                                      
}                                                                     
 800459c:	b9 80 08 00 	mv r1,r12                                      
 80045a0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80045a4:	2b 8b 00 18 	lw r11,(sp+24)                                 
 80045a8:	2b 8c 00 14 	lw r12,(sp+20)                                 
 80045ac:	2b 8d 00 10 	lw r13,(sp+16)                                 
 80045b0:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 80045b4:	2b 8f 00 08 	lw r15,(sp+8)                                  
 80045b8:	37 9c 00 20 	addi sp,sp,32                                  
 80045bc:	c3 a0 00 00 	ret                                            
int	_EXFUN(pthread_rwlock_init,                                       
	(pthread_rwlock_t *__rwlock, _CONST pthread_rwlockattr_t *__attr));  
int	_EXFUN(pthread_rwlock_destroy, (pthread_rwlock_t *__rwlock));     
int	_EXFUN(pthread_rwlock_rdlock,(pthread_rwlock_t *__rwlock));       
int	_EXFUN(pthread_rwlock_tryrdlock,(pthread_rwlock_t *__rwlock));    
int	_EXFUN(pthread_rwlock_timedrdlock,                                
 80045c0:	65 af 00 03 	cmpei r15,r13,3                                
  the_rwlock = _POSIX_RWLock_Get( rwlock, &location );                
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
                                                                      
      _CORE_RWLock_Obtain_for_reading(                                
 80045c4:	29 62 00 00 	lw r2,(r11+0)                                  
 80045c8:	2b 84 00 1c 	lw r4,(sp+28)                                  
 80045cc:	34 21 00 10 	addi r1,r1,16                                  
 80045d0:	b9 e0 18 00 	mv r3,r15                                      
 80045d4:	34 05 00 00 	mvi r5,0                                       
 80045d8:	f8 00 06 cd 	calli 800610c <_CORE_RWLock_Obtain_for_reading>
	do_wait,                                                             
	ticks,                                                               
	NULL                                                                 
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
 80045dc:	f8 00 0d 45 	calli 8007af0 <_Thread_Enable_dispatch>        
      if ( !do_wait ) {                                               
 80045e0:	5d ee 00 0e 	bne r15,r14,8004618 <pthread_rwlock_timedrdlock+0xd4>
        if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) {
 80045e4:	78 01 08 01 	mvhi r1,0x801                                  
 80045e8:	38 21 8d 44 	ori r1,r1,0x8d44                               
 80045ec:	28 21 00 0c 	lw r1,(r1+12)                                  
 80045f0:	34 02 00 02 	mvi r2,2                                       
 80045f4:	28 21 00 34 	lw r1,(r1+52)                                  
 80045f8:	44 22 00 04 	be r1,r2,8004608 <pthread_rwlock_timedrdlock+0xc4>
	      break;                                                         
	  }                                                                  
        }                                                             
      }                                                               
                                                                      
      return _POSIX_RWLock_Translate_core_RWLock_return_code(         
 80045fc:	f8 00 00 46 	calli 8004714 <_POSIX_RWLock_Translate_core_RWLock_return_code>
 8004600:	b8 20 60 00 	mv r12,r1                                      
 8004604:	e3 ff ff e6 	bi 800459c <pthread_rwlock_timedrdlock+0x58>   
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      if ( !do_wait ) {                                               
        if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) {
	  switch (status) {                                                  
 8004608:	45 af ff e5 	be r13,r15,800459c <pthread_rwlock_timedrdlock+0x58><== NEVER TAKEN
 800460c:	55 a1 ff fc 	bgu r13,r1,80045fc <pthread_rwlock_timedrdlock+0xb8><== NEVER TAKEN
	    case POSIX_ABSOLUTE_TIMEOUT_INVALID:                             
	      return EINVAL;                                                 
	    case POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST:                          
	    case POSIX_ABSOLUTE_TIMEOUT_IS_NOW:                              
	      return ETIMEDOUT;                                              
 8004610:	34 0c 00 74 	mvi r12,116                                    
 8004614:	e3 ff ff e2 	bi 800459c <pthread_rwlock_timedrdlock+0x58>   
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      if ( !do_wait ) {                                               
        if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) {
	  switch (status) {                                                  
 8004618:	78 01 08 01 	mvhi r1,0x801                                  
 800461c:	38 21 8d 44 	ori r1,r1,0x8d44                               
 8004620:	28 21 00 0c 	lw r1,(r1+12)                                  
 8004624:	28 21 00 34 	lw r1,(r1+52)                                  
 8004628:	e3 ff ff f5 	bi 80045fc <pthread_rwlock_timedrdlock+0xb8>   
                                                                      

0800462c <pthread_rwlock_timedwrlock>: int pthread_rwlock_timedwrlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) {
 800462c:	37 9c ff e0 	addi sp,sp,-32                                 
 8004630:	5b 8b 00 18 	sw (sp+24),r11                                 
 8004634:	5b 8c 00 14 	sw (sp+20),r12                                 
 8004638:	5b 8d 00 10 	sw (sp+16),r13                                 
 800463c:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8004640:	5b 8f 00 08 	sw (sp+8),r15                                  
 8004644:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004648:	b8 20 58 00 	mv r11,r1                                      
  Watchdog_Interval                            ticks;                 
  bool                                         do_wait = true;        
  POSIX_Absolute_timeout_conversion_results_t  status;                
                                                                      
  if ( !rwlock )                                                      
    return EINVAL;                                                    
 800464c:	34 0c 00 16 	mvi r12,22                                     
                                                                      
int pthread_rwlock_timedwrlock(                                       
  pthread_rwlock_t      *rwlock,                                      
  const struct timespec *abstime                                      
)                                                                     
{                                                                     
 8004650:	b8 40 08 00 	mv r1,r2                                       
  Objects_Locations                            location;              
  Watchdog_Interval                            ticks;                 
  bool                                         do_wait = true;        
  POSIX_Absolute_timeout_conversion_results_t  status;                
                                                                      
  if ( !rwlock )                                                      
 8004654:	45 60 00 0c 	be r11,r0,8004684 <pthread_rwlock_timedwrlock+0x58>
   *                                                                  
   *  If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,                
   *  POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
   *  then we should not wait.                                        
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
 8004658:	37 82 00 1c 	addi r2,sp,28                                  
 800465c:	f8 00 1c 67 	calli 800b7f8 <_POSIX_Absolute_timeout_to_ticks>
 8004660:	78 03 08 01 	mvhi r3,0x801                                  
 8004664:	29 62 00 00 	lw r2,(r11+0)                                  
 8004668:	b8 20 68 00 	mv r13,r1                                      
 800466c:	b8 60 08 00 	mv r1,r3                                       
 8004670:	38 21 8a 0c 	ori r1,r1,0x8a0c                               
 8004674:	37 83 00 20 	addi r3,sp,32                                  
 8004678:	f8 00 0a d1 	calli 80071bc <_Objects_Get>                   
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
    do_wait = false;                                                  
                                                                      
  the_rwlock = _POSIX_RWLock_Get( rwlock, &location );                
  switch ( location ) {                                               
 800467c:	2b 8e 00 20 	lw r14,(sp+32)                                 
 8004680:	45 c0 00 0a 	be r14,r0,80046a8 <pthread_rwlock_timedwrlock+0x7c>
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return EINVAL;                                                      
}                                                                     
 8004684:	b9 80 08 00 	mv r1,r12                                      
 8004688:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800468c:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8004690:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8004694:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8004698:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800469c:	2b 8f 00 08 	lw r15,(sp+8)                                  
 80046a0:	37 9c 00 20 	addi sp,sp,32                                  
 80046a4:	c3 a0 00 00 	ret                                            
        (pthread_rwlock_t *__rwlock, _CONST struct timespec *__abstime));
int	_EXFUN(pthread_rwlock_unlock,(pthread_rwlock_t *__rwlock));       
int	_EXFUN(pthread_rwlock_wrlock,(pthread_rwlock_t *__rwlock));       
int	_EXFUN(pthread_rwlock_trywrlock,(pthread_rwlock_t *__rwlock));    
int	_EXFUN(pthread_rwlock_timedwrlock,                                
 80046a8:	65 af 00 03 	cmpei r15,r13,3                                
  the_rwlock = _POSIX_RWLock_Get( rwlock, &location );                
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
                                                                      
      _CORE_RWLock_Obtain_for_writing(                                
 80046ac:	29 62 00 00 	lw r2,(r11+0)                                  
 80046b0:	2b 84 00 1c 	lw r4,(sp+28)                                  
 80046b4:	34 21 00 10 	addi r1,r1,16                                  
 80046b8:	b9 e0 18 00 	mv r3,r15                                      
 80046bc:	34 05 00 00 	mvi r5,0                                       
 80046c0:	f8 00 06 df 	calli 800623c <_CORE_RWLock_Obtain_for_writing>
	do_wait,                                                             
	ticks,                                                               
	NULL                                                                 
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
 80046c4:	f8 00 0d 0b 	calli 8007af0 <_Thread_Enable_dispatch>        
      if ( !do_wait &&                                                
 80046c8:	5d ee 00 0e 	bne r15,r14,8004700 <pthread_rwlock_timedwrlock+0xd4>
           (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) {
 80046cc:	78 01 08 01 	mvhi r1,0x801                                  
 80046d0:	38 21 8d 44 	ori r1,r1,0x8d44                               
 80046d4:	28 21 00 0c 	lw r1,(r1+12)                                  
	ticks,                                                               
	NULL                                                                 
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      if ( !do_wait &&                                                
 80046d8:	34 02 00 02 	mvi r2,2                                       
           (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) {
 80046dc:	28 21 00 34 	lw r1,(r1+52)                                  
	ticks,                                                               
	NULL                                                                 
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      if ( !do_wait &&                                                
 80046e0:	44 22 00 04 	be r1,r2,80046f0 <pthread_rwlock_timedwrlock+0xc4>
	  case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE:                          
	    break;                                                           
	}                                                                    
      }                                                               
                                                                      
      return _POSIX_RWLock_Translate_core_RWLock_return_code(         
 80046e4:	f8 00 00 0c 	calli 8004714 <_POSIX_RWLock_Translate_core_RWLock_return_code>
 80046e8:	b8 20 60 00 	mv r12,r1                                      
 80046ec:	e3 ff ff e6 	bi 8004684 <pthread_rwlock_timedwrlock+0x58>   
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      if ( !do_wait &&                                                
           (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) {
	switch (status) {                                                    
 80046f0:	45 af ff e5 	be r13,r15,8004684 <pthread_rwlock_timedwrlock+0x58><== NEVER TAKEN
 80046f4:	55 a1 ff fc 	bgu r13,r1,80046e4 <pthread_rwlock_timedwrlock+0xb8><== NEVER TAKEN
	  case POSIX_ABSOLUTE_TIMEOUT_INVALID:                               
	    return EINVAL;                                                   
	  case POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST:                            
	  case POSIX_ABSOLUTE_TIMEOUT_IS_NOW:                                
	    return ETIMEDOUT;                                                
 80046f8:	34 0c 00 74 	mvi r12,116                                    
 80046fc:	e3 ff ff e2 	bi 8004684 <pthread_rwlock_timedwrlock+0x58>   
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      if ( !do_wait &&                                                
           (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) {
	switch (status) {                                                    
 8004700:	78 01 08 01 	mvhi r1,0x801                                  
 8004704:	38 21 8d 44 	ori r1,r1,0x8d44                               
 8004708:	28 21 00 0c 	lw r1,(r1+12)                                  
 800470c:	28 21 00 34 	lw r1,(r1+52)                                  
 8004710:	e3 ff ff f5 	bi 80046e4 <pthread_rwlock_timedwrlock+0xb8>   
                                                                      

08005074 <pthread_rwlockattr_setpshared>: pthread_rwlockattr_t *attr, int pshared ) { if ( !attr ) return EINVAL;
 8005074:	34 03 00 16 	mvi r3,22                                      
int pthread_rwlockattr_setpshared(                                    
  pthread_rwlockattr_t *attr,                                         
  int                    pshared                                      
)                                                                     
{                                                                     
  if ( !attr )                                                        
 8005078:	44 20 00 07 	be r1,r0,8005094 <pthread_rwlockattr_setpshared+0x20>
    return EINVAL;                                                    
                                                                      
  if ( !attr->is_initialized )                                        
 800507c:	28 24 00 00 	lw r4,(r1+0)                                   
 8005080:	44 80 00 05 	be r4,r0,8005094 <pthread_rwlockattr_setpshared+0x20>
    return EINVAL;                                                    
                                                                      
  switch ( pshared ) {                                                
 8005084:	34 04 00 01 	mvi r4,1                                       
 8005088:	54 44 00 03 	bgu r2,r4,8005094 <pthread_rwlockattr_setpshared+0x20><== NEVER TAKEN
    case PTHREAD_PROCESS_SHARED:                                      
    case PTHREAD_PROCESS_PRIVATE:                                     
      attr->process_shared = pshared;                                 
 800508c:	58 22 00 04 	sw (r1+4),r2                                   
      return 0;                                                       
 8005090:	34 03 00 00 	mvi r3,0                                       
                                                                      
    default:                                                          
      return EINVAL;                                                  
  }                                                                   
}                                                                     
 8005094:	b8 60 08 00 	mv r1,r3                                       
 8005098:	c3 a0 00 00 	ret                                            
                                                                      

08006510 <pthread_setschedparam>: int pthread_setschedparam( pthread_t thread, int policy, struct sched_param *param ) {
 8006510:	37 9c ff dc 	addi sp,sp,-36                                 
 8006514:	5b 8b 00 18 	sw (sp+24),r11                                 
 8006518:	5b 8c 00 14 	sw (sp+20),r12                                 
 800651c:	5b 8d 00 10 	sw (sp+16),r13                                 
 8006520:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8006524:	5b 8f 00 08 	sw (sp+8),r15                                  
 8006528:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
  /*                                                                  
   *  Check all the parameters                                        
   */                                                                 
  if ( !param )                                                       
    return EINVAL;                                                    
 800652c:	34 0c 00 16 	mvi r12,22                                     
int pthread_setschedparam(                                            
  pthread_t           thread,                                         
  int                 policy,                                         
  struct sched_param *param                                           
)                                                                     
{                                                                     
 8006530:	b8 60 58 00 	mv r11,r3                                      
 8006534:	b8 20 68 00 	mv r13,r1                                      
 8006538:	b8 40 70 00 	mv r14,r2                                      
  int                                  rc;                            
                                                                      
  /*                                                                  
   *  Check all the parameters                                        
   */                                                                 
  if ( !param )                                                       
 800653c:	44 60 00 08 	be r3,r0,800655c <pthread_setschedparam+0x4c>  
    return EINVAL;                                                    
                                                                      
  rc = _POSIX_Thread_Translate_sched_param(                           
 8006540:	b8 40 08 00 	mv r1,r2                                       
 8006544:	37 84 00 20 	addi r4,sp,32                                  
 8006548:	b8 60 10 00 	mv r2,r3                                       
 800654c:	37 83 00 24 	addi r3,sp,36                                  
 8006550:	f8 00 1a 3b 	calli 800ce3c <_POSIX_Thread_Translate_sched_param>
 8006554:	b8 20 60 00 	mv r12,r1                                      
    policy,                                                           
    param,                                                            
    &budget_algorithm,                                                
    &budget_callout                                                   
  );                                                                  
  if ( rc )                                                           
 8006558:	44 20 00 0a 	be r1,r0,8006580 <pthread_setschedparam+0x70>  
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return ESRCH;                                                       
}                                                                     
 800655c:	b9 80 08 00 	mv r1,r12                                      
 8006560:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006564:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8006568:	2b 8c 00 14 	lw r12,(sp+20)                                 
 800656c:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8006570:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8006574:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8006578:	37 9c 00 24 	addi sp,sp,36                                  
 800657c:	c3 a0 00 00 	ret                                            
 8006580:	78 01 08 01 	mvhi r1,0x801                                  
 8006584:	38 21 aa 9c 	ori r1,r1,0xaa9c                               
 8006588:	b9 a0 10 00 	mv r2,r13                                      
 800658c:	37 83 00 1c 	addi r3,sp,28                                  
 8006590:	f8 00 07 bc 	calli 8008480 <_Objects_Get>                   
 8006594:	b8 20 78 00 	mv r15,r1                                      
                                                                      
  /*                                                                  
   *  Actually change the scheduling policy and parameters            
   */                                                                 
  the_thread = _POSIX_Threads_Get( thread, &location );               
  switch ( location ) {                                               
 8006598:	2b 81 00 1c 	lw r1,(sp+28)                                  
 800659c:	44 2c 00 03 	be r1,r12,80065a8 <pthread_setschedparam+0x98> 
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return ESRCH;                                                       
 80065a0:	34 0c 00 03 	mvi r12,3                                      
 80065a4:	e3 ff ff ee 	bi 800655c <pthread_setschedparam+0x4c>        
   */                                                                 
  the_thread = _POSIX_Threads_Get( thread, &location );               
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      api = the_thread->API_Extensions[ THREAD_API_POSIX ];           
 80065a8:	29 ed 01 2c 	lw r13,(r15+300)                               
                                                                      
      if ( api->schedpolicy == SCHED_SPORADIC )                       
 80065ac:	34 01 00 04 	mvi r1,4                                       
 80065b0:	29 a2 00 80 	lw r2,(r13+128)                                
 80065b4:	44 41 00 31 	be r2,r1,8006678 <pthread_setschedparam+0x168> 
        (void) _Watchdog_Remove( &api->Sporadic_timer );              
                                                                      
      api->schedpolicy = policy;                                      
 80065b8:	59 ae 00 80 	sw (r13+128),r14                               
      api->schedparam  = *param;                                      
 80065bc:	29 62 00 00 	lw r2,(r11+0)                                  
 80065c0:	59 a2 00 84 	sw (r13+132),r2                                
 80065c4:	29 61 00 04 	lw r1,(r11+4)                                  
 80065c8:	59 a1 00 88 	sw (r13+136),r1                                
 80065cc:	29 61 00 08 	lw r1,(r11+8)                                  
 80065d0:	59 a1 00 8c 	sw (r13+140),r1                                
 80065d4:	29 61 00 0c 	lw r1,(r11+12)                                 
 80065d8:	59 a1 00 90 	sw (r13+144),r1                                
 80065dc:	29 61 00 10 	lw r1,(r11+16)                                 
 80065e0:	59 a1 00 94 	sw (r13+148),r1                                
 80065e4:	29 61 00 14 	lw r1,(r11+20)                                 
 80065e8:	59 a1 00 98 	sw (r13+152),r1                                
 80065ec:	29 61 00 18 	lw r1,(r11+24)                                 
 80065f0:	59 a1 00 9c 	sw (r13+156),r1                                
      the_thread->budget_algorithm = budget_algorithm;                
 80065f4:	2b 81 00 24 	lw r1,(sp+36)                                  
 80065f8:	59 e1 00 7c 	sw (r15+124),r1                                
      the_thread->budget_callout   = budget_callout;                  
 80065fc:	2b 81 00 20 	lw r1,(sp+32)                                  
 8006600:	59 e1 00 80 	sw (r15+128),r1                                
                                                                      
      switch ( api->schedpolicy ) {                                   
 8006604:	48 0e 00 05 	bg r0,r14,8006618 <pthread_setschedparam+0x108><== NEVER TAKEN
 8006608:	34 01 00 02 	mvi r1,2                                       
 800660c:	4c 2e 00 0d 	bge r1,r14,8006640 <pthread_setschedparam+0x130>
 8006610:	34 01 00 04 	mvi r1,4                                       
 8006614:	45 c1 00 03 	be r14,r1,8006620 <pthread_setschedparam+0x110><== ALWAYS TAKEN
          _Watchdog_Remove( &api->Sporadic_timer );                   
          _POSIX_Threads_Sporadic_budget_TSR( 0, the_thread );        
          break;                                                      
      }                                                               
                                                                      
      _Thread_Enable_dispatch();                                      
 8006618:	f8 00 0a 1a 	calli 8008e80 <_Thread_Enable_dispatch>        <== NOT EXECUTED
      return 0;                                                       
 800661c:	e3 ff ff d0 	bi 800655c <pthread_setschedparam+0x4c>        <== NOT EXECUTED
             true                                                     
          );                                                          
          break;                                                      
                                                                      
        case SCHED_SPORADIC:                                          
          api->ss_high_priority = api->schedparam.sched_priority;     
 8006620:	59 a2 00 a0 	sw (r13+160),r2                                
          _Watchdog_Remove( &api->Sporadic_timer );                   
 8006624:	35 a1 00 a4 	addi r1,r13,164                                
 8006628:	f8 00 10 1a 	calli 800a690 <_Watchdog_Remove>               
          _POSIX_Threads_Sporadic_budget_TSR( 0, the_thread );        
 800662c:	34 01 00 00 	mvi r1,0                                       
 8006630:	b9 e0 10 00 	mv r2,r15                                      
 8006634:	fb ff ff 66 	calli 80063cc <_POSIX_Threads_Sporadic_budget_TSR>
          break;                                                      
      }                                                               
                                                                      
      _Thread_Enable_dispatch();                                      
 8006638:	f8 00 0a 12 	calli 8008e80 <_Thread_Enable_dispatch>        
 800663c:	e3 ff ff c8 	bi 800655c <pthread_setschedparam+0x4c>        
 8006640:	78 03 08 01 	mvhi r3,0x801                                  
 8006644:	38 63 a0 e4 	ori r3,r3,0xa0e4                               
                                                                      
      switch ( api->schedpolicy ) {                                   
        case SCHED_OTHER:                                             
        case SCHED_FIFO:                                              
        case SCHED_RR:                                                
          the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;  
 8006648:	78 01 08 01 	mvhi r1,0x801                                  
 800664c:	38 21 a8 54 	ori r1,r1,0xa854                               
 8006650:	40 63 00 00 	lbu r3,(r3+0)                                  
 8006654:	28 24 00 00 	lw r4,(r1+0)                                   
                                                                      
          the_thread->real_priority =                                 
            _POSIX_Priority_To_core( api->schedparam.sched_priority );
                                                                      
          _Thread_Change_priority(                                    
 8006658:	b9 e0 08 00 	mv r1,r15                                      
 800665c:	c8 62 10 00 	sub r2,r3,r2                                   
                                                                      
      switch ( api->schedpolicy ) {                                   
        case SCHED_OTHER:                                             
        case SCHED_FIFO:                                              
        case SCHED_RR:                                                
          the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;  
 8006660:	59 e4 00 78 	sw (r15+120),r4                                
                                                                      
          the_thread->real_priority =                                 
 8006664:	59 e2 00 18 	sw (r15+24),r2                                 
            _POSIX_Priority_To_core( api->schedparam.sched_priority );
                                                                      
          _Thread_Change_priority(                                    
 8006668:	34 03 00 01 	mvi r3,1                                       
 800666c:	f8 00 08 85 	calli 8008880 <_Thread_Change_priority>        
          _Watchdog_Remove( &api->Sporadic_timer );                   
          _POSIX_Threads_Sporadic_budget_TSR( 0, the_thread );        
          break;                                                      
      }                                                               
                                                                      
      _Thread_Enable_dispatch();                                      
 8006670:	f8 00 0a 04 	calli 8008e80 <_Thread_Enable_dispatch>        
 8006674:	e3 ff ff ba 	bi 800655c <pthread_setschedparam+0x4c>        
                                                                      
    case OBJECTS_LOCAL:                                               
      api = the_thread->API_Extensions[ THREAD_API_POSIX ];           
                                                                      
      if ( api->schedpolicy == SCHED_SPORADIC )                       
        (void) _Watchdog_Remove( &api->Sporadic_timer );              
 8006678:	35 a1 00 a4 	addi r1,r13,164                                
 800667c:	f8 00 10 05 	calli 800a690 <_Watchdog_Remove>               
 8006680:	e3 ff ff ce 	bi 80065b8 <pthread_setschedparam+0xa8>        
                                                                      

080039b4 <pthread_testcancel>: * * 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ void pthread_testcancel( void ) {
 80039b4:	37 9c ff f8 	addi sp,sp,-8                                  
 80039b8:	5b 8b 00 08 	sw (sp+8),r11                                  
 80039bc:	5b 9d 00 04 	sw (sp+4),ra                                   
   *  Don't even think about deleting a resource from an ISR.         
   *  Besides this request is supposed to be for _Thread_Executing    
   *  and the ISR context is not a thread.                            
   */                                                                 
                                                                      
  if ( _ISR_Is_in_progress() )                                        
 80039c0:	78 0b 08 01 	mvhi r11,0x801                                 
 80039c4:	39 6b 6d 2c 	ori r11,r11,0x6d2c                             
 80039c8:	29 62 00 08 	lw r2,(r11+8)                                  
 80039cc:	5c 40 00 10 	bne r2,r0,8003a0c <pthread_testcancel+0x58>    <== NEVER TAKEN
 80039d0:	78 01 08 01 	mvhi r1,0x801                                  
 80039d4:	38 21 68 54 	ori r1,r1,0x6854                               
 80039d8:	28 24 00 00 	lw r4,(r1+0)                                   
    return;                                                           
                                                                      
  thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
 80039dc:	29 63 00 0c 	lw r3,(r11+12)                                 
 80039e0:	34 84 00 01 	addi r4,r4,1                                   
 80039e4:	28 63 01 2c 	lw r3,(r3+300)                                 
 80039e8:	58 24 00 00 	sw (r1+0),r4                                   
                                                                      
  _Thread_Disable_dispatch();                                         
    if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
 80039ec:	28 61 00 d4 	lw r1,(r3+212)                                 
 80039f0:	5c 22 00 0b 	bne r1,r2,8003a1c <pthread_testcancel+0x68>    <== NEVER TAKEN
 80039f4:	28 62 00 dc 	lw r2,(r3+220)                                 
 80039f8:	44 41 00 09 	be r2,r1,8003a1c <pthread_testcancel+0x68>     
         thread_support->cancelation_requested )                      
      cancel = true;                                                  
  _Thread_Enable_dispatch();                                          
 80039fc:	f8 00 09 49 	calli 8005f20 <_Thread_Enable_dispatch>        
                                                                      
  if ( cancel )                                                       
    _POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED );        
 8003a00:	29 61 00 0c 	lw r1,(r11+12)                                 
 8003a04:	34 02 ff ff 	mvi r2,-1                                      
 8003a08:	f8 00 19 56 	calli 8009f60 <_POSIX_Thread_Exit>             
}                                                                     
 8003a0c:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 8003a10:	2b 8b 00 08 	lw r11,(sp+8)                                  <== NOT EXECUTED
 8003a14:	37 9c 00 08 	addi sp,sp,8                                   <== NOT EXECUTED
 8003a18:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      
  _Thread_Disable_dispatch();                                         
    if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
         thread_support->cancelation_requested )                      
      cancel = true;                                                  
  _Thread_Enable_dispatch();                                          
 8003a1c:	f8 00 09 41 	calli 8005f20 <_Thread_Enable_dispatch>        
                                                                      
  if ( cancel )                                                       
    _POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED );        
}                                                                     
 8003a20:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003a24:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8003a28:	37 9c 00 08 	addi sp,sp,8                                   
 8003a2c:	c3 a0 00 00 	ret                                            
                                                                      

0800c18c <rtems_barrier_create>: rtems_name name, rtems_attribute attribute_set, uint32_t maximum_waiters, rtems_id *id ) {
 800c18c:	37 9c ff e0 	addi sp,sp,-32                                 
 800c190:	5b 8b 00 18 	sw (sp+24),r11                                 
 800c194:	5b 8c 00 14 	sw (sp+20),r12                                 
 800c198:	5b 8d 00 10 	sw (sp+16),r13                                 
 800c19c:	5b 8e 00 0c 	sw (sp+12),r14                                 
 800c1a0:	5b 8f 00 08 	sw (sp+8),r15                                  
 800c1a4:	5b 9d 00 04 	sw (sp+4),ra                                   
 800c1a8:	b8 20 68 00 	mv r13,r1                                      
 800c1ac:	b8 40 70 00 	mv r14,r2                                      
 800c1b0:	b8 80 78 00 	mv r15,r4                                      
  Barrier_Control         *the_barrier;                               
  CORE_barrier_Attributes  the_attributes;                            
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
 800c1b4:	34 01 00 03 	mvi r1,3                                       
)                                                                     
{                                                                     
  Barrier_Control         *the_barrier;                               
  CORE_barrier_Attributes  the_attributes;                            
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
 800c1b8:	45 a0 00 23 	be r13,r0,800c244 <rtems_barrier_create+0xb8>  <== NEVER TAKEN
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !id )                                                          
    return RTEMS_INVALID_ADDRESS;                                     
 800c1bc:	34 01 00 09 	mvi r1,9                                       
  CORE_barrier_Attributes  the_attributes;                            
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !id )                                                          
 800c1c0:	44 80 00 21 	be r4,r0,800c244 <rtems_barrier_create+0xb8>   <== NEVER TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Attributes_Is_barrier_automatic(           
  rtems_attribute attribute_set                                       
)                                                                     
{                                                                     
   return ( attribute_set & RTEMS_BARRIER_AUTOMATIC_RELEASE ) ? true : false;
 800c1c4:	20 41 00 10 	andi r1,r2,0x10                                
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  /* Initialize core barrier attributes */                            
  if ( _Attributes_Is_barrier_automatic( attribute_set ) ) {          
 800c1c8:	44 20 00 27 	be r1,r0,800c264 <rtems_barrier_create+0xd8>   
    the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;       
 800c1cc:	5b 80 00 1c 	sw (sp+28),r0                                  
    if ( maximum_waiters == 0 )                                       
      return RTEMS_INVALID_NUMBER;                                    
 800c1d0:	34 01 00 0a 	mvi r1,10                                      
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  /* Initialize core barrier attributes */                            
  if ( _Attributes_Is_barrier_automatic( attribute_set ) ) {          
    the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;       
    if ( maximum_waiters == 0 )                                       
 800c1d4:	44 60 00 1c 	be r3,r0,800c244 <rtems_barrier_create+0xb8>   <== NEVER TAKEN
 800c1d8:	78 05 08 02 	mvhi r5,0x802                                  
 800c1dc:	38 a5 08 84 	ori r5,r5,0x884                                
 800c1e0:	28 a1 00 00 	lw r1,(r5+0)                                   
      return RTEMS_INVALID_NUMBER;                                    
  } else                                                              
    the_attributes.discipline = CORE_BARRIER_MANUAL_RELEASE;          
  the_attributes.maximum_count = maximum_waiters;                     
 800c1e4:	5b 83 00 20 	sw (sp+32),r3                                  
 800c1e8:	34 21 00 01 	addi r1,r1,1                                   
 800c1ec:	58 a1 00 00 	sw (r5+0),r1                                   
 *  This function allocates a barrier control block from              
 *  the inactive chain of free barrier control blocks.                
 */                                                                   
RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Allocate( void )       
{                                                                     
  return (Barrier_Control *) _Objects_Allocate( &_Barrier_Information );
 800c1f0:	78 0c 08 02 	mvhi r12,0x802                                 
 800c1f4:	39 8c 11 20 	ori r12,r12,0x1120                             
 800c1f8:	b9 80 08 00 	mv r1,r12                                      
 800c1fc:	fb ff e7 7a 	calli 8005fe4 <_Objects_Allocate>              
 800c200:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  _Thread_Disable_dispatch();             /* prevents deletion */     
                                                                      
  the_barrier = _Barrier_Allocate();                                  
                                                                      
  if ( !the_barrier ) {                                               
 800c204:	44 20 00 1b 	be r1,r0,800c270 <rtems_barrier_create+0xe4>   
    return RTEMS_TOO_MANY;                                            
  }                                                                   
                                                                      
  the_barrier->attribute_set = attribute_set;                         
                                                                      
  _CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes ); 
 800c208:	34 21 00 14 	addi r1,r1,20                                  
 800c20c:	37 82 00 1c 	addi r2,sp,28                                  
  if ( !the_barrier ) {                                               
    _Thread_Enable_dispatch();                                        
    return RTEMS_TOO_MANY;                                            
  }                                                                   
                                                                      
  the_barrier->attribute_set = attribute_set;                         
 800c210:	59 6e 00 10 	sw (r11+16),r14                                
                                                                      
  _CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes ); 
 800c214:	f8 00 03 01 	calli 800ce18 <_CORE_barrier_Initialize>       
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
 800c218:	29 61 00 08 	lw r1,(r11+8)                                  
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 800c21c:	29 83 00 1c 	lw r3,(r12+28)                                 
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 800c220:	20 22 ff ff 	andi r2,r1,0xffff                              
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 800c224:	b4 42 10 00 	add r2,r2,r2                                   
 800c228:	b4 42 10 00 	add r2,r2,r2                                   
 800c22c:	b4 62 10 00 	add r2,r3,r2                                   
 800c230:	58 4b 00 00 	sw (r2+0),r11                                  
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
 800c234:	59 6d 00 0c 	sw (r11+12),r13                                
    &_Barrier_Information,                                            
    &the_barrier->Object,                                             
    (Objects_Name) name                                               
  );                                                                  
                                                                      
  *id = the_barrier->Object.id;                                       
 800c238:	59 e1 00 00 	sw (r15+0),r1                                  
                                                                      
  _Thread_Enable_dispatch();                                          
 800c23c:	fb ff eb 09 	calli 8006e60 <_Thread_Enable_dispatch>        
  return RTEMS_SUCCESSFUL;                                            
 800c240:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 800c244:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800c248:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800c24c:	2b 8c 00 14 	lw r12,(sp+20)                                 
 800c250:	2b 8d 00 10 	lw r13,(sp+16)                                 
 800c254:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800c258:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800c25c:	37 9c 00 20 	addi sp,sp,32                                  
 800c260:	c3 a0 00 00 	ret                                            
  if ( _Attributes_Is_barrier_automatic( attribute_set ) ) {          
    the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;       
    if ( maximum_waiters == 0 )                                       
      return RTEMS_INVALID_NUMBER;                                    
  } else                                                              
    the_attributes.discipline = CORE_BARRIER_MANUAL_RELEASE;          
 800c264:	34 01 00 01 	mvi r1,1                                       
 800c268:	5b 81 00 1c 	sw (sp+28),r1                                  
 800c26c:	e3 ff ff db 	bi 800c1d8 <rtems_barrier_create+0x4c>         
  _Thread_Disable_dispatch();             /* prevents deletion */     
                                                                      
  the_barrier = _Barrier_Allocate();                                  
                                                                      
  if ( !the_barrier ) {                                               
    _Thread_Enable_dispatch();                                        
 800c270:	fb ff ea fc 	calli 8006e60 <_Thread_Enable_dispatch>        
    return RTEMS_TOO_MANY;                                            
 800c274:	34 01 00 05 	mvi r1,5                                       
                                                                      
  *id = the_barrier->Object.id;                                       
                                                                      
  _Thread_Enable_dispatch();                                          
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 800c278:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800c27c:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800c280:	2b 8c 00 14 	lw r12,(sp+20)                                 
 800c284:	2b 8d 00 10 	lw r13,(sp+16)                                 
 800c288:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800c28c:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800c290:	37 9c 00 20 	addi sp,sp,32                                  
 800c294:	c3 a0 00 00 	ret                                            
                                                                      

080103f8 <rtems_clock_set_nanoseconds_extension>: * error code - if unsuccessful */ rtems_status_code rtems_clock_set_nanoseconds_extension( rtems_nanoseconds_extension_routine routine ) {
 80103f8:	b8 20 18 00 	mv r3,r1                                       
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
 80103fc:	34 01 00 09 	mvi r1,9                                       
 */                                                                   
rtems_status_code rtems_clock_set_nanoseconds_extension(              
  rtems_nanoseconds_extension_routine routine                         
)                                                                     
{                                                                     
  if ( !routine )                                                     
 8010400:	44 60 00 05 	be r3,r0,8010414 <rtems_clock_set_nanoseconds_extension+0x1c><== ALWAYS TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  _Watchdog_Nanoseconds_since_tick_handler = routine;                 
 8010404:	78 02 08 04 	mvhi r2,0x804                                  <== NOT EXECUTED
 8010408:	38 42 0e 28 	ori r2,r2,0xe28                                <== NOT EXECUTED
 801040c:	58 43 00 00 	sw (r2+0),r3                                   <== NOT EXECUTED
  return RTEMS_SUCCESSFUL;                                            
 8010410:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
}                                                                     
 8010414:	c3 a0 00 00 	ret                                            
                                                                      

0800c8f4 <rtems_io_read>: rtems_status_code rtems_io_read( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) {
 800c8f4:	37 9c ff fc 	addi sp,sp,-4                                  
 800c8f8:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_device_driver_entry callout;                                  
                                                                      
  if ( major >= _IO_Number_of_drivers )                               
 800c8fc:	78 04 08 01 	mvhi r4,0x801                                  
 800c900:	38 84 51 88 	ori r4,r4,0x5188                               
 800c904:	28 86 00 00 	lw r6,(r4+0)                                   
    return RTEMS_INVALID_NUMBER;                                      
 800c908:	34 05 00 0a 	mvi r5,10                                      
  void                      *argument                                 
)                                                                     
{                                                                     
  rtems_device_driver_entry callout;                                  
                                                                      
  if ( major >= _IO_Number_of_drivers )                               
 800c90c:	50 26 00 0f 	bgeu r1,r6,800c948 <rtems_io_read+0x54>        <== NEVER TAKEN
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  callout = _IO_Driver_address_table[major].read_entry;               
 800c910:	78 05 08 01 	mvhi r5,0x801                                  
 800c914:	b4 21 30 00 	add r6,r1,r1                                   
 800c918:	38 a5 51 8c 	ori r5,r5,0x518c                               
 800c91c:	b4 c1 20 00 	add r4,r6,r1                                   
 800c920:	28 a5 00 00 	lw r5,(r5+0)                                   
 800c924:	b4 84 20 00 	add r4,r4,r4                                   
 800c928:	b4 84 20 00 	add r4,r4,r4                                   
 800c92c:	b4 84 20 00 	add r4,r4,r4                                   
 800c930:	b4 a4 20 00 	add r4,r5,r4                                   
 800c934:	28 84 00 0c 	lw r4,(r4+12)                                  
  return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
 800c938:	34 05 00 00 	mvi r5,0                                       
 800c93c:	44 80 00 03 	be r4,r0,800c948 <rtems_io_read+0x54>          
 800c940:	d8 80 00 00 	call r4                                        
 800c944:	b8 20 28 00 	mv r5,r1                                       
}                                                                     
 800c948:	b8 a0 08 00 	mv r1,r5                                       
 800c94c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800c950:	37 9c 00 04 	addi sp,sp,4                                   
 800c954:	c3 a0 00 00 	ret                                            
                                                                      

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

080063fc <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) {
 80063fc:	37 9c ff e4 	addi sp,sp,-28                                 
 8006400:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8006404:	5b 8c 00 18 	sw (sp+24),r12                                 
 8006408:	5b 8d 00 14 	sw (sp+20),r13                                 
 800640c:	5b 8e 00 10 	sw (sp+16),r14                                 
 8006410:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8006414:	5b 90 00 08 	sw (sp+8),r16                                  
 8006418:	5b 9d 00 04 	sw (sp+4),ra                                   
 800641c:	b8 20 78 00 	mv r15,r1                                      
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
 8006420:	44 20 00 1a 	be r1,r0,8006488 <rtems_iterate_over_all_threads+0x8c><== NEVER TAKEN
#endif                                                                
                                                                      
#include <rtems/system.h>                                             
#include <rtems/score/thread.h>                                       
                                                                      
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) 
 8006424:	78 01 08 02 	mvhi r1,0x802                                  
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
 8006428:	78 0e 08 02 	mvhi r14,0x802                                 
#endif                                                                
                                                                      
#include <rtems/system.h>                                             
#include <rtems/score/thread.h>                                       
                                                                      
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) 
 800642c:	38 21 a6 38 	ori r1,r1,0xa638                               
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
 8006430:	39 ce a6 3c 	ori r14,r14,0xa63c                             
#endif                                                                
                                                                      
#include <rtems/system.h>                                             
#include <rtems/score/thread.h>                                       
                                                                      
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) 
 8006434:	34 30 00 10 	addi r16,r1,16                                 
                                                                      
  if ( !routine )                                                     
    return;                                                           
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
    if ( !_Objects_Information_table[ api_index ] )                   
 8006438:	29 c1 00 00 	lw r1,(r14+0)                                  
 800643c:	44 20 00 11 	be r1,r0,8006480 <rtems_iterate_over_all_threads+0x84><== NEVER TAKEN
      continue;                                                       
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
 8006440:	28 2d 00 04 	lw r13,(r1+4)                                  
    if ( !information )                                               
 8006444:	45 a0 00 0f 	be r13,r0,8006480 <rtems_iterate_over_all_threads+0x84>
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
 8006448:	2d a3 00 10 	lhu r3,(r13+16)                                
 800644c:	44 60 00 0d 	be r3,r0,8006480 <rtems_iterate_over_all_threads+0x84>
 8006450:	34 0c 00 04 	mvi r12,4                                      
 8006454:	34 0b 00 01 	mvi r11,1                                      
      the_thread = (Thread_Control *)information->local_table[ i ];   
 8006458:	29 a2 00 1c 	lw r2,(r13+28)                                 
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( !information )                                               
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
 800645c:	35 6b 00 01 	addi r11,r11,1                                 
      the_thread = (Thread_Control *)information->local_table[ i ];   
 8006460:	b4 4c 10 00 	add r2,r2,r12                                  
 8006464:	28 42 00 00 	lw r2,(r2+0)                                   
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( !information )                                               
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
 8006468:	35 8c 00 04 	addi r12,r12,4                                 
      the_thread = (Thread_Control *)information->local_table[ i ];   
                                                                      
      if ( !the_thread )                                              
	continue;                                                            
                                                                      
      (*routine)(the_thread);                                         
 800646c:	b8 40 08 00 	mv r1,r2                                       
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
      the_thread = (Thread_Control *)information->local_table[ i ];   
                                                                      
      if ( !the_thread )                                              
 8006470:	44 40 00 03 	be r2,r0,800647c <rtems_iterate_over_all_threads+0x80>
	continue;                                                            
                                                                      
      (*routine)(the_thread);                                         
 8006474:	d9 e0 00 00 	call r15                                       
 8006478:	2d a3 00 10 	lhu r3,(r13+16)                                
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( !information )                                               
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
 800647c:	50 6b ff f7 	bgeu r3,r11,8006458 <rtems_iterate_over_all_threads+0x5c>
 8006480:	35 ce 00 04 	addi r14,r14,4                                 
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
    return;                                                           
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
 8006484:	5d d0 ff ed 	bne r14,r16,8006438 <rtems_iterate_over_all_threads+0x3c>
                                                                      
      (*routine)(the_thread);                                         
    }                                                                 
  }                                                                   
                                                                      
}                                                                     
 8006488:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800648c:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8006490:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8006494:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8006498:	2b 8e 00 10 	lw r14,(sp+16)                                 
 800649c:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 80064a0:	2b 90 00 08 	lw r16,(sp+8)                                  
 80064a4:	37 9c 00 1c 	addi sp,sp,28                                  
 80064a8:	c3 a0 00 00 	ret                                            
                                                                      

08004d88 <rtems_object_get_class_information>: rtems_status_code rtems_object_get_class_information( int the_api, int the_class, rtems_object_api_class_information *info ) {
 8004d88:	37 9c ff f8 	addi sp,sp,-8                                  
 8004d8c:	5b 8b 00 08 	sw (sp+8),r11                                  
 8004d90:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004d94:	b8 60 58 00 	mv r11,r3                                      
                                                                      
  /*                                                                  
   * Validate parameters and look up information structure.           
   */                                                                 
  if ( !info )                                                        
    return RTEMS_INVALID_ADDRESS;                                     
 8004d98:	34 03 00 09 	mvi r3,9                                       
  int                  i;                                             
                                                                      
  /*                                                                  
   * Validate parameters and look up information structure.           
   */                                                                 
  if ( !info )                                                        
 8004d9c:	45 60 00 1d 	be r11,r0,8004e10 <rtems_object_get_class_information+0x88>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  obj_info = _Objects_Get_information( the_api, the_class );          
 8004da0:	f8 00 07 c0 	calli 8006ca0 <_Objects_Get_information>       
 8004da4:	b8 20 10 00 	mv r2,r1                                       
  if ( !obj_info )                                                    
    return RTEMS_INVALID_NUMBER;                                      
 8004da8:	34 03 00 0a 	mvi r3,10                                      
   */                                                                 
  if ( !info )                                                        
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  obj_info = _Objects_Get_information( the_api, the_class );          
  if ( !obj_info )                                                    
 8004dac:	44 20 00 19 	be r1,r0,8004e10 <rtems_object_get_class_information+0x88>
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  /*                                                                  
   * Return information about this object class to the user.          
   */                                                                 
  info->minimum_id  = obj_info->minimum_id;                           
 8004db0:	28 24 00 08 	lw r4,(r1+8)                                   
  info->maximum_id  = obj_info->maximum_id;                           
 8004db4:	28 23 00 0c 	lw r3,(r1+12)                                  
  info->auto_extend = obj_info->auto_extend;                          
  info->maximum     = obj_info->maximum;                              
 8004db8:	2c 46 00 10 	lhu r6,(r2+16)                                 
  /*                                                                  
   * Return information about this object class to the user.          
   */                                                                 
  info->minimum_id  = obj_info->minimum_id;                           
  info->maximum_id  = obj_info->maximum_id;                           
  info->auto_extend = obj_info->auto_extend;                          
 8004dbc:	40 21 00 12 	lbu r1,(r1+18)                                 
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  /*                                                                  
   * Return information about this object class to the user.          
   */                                                                 
  info->minimum_id  = obj_info->minimum_id;                           
 8004dc0:	59 64 00 00 	sw (r11+0),r4                                  
  info->maximum_id  = obj_info->maximum_id;                           
 8004dc4:	59 63 00 04 	sw (r11+4),r3                                  
  info->auto_extend = obj_info->auto_extend;                          
 8004dc8:	31 61 00 0c 	sb (r11+12),r1                                 
  info->maximum     = obj_info->maximum;                              
 8004dcc:	59 66 00 08 	sw (r11+8),r6                                  
                                                                      
  for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )               
 8004dd0:	34 04 00 00 	mvi r4,0                                       
 8004dd4:	44 c0 00 0d 	be r6,r0,8004e08 <rtems_object_get_class_information+0x80><== NEVER TAKEN
 8004dd8:	28 43 00 1c 	lw r3,(r2+28)                                  
 8004ddc:	34 01 00 01 	mvi r1,1                                       
 8004de0:	34 02 00 01 	mvi r2,1                                       
    if ( !obj_info->local_table[i] )                                  
 8004de4:	b4 21 08 00 	add r1,r1,r1                                   
 8004de8:	b4 21 08 00 	add r1,r1,r1                                   
 8004dec:	b4 61 08 00 	add r1,r3,r1                                   
 8004df0:	28 25 00 00 	lw r5,(r1+0)                                   
  info->minimum_id  = obj_info->minimum_id;                           
  info->maximum_id  = obj_info->maximum_id;                           
  info->auto_extend = obj_info->auto_extend;                          
  info->maximum     = obj_info->maximum;                              
                                                                      
  for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )               
 8004df4:	34 42 00 01 	addi r2,r2,1                                   
 8004df8:	b8 40 08 00 	mv r1,r2                                       
    if ( !obj_info->local_table[i] )                                  
      unallocated++;                                                  
 8004dfc:	64 a5 00 00 	cmpei r5,r5,0                                  
 8004e00:	b4 85 20 00 	add r4,r4,r5                                   
  info->minimum_id  = obj_info->minimum_id;                           
  info->maximum_id  = obj_info->maximum_id;                           
  info->auto_extend = obj_info->auto_extend;                          
  info->maximum     = obj_info->maximum;                              
                                                                      
  for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )               
 8004e04:	50 c2 ff f8 	bgeu r6,r2,8004de4 <rtems_object_get_class_information+0x5c>
    if ( !obj_info->local_table[i] )                                  
      unallocated++;                                                  
                                                                      
  info->unallocated = unallocated;                                    
 8004e08:	59 64 00 10 	sw (r11+16),r4                                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 8004e0c:	34 03 00 00 	mvi r3,0                                       
}                                                                     
 8004e10:	b8 60 08 00 	mv r1,r3                                       
 8004e14:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004e18:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8004e1c:	37 9c 00 08 	addi sp,sp,8                                   
 8004e20:	c3 a0 00 00 	ret                                            
                                                                      

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

0800436c <rtems_rate_monotonic_period>: rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) {
 800436c:	37 9c ff e0 	addi sp,sp,-32                                 
 8004370:	5b 8b 00 18 	sw (sp+24),r11                                 
 8004374:	5b 8c 00 14 	sw (sp+20),r12                                 
 8004378:	5b 8d 00 10 	sw (sp+16),r13                                 
 800437c:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8004380:	5b 8f 00 08 	sw (sp+8),r15                                  
 8004384:	5b 9d 00 04 	sw (sp+4),ra                                   
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Rate_monotonic_Control *)                                   
    _Objects_Get( &_Rate_monotonic_Information, id, location );       
 8004388:	78 03 08 02 	mvhi r3,0x802                                  
 800438c:	b8 20 68 00 	mv r13,r1                                      
 8004390:	b8 60 08 00 	mv r1,r3                                       
 8004394:	b8 40 70 00 	mv r14,r2                                      
 8004398:	38 21 18 90 	ori r1,r1,0x1890                               
 800439c:	b9 a0 10 00 	mv r2,r13                                      
 80043a0:	37 83 00 20 	addi r3,sp,32                                  
 80043a4:	f8 00 0a 89 	calli 8006dc8 <_Objects_Get>                   
 80043a8:	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 ) {                                               
 80043ac:	2b 81 00 20 	lw r1,(sp+32)                                  
 80043b0:	44 20 00 0a 	be r1,r0,80043d8 <rtems_rate_monotonic_period+0x6c>
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 80043b4:	34 01 00 04 	mvi r1,4                                       
}                                                                     
 80043b8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80043bc:	2b 8b 00 18 	lw r11,(sp+24)                                 
 80043c0:	2b 8c 00 14 	lw r12,(sp+20)                                 
 80043c4:	2b 8d 00 10 	lw r13,(sp+16)                                 
 80043c8:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 80043cc:	2b 8f 00 08 	lw r15,(sp+8)                                  
 80043d0:	37 9c 00 20 	addi sp,sp,32                                  
 80043d4:	c3 a0 00 00 	ret                                            
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
 80043d8:	78 0c 08 02 	mvhi r12,0x802                                 
 80043dc:	39 8c 1e 94 	ori r12,r12,0x1e94                             
                                                                      
  the_period = _Rate_monotonic_Get( id, &location );                  
                                                                      
  switch ( location ) {                                               
    case OBJECTS_LOCAL:                                               
      if ( !_Thread_Is_executing( the_period->owner ) ) {             
 80043e0:	29 62 00 40 	lw r2,(r11+64)                                 
 80043e4:	29 81 00 0c 	lw r1,(r12+12)                                 
 80043e8:	44 41 00 0b 	be r2,r1,8004414 <rtems_rate_monotonic_period+0xa8>
        _Thread_Enable_dispatch();                                    
 80043ec:	f8 00 0d 18 	calli 800784c <_Thread_Enable_dispatch>        
        return RTEMS_NOT_OWNER_OF_RESOURCE;                           
 80043f0:	34 01 00 17 	mvi r1,23                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 80043f4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80043f8:	2b 8b 00 18 	lw r11,(sp+24)                                 
 80043fc:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8004400:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8004404:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8004408:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800440c:	37 9c 00 20 	addi sp,sp,32                                  
 8004410:	c3 a0 00 00 	ret                                            
      if ( !_Thread_Is_executing( the_period->owner ) ) {             
        _Thread_Enable_dispatch();                                    
        return RTEMS_NOT_OWNER_OF_RESOURCE;                           
      }                                                               
                                                                      
      if ( length == RTEMS_PERIOD_STATUS ) {                          
 8004414:	45 c0 00 31 	be r14,r0,80044d8 <rtems_rate_monotonic_period+0x16c>
        }                                                             
        _Thread_Enable_dispatch();                                    
        return( return_value );                                       
      }                                                               
                                                                      
      _ISR_Disable( level );                                          
 8004418:	90 00 78 00 	rcsr r15,IE                                    
 800441c:	34 01 ff fe 	mvi r1,-2                                      
 8004420:	a1 e1 08 00 	and r1,r15,r1                                  
 8004424:	d0 01 00 00 	wcsr IE,r1                                     
      switch ( the_period->state ) {                                  
 8004428:	29 61 00 38 	lw r1,(r11+56)                                 
 800442c:	34 02 00 02 	mvi r2,2                                       
 8004430:	44 22 00 35 	be r1,r2,8004504 <rtems_rate_monotonic_period+0x198>
 8004434:	34 02 00 04 	mvi r2,4                                       
 8004438:	44 22 00 18 	be r1,r2,8004498 <rtems_rate_monotonic_period+0x12c>
 800443c:	5c 20 ff de 	bne r1,r0,80043b4 <rtems_rate_monotonic_period+0x48><== NEVER TAKEN
        case RATE_MONOTONIC_INACTIVE: {                               
                                                                      
          _ISR_Enable( level );                                       
 8004440:	d0 0f 00 00 	wcsr IE,r15                                    
                                                                      
          /*                                                          
           *  Baseline statistics information for the beginning of a period.
           */                                                         
          _Rate_monotonic_Initiate_statistics( the_period );          
 8004444:	b9 60 08 00 	mv r1,r11                                      
 8004448:	fb ff ff 54 	calli 8004198 <_Rate_monotonic_Initiate_statistics>
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
 800444c:	78 03 08 00 	mvhi r3,0x800                                  
 8004450:	38 63 48 fc 	ori r3,r3,0x48fc                               
                                                                      
          the_period->state = RATE_MONOTONIC_ACTIVE;                  
 8004454:	34 04 00 02 	mvi r4,2                                       
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 8004458:	78 01 08 02 	mvhi r1,0x802                                  
 800445c:	38 21 1a 80 	ori r1,r1,0x1a80                               
 8004460:	35 62 00 10 	addi r2,r11,16                                 
 8004464:	59 64 00 38 	sw (r11+56),r4                                 
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
 8004468:	59 63 00 2c 	sw (r11+44),r3                                 
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 800446c:	59 60 00 18 	sw (r11+24),r0                                 
  the_watchdog->routine   = routine;                                  
  the_watchdog->id        = id;                                       
 8004470:	59 6d 00 30 	sw (r11+48),r13                                
  the_watchdog->user_data = user_data;                                
 8004474:	59 60 00 34 	sw (r11+52),r0                                 
            _Rate_monotonic_Timeout,                                  
            id,                                                       
            NULL                                                      
          );                                                          
                                                                      
          the_period->next_length = length;                           
 8004478:	59 6e 00 3c 	sw (r11+60),r14                                
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 800447c:	59 6e 00 1c 	sw (r11+28),r14                                
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 8004480:	f8 00 13 55 	calli 80091d4 <_Watchdog_Insert>               
                                                                      
          _Watchdog_Insert_ticks( &the_period->Timer, length );       
          _Thread_Enable_dispatch();                                  
          return RTEMS_SUCCESSFUL;                                    
 8004484:	34 01 00 00 	mvi r1,0                                       
          );                                                          
                                                                      
          the_period->next_length = length;                           
                                                                      
          _Watchdog_Insert_ticks( &the_period->Timer, length );       
          _Thread_Enable_dispatch();                                  
 8004488:	5b 81 00 1c 	sw (sp+28),r1                                  
 800448c:	f8 00 0c f0 	calli 800784c <_Thread_Enable_dispatch>        
          return RTEMS_SUCCESSFUL;                                    
 8004490:	2b 81 00 1c 	lw r1,(sp+28)                                  
 8004494:	e3 ff ff d8 	bi 80043f4 <rtems_rate_monotonic_period+0x88>  
        case RATE_MONOTONIC_EXPIRED:                                  
                                                                      
          /*                                                          
           *  Update statistics from the concluding period            
           */                                                         
          _Rate_monotonic_Update_statistics( the_period );            
 8004498:	b9 60 08 00 	mv r1,r11                                      
 800449c:	fb ff ff 6a 	calli 8004244 <_Rate_monotonic_Update_statistics>
                                                                      
          _ISR_Enable( level );                                       
 80044a0:	d0 0f 00 00 	wcsr IE,r15                                    
                                                                      
          the_period->state = RATE_MONOTONIC_ACTIVE;                  
 80044a4:	34 03 00 02 	mvi r3,2                                       
 80044a8:	78 01 08 02 	mvhi r1,0x802                                  
 80044ac:	38 21 1a 80 	ori r1,r1,0x1a80                               
 80044b0:	35 62 00 10 	addi r2,r11,16                                 
 80044b4:	59 63 00 38 	sw (r11+56),r3                                 
          the_period->next_length = length;                           
 80044b8:	59 6e 00 3c 	sw (r11+60),r14                                
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 80044bc:	59 6e 00 1c 	sw (r11+28),r14                                
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 80044c0:	f8 00 13 45 	calli 80091d4 <_Watchdog_Insert>               
                                                                      
          _Watchdog_Insert_ticks( &the_period->Timer, length );       
          _Thread_Enable_dispatch();                                  
          return RTEMS_TIMEOUT;                                       
 80044c4:	34 01 00 06 	mvi r1,6                                       
                                                                      
          the_period->state = RATE_MONOTONIC_ACTIVE;                  
          the_period->next_length = length;                           
                                                                      
          _Watchdog_Insert_ticks( &the_period->Timer, length );       
          _Thread_Enable_dispatch();                                  
 80044c8:	5b 81 00 1c 	sw (sp+28),r1                                  
 80044cc:	f8 00 0c e0 	calli 800784c <_Thread_Enable_dispatch>        
          return RTEMS_TIMEOUT;                                       
 80044d0:	2b 81 00 1c 	lw r1,(sp+28)                                  
 80044d4:	e3 ff ff c8 	bi 80043f4 <rtems_rate_monotonic_period+0x88>  
        _Thread_Enable_dispatch();                                    
        return RTEMS_NOT_OWNER_OF_RESOURCE;                           
      }                                                               
                                                                      
      if ( length == RTEMS_PERIOD_STATUS ) {                          
        switch ( the_period->state ) {                                
 80044d8:	29 62 00 38 	lw r2,(r11+56)                                 
 80044dc:	34 03 00 04 	mvi r3,4                                       
 80044e0:	34 01 00 00 	mvi r1,0                                       
 80044e4:	54 43 ff f9 	bgu r2,r3,80044c8 <rtems_rate_monotonic_period+0x15c><== NEVER TAKEN
 80044e8:	78 01 08 01 	mvhi r1,0x801                                  
 80044ec:	b4 42 10 00 	add r2,r2,r2                                   
 80044f0:	38 21 ee 78 	ori r1,r1,0xee78                               
 80044f4:	b4 42 10 00 	add r2,r2,r2                                   
 80044f8:	b4 22 10 00 	add r2,r1,r2                                   
 80044fc:	28 41 00 00 	lw r1,(r2+0)                                   
 8004500:	e3 ff ff f2 	bi 80044c8 <rtems_rate_monotonic_period+0x15c> 
        case RATE_MONOTONIC_ACTIVE:                                   
                                                                      
          /*                                                          
           *  Update statistics from the concluding period.           
           */                                                         
          _Rate_monotonic_Update_statistics( the_period );            
 8004504:	b9 60 08 00 	mv r1,r11                                      
 8004508:	fb ff ff 4f 	calli 8004244 <_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;       
 800450c:	34 01 00 01 	mvi r1,1                                       
 8004510:	59 61 00 38 	sw (r11+56),r1                                 
          the_period->next_length = length;                           
 8004514:	59 6e 00 3c 	sw (r11+60),r14                                
                                                                      
          _ISR_Enable( level );                                       
 8004518:	d0 0f 00 00 	wcsr IE,r15                                    
                                                                      
          _Thread_Executing->Wait.id = the_period->Object.id;         
 800451c:	29 83 00 0c 	lw r3,(r12+12)                                 
 8004520:	29 64 00 08 	lw r4,(r11+8)                                  
          _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
 8004524:	34 02 40 00 	mvi r2,16384                                   
 8004528:	b8 60 08 00 	mv r1,r3                                       
          the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING;       
          the_period->next_length = length;                           
                                                                      
          _ISR_Enable( level );                                       
                                                                      
          _Thread_Executing->Wait.id = the_period->Object.id;         
 800452c:	58 64 00 20 	sw (r3+32),r4                                  
          _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
 8004530:	f8 00 0f 8c 	calli 8008360 <_Thread_Set_state>              
                                                                      
          /*                                                          
           *  Did the watchdog timer expire while we were actually blocking
           *  on it?                                                  
           */                                                         
          _ISR_Disable( level );                                      
 8004534:	90 00 08 00 	rcsr r1,IE                                     
 8004538:	34 02 ff fe 	mvi r2,-2                                      
 800453c:	a0 22 10 00 	and r2,r1,r2                                   
 8004540:	d0 02 00 00 	wcsr IE,r2                                     
            local_state = the_period->state;                          
            the_period->state = RATE_MONOTONIC_ACTIVE;                
 8004544:	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;                          
 8004548:	29 62 00 38 	lw r2,(r11+56)                                 
            the_period->state = RATE_MONOTONIC_ACTIVE;                
 800454c:	59 63 00 38 	sw (r11+56),r3                                 
          _ISR_Enable( level );                                       
 8004550:	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 ) 
 8004554:	34 01 00 03 	mvi r1,3                                       
 8004558:	44 41 00 04 	be r2,r1,8004568 <rtems_rate_monotonic_period+0x1fc><== NEVER TAKEN
            _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
                                                                      
          _Thread_Enable_dispatch();                                  
 800455c:	f8 00 0c bc 	calli 800784c <_Thread_Enable_dispatch>        
          return RTEMS_SUCCESSFUL;                                    
 8004560:	34 01 00 00 	mvi r1,0                                       
 8004564:	e3 ff ff a4 	bi 80043f4 <rtems_rate_monotonic_period+0x88>  
          /*                                                          
           *  If it did, then we want to unblock ourself and continue as
           *  if nothing happen.  The period was reset in the timeout routine.
           */                                                         
          if ( local_state == RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING ) 
            _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
 8004568:	29 81 00 0c 	lw r1,(r12+12)                                 <== NOT EXECUTED
 800456c:	34 02 40 00 	mvi r2,16384                                   <== NOT EXECUTED
 8004570:	f8 00 0b ca 	calli 8007498 <_Thread_Clear_state>            <== NOT EXECUTED
 8004574:	e3 ff ff fa 	bi 800455c <rtems_rate_monotonic_period+0x1f0> <== NOT EXECUTED
                                                                      

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

08004808 <rtems_rate_monotonic_reset_all_statistics>: /* * rtems_rate_monotonic_reset_all_statistics */ void rtems_rate_monotonic_reset_all_statistics( void ) {
 8004808:	37 9c ff f4 	addi sp,sp,-12                                 
 800480c:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8004810:	5b 8c 00 08 	sw (sp+8),r12                                  
 8004814:	5b 9d 00 04 	sw (sp+4),ra                                   
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
 8004818:	78 01 08 02 	mvhi r1,0x802                                  
 800481c:	38 21 19 bc 	ori r1,r1,0x19bc                               
 8004820:	28 22 00 00 	lw r2,(r1+0)                                   
 8004824:	34 42 00 01 	addi r2,r2,1                                   
 8004828:	58 22 00 00 	sw (r1+0),r2                                   
                                                                      
    /*                                                                
     * Cycle through all possible ids and try to reset each one.  If it
     * is a period that is inactive, we just get an error back.  No big deal.
     */                                                               
    for ( id=_Rate_monotonic_Information.minimum_id ;                 
 800482c:	78 0c 08 02 	mvhi r12,0x802                                 
 8004830:	39 8c 18 90 	ori r12,r12,0x1890                             
 8004834:	29 8b 00 08 	lw r11,(r12+8)                                 
 8004838:	29 81 00 0c 	lw r1,(r12+12)                                 
 800483c:	55 61 00 06 	bgu r11,r1,8004854 <rtems_rate_monotonic_reset_all_statistics+0x4c><== NEVER TAKEN
          id <= _Rate_monotonic_Information.maximum_id ;              
          id++ ) {                                                    
      status = rtems_rate_monotonic_reset_statistics( id );           
 8004840:	b9 60 08 00 	mv r1,r11                                      
 8004844:	f8 00 00 0a 	calli 800486c <rtems_rate_monotonic_reset_statistics>
                                                                      
    /*                                                                
     * Cycle through all possible ids and try to reset each one.  If it
     * is a period that is inactive, we just get an error back.  No big deal.
     */                                                               
    for ( id=_Rate_monotonic_Information.minimum_id ;                 
 8004848:	29 81 00 0c 	lw r1,(r12+12)                                 
          id <= _Rate_monotonic_Information.maximum_id ;              
          id++ ) {                                                    
 800484c:	35 6b 00 01 	addi r11,r11,1                                 
                                                                      
    /*                                                                
     * Cycle through all possible ids and try to reset each one.  If it
     * is a period that is inactive, we just get an error back.  No big deal.
     */                                                               
    for ( id=_Rate_monotonic_Information.minimum_id ;                 
 8004850:	50 2b ff fc 	bgeu r1,r11,8004840 <rtems_rate_monotonic_reset_all_statistics+0x38>
    }                                                                 
                                                                      
  /*                                                                  
   *  Done so exit thread dispatching disabled critical section.      
   */                                                                 
  _Thread_Enable_dispatch();                                          
 8004854:	f8 00 0b fe 	calli 800784c <_Thread_Enable_dispatch>        
}                                                                     
 8004858:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800485c:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8004860:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8004864:	37 9c 00 0c 	addi sp,sp,12                                  
 8004868:	c3 a0 00 00 	ret                                            
                                                                      

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

080130ac <rtems_signal_send>: rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) {
 80130ac:	37 9c ff f4 	addi sp,sp,-12                                 
 80130b0:	5b 8b 00 08 	sw (sp+8),r11                                  
 80130b4:	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;                                      
 80130b8:	34 03 00 0a 	mvi r3,10                                      
                                                                      
rtems_status_code rtems_signal_send(                                  
  rtems_id          id,                                               
  rtems_signal_set  signal_set                                        
)                                                                     
{                                                                     
 80130bc:	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 )                                                  
 80130c0:	5c 40 00 06 	bne r2,r0,80130d8 <rtems_signal_send+0x2c>     
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 80130c4:	b8 60 08 00 	mv r1,r3                                       
 80130c8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80130cc:	2b 8b 00 08 	lw r11,(sp+8)                                  
 80130d0:	37 9c 00 0c 	addi sp,sp,12                                  
 80130d4:	c3 a0 00 00 	ret                                            
  ASR_Information         *asr;                                       
                                                                      
  if ( !signal_set )                                                  
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 80130d8:	37 82 00 0c 	addi r2,sp,12                                  
 80130dc:	f8 00 14 a9 	calli 8018380 <_Thread_Get>                    
  switch ( location ) {                                               
 80130e0:	2b 83 00 0c 	lw r3,(sp+12)                                  
 80130e4:	44 60 00 07 	be r3,r0,8013100 <rtems_signal_send+0x54>      
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 80130e8:	34 03 00 04 	mvi r3,4                                       
}                                                                     
 80130ec:	b8 60 08 00 	mv r1,r3                                       
 80130f0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80130f4:	2b 8b 00 08 	lw r11,(sp+8)                                  
 80130f8:	37 9c 00 0c 	addi sp,sp,12                                  
 80130fc:	c3 a0 00 00 	ret                                            
                                                                      
  the_thread = _Thread_Get( id, &location );                          
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      api = the_thread->API_Extensions[ THREAD_API_RTEMS ];           
 8013100:	28 22 01 28 	lw r2,(r1+296)                                 
      asr = &api->Signal;                                             
                                                                      
      if ( ! _ASR_Is_null_handler( asr->handler ) ) {                 
 8013104:	28 44 00 0c 	lw r4,(r2+12)                                  
 8013108:	44 83 00 23 	be r4,r3,8013194 <rtems_signal_send+0xe8>      
        if ( asr->is_enabled ) {                                      
 801310c:	40 43 00 08 	lbu r3,(r2+8)                                  
 8013110:	44 60 00 12 	be r3,r0,8013158 <rtems_signal_send+0xac>      
  rtems_signal_set *signal_set                                        
)                                                                     
{                                                                     
  ISR_Level              _level;                                      
                                                                      
  _ISR_Disable( _level );                                             
 8013114:	90 00 18 00 	rcsr r3,IE                                     
 8013118:	34 04 ff fe 	mvi r4,-2                                      
 801311c:	a0 64 20 00 	and r4,r3,r4                                   
 8013120:	d0 04 00 00 	wcsr IE,r4                                     
    *signal_set |= signals;                                           
 8013124:	28 44 00 14 	lw r4,(r2+20)                                  
 8013128:	b8 8b 58 00 	or r11,r4,r11                                  
 801312c:	58 4b 00 14 	sw (r2+20),r11                                 
  _ISR_Enable( _level );                                              
 8013130:	d0 03 00 00 	wcsr IE,r3                                     
          _ASR_Post_signals( signal_set, &asr->signals_posted );      
                                                                      
          if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
 8013134:	78 02 08 04 	mvhi r2,0x804                                  
 8013138:	38 42 11 84 	ori r2,r2,0x1184                               
 801313c:	28 43 00 08 	lw r3,(r2+8)                                   
 8013140:	44 60 00 0e 	be r3,r0,8013178 <rtems_signal_send+0xcc>      
 8013144:	28 43 00 0c 	lw r3,(r2+12)                                  
 8013148:	5c 23 00 0c 	bne r1,r3,8013178 <rtems_signal_send+0xcc>     <== NEVER TAKEN
            _Context_Switch_necessary = true;                         
 801314c:	34 01 00 01 	mvi r1,1                                       
 8013150:	30 41 00 18 	sb (r2+24),r1                                  
 8013154:	e0 00 00 09 	bi 8013178 <rtems_signal_send+0xcc>            
  rtems_signal_set *signal_set                                        
)                                                                     
{                                                                     
  ISR_Level              _level;                                      
                                                                      
  _ISR_Disable( _level );                                             
 8013158:	90 00 08 00 	rcsr r1,IE                                     
 801315c:	34 03 ff fe 	mvi r3,-2                                      
 8013160:	a0 23 18 00 	and r3,r1,r3                                   
 8013164:	d0 03 00 00 	wcsr IE,r3                                     
    *signal_set |= signals;                                           
 8013168:	28 43 00 18 	lw r3,(r2+24)                                  
 801316c:	b8 6b 58 00 	or r11,r3,r11                                  
 8013170:	58 4b 00 18 	sw (r2+24),r11                                 
  _ISR_Enable( _level );                                              
 8013174:	d0 01 00 00 	wcsr IE,r1                                     
        } else {                                                      
          _ASR_Post_signals( signal_set, &asr->signals_pending );     
        }                                                             
        _Thread_Enable_dispatch();                                    
 8013178:	f8 00 14 75 	calli 801834c <_Thread_Enable_dispatch>        
        return RTEMS_SUCCESSFUL;                                      
 801317c:	34 03 00 00 	mvi r3,0                                       
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8013180:	b8 60 08 00 	mv r1,r3                                       
 8013184:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8013188:	2b 8b 00 08 	lw r11,(sp+8)                                  
 801318c:	37 9c 00 0c 	addi sp,sp,12                                  
 8013190:	c3 a0 00 00 	ret                                            
          _ASR_Post_signals( signal_set, &asr->signals_pending );     
        }                                                             
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
      _Thread_Enable_dispatch();                                      
 8013194:	f8 00 14 6e 	calli 801834c <_Thread_Enable_dispatch>        
      return RTEMS_NOT_DEFINED;                                       
 8013198:	34 03 00 0b 	mvi r3,11                                      
 801319c:	e3 ff ff ca 	bi 80130c4 <rtems_signal_send+0x18>            
                                                                      

0800c5f4 <rtems_task_mode>: rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) {
 800c5f4:	37 9c ff dc 	addi sp,sp,-36                                 
 800c5f8:	5b 8b 00 24 	sw (sp+36),r11                                 
 800c5fc:	5b 8c 00 20 	sw (sp+32),r12                                 
 800c600:	5b 8d 00 1c 	sw (sp+28),r13                                 
 800c604:	5b 8e 00 18 	sw (sp+24),r14                                 
 800c608:	5b 8f 00 14 	sw (sp+20),r15                                 
 800c60c:	5b 90 00 10 	sw (sp+16),r16                                 
 800c610:	5b 91 00 0c 	sw (sp+12),r17                                 
 800c614:	5b 92 00 08 	sw (sp+8),r18                                  
 800c618:	5b 9d 00 04 	sw (sp+4),ra                                   
 800c61c:	b8 40 70 00 	mv r14,r2                                      
 800c620:	b8 60 88 00 	mv r17,r3                                      
 800c624:	b8 20 80 00 	mv r16,r1                                      
  bool                is_asr_enabled = false;                         
  bool                needs_asr_dispatching = false;                  
  rtems_mode          old_mode;                                       
                                                                      
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
 800c628:	34 02 00 09 	mvi r2,9                                       
  ASR_Information    *asr;                                            
  bool                is_asr_enabled = false;                         
  bool                needs_asr_dispatching = false;                  
  rtems_mode          old_mode;                                       
                                                                      
  if ( !previous_mode_set )                                           
 800c62c:	44 60 00 46 	be r3,r0,800c744 <rtems_task_mode+0x150>       
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
 800c630:	78 0f 08 01 	mvhi r15,0x801                                 
 800c634:	39 ef 4d 84 	ori r15,r15,0x4d84                             
 800c638:	29 eb 00 0c 	lw r11,(r15+12)                                
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
 800c63c:	41 6d 00 74 	lbu r13,(r11+116)                              
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
 800c640:	29 61 00 7c 	lw r1,(r11+124)                                
                                                                      
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
 800c644:	29 6c 01 28 	lw r12,(r11+296)                               
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
 800c648:	65 ad 00 00 	cmpei r13,r13,0                                
 800c64c:	b5 ad 20 00 	add r4,r13,r13                                 
 800c650:	b4 84 20 00 	add r4,r4,r4                                   
 800c654:	b4 84 20 00 	add r4,r4,r4                                   
 800c658:	b4 84 20 00 	add r4,r4,r4                                   
 800c65c:	b4 84 20 00 	add r4,r4,r4                                   
 800c660:	b4 84 20 00 	add r4,r4,r4                                   
 800c664:	b4 84 20 00 	add r4,r4,r4                                   
 800c668:	b4 84 68 00 	add r13,r4,r4                                  
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
 800c66c:	5c 20 00 42 	bne r1,r0,800c774 <rtems_task_mode+0x180>      
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
 800c670:	41 92 00 08 	lbu r18,(r12+8)                                
  old_mode |= _ISR_Get_level();                                       
 800c674:	fb ff ea 84 	calli 8007084 <_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;           
 800c678:	66 52 00 00 	cmpei r18,r18,0                                
 800c67c:	c8 12 90 00 	sub r18,r0,r18                                 
 800c680:	22 52 04 00 	andi r18,r18,0x400                             
 800c684:	ba 41 08 00 	or r1,r18,r1                                   
  old_mode |= _ISR_Get_level();                                       
 800c688:	b8 2d 68 00 	or r13,r1,r13                                  
                                                                      
  *previous_mode_set = old_mode;                                      
 800c68c:	5a 2d 00 00 	sw (r17+0),r13                                 
                                                                      
  /*                                                                  
   *  These are generic thread scheduling characteristics.            
   */                                                                 
                                                                      
  if ( mask & RTEMS_PREEMPT_MASK )                                    
 800c690:	21 c1 01 00 	andi r1,r14,0x100                              
 800c694:	44 20 00 04 	be r1,r0,800c6a4 <rtems_task_mode+0xb0>        
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Modes_Is_preempt (                         
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
   return (mode_set & RTEMS_PREEMPT_MASK) == RTEMS_PREEMPT;           
 800c698:	22 01 01 00 	andi r1,r16,0x100                              
    executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
 800c69c:	64 21 00 00 	cmpei r1,r1,0                                  
 800c6a0:	31 61 00 74 	sb (r11+116),r1                                
                                                                      
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
 800c6a4:	21 c1 02 00 	andi r1,r14,0x200                              
 800c6a8:	44 20 00 09 	be r1,r0,800c6cc <rtems_task_mode+0xd8>        
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Modes_Is_timeslice (                       
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
  return (mode_set & RTEMS_TIMESLICE_MASK) == RTEMS_TIMESLICE;        
 800c6ac:	22 01 02 00 	andi r1,r16,0x200                              
    if ( _Modes_Is_timeslice(mode_set) ) {                            
 800c6b0:	44 20 00 42 	be r1,r0,800c7b8 <rtems_task_mode+0x1c4>       
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
 800c6b4:	78 01 08 01 	mvhi r1,0x801                                  
 800c6b8:	38 21 48 44 	ori r1,r1,0x4844                               
 800c6bc:	28 22 00 00 	lw r2,(r1+0)                                   
  if ( mask & RTEMS_PREEMPT_MASK )                                    
    executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
                                                                      
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
    if ( _Modes_Is_timeslice(mode_set) ) {                            
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
 800c6c0:	34 01 00 01 	mvi r1,1                                       
 800c6c4:	59 61 00 7c 	sw (r11+124),r1                                
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
 800c6c8:	59 62 00 78 	sw (r11+120),r2                                
                                                                      
  /*                                                                  
   *  Set the new interrupt level                                     
   */                                                                 
                                                                      
  if ( mask & RTEMS_INTERRUPT_MASK )                                  
 800c6cc:	21 c1 00 01 	andi r1,r14,0x1                                
 800c6d0:	44 20 00 04 	be r1,r0,800c6e0 <rtems_task_mode+0xec>        
 */                                                                   
RTEMS_INLINE_ROUTINE ISR_Level _Modes_Get_interrupt_level (           
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
  return ( mode_set & RTEMS_INTERRUPT_MASK );                         
 800c6d4:	22 01 00 01 	andi r1,r16,0x1                                
 */                                                                   
RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level (                
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
  _ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) );           
 800c6d8:	64 21 00 00 	cmpei r1,r1,0                                  
 800c6dc:	d0 01 00 00 	wcsr IE,r1                                     
   */                                                                 
                                                                      
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
 800c6e0:	21 ce 04 00 	andi r14,r14,0x400                             
  /*                                                                  
   *  This is specific to the RTEMS API                               
   */                                                                 
                                                                      
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
 800c6e4:	34 04 00 00 	mvi r4,0                                       
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
 800c6e8:	45 c0 00 11 	be r14,r0,800c72c <rtems_task_mode+0x138>      
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Modes_Is_asr_disabled (                    
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
   return (mode_set & RTEMS_ASR_MASK) == RTEMS_NO_ASR;                
 800c6ec:	22 10 04 00 	andi r16,r16,0x400                             
    is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
    if ( is_asr_enabled != asr->is_enabled ) {                        
 800c6f0:	41 81 00 08 	lbu r1,(r12+8)                                 
 *  Output:                                                           
 *    *previous_mode_set - previous mode set                          
 *     always return RTEMS_SUCCESSFUL;                                
 */                                                                   
                                                                      
rtems_status_code rtems_task_mode(                                    
 800c6f4:	66 10 00 00 	cmpei r16,r16,0                                
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
    is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
    if ( is_asr_enabled != asr->is_enabled ) {                        
 800c6f8:	44 30 00 0d 	be r1,r16,800c72c <rtems_task_mode+0x138>      
      asr->is_enabled = is_asr_enabled;                               
 800c6fc:	31 90 00 08 	sb (r12+8),r16                                 
)                                                                     
{                                                                     
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
 800c700:	90 00 08 00 	rcsr r1,IE                                     
 800c704:	34 02 ff fe 	mvi r2,-2                                      
 800c708:	a0 22 10 00 	and r2,r1,r2                                   
 800c70c:	d0 02 00 00 	wcsr IE,r2                                     
    _signals                     = information->signals_pending;      
 800c710:	29 83 00 18 	lw r3,(r12+24)                                 
    information->signals_pending = information->signals_posted;       
 800c714:	29 82 00 14 	lw r2,(r12+20)                                 
    information->signals_posted  = _signals;                          
 800c718:	59 83 00 14 	sw (r12+20),r3                                 
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
    _signals                     = information->signals_pending;      
    information->signals_pending = information->signals_posted;       
 800c71c:	59 82 00 18 	sw (r12+24),r2                                 
    information->signals_posted  = _signals;                          
  _ISR_Enable( _level );                                              
 800c720:	d0 01 00 00 	wcsr IE,r1                                     
      _ASR_Swap_signals( asr );                                       
      if ( _ASR_Are_signals_pending( asr ) ) {                        
 800c724:	29 84 00 14 	lw r4,(r12+20)                                 
  /*                                                                  
   *  This is specific to the RTEMS API                               
   */                                                                 
                                                                      
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
 800c728:	7c 84 00 00 	cmpnei r4,r4,0                                 
        needs_asr_dispatching = true;                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) )                   
 800c72c:	78 01 08 01 	mvhi r1,0x801                                  
 800c730:	38 21 4a 2c 	ori r1,r1,0x4a2c                               
 800c734:	28 23 00 00 	lw r3,(r1+0)                                   
 800c738:	34 01 00 03 	mvi r1,3                                       
    if ( _Thread_Evaluate_mode() || needs_asr_dispatching )           
      _Thread_Dispatch();                                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 800c73c:	34 02 00 00 	mvi r2,0                                       
        needs_asr_dispatching = true;                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) )                   
 800c740:	44 61 00 0f 	be r3,r1,800c77c <rtems_task_mode+0x188>       <== ALWAYS TAKEN
    if ( _Thread_Evaluate_mode() || needs_asr_dispatching )           
      _Thread_Dispatch();                                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 800c744:	b8 40 08 00 	mv r1,r2                                       
 800c748:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800c74c:	2b 8b 00 24 	lw r11,(sp+36)                                 
 800c750:	2b 8c 00 20 	lw r12,(sp+32)                                 
 800c754:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 800c758:	2b 8e 00 18 	lw r14,(sp+24)                                 
 800c75c:	2b 8f 00 14 	lw r15,(sp+20)                                 
 800c760:	2b 90 00 10 	lw r16,(sp+16)                                 
 800c764:	2b 91 00 0c 	lw r17,(sp+12)                                 
 800c768:	2b 92 00 08 	lw r18,(sp+8)                                  
 800c76c:	37 9c 00 24 	addi sp,sp,36                                  
 800c770:	c3 a0 00 00 	ret                                            
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
 800c774:	39 ad 02 00 	ori r13,r13,0x200                              
 800c778:	e3 ff ff be 	bi 800c670 <rtems_task_mode+0x7c>              
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Thread_Evaluate_mode( void )               
{                                                                     
  Thread_Control     *executing;                                      
                                                                      
  executing = _Thread_Executing;                                      
 800c77c:	29 e1 00 0c 	lw r1,(r15+12)                                 
                                                                      
  if ( !_States_Is_ready( executing->current_state ) ||               
 800c780:	28 22 00 10 	lw r2,(r1+16)                                  
 800c784:	5c 40 00 08 	bne r2,r0,800c7a4 <rtems_task_mode+0x1b0>      <== NEVER TAKEN
 800c788:	29 e2 00 10 	lw r2,(r15+16)                                 
 800c78c:	44 22 00 03 	be r1,r2,800c798 <rtems_task_mode+0x1a4>       
       ( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) {
 800c790:	40 21 00 74 	lbu r1,(r1+116)                                
 800c794:	5c 20 00 04 	bne r1,r0,800c7a4 <rtems_task_mode+0x1b0>      <== ALWAYS TAKEN
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) )                   
    if ( _Thread_Evaluate_mode() || needs_asr_dispatching )           
      _Thread_Dispatch();                                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 800c798:	34 02 00 00 	mvi r2,0                                       
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) )                   
    if ( _Thread_Evaluate_mode() || needs_asr_dispatching )           
 800c79c:	5c 80 00 04 	bne r4,r0,800c7ac <rtems_task_mode+0x1b8>      
 800c7a0:	e3 ff ff e9 	bi 800c744 <rtems_task_mode+0x150>             
    _Context_Switch_necessary = true;                                 
 800c7a4:	34 01 00 01 	mvi r1,1                                       
 800c7a8:	31 e1 00 18 	sb (r15+24),r1                                 
      _Thread_Dispatch();                                             
 800c7ac:	fb ff e3 09 	calli 80053d0 <_Thread_Dispatch>               
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 800c7b0:	34 02 00 00 	mvi r2,0                                       
 800c7b4:	e3 ff ff e4 	bi 800c744 <rtems_task_mode+0x150>             
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
    if ( _Modes_Is_timeslice(mode_set) ) {                            
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
    } else                                                            
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; 
 800c7b8:	59 60 00 7c 	sw (r11+124),r0                                
                                                                      
  /*                                                                  
   *  Set the new interrupt level                                     
   */                                                                 
                                                                      
  if ( mask & RTEMS_INTERRUPT_MASK )                                  
 800c7bc:	21 c1 00 01 	andi r1,r14,0x1                                
 800c7c0:	44 20 ff c8 	be r1,r0,800c6e0 <rtems_task_mode+0xec>        
 800c7c4:	e3 ff ff c4 	bi 800c6d4 <rtems_task_mode+0xe0>              
                                                                      

08008c7c <rtems_task_set_priority>: rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) {
 8008c7c:	37 9c ff f0 	addi sp,sp,-16                                 
 8008c80:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8008c84:	5b 8c 00 08 	sw (sp+8),r12                                  
 8008c88:	5b 9d 00 04 	sw (sp+4),ra                                   
 8008c8c:	b8 40 58 00 	mv r11,r2                                      
 8008c90:	b8 60 60 00 	mv r12,r3                                      
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
 8008c94:	44 40 00 06 	be r2,r0,8008cac <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 ) );             
 8008c98:	78 02 08 01 	mvhi r2,0x801                                  
 8008c9c:	38 42 b0 c0 	ori r2,r2,0xb0c0                               
 8008ca0:	40 42 00 00 	lbu r2,(r2+0)                                  
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
 8008ca4:	34 04 00 13 	mvi r4,19                                      
 */                                                                   
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (            
  rtems_task_priority the_priority                                    
)                                                                     
{                                                                     
  return (  ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&             
 8008ca8:	55 62 00 08 	bgu r11,r2,8008cc8 <rtems_task_set_priority+0x4c>
                                                                      
  if ( !old_priority )                                                
    return RTEMS_INVALID_ADDRESS;                                     
 8008cac:	34 04 00 09 	mvi r4,9                                       
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
                                                                      
  if ( !old_priority )                                                
 8008cb0:	45 80 00 06 	be r12,r0,8008cc8 <rtems_task_set_priority+0x4c>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 8008cb4:	37 82 00 10 	addi r2,sp,16                                  
 8008cb8:	f8 00 09 dc 	calli 800b428 <_Thread_Get>                    
  switch ( location ) {                                               
 8008cbc:	2b 82 00 10 	lw r2,(sp+16)                                  
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8008cc0:	34 04 00 04 	mvi r4,4                                       
                                                                      
  if ( !old_priority )                                                
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
  switch ( location ) {                                               
 8008cc4:	44 40 00 07 	be r2,r0,8008ce0 <rtems_task_set_priority+0x64>
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8008cc8:	b8 80 08 00 	mv r1,r4                                       
 8008ccc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8008cd0:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8008cd4:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8008cd8:	37 9c 00 10 	addi sp,sp,16                                  
 8008cdc:	c3 a0 00 00 	ret                                            
  the_thread = _Thread_Get( id, &location );                          
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      /* XXX need helper to "convert" from core priority */           
      *old_priority = the_thread->current_priority;                   
 8008ce0:	28 23 00 14 	lw r3,(r1+20)                                  
 8008ce4:	59 83 00 00 	sw (r12+0),r3                                  
      if ( new_priority != RTEMS_CURRENT_PRIORITY ) {                 
 8008ce8:	45 62 00 09 	be r11,r2,8008d0c <rtems_task_set_priority+0x90>
        the_thread->real_priority = new_priority;                     
        if ( the_thread->resource_count == 0 ||                       
 8008cec:	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;                     
 8008cf0:	58 2b 00 18 	sw (r1+24),r11                                 
        if ( the_thread->resource_count == 0 ||                       
 8008cf4:	44 40 00 03 	be r2,r0,8008d00 <rtems_task_set_priority+0x84>
 8008cf8:	28 22 00 14 	lw r2,(r1+20)                                  
 8008cfc:	51 62 00 04 	bgeu r11,r2,8008d0c <rtems_task_set_priority+0x90><== ALWAYS TAKEN
             the_thread->current_priority > new_priority )            
          _Thread_Change_priority( the_thread, new_priority, false ); 
 8008d00:	b9 60 10 00 	mv r2,r11                                      
 8008d04:	34 03 00 00 	mvi r3,0                                       
 8008d08:	f8 00 08 0b 	calli 800ad34 <_Thread_Change_priority>        
      }                                                               
      _Thread_Enable_dispatch();                                      
 8008d0c:	f8 00 09 ba 	calli 800b3f4 <_Thread_Enable_dispatch>        
      return RTEMS_SUCCESSFUL;                                        
 8008d10:	34 04 00 00 	mvi r4,0                                       
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8008d14:	b8 80 08 00 	mv r1,r4                                       
 8008d18:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8008d1c:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8008d20:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8008d24:	37 9c 00 10 	addi sp,sp,16                                  
 8008d28:	c3 a0 00 00 	ret                                            
                                                                      

080032d0 <rtems_task_start>: rtems_status_code rtems_task_start( rtems_id id, rtems_task_entry entry_point, rtems_task_argument argument ) {
 80032d0:	37 9c ff ec 	addi sp,sp,-20                                 
 80032d4:	5b 8b 00 10 	sw (sp+16),r11                                 
 80032d8:	5b 8c 00 0c 	sw (sp+12),r12                                 
 80032dc:	5b 8d 00 08 	sw (sp+8),r13                                  
 80032e0:	5b 9d 00 04 	sw (sp+4),ra                                   
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( entry_point == NULL )                                          
    return RTEMS_INVALID_ADDRESS;                                     
 80032e4:	34 04 00 09 	mvi r4,9                                       
rtems_status_code rtems_task_start(                                   
  rtems_id         	id,                                               
  rtems_task_entry 	entry_point,                                      
  rtems_task_argument	argument                                        
)                                                                     
{                                                                     
 80032e8:	b8 40 58 00 	mv r11,r2                                      
 80032ec:	b8 60 68 00 	mv r13,r3                                      
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( entry_point == NULL )                                          
 80032f0:	44 40 00 06 	be r2,r0,8003308 <rtems_task_start+0x38>       <== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 80032f4:	37 82 00 14 	addi r2,sp,20                                  
 80032f8:	f8 00 08 b1 	calli 80055bc <_Thread_Get>                    
  switch ( location ) {                                               
 80032fc:	2b 8c 00 14 	lw r12,(sp+20)                                 
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8003300:	34 04 00 04 	mvi r4,4                                       
                                                                      
  if ( entry_point == NULL )                                          
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
  switch ( location ) {                                               
 8003304:	45 80 00 08 	be r12,r0,8003324 <rtems_task_start+0x54>      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8003308:	b8 80 08 00 	mv r1,r4                                       
 800330c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003310:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8003314:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8003318:	2b 8d 00 08 	lw r13,(sp+8)                                  
 800331c:	37 9c 00 14 	addi sp,sp,20                                  
 8003320:	c3 a0 00 00 	ret                                            
                                                                      
  the_thread = _Thread_Get( id, &location );                          
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( _Thread_Start(                                             
 8003324:	34 02 00 00 	mvi r2,0                                       
 8003328:	b9 60 18 00 	mv r3,r11                                      
 800332c:	34 04 00 00 	mvi r4,0                                       
 8003330:	b9 a0 28 00 	mv r5,r13                                      
 8003334:	f8 00 0c 3d 	calli 8006428 <_Thread_Start>                  
 8003338:	5c 2c 00 0a 	bne r1,r12,8003360 <rtems_task_start+0x90>     
             the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) {
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
      _Thread_Enable_dispatch();                                      
 800333c:	f8 00 08 93 	calli 8005588 <_Thread_Enable_dispatch>        
      return RTEMS_INCORRECT_STATE;                                   
 8003340:	34 04 00 0e 	mvi r4,14                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8003344:	b8 80 08 00 	mv r1,r4                                       
 8003348:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800334c:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8003350:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8003354:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8003358:	37 9c 00 14 	addi sp,sp,20                                  
 800335c:	c3 a0 00 00 	ret                                            
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( _Thread_Start(                                             
             the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) {
        _Thread_Enable_dispatch();                                    
 8003360:	f8 00 08 8a 	calli 8005588 <_Thread_Enable_dispatch>        
        return RTEMS_SUCCESSFUL;                                      
 8003364:	34 04 00 00 	mvi r4,0                                       
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8003368:	b8 80 08 00 	mv r1,r4                                       
 800336c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003370:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8003374:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8003378:	2b 8d 00 08 	lw r13,(sp+8)                                  
 800337c:	37 9c 00 14 	addi sp,sp,20                                  
 8003380:	c3 a0 00 00 	ret                                            
                                                                      

08003ef8 <rtems_task_variable_add>: rtems_status_code rtems_task_variable_add( rtems_id tid, void **ptr, void (*dtor)(void *) ) {
 8003ef8:	37 9c ff ec 	addi sp,sp,-20                                 
 8003efc:	5b 8b 00 10 	sw (sp+16),r11                                 
 8003f00:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8003f04:	5b 8d 00 08 	sw (sp+8),r13                                  
 8003f08:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003f0c:	b8 40 58 00 	mv r11,r2                                      
 8003f10:	b8 60 68 00 	mv r13,r3                                      
  Thread_Control        *the_thread;                                  
  Objects_Locations      location;                                    
  rtems_task_variable_t *tvp, *new;                                   
                                                                      
  if ( !ptr )                                                         
    return RTEMS_INVALID_ADDRESS;                                     
 8003f14:	34 02 00 09 	mvi r2,9                                       
{                                                                     
  Thread_Control        *the_thread;                                  
  Objects_Locations      location;                                    
  rtems_task_variable_t *tvp, *new;                                   
                                                                      
  if ( !ptr )                                                         
 8003f18:	45 60 00 07 	be r11,r0,8003f34 <rtems_task_variable_add+0x3c>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get (tid, &location);                          
 8003f1c:	37 82 00 14 	addi r2,sp,20                                  
 8003f20:	f8 00 08 b7 	calli 80061fc <_Thread_Get>                    
 8003f24:	b8 20 60 00 	mv r12,r1                                      
  switch (location) {                                                 
 8003f28:	2b 81 00 14 	lw r1,(sp+20)                                  
#endif                                                                
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
  return RTEMS_INVALID_ID;                                            
 8003f2c:	34 02 00 04 	mvi r2,4                                       
                                                                      
  if ( !ptr )                                                         
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get (tid, &location);                          
  switch (location) {                                                 
 8003f30:	44 20 00 08 	be r1,r0,8003f50 <rtems_task_variable_add+0x58>
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8003f34:	b8 40 08 00 	mv r1,r2                                       
 8003f38:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003f3c:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8003f40:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8003f44:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8003f48:	37 9c 00 14 	addi sp,sp,20                                  
 8003f4c:	c3 a0 00 00 	ret                                            
                                                                      
    case OBJECTS_LOCAL:                                               
      /*                                                              
       *  Figure out if the variable is already in this task's list.  
       */                                                             
      tvp = the_thread->task_variables;                               
 8003f50:	29 84 01 34 	lw r4,(r12+308)                                
      while (tvp) {                                                   
 8003f54:	44 81 00 08 	be r4,r1,8003f74 <rtems_task_variable_add+0x7c>
        if (tvp->ptr == ptr) {                                        
 8003f58:	28 81 00 04 	lw r1,(r4+4)                                   
 8003f5c:	5c 2b 00 04 	bne r1,r11,8003f6c <rtems_task_variable_add+0x74>
 8003f60:	e0 00 00 18 	bi 8003fc0 <rtems_task_variable_add+0xc8>      
 8003f64:	28 82 00 04 	lw r2,(r4+4)                                   
 8003f68:	44 4b 00 16 	be r2,r11,8003fc0 <rtems_task_variable_add+0xc8><== NEVER TAKEN
          tvp->dtor = dtor;                                           
          _Thread_Enable_dispatch();                                  
          return RTEMS_SUCCESSFUL;                                    
        }                                                             
        tvp = (rtems_task_variable_t *)tvp->next;                     
 8003f6c:	28 84 00 00 	lw r4,(r4+0)                                   
    case OBJECTS_LOCAL:                                               
      /*                                                              
       *  Figure out if the variable is already in this task's list.  
       */                                                             
      tvp = the_thread->task_variables;                               
      while (tvp) {                                                   
 8003f70:	5c 80 ff fd 	bne r4,r0,8003f64 <rtems_task_variable_add+0x6c>
                                                                      
      /*                                                              
       *  Now allocate memory for this task variable.                 
       */                                                             
      new = (rtems_task_variable_t *)                                 
         _Workspace_Allocate(sizeof(rtems_task_variable_t));          
 8003f74:	34 01 00 14 	mvi r1,20                                      
 8003f78:	f8 00 0e b0 	calli 8007a38 <_Workspace_Allocate>            
      if (new == NULL) {                                              
 8003f7c:	44 20 00 1b 	be r1,r0,8003fe8 <rtems_task_variable_add+0xf0>
      }                                                               
      new->gval = *ptr;                                               
      new->ptr = ptr;                                                 
      new->dtor = dtor;                                               
                                                                      
      new->next = (struct rtems_task_variable_tt *)the_thread->task_variables;
 8003f80:	29 82 01 34 	lw r2,(r12+308)                                
         _Workspace_Allocate(sizeof(rtems_task_variable_t));          
      if (new == NULL) {                                              
        _Thread_Enable_dispatch();                                    
        return RTEMS_NO_MEMORY;                                       
      }                                                               
      new->gval = *ptr;                                               
 8003f84:	29 63 00 00 	lw r3,(r11+0)                                  
      new->ptr = ptr;                                                 
 8003f88:	58 2b 00 04 	sw (r1+4),r11                                  
      new->dtor = dtor;                                               
 8003f8c:	58 2d 00 10 	sw (r1+16),r13                                 
         _Workspace_Allocate(sizeof(rtems_task_variable_t));          
      if (new == NULL) {                                              
        _Thread_Enable_dispatch();                                    
        return RTEMS_NO_MEMORY;                                       
      }                                                               
      new->gval = *ptr;                                               
 8003f90:	58 23 00 08 	sw (r1+8),r3                                   
      new->ptr = ptr;                                                 
      new->dtor = dtor;                                               
                                                                      
      new->next = (struct rtems_task_variable_tt *)the_thread->task_variables;
 8003f94:	58 22 00 00 	sw (r1+0),r2                                   
      the_thread->task_variables = new;                               
 8003f98:	59 81 01 34 	sw (r12+308),r1                                
      _Thread_Enable_dispatch();                                      
 8003f9c:	f8 00 08 8b 	calli 80061c8 <_Thread_Enable_dispatch>        
      return RTEMS_SUCCESSFUL;                                        
 8003fa0:	34 02 00 00 	mvi r2,0                                       
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8003fa4:	b8 40 08 00 	mv r1,r2                                       
 8003fa8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003fac:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8003fb0:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8003fb4:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8003fb8:	37 9c 00 14 	addi sp,sp,20                                  
 8003fbc:	c3 a0 00 00 	ret                                            
       *  Figure out if the variable is already in this task's list.  
       */                                                             
      tvp = the_thread->task_variables;                               
      while (tvp) {                                                   
        if (tvp->ptr == ptr) {                                        
          tvp->dtor = dtor;                                           
 8003fc0:	58 8d 00 10 	sw (r4+16),r13                                 
          _Thread_Enable_dispatch();                                  
 8003fc4:	f8 00 08 81 	calli 80061c8 <_Thread_Enable_dispatch>        
          return RTEMS_SUCCESSFUL;                                    
 8003fc8:	34 02 00 00 	mvi r2,0                                       
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8003fcc:	b8 40 08 00 	mv r1,r2                                       
 8003fd0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003fd4:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8003fd8:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8003fdc:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8003fe0:	37 9c 00 14 	addi sp,sp,20                                  
 8003fe4:	c3 a0 00 00 	ret                                            
       *  Now allocate memory for this task variable.                 
       */                                                             
      new = (rtems_task_variable_t *)                                 
         _Workspace_Allocate(sizeof(rtems_task_variable_t));          
      if (new == NULL) {                                              
        _Thread_Enable_dispatch();                                    
 8003fe8:	f8 00 08 78 	calli 80061c8 <_Thread_Enable_dispatch>        
        return RTEMS_NO_MEMORY;                                       
 8003fec:	34 02 00 1a 	mvi r2,26                                      
 8003ff0:	e3 ff ff d1 	bi 8003f34 <rtems_task_variable_add+0x3c>      
                                                                      

08003ff4 <rtems_task_variable_delete>: rtems_status_code rtems_task_variable_delete( rtems_id tid, void **ptr ) {
 8003ff4:	37 9c ff f4 	addi sp,sp,-12                                 
 8003ff8:	5b 8b 00 08 	sw (sp+8),r11                                  
 8003ffc:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004000:	b8 40 58 00 	mv r11,r2                                      
  Thread_Control        *the_thread;                                  
  Objects_Locations      location;                                    
  rtems_task_variable_t *tvp, *prev;                                  
                                                                      
  if ( !ptr )                                                         
    return RTEMS_INVALID_ADDRESS;                                     
 8004004:	34 02 00 09 	mvi r2,9                                       
{                                                                     
  Thread_Control        *the_thread;                                  
  Objects_Locations      location;                                    
  rtems_task_variable_t *tvp, *prev;                                  
                                                                      
  if ( !ptr )                                                         
 8004008:	45 60 00 06 	be r11,r0,8004020 <rtems_task_variable_delete+0x2c>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  prev = NULL;                                                        
                                                                      
  the_thread = _Thread_Get (tid, &location);                          
 800400c:	37 82 00 0c 	addi r2,sp,12                                  
 8004010:	f8 00 08 7b 	calli 80061fc <_Thread_Get>                    
  switch (location) {                                                 
 8004014:	2b 82 00 0c 	lw r2,(sp+12)                                  
 8004018:	44 40 00 07 	be r2,r0,8004034 <rtems_task_variable_delete+0x40>
                                                                      
    case OBJECTS_ERROR:                                               
        break;                                                        
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 800401c:	34 02 00 04 	mvi r2,4                                       
}                                                                     
 8004020:	b8 40 08 00 	mv r1,r2                                       
 8004024:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004028:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800402c:	37 9c 00 0c 	addi sp,sp,12                                  
 8004030:	c3 a0 00 00 	ret                                            
                                                                      
  the_thread = _Thread_Get (tid, &location);                          
  switch (location) {                                                 
                                                                      
    case OBJECTS_LOCAL:                                               
      tvp = the_thread->task_variables;                               
 8004034:	28 24 01 34 	lw r4,(r1+308)                                 
      while (tvp) {                                                   
 8004038:	44 82 00 09 	be r4,r2,800405c <rtems_task_variable_delete+0x68>
        if (tvp->ptr == ptr) {                                        
 800403c:	28 82 00 04 	lw r2,(r4+4)                                   
 8004040:	5c 4b 00 05 	bne r2,r11,8004054 <rtems_task_variable_delete+0x60>
 8004044:	e0 00 00 18 	bi 80040a4 <rtems_task_variable_delete+0xb0>   
 8004048:	28 62 00 04 	lw r2,(r3+4)                                   
 800404c:	44 4b 00 0b 	be r2,r11,8004078 <rtems_task_variable_delete+0x84>
 8004050:	b8 60 20 00 	mv r4,r3                                       
          _RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp );  
          _Thread_Enable_dispatch();                                  
          return RTEMS_SUCCESSFUL;                                    
        }                                                             
        prev = tvp;                                                   
        tvp = (rtems_task_variable_t *)tvp->next;                     
 8004054:	28 83 00 00 	lw r3,(r4+0)                                   
  the_thread = _Thread_Get (tid, &location);                          
  switch (location) {                                                 
                                                                      
    case OBJECTS_LOCAL:                                               
      tvp = the_thread->task_variables;                               
      while (tvp) {                                                   
 8004058:	5c 60 ff fc 	bne r3,r0,8004048 <rtems_task_variable_delete+0x54><== ALWAYS TAKEN
          return RTEMS_SUCCESSFUL;                                    
        }                                                             
        prev = tvp;                                                   
        tvp = (rtems_task_variable_t *)tvp->next;                     
      }                                                               
      _Thread_Enable_dispatch();                                      
 800405c:	f8 00 08 5b 	calli 80061c8 <_Thread_Enable_dispatch>        
      return RTEMS_INVALID_ADDRESS;                                   
 8004060:	34 02 00 09 	mvi r2,9                                       
    case OBJECTS_ERROR:                                               
        break;                                                        
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8004064:	b8 40 08 00 	mv r1,r2                                       
 8004068:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800406c:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8004070:	37 9c 00 0c 	addi sp,sp,12                                  
 8004074:	c3 a0 00 00 	ret                                            
    case OBJECTS_LOCAL:                                               
      tvp = the_thread->task_variables;                               
      while (tvp) {                                                   
        if (tvp->ptr == ptr) {                                        
          if (prev)                                                   
            prev->next = tvp->next;                                   
 8004078:	28 62 00 00 	lw r2,(r3+0)                                   
 800407c:	58 82 00 00 	sw (r4+0),r2                                   
          else                                                        
            the_thread->task_variables = (rtems_task_variable_t *)tvp->next;
                                                                      
          _RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp );  
 8004080:	b8 60 10 00 	mv r2,r3                                       
 8004084:	f8 00 00 39 	calli 8004168 <_RTEMS_Tasks_Invoke_task_variable_dtor>
          _Thread_Enable_dispatch();                                  
 8004088:	f8 00 08 50 	calli 80061c8 <_Thread_Enable_dispatch>        
          return RTEMS_SUCCESSFUL;                                    
 800408c:	34 02 00 00 	mvi r2,0                                       
    case OBJECTS_ERROR:                                               
        break;                                                        
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8004090:	b8 40 08 00 	mv r1,r2                                       
 8004094:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004098:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800409c:	37 9c 00 0c 	addi sp,sp,12                                  
 80040a0:	c3 a0 00 00 	ret                                            
      while (tvp) {                                                   
        if (tvp->ptr == ptr) {                                        
          if (prev)                                                   
            prev->next = tvp->next;                                   
          else                                                        
            the_thread->task_variables = (rtems_task_variable_t *)tvp->next;
 80040a4:	28 82 00 00 	lw r2,(r4+0)                                   
 80040a8:	b8 80 18 00 	mv r3,r4                                       
 80040ac:	58 22 01 34 	sw (r1+308),r2                                 
 80040b0:	e3 ff ff f4 	bi 8004080 <rtems_task_variable_delete+0x8c>   
                                                                      

080040b4 <rtems_task_variable_get>: rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result ) {
 80040b4:	37 9c ff f0 	addi sp,sp,-16                                 
 80040b8:	5b 8b 00 0c 	sw (sp+12),r11                                 
 80040bc:	5b 8c 00 08 	sw (sp+8),r12                                  
 80040c0:	5b 9d 00 04 	sw (sp+4),ra                                   
 80040c4:	b8 40 58 00 	mv r11,r2                                      
 80040c8:	b8 60 60 00 	mv r12,r3                                      
  Thread_Control        *the_thread;                                  
  Objects_Locations      location;                                    
  rtems_task_variable_t *tvp;                                         
                                                                      
  if ( !ptr )                                                         
    return RTEMS_INVALID_ADDRESS;                                     
 80040cc:	34 02 00 09 	mvi r2,9                                       
{                                                                     
  Thread_Control        *the_thread;                                  
  Objects_Locations      location;                                    
  rtems_task_variable_t *tvp;                                         
                                                                      
  if ( !ptr )                                                         
 80040d0:	45 60 00 07 	be r11,r0,80040ec <rtems_task_variable_get+0x38>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !result )                                                      
 80040d4:	44 60 00 06 	be r3,r0,80040ec <rtems_task_variable_get+0x38>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get (tid, &location);                          
 80040d8:	37 82 00 10 	addi r2,sp,16                                  
 80040dc:	f8 00 08 48 	calli 80061fc <_Thread_Get>                    
  switch (location) {                                                 
 80040e0:	2b 82 00 10 	lw r2,(sp+16)                                  
 80040e4:	44 40 00 08 	be r2,r0,8004104 <rtems_task_variable_get+0x50>
#endif                                                                
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
  return RTEMS_INVALID_ID;                                            
 80040e8:	34 02 00 04 	mvi r2,4                                       
}                                                                     
 80040ec:	b8 40 08 00 	mv r1,r2                                       
 80040f0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80040f4:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 80040f8:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80040fc:	37 9c 00 10 	addi sp,sp,16                                  
 8004100:	c3 a0 00 00 	ret                                            
                                                                      
    case OBJECTS_LOCAL:                                               
      /*                                                              
       *  Figure out if the variable is in this task's list.          
       */                                                             
      tvp = the_thread->task_variables;                               
 8004104:	28 21 01 34 	lw r1,(r1+308)                                 
      while (tvp) {                                                   
 8004108:	5c 22 00 04 	bne r1,r2,8004118 <rtems_task_variable_get+0x64>
 800410c:	e0 00 00 0f 	bi 8004148 <rtems_task_variable_get+0x94>      
	   */                                                                
          *result = tvp->tval;                                        
          _Thread_Enable_dispatch();                                  
          return RTEMS_SUCCESSFUL;                                    
        }                                                             
        tvp = (rtems_task_variable_t *)tvp->next;                     
 8004110:	28 21 00 00 	lw r1,(r1+0)                                   
    case OBJECTS_LOCAL:                                               
      /*                                                              
       *  Figure out if the variable is in this task's list.          
       */                                                             
      tvp = the_thread->task_variables;                               
      while (tvp) {                                                   
 8004114:	44 20 00 0d 	be r1,r0,8004148 <rtems_task_variable_get+0x94><== NEVER TAKEN
        if (tvp->ptr == ptr) {                                        
 8004118:	28 22 00 04 	lw r2,(r1+4)                                   
 800411c:	5c 4b ff fd 	bne r2,r11,8004110 <rtems_task_variable_get+0x5c>
	  /*                                                                 
	   * Should this return the current (i.e not the                     
	   * saved) value if `tid' is the current task?                      
	   */                                                                
          *result = tvp->tval;                                        
 8004120:	28 21 00 0c 	lw r1,(r1+12)                                  
 8004124:	59 81 00 00 	sw (r12+0),r1                                  
          _Thread_Enable_dispatch();                                  
 8004128:	f8 00 08 28 	calli 80061c8 <_Thread_Enable_dispatch>        
          return RTEMS_SUCCESSFUL;                                    
 800412c:	34 02 00 00 	mvi r2,0                                       
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8004130:	b8 40 08 00 	mv r1,r2                                       
 8004134:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004138:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 800413c:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8004140:	37 9c 00 10 	addi sp,sp,16                                  
 8004144:	c3 a0 00 00 	ret                                            
          _Thread_Enable_dispatch();                                  
          return RTEMS_SUCCESSFUL;                                    
        }                                                             
        tvp = (rtems_task_variable_t *)tvp->next;                     
      }                                                               
      _Thread_Enable_dispatch();                                      
 8004148:	f8 00 08 20 	calli 80061c8 <_Thread_Enable_dispatch>        
      return RTEMS_INVALID_ADDRESS;                                   
 800414c:	34 02 00 09 	mvi r2,9                                       
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8004150:	b8 40 08 00 	mv r1,r2                                       
 8004154:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004158:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 800415c:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8004160:	37 9c 00 10 	addi sp,sp,16                                  
 8004164:	c3 a0 00 00 	ret                                            
                                                                      

08013d00 <rtems_timer_cancel>: */ rtems_status_code rtems_timer_cancel( rtems_id id ) {
 8013d00:	37 9c ff f8 	addi sp,sp,-8                                  
 8013d04:	5b 9d 00 04 	sw (sp+4),ra                                   
 8013d08:	b8 20 10 00 	mv r2,r1                                       
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Timer_Control *)                                            
    _Objects_Get( &_Timer_Information, id, location );                
 8013d0c:	78 01 08 04 	mvhi r1,0x804                                  
 8013d10:	38 21 15 8c 	ori r1,r1,0x158c                               
 8013d14:	37 83 00 08 	addi r3,sp,8                                   
 8013d18:	f8 00 0e 94 	calli 8017768 <_Objects_Get>                   
  Timer_Control   *the_timer;                                         
  Objects_Locations       location;                                   
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
 8013d1c:	2b 82 00 08 	lw r2,(sp+8)                                   
 8013d20:	44 40 00 05 	be r2,r0,8013d34 <rtems_timer_cancel+0x34>     
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8013d24:	34 01 00 04 	mvi r1,4                                       
}                                                                     
 8013d28:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8013d2c:	37 9c 00 08 	addi sp,sp,8                                   
 8013d30:	c3 a0 00 00 	ret                                            
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( !_Timer_Is_dormant_class( the_timer->the_class ) )         
 8013d34:	28 23 00 38 	lw r3,(r1+56)                                  
 8013d38:	34 02 00 04 	mvi r2,4                                       
 8013d3c:	44 62 00 03 	be r3,r2,8013d48 <rtems_timer_cancel+0x48>     <== NEVER TAKEN
        (void) _Watchdog_Remove( &the_timer->Ticker );                
 8013d40:	34 21 00 10 	addi r1,r1,16                                  
 8013d44:	f8 00 18 93 	calli 8019f90 <_Watchdog_Remove>               
      _Thread_Enable_dispatch();                                      
 8013d48:	f8 00 11 81 	calli 801834c <_Thread_Enable_dispatch>        
      return RTEMS_SUCCESSFUL;                                        
 8013d4c:	34 01 00 00 	mvi r1,0                                       
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8013d50:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8013d54:	37 9c 00 08 	addi sp,sp,8                                   
 8013d58:	c3 a0 00 00 	ret                                            
                                                                      

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

0801437c <rtems_timer_server_fire_when>: rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) {
 801437c:	37 9c ff dc 	addi sp,sp,-36                                 
 8014380:	5b 8b 00 20 	sw (sp+32),r11                                 
 8014384:	5b 8c 00 1c 	sw (sp+28),r12                                 
 8014388:	5b 8d 00 18 	sw (sp+24),r13                                 
 801438c:	5b 8e 00 14 	sw (sp+20),r14                                 
 8014390:	5b 8f 00 10 	sw (sp+16),r15                                 
 8014394:	5b 90 00 0c 	sw (sp+12),r16                                 
 8014398:	5b 91 00 08 	sw (sp+8),r17                                  
 801439c:	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;                 
 80143a0:	78 05 08 04 	mvhi r5,0x804                                  
 80143a4:	38 a5 15 cc 	ori r5,r5,0x15cc                               
 80143a8:	28 ac 00 00 	lw r12,(r5+0)                                  
  rtems_id                           id,                              
  rtems_time_of_day                  *wall_time,                      
  rtems_timer_service_routine_entry  routine,                         
  void                              *user_data                        
)                                                                     
{                                                                     
 80143ac:	b8 20 80 00 	mv r16,r1                                      
 80143b0:	b8 40 70 00 	mv r14,r2                                      
 80143b4:	b8 60 78 00 	mv r15,r3                                      
 80143b8:	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;                                     
 80143bc:	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 )                                                
 80143c0:	45 80 00 0c 	be r12,r0,80143f0 <rtems_timer_server_fire_when+0x74>
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD_Is_set )                                                 
 80143c4:	78 05 08 04 	mvhi r5,0x804                                  
 80143c8:	38 a5 0c b4 	ori r5,r5,0xcb4                                
 80143cc:	40 a5 00 00 	lbu r5,(r5+0)                                  
    return RTEMS_NOT_DEFINED;                                         
 80143d0:	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 )                                                 
 80143d4:	44 a0 00 07 	be r5,r0,80143f0 <rtems_timer_server_fire_when+0x74><== NEVER TAKEN
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
 80143d8:	34 0b 00 09 	mvi r11,9                                      
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD_Is_set )                                                 
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
 80143dc:	44 60 00 05 	be r3,r0,80143f0 <rtems_timer_server_fire_when+0x74>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
 80143e0:	b8 40 08 00 	mv r1,r2                                       
 80143e4:	fb ff f0 ab 	calli 8010690 <_TOD_Validate>                  
    return RTEMS_INVALID_CLOCK;                                       
 80143e8:	34 0b 00 14 	mvi r11,20                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
 80143ec:	5c 20 00 0c 	bne r1,r0,801441c <rtems_timer_server_fire_when+0xa0>
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 80143f0:	b9 60 08 00 	mv r1,r11                                      
 80143f4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80143f8:	2b 8b 00 20 	lw r11,(sp+32)                                 
 80143fc:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 8014400:	2b 8d 00 18 	lw r13,(sp+24)                                 
 8014404:	2b 8e 00 14 	lw r14,(sp+20)                                 
 8014408:	2b 8f 00 10 	lw r15,(sp+16)                                 
 801440c:	2b 90 00 0c 	lw r16,(sp+12)                                 
 8014410:	2b 91 00 08 	lw r17,(sp+8)                                  
 8014414:	37 9c 00 24 	addi sp,sp,36                                  
 8014418:	c3 a0 00 00 	ret                                            
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
 801441c:	b9 c0 08 00 	mv r1,r14                                      
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
 8014420:	78 0d 08 04 	mvhi r13,0x804                                 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
 8014424:	fb ff f0 42 	calli 801052c <_TOD_To_seconds>                
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
 8014428:	39 ad 0d 2c 	ori r13,r13,0xd2c                              
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
 801442c:	b8 20 70 00 	mv r14,r1                                      
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
 8014430:	29 a1 00 00 	lw r1,(r13+0)                                  
 8014434:	50 2e ff ef 	bgeu r1,r14,80143f0 <rtems_timer_server_fire_when+0x74>
 8014438:	78 01 08 04 	mvhi r1,0x804                                  
 801443c:	38 21 15 8c 	ori r1,r1,0x158c                               
 8014440:	ba 00 10 00 	mv r2,r16                                      
 8014444:	37 83 00 24 	addi r3,sp,36                                  
 8014448:	f8 00 0c c8 	calli 8017768 <_Objects_Get>                   
 801444c:	b8 20 58 00 	mv r11,r1                                      
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
 8014450:	2b 81 00 24 	lw r1,(sp+36)                                  
 8014454:	44 20 00 03 	be r1,r0,8014460 <rtems_timer_server_fire_when+0xe4>
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8014458:	34 0b 00 04 	mvi r11,4                                      
 801445c:	e3 ff ff e5 	bi 80143f0 <rtems_timer_server_fire_when+0x74> 
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
 8014460:	35 61 00 10 	addi r1,r11,16                                 
 8014464:	f8 00 16 cb 	calli 8019f90 <_Watchdog_Remove>               
      the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;               
      _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
      the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
 8014468:	29 a1 00 00 	lw r1,(r13+0)                                  
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
 801446c:	29 83 00 04 	lw r3,(r12+4)                                  
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
      the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;               
 8014470:	34 04 00 03 	mvi r4,3                                       
      _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
      the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
 8014474:	c9 c1 70 00 	sub r14,r14,r1                                 
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
 8014478:	b9 60 10 00 	mv r2,r11                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
      the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;               
 801447c:	59 64 00 38 	sw (r11+56),r4                                 
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
 8014480:	59 6f 00 2c 	sw (r11+44),r15                                
  the_watchdog->id        = id;                                       
 8014484:	59 70 00 30 	sw (r11+48),r16                                
  the_watchdog->user_data = user_data;                                
 8014488:	59 71 00 34 	sw (r11+52),r17                                
      _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
      the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
 801448c:	59 6e 00 1c 	sw (r11+28),r14                                
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
 8014490:	b9 80 08 00 	mv r1,r12                                      
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 8014494:	59 60 00 18 	sw (r11+24),r0                                 
 8014498:	d8 60 00 00 	call r3                                        
                                                                      
      _Thread_Enable_dispatch();                                      
      return RTEMS_SUCCESSFUL;                                        
 801449c:	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();                                      
 80144a0:	f8 00 0f ab 	calli 801834c <_Thread_Enable_dispatch>        
      return RTEMS_SUCCESSFUL;                                        
 80144a4:	e3 ff ff d3 	bi 80143f0 <rtems_timer_server_fire_when+0x74> 
                                                                      

08003dcc <sched_get_priority_max>: #include <rtems/posix/priority.h> int sched_get_priority_max( int policy ) {
 8003dcc:	37 9c ff fc 	addi sp,sp,-4                                  
 8003dd0:	5b 9d 00 04 	sw (sp+4),ra                                   
  switch ( policy ) {                                                 
 8003dd4:	48 01 00 05 	bg r0,r1,8003de8 <sched_get_priority_max+0x1c> 
 8003dd8:	34 02 00 02 	mvi r2,2                                       
 8003ddc:	4c 41 00 08 	bge r2,r1,8003dfc <sched_get_priority_max+0x30>
 8003de0:	34 02 00 04 	mvi r2,4                                       
 8003de4:	44 22 00 06 	be r1,r2,8003dfc <sched_get_priority_max+0x30> <== ALWAYS TAKEN
    case SCHED_RR:                                                    
    case SCHED_SPORADIC:                                              
      break;                                                          
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
 8003de8:	f8 00 27 53 	calli 800db34 <__errno>                        
 8003dec:	34 02 00 16 	mvi r2,22                                      
 8003df0:	58 22 00 00 	sw (r1+0),r2                                   
 8003df4:	34 01 ff ff 	mvi r1,-1                                      
 8003df8:	e0 00 00 05 	bi 8003e0c <sched_get_priority_max+0x40>       
  }                                                                   
                                                                      
  return POSIX_SCHEDULER_MAXIMUM_PRIORITY;                            
 8003dfc:	78 01 08 01 	mvhi r1,0x801                                  
 8003e00:	38 21 f0 e4 	ori r1,r1,0xf0e4                               
 8003e04:	40 21 00 00 	lbu r1,(r1+0)                                  
 8003e08:	34 21 ff ff 	addi r1,r1,-1                                  
}                                                                     
 8003e0c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003e10:	37 9c 00 04 	addi sp,sp,4                                   
 8003e14:	c3 a0 00 00 	ret                                            
                                                                      

08003e18 <sched_get_priority_min>: #include <rtems/posix/priority.h> int sched_get_priority_min( int policy ) {
 8003e18:	37 9c ff fc 	addi sp,sp,-4                                  
 8003e1c:	5b 9d 00 04 	sw (sp+4),ra                                   
  switch ( policy ) {                                                 
 8003e20:	48 01 00 05 	bg r0,r1,8003e34 <sched_get_priority_min+0x1c> 
 8003e24:	34 02 00 02 	mvi r2,2                                       
 8003e28:	4c 41 00 08 	bge r2,r1,8003e48 <sched_get_priority_min+0x30><== ALWAYS TAKEN
 8003e2c:	34 02 00 04 	mvi r2,4                                       <== NOT EXECUTED
 8003e30:	44 22 00 06 	be r1,r2,8003e48 <sched_get_priority_min+0x30> <== NOT EXECUTED
    case SCHED_RR:                                                    
    case SCHED_SPORADIC:                                              
      break;                                                          
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
 8003e34:	f8 00 27 40 	calli 800db34 <__errno>                        
 8003e38:	34 02 00 16 	mvi r2,22                                      
 8003e3c:	58 22 00 00 	sw (r1+0),r2                                   
 8003e40:	34 01 ff ff 	mvi r1,-1                                      
 8003e44:	e0 00 00 02 	bi 8003e4c <sched_get_priority_min+0x34>       
  }                                                                   
                                                                      
  return POSIX_SCHEDULER_MINIMUM_PRIORITY;                            
 8003e48:	34 01 00 01 	mvi r1,1                                       
}                                                                     
 8003e4c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003e50:	37 9c 00 04 	addi sp,sp,4                                   
 8003e54:	c3 a0 00 00 	ret                                            
                                                                      

08003e58 <sched_rr_get_interval>: int sched_rr_get_interval( pid_t pid, struct timespec *interval ) {
 8003e58:	37 9c ff f4 	addi sp,sp,-12                                 
 8003e5c:	5b 8b 00 08 	sw (sp+8),r11                                  
 8003e60:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003e64:	b8 20 58 00 	mv r11,r1                                      
  /*                                                                  
   *  Only supported for the "calling process" (i.e. this node).      
   */                                                                 
                                                                      
  if ( pid && pid != getpid() )                                       
 8003e68:	5c 20 00 0b 	bne r1,r0,8003e94 <sched_rr_get_interval+0x3c> <== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( ESRCH );                    
                                                                      
  if ( !interval )                                                    
 8003e6c:	44 40 00 13 	be r2,r0,8003eb8 <sched_rr_get_interval+0x60>  
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  _Timespec_From_ticks( _Thread_Ticks_per_timeslice, interval );      
 8003e70:	78 01 08 01 	mvhi r1,0x801                                  
 8003e74:	38 21 f7 f4 	ori r1,r1,0xf7f4                               
 8003e78:	28 21 00 00 	lw r1,(r1+0)                                   
 8003e7c:	f8 00 0e 10 	calli 80076bc <_Timespec_From_ticks>           
  return 0;                                                           
 8003e80:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 8003e84:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003e88:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8003e8c:	37 9c 00 0c 	addi sp,sp,12                                  
 8003e90:	c3 a0 00 00 	ret                                            
{                                                                     
  /*                                                                  
   *  Only supported for the "calling process" (i.e. this node).      
   */                                                                 
                                                                      
  if ( pid && pid != getpid() )                                       
 8003e94:	5b 82 00 0c 	sw (sp+12),r2                                  
 8003e98:	fb ff f8 1e 	calli 8001f10 <getpid>                         
 8003e9c:	2b 82 00 0c 	lw r2,(sp+12)                                  
 8003ea0:	44 2b ff f3 	be r1,r11,8003e6c <sched_rr_get_interval+0x14> 
    rtems_set_errno_and_return_minus_one( ESRCH );                    
 8003ea4:	f8 00 27 24 	calli 800db34 <__errno>                        
 8003ea8:	34 02 00 03 	mvi r2,3                                       
 8003eac:	58 22 00 00 	sw (r1+0),r2                                   
 8003eb0:	34 01 ff ff 	mvi r1,-1                                      
 8003eb4:	e3 ff ff f4 	bi 8003e84 <sched_rr_get_interval+0x2c>        
                                                                      
  if ( !interval )                                                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 8003eb8:	f8 00 27 1f 	calli 800db34 <__errno>                        
 8003ebc:	34 02 00 16 	mvi r2,22                                      
 8003ec0:	58 22 00 00 	sw (r1+0),r2                                   
 8003ec4:	34 01 ff ff 	mvi r1,-1                                      
 8003ec8:	e3 ff ff ef 	bi 8003e84 <sched_rr_get_interval+0x2c>        
                                                                      

08006218 <sem_open>: int oflag, ... /* mode_t mode, */ /* unsigned int value */ ) {
 8006218:	37 9c ff c0 	addi sp,sp,-64                                 
 800621c:	5b 8b 00 18 	sw (sp+24),r11                                 
 8006220:	5b 8c 00 14 	sw (sp+20),r12                                 
 8006224:	5b 8d 00 10 	sw (sp+16),r13                                 
 8006228:	5b 8e 00 0c 	sw (sp+12),r14                                 
 800622c:	5b 8f 00 08 	sw (sp+8),r15                                  
 8006230:	5b 9d 00 04 	sw (sp+4),ra                                   
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
 8006234:	78 09 08 02 	mvhi r9,0x802                                  
 8006238:	39 29 4a 54 	ori r9,r9,0x4a54                               
 800623c:	29 2a 00 00 	lw r10,(r9+0)                                  
 8006240:	b8 20 70 00 	mv r14,r1                                      
 8006244:	5b 82 00 28 	sw (sp+40),r2                                  
 8006248:	35 41 00 01 	addi r1,r10,1                                  
 800624c:	5b 83 00 2c 	sw (sp+44),r3                                  
 8006250:	5b 84 00 30 	sw (sp+48),r4                                  
 8006254:	5b 85 00 34 	sw (sp+52),r5                                  
 8006258:	5b 86 00 38 	sw (sp+56),r6                                  
 800625c:	5b 87 00 3c 	sw (sp+60),r7                                  
 8006260:	5b 88 00 40 	sw (sp+64),r8                                  
 8006264:	b8 40 60 00 	mv r12,r2                                      
 8006268:	59 21 00 00 	sw (r9+0),r1                                   
  POSIX_Semaphore_Control   *the_semaphore;                           
  Objects_Locations          location;                                
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( oflag & O_CREAT ) {                                            
 800626c:	20 4d 02 00 	andi r13,r2,0x200                              
  /* unsigned int value */                                            
)                                                                     
{                                                                     
  va_list                    arg;                                     
  mode_t                     mode;                                    
  unsigned int               value = 0;                               
 8006270:	34 0f 00 00 	mvi r15,0                                      
  POSIX_Semaphore_Control   *the_semaphore;                           
  Objects_Locations          location;                                
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( oflag & O_CREAT ) {                                            
 8006274:	5d a0 00 2d 	bne r13,r0,8006328 <sem_open+0x110>            
    mode = (mode_t) va_arg( arg, unsigned int );                      
    value = va_arg( arg, unsigned int );                              
    va_end(arg);                                                      
  }                                                                   
                                                                      
  status = _POSIX_Semaphore_Name_to_id( name, &the_semaphore_id );    
 8006278:	b9 c0 08 00 	mv r1,r14                                      
 800627c:	37 82 00 24 	addi r2,sp,36                                  
 8006280:	f8 00 1b 9a 	calli 800d0e8 <_POSIX_Semaphore_Name_to_id>    
 8006284:	b8 20 58 00 	mv r11,r1                                      
   *  and we can just return a pointer to the id.  Otherwise we may   
   *  need to check to see if this is a "semaphore does not exist"    
   *  or some other miscellaneous error on the name.                  
   */                                                                 
                                                                      
  if ( status ) {                                                     
 8006288:	44 20 00 10 	be r1,r0,80062c8 <sem_open+0xb0>               
    /*                                                                
     * Unless provided a valid name that did not already exist        
     * and we are willing to create then it is an error.              
     */                                                               
                                                                      
    if ( !( status == ENOENT && (oflag & O_CREAT) ) ) {               
 800628c:	34 01 00 02 	mvi r1,2                                       
 8006290:	5d 61 00 02 	bne r11,r1,8006298 <sem_open+0x80>             <== NEVER TAKEN
 8006294:	5d a0 00 27 	bne r13,r0,8006330 <sem_open+0x118>            
      _Thread_Enable_dispatch();                                      
 8006298:	f8 00 0a 28 	calli 8008b38 <_Thread_Enable_dispatch>        
      rtems_set_errno_and_return_minus_one_cast( status, sem_t * );   
 800629c:	f8 00 2b 55 	calli 8010ff0 <__errno>                        
 80062a0:	58 2b 00 00 	sw (r1+0),r11                                  
 80062a4:	34 01 ff ff 	mvi r1,-1                                      
    id = &the_semaphore->Semaphore_id;                                
  #else                                                               
    id = (sem_t *)&the_semaphore->Object.id;                          
  #endif                                                              
  return id;                                                          
}                                                                     
 80062a8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80062ac:	2b 8b 00 18 	lw r11,(sp+24)                                 
 80062b0:	2b 8c 00 14 	lw r12,(sp+20)                                 
 80062b4:	2b 8d 00 10 	lw r13,(sp+16)                                 
 80062b8:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 80062bc:	2b 8f 00 08 	lw r15,(sp+8)                                  
 80062c0:	37 9c 00 40 	addi sp,sp,64                                  
 80062c4:	c3 a0 00 00 	ret                                            
                                                                      
    /*                                                                
     * Check for existence with creation.                             
     */                                                               
                                                                      
    if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {       
 80062c8:	21 8c 0a 00 	andi r12,r12,0xa00                             
 80062cc:	34 01 0a 00 	mvi r1,2560                                    
 80062d0:	45 81 00 22 	be r12,r1,8006358 <sem_open+0x140>             
 80062d4:	2b 82 00 24 	lw r2,(sp+36)                                  
 80062d8:	78 01 08 02 	mvhi r1,0x802                                  
 80062dc:	37 83 00 1c 	addi r3,sp,28                                  
 80062e0:	38 21 4c b4 	ori r1,r1,0x4cb4                               
 80062e4:	f8 00 07 9a 	calli 800814c <_Objects_Get>                   
      _Thread_Enable_dispatch();                                      
      rtems_set_errno_and_return_minus_one_cast( EEXIST, sem_t * );   
    }                                                                 
                                                                      
    the_semaphore = _POSIX_Semaphore_Get( &the_semaphore_id, &location );
    the_semaphore->open_count += 1;                                   
 80062e8:	28 22 00 18 	lw r2,(r1+24)                                  
    if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {       
      _Thread_Enable_dispatch();                                      
      rtems_set_errno_and_return_minus_one_cast( EEXIST, sem_t * );   
    }                                                                 
                                                                      
    the_semaphore = _POSIX_Semaphore_Get( &the_semaphore_id, &location );
 80062ec:	5b 81 00 20 	sw (sp+32),r1                                  
    the_semaphore->open_count += 1;                                   
 80062f0:	34 42 00 01 	addi r2,r2,1                                   
 80062f4:	58 22 00 18 	sw (r1+24),r2                                  
    _Thread_Enable_dispatch();                                        
 80062f8:	f8 00 0a 10 	calli 8008b38 <_Thread_Enable_dispatch>        
    _Thread_Enable_dispatch();                                        
 80062fc:	f8 00 0a 0f 	calli 8008b38 <_Thread_Enable_dispatch>        
return_id:                                                            
  #if defined(RTEMS_USE_16_BIT_OBJECT)                                
    the_semaphore->Semaphore_id = the_semaphore->Object.id;           
    id = &the_semaphore->Semaphore_id;                                
  #else                                                               
    id = (sem_t *)&the_semaphore->Object.id;                          
 8006300:	2b 81 00 20 	lw r1,(sp+32)                                  
 8006304:	34 21 00 08 	addi r1,r1,8                                   
  #endif                                                              
  return id;                                                          
}                                                                     
 8006308:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800630c:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8006310:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8006314:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8006318:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800631c:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8006320:	37 9c 00 40 	addi sp,sp,64                                  
 8006324:	c3 a0 00 00 	ret                                            
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( oflag & O_CREAT ) {                                            
    va_start(arg, oflag);                                             
    mode = (mode_t) va_arg( arg, unsigned int );                      
    value = va_arg( arg, unsigned int );                              
 8006328:	2b 8f 00 30 	lw r15,(sp+48)                                 
 800632c:	e3 ff ff d3 	bi 8006278 <sem_open+0x60>                     
  /*                                                                  
   *  At this point, the semaphore does not exist and everything has been
   *  checked. We should go ahead and create a semaphore.             
   */                                                                 
                                                                      
  status =_POSIX_Semaphore_Create_support(                            
 8006330:	34 02 00 00 	mvi r2,0                                       
 8006334:	b9 e0 18 00 	mv r3,r15                                      
 8006338:	37 84 00 20 	addi r4,sp,32                                  
 800633c:	b9 c0 08 00 	mv r1,r14                                      
 8006340:	f8 00 1a fc 	calli 800cf30 <_POSIX_Semaphore_Create_support>
 8006344:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  /*                                                                  
   * errno was set by Create_support, so don't set it again.          
   */                                                                 
                                                                      
  _Thread_Enable_dispatch();                                          
 8006348:	f8 00 09 fc 	calli 8008b38 <_Thread_Enable_dispatch>        
                                                                      
  if ( status == -1 )                                                 
    return SEM_FAILED;                                                
 800634c:	34 01 ff ff 	mvi r1,-1                                      
   * errno was set by Create_support, so don't set it again.          
   */                                                                 
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  if ( status == -1 )                                                 
 8006350:	5d 61 ff ec 	bne r11,r1,8006300 <sem_open+0xe8>             
 8006354:	e3 ff ff ed 	bi 8006308 <sem_open+0xf0>                     
    /*                                                                
     * Check for existence with creation.                             
     */                                                               
                                                                      
    if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {       
      _Thread_Enable_dispatch();                                      
 8006358:	f8 00 09 f8 	calli 8008b38 <_Thread_Enable_dispatch>        
      rtems_set_errno_and_return_minus_one_cast( EEXIST, sem_t * );   
 800635c:	f8 00 2b 25 	calli 8010ff0 <__errno>                        
 8006360:	34 02 00 11 	mvi r2,17                                      
 8006364:	58 22 00 00 	sw (r1+0),r2                                   
 8006368:	34 01 ff ff 	mvi r1,-1                                      
 800636c:	e3 ff ff e7 	bi 8006308 <sem_open+0xf0>                     
                                                                      

080063d4 <sem_timedwait>: int sem_timedwait( sem_t *sem, const struct timespec *abstime ) {
 80063d4:	37 9c ff f4 	addi sp,sp,-12                                 
 80063d8:	5b 8b 00 08 	sw (sp+8),r11                                  
 80063dc:	5b 9d 00 04 	sw (sp+4),ra                                   
 80063e0:	b8 20 58 00 	mv r11,r1                                      
   *                                                                  
   *  If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,                
   *  POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
   *  then we should not wait.                                        
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
 80063e4:	b8 40 08 00 	mv r1,r2                                       
 80063e8:	37 82 00 0c 	addi r2,sp,12                                  
 80063ec:	f8 00 17 98 	calli 800c24c <_POSIX_Absolute_timeout_to_ticks>
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
 80063f0:	34 02 00 03 	mvi r2,3                                       
 80063f4:	44 22 00 09 	be r1,r2,8006418 <sem_timedwait+0x44>          <== ALWAYS TAKEN
    do_wait = false;                                                  
                                                                      
  lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); 
 80063f8:	2b 83 00 0c 	lw r3,(sp+12)                                  <== NOT EXECUTED
 80063fc:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8006400:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 8006404:	f8 00 1b 5f 	calli 800d180 <_POSIX_Semaphore_Wait_support>  <== NOT EXECUTED
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  return lock_status;                                                 
}                                                                     
 8006408:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 800640c:	2b 8b 00 08 	lw r11,(sp+8)                                  <== NOT EXECUTED
 8006410:	37 9c 00 0c 	addi sp,sp,12                                  <== NOT EXECUTED
 8006414:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
    do_wait = false;                                                  
                                                                      
  lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); 
 8006418:	2b 83 00 0c 	lw r3,(sp+12)                                  
 800641c:	b9 60 08 00 	mv r1,r11                                      
 8006420:	34 02 00 01 	mvi r2,1                                       
 8006424:	f8 00 1b 57 	calli 800d180 <_POSIX_Semaphore_Wait_support>  
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  return lock_status;                                                 
}                                                                     
 8006428:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800642c:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8006430:	37 9c 00 0c 	addi sp,sp,12                                  
 8006434:	c3 a0 00 00 	ret                                            
                                                                      

08003ce8 <sigaction>: int sigaction( int sig, const struct sigaction *act, struct sigaction *oact ) {
 8003ce8:	37 9c ff f0 	addi sp,sp,-16                                 
 8003cec:	5b 8b 00 10 	sw (sp+16),r11                                 
 8003cf0:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8003cf4:	5b 8d 00 08 	sw (sp+8),r13                                  
 8003cf8:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003cfc:	b8 20 58 00 	mv r11,r1                                      
 8003d00:	b8 40 60 00 	mv r12,r2                                      
  ISR_Level     level;                                                
                                                                      
  if ( oact )                                                         
 8003d04:	44 60 00 0e 	be r3,r0,8003d3c <sigaction+0x54>              
    *oact = _POSIX_signals_Vectors[ sig ];                            
 8003d08:	b4 21 08 00 	add r1,r1,r1                                   
 8003d0c:	b4 2b 08 00 	add r1,r1,r11                                  
 8003d10:	78 02 08 02 	mvhi r2,0x802                                  
 8003d14:	b4 21 08 00 	add r1,r1,r1                                   
 8003d18:	38 42 0d a8 	ori r2,r2,0xda8                                
 8003d1c:	b4 21 08 00 	add r1,r1,r1                                   
 8003d20:	b4 41 08 00 	add r1,r2,r1                                   
 8003d24:	28 22 00 00 	lw r2,(r1+0)                                   
 8003d28:	58 62 00 00 	sw (r3+0),r2                                   
 8003d2c:	28 22 00 04 	lw r2,(r1+4)                                   
 8003d30:	58 62 00 04 	sw (r3+4),r2                                   
 8003d34:	28 21 00 08 	lw r1,(r1+8)                                   
 8003d38:	58 61 00 08 	sw (r3+8),r1                                   
                                                                      
  if ( !sig )                                                         
 8003d3c:	45 60 00 04 	be r11,r0,8003d4c <sigaction+0x64>             
                                                                      
static inline bool is_valid_signo(                                    
  int signo                                                           
)                                                                     
{                                                                     
  return ((signo) >= 1 && (signo) <= 32 );                            
 8003d40:	35 61 ff ff 	addi r1,r11,-1                                 
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !is_valid_signo(sig) )                                         
 8003d44:	34 02 00 1f 	mvi r2,31                                      
 8003d48:	50 41 00 06 	bgeu r2,r1,8003d60 <sigaction+0x78>            
   *  NOTE: Solaris documentation claims to "silently enforce" this which
   *        contradicts the POSIX specification.                      
   */                                                                 
                                                                      
  if ( sig == SIGKILL )                                               
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 8003d4c:	f8 00 28 df 	calli 800e0c8 <__errno>                        
 8003d50:	34 02 00 16 	mvi r2,22                                      
 8003d54:	58 22 00 00 	sw (r1+0),r2                                   
 8003d58:	34 01 ff ff 	mvi r1,-1                                      
 8003d5c:	e0 00 00 1c 	bi 8003dcc <sigaction+0xe4>                    
   *                                                                  
   *  NOTE: Solaris documentation claims to "silently enforce" this which
   *        contradicts the POSIX specification.                      
   */                                                                 
                                                                      
  if ( sig == SIGKILL )                                               
 8003d60:	34 01 00 09 	mvi r1,9                                       
 8003d64:	45 61 ff fa 	be r11,r1,8003d4c <sigaction+0x64>             
   *      now (signals not posted when SIG_IGN).                      
   *    + If we are now ignoring a signal that was previously pending,
   *      we clear the pending signal indicator.                      
   */                                                                 
                                                                      
  return 0;                                                           
 8003d68:	34 01 00 00 	mvi r1,0                                       
  /*                                                                  
   *  Evaluate the new action structure and set the global signal vector
   *  appropriately.                                                  
   */                                                                 
                                                                      
  if ( act ) {                                                        
 8003d6c:	45 80 00 18 	be r12,r0,8003dcc <sigaction+0xe4>             <== NEVER TAKEN
    /*                                                                
     *  Unless the user is installing the default signal actions, then
     *  we can just copy the provided sigaction structure into the vectors.
     */                                                               
                                                                      
    _ISR_Disable( level );                                            
 8003d70:	90 00 68 00 	rcsr r13,IE                                    
 8003d74:	34 01 ff fe 	mvi r1,-2                                      
 8003d78:	a1 a1 08 00 	and r1,r13,r1                                  
 8003d7c:	d0 01 00 00 	wcsr IE,r1                                     
      if ( act->sa_handler == SIG_DFL ) {                             
 8003d80:	29 81 00 08 	lw r1,(r12+8)                                  
 8003d84:	44 20 00 18 	be r1,r0,8003de4 <sigaction+0xfc>              
        _POSIX_signals_Vectors[ sig ] = _POSIX_signals_Default_vectors[ sig ];
      } else {                                                        
         _POSIX_signals_Clear_process_signals( sig );                 
 8003d88:	b9 60 08 00 	mv r1,r11                                      
 8003d8c:	f8 00 19 23 	calli 800a218 <_POSIX_signals_Clear_process_signals>
         _POSIX_signals_Vectors[ sig ] = *act;                        
 8003d90:	b5 6b 08 00 	add r1,r11,r11                                 
 8003d94:	b4 2b 58 00 	add r11,r1,r11                                 
 8003d98:	29 82 00 00 	lw r2,(r12+0)                                  
 8003d9c:	78 01 08 02 	mvhi r1,0x802                                  
 8003da0:	b5 6b 58 00 	add r11,r11,r11                                
 8003da4:	38 21 0d a8 	ori r1,r1,0xda8                                
 8003da8:	b5 6b 58 00 	add r11,r11,r11                                
 8003dac:	b4 2b 58 00 	add r11,r1,r11                                 
 8003db0:	59 62 00 00 	sw (r11+0),r2                                  
 8003db4:	29 81 00 04 	lw r1,(r12+4)                                  
 8003db8:	59 61 00 04 	sw (r11+4),r1                                  
 8003dbc:	29 81 00 08 	lw r1,(r12+8)                                  
 8003dc0:	59 61 00 08 	sw (r11+8),r1                                  
      }                                                               
    _ISR_Enable( level );                                             
 8003dc4:	d0 0d 00 00 	wcsr IE,r13                                    
   *      now (signals not posted when SIG_IGN).                      
   *    + If we are now ignoring a signal that was previously pending,
   *      we clear the pending signal indicator.                      
   */                                                                 
                                                                      
  return 0;                                                           
 8003dc8:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 8003dcc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003dd0:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8003dd4:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8003dd8:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8003ddc:	37 9c 00 10 	addi sp,sp,16                                  
 8003de0:	c3 a0 00 00 	ret                                            
     *  we can just copy the provided sigaction structure into the vectors.
     */                                                               
                                                                      
    _ISR_Disable( level );                                            
      if ( act->sa_handler == SIG_DFL ) {                             
        _POSIX_signals_Vectors[ sig ] = _POSIX_signals_Default_vectors[ sig ];
 8003de4:	b5 6b 08 00 	add r1,r11,r11                                 
 8003de8:	b4 2b 58 00 	add r11,r1,r11                                 
 8003dec:	b5 6b 58 00 	add r11,r11,r11                                
 8003df0:	78 02 08 01 	mvhi r2,0x801                                  
 8003df4:	b5 6b 58 00 	add r11,r11,r11                                
 8003df8:	38 42 ef 44 	ori r2,r2,0xef44                               
 8003dfc:	b4 4b 10 00 	add r2,r2,r11                                  
 8003e00:	28 44 00 00 	lw r4,(r2+0)                                   
 8003e04:	28 43 00 04 	lw r3,(r2+4)                                   
 8003e08:	78 01 08 02 	mvhi r1,0x802                                  
 8003e0c:	28 42 00 08 	lw r2,(r2+8)                                   
 8003e10:	38 21 0d a8 	ori r1,r1,0xda8                                
 8003e14:	b4 2b 58 00 	add r11,r1,r11                                 
 8003e18:	59 64 00 00 	sw (r11+0),r4                                  
 8003e1c:	59 63 00 04 	sw (r11+4),r3                                  
 8003e20:	59 62 00 08 	sw (r11+8),r2                                  
 8003e24:	e3 ff ff e8 	bi 8003dc4 <sigaction+0xdc>                    
                                                                      

08006208 <sigsuspend>: #include <rtems/seterr.h> int sigsuspend( const sigset_t *sigmask ) {
 8006208:	37 9c ff f0 	addi sp,sp,-16                                 
 800620c:	5b 8b 00 08 	sw (sp+8),r11                                  
 8006210:	5b 9d 00 04 	sw (sp+4),ra                                   
  int                 status;                                         
  POSIX_API_Control  *api;                                            
                                                                      
  api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];        
                                                                      
  status = sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked ); 
 8006214:	b8 20 10 00 	mv r2,r1                                       
 8006218:	37 83 00 10 	addi r3,sp,16                                  
 800621c:	34 01 00 01 	mvi r1,1                                       
 8006220:	fb ff ff ec 	calli 80061d0 <sigprocmask>                    
                                                                      
  (void) sigfillset( &all_signals );                                  
 8006224:	37 8b 00 0c 	addi r11,sp,12                                 
 8006228:	b9 60 08 00 	mv r1,r11                                      
 800622c:	fb ff ff ac 	calli 80060dc <sigfillset>                     
                                                                      
  status = sigtimedwait( &all_signals, NULL, NULL );                  
 8006230:	b9 60 08 00 	mv r1,r11                                      
 8006234:	34 02 00 00 	mvi r2,0                                       
 8006238:	34 03 00 00 	mvi r3,0                                       
 800623c:	f8 00 00 31 	calli 8006300 <sigtimedwait>                   
                                                                      
  (void) sigprocmask( SIG_SETMASK, &saved_signals_blocked, NULL );    
 8006240:	37 82 00 10 	addi r2,sp,16                                  
                                                                      
  status = sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked ); 
                                                                      
  (void) sigfillset( &all_signals );                                  
                                                                      
  status = sigtimedwait( &all_signals, NULL, NULL );                  
 8006244:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  (void) sigprocmask( SIG_SETMASK, &saved_signals_blocked, NULL );    
 8006248:	34 03 00 00 	mvi r3,0                                       
 800624c:	34 01 00 00 	mvi r1,0                                       
 8006250:	fb ff ff e0 	calli 80061d0 <sigprocmask>                    
                                                                      
  /*                                                                  
   * sigtimedwait() returns the signal number while sigsuspend()      
   * is supposed to return -1 and EINTR when a signal is caught.      
   */                                                                 
  if ( status != -1 )                                                 
 8006254:	34 02 ff ff 	mvi r2,-1                                      
 8006258:	5d 62 00 06 	bne r11,r2,8006270 <sigsuspend+0x68>           <== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( EINTR );                    
                                                                      
  return status;                                                      
}                                                                     
 800625c:	34 01 ff ff 	mvi r1,-1                                      
 8006260:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006264:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8006268:	37 9c 00 10 	addi sp,sp,16                                  
 800626c:	c3 a0 00 00 	ret                                            
  /*                                                                  
   * sigtimedwait() returns the signal number while sigsuspend()      
   * is supposed to return -1 and EINTR when a signal is caught.      
   */                                                                 
  if ( status != -1 )                                                 
    rtems_set_errno_and_return_minus_one( EINTR );                    
 8006270:	f8 00 28 56 	calli 80103c8 <__errno>                        
 8006274:	34 02 00 04 	mvi r2,4                                       
 8006278:	58 22 00 00 	sw (r1+0),r2                                   
 800627c:	e3 ff ff f8 	bi 800625c <sigsuspend+0x54>                   
                                                                      

0800429c <sigtimedwait>: int sigtimedwait( const sigset_t *set, siginfo_t *info, const struct timespec *timeout ) {
 800429c:	37 9c ff dc 	addi sp,sp,-36                                 
 80042a0:	5b 8b 00 18 	sw (sp+24),r11                                 
 80042a4:	5b 8c 00 14 	sw (sp+20),r12                                 
 80042a8:	5b 8d 00 10 	sw (sp+16),r13                                 
 80042ac:	5b 8e 00 0c 	sw (sp+12),r14                                 
 80042b0:	5b 8f 00 08 	sw (sp+8),r15                                  
 80042b4:	5b 9d 00 04 	sw (sp+4),ra                                   
 80042b8:	b8 20 68 00 	mv r13,r1                                      
 80042bc:	b8 40 58 00 	mv r11,r2                                      
 80042c0:	b8 60 60 00 	mv r12,r3                                      
  ISR_Level          level;                                           
                                                                      
  /*                                                                  
   *  Error check parameters before disabling interrupts.             
   */                                                                 
  if ( !set )                                                         
 80042c4:	44 20 00 69 	be r1,r0,8004468 <sigtimedwait+0x1cc>          
  /*  NOTE: This is very specifically a RELATIVE not ABSOLUTE time    
   *        in the Open Group specification.                          
   */                                                                 
                                                                      
  interval = 0;                                                       
  if ( timeout ) {                                                    
 80042c8:	44 60 00 55 	be r3,r0,800441c <sigtimedwait+0x180>          
                                                                      
    if ( !_Timespec_Is_valid( timeout ) )                             
 80042cc:	b8 60 08 00 	mv r1,r3                                       
 80042d0:	f8 00 0e 1b 	calli 8007b3c <_Timespec_Is_valid>             
 80042d4:	44 20 00 65 	be r1,r0,8004468 <sigtimedwait+0x1cc>          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    interval = _Timespec_To_ticks( timeout );                         
 80042d8:	b9 80 08 00 	mv r1,r12                                      
 80042dc:	f8 00 0e 3a 	calli 8007bc4 <_Timespec_To_ticks>             
                                                                      
    if ( !interval )                                                  
 80042e0:	44 20 00 62 	be r1,r0,8004468 <sigtimedwait+0x1cc>          <== NEVER TAKEN
                                                                      
  /*                                                                  
   *  Initialize local variables.                                     
   */                                                                 
                                                                      
  the_info = ( info ) ? info : &signal_information;                   
 80042e4:	45 60 00 50 	be r11,r0,8004424 <sigtimedwait+0x188>         <== NEVER TAKEN
                                                                      
  the_thread = _Thread_Executing;                                     
 80042e8:	78 0c 08 02 	mvhi r12,0x802                                 
 80042ec:	39 8c 1d 84 	ori r12,r12,0x1d84                             
 80042f0:	29 83 00 0c 	lw r3,(r12+12)                                 
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
 80042f4:	28 6e 01 2c 	lw r14,(r3+300)                                
   *  What if they are already pending?                               
   */                                                                 
                                                                      
  /* API signals pending? */                                          
                                                                      
  _ISR_Disable( level );                                              
 80042f8:	90 00 78 00 	rcsr r15,IE                                    
 80042fc:	34 02 ff fe 	mvi r2,-2                                      
 8004300:	a1 e2 10 00 	and r2,r15,r2                                  
 8004304:	d0 02 00 00 	wcsr IE,r2                                     
  if ( *set & api->signals_pending ) {                                
 8004308:	29 a5 00 00 	lw r5,(r13+0)                                  
 800430c:	29 c4 00 d0 	lw r4,(r14+208)                                
 8004310:	a0 a4 10 00 	and r2,r5,r4                                   
 8004314:	5c 40 00 46 	bne r2,r0,800442c <sigtimedwait+0x190>         
    return the_info->si_signo;                                        
  }                                                                   
                                                                      
  /* Process pending signals? */                                      
                                                                      
  if ( *set & _POSIX_signals_Pending ) {                              
 8004318:	78 04 08 02 	mvhi r4,0x802                                  
 800431c:	38 84 1f 9c 	ori r4,r4,0x1f9c                               
 8004320:	28 84 00 00 	lw r4,(r4+0)                                   
 8004324:	a0 a4 28 00 	and r5,r5,r4                                   
 8004328:	5c a2 00 2e 	bne r5,r2,80043e0 <sigtimedwait+0x144>         
 800432c:	78 02 08 02 	mvhi r2,0x802                                  
 8004330:	38 42 18 ac 	ori r2,r2,0x18ac                               
 8004334:	28 44 00 00 	lw r4,(r2+0)                                   
    the_info->si_code = SI_USER;                                      
    the_info->si_value.sival_int = 0;                                 
    return signo;                                                     
  }                                                                   
                                                                      
  the_info->si_signo = -1;                                            
 8004338:	34 05 ff ff 	mvi r5,-1                                      
 800433c:	59 65 00 00 	sw (r11+0),r5                                  
 8004340:	34 84 00 01 	addi r4,r4,1                                   
 8004344:	58 44 00 00 	sw (r2+0),r4                                   
                                                                      
  _Thread_Disable_dispatch();                                         
    the_thread->Wait.queue           = &_POSIX_signals_Wait_queue;    
    the_thread->Wait.return_code     = EINTR;                         
 8004348:	34 02 00 04 	mvi r2,4                                       
 800434c:	58 62 00 34 	sw (r3+52),r2                                  
    the_thread->Wait.option          = *set;                          
 8004350:	29 a4 00 00 	lw r4,(r13+0)                                  
  }                                                                   
                                                                      
  the_info->si_signo = -1;                                            
                                                                      
  _Thread_Disable_dispatch();                                         
    the_thread->Wait.queue           = &_POSIX_signals_Wait_queue;    
 8004354:	78 02 08 02 	mvhi r2,0x802                                  
 8004358:	38 42 1f 34 	ori r2,r2,0x1f34                               
    the_thread->Wait.return_code     = EINTR;                         
    the_thread->Wait.option          = *set;                          
 800435c:	58 64 00 30 	sw (r3+48),r4                                  
    the_thread->Wait.return_argument = the_info;                      
 8004360:	58 6b 00 28 	sw (r3+40),r11                                 
  }                                                                   
                                                                      
  the_info->si_signo = -1;                                            
                                                                      
  _Thread_Disable_dispatch();                                         
    the_thread->Wait.queue           = &_POSIX_signals_Wait_queue;    
 8004364:	58 62 00 44 	sw (r3+68),r2                                  
                                                                      
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;
 8004368:	34 03 00 01 	mvi r3,1                                       
 800436c:	58 43 00 30 	sw (r2+48),r3                                  
    the_thread->Wait.return_code     = EINTR;                         
    the_thread->Wait.option          = *set;                          
    the_thread->Wait.return_argument = the_info;                      
    _Thread_queue_Enter_critical_section( &_POSIX_signals_Wait_queue );
    _ISR_Enable( level );                                             
 8004370:	d0 0f 00 00 	wcsr IE,r15                                    
    _Thread_queue_Enqueue( &_POSIX_signals_Wait_queue, interval );    
 8004374:	78 03 08 00 	mvhi r3,0x800                                  
 8004378:	b8 20 10 00 	mv r2,r1                                       
 800437c:	78 01 08 02 	mvhi r1,0x802                                  
 8004380:	38 63 75 30 	ori r3,r3,0x7530                               
 8004384:	38 21 1f 34 	ori r1,r1,0x1f34                               
 8004388:	f8 00 0b 57 	calli 80070e4 <_Thread_queue_Enqueue_with_handler>
  _Thread_Enable_dispatch();                                          
 800438c:	f8 00 0a 17 	calli 8006be8 <_Thread_Enable_dispatch>        
  /*                                                                  
   * When the thread is set free by a signal, it is need to eliminate 
   * the signal.                                                      
   */                                                                 
                                                                      
  _POSIX_signals_Clear_signals( api, the_info->si_signo, the_info, false, false );
 8004390:	29 62 00 00 	lw r2,(r11+0)                                  
 8004394:	b9 60 18 00 	mv r3,r11                                      
 8004398:	34 04 00 00 	mvi r4,0                                       
 800439c:	34 05 00 00 	mvi r5,0                                       
 80043a0:	b9 c0 08 00 	mv r1,r14                                      
 80043a4:	f8 00 19 ec 	calli 800ab54 <_POSIX_signals_Clear_signals>   
  errno = _Thread_Executing->Wait.return_code;                        
 80043a8:	f8 00 28 f6 	calli 800e780 <__errno>                        
 80043ac:	29 82 00 0c 	lw r2,(r12+12)                                 
 80043b0:	28 42 00 34 	lw r2,(r2+52)                                  
 80043b4:	58 22 00 00 	sw (r1+0),r2                                   
  return the_info->si_signo;                                          
 80043b8:	29 6c 00 00 	lw r12,(r11+0)                                 
}                                                                     
 80043bc:	b9 80 08 00 	mv r1,r12                                      
 80043c0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80043c4:	2b 8b 00 18 	lw r11,(sp+24)                                 
 80043c8:	2b 8c 00 14 	lw r12,(sp+20)                                 
 80043cc:	2b 8d 00 10 	lw r13,(sp+16)                                 
 80043d0:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 80043d4:	2b 8f 00 08 	lw r15,(sp+8)                                  
 80043d8:	37 9c 00 24 	addi sp,sp,36                                  
 80043dc:	c3 a0 00 00 	ret                                            
  }                                                                   
                                                                      
  /* Process pending signals? */                                      
                                                                      
  if ( *set & _POSIX_signals_Pending ) {                              
    signo = _POSIX_signals_Get_highest( _POSIX_signals_Pending );     
 80043e0:	b8 80 08 00 	mv r1,r4                                       
 80043e4:	fb ff ff 8e 	calli 800421c <_POSIX_signals_Get_highest>     
 80043e8:	b8 20 60 00 	mv r12,r1                                      
    _POSIX_signals_Clear_signals( api, signo, the_info, true, false );
 80043ec:	b9 80 10 00 	mv r2,r12                                      
 80043f0:	b9 c0 08 00 	mv r1,r14                                      
 80043f4:	b9 60 18 00 	mv r3,r11                                      
 80043f8:	34 04 00 01 	mvi r4,1                                       
 80043fc:	34 05 00 00 	mvi r5,0                                       
 8004400:	f8 00 19 d5 	calli 800ab54 <_POSIX_signals_Clear_signals>   
    _ISR_Enable( level );                                             
 8004404:	d0 0f 00 00 	wcsr IE,r15                                    
                                                                      
    the_info->si_signo = signo;                                       
    the_info->si_code = SI_USER;                                      
 8004408:	34 01 00 01 	mvi r1,1                                       
  if ( *set & _POSIX_signals_Pending ) {                              
    signo = _POSIX_signals_Get_highest( _POSIX_signals_Pending );     
    _POSIX_signals_Clear_signals( api, signo, the_info, true, false );
    _ISR_Enable( level );                                             
                                                                      
    the_info->si_signo = signo;                                       
 800440c:	59 6c 00 00 	sw (r11+0),r12                                 
    the_info->si_code = SI_USER;                                      
 8004410:	59 61 00 04 	sw (r11+4),r1                                  
    the_info->si_value.sival_int = 0;                                 
 8004414:	59 60 00 08 	sw (r11+8),r0                                  
    return signo;                                                     
 8004418:	e3 ff ff e9 	bi 80043bc <sigtimedwait+0x120>                
                                                                      
  /*  NOTE: This is very specifically a RELATIVE not ABSOLUTE time    
   *        in the Open Group specification.                          
   */                                                                 
                                                                      
  interval = 0;                                                       
 800441c:	34 01 00 00 	mvi r1,0                                       
                                                                      
  /*                                                                  
   *  Initialize local variables.                                     
   */                                                                 
                                                                      
  the_info = ( info ) ? info : &signal_information;                   
 8004420:	5d 60 ff b2 	bne r11,r0,80042e8 <sigtimedwait+0x4c>         
 8004424:	37 8b 00 1c 	addi r11,sp,28                                 
 8004428:	e3 ff ff b0 	bi 80042e8 <sigtimedwait+0x4c>                 
  /* API signals pending? */                                          
                                                                      
  _ISR_Disable( level );                                              
  if ( *set & api->signals_pending ) {                                
    /* XXX real info later */                                         
    the_info->si_signo = _POSIX_signals_Get_highest( api->signals_pending );
 800442c:	b8 80 08 00 	mv r1,r4                                       
 8004430:	fb ff ff 7b 	calli 800421c <_POSIX_signals_Get_highest>     
 8004434:	b8 20 10 00 	mv r2,r1                                       
 8004438:	59 61 00 00 	sw (r11+0),r1                                  
    _POSIX_signals_Clear_signals(                                     
 800443c:	b9 60 18 00 	mv r3,r11                                      
 8004440:	b9 c0 08 00 	mv r1,r14                                      
 8004444:	34 04 00 00 	mvi r4,0                                       
 8004448:	34 05 00 00 	mvi r5,0                                       
 800444c:	f8 00 19 c2 	calli 800ab54 <_POSIX_signals_Clear_signals>   
      the_info->si_signo,                                             
      the_info,                                                       
      false,                                                          
      false                                                           
    );                                                                
    _ISR_Enable( level );                                             
 8004450:	d0 0f 00 00 	wcsr IE,r15                                    
                                                                      
    the_info->si_code = SI_USER;                                      
 8004454:	34 01 00 01 	mvi r1,1                                       
 8004458:	59 61 00 04 	sw (r11+4),r1                                  
    the_info->si_value.sival_int = 0;                                 
 800445c:	59 60 00 08 	sw (r11+8),r0                                  
    return the_info->si_signo;                                        
 8004460:	29 6c 00 00 	lw r12,(r11+0)                                 
 8004464:	e3 ff ff d6 	bi 80043bc <sigtimedwait+0x120>                
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    interval = _Timespec_To_ticks( timeout );                         
                                                                      
    if ( !interval )                                                  
      rtems_set_errno_and_return_minus_one( EINVAL );                 
 8004468:	f8 00 28 c6 	calli 800e780 <__errno>                        
 800446c:	34 02 00 16 	mvi r2,22                                      
 8004470:	58 22 00 00 	sw (r1+0),r2                                   
 8004474:	34 0c ff ff 	mvi r12,-1                                     
 8004478:	e3 ff ff d1 	bi 80043bc <sigtimedwait+0x120>                
                                                                      

080064fc <sigwait>: int sigwait( const sigset_t *set, int *sig ) {
 80064fc:	37 9c ff f8 	addi sp,sp,-8                                  
 8006500:	5b 8b 00 08 	sw (sp+8),r11                                  
 8006504:	5b 9d 00 04 	sw (sp+4),ra                                   
  int status;                                                         
                                                                      
  status = sigtimedwait( set, NULL, NULL );                           
 8006508:	34 03 00 00 	mvi r3,0                                       
                                                                      
int sigwait(                                                          
  const sigset_t  *set,                                               
  int             *sig                                                
)                                                                     
{                                                                     
 800650c:	b8 40 58 00 	mv r11,r2                                      
  int status;                                                         
                                                                      
  status = sigtimedwait( set, NULL, NULL );                           
 8006510:	34 02 00 00 	mvi r2,0                                       
 8006514:	fb ff ff 7b 	calli 8006300 <sigtimedwait>                   
                                                                      
  if ( status != -1 ) {                                               
 8006518:	34 02 ff ff 	mvi r2,-1                                      
 800651c:	44 22 00 09 	be r1,r2,8006540 <sigwait+0x44>                
    if ( sig )                                                        
      *sig = status;                                                  
    return 0;                                                         
 8006520:	34 03 00 00 	mvi r3,0                                       
  int status;                                                         
                                                                      
  status = sigtimedwait( set, NULL, NULL );                           
                                                                      
  if ( status != -1 ) {                                               
    if ( sig )                                                        
 8006524:	45 60 00 02 	be r11,r0,800652c <sigwait+0x30>               <== NEVER TAKEN
      *sig = status;                                                  
 8006528:	59 61 00 00 	sw (r11+0),r1                                  
    return 0;                                                         
  }                                                                   
                                                                      
  return errno;                                                       
}                                                                     
 800652c:	b8 60 08 00 	mv r1,r3                                       
 8006530:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006534:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8006538:	37 9c 00 08 	addi sp,sp,8                                   
 800653c:	c3 a0 00 00 	ret                                            
    if ( sig )                                                        
      *sig = status;                                                  
    return 0;                                                         
  }                                                                   
                                                                      
  return errno;                                                       
 8006540:	f8 00 27 a2 	calli 80103c8 <__errno>                        
 8006544:	28 23 00 00 	lw r3,(r1+0)                                   
}                                                                     
 8006548:	b8 60 08 00 	mv r1,r3                                       
 800654c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006550:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8006554:	37 9c 00 08 	addi sp,sp,8                                   
 8006558:	c3 a0 00 00 	ret                                            
                                                                      

080031b8 <timer_create>: int timer_create( clockid_t clock_id, struct sigevent *evp, timer_t *timerid ) {
 80031b8:	37 9c ff f0 	addi sp,sp,-16                                 
 80031bc:	5b 8b 00 10 	sw (sp+16),r11                                 
 80031c0:	5b 8c 00 0c 	sw (sp+12),r12                                 
 80031c4:	5b 8d 00 08 	sw (sp+8),r13                                  
 80031c8:	5b 9d 00 04 	sw (sp+4),ra                                   
 80031cc:	b8 40 58 00 	mv r11,r2                                      
  POSIX_Timer_Control *ptimer;                                        
                                                                      
  if ( clock_id != CLOCK_REALTIME )                                   
 80031d0:	34 02 00 01 	mvi r2,1                                       
int timer_create(                                                     
  clockid_t        clock_id,                                          
  struct sigevent *evp,                                               
  timer_t         *timerid                                            
)                                                                     
{                                                                     
 80031d4:	b8 60 68 00 	mv r13,r3                                      
  POSIX_Timer_Control *ptimer;                                        
                                                                      
  if ( clock_id != CLOCK_REALTIME )                                   
 80031d8:	5c 22 00 06 	bne r1,r2,80031f0 <timer_create+0x38>          
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !timerid )                                                     
 80031dc:	44 60 00 05 	be r3,r0,80031f0 <timer_create+0x38>           
 /*                                                                   
  *  The data of the structure evp are checked in order to verify if they
  *  are coherent.                                                    
  */                                                                  
                                                                      
  if (evp != NULL) {                                                  
 80031e0:	45 60 00 14 	be r11,r0,8003230 <timer_create+0x78>          
    /* The structure has data */                                      
    if ( ( evp->sigev_notify != SIGEV_NONE ) &&                       
 80031e4:	29 62 00 00 	lw r2,(r11+0)                                  
 80031e8:	34 42 ff ff 	addi r2,r2,-1                                  
 80031ec:	50 22 00 0b 	bgeu r1,r2,8003218 <timer_create+0x60>         <== ALWAYS TAKEN
                                                                      
     if ( !evp->sigev_signo )                                         
       rtems_set_errno_and_return_minus_one( EINVAL );                
                                                                      
     if ( !is_valid_signo(evp->sigev_signo) )                         
       rtems_set_errno_and_return_minus_one( EINVAL );                
 80031f0:	f8 00 2a c9 	calli 800dd14 <__errno>                        
 80031f4:	34 02 00 16 	mvi r2,22                                      
 80031f8:	58 22 00 00 	sw (r1+0),r2                                   
 80031fc:	34 01 ff ff 	mvi r1,-1                                      
  _Objects_Open_u32(&_POSIX_Timer_Information, &ptimer->Object, 0);   
                                                                      
  *timerid  = ptimer->Object.id;                                      
  _Thread_Enable_dispatch();                                          
  return 0;                                                           
}                                                                     
 8003200:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003204:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8003208:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 800320c:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8003210:	37 9c 00 10 	addi sp,sp,16                                  
 8003214:	c3 a0 00 00 	ret                                            
         ( evp->sigev_notify != SIGEV_SIGNAL ) ) {                    
       /* The value of the field sigev_notify is not valid */         
       rtems_set_errno_and_return_minus_one( EINVAL );                
     }                                                                
                                                                      
     if ( !evp->sigev_signo )                                         
 8003218:	29 61 00 04 	lw r1,(r11+4)                                  
 800321c:	44 20 ff f5 	be r1,r0,80031f0 <timer_create+0x38>           <== NEVER TAKEN
                                                                      
static inline bool is_valid_signo(                                    
  int signo                                                           
)                                                                     
{                                                                     
  return ((signo) >= 1 && (signo) <= 32 );                            
 8003220:	34 21 ff ff 	addi r1,r1,-1                                  
       rtems_set_errno_and_return_minus_one( EINVAL );                
                                                                      
     if ( !is_valid_signo(evp->sigev_signo) )                         
 8003224:	34 02 00 1f 	mvi r2,31                                      
 8003228:	50 41 00 02 	bgeu r2,r1,8003230 <timer_create+0x78>         <== ALWAYS TAKEN
 800322c:	e3 ff ff f1 	bi 80031f0 <timer_create+0x38>                 <== NOT EXECUTED
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
 8003230:	78 01 08 01 	mvhi r1,0x801                                  
 8003234:	38 21 f8 bc 	ori r1,r1,0xf8bc                               
 8003238:	28 22 00 00 	lw r2,(r1+0)                                   
 800323c:	34 42 00 01 	addi r2,r2,1                                   
 8003240:	58 22 00 00 	sw (r1+0),r2                                   
 *  the inactive chain of free timer control blocks.                  
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE POSIX_Timer_Control *_POSIX_Timer_Allocate( void )
{                                                                     
  return (POSIX_Timer_Control *) _Objects_Allocate( &_POSIX_Timer_Information );
 8003244:	78 0c 08 01 	mvhi r12,0x801                                 
 8003248:	39 8c fb 5c 	ori r12,r12,0xfb5c                             
 800324c:	b9 80 08 00 	mv r1,r12                                      
 8003250:	f8 00 07 5f 	calli 8004fcc <_Objects_Allocate>              
                                                                      
  /*                                                                  
   *  Allocate a timer                                                
   */                                                                 
  ptimer = _POSIX_Timer_Allocate();                                   
  if ( !ptimer ) {                                                    
 8003254:	44 20 00 29 	be r1,r0,80032f8 <timer_create+0x140>          
  }                                                                   
                                                                      
  /* The data of the created timer are stored to use them later */    
                                                                      
  ptimer->state     = POSIX_TIMER_STATE_CREATE_NEW;                   
  ptimer->thread_id = _Thread_Executing->Object.id;                   
 8003258:	78 02 08 01 	mvhi r2,0x801                                  
    rtems_set_errno_and_return_minus_one( EAGAIN );                   
  }                                                                   
                                                                      
  /* The data of the created timer are stored to use them later */    
                                                                      
  ptimer->state     = POSIX_TIMER_STATE_CREATE_NEW;                   
 800325c:	34 03 00 02 	mvi r3,2                                       
 8003260:	30 23 00 3c 	sb (r1+60),r3                                  
  ptimer->thread_id = _Thread_Executing->Object.id;                   
 8003264:	38 42 fd 94 	ori r2,r2,0xfd94                               
 8003268:	28 42 00 0c 	lw r2,(r2+12)                                  
 800326c:	28 42 00 08 	lw r2,(r2+8)                                   
 8003270:	58 22 00 38 	sw (r1+56),r2                                  
                                                                      
  if ( evp != NULL ) {                                                
 8003274:	45 60 00 07 	be r11,r0,8003290 <timer_create+0xd8>          
    ptimer->inf.sigev_notify = evp->sigev_notify;                     
 8003278:	29 64 00 00 	lw r4,(r11+0)                                  
    ptimer->inf.sigev_signo  = evp->sigev_signo;                      
 800327c:	29 63 00 04 	lw r3,(r11+4)                                  
    ptimer->inf.sigev_value  = evp->sigev_value;                      
 8003280:	29 62 00 08 	lw r2,(r11+8)                                  
                                                                      
  ptimer->state     = POSIX_TIMER_STATE_CREATE_NEW;                   
  ptimer->thread_id = _Thread_Executing->Object.id;                   
                                                                      
  if ( evp != NULL ) {                                                
    ptimer->inf.sigev_notify = evp->sigev_notify;                     
 8003284:	58 24 00 40 	sw (r1+64),r4                                  
    ptimer->inf.sigev_signo  = evp->sigev_signo;                      
 8003288:	58 23 00 44 	sw (r1+68),r3                                  
    ptimer->inf.sigev_value  = evp->sigev_value;                      
 800328c:	58 22 00 48 	sw (r1+72),r2                                  
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
 8003290:	28 23 00 08 	lw r3,(r1+8)                                   
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 8003294:	29 84 00 1c 	lw r4,(r12+28)                                 
  }                                                                   
                                                                      
  ptimer->overrun  = 0;                                               
 8003298:	58 20 00 68 	sw (r1+104),r0                                 
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 800329c:	20 62 ff ff 	andi r2,r3,0xffff                              
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 80032a0:	b4 42 10 00 	add r2,r2,r2                                   
 80032a4:	b4 42 10 00 	add r2,r2,r2                                   
  ptimer->timer_data.it_value.tv_sec     = 0;                         
 80032a8:	58 20 00 5c 	sw (r1+92),r0                                  
  ptimer->timer_data.it_value.tv_nsec    = 0;                         
 80032ac:	58 20 00 60 	sw (r1+96),r0                                  
  ptimer->timer_data.it_interval.tv_sec  = 0;                         
 80032b0:	58 20 00 54 	sw (r1+84),r0                                  
  ptimer->timer_data.it_interval.tv_nsec = 0;                         
 80032b4:	58 20 00 58 	sw (r1+88),r0                                  
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 80032b8:	58 20 00 18 	sw (r1+24),r0                                  
  the_watchdog->routine   = routine;                                  
 80032bc:	58 20 00 2c 	sw (r1+44),r0                                  
  the_watchdog->id        = id;                                       
 80032c0:	58 20 00 30 	sw (r1+48),r0                                  
  the_watchdog->user_data = user_data;                                
 80032c4:	58 20 00 34 	sw (r1+52),r0                                  
 80032c8:	b4 82 10 00 	add r2,r4,r2                                   
 80032cc:	58 41 00 00 	sw (r2+0),r1                                   
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  /* ASSERT: information->is_string == false */                       
  the_object->name.name_u32 = name;                                   
 80032d0:	58 20 00 0c 	sw (r1+12),r0                                  
                                                                      
  _Watchdog_Initialize( &ptimer->Timer, NULL, 0, NULL );              
  _Objects_Open_u32(&_POSIX_Timer_Information, &ptimer->Object, 0);   
                                                                      
  *timerid  = ptimer->Object.id;                                      
 80032d4:	59 a3 00 00 	sw (r13+0),r3                                  
  _Thread_Enable_dispatch();                                          
 80032d8:	f8 00 0a c3 	calli 8005de4 <_Thread_Enable_dispatch>        
  return 0;                                                           
 80032dc:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 80032e0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80032e4:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80032e8:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80032ec:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80032f0:	37 9c 00 10 	addi sp,sp,16                                  
 80032f4:	c3 a0 00 00 	ret                                            
  /*                                                                  
   *  Allocate a timer                                                
   */                                                                 
  ptimer = _POSIX_Timer_Allocate();                                   
  if ( !ptimer ) {                                                    
    _Thread_Enable_dispatch();                                        
 80032f8:	f8 00 0a bb 	calli 8005de4 <_Thread_Enable_dispatch>        
    rtems_set_errno_and_return_minus_one( EAGAIN );                   
 80032fc:	f8 00 2a 86 	calli 800dd14 <__errno>                        
 8003300:	34 02 00 0b 	mvi r2,11                                      
 8003304:	58 22 00 00 	sw (r1+0),r2                                   
 8003308:	34 01 ff ff 	mvi r1,-1                                      
 800330c:	e3 ff ff f5 	bi 80032e0 <timer_create+0x128>                
                                                                      

08003310 <timer_settime>: timer_t timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue ) {
 8003310:	37 9c ff cc 	addi sp,sp,-52                                 
 8003314:	5b 8b 00 18 	sw (sp+24),r11                                 
 8003318:	5b 8c 00 14 	sw (sp+20),r12                                 
 800331c:	5b 8d 00 10 	sw (sp+16),r13                                 
 8003320:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8003324:	5b 8f 00 08 	sw (sp+8),r15                                  
 8003328:	5b 9d 00 04 	sw (sp+4),ra                                   
 800332c:	b8 60 60 00 	mv r12,r3                                      
 8003330:	b8 20 70 00 	mv r14,r1                                      
 8003334:	b8 40 58 00 	mv r11,r2                                      
 8003338:	b8 80 68 00 	mv r13,r4                                      
  Objects_Locations    location;                                      
  bool                 activated;                                     
  uint32_t             initial_period;                                
  struct itimerspec    normalize;                                     
                                                                      
  if ( !value )                                                       
 800333c:	44 60 00 1e 	be r3,r0,80033b4 <timer_settime+0xa4>          <== NEVER TAKEN
                                                                      
  /*                                                                  
   * First, it verifies if the structure "value" is correct           
   * if the number of nanoseconds is not correct return EINVAL        
   */                                                                 
  if ( !_Timespec_Is_valid( &(value->it_value) ) ) {                  
 8003340:	34 61 00 08 	addi r1,r3,8                                   
 8003344:	f8 00 0e c0 	calli 8006e44 <_Timespec_Is_valid>             
 8003348:	44 20 00 1b 	be r1,r0,80033b4 <timer_settime+0xa4>          
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  }                                                                   
  if ( !_Timespec_Is_valid( &(value->it_interval) ) ) {               
 800334c:	b9 80 08 00 	mv r1,r12                                      
 8003350:	f8 00 0e bd 	calli 8006e44 <_Timespec_Is_valid>             
 8003354:	44 20 00 18 	be r1,r0,80033b4 <timer_settime+0xa4>          <== NEVER TAKEN
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  }                                                                   
                                                                      
  if ( flags != TIMER_ABSTIME && flags != POSIX_TIMER_RELATIVE ) {    
 8003358:	7d 62 00 00 	cmpnei r2,r11,0                                
 800335c:	7d 61 00 04 	cmpnei r1,r11,4                                
 8003360:	a0 41 08 00 	and r1,r2,r1                                   
 8003364:	5c 20 00 14 	bne r1,r0,80033b4 <timer_settime+0xa4>         
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  }                                                                   
                                                                      
  normalize = *value;                                                 
 8003368:	29 81 00 0c 	lw r1,(r12+12)                                 
 800336c:	29 84 00 00 	lw r4,(r12+0)                                  
 8003370:	29 83 00 04 	lw r3,(r12+4)                                  
 8003374:	29 82 00 08 	lw r2,(r12+8)                                  
 8003378:	5b 81 00 28 	sw (sp+40),r1                                  
 800337c:	5b 84 00 1c 	sw (sp+28),r4                                  
 8003380:	5b 83 00 20 	sw (sp+32),r3                                  
 8003384:	5b 82 00 24 	sw (sp+36),r2                                  
                                                                      
  /* Convert absolute to relative time */                             
  if (flags == TIMER_ABSTIME) {                                       
 8003388:	34 01 00 04 	mvi r1,4                                       
 800338c:	45 61 00 46 	be r11,r1,80034a4 <timer_settime+0x194>        
  timer_t            id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (POSIX_Timer_Control *)                                      
    _Objects_Get( &_POSIX_Timer_Information, (Objects_Id) id, location );
 8003390:	78 03 08 01 	mvhi r3,0x801                                  
 8003394:	b8 60 08 00 	mv r1,r3                                       
 8003398:	38 21 fb 5c 	ori r1,r1,0xfb5c                               
 800339c:	b9 c0 10 00 	mv r2,r14                                      
 80033a0:	37 83 00 34 	addi r3,sp,52                                  
 80033a4:	f8 00 08 50 	calli 80054e4 <_Objects_Get>                   
 80033a8:	b8 20 58 00 	mv r11,r1                                      
   * something with the structure of times of the timer: to stop, start
   * or start it again                                                
   */                                                                 
                                                                      
  ptimer = _POSIX_Timer_Get( timerid, &location );                    
  switch ( location ) {                                               
 80033ac:	2b 81 00 34 	lw r1,(sp+52)                                  
 80033b0:	44 20 00 0d 	be r1,r0,80033e4 <timer_settime+0xd4>          
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
 80033b4:	f8 00 2a 58 	calli 800dd14 <__errno>                        
 80033b8:	34 02 00 16 	mvi r2,22                                      
 80033bc:	58 22 00 00 	sw (r1+0),r2                                   
 80033c0:	34 01 ff ff 	mvi r1,-1                                      
}                                                                     
 80033c4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80033c8:	2b 8b 00 18 	lw r11,(sp+24)                                 
 80033cc:	2b 8c 00 14 	lw r12,(sp+20)                                 
 80033d0:	2b 8d 00 10 	lw r13,(sp+16)                                 
 80033d4:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 80033d8:	2b 8f 00 08 	lw r15,(sp+8)                                  
 80033dc:	37 9c 00 34 	addi sp,sp,52                                  
 80033e0:	c3 a0 00 00 	ret                                            
  ptimer = _POSIX_Timer_Get( timerid, &location );                    
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      /* First, it verifies if the timer must be stopped */           
      if ( normalize.it_value.tv_sec == 0 && normalize.it_value.tv_nsec == 0 ) {
 80033e4:	2b 82 00 24 	lw r2,(sp+36)                                  
 80033e8:	5c 41 00 03 	bne r2,r1,80033f4 <timer_settime+0xe4>         
 80033ec:	2b 8e 00 28 	lw r14,(sp+40)                                 
 80033f0:	45 c2 00 3a 	be r14,r2,80034d8 <timer_settime+0x1c8>        
        _Thread_Enable_dispatch();                                    
        return 0;                                                     
       }                                                              
                                                                      
       /* Convert from seconds and nanoseconds to ticks */            
       ptimer->ticks  = _Timespec_To_ticks( &value->it_interval );    
 80033f4:	b9 80 08 00 	mv r1,r12                                      
 80033f8:	f8 00 0e b5 	calli 8006ecc <_Timespec_To_ticks>             
 80033fc:	59 61 00 64 	sw (r11+100),r1                                
       initial_period = _Timespec_To_ticks( &normalize.it_value );    
 8003400:	37 81 00 24 	addi r1,sp,36                                  
 8003404:	f8 00 0e b2 	calli 8006ecc <_Timespec_To_ticks>             
                                                                      
                                                                      
       activated = _POSIX_Timer_Insert_helper(                        
 8003408:	29 63 00 08 	lw r3,(r11+8)                                  
 800340c:	78 04 08 00 	mvhi r4,0x800                                  
        return 0;                                                     
       }                                                              
                                                                      
       /* Convert from seconds and nanoseconds to ticks */            
       ptimer->ticks  = _Timespec_To_ticks( &value->it_interval );    
       initial_period = _Timespec_To_ticks( &normalize.it_value );    
 8003410:	b8 20 10 00 	mv r2,r1                                       
                                                                      
                                                                      
       activated = _POSIX_Timer_Insert_helper(                        
 8003414:	38 84 35 54 	ori r4,r4,0x3554                               
 8003418:	35 61 00 10 	addi r1,r11,16                                 
 800341c:	b9 60 28 00 	mv r5,r11                                      
 8003420:	f8 00 1b 52 	calli 800a168 <_POSIX_Timer_Insert_helper>     
         initial_period,                                              
         ptimer->Object.id,                                           
         _POSIX_Timer_TSR,                                            
         ptimer                                                       
       );                                                             
       if ( !activated ) {                                            
 8003424:	44 20 00 16 	be r1,r0,800347c <timer_settime+0x16c>         
                                                                      
       /*                                                             
        * The timer has been started and is running.  So we return the
        * old ones in "ovalue"                                        
        */                                                            
       if ( ovalue )                                                  
 8003428:	45 a0 00 09 	be r13,r0,800344c <timer_settime+0x13c>        
         *ovalue = ptimer->timer_data;                                
 800342c:	29 61 00 54 	lw r1,(r11+84)                                 
 8003430:	59 a1 00 00 	sw (r13+0),r1                                  
 8003434:	29 61 00 58 	lw r1,(r11+88)                                 
 8003438:	59 a1 00 04 	sw (r13+4),r1                                  
 800343c:	29 61 00 5c 	lw r1,(r11+92)                                 
 8003440:	59 a1 00 08 	sw (r13+8),r1                                  
 8003444:	29 61 00 60 	lw r1,(r11+96)                                 
 8003448:	59 a1 00 0c 	sw (r13+12),r1                                 
       ptimer->timer_data = normalize;                                
 800344c:	2b 82 00 1c 	lw r2,(sp+28)                                  
                                                                      
       /* Indicate that the time is running */                        
       ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;                  
       _TOD_Get( &ptimer->time );                                     
 8003450:	35 61 00 6c 	addi r1,r11,108                                
        * The timer has been started and is running.  So we return the
        * old ones in "ovalue"                                        
        */                                                            
       if ( ovalue )                                                  
         *ovalue = ptimer->timer_data;                                
       ptimer->timer_data = normalize;                                
 8003454:	59 62 00 54 	sw (r11+84),r2                                 
 8003458:	2b 82 00 20 	lw r2,(sp+32)                                  
 800345c:	59 62 00 58 	sw (r11+88),r2                                 
 8003460:	2b 82 00 24 	lw r2,(sp+36)                                  
 8003464:	59 62 00 5c 	sw (r11+92),r2                                 
 8003468:	2b 82 00 28 	lw r2,(sp+40)                                  
 800346c:	59 62 00 60 	sw (r11+96),r2                                 
                                                                      
       /* Indicate that the time is running */                        
       ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;                  
 8003470:	34 02 00 03 	mvi r2,3                                       
 8003474:	31 62 00 3c 	sb (r11+60),r2                                 
       _TOD_Get( &ptimer->time );                                     
 8003478:	f8 00 05 00 	calli 8004878 <_TOD_Get>                       
       _Thread_Enable_dispatch();                                     
 800347c:	f8 00 0a 5a 	calli 8005de4 <_Thread_Enable_dispatch>        
       return 0;                                                      
 8003480:	34 01 00 00 	mvi r1,0                                       
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
}                                                                     
 8003484:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003488:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800348c:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8003490:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8003494:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8003498:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800349c:	37 9c 00 34 	addi sp,sp,52                                  
 80034a0:	c3 a0 00 00 	ret                                            
  normalize = *value;                                                 
                                                                      
  /* Convert absolute to relative time */                             
  if (flags == TIMER_ABSTIME) {                                       
    struct timespec now;                                              
    _TOD_Get( &now );                                                 
 80034a4:	37 8b 00 2c 	addi r11,sp,44                                 
 80034a8:	b9 60 08 00 	mv r1,r11                                      
 80034ac:	f8 00 04 f3 	calli 8004878 <_TOD_Get>                       
    /* Check for seconds in the past */                               
    if ( _Timespec_Greater_than( &now, &normalize.it_value ) )        
 80034b0:	37 8f 00 24 	addi r15,sp,36                                 
 80034b4:	b9 60 08 00 	mv r1,r11                                      
 80034b8:	b9 e0 10 00 	mv r2,r15                                      
 80034bc:	f8 00 0e 57 	calli 8006e18 <_Timespec_Greater_than>         
 80034c0:	5c 20 ff bd 	bne r1,r0,80033b4 <timer_settime+0xa4>         
      rtems_set_errno_and_return_minus_one( EINVAL );                 
    _Timespec_Subtract( &now, &normalize.it_value, &normalize.it_value );
 80034c4:	b9 e0 10 00 	mv r2,r15                                      
 80034c8:	b9 60 08 00 	mv r1,r11                                      
 80034cc:	b9 e0 18 00 	mv r3,r15                                      
 80034d0:	f8 00 0e 69 	calli 8006e74 <_Timespec_Subtract>             
 80034d4:	e3 ff ff af 	bi 8003390 <timer_settime+0x80>                
                                                                      
    case OBJECTS_LOCAL:                                               
      /* First, it verifies if the timer must be stopped */           
      if ( normalize.it_value.tv_sec == 0 && normalize.it_value.tv_nsec == 0 ) {
         /* Stop the timer */                                         
         (void) _Watchdog_Remove( &ptimer->Timer );                   
 80034d8:	35 61 00 10 	addi r1,r11,16                                 
 80034dc:	f8 00 10 02 	calli 80074e4 <_Watchdog_Remove>               
         /* The old data of the timer are returned */                 
         if ( ovalue )                                                
 80034e0:	45 ae 00 09 	be r13,r14,8003504 <timer_settime+0x1f4>       
           *ovalue = ptimer->timer_data;                              
 80034e4:	29 61 00 54 	lw r1,(r11+84)                                 
 80034e8:	59 a1 00 00 	sw (r13+0),r1                                  
 80034ec:	29 61 00 58 	lw r1,(r11+88)                                 
 80034f0:	59 a1 00 04 	sw (r13+4),r1                                  
 80034f4:	29 61 00 5c 	lw r1,(r11+92)                                 
 80034f8:	59 a1 00 08 	sw (r13+8),r1                                  
 80034fc:	29 61 00 60 	lw r1,(r11+96)                                 
 8003500:	59 a1 00 0c 	sw (r13+12),r1                                 
         /* The new data are set */                                   
         ptimer->timer_data = normalize;                              
 8003504:	2b 81 00 1c 	lw r1,(sp+28)                                  
 8003508:	59 61 00 54 	sw (r11+84),r1                                 
 800350c:	2b 81 00 20 	lw r1,(sp+32)                                  
 8003510:	59 61 00 58 	sw (r11+88),r1                                 
 8003514:	2b 81 00 24 	lw r1,(sp+36)                                  
 8003518:	59 61 00 5c 	sw (r11+92),r1                                 
 800351c:	2b 81 00 28 	lw r1,(sp+40)                                  
 8003520:	59 61 00 60 	sw (r11+96),r1                                 
         /* Indicates that the timer is created and stopped */        
         ptimer->state = POSIX_TIMER_STATE_CREATE_STOP;               
 8003524:	34 01 00 04 	mvi r1,4                                       
 8003528:	31 61 00 3c 	sb (r11+60),r1                                 
         /* Returns with success */                                   
        _Thread_Enable_dispatch();                                    
 800352c:	f8 00 0a 2e 	calli 8005de4 <_Thread_Enable_dispatch>        
        return 0;                                                     
 8003530:	34 01 00 00 	mvi r1,0                                       
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
}                                                                     
 8003534:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003538:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800353c:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8003540:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8003544:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8003548:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800354c:	37 9c 00 34 	addi sp,sp,52                                  
 8003550:	c3 a0 00 00 	ret                                            
                                                                      

080030dc <ualarm>: useconds_t ualarm( useconds_t useconds, useconds_t interval ) {
 80030dc:	37 9c ff e4 	addi sp,sp,-28                                 
 80030e0:	5b 8b 00 14 	sw (sp+20),r11                                 
 80030e4:	5b 8c 00 10 	sw (sp+16),r12                                 
 80030e8:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80030ec:	5b 8e 00 08 	sw (sp+8),r14                                  
 80030f0:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
  /*                                                                  
   *  Initialize the timer used to implement alarm().                 
   */                                                                 
                                                                      
  if ( !the_timer->routine ) {                                        
 80030f4:	78 0b 08 01 	mvhi r11,0x801                                 
 80030f8:	39 6b 81 30 	ori r11,r11,0x8130                             
 80030fc:	29 62 00 1c 	lw r2,(r11+28)                                 
                                                                      
useconds_t ualarm(                                                    
  useconds_t useconds,                                                
  useconds_t interval                                                 
)                                                                     
{                                                                     
 8003100:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  /*                                                                  
   *  Initialize the timer used to implement alarm().                 
   */                                                                 
                                                                      
  if ( !the_timer->routine ) {                                        
 8003104:	44 40 00 55 	be r2,r0,8003258 <ualarm+0x17c>                
    _Watchdog_Initialize( the_timer, _POSIX_signals_Ualarm_TSR, 0, NULL );
  } else {                                                            
    Watchdog_States state;                                            
                                                                      
    state = _Watchdog_Remove( the_timer );                            
 8003108:	b9 60 08 00 	mv r1,r11                                      
 800310c:	f8 00 0f 67 	calli 8006ea8 <_Watchdog_Remove>               
    if ( (state == WATCHDOG_ACTIVE) || (state == WATCHDOG_REMOVE_IT) ) {
 8003110:	34 21 ff fe 	addi r1,r1,-2                                  
 8003114:	34 02 00 01 	mvi r2,1                                       
useconds_t ualarm(                                                    
  useconds_t useconds,                                                
  useconds_t interval                                                 
)                                                                     
{                                                                     
  useconds_t        remaining = 0;                                    
 8003118:	34 0d 00 00 	mvi r13,0                                      
    _Watchdog_Initialize( the_timer, _POSIX_signals_Ualarm_TSR, 0, NULL );
  } else {                                                            
    Watchdog_States state;                                            
                                                                      
    state = _Watchdog_Remove( the_timer );                            
    if ( (state == WATCHDOG_ACTIVE) || (state == WATCHDOG_REMOVE_IT) ) {
 800311c:	54 22 00 24 	bgu r1,r2,80031ac <ualarm+0xd0>                <== NEVER TAKEN
       *  boot.  Since alarm() is dealing in seconds, we must account for
       *  this.                                                       
       */                                                             
                                                                      
      ticks = the_timer->initial;                                     
      ticks -= (the_timer->stop_time - the_timer->start_time);        
 8003120:	29 64 00 14 	lw r4,(r11+20)                                 
 8003124:	29 61 00 0c 	lw r1,(r11+12)                                 
 8003128:	29 63 00 18 	lw r3,(r11+24)                                 
      /* remaining is now in ticks */                                 
                                                                      
      _Timespec_From_ticks( ticks, &tp );                             
 800312c:	37 82 00 18 	addi r2,sp,24                                  
       *  boot.  Since alarm() is dealing in seconds, we must account for
       *  this.                                                       
       */                                                             
                                                                      
      ticks = the_timer->initial;                                     
      ticks -= (the_timer->stop_time - the_timer->start_time);        
 8003130:	b4 81 08 00 	add r1,r4,r1                                   
      /* remaining is now in ticks */                                 
                                                                      
      _Timespec_From_ticks( ticks, &tp );                             
 8003134:	c8 23 08 00 	sub r1,r1,r3                                   
 8003138:	f8 00 0d 5c 	calli 80066a8 <_Timespec_From_ticks>           
      remaining  = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND;           
 800313c:	2b 85 00 18 	lw r5,(sp+24)                                  
      remaining += tp.tv_nsec / 1000;                                 
 8003140:	2b 81 00 1c 	lw r1,(sp+28)                                  
 8003144:	34 02 03 e8 	mvi r2,1000                                    
      ticks = the_timer->initial;                                     
      ticks -= (the_timer->stop_time - the_timer->start_time);        
      /* remaining is now in ticks */                                 
                                                                      
      _Timespec_From_ticks( ticks, &tp );                             
      remaining  = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND;           
 8003148:	b4 a5 18 00 	add r3,r5,r5                                   
 800314c:	b4 63 18 00 	add r3,r3,r3                                   
 8003150:	b4 63 18 00 	add r3,r3,r3                                   
 8003154:	b4 63 20 00 	add r4,r3,r3                                   
 8003158:	b4 84 20 00 	add r4,r4,r4                                   
 800315c:	b4 84 20 00 	add r4,r4,r4                                   
 8003160:	b4 84 20 00 	add r4,r4,r4                                   
 8003164:	b4 84 20 00 	add r4,r4,r4                                   
 8003168:	c8 83 20 00 	sub r4,r4,r3                                   
 800316c:	b4 84 18 00 	add r3,r4,r4                                   
 8003170:	b4 63 18 00 	add r3,r3,r3                                   
 8003174:	b4 63 18 00 	add r3,r3,r3                                   
 8003178:	b4 63 18 00 	add r3,r3,r3                                   
 800317c:	b4 63 18 00 	add r3,r3,r3                                   
 8003180:	b4 63 18 00 	add r3,r3,r3                                   
 8003184:	c8 64 18 00 	sub r3,r3,r4                                   
 8003188:	b4 65 68 00 	add r13,r3,r5                                  
 800318c:	b5 ad 68 00 	add r13,r13,r13                                
 8003190:	b5 ad 68 00 	add r13,r13,r13                                
 8003194:	b5 ad 68 00 	add r13,r13,r13                                
 8003198:	b5 ad 68 00 	add r13,r13,r13                                
 800319c:	b5 ad 68 00 	add r13,r13,r13                                
 80031a0:	b5 ad 68 00 	add r13,r13,r13                                
      remaining += tp.tv_nsec / 1000;                                 
 80031a4:	f8 00 44 1d 	calli 8014218 <__divsi3>                       
 80031a8:	b4 2d 68 00 	add r13,r1,r13                                 
  /*                                                                  
   *  If useconds is non-zero, then the caller wants to schedule      
   *  the alarm repeatedly at that interval.  If the interval is      
   *  less than a single clock tick, then fudge it to a clock tick.   
   */                                                                 
  if ( useconds ) {                                                   
 80031ac:	45 80 00 23 	be r12,r0,8003238 <ualarm+0x15c>               
    Watchdog_Interval ticks;                                          
                                                                      
    tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND;               
 80031b0:	78 01 08 01 	mvhi r1,0x801                                  
 80031b4:	38 21 55 24 	ori r1,r1,0x5524                               
 80031b8:	28 22 00 00 	lw r2,(r1+0)                                   
 80031bc:	b9 80 08 00 	mv r1,r12                                      
    tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000;     
    ticks = _Timespec_To_ticks( &tp );                                
 80031c0:	37 8e 00 18 	addi r14,sp,24                                 
   *  less than a single clock tick, then fudge it to a clock tick.   
   */                                                                 
  if ( useconds ) {                                                   
    Watchdog_Interval ticks;                                          
                                                                      
    tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND;               
 80031c4:	f8 00 44 6e 	calli 801437c <__udivsi3>                      
    tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000;     
 80031c8:	78 03 08 01 	mvhi r3,0x801                                  
 80031cc:	38 63 55 24 	ori r3,r3,0x5524                               
 80031d0:	28 62 00 00 	lw r2,(r3+0)                                   
   *  less than a single clock tick, then fudge it to a clock tick.   
   */                                                                 
  if ( useconds ) {                                                   
    Watchdog_Interval ticks;                                          
                                                                      
    tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND;               
 80031d4:	5b 81 00 18 	sw (sp+24),r1                                  
    tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000;     
 80031d8:	b9 80 08 00 	mv r1,r12                                      
 80031dc:	f8 00 44 78 	calli 80143bc <__umodsi3>                      
 80031e0:	b4 21 10 00 	add r2,r1,r1                                   
 80031e4:	b4 42 10 00 	add r2,r2,r2                                   
 80031e8:	b4 42 10 00 	add r2,r2,r2                                   
 80031ec:	b4 42 18 00 	add r3,r2,r2                                   
 80031f0:	b4 63 18 00 	add r3,r3,r3                                   
 80031f4:	b4 43 10 00 	add r2,r2,r3                                   
 80031f8:	b4 42 18 00 	add r3,r2,r2                                   
 80031fc:	b4 63 18 00 	add r3,r3,r3                                   
 8003200:	b4 43 10 00 	add r2,r2,r3                                   
 8003204:	b4 42 18 00 	add r3,r2,r2                                   
 8003208:	b4 63 18 00 	add r3,r3,r3                                   
 800320c:	b4 43 18 00 	add r3,r2,r3                                   
    ticks = _Timespec_To_ticks( &tp );                                
 8003210:	b9 c0 08 00 	mv r1,r14                                      
   */                                                                 
  if ( useconds ) {                                                   
    Watchdog_Interval ticks;                                          
                                                                      
    tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND;               
    tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000;     
 8003214:	5b 83 00 1c 	sw (sp+28),r3                                  
    ticks = _Timespec_To_ticks( &tp );                                
 8003218:	f8 00 0d 60 	calli 8006798 <_Timespec_To_ticks>             
    if ( ticks == 0 )                                                 
      ticks = 1;                                                      
                                                                      
    _Watchdog_Insert_ticks( the_timer, _Timespec_To_ticks( &tp ) );   
 800321c:	b9 c0 08 00 	mv r1,r14                                      
 8003220:	f8 00 0d 5e 	calli 8006798 <_Timespec_To_ticks>             
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 8003224:	59 61 00 0c 	sw (r11+12),r1                                 
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 8003228:	78 01 08 01 	mvhi r1,0x801                                  
 800322c:	b9 60 10 00 	mv r2,r11                                      
 8003230:	38 21 79 80 	ori r1,r1,0x7980                               
 8003234:	f8 00 0e b4 	calli 8006d04 <_Watchdog_Insert>               
  }                                                                   
                                                                      
  return remaining;                                                   
}                                                                     
 8003238:	b9 a0 08 00 	mv r1,r13                                      
 800323c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003240:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8003244:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8003248:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800324c:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8003250:	37 9c 00 1c 	addi sp,sp,28                                  
 8003254:	c3 a0 00 00 	ret                                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
 8003258:	78 01 08 00 	mvhi r1,0x800                                  
 800325c:	38 21 30 94 	ori r1,r1,0x3094                               
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 8003260:	59 60 00 08 	sw (r11+8),r0                                  
  the_watchdog->routine   = routine;                                  
 8003264:	59 61 00 1c 	sw (r11+28),r1                                 
  the_watchdog->id        = id;                                       
 8003268:	59 60 00 20 	sw (r11+32),r0                                 
  the_watchdog->user_data = user_data;                                
 800326c:	59 60 00 24 	sw (r11+36),r0                                 
useconds_t ualarm(                                                    
  useconds_t useconds,                                                
  useconds_t interval                                                 
)                                                                     
{                                                                     
  useconds_t        remaining = 0;                                    
 8003270:	34 0d 00 00 	mvi r13,0                                      
 8003274:	e3 ff ff ce 	bi 80031ac <ualarm+0xd0>