RTEMS 4.10
Annotated Report
Thu May 27 19:26:54 2010

40016a80 <_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                    
)                                                                     
{                                                                     
40016a80:	9d e3 bf a0 	save  %sp, -96, %sp                            
  Thread_Control          *the_thread;                                
  uint32_t                 number_broadcasted;                        
  Thread_Wait_information *waitp;                                     
                                                                      
  if ( size > the_message_queue->maximum_message_size ) {             
40016a84:	c2 06 20 4c 	ld  [ %i0 + 0x4c ], %g1                        
    Objects_Id                                 id __attribute__((unused)),
    CORE_message_queue_API_mp_support_callout  api_message_queue_mp_support __attribute__((unused)),
  #endif                                                              
  uint32_t                                  *count                    
)                                                                     
{                                                                     
40016a88:	a0 10 00 18 	mov  %i0, %l0                                  
  Thread_Control          *the_thread;                                
  uint32_t                 number_broadcasted;                        
  Thread_Wait_information *waitp;                                     
                                                                      
  if ( size > the_message_queue->maximum_message_size ) {             
40016a8c:	80 a6 80 01 	cmp  %i2, %g1                                  
40016a90:	18 80 00 17 	bgu  40016aec <_CORE_message_queue_Broadcast+0x6c><== NEVER TAKEN
40016a94:	b0 10 20 01 	mov  1, %i0                                    
   *  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 ) {         
40016a98:	c2 04 20 48 	ld  [ %l0 + 0x48 ], %g1                        
40016a9c:	80 a0 60 00 	cmp  %g1, 0                                    
40016aa0:	02 80 00 0a 	be  40016ac8 <_CORE_message_queue_Broadcast+0x48>
40016aa4:	a2 10 20 00 	clr  %l1                                       
    *count = 0;                                                       
40016aa8:	c0 27 40 00 	clr  [ %i5 ]                                   
    return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;                      
40016aac:	81 c7 e0 08 	ret                                            
40016ab0:	91 e8 20 00 	restore  %g0, 0, %o0                           
  const void *source,                                                 
  void       *destination,                                            
  size_t      size                                                    
)                                                                     
{                                                                     
  memcpy(destination, source, size);                                  
40016ab4:	d0 04 a0 2c 	ld  [ %l2 + 0x2c ], %o0                        
40016ab8:	40 00 22 0d 	call  4001f2ec <memcpy>                        
40016abc:	a2 04 60 01 	inc  %l1                                       
      buffer,                                                         
      waitp->return_argument_second.mutable_object,                   
      size                                                            
    );                                                                
                                                                      
    *(size_t *) the_thread->Wait.return_argument = size;              
40016ac0:	c2 04 a0 28 	ld  [ %l2 + 0x28 ], %g1                        
40016ac4:	f4 20 40 00 	st  %i2, [ %g1 ]                               
   *  There must be no pending messages if there is a thread waiting to
   *  receive a message.                                              
   */                                                                 
  number_broadcasted = 0;                                             
  while ((the_thread =                                                
          _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) {   
40016ac8:	40 00 09 e6 	call  40019260 <_Thread_queue_Dequeue>         
40016acc:	90 10 00 10 	mov  %l0, %o0                                  
40016ad0:	92 10 00 19 	mov  %i1, %o1                                  
40016ad4:	a4 10 00 08 	mov  %o0, %l2                                  
  /*                                                                  
   *  There must be no pending messages if there is a thread waiting to
   *  receive a message.                                              
   */                                                                 
  number_broadcasted = 0;                                             
  while ((the_thread =                                                
40016ad8:	80 a2 20 00 	cmp  %o0, 0                                    
40016adc:	12 bf ff f6 	bne  40016ab4 <_CORE_message_queue_Broadcast+0x34>
40016ae0:	94 10 00 1a 	mov  %i2, %o2                                  
      if ( !_Objects_Is_local_id( the_thread->Object.id ) )           
        (*api_message_queue_mp_support) ( the_thread, id );           
    #endif                                                            
                                                                      
  }                                                                   
  *count = number_broadcasted;                                        
40016ae4:	e2 27 40 00 	st  %l1, [ %i5 ]                               
40016ae8:	b0 10 20 00 	clr  %i0                                       
  return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;                        
}                                                                     
40016aec:	81 c7 e0 08 	ret                                            
40016af0:	81 e8 00 00 	restore                                        
                                                                      

400105d0 <_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 ) {
400105d0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  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;                  
400105d4:	c0 26 20 48 	clr  [ %i0 + 0x48 ]                            
)                                                                     
{                                                                     
  size_t message_buffering_required;                                  
  size_t allocated_message_size;                                      
                                                                      
  the_message_queue->maximum_pending_messages   = maximum_pending_messages;
400105d8:	f4 26 20 44 	st  %i2, [ %i0 + 0x44 ]                        
  the_message_queue->number_of_pending_messages = 0;                  
  the_message_queue->maximum_message_size       = maximum_message_size;
400105dc:	f6 26 20 4c 	st  %i3, [ %i0 + 0x4c ]                        
  /*                                                                  
   *  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)) {              
400105e0:	80 8e e0 03 	btst  3, %i3                                   
400105e4:	02 80 00 07 	be  40010600 <_CORE_message_queue_Initialize+0x30>
400105e8:	a2 10 00 1b 	mov  %i3, %l1                                  
    allocated_message_size += sizeof(uint32_t);                       
400105ec:	a2 06 e0 04 	add  %i3, 4, %l1                               
    allocated_message_size &= ~(sizeof(uint32_t) - 1);                
400105f0:	a2 0c 7f fc 	and  %l1, -4, %l1                              
  }                                                                   
                                                                      
  if (allocated_message_size < maximum_message_size)                  
400105f4:	80 a4 40 1b 	cmp  %l1, %i3                                  
400105f8:	0a 80 00 23 	bcs  40010684 <_CORE_message_queue_Initialize+0xb4><== NEVER TAKEN
400105fc:	01 00 00 00 	nop                                            
  /*                                                                  
   *  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));
40010600:	a0 04 60 10 	add  %l1, 0x10, %l0                            
                                                                      
  /*                                                                  
   *  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 *    
40010604:	92 10 00 1a 	mov  %i2, %o1                                  
40010608:	40 00 4a e1 	call  4002318c <.umul>                         
4001060c:	90 10 00 10 	mov  %l0, %o0                                  
       (allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
                                                                      
  if (message_buffering_required < allocated_message_size)            
40010610:	80 a2 00 11 	cmp  %o0, %l1                                  
40010614:	0a 80 00 1c 	bcs  40010684 <_CORE_message_queue_Initialize+0xb4><== NEVER TAKEN
40010618:	01 00 00 00 	nop                                            
    return false;                                                     
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
4001061c:	40 00 0b 7d 	call  40013410 <_Workspace_Allocate>           
40010620:	01 00 00 00 	nop                                            
40010624:	d0 26 20 5c 	st  %o0, [ %i0 + 0x5c ]                        
     _Workspace_Allocate( message_buffering_required );               
                                                                      
  if (the_message_queue->message_buffers == 0)                        
40010628:	80 a2 20 00 	cmp  %o0, 0                                    
4001062c:	02 80 00 16 	be  40010684 <_CORE_message_queue_Initialize+0xb4>
40010630:	92 10 00 08 	mov  %o0, %o1                                  
                                                                      
  /*                                                                  
   *  Initialize the pool of inactive messages, pending messages,     
   *  and set of waiting threads.                                     
   */                                                                 
  _Chain_Initialize (                                                 
40010634:	90 06 20 60 	add  %i0, 0x60, %o0                            
40010638:	94 10 00 1a 	mov  %i2, %o2                                  
4001063c:	40 00 13 56 	call  40015394 <_Chain_Initialize>             
40010640:	96 10 00 10 	mov  %l0, %o3                                  
    allocated_message_size + sizeof( CORE_message_queue_Buffer_control )
  );                                                                  
                                                                      
  _Chain_Initialize_empty( &the_message_queue->Pending_messages );    
                                                                      
  _Thread_queue_Initialize(                                           
40010644:	c2 06 40 00 	ld  [ %i1 ], %g1                               
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
  the_chain->permanent_null = NULL;                                   
40010648:	c0 26 20 54 	clr  [ %i0 + 0x54 ]                            
4001064c:	82 18 60 01 	xor  %g1, 1, %g1                               
40010650:	80 a0 00 01 	cmp  %g0, %g1                                  
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
40010654:	82 06 20 54 	add  %i0, 0x54, %g1                            
40010658:	c2 26 20 50 	st  %g1, [ %i0 + 0x50 ]                        
  the_chain->permanent_null = NULL;                                   
  the_chain->last           = _Chain_Head(the_chain);                 
4001065c:	82 06 20 50 	add  %i0, 0x50, %g1                            
40010660:	90 10 00 18 	mov  %i0, %o0                                  
40010664:	c2 26 20 58 	st  %g1, [ %i0 + 0x58 ]                        
40010668:	92 60 3f ff 	subx  %g0, -1, %o1                             
4001066c:	94 10 20 80 	mov  0x80, %o2                                 
40010670:	96 10 20 06 	mov  6, %o3                                    
40010674:	40 00 08 5a 	call  400127dc <_Thread_queue_Initialize>      
40010678:	b0 10 20 01 	mov  1, %i0                                    
       THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO,
    STATES_WAITING_FOR_MESSAGE,                                       
    CORE_MESSAGE_QUEUE_STATUS_TIMEOUT                                 
  );                                                                  
                                                                      
  return true;                                                        
4001067c:	81 c7 e0 08 	ret                                            
40010680:	81 e8 00 00 	restore                                        
}                                                                     
40010684:	81 c7 e0 08 	ret                                            
40010688:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

4001068c <_CORE_message_queue_Seize>: void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) {
4001068c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level                          level;                           
  CORE_message_queue_Buffer_control *the_message;                     
  Thread_Control                    *executing;                       
                                                                      
  executing = _Thread_Executing;                                      
40010690:	23 10 00 ab 	sethi  %hi(0x4002ac00), %l1                    
40010694:	e0 04 63 1c 	ld  [ %l1 + 0x31c ], %l0	! 4002af1c <_Thread_Executing>
  void                            *buffer,                            
  size_t                          *size_p,                            
  bool                             wait,                              
  Watchdog_Interval                timeout                            
)                                                                     
{                                                                     
40010698:	a4 10 00 19 	mov  %i1, %l2                                  
  CORE_message_queue_Buffer_control *the_message;                     
  Thread_Control                    *executing;                       
                                                                      
  executing = _Thread_Executing;                                      
  executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 
  _ISR_Disable( level );                                              
4001069c:	7f ff db 20 	call  4000731c <sparc_disable_interrupts>      
400106a0:	c0 24 20 34 	clr  [ %l0 + 0x34 ]                            
400106a4:	82 10 00 08 	mov  %o0, %g1                                  
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
400106a8:	e6 06 20 50 	ld  [ %i0 + 0x50 ], %l3                        
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
400106ac:	84 06 20 54 	add  %i0, 0x54, %g2                            
400106b0:	80 a4 c0 02 	cmp  %l3, %g2                                  
400106b4:	02 80 00 15 	be  40010708 <_CORE_message_queue_Seize+0x7c>  
400106b8:	86 06 20 50 	add  %i0, 0x50, %g3                            
{                                                                     
  Chain_Node  *return_node;                                           
  Chain_Node  *new_first;                                             
                                                                      
  return_node         = the_chain->first;                             
  new_first           = return_node->next;                            
400106bc:	c4 04 c0 00 	ld  [ %l3 ], %g2                               
  the_chain->first    = new_first;                                    
400106c0:	c4 26 20 50 	st  %g2, [ %i0 + 0x50 ]                        
  the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
  if ( the_message != NULL ) {                                        
400106c4:	80 a4 e0 00 	cmp  %l3, 0                                    
400106c8:	02 80 00 10 	be  40010708 <_CORE_message_queue_Seize+0x7c>  <== NEVER TAKEN
400106cc:	c6 20 a0 04 	st  %g3, [ %g2 + 4 ]                           
    the_message_queue->number_of_pending_messages -= 1;               
400106d0:	c2 06 20 48 	ld  [ %i0 + 0x48 ], %g1                        
400106d4:	82 00 7f ff 	add  %g1, -1, %g1                              
400106d8:	c2 26 20 48 	st  %g1, [ %i0 + 0x48 ]                        
    _ISR_Enable( level );                                             
400106dc:	7f ff db 14 	call  4000732c <sparc_enable_interrupts>       
400106e0:	b0 06 20 60 	add  %i0, 0x60, %i0                            
                                                                      
    *size_p = the_message->Contents.size;                             
    _Thread_Executing->Wait.count =                                   
400106e4:	c2 04 63 1c 	ld  [ %l1 + 0x31c ], %g1                       
  the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
  if ( the_message != NULL ) {                                        
    the_message_queue->number_of_pending_messages -= 1;               
    _ISR_Enable( level );                                             
                                                                      
    *size_p = the_message->Contents.size;                             
400106e8:	d4 04 e0 08 	ld  [ %l3 + 8 ], %o2                           
    _Thread_Executing->Wait.count =                                   
400106ec:	c0 20 60 24 	clr  [ %g1 + 0x24 ]                            
  the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
  if ( the_message != NULL ) {                                        
    the_message_queue->number_of_pending_messages -= 1;               
    _ISR_Enable( level );                                             
                                                                      
    *size_p = the_message->Contents.size;                             
400106f0:	d4 26 c0 00 	st  %o2, [ %i3 ]                               
  const void *source,                                                 
  void       *destination,                                            
  size_t      size                                                    
)                                                                     
{                                                                     
  memcpy(destination, source, size);                                  
400106f4:	90 10 00 1a 	mov  %i2, %o0                                  
400106f8:	40 00 1e 0b 	call  40017f24 <memcpy>                        
400106fc:	92 04 e0 0c 	add  %l3, 0xc, %o1                             
RTEMS_INLINE_ROUTINE void _CORE_message_queue_Free_message_buffer (   
  CORE_message_queue_Control        *the_message_queue,               
  CORE_message_queue_Buffer_control *the_message                      
)                                                                     
{                                                                     
  _Chain_Append( &the_message_queue->Inactive_messages, &the_message->Node );
40010700:	7f ff ff 83 	call  4001050c <_Chain_Append>                 
40010704:	93 e8 00 13 	restore  %g0, %l3, %o1                         
      return;                                                         
    }                                                                 
    #endif                                                            
  }                                                                   
                                                                      
  if ( !wait ) {                                                      
40010708:	80 8f 20 ff 	btst  0xff, %i4                                
4001070c:	12 80 00 08 	bne  4001072c <_CORE_message_queue_Seize+0xa0> 
40010710:	84 10 20 01 	mov  1, %g2                                    
    _ISR_Enable( level );                                             
40010714:	7f ff db 06 	call  4000732c <sparc_enable_interrupts>       
40010718:	90 10 00 01 	mov  %g1, %o0                                  
    executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT;
4001071c:	82 10 20 04 	mov  4, %g1                                    
40010720:	c2 24 20 34 	st  %g1, [ %l0 + 0x34 ]                        
  executing->Wait.return_argument = size_p;                           
  /* Wait.count will be filled in with the message priority */        
  _ISR_Enable( level );                                               
                                                                      
  _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );   
}                                                                     
40010724:	81 c7 e0 08 	ret                                            
40010728:	81 e8 00 00 	restore                                        
                                                                      
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;
4001072c:	c4 26 20 30 	st  %g2, [ %i0 + 0x30 ]                        
                                                                      
  _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue );
  executing->Wait.queue = &the_message_queue->Wait_queue;             
  executing->Wait.id = id;                                            
  executing->Wait.return_argument_second.mutable_object = buffer;     
  executing->Wait.return_argument = size_p;                           
40010730:	f6 24 20 28 	st  %i3, [ %l0 + 0x28 ]                        
    return;                                                           
  }                                                                   
                                                                      
  _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue );
  executing->Wait.queue = &the_message_queue->Wait_queue;             
  executing->Wait.id = id;                                            
40010734:	e4 24 20 20 	st  %l2, [ %l0 + 0x20 ]                        
  executing->Wait.return_argument_second.mutable_object = buffer;     
40010738:	f4 24 20 2c 	st  %i2, [ %l0 + 0x2c ]                        
    executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT;
    return;                                                           
  }                                                                   
                                                                      
  _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue );
  executing->Wait.queue = &the_message_queue->Wait_queue;             
4001073c:	f0 24 20 44 	st  %i0, [ %l0 + 0x44 ]                        
  executing->Wait.id = id;                                            
  executing->Wait.return_argument_second.mutable_object = buffer;     
  executing->Wait.return_argument = size_p;                           
  /* Wait.count will be filled in with the message priority */        
  _ISR_Enable( level );                                               
40010740:	90 10 00 01 	mov  %g1, %o0                                  
40010744:	7f ff da fa 	call  4000732c <sparc_enable_interrupts>       
40010748:	35 10 00 4a 	sethi  %hi(0x40012800), %i2                    
                                                                      
  _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );   
4001074c:	b2 10 00 1d 	mov  %i5, %i1                                  
40010750:	40 00 07 7e 	call  40012548 <_Thread_queue_Enqueue_with_handler>
40010754:	95 ee a0 a8 	restore  %i2, 0xa8, %o2                        
                                                                      

40006fe0 <_CORE_mutex_Seize>: Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) {
40006fe0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 
40006fe4:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
40006fe8:	c2 00 60 10 	ld  [ %g1 + 0x10 ], %g1	! 4001c410 <_Thread_Dispatch_disable_level>
40006fec:	80 a0 60 00 	cmp  %g1, 0                                    
40006ff0:	02 80 00 0d 	be  40007024 <_CORE_mutex_Seize+0x44>          
40006ff4:	f8 27 a0 54 	st  %i4, [ %fp + 0x54 ]                        
40006ff8:	80 8e a0 ff 	btst  0xff, %i2                                
40006ffc:	02 80 00 0b 	be  40007028 <_CORE_mutex_Seize+0x48>          <== NEVER TAKEN
40007000:	90 10 00 18 	mov  %i0, %o0                                  
40007004:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
40007008:	c2 00 61 b0 	ld  [ %g1 + 0x1b0 ], %g1	! 4001c5b0 <_System_state_Current>
4000700c:	80 a0 60 01 	cmp  %g1, 1                                    
40007010:	08 80 00 05 	bleu  40007024 <_CORE_mutex_Seize+0x44>        
40007014:	90 10 20 00 	clr  %o0                                       
40007018:	92 10 20 00 	clr  %o1                                       
4000701c:	40 00 01 b4 	call  400076ec <_Internal_error_Occurred>      
40007020:	94 10 20 13 	mov  0x13, %o2                                 
40007024:	90 10 00 18 	mov  %i0, %o0                                  
40007028:	40 00 13 04 	call  4000bc38 <_CORE_mutex_Seize_interrupt_trylock>
4000702c:	92 07 a0 54 	add  %fp, 0x54, %o1                            
40007030:	80 a2 20 00 	cmp  %o0, 0                                    
40007034:	02 80 00 09 	be  40007058 <_CORE_mutex_Seize+0x78>          
40007038:	80 8e a0 ff 	btst  0xff, %i2                                
4000703c:	12 80 00 09 	bne  40007060 <_CORE_mutex_Seize+0x80>         
40007040:	35 10 00 71 	sethi  %hi(0x4001c400), %i2                    
40007044:	7f ff eb 46 	call  40001d5c <sparc_enable_interrupts>       
40007048:	d0 07 a0 54 	ld  [ %fp + 0x54 ], %o0                        
4000704c:	c2 06 a0 cc 	ld  [ %i2 + 0xcc ], %g1                        
40007050:	84 10 20 01 	mov  1, %g2                                    
40007054:	c4 20 60 34 	st  %g2, [ %g1 + 0x34 ]                        
40007058:	81 c7 e0 08 	ret                                            
4000705c:	81 e8 00 00 	restore                                        
40007060:	c4 06 a0 cc 	ld  [ %i2 + 0xcc ], %g2                        
40007064:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
40007068:	c6 00 60 10 	ld  [ %g1 + 0x10 ], %g3	! 4001c410 <_Thread_Dispatch_disable_level>
4000706c:	f2 20 a0 20 	st  %i1, [ %g2 + 0x20 ]                        
40007070:	f0 20 a0 44 	st  %i0, [ %g2 + 0x44 ]                        
40007074:	84 00 e0 01 	add  %g3, 1, %g2                               
40007078:	c4 20 60 10 	st  %g2, [ %g1 + 0x10 ]                        
                                                                      
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;
4000707c:	82 10 20 01 	mov  1, %g1                                    
40007080:	c2 26 20 30 	st  %g1, [ %i0 + 0x30 ]                        
40007084:	7f ff eb 36 	call  40001d5c <sparc_enable_interrupts>       
40007088:	d0 07 a0 54 	ld  [ %fp + 0x54 ], %o0                        
4000708c:	90 10 00 18 	mov  %i0, %o0                                  
40007090:	7f ff ff bb 	call  40006f7c <_CORE_mutex_Seize_interrupt_blocking>
40007094:	92 10 00 1b 	mov  %i3, %o1                                  
40007098:	81 c7 e0 08 	ret                                            
4000709c:	81 e8 00 00 	restore                                        
                                                                      

4000bc38 <_CORE_mutex_Seize_interrupt_trylock>: #if defined(__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__) int _CORE_mutex_Seize_interrupt_trylock( CORE_mutex_Control *the_mutex, ISR_Level *level_p ) {
4000bc38:	9d e3 bf a0 	save  %sp, -96, %sp                            
{                                                                     
  Thread_Control   *executing;                                        
                                                                      
  /* disabled when you get here */                                    
                                                                      
  executing = _Thread_Executing;                                      
4000bc3c:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
4000bc40:	c2 00 60 cc 	ld  [ %g1 + 0xcc ], %g1	! 4001c4cc <_Thread_Executing>
  executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;         
4000bc44:	c0 20 60 34 	clr  [ %g1 + 0x34 ]                            
  if ( !_CORE_mutex_Is_locked( the_mutex ) ) {                        
4000bc48:	c4 06 20 50 	ld  [ %i0 + 0x50 ], %g2                        
4000bc4c:	80 a0 a0 00 	cmp  %g2, 0                                    
4000bc50:	22 80 00 31 	be,a   4000bd14 <_CORE_mutex_Seize_interrupt_trylock+0xdc>
4000bc54:	c4 06 20 5c 	ld  [ %i0 + 0x5c ], %g2                        
    the_mutex->lock       = CORE_MUTEX_LOCKED;                        
4000bc58:	c0 26 20 50 	clr  [ %i0 + 0x50 ]                            
    the_mutex->holder     = executing;                                
    the_mutex->holder_id  = executing->Object.id;                     
4000bc5c:	c6 00 60 08 	ld  [ %g1 + 8 ], %g3                           
 */                                                                   
RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_inherit_priority(            
  CORE_mutex_Attributes *the_attribute                                
)                                                                     
{                                                                     
  return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT;
4000bc60:	c4 06 20 48 	ld  [ %i0 + 0x48 ], %g2                        
  executing = _Thread_Executing;                                      
  executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;         
  if ( !_CORE_mutex_Is_locked( the_mutex ) ) {                        
    the_mutex->lock       = CORE_MUTEX_LOCKED;                        
    the_mutex->holder     = executing;                                
    the_mutex->holder_id  = executing->Object.id;                     
4000bc64:	c6 26 20 60 	st  %g3, [ %i0 + 0x60 ]                        
                                                                      
  executing = _Thread_Executing;                                      
  executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;         
  if ( !_CORE_mutex_Is_locked( the_mutex ) ) {                        
    the_mutex->lock       = CORE_MUTEX_LOCKED;                        
    the_mutex->holder     = executing;                                
4000bc68:	c2 26 20 5c 	st  %g1, [ %i0 + 0x5c ]                        
    the_mutex->holder_id  = executing->Object.id;                     
    the_mutex->nest_count = 1;                                        
4000bc6c:	86 10 20 01 	mov  1, %g3                                    
    if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 
4000bc70:	80 a0 a0 02 	cmp  %g2, 2                                    
4000bc74:	02 80 00 05 	be  4000bc88 <_CORE_mutex_Seize_interrupt_trylock+0x50>
4000bc78:	c6 26 20 54 	st  %g3, [ %i0 + 0x54 ]                        
4000bc7c:	80 a0 a0 03 	cmp  %g2, 3                                    
4000bc80:	12 80 00 07 	bne  4000bc9c <_CORE_mutex_Seize_interrupt_trylock+0x64>
4000bc84:	01 00 00 00 	nop                                            
       _Chain_Prepend_unprotected( &executing->lock_mutex,            
                                   &the_mutex->queue.lock_queue );    
       the_mutex->queue.priority_before = executing->current_priority;
#endif                                                                
                                                                      
      executing->resource_count++;                                    
4000bc88:	c6 00 60 1c 	ld  [ %g1 + 0x1c ], %g3                        
    }                                                                 
                                                                      
    if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) {
4000bc8c:	80 a0 a0 03 	cmp  %g2, 3                                    
       _Chain_Prepend_unprotected( &executing->lock_mutex,            
                                   &the_mutex->queue.lock_queue );    
       the_mutex->queue.priority_before = executing->current_priority;
#endif                                                                
                                                                      
      executing->resource_count++;                                    
4000bc90:	84 00 e0 01 	add  %g3, 1, %g2                               
    }                                                                 
                                                                      
    if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) {
4000bc94:	02 80 00 03 	be  4000bca0 <_CORE_mutex_Seize_interrupt_trylock+0x68>
4000bc98:	c4 20 60 1c 	st  %g2, [ %g1 + 0x1c ]                        
      _ISR_Enable( *level_p );                                        
4000bc9c:	30 80 00 2d 	b,a   4000bd50 <_CORE_mutex_Seize_interrupt_trylock+0x118>
       */                                                             
    {                                                                 
      Priority_Control  ceiling;                                      
      Priority_Control  current;                                      
                                                                      
      ceiling = the_mutex->Attributes.priority_ceiling;               
4000bca0:	c4 06 20 4c 	ld  [ %i0 + 0x4c ], %g2                        
      current = executing->current_priority;                          
4000bca4:	c6 00 60 14 	ld  [ %g1 + 0x14 ], %g3                        
      if ( current == ceiling ) {                                     
4000bca8:	80 a0 c0 02 	cmp  %g3, %g2                                  
4000bcac:	12 80 00 03 	bne  4000bcb8 <_CORE_mutex_Seize_interrupt_trylock+0x80>
4000bcb0:	01 00 00 00 	nop                                            
        _ISR_Enable( *level_p );                                      
4000bcb4:	30 80 00 27 	b,a   4000bd50 <_CORE_mutex_Seize_interrupt_trylock+0x118>
        return 0;                                                     
      }                                                               
                                                                      
      if ( current > ceiling ) {                                      
4000bcb8:	08 80 00 0f 	bleu  4000bcf4 <_CORE_mutex_Seize_interrupt_trylock+0xbc>
4000bcbc:	84 10 20 06 	mov  6, %g2                                    
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
4000bcc0:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
4000bcc4:	c4 00 60 10 	ld  [ %g1 + 0x10 ], %g2	! 4001c410 <_Thread_Dispatch_disable_level>
4000bcc8:	84 00 a0 01 	inc  %g2                                       
4000bccc:	c4 20 60 10 	st  %g2, [ %g1 + 0x10 ]                        
        _Thread_Disable_dispatch();                                   
        _ISR_Enable( *level_p );                                      
4000bcd0:	7f ff d8 23 	call  40001d5c <sparc_enable_interrupts>       
4000bcd4:	d0 06 40 00 	ld  [ %i1 ], %o0                               
        _Thread_Change_priority(                                      
4000bcd8:	d2 06 20 4c 	ld  [ %i0 + 0x4c ], %o1                        
4000bcdc:	d0 06 20 5c 	ld  [ %i0 + 0x5c ], %o0                        
4000bce0:	7f ff f0 c1 	call  40007fe4 <_Thread_Change_priority>       
4000bce4:	94 10 20 00 	clr  %o2                                       
          the_mutex->holder,                                          
          the_mutex->Attributes.priority_ceiling,                     
         false                                                        
        );                                                            
        _Thread_Enable_dispatch();                                    
4000bce8:	7f ff f2 2f 	call  400085a4 <_Thread_Enable_dispatch>       
4000bcec:	b0 10 20 00 	clr  %i0                                       
4000bcf0:	30 80 00 1b 	b,a   4000bd5c <_CORE_mutex_Seize_interrupt_trylock+0x124>
        return 0;                                                     
      }                                                               
      /* if ( current < ceiling ) */ {                                
        executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED;
4000bcf4:	c4 20 60 34 	st  %g2, [ %g1 + 0x34 ]                        
        the_mutex->lock       = CORE_MUTEX_UNLOCKED;                  
4000bcf8:	84 10 20 01 	mov  1, %g2                                    
        the_mutex->nest_count = 0;     /* undo locking above */       
4000bcfc:	c0 26 20 54 	clr  [ %i0 + 0x54 ]                            
        _Thread_Enable_dispatch();                                    
        return 0;                                                     
      }                                                               
      /* if ( current < ceiling ) */ {                                
        executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED;
        the_mutex->lock       = CORE_MUTEX_UNLOCKED;                  
4000bd00:	c4 26 20 50 	st  %g2, [ %i0 + 0x50 ]                        
        the_mutex->nest_count = 0;     /* undo locking above */       
        executing->resource_count--;   /* undo locking above */       
4000bd04:	c4 00 60 1c 	ld  [ %g1 + 0x1c ], %g2                        
4000bd08:	84 00 bf ff 	add  %g2, -1, %g2                              
4000bd0c:	c4 20 60 1c 	st  %g2, [ %g1 + 0x1c ]                        
        _ISR_Enable( *level_p );                                      
4000bd10:	30 80 00 10 	b,a   4000bd50 <_CORE_mutex_Seize_interrupt_trylock+0x118>
  /*                                                                  
   *  At this point, we know the mutex was not available.  If this thread
   *  is the thread that has locked the mutex, let's see if we are allowed
   *  to nest access.                                                 
   */                                                                 
  if ( _Thread_Is_executing( the_mutex->holder ) ) {                  
4000bd14:	80 a0 80 01 	cmp  %g2, %g1                                  
4000bd18:	12 80 00 13 	bne  4000bd64 <_CORE_mutex_Seize_interrupt_trylock+0x12c>
4000bd1c:	01 00 00 00 	nop                                            
    switch ( the_mutex->Attributes.lock_nesting_behavior ) {          
4000bd20:	c2 06 20 40 	ld  [ %i0 + 0x40 ], %g1                        
4000bd24:	80 a0 60 00 	cmp  %g1, 0                                    
4000bd28:	22 80 00 07 	be,a   4000bd44 <_CORE_mutex_Seize_interrupt_trylock+0x10c>
4000bd2c:	c2 06 20 54 	ld  [ %i0 + 0x54 ], %g1                        
4000bd30:	80 a0 60 01 	cmp  %g1, 1                                    
4000bd34:	12 80 00 0c 	bne  4000bd64 <_CORE_mutex_Seize_interrupt_trylock+0x12c><== ALWAYS TAKEN
4000bd38:	82 10 20 02 	mov  2, %g1                                    
      case CORE_MUTEX_NESTING_ACQUIRES:                               
        the_mutex->nest_count++;                                      
        _ISR_Enable( *level_p );                                      
        return 0;                                                     
      case CORE_MUTEX_NESTING_IS_ERROR:                               
        executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED;
4000bd3c:	10 80 00 05 	b  4000bd50 <_CORE_mutex_Seize_interrupt_trylock+0x118><== NOT EXECUTED
4000bd40:	c2 20 a0 34 	st  %g1, [ %g2 + 0x34 ]                        <== NOT EXECUTED
   *  to nest access.                                                 
   */                                                                 
  if ( _Thread_Is_executing( the_mutex->holder ) ) {                  
    switch ( the_mutex->Attributes.lock_nesting_behavior ) {          
      case CORE_MUTEX_NESTING_ACQUIRES:                               
        the_mutex->nest_count++;                                      
4000bd44:	82 00 60 01 	inc  %g1                                       
4000bd48:	c2 26 20 54 	st  %g1, [ %i0 + 0x54 ]                        
        _ISR_Enable( *level_p );                                      
4000bd4c:	30 80 00 01 	b,a   4000bd50 <_CORE_mutex_Seize_interrupt_trylock+0x118>
        return 0;                                                     
      case CORE_MUTEX_NESTING_IS_ERROR:                               
        executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED;
        _ISR_Enable( *level_p );                                      
4000bd50:	7f ff d8 03 	call  40001d5c <sparc_enable_interrupts>       
4000bd54:	d0 06 40 00 	ld  [ %i1 ], %o0                               
4000bd58:	b0 10 20 00 	clr  %i0                                       
4000bd5c:	81 c7 e0 08 	ret                                            
4000bd60:	81 e8 00 00 	restore                                        
  return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p );
}                                                                     
4000bd64:	81 c7 e0 08 	ret                                            
4000bd68:	91 e8 20 01 	restore  %g0, 1, %o0                           
                                                                      

40007244 <_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 ) {
40007244:	9d e3 bf a0 	save  %sp, -96, %sp                            
40007248:	a0 10 00 18 	mov  %i0, %l0                                  
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
                                                                      
  if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) {
4000724c:	b0 10 20 00 	clr  %i0                                       
40007250:	40 00 05 b9 	call  40008934 <_Thread_queue_Dequeue>         
40007254:	90 10 00 10 	mov  %l0, %o0                                  
40007258:	80 a2 20 00 	cmp  %o0, 0                                    
4000725c:	12 80 00 0e 	bne  40007294 <_CORE_semaphore_Surrender+0x50> 
40007260:	01 00 00 00 	nop                                            
    if ( !_Objects_Is_local_id( the_thread->Object.id ) )             
      (*api_semaphore_mp_support) ( the_thread, id );                 
#endif                                                                
                                                                      
  } else {                                                            
    _ISR_Disable( level );                                            
40007264:	7f ff ea ba 	call  40001d4c <sparc_disable_interrupts>      
40007268:	01 00 00 00 	nop                                            
      if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
4000726c:	c2 04 20 48 	ld  [ %l0 + 0x48 ], %g1                        
40007270:	c4 04 20 40 	ld  [ %l0 + 0x40 ], %g2                        
40007274:	80 a0 40 02 	cmp  %g1, %g2                                  
40007278:	1a 80 00 05 	bcc  4000728c <_CORE_semaphore_Surrender+0x48> <== NEVER TAKEN
4000727c:	b0 10 20 04 	mov  4, %i0                                    
        the_semaphore->count += 1;                                    
40007280:	82 00 60 01 	inc  %g1                                       
40007284:	b0 10 20 00 	clr  %i0                                       
40007288:	c2 24 20 48 	st  %g1, [ %l0 + 0x48 ]                        
      else                                                            
        status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;               
    _ISR_Enable( level );                                             
4000728c:	7f ff ea b4 	call  40001d5c <sparc_enable_interrupts>       
40007290:	01 00 00 00 	nop                                            
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
40007294:	81 c7 e0 08 	ret                                            
40007298:	81 e8 00 00 	restore                                        
                                                                      

40005edc <_Event_Seize>: rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) {
40005edc:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_event_set                   pending_events;                   
  ISR_Level                         level;                            
  RTEMS_API_Control                *api;                              
  Thread_blocking_operation_States  sync_state;                       
                                                                      
  executing = _Thread_Executing;                                      
40005ee0:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
40005ee4:	e0 00 60 cc 	ld  [ %g1 + 0xcc ], %l0	! 4001c4cc <_Thread_Executing>
  executing->Wait.return_code = RTEMS_SUCCESSFUL;                     
40005ee8:	c0 24 20 34 	clr  [ %l0 + 0x34 ]                            
                                                                      
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
                                                                      
  _ISR_Disable( level );                                              
40005eec:	7f ff ef 98 	call  40001d4c <sparc_disable_interrupts>      
40005ef0:	e4 04 21 5c 	ld  [ %l0 + 0x15c ], %l2                       
  pending_events = api->pending_events;                               
40005ef4:	c2 04 80 00 	ld  [ %l2 ], %g1                               
  seized_events  = _Event_sets_Get( pending_events, event_in );       
                                                                      
  if ( !_Event_sets_Is_empty( seized_events ) &&                      
40005ef8:	a2 8e 00 01 	andcc  %i0, %g1, %l1                           
40005efc:	02 80 00 0e 	be  40005f34 <_Event_Seize+0x58>               
40005f00:	80 8e 60 01 	btst  1, %i1                                   
40005f04:	80 a4 40 18 	cmp  %l1, %i0                                  
40005f08:	02 80 00 04 	be  40005f18 <_Event_Seize+0x3c>               
40005f0c:	80 8e 60 02 	btst  2, %i1                                   
40005f10:	02 80 00 09 	be  40005f34 <_Event_Seize+0x58>               <== NEVER TAKEN
40005f14:	80 8e 60 01 	btst  1, %i1                                   
       (seized_events == event_in || _Options_Is_any( option_set )) ) {
    api->pending_events =                                             
40005f18:	82 28 40 11 	andn  %g1, %l1, %g1                            
40005f1c:	c2 24 80 00 	st  %g1, [ %l2 ]                               
      _Event_sets_Clear( pending_events, seized_events );             
    _ISR_Enable( level );                                             
40005f20:	7f ff ef 8f 	call  40001d5c <sparc_enable_interrupts>       
40005f24:	01 00 00 00 	nop                                            
40005f28:	e2 26 c0 00 	st  %l1, [ %i3 ]                               
40005f2c:	81 c7 e0 08 	ret                                            
40005f30:	81 e8 00 00 	restore                                        
    *event_out = seized_events;                                       
    return;                                                           
  }                                                                   
                                                                      
  if ( _Options_Is_no_wait( option_set ) ) {                          
40005f34:	22 80 00 09 	be,a   40005f58 <_Event_Seize+0x7c>            
40005f38:	f2 24 20 30 	st  %i1, [ %l0 + 0x30 ]                        
    _ISR_Enable( level );                                             
40005f3c:	7f ff ef 88 	call  40001d5c <sparc_enable_interrupts>       
40005f40:	01 00 00 00 	nop                                            
    executing->Wait.return_code = RTEMS_UNSATISFIED;                  
40005f44:	82 10 20 0d 	mov  0xd, %g1	! d <PROM_START+0xd>             
40005f48:	c2 24 20 34 	st  %g1, [ %l0 + 0x34 ]                        
    *event_out = seized_events;                                       
40005f4c:	e2 26 c0 00 	st  %l1, [ %i3 ]                               
40005f50:	81 c7 e0 08 	ret                                            
40005f54:	81 e8 00 00 	restore                                        
   *                                                                  
   *  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;            
40005f58:	f0 24 20 24 	st  %i0, [ %l0 + 0x24 ]                        
  executing->Wait.return_argument   = event_out;                      
40005f5c:	f6 24 20 28 	st  %i3, [ %l0 + 0x28 ]                        
                                                                      
  _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;     
40005f60:	84 10 20 01 	mov  1, %g2                                    
40005f64:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
40005f68:	c4 20 62 98 	st  %g2, [ %g1 + 0x298 ]	! 4001c698 <_Event_Sync_state>
                                                                      
  _ISR_Enable( level );                                               
40005f6c:	7f ff ef 7c 	call  40001d5c <sparc_enable_interrupts>       
40005f70:	01 00 00 00 	nop                                            
                                                                      
  if ( ticks ) {                                                      
40005f74:	80 a6 a0 00 	cmp  %i2, 0                                    
40005f78:	02 80 00 0f 	be  40005fb4 <_Event_Seize+0xd8>               
40005f7c:	90 10 00 10 	mov  %l0, %o0                                  
    _Watchdog_Initialize(                                             
40005f80:	c2 04 20 08 	ld  [ %l0 + 8 ], %g1                           
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
40005f84:	11 10 00 71 	sethi  %hi(0x4001c400), %o0                    
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
  the_watchdog->id        = id;                                       
40005f88:	c2 24 20 68 	st  %g1, [ %l0 + 0x68 ]                        
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
40005f8c:	03 10 00 18 	sethi  %hi(0x40006000), %g1                    
40005f90:	82 10 61 88 	or  %g1, 0x188, %g1	! 40006188 <_Event_Timeout>
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
40005f94:	f4 24 20 54 	st  %i2, [ %l0 + 0x54 ]                        
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
40005f98:	c0 24 20 50 	clr  [ %l0 + 0x50 ]                            
  the_watchdog->routine   = routine;                                  
  the_watchdog->id        = id;                                       
  the_watchdog->user_data = user_data;                                
40005f9c:	c0 24 20 6c 	clr  [ %l0 + 0x6c ]                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
40005fa0:	c2 24 20 64 	st  %g1, [ %l0 + 0x64 ]                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
40005fa4:	90 12 20 ec 	or  %o0, 0xec, %o0                             
40005fa8:	40 00 0d ba 	call  40009690 <_Watchdog_Insert>              
40005fac:	92 04 20 48 	add  %l0, 0x48, %o1                            
      NULL                                                            
    );                                                                
    _Watchdog_Insert_ticks( &executing->Timer, ticks );               
  }                                                                   
                                                                      
  _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT );           
40005fb0:	90 10 00 10 	mov  %l0, %o0                                  
40005fb4:	40 00 0b c5 	call  40008ec8 <_Thread_Set_state>             
40005fb8:	92 10 21 00 	mov  0x100, %o1                                
                                                                      
  _ISR_Disable( level );                                              
40005fbc:	7f ff ef 64 	call  40001d4c <sparc_disable_interrupts>      
40005fc0:	01 00 00 00 	nop                                            
                                                                      
  sync_state = _Event_Sync_state;                                     
40005fc4:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
40005fc8:	f0 00 62 98 	ld  [ %g1 + 0x298 ], %i0	! 4001c698 <_Event_Sync_state>
  _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;         
40005fcc:	c0 20 62 98 	clr  [ %g1 + 0x298 ]                           
  if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) {   
40005fd0:	80 a6 20 01 	cmp  %i0, 1                                    
40005fd4:	12 80 00 04 	bne  40005fe4 <_Event_Seize+0x108>             
40005fd8:	b2 10 00 10 	mov  %l0, %i1                                  
    _ISR_Enable( level );                                             
40005fdc:	7f ff ef 60 	call  40001d5c <sparc_enable_interrupts>       
40005fe0:	91 e8 00 08 	restore  %g0, %o0, %o0                         
   *  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 );  
40005fe4:	40 00 07 eb 	call  40007f90 <_Thread_blocking_operation_Cancel>
40005fe8:	95 e8 00 08 	restore  %g0, %o0, %o2                         
                                                                      

40006048 <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) {
40006048:	9d e3 bf a0 	save  %sp, -96, %sp                            
  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 ];               
4000604c:	e2 06 21 5c 	ld  [ %i0 + 0x15c ], %l1                       
                                                                      
  option_set = (rtems_option) the_thread->Wait.option;                
40006050:	e4 06 20 30 	ld  [ %i0 + 0x30 ], %l2                        
                                                                      
  _ISR_Disable( level );                                              
40006054:	7f ff ef 3e 	call  40001d4c <sparc_disable_interrupts>      
40006058:	a0 10 00 18 	mov  %i0, %l0                                  
4000605c:	b0 10 00 08 	mov  %o0, %i0                                  
  pending_events  = api->pending_events;                              
40006060:	c4 04 40 00 	ld  [ %l1 ], %g2                               
  event_condition = (rtems_event_set) the_thread->Wait.count;         
40006064:	c6 04 20 24 	ld  [ %l0 + 0x24 ], %g3                        
  seized_events = _Event_sets_Get( pending_events, event_condition ); 
                                                                      
  /*                                                                  
   *  No events were seized in this operation                         
   */                                                                 
  if ( _Event_sets_Is_empty( seized_events ) ) {                      
40006068:	82 88 c0 02 	andcc  %g3, %g2, %g1                           
4000606c:	12 80 00 03 	bne  40006078 <_Event_Surrender+0x30>          
40006070:	09 10 00 71 	sethi  %hi(0x4001c400), %g4                    
    _ISR_Enable( level );                                             
40006074:	30 80 00 42 	b,a   4000617c <_Event_Surrender+0x134>        
                                                                      
  /*                                                                  
   *  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() &&                                       
40006078:	c8 01 20 a8 	ld  [ %g4 + 0xa8 ], %g4	! 4001c4a8 <_ISR_Nest_level>
4000607c:	80 a1 20 00 	cmp  %g4, 0                                    
40006080:	22 80 00 1e 	be,a   400060f8 <_Event_Surrender+0xb0>        
40006084:	c8 04 20 10 	ld  [ %l0 + 0x10 ], %g4                        
40006088:	09 10 00 71 	sethi  %hi(0x4001c400), %g4                    
4000608c:	c8 01 20 cc 	ld  [ %g4 + 0xcc ], %g4	! 4001c4cc <_Thread_Executing>
40006090:	80 a4 00 04 	cmp  %l0, %g4                                  
40006094:	32 80 00 19 	bne,a   400060f8 <_Event_Surrender+0xb0>       
40006098:	c8 04 20 10 	ld  [ %l0 + 0x10 ], %g4                        
       _Thread_Is_executing( the_thread ) &&                          
       ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||   
4000609c:	09 10 00 71 	sethi  %hi(0x4001c400), %g4                    
400060a0:	da 01 22 98 	ld  [ %g4 + 0x298 ], %o5	! 4001c698 <_Event_Sync_state>
                                                                      
  /*                                                                  
   *  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() &&                                       
400060a4:	80 a3 60 02 	cmp  %o5, 2                                    
400060a8:	02 80 00 07 	be  400060c4 <_Event_Surrender+0x7c>           <== NEVER TAKEN
400060ac:	80 a0 40 03 	cmp  %g1, %g3                                  
       _Thread_Is_executing( the_thread ) &&                          
       ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||   
        (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
400060b0:	c8 01 22 98 	ld  [ %g4 + 0x298 ], %g4                       
                                                                      
  /*                                                                  
   *  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() &&                                       
400060b4:	80 a1 20 01 	cmp  %g4, 1                                    
400060b8:	32 80 00 10 	bne,a   400060f8 <_Event_Surrender+0xb0>       
400060bc:	c8 04 20 10 	ld  [ %l0 + 0x10 ], %g4                        
       _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) ) {
400060c0:	80 a0 40 03 	cmp  %g1, %g3                                  
400060c4:	02 80 00 04 	be  400060d4 <_Event_Surrender+0x8c>           
400060c8:	80 8c a0 02 	btst  2, %l2                                   
400060cc:	02 80 00 0a 	be  400060f4 <_Event_Surrender+0xac>           <== NEVER TAKEN
400060d0:	01 00 00 00 	nop                                            
      api->pending_events = _Event_sets_Clear( pending_events,seized_events );
400060d4:	84 28 80 01 	andn  %g2, %g1, %g2                            
400060d8:	c4 24 40 00 	st  %g2, [ %l1 ]                               
      the_thread->Wait.count = 0;                                     
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
400060dc:	c4 04 20 28 	ld  [ %l0 + 0x28 ], %g2                        
       _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 );
      the_thread->Wait.count = 0;                                     
400060e0:	c0 24 20 24 	clr  [ %l0 + 0x24 ]                            
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
400060e4:	c2 20 80 00 	st  %g1, [ %g2 ]                               
      _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;        
400060e8:	84 10 20 03 	mov  3, %g2                                    
400060ec:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
400060f0:	c4 20 62 98 	st  %g2, [ %g1 + 0x298 ]	! 4001c698 <_Event_Sync_state>
    }                                                                 
    _ISR_Enable( level );                                             
400060f4:	30 80 00 22 	b,a   4000617c <_Event_Surrender+0x134>        
  }                                                                   
                                                                      
  /*                                                                  
   *  Otherwise, this is a normal send to another thread              
   */                                                                 
  if ( _States_Is_waiting_for_event( the_thread->current_state ) ) {  
400060f8:	80 89 21 00 	btst  0x100, %g4                               
400060fc:	02 80 00 20 	be  4000617c <_Event_Surrender+0x134>          
40006100:	80 a0 40 03 	cmp  %g1, %g3                                  
    if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
40006104:	02 80 00 04 	be  40006114 <_Event_Surrender+0xcc>           
40006108:	80 8c a0 02 	btst  2, %l2                                   
4000610c:	02 80 00 1c 	be  4000617c <_Event_Surrender+0x134>          <== NEVER TAKEN
40006110:	01 00 00 00 	nop                                            
      api->pending_events = _Event_sets_Clear( pending_events, seized_events );
40006114:	84 28 80 01 	andn  %g2, %g1, %g2                            
40006118:	c4 24 40 00 	st  %g2, [ %l1 ]                               
      the_thread->Wait.count = 0;                                     
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
4000611c:	c4 04 20 28 	ld  [ %l0 + 0x28 ], %g2                        
   *  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 );
      the_thread->Wait.count = 0;                                     
40006120:	c0 24 20 24 	clr  [ %l0 + 0x24 ]                            
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
40006124:	c2 20 80 00 	st  %g1, [ %g2 ]                               
                                                                      
      _ISR_Flash( level );                                            
40006128:	7f ff ef 0d 	call  40001d5c <sparc_enable_interrupts>       
4000612c:	90 10 00 18 	mov  %i0, %o0                                  
40006130:	7f ff ef 07 	call  40001d4c <sparc_disable_interrupts>      
40006134:	01 00 00 00 	nop                                            
                                                                      
      if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {             
40006138:	c2 04 20 50 	ld  [ %l0 + 0x50 ], %g1                        
4000613c:	80 a0 60 02 	cmp  %g1, 2                                    
40006140:	02 80 00 06 	be  40006158 <_Event_Surrender+0x110>          
40006144:	82 10 20 03 	mov  3, %g1                                    
        _ISR_Enable( level );                                         
40006148:	7f ff ef 05 	call  40001d5c <sparc_enable_interrupts>       
4000614c:	90 10 00 18 	mov  %i0, %o0                                  
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
40006150:	10 80 00 08 	b  40006170 <_Event_Surrender+0x128>           
40006154:	33 04 00 ff 	sethi  %hi(0x1003fc00), %i1                    
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(                       
  Watchdog_Control *the_watchdog                                      
)                                                                     
{                                                                     
                                                                      
  the_watchdog->state = WATCHDOG_REMOVE_IT;                           
40006158:	c2 24 20 50 	st  %g1, [ %l0 + 0x50 ]                        
        _Thread_Unblock( the_thread );                                
      } else {                                                        
        _Watchdog_Deactivate( &the_thread->Timer );                   
        _ISR_Enable( level );                                         
4000615c:	7f ff ef 00 	call  40001d5c <sparc_enable_interrupts>       
40006160:	90 10 00 18 	mov  %i0, %o0                                  
        (void) _Watchdog_Remove( &the_thread->Timer );                
40006164:	40 00 0d a8 	call  40009804 <_Watchdog_Remove>              
40006168:	90 04 20 48 	add  %l0, 0x48, %o0                            
4000616c:	33 04 00 ff 	sethi  %hi(0x1003fc00), %i1                    
40006170:	b2 16 63 f8 	or  %i1, 0x3f8, %i1	! 1003fff8 <RAM_SIZE+0xfc3fff8>
40006174:	40 00 08 15 	call  400081c8 <_Thread_Clear_state>           
40006178:	91 e8 00 10 	restore  %g0, %l0, %o0                         
        _Thread_Unblock( the_thread );                                
      }                                                               
      return;                                                         
    }                                                                 
  }                                                                   
  _ISR_Enable( level );                                               
4000617c:	7f ff ee f8 	call  40001d5c <sparc_enable_interrupts>       
40006180:	81 e8 00 00 	restore                                        
                                                                      

40006188 <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) {
40006188:	9d e3 bf 98 	save  %sp, -104, %sp                           
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
  ISR_Level          level;                                           
                                                                      
  the_thread = _Thread_Get( id, &location );                          
4000618c:	90 10 00 18 	mov  %i0, %o0                                  
40006190:	40 00 09 12 	call  400085d8 <_Thread_Get>                   
40006194:	92 07 bf fc 	add  %fp, -4, %o1                              
  switch ( location ) {                                               
40006198:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
4000619c:	80 a0 60 00 	cmp  %g1, 0                                    
400061a0:	12 80 00 1c 	bne  40006210 <_Event_Timeout+0x88>            <== NEVER TAKEN
400061a4:	a0 10 00 08 	mov  %o0, %l0                                  
       *                                                              
       *  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 );                                          
400061a8:	7f ff ee e9 	call  40001d4c <sparc_disable_interrupts>      
400061ac:	01 00 00 00 	nop                                            
            return;                                                   
          }                                                           
        #endif                                                        
                                                                      
        the_thread->Wait.count = 0;                                   
        if ( _Thread_Is_executing( the_thread ) ) {                   
400061b0:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
400061b4:	c2 00 60 cc 	ld  [ %g1 + 0xcc ], %g1	! 4001c4cc <_Thread_Executing>
400061b8:	80 a4 00 01 	cmp  %l0, %g1                                  
400061bc:	12 80 00 09 	bne  400061e0 <_Event_Timeout+0x58>            
400061c0:	c0 24 20 24 	clr  [ %l0 + 0x24 ]                            
          if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
400061c4:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
400061c8:	c4 00 62 98 	ld  [ %g1 + 0x298 ], %g2	! 4001c698 <_Event_Sync_state>
400061cc:	80 a0 a0 01 	cmp  %g2, 1                                    
400061d0:	32 80 00 05 	bne,a   400061e4 <_Event_Timeout+0x5c>         
400061d4:	82 10 20 06 	mov  6, %g1                                    
            _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;    
400061d8:	84 10 20 02 	mov  2, %g2                                    
400061dc:	c4 20 62 98 	st  %g2, [ %g1 + 0x298 ]                       
        }                                                             
                                                                      
        the_thread->Wait.return_code = RTEMS_TIMEOUT;                 
400061e0:	82 10 20 06 	mov  6, %g1                                    
400061e4:	c2 24 20 34 	st  %g1, [ %l0 + 0x34 ]                        
      _ISR_Enable( level );                                           
400061e8:	7f ff ee dd 	call  40001d5c <sparc_enable_interrupts>       
400061ec:	01 00 00 00 	nop                                            
400061f0:	90 10 00 10 	mov  %l0, %o0                                  
400061f4:	13 04 00 ff 	sethi  %hi(0x1003fc00), %o1                    
400061f8:	40 00 07 f4 	call  400081c8 <_Thread_Clear_state>           
400061fc:	92 12 63 f8 	or  %o1, 0x3f8, %o1	! 1003fff8 <RAM_SIZE+0xfc3fff8>
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
40006200:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
40006204:	c4 00 60 10 	ld  [ %g1 + 0x10 ], %g2	! 4001c410 <_Thread_Dispatch_disable_level>
40006208:	84 00 bf ff 	add  %g2, -1, %g2                              
4000620c:	c4 20 60 10 	st  %g2, [ %g1 + 0x10 ]                        
40006210:	81 c7 e0 08 	ret                                            
40006214:	81 e8 00 00 	restore                                        
                                                                      

4000be64 <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) {
4000be64:	9d e3 bf 90 	save  %sp, -112, %sp                           
  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;                                         
4000be68:	ac 06 60 04 	add  %i1, 4, %l6                               
  return &heap->free_list;                                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{                                                                     
  return _Heap_Free_list_head(heap)->next;                            
4000be6c:	e4 06 20 08 	ld  [ %i0 + 8 ], %l2                           
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t alloc_begin = 0;                                          
  uint32_t search_count = 0;                                          
                                                                      
  if ( block_size_floor < alloc_size ) {                              
4000be70:	80 a5 80 19 	cmp  %l6, %i1                                  
4000be74:	0a 80 00 6d 	bcs  4000c028 <_Heap_Allocate_aligned_with_boundary+0x1c4>
4000be78:	e8 06 20 10 	ld  [ %i0 + 0x10 ], %l4                        
    /* Integer overflow occured */                                    
    return NULL;                                                      
  }                                                                   
                                                                      
  if ( boundary != 0 ) {                                              
4000be7c:	80 a6 e0 00 	cmp  %i3, 0                                    
4000be80:	02 80 00 08 	be  4000bea0 <_Heap_Allocate_aligned_with_boundary+0x3c>
4000be84:	82 10 20 04 	mov  4, %g1                                    
    if ( boundary < alloc_size ) {                                    
4000be88:	80 a6 c0 19 	cmp  %i3, %i1                                  
4000be8c:	0a 80 00 67 	bcs  4000c028 <_Heap_Allocate_aligned_with_boundary+0x1c4>
4000be90:	80 a6 a0 00 	cmp  %i2, 0                                    
      return NULL;                                                    
    }                                                                 
                                                                      
    if ( alignment == 0 ) {                                           
4000be94:	22 80 00 03 	be,a   4000bea0 <_Heap_Allocate_aligned_with_boundary+0x3c>
4000be98:	b4 10 00 14 	mov  %l4, %i2                                  
  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;                     
4000be9c:	82 10 20 04 	mov  4, %g1                                    
4000bea0:	82 20 40 19 	sub  %g1, %i1, %g1                             
  if ( boundary != 0 ) {                                              
    if ( boundary < alloc_size ) {                                    
      return NULL;                                                    
    }                                                                 
                                                                      
    if ( alignment == 0 ) {                                           
4000bea4:	a2 10 20 00 	clr  %l1                                       
  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;                     
4000bea8:	c2 27 bf f4 	st  %g1, [ %fp + -12 ]                         
                                                                      
  /* Ensure that the we have a valid new block at the beginning */    
  if ( alloc_begin >= alloc_begin_floor ) {                           
    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;      
4000beac:	b8 10 3f f8 	mov  -8, %i4                                   
  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;                         
4000beb0:	82 05 20 07 	add  %l4, 7, %g1                               
4000beb4:	10 80 00 4b 	b  4000bfe0 <_Heap_Allocate_aligned_with_boundary+0x17c>
4000beb8:	c2 27 bf f8 	st  %g1, [ %fp + -8 ]                          
    /*                                                                
     * 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 ) {                  
4000bebc:	80 a4 c0 16 	cmp  %l3, %l6                                  
4000bec0:	08 80 00 47 	bleu  4000bfdc <_Heap_Allocate_aligned_with_boundary+0x178>
4000bec4:	a2 04 60 01 	inc  %l1                                       
      if ( alignment == 0 ) {                                         
4000bec8:	80 a6 a0 00 	cmp  %i2, 0                                    
4000becc:	12 80 00 04 	bne  4000bedc <_Heap_Allocate_aligned_with_boundary+0x78>
4000bed0:	aa 04 a0 08 	add  %l2, 8, %l5                               
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(             
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;                  
4000bed4:	10 80 00 3f 	b  4000bfd0 <_Heap_Allocate_aligned_with_boundary+0x16c>
4000bed8:	a0 10 00 15 	mov  %l5, %l0                                  
  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;                     
4000bedc:	c4 07 bf f4 	ld  [ %fp + -12 ], %g2                         
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const min_block_size = heap->min_block_size;              
4000bee0:	ee 06 20 14 	ld  [ %i0 + 0x14 ], %l7                        
                                                                      
  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;               
4000bee4:	a6 0c ff fe 	and  %l3, -2, %l3                              
4000bee8:	a6 04 80 13 	add  %l2, %l3, %l3                             
  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;                     
4000beec:	a0 00 80 13 	add  %g2, %l3, %l0                             
  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;                         
4000bef0:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
4000bef4:	90 10 00 10 	mov  %l0, %o0                                  
4000bef8:	82 20 80 17 	sub  %g2, %l7, %g1                             
4000befc:	92 10 00 1a 	mov  %i2, %o1                                  
4000bf00:	40 00 2e f1 	call  40017ac4 <.urem>                         
4000bf04:	a6 00 40 13 	add  %g1, %l3, %l3                             
4000bf08:	a0 24 00 08 	sub  %l0, %o0, %l0                             
  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 ) {                          
4000bf0c:	80 a4 00 13 	cmp  %l0, %l3                                  
4000bf10:	08 80 00 07 	bleu  4000bf2c <_Heap_Allocate_aligned_with_boundary+0xc8>
4000bf14:	80 a6 e0 00 	cmp  %i3, 0                                    
4000bf18:	90 10 00 13 	mov  %l3, %o0                                  
4000bf1c:	40 00 2e ea 	call  40017ac4 <.urem>                         
4000bf20:	92 10 00 1a 	mov  %i2, %o1                                  
4000bf24:	a0 24 c0 08 	sub  %l3, %o0, %l0                             
  }                                                                   
                                                                      
  alloc_end = alloc_begin + alloc_size;                               
                                                                      
  /* Ensure boundary constaint */                                     
  if ( boundary != 0 ) {                                              
4000bf28:	80 a6 e0 00 	cmp  %i3, 0                                    
4000bf2c:	02 80 00 1d 	be  4000bfa0 <_Heap_Allocate_aligned_with_boundary+0x13c>
4000bf30:	80 a4 00 15 	cmp  %l0, %l5                                  
  /* 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;                               
4000bf34:	a6 04 00 19 	add  %l0, %i1, %l3                             
                                                                      
  /* Ensure boundary constaint */                                     
  if ( boundary != 0 ) {                                              
    uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;  
4000bf38:	82 05 40 19 	add  %l5, %i1, %g1                             
4000bf3c:	92 10 00 1b 	mov  %i3, %o1                                  
4000bf40:	90 10 00 13 	mov  %l3, %o0                                  
4000bf44:	10 80 00 0b 	b  4000bf70 <_Heap_Allocate_aligned_with_boundary+0x10c>
4000bf48:	c2 27 bf fc 	st  %g1, [ %fp + -4 ]                          
    uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
                                                                      
    while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
      if ( boundary_line < boundary_floor ) {                         
4000bf4c:	80 a0 40 02 	cmp  %g1, %g2                                  
4000bf50:	2a 80 00 24 	bcs,a   4000bfe0 <_Heap_Allocate_aligned_with_boundary+0x17c>
4000bf54:	e4 04 a0 08 	ld  [ %l2 + 8 ], %l2                           
4000bf58:	40 00 2e db 	call  40017ac4 <.urem>                         
4000bf5c:	01 00 00 00 	nop                                            
4000bf60:	92 10 00 1b 	mov  %i3, %o1                                  
4000bf64:	a0 27 40 08 	sub  %i5, %o0, %l0                             
        return 0;                                                     
      }                                                               
      alloc_begin = boundary_line - alloc_size;                       
      alloc_begin = _Heap_Align_down( alloc_begin, alignment );       
      alloc_end = alloc_begin + alloc_size;                           
4000bf68:	a6 04 00 19 	add  %l0, %i1, %l3                             
4000bf6c:	90 10 00 13 	mov  %l3, %o0                                  
4000bf70:	40 00 2e d5 	call  40017ac4 <.urem>                         
4000bf74:	01 00 00 00 	nop                                            
4000bf78:	92 10 00 1a 	mov  %i2, %o1                                  
4000bf7c:	82 24 c0 08 	sub  %l3, %o0, %g1                             
                                                                      
    while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
      if ( boundary_line < boundary_floor ) {                         
        return 0;                                                     
      }                                                               
      alloc_begin = boundary_line - alloc_size;                       
4000bf80:	ba 20 40 19 	sub  %g1, %i1, %i5                             
  /* 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 ) {
4000bf84:	80 a0 40 13 	cmp  %g1, %l3                                  
4000bf88:	1a 80 00 05 	bcc  4000bf9c <_Heap_Allocate_aligned_with_boundary+0x138>
4000bf8c:	90 10 00 1d 	mov  %i5, %o0                                  
4000bf90:	80 a4 00 01 	cmp  %l0, %g1                                  
4000bf94:	0a bf ff ee 	bcs  4000bf4c <_Heap_Allocate_aligned_with_boundary+0xe8>
4000bf98:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          
      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 ) {                           
4000bf9c:	80 a4 00 15 	cmp  %l0, %l5                                  
4000bfa0:	0a 80 00 0f 	bcs  4000bfdc <_Heap_Allocate_aligned_with_boundary+0x178>
4000bfa4:	a6 27 00 12 	sub  %i4, %l2, %l3                             
    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;      
4000bfa8:	90 10 00 10 	mov  %l0, %o0                                  
4000bfac:	a6 04 c0 10 	add  %l3, %l0, %l3                             
4000bfb0:	40 00 2e c5 	call  40017ac4 <.urem>                         
4000bfb4:	92 10 00 14 	mov  %l4, %o1                                  
                                                                      
    if ( free_size >= min_block_size || free_size == 0 ) {            
4000bfb8:	90 a4 c0 08 	subcc  %l3, %o0, %o0                           
4000bfbc:	02 80 00 06 	be  4000bfd4 <_Heap_Allocate_aligned_with_boundary+0x170>
4000bfc0:	80 a4 20 00 	cmp  %l0, 0                                    
4000bfc4:	80 a2 00 17 	cmp  %o0, %l7                                  
4000bfc8:	2a 80 00 06 	bcs,a   4000bfe0 <_Heap_Allocate_aligned_with_boundary+0x17c>
4000bfcc:	e4 04 a0 08 	ld  [ %l2 + 8 ], %l2                           
          boundary                                                    
        );                                                            
      }                                                               
    }                                                                 
                                                                      
    if ( alloc_begin != 0 ) {                                         
4000bfd0:	80 a4 20 00 	cmp  %l0, 0                                    
4000bfd4:	32 80 00 08 	bne,a   4000bff4 <_Heap_Allocate_aligned_with_boundary+0x190><== ALWAYS TAKEN
4000bfd8:	c2 06 20 4c 	ld  [ %i0 + 0x4c ], %g1                        
      break;                                                          
    }                                                                 
                                                                      
    block = block->next;                                              
4000bfdc:	e4 04 a0 08 	ld  [ %l2 + 8 ], %l2                           
    if ( alignment == 0 ) {                                           
      alignment = page_size;                                          
    }                                                                 
  }                                                                   
                                                                      
  while ( block != free_list_tail ) {                                 
4000bfe0:	80 a4 80 18 	cmp  %l2, %i0                                  
4000bfe4:	32 bf ff b6 	bne,a   4000bebc <_Heap_Allocate_aligned_with_boundary+0x58>
4000bfe8:	e6 04 a0 04 	ld  [ %l2 + 4 ], %l3                           
4000bfec:	10 80 00 09 	b  4000c010 <_Heap_Allocate_aligned_with_boundary+0x1ac>
4000bff0:	a0 10 20 00 	clr  %l0                                       
                                                                      
  if ( alloc_begin != 0 ) {                                           
    /* Statistics */                                                  
    stats->searches += search_count;                                  
                                                                      
    block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
4000bff4:	92 10 00 12 	mov  %l2, %o1                                  
    block = block->next;                                              
  }                                                                   
                                                                      
  if ( alloc_begin != 0 ) {                                           
    /* Statistics */                                                  
    stats->searches += search_count;                                  
4000bff8:	82 00 40 11 	add  %g1, %l1, %g1                             
                                                                      
    block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
4000bffc:	96 10 00 19 	mov  %i1, %o3                                  
    block = block->next;                                              
  }                                                                   
                                                                      
  if ( alloc_begin != 0 ) {                                           
    /* Statistics */                                                  
    stats->searches += search_count;                                  
4000c000:	c2 26 20 4c 	st  %g1, [ %i0 + 0x4c ]                        
                                                                      
    block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
4000c004:	90 10 00 18 	mov  %i0, %o0                                  
4000c008:	7f ff ed 68 	call  400075a8 <_Heap_Block_allocate>          
4000c00c:	94 10 00 10 	mov  %l0, %o2                                  
  uintptr_t alloc_size,                                               
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
  Heap_Statistics *const stats = &heap->stats;                        
4000c010:	c2 06 20 44 	ld  [ %i0 + 0x44 ], %g1                        
4000c014:	80 a0 40 11 	cmp  %g1, %l1                                  
4000c018:	2a 80 00 02 	bcs,a   4000c020 <_Heap_Allocate_aligned_with_boundary+0x1bc>
4000c01c:	e2 26 20 44 	st  %l1, [ %i0 + 0x44 ]                        
  /* Statistics */                                                    
  if ( stats->max_search < search_count ) {                           
    stats->max_search = search_count;                                 
  }                                                                   
                                                                      
  return (void *) alloc_begin;                                        
4000c020:	81 c7 e0 08 	ret                                            
4000c024:	91 e8 00 10 	restore  %g0, %l0, %o0                         
}                                                                     
4000c028:	81 c7 e0 08 	ret                                            
4000c02c:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

40011460 <_Heap_Extend>: Heap_Control *heap, void *area_begin_ptr, uintptr_t area_size, uintptr_t *amount_extended ) {
40011460:	9d e3 bf a0 	save  %sp, -96, %sp                            
  Heap_Statistics *const stats = &heap->stats;                        
  uintptr_t const area_begin = (uintptr_t) area_begin_ptr;            
  uintptr_t const heap_area_begin = heap->area_begin;                 
  uintptr_t const heap_area_end = heap->area_end;                     
40011464:	c2 06 20 1c 	ld  [ %i0 + 0x1c ], %g1                        
  Heap_Control *heap,                                                 
  void *area_begin_ptr,                                               
  uintptr_t area_size,                                                
  uintptr_t *amount_extended                                          
)                                                                     
{                                                                     
40011468:	a0 10 00 18 	mov  %i0, %l0                                  
   *    5. non-contiguous higher address    (NOT SUPPORTED)           
   *                                                                  
   *  As noted, this code only supports (4).                          
   */                                                                 
                                                                      
  if ( area_begin >= heap_area_begin && area_begin < heap_area_end ) {
4001146c:	80 a6 40 01 	cmp  %i1, %g1                                  
40011470:	1a 80 00 07 	bcc  4001148c <_Heap_Extend+0x2c>              
40011474:	e2 06 20 24 	ld  [ %i0 + 0x24 ], %l1                        
  uintptr_t *amount_extended                                          
)                                                                     
{                                                                     
  Heap_Statistics *const stats = &heap->stats;                        
  uintptr_t const area_begin = (uintptr_t) area_begin_ptr;            
  uintptr_t const heap_area_begin = heap->area_begin;                 
40011478:	c4 06 20 18 	ld  [ %i0 + 0x18 ], %g2                        
4001147c:	80 a6 40 02 	cmp  %i1, %g2                                  
40011480:	1a 80 00 28 	bcc  40011520 <_Heap_Extend+0xc0>              
40011484:	b0 10 20 01 	mov  1, %i0                                    
   *  As noted, this code only supports (4).                          
   */                                                                 
                                                                      
  if ( area_begin >= heap_area_begin && area_begin < heap_area_end ) {
    return HEAP_EXTEND_ERROR; /* case 3 */                            
  } else if ( area_begin != heap_area_end ) {                         
40011488:	80 a6 40 01 	cmp  %i1, %g1                                  
4001148c:	12 80 00 25 	bne  40011520 <_Heap_Extend+0xc0>              
40011490:	b0 10 20 02 	mov  2, %i0                                    
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
40011494:	d2 04 20 10 	ld  [ %l0 + 0x10 ], %o1                        
{                                                                     
  Heap_Statistics *const stats = &heap->stats;                        
  uintptr_t const area_begin = (uintptr_t) area_begin_ptr;            
  uintptr_t const heap_area_begin = heap->area_begin;                 
  uintptr_t const heap_area_end = heap->area_end;                     
  uintptr_t const new_heap_area_end = heap_area_end + area_size;      
40011498:	b4 06 40 1a 	add  %i1, %i2, %i2                             
   *  block and free it.                                              
   */                                                                 
                                                                      
  heap->area_end = new_heap_area_end;                                 
                                                                      
  extend_size = new_heap_area_end                                     
4001149c:	b2 26 80 11 	sub  %i2, %l1, %i1                             
   *  Currently only case 4 should make it to this point.             
   *  The basic trick is to make the extend area look like a used     
   *  block and free it.                                              
   */                                                                 
                                                                      
  heap->area_end = new_heap_area_end;                                 
400114a0:	f4 24 20 1c 	st  %i2, [ %l0 + 0x1c ]                        
                                                                      
  extend_size = new_heap_area_end                                     
400114a4:	b2 06 7f f8 	add  %i1, -8, %i1                              
400114a8:	7f ff cb 28 	call  40004148 <.urem>                         
400114ac:	90 10 00 19 	mov  %i1, %o0                                  
400114b0:	90 26 40 08 	sub  %i1, %o0, %o0                             
    - (uintptr_t) last_block - HEAP_BLOCK_HEADER_SIZE;                
  extend_size = _Heap_Align_down( extend_size, heap->page_size );     
                                                                      
  *amount_extended = extend_size;                                     
400114b4:	d0 26 c0 00 	st  %o0, [ %i3 ]                               
                                                                      
  if( extend_size >= heap->min_block_size ) {                         
400114b8:	c2 04 20 14 	ld  [ %l0 + 0x14 ], %g1                        
400114bc:	80 a2 00 01 	cmp  %o0, %g1                                  
400114c0:	0a 80 00 18 	bcs  40011520 <_Heap_Extend+0xc0>              <== NEVER TAKEN
400114c4:	b0 10 20 00 	clr  %i0                                       
  uintptr_t size                                                      
)                                                                     
{                                                                     
  uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;       
                                                                      
  block->size_and_flag = size | flag;                                 
400114c8:	c2 04 60 04 	ld  [ %l1 + 4 ], %g1                           
    Heap_Block *const new_last_block = _Heap_Block_at( last_block, extend_size );
                                                                      
    _Heap_Block_set_size( last_block, extend_size );                  
                                                                      
    new_last_block->size_and_flag =                                   
400114cc:	c4 04 20 20 	ld  [ %l0 + 0x20 ], %g2                        
400114d0:	82 08 60 01 	and  %g1, 1, %g1                               
400114d4:	82 12 00 01 	or  %o0, %g1, %g1                              
400114d8:	c2 24 60 04 	st  %g1, [ %l1 + 4 ]                           
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
400114dc:	82 02 00 11 	add  %o0, %l1, %g1                             
400114e0:	84 20 80 01 	sub  %g2, %g1, %g2                             
400114e4:	84 10 a0 01 	or  %g2, 1, %g2                                
400114e8:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
                                                                      
    heap->last_block = new_last_block;                                
                                                                      
    /* Statistics */                                                  
    stats->size += extend_size;                                       
    ++stats->used_blocks;                                             
400114ec:	c6 04 20 40 	ld  [ %l0 + 0x40 ], %g3                        
        | HEAP_PREV_BLOCK_USED;                                       
                                                                      
    heap->last_block = new_last_block;                                
                                                                      
    /* Statistics */                                                  
    stats->size += extend_size;                                       
400114f0:	f2 04 20 2c 	ld  [ %l0 + 0x2c ], %i1                        
    ++stats->used_blocks;                                             
    --stats->frees; /* Do not count subsequent call as actual free() */
400114f4:	c4 04 20 50 	ld  [ %l0 + 0x50 ], %g2                        
                                                                      
    new_last_block->size_and_flag =                                   
      ((uintptr_t) heap->first_block - (uintptr_t) new_last_block)    
        | HEAP_PREV_BLOCK_USED;                                       
                                                                      
    heap->last_block = new_last_block;                                
400114f8:	c2 24 20 24 	st  %g1, [ %l0 + 0x24 ]                        
                                                                      
    /* Statistics */                                                  
    stats->size += extend_size;                                       
    ++stats->used_blocks;                                             
400114fc:	82 00 e0 01 	add  %g3, 1, %g1                               
        | HEAP_PREV_BLOCK_USED;                                       
                                                                      
    heap->last_block = new_last_block;                                
                                                                      
    /* Statistics */                                                  
    stats->size += extend_size;                                       
40011500:	90 06 40 08 	add  %i1, %o0, %o0                             
    ++stats->used_blocks;                                             
40011504:	c2 24 20 40 	st  %g1, [ %l0 + 0x40 ]                        
    --stats->frees; /* Do not count subsequent call as actual free() */
40011508:	82 00 bf ff 	add  %g2, -1, %g1                              
        | HEAP_PREV_BLOCK_USED;                                       
                                                                      
    heap->last_block = new_last_block;                                
                                                                      
    /* Statistics */                                                  
    stats->size += extend_size;                                       
4001150c:	d0 24 20 2c 	st  %o0, [ %l0 + 0x2c ]                        
    ++stats->used_blocks;                                             
    --stats->frees; /* Do not count subsequent call as actual free() */
40011510:	c2 24 20 50 	st  %g1, [ %l0 + 0x50 ]                        
                                                                      
    _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block ));
40011514:	90 10 00 10 	mov  %l0, %o0                                  
40011518:	7f ff ea fa 	call  4000c100 <_Heap_Free>                    
4001151c:	92 04 60 08 	add  %l1, 8, %o1                               
  }                                                                   
                                                                      
  return HEAP_EXTEND_SUCCESSFUL;                                      
}                                                                     
40011520:	81 c7 e0 08 	ret                                            
40011524:	81 e8 00 00 	restore                                        
                                                                      

4000c030 <_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 ) {
4000c030:	9d e3 bf a0 	save  %sp, -96, %sp                            
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 )   
4000c034:	d2 06 20 10 	ld  [ %i0 + 0x10 ], %o1                        
4000c038:	40 00 2e a3 	call  40017ac4 <.urem>                         
4000c03c:	90 10 00 19 	mov  %i1, %o0                                  
  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;             
4000c040:	c2 06 20 20 	ld  [ %i0 + 0x20 ], %g1                        
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 )   
4000c044:	b2 06 7f f8 	add  %i1, -8, %i1                              
4000c048:	90 26 40 08 	sub  %i1, %o0, %o0                             
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           
4000c04c:	80 a2 00 01 	cmp  %o0, %g1                                  
4000c050:	0a 80 00 05 	bcs  4000c064 <_Heap_Free+0x34>                
4000c054:	84 10 20 00 	clr  %g2                                       
4000c058:	c4 06 20 24 	ld  [ %i0 + 0x24 ], %g2                        
4000c05c:	80 a0 80 08 	cmp  %g2, %o0                                  
4000c060:	84 60 3f ff 	subx  %g0, -1, %g2                             
  Heap_Block *next_block = NULL;                                      
  uintptr_t block_size = 0;                                           
  uintptr_t next_block_size = 0;                                      
  bool next_is_free = false;                                          
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, block ) ) {                     
4000c064:	80 a0 a0 00 	cmp  %g2, 0                                    
4000c068:	02 80 00 6a 	be  4000c210 <_Heap_Free+0x1e0>                
4000c06c:	01 00 00 00 	nop                                            
    - 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;                
4000c070:	c8 02 20 04 	ld  [ %o0 + 4 ], %g4                           
4000c074:	86 09 3f fe 	and  %g4, -2, %g3                              
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
4000c078:	84 02 00 03 	add  %o0, %g3, %g2                             
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           
4000c07c:	80 a0 80 01 	cmp  %g2, %g1                                  
4000c080:	0a 80 00 05 	bcs  4000c094 <_Heap_Free+0x64>                <== NEVER TAKEN
4000c084:	9a 10 20 00 	clr  %o5                                       
4000c088:	da 06 20 24 	ld  [ %i0 + 0x24 ], %o5                        
4000c08c:	80 a3 40 02 	cmp  %o5, %g2                                  
4000c090:	9a 60 3f ff 	subx  %g0, -1, %o5                             
  }                                                                   
                                                                      
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {                
4000c094:	80 a3 60 00 	cmp  %o5, 0                                    
4000c098:	02 80 00 5e 	be  4000c210 <_Heap_Free+0x1e0>                <== NEVER TAKEN
4000c09c:	01 00 00 00 	nop                                            
  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;                 
4000c0a0:	da 00 a0 04 	ld  [ %g2 + 4 ], %o5                           
    _HAssert( false );                                                
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( next_block ) ) {                          
4000c0a4:	80 8b 60 01 	btst  1, %o5                                   
4000c0a8:	02 80 00 5a 	be  4000c210 <_Heap_Free+0x1e0>                <== NEVER TAKEN
4000c0ac:	9a 0b 7f fe 	and  %o5, -2, %o5                              
    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 ));
4000c0b0:	d2 06 20 24 	ld  [ %i0 + 0x24 ], %o1                        
    _HAssert( false );                                                
    return false;                                                     
  }                                                                   
                                                                      
  next_block_size = _Heap_Block_size( next_block );                   
  next_is_free = next_block != heap->last_block                       
4000c0b4:	80 a0 80 09 	cmp  %g2, %o1                                  
4000c0b8:	02 80 00 06 	be  4000c0d0 <_Heap_Free+0xa0>                 
4000c0bc:	96 10 20 00 	clr  %o3                                       
4000c0c0:	98 00 80 0d 	add  %g2, %o5, %o4                             
4000c0c4:	d6 03 20 04 	ld  [ %o4 + 4 ], %o3                           
4000c0c8:	96 0a e0 01 	and  %o3, 1, %o3                               
4000c0cc:	96 1a e0 01 	xor  %o3, 1, %o3                               
    && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
                                                                      
  if ( !_Heap_Is_prev_used( block ) ) {                               
4000c0d0:	80 89 20 01 	btst  1, %g4                                   
4000c0d4:	12 80 00 26 	bne  4000c16c <_Heap_Free+0x13c>               
4000c0d8:	80 a2 e0 00 	cmp  %o3, 0                                    
    uintptr_t const prev_size = block->prev_size;                     
4000c0dc:	d8 02 00 00 	ld  [ %o0 ], %o4                               
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
4000c0e0:	88 22 00 0c 	sub  %o0, %o4, %g4                             
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           
4000c0e4:	80 a1 00 01 	cmp  %g4, %g1                                  
4000c0e8:	0a 80 00 04 	bcs  4000c0f8 <_Heap_Free+0xc8>                <== NEVER TAKEN
4000c0ec:	94 10 20 00 	clr  %o2                                       
4000c0f0:	80 a2 40 04 	cmp  %o1, %g4                                  
4000c0f4:	94 60 3f ff 	subx  %g0, -1, %o2                             
    Heap_Block * const prev_block = _Heap_Block_at( block, -prev_size );
                                                                      
    if ( !_Heap_Is_block_in_heap( heap, prev_block ) ) {              
4000c0f8:	80 a2 a0 00 	cmp  %o2, 0                                    
4000c0fc:	02 80 00 45 	be  4000c210 <_Heap_Free+0x1e0>                <== NEVER TAKEN
4000c100:	01 00 00 00 	nop                                            
      return( false );                                                
    }                                                                 
                                                                      
    /* As we always coalesce free blocks, the block that preceedes prev_block
       must have been used. */                                        
    if ( !_Heap_Is_prev_used ( prev_block) ) {                        
4000c104:	c2 01 20 04 	ld  [ %g4 + 4 ], %g1                           
4000c108:	80 88 60 01 	btst  1, %g1                                   
4000c10c:	02 80 00 41 	be  4000c210 <_Heap_Free+0x1e0>                <== NEVER TAKEN
4000c110:	80 a2 e0 00 	cmp  %o3, 0                                    
      _HAssert( false );                                              
      return( false );                                                
    }                                                                 
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
4000c114:	22 80 00 0f 	be,a   4000c150 <_Heap_Free+0x120>             
4000c118:	98 00 c0 0c 	add  %g3, %o4, %o4                             
      uintptr_t const size = block_size + prev_size + next_block_size;
      _Heap_Free_list_remove( next_block );                           
      stats->free_blocks -= 1;                                        
4000c11c:	c2 06 20 38 	ld  [ %i0 + 0x38 ], %g1                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) 
{                                                                     
  Heap_Block *next = block->next;                                     
  Heap_Block *prev = block->prev;                                     
4000c120:	d6 00 a0 0c 	ld  [ %g2 + 0xc ], %o3                         
  return _Heap_Free_list_tail(heap)->prev;                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) 
{                                                                     
  Heap_Block *next = block->next;                                     
4000c124:	c4 00 a0 08 	ld  [ %g2 + 8 ], %g2                           
4000c128:	82 00 7f ff 	add  %g1, -1, %g1                              
4000c12c:	c2 26 20 38 	st  %g1, [ %i0 + 0x38 ]                        
      _HAssert( false );                                              
      return( false );                                                
    }                                                                 
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
      uintptr_t const size = block_size + prev_size + next_block_size;
4000c130:	9a 00 c0 0d 	add  %g3, %o5, %o5                             
  Heap_Block *prev = block->prev;                                     
                                                                      
  prev->next = next;                                                  
  next->prev = prev;                                                  
4000c134:	d6 20 a0 0c 	st  %o3, [ %g2 + 0xc ]                         
4000c138:	98 03 40 0c 	add  %o5, %o4, %o4                             
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) 
{                                                                     
  Heap_Block *next = block->next;                                     
  Heap_Block *prev = block->prev;                                     
                                                                      
  prev->next = next;                                                  
4000c13c:	c4 22 e0 08 	st  %g2, [ %o3 + 8 ]                           
      _Heap_Free_list_remove( next_block );                           
      stats->free_blocks -= 1;                                        
      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;                                   
4000c140:	d8 21 00 0c 	st  %o4, [ %g4 + %o4 ]                         
                                                                      
    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;        
4000c144:	98 13 20 01 	or  %o4, 1, %o4                                
4000c148:	10 80 00 27 	b  4000c1e4 <_Heap_Free+0x1b4>                 
4000c14c:	d8 21 20 04 	st  %o4, [ %g4 + 4 ]                           
      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;                  
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
4000c150:	82 13 20 01 	or  %o4, 1, %g1                                
4000c154:	c2 21 20 04 	st  %g1, [ %g4 + 4 ]                           
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
4000c158:	c2 00 a0 04 	ld  [ %g2 + 4 ], %g1                           
      next_block->prev_size = size;                                   
4000c15c:	d8 22 00 03 	st  %o4, [ %o0 + %g3 ]                         
      _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;             
4000c160:	82 08 7f fe 	and  %g1, -2, %g1                              
4000c164:	10 80 00 20 	b  4000c1e4 <_Heap_Free+0x1b4>                 
4000c168:	c2 20 a0 04 	st  %g1, [ %g2 + 4 ]                           
      next_block->prev_size = size;                                   
    }                                                                 
  } else if ( next_is_free ) {    /* coalesce next */                 
4000c16c:	02 80 00 0d 	be  4000c1a0 <_Heap_Free+0x170>                
4000c170:	82 10 e0 01 	or  %g3, 1, %g1                                
  Heap_Block *old_block,                                              
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = old_block->next;                                 
  Heap_Block *prev = old_block->prev;                                 
4000c174:	c2 00 a0 0c 	ld  [ %g2 + 0xc ], %g1                         
RTEMS_INLINE_ROUTINE void _Heap_Free_list_replace(                    
  Heap_Block *old_block,                                              
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = old_block->next;                                 
4000c178:	c4 00 a0 08 	ld  [ %g2 + 8 ], %g2                           
  Heap_Block *prev = old_block->prev;                                 
                                                                      
  new_block->next = next;                                             
  new_block->prev = prev;                                             
4000c17c:	c2 22 20 0c 	st  %g1, [ %o0 + 0xc ]                         
)                                                                     
{                                                                     
  Heap_Block *next = old_block->next;                                 
  Heap_Block *prev = old_block->prev;                                 
                                                                      
  new_block->next = next;                                             
4000c180:	c4 22 20 08 	st  %g2, [ %o0 + 8 ]                           
  new_block->prev = prev;                                             
                                                                      
  next->prev = new_block;                                             
  prev->next = new_block;                                             
4000c184:	d0 20 60 08 	st  %o0, [ %g1 + 8 ]                           
  Heap_Block *prev = old_block->prev;                                 
                                                                      
  new_block->next = next;                                             
  new_block->prev = prev;                                             
                                                                      
  next->prev = new_block;                                             
4000c188:	d0 20 a0 0c 	st  %o0, [ %g2 + 0xc ]                         
    uintptr_t const size = block_size + next_block_size;              
4000c18c:	82 03 40 03 	add  %o5, %g3, %g1                             
    _Heap_Free_list_replace( next_block, block );                     
    block->size_and_flag = size | HEAP_PREV_BLOCK_USED;               
    next_block  = _Heap_Block_at( block, size );                      
    next_block->prev_size = size;                                     
4000c190:	c2 22 00 01 	st  %g1, [ %o0 + %g1 ]                         
      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;               
4000c194:	82 10 60 01 	or  %g1, 1, %g1                                
4000c198:	10 80 00 13 	b  4000c1e4 <_Heap_Free+0x1b4>                 
4000c19c:	c2 22 20 04 	st  %g1, [ %o0 + 4 ]                           
    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;         
4000c1a0:	c2 22 20 04 	st  %g1, [ %o0 + 4 ]                           
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
4000c1a4:	c2 00 a0 04 	ld  [ %g2 + 4 ], %g1                           
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after(               
  Heap_Block *block_before,                                           
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = block_before->next;                              
4000c1a8:	c8 06 20 08 	ld  [ %i0 + 8 ], %g4                           
4000c1ac:	82 08 7f fe 	and  %g1, -2, %g1                              
    next_block->prev_size = block_size;                               
4000c1b0:	c6 22 00 03 	st  %g3, [ %o0 + %g3 ]                         
  } 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;               
4000c1b4:	c2 20 a0 04 	st  %g1, [ %g2 + 4 ]                           
    next_block->prev_size = block_size;                               
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
4000c1b8:	c2 06 20 38 	ld  [ %i0 + 0x38 ], %g1                        
                                                                      
  new_block->next = next;                                             
4000c1bc:	c8 22 20 08 	st  %g4, [ %o0 + 8 ]                           
  new_block->prev = block_before;                                     
4000c1c0:	f0 22 20 0c 	st  %i0, [ %o0 + 0xc ]                         
#include <rtems/score/sysstate.h>                                     
#include <rtems/score/heap.h>                                         
                                                                      
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )          
{                                                                     
  Heap_Statistics *const stats = &heap->stats;                        
4000c1c4:	c4 06 20 3c 	ld  [ %i0 + 0x3c ], %g2                        
    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;                                             
4000c1c8:	82 00 60 01 	inc  %g1                                       
  block_before->next = new_block;                                     
  next->prev = new_block;                                             
4000c1cc:	d0 21 20 0c 	st  %o0, [ %g4 + 0xc ]                         
{                                                                     
  Heap_Block *next = block_before->next;                              
                                                                      
  new_block->next = next;                                             
  new_block->prev = block_before;                                     
  block_before->next = new_block;                                     
4000c1d0:	d0 26 20 08 	st  %o0, [ %i0 + 8 ]                           
#include <rtems/score/sysstate.h>                                     
#include <rtems/score/heap.h>                                         
                                                                      
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )          
{                                                                     
  Heap_Statistics *const stats = &heap->stats;                        
4000c1d4:	80 a0 80 01 	cmp  %g2, %g1                                  
4000c1d8:	1a 80 00 03 	bcc  4000c1e4 <_Heap_Free+0x1b4>               
4000c1dc:	c2 26 20 38 	st  %g1, [ %i0 + 0x38 ]                        
    next_block->prev_size = block_size;                               
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
    if ( stats->max_free_blocks < stats->free_blocks ) {              
      stats->max_free_blocks = stats->free_blocks;                    
4000c1e0:	c2 26 20 3c 	st  %g1, [ %i0 + 0x3c ]                        
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
4000c1e4:	c4 06 20 40 	ld  [ %i0 + 0x40 ], %g2                        
  ++stats->frees;                                                     
4000c1e8:	c2 06 20 50 	ld  [ %i0 + 0x50 ], %g1                        
  stats->free_size += block_size;                                     
4000c1ec:	c8 06 20 30 	ld  [ %i0 + 0x30 ], %g4                        
      stats->max_free_blocks = stats->free_blocks;                    
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
4000c1f0:	84 00 bf ff 	add  %g2, -1, %g2                              
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
4000c1f4:	86 01 00 03 	add  %g4, %g3, %g3                             
      stats->max_free_blocks = stats->free_blocks;                    
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
4000c1f8:	c4 26 20 40 	st  %g2, [ %i0 + 0x40 ]                        
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
4000c1fc:	c6 26 20 30 	st  %g3, [ %i0 + 0x30 ]                        
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
4000c200:	82 00 60 01 	inc  %g1                                       
4000c204:	c2 26 20 50 	st  %g1, [ %i0 + 0x50 ]                        
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
4000c208:	81 c7 e0 08 	ret                                            
4000c20c:	91 e8 20 01 	restore  %g0, 1, %o0                           
}                                                                     
4000c210:	81 c7 e0 08 	ret                                            
4000c214:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

4001a2c0 <_Heap_Size_of_alloc_area>: bool _Heap_Size_of_alloc_area( Heap_Control *heap, void *alloc_begin_ptr, uintptr_t *alloc_size ) {
4001a2c0:	9d e3 bf a0 	save  %sp, -96, %sp                            
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 )   
4001a2c4:	d2 06 20 10 	ld  [ %i0 + 0x10 ], %o1                        
4001a2c8:	7f ff f5 ff 	call  40017ac4 <.urem>                         
4001a2cc:	90 10 00 19 	mov  %i1, %o0                                  
  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;             
4001a2d0:	c2 06 20 20 	ld  [ %i0 + 0x20 ], %g1                        
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 )   
4001a2d4:	84 06 7f f8 	add  %i1, -8, %g2                              
4001a2d8:	90 20 80 08 	sub  %g2, %o0, %o0                             
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           
4001a2dc:	80 a2 00 01 	cmp  %o0, %g1                                  
4001a2e0:	0a 80 00 05 	bcs  4001a2f4 <_Heap_Size_of_alloc_area+0x34>  
4001a2e4:	84 10 20 00 	clr  %g2                                       
4001a2e8:	c4 06 20 24 	ld  [ %i0 + 0x24 ], %g2                        
4001a2ec:	80 a0 80 08 	cmp  %g2, %o0                                  
4001a2f0:	84 60 3f ff 	subx  %g0, -1, %g2                             
  uintptr_t const alloc_begin = (uintptr_t) alloc_begin_ptr;          
  Heap_Block *block = _Heap_Block_of_alloc_area( alloc_begin, page_size );
  Heap_Block *next_block = NULL;                                      
  uintptr_t block_size = 0;                                           
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, block ) ) {                     
4001a2f4:	80 a0 a0 00 	cmp  %g2, 0                                    
4001a2f8:	02 80 00 16 	be  4001a350 <_Heap_Size_of_alloc_area+0x90>   
4001a2fc:	01 00 00 00 	nop                                            
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
4001a300:	c4 02 20 04 	ld  [ %o0 + 4 ], %g2                           
4001a304:	84 08 bf fe 	and  %g2, -2, %g2                              
4001a308:	84 02 00 02 	add  %o0, %g2, %g2                             
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           
4001a30c:	80 a0 80 01 	cmp  %g2, %g1                                  
4001a310:	0a 80 00 05 	bcs  4001a324 <_Heap_Size_of_alloc_area+0x64>  <== NEVER TAKEN
4001a314:	86 10 20 00 	clr  %g3                                       
4001a318:	c2 06 20 24 	ld  [ %i0 + 0x24 ], %g1                        
4001a31c:	80 a0 40 02 	cmp  %g1, %g2                                  
4001a320:	86 60 3f ff 	subx  %g0, -1, %g3                             
  }                                                                   
                                                                      
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if (                                                                
4001a324:	80 a0 e0 00 	cmp  %g3, 0                                    
4001a328:	02 80 00 0a 	be  4001a350 <_Heap_Size_of_alloc_area+0x90>   <== NEVER TAKEN
4001a32c:	01 00 00 00 	nop                                            
4001a330:	c2 00 a0 04 	ld  [ %g2 + 4 ], %g1                           
4001a334:	80 88 60 01 	btst  1, %g1                                   
4001a338:	02 80 00 06 	be  4001a350 <_Heap_Size_of_alloc_area+0x90>   <== NEVER TAKEN
4001a33c:	84 20 80 19 	sub  %g2, %i1, %g2                             
      || !_Heap_Is_prev_used( next_block )                            
  ) {                                                                 
    return false;                                                     
  }                                                                   
                                                                      
  *alloc_size = (uintptr_t) next_block + HEAP_BLOCK_SIZE_OFFSET - alloc_begin;
4001a340:	84 00 a0 04 	add  %g2, 4, %g2                               
4001a344:	c4 26 80 00 	st  %g2, [ %i2 ]                               
                                                                      
  return true;                                                        
4001a348:	81 c7 e0 08 	ret                                            
4001a34c:	91 e8 20 01 	restore  %g0, 1, %o0                           
}                                                                     
4001a350:	81 c7 e0 08 	ret                                            
4001a354:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

40008528 <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) {
40008528:	9d e3 bf 88 	save  %sp, -120, %sp                           
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const min_block_size = heap->min_block_size;              
  Heap_Block *const last_block = heap->last_block;                    
  Heap_Block *block = heap->first_block;                              
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
4000852c:	23 10 00 22 	sethi  %hi(0x40008800), %l1                    
40008530:	80 8e a0 ff 	btst  0xff, %i2                                
40008534:	a2 14 62 00 	or  %l1, 0x200, %l1                            
  Heap_Control *heap,                                                 
  int source,                                                         
  bool dump                                                           
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
40008538:	e4 06 20 10 	ld  [ %i0 + 0x10 ], %l2                        
  uintptr_t const min_block_size = heap->min_block_size;              
4000853c:	e6 06 20 14 	ld  [ %i0 + 0x14 ], %l3                        
  Heap_Block *const last_block = heap->last_block;                    
40008540:	e8 06 20 24 	ld  [ %i0 + 0x24 ], %l4                        
  Heap_Block *block = heap->first_block;                              
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
40008544:	12 80 00 04 	bne  40008554 <_Heap_Walk+0x2c>                
40008548:	e0 06 20 20 	ld  [ %i0 + 0x20 ], %l0                        
4000854c:	23 10 00 21 	sethi  %hi(0x40008400), %l1                    
40008550:	a2 14 61 20 	or  %l1, 0x120, %l1	! 40008520 <_Heap_Walk_print_nothing>
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
40008554:	03 10 00 7b 	sethi  %hi(0x4001ec00), %g1                    
40008558:	c2 00 60 80 	ld  [ %g1 + 0x80 ], %g1	! 4001ec80 <_System_state_Current>
4000855c:	80 a0 60 03 	cmp  %g1, 3                                    
40008560:	12 80 01 1e 	bne  400089d8 <_Heap_Walk+0x4b0>               
40008564:	90 10 00 19 	mov  %i1, %o0                                  
  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)(                                                         
40008568:	da 06 20 18 	ld  [ %i0 + 0x18 ], %o5                        
4000856c:	c6 06 20 1c 	ld  [ %i0 + 0x1c ], %g3                        
40008570:	c4 06 20 08 	ld  [ %i0 + 8 ], %g2                           
40008574:	c2 06 20 0c 	ld  [ %i0 + 0xc ], %g1                         
40008578:	c6 23 a0 5c 	st  %g3, [ %sp + 0x5c ]                        
4000857c:	c4 23 a0 68 	st  %g2, [ %sp + 0x68 ]                        
40008580:	c2 23 a0 6c 	st  %g1, [ %sp + 0x6c ]                        
40008584:	e0 23 a0 60 	st  %l0, [ %sp + 0x60 ]                        
40008588:	e8 23 a0 64 	st  %l4, [ %sp + 0x64 ]                        
4000858c:	92 10 20 00 	clr  %o1                                       
40008590:	15 10 00 6f 	sethi  %hi(0x4001bc00), %o2                    
40008594:	96 10 00 12 	mov  %l2, %o3                                  
40008598:	94 12 a2 a0 	or  %o2, 0x2a0, %o2                            
4000859c:	9f c4 40 00 	call  %l1                                      
400085a0:	98 10 00 13 	mov  %l3, %o4                                  
    heap->area_begin, heap->area_end,                                 
    first_block, last_block,                                          
    first_free_block, last_free_block                                 
  );                                                                  
                                                                      
  if ( page_size == 0 ) {                                             
400085a4:	80 a4 a0 00 	cmp  %l2, 0                                    
400085a8:	12 80 00 07 	bne  400085c4 <_Heap_Walk+0x9c>                
400085ac:	80 8c a0 07 	btst  7, %l2                                   
    (*printer)( source, true, "page size is zero\n" );                
400085b0:	15 10 00 6f 	sethi  %hi(0x4001bc00), %o2                    
400085b4:	90 10 00 19 	mov  %i1, %o0                                  
400085b8:	92 10 20 01 	mov  1, %o1                                    
400085bc:	10 80 00 27 	b  40008658 <_Heap_Walk+0x130>                 
400085c0:	94 12 a3 38 	or  %o2, 0x338, %o2                            
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Addresses_Is_aligned( (void *) page_size ) ) {               
400085c4:	22 80 00 08 	be,a   400085e4 <_Heap_Walk+0xbc>              
400085c8:	90 10 00 13 	mov  %l3, %o0                                  
    (*printer)(                                                       
400085cc:	15 10 00 6f 	sethi  %hi(0x4001bc00), %o2                    
400085d0:	90 10 00 19 	mov  %i1, %o0                                  
400085d4:	96 10 00 12 	mov  %l2, %o3                                  
400085d8:	92 10 20 01 	mov  1, %o1                                    
400085dc:	10 80 01 05 	b  400089f0 <_Heap_Walk+0x4c8>                 
400085e0:	94 12 a3 50 	or  %o2, 0x350, %o2                            
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {             
400085e4:	7f ff e5 3d 	call  40001ad8 <.urem>                         
400085e8:	92 10 00 12 	mov  %l2, %o1                                  
400085ec:	80 a2 20 00 	cmp  %o0, 0                                    
400085f0:	22 80 00 08 	be,a   40008610 <_Heap_Walk+0xe8>              
400085f4:	90 04 20 08 	add  %l0, 8, %o0                               
    (*printer)(                                                       
400085f8:	15 10 00 6f 	sethi  %hi(0x4001bc00), %o2                    
400085fc:	90 10 00 19 	mov  %i1, %o0                                  
40008600:	96 10 00 13 	mov  %l3, %o3                                  
40008604:	92 10 20 01 	mov  1, %o1                                    
40008608:	10 80 00 fa 	b  400089f0 <_Heap_Walk+0x4c8>                 
4000860c:	94 12 a3 70 	or  %o2, 0x370, %o2                            
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
40008610:	7f ff e5 32 	call  40001ad8 <.urem>                         
40008614:	92 10 00 12 	mov  %l2, %o1                                  
40008618:	80 a2 20 00 	cmp  %o0, 0                                    
4000861c:	22 80 00 08 	be,a   4000863c <_Heap_Walk+0x114>             
40008620:	c2 04 20 04 	ld  [ %l0 + 4 ], %g1                           
    !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
  ) {                                                                 
    (*printer)(                                                       
40008624:	15 10 00 6f 	sethi  %hi(0x4001bc00), %o2                    
40008628:	90 10 00 19 	mov  %i1, %o0                                  
4000862c:	96 10 00 10 	mov  %l0, %o3                                  
40008630:	92 10 20 01 	mov  1, %o1                                    
40008634:	10 80 00 ef 	b  400089f0 <_Heap_Walk+0x4c8>                 
40008638:	94 12 a3 98 	or  %o2, 0x398, %o2                            
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( first_block ) ) {                         
4000863c:	80 88 60 01 	btst  1, %g1                                   
40008640:	32 80 00 09 	bne,a   40008664 <_Heap_Walk+0x13c>            
40008644:	ea 04 00 00 	ld  [ %l0 ], %l5                               
    (*printer)(                                                       
40008648:	15 10 00 6f 	sethi  %hi(0x4001bc00), %o2                    
4000864c:	90 10 00 19 	mov  %i1, %o0                                  
40008650:	92 10 20 01 	mov  1, %o1                                    
40008654:	94 12 a3 d0 	or  %o2, 0x3d0, %o2                            
40008658:	9f c4 40 00 	call  %l1                                      
4000865c:	b0 10 20 00 	clr  %i0                                       
40008660:	30 80 00 e6 	b,a   400089f8 <_Heap_Walk+0x4d0>              
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( first_block->prev_size != page_size ) {                        
40008664:	80 a5 40 12 	cmp  %l5, %l2                                  
40008668:	22 80 00 09 	be,a   4000868c <_Heap_Walk+0x164>             
4000866c:	c2 05 20 04 	ld  [ %l4 + 4 ], %g1                           
    (*printer)(                                                       
40008670:	15 10 00 70 	sethi  %hi(0x4001c000), %o2                    
40008674:	90 10 00 19 	mov  %i1, %o0                                  
40008678:	96 10 00 15 	mov  %l5, %o3                                  
4000867c:	98 10 00 12 	mov  %l2, %o4                                  
40008680:	92 10 20 01 	mov  1, %o1                                    
40008684:	10 80 00 88 	b  400088a4 <_Heap_Walk+0x37c>                 
40008688:	94 12 a0 00 	mov  %o2, %o2                                  
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( _Heap_Is_free( last_block ) ) {                                
4000868c:	82 08 7f fe 	and  %g1, -2, %g1                              
40008690:	82 05 00 01 	add  %l4, %g1, %g1                             
40008694:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
40008698:	80 88 60 01 	btst  1, %g1                                   
4000869c:	32 80 00 07 	bne,a   400086b8 <_Heap_Walk+0x190>            
400086a0:	d6 06 20 08 	ld  [ %i0 + 8 ], %o3                           
    (*printer)(                                                       
400086a4:	15 10 00 70 	sethi  %hi(0x4001c000), %o2                    
400086a8:	90 10 00 19 	mov  %i1, %o0                                  
400086ac:	92 10 20 01 	mov  1, %o1                                    
400086b0:	10 bf ff ea 	b  40008658 <_Heap_Walk+0x130>                 
400086b4:	94 12 a0 30 	or  %o2, 0x30, %o2                             
  int source,                                                         
  Heap_Walk_printer printer,                                          
  Heap_Control *heap                                                  
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
400086b8:	ec 06 20 10 	ld  [ %i0 + 0x10 ], %l6                        
  return &heap->free_list;                                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{                                                                     
  return _Heap_Free_list_head(heap)->next;                            
400086bc:	a4 10 00 18 	mov  %i0, %l2                                  
400086c0:	10 80 00 32 	b  40008788 <_Heap_Walk+0x260>                 
400086c4:	ae 10 00 0b 	mov  %o3, %l7                                  
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           
400086c8:	80 a0 80 17 	cmp  %g2, %l7                                  
400086cc:	18 80 00 05 	bgu  400086e0 <_Heap_Walk+0x1b8>               
400086d0:	82 10 20 00 	clr  %g1                                       
400086d4:	c2 06 20 24 	ld  [ %i0 + 0x24 ], %g1                        
400086d8:	80 a0 40 17 	cmp  %g1, %l7                                  
400086dc:	82 60 3f ff 	subx  %g0, -1, %g1                             
  const Heap_Block *const first_free_block = _Heap_Free_list_first( heap );
  const Heap_Block *prev_block = free_list_tail;                      
  const Heap_Block *free_block = first_free_block;                    
                                                                      
  while ( free_block != free_list_tail ) {                            
    if ( !_Heap_Is_block_in_heap( heap, free_block ) ) {              
400086e0:	80 a0 60 00 	cmp  %g1, 0                                    
400086e4:	32 80 00 08 	bne,a   40008704 <_Heap_Walk+0x1dc>            
400086e8:	90 05 e0 08 	add  %l7, 8, %o0                               
      (*printer)(                                                     
400086ec:	15 10 00 70 	sethi  %hi(0x4001c000), %o2                    
400086f0:	96 10 00 17 	mov  %l7, %o3                                  
400086f4:	90 10 00 19 	mov  %i1, %o0                                  
400086f8:	92 10 20 01 	mov  1, %o1                                    
400086fc:	10 80 00 bd 	b  400089f0 <_Heap_Walk+0x4c8>                 
40008700:	94 12 a0 48 	or  %o2, 0x48, %o2                             
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if (                                                              
40008704:	7f ff e4 f5 	call  40001ad8 <.urem>                         
40008708:	92 10 00 16 	mov  %l6, %o1                                  
4000870c:	80 a2 20 00 	cmp  %o0, 0                                    
40008710:	22 80 00 08 	be,a   40008730 <_Heap_Walk+0x208>             
40008714:	c2 05 e0 04 	ld  [ %l7 + 4 ], %g1                           
      !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
    ) {                                                               
      (*printer)(                                                     
40008718:	15 10 00 70 	sethi  %hi(0x4001c000), %o2                    
4000871c:	96 10 00 17 	mov  %l7, %o3                                  
40008720:	90 10 00 19 	mov  %i1, %o0                                  
40008724:	92 10 20 01 	mov  1, %o1                                    
40008728:	10 80 00 b2 	b  400089f0 <_Heap_Walk+0x4c8>                 
4000872c:	94 12 a0 68 	or  %o2, 0x68, %o2                             
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
40008730:	82 08 7f fe 	and  %g1, -2, %g1                              
40008734:	82 05 c0 01 	add  %l7, %g1, %g1                             
40008738:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
4000873c:	80 88 60 01 	btst  1, %g1                                   
40008740:	22 80 00 08 	be,a   40008760 <_Heap_Walk+0x238>             
40008744:	d8 05 e0 0c 	ld  [ %l7 + 0xc ], %o4                         
      (*printer)(                                                     
40008748:	15 10 00 70 	sethi  %hi(0x4001c000), %o2                    
4000874c:	96 10 00 17 	mov  %l7, %o3                                  
40008750:	90 10 00 19 	mov  %i1, %o0                                  
40008754:	92 10 20 01 	mov  1, %o1                                    
40008758:	10 80 00 a6 	b  400089f0 <_Heap_Walk+0x4c8>                 
4000875c:	94 12 a0 98 	or  %o2, 0x98, %o2                             
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( free_block->prev != prev_block ) {                           
40008760:	80 a3 00 12 	cmp  %o4, %l2                                  
40008764:	02 80 00 08 	be  40008784 <_Heap_Walk+0x25c>                
40008768:	a4 10 00 17 	mov  %l7, %l2                                  
      (*printer)(                                                     
4000876c:	15 10 00 70 	sethi  %hi(0x4001c000), %o2                    
40008770:	96 10 00 17 	mov  %l7, %o3                                  
40008774:	90 10 00 19 	mov  %i1, %o0                                  
40008778:	92 10 20 01 	mov  1, %o1                                    
4000877c:	10 80 00 4a 	b  400088a4 <_Heap_Walk+0x37c>                 
40008780:	94 12 a0 b8 	or  %o2, 0xb8, %o2                             
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    prev_block = free_block;                                          
    free_block = free_block->next;                                    
40008784:	ee 05 e0 08 	ld  [ %l7 + 8 ], %l7                           
  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 ) {                            
40008788:	80 a5 c0 18 	cmp  %l7, %i0                                  
4000878c:	32 bf ff cf 	bne,a   400086c8 <_Heap_Walk+0x1a0>            
40008790:	c4 06 20 20 	ld  [ %i0 + 0x20 ], %g2                        
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
40008794:	10 80 00 89 	b  400089b8 <_Heap_Walk+0x490>                 
40008798:	37 10 00 70 	sethi  %hi(0x4001c000), %i3                    
    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;        
                                                                      
    if ( prev_used ) {                                                
4000879c:	80 8d a0 01 	btst  1, %l6                                   
    - 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;                
400087a0:	ac 0d bf fe 	and  %l6, -2, %l6                              
400087a4:	02 80 00 0a 	be  400087cc <_Heap_Walk+0x2a4>                
400087a8:	a4 04 00 16 	add  %l0, %l6, %l2                             
      (*printer)(                                                     
400087ac:	90 10 00 19 	mov  %i1, %o0                                  
400087b0:	92 10 20 00 	clr  %o1                                       
400087b4:	94 10 00 1a 	mov  %i2, %o2                                  
400087b8:	96 10 00 10 	mov  %l0, %o3                                  
400087bc:	9f c4 40 00 	call  %l1                                      
400087c0:	98 10 00 16 	mov  %l6, %o4                                  
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           
400087c4:	10 80 00 0a 	b  400087ec <_Heap_Walk+0x2c4>                 
400087c8:	c4 06 20 20 	ld  [ %i0 + 0x20 ], %g2                        
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
400087cc:	da 04 00 00 	ld  [ %l0 ], %o5                               
400087d0:	90 10 00 19 	mov  %i1, %o0                                  
400087d4:	92 10 20 00 	clr  %o1                                       
400087d8:	94 10 00 1b 	mov  %i3, %o2                                  
400087dc:	96 10 00 10 	mov  %l0, %o3                                  
400087e0:	9f c4 40 00 	call  %l1                                      
400087e4:	98 10 00 16 	mov  %l6, %o4                                  
400087e8:	c4 06 20 20 	ld  [ %i0 + 0x20 ], %g2                        
400087ec:	80 a0 80 12 	cmp  %g2, %l2                                  
400087f0:	18 80 00 05 	bgu  40008804 <_Heap_Walk+0x2dc>               <== NEVER TAKEN
400087f4:	82 10 20 00 	clr  %g1                                       
400087f8:	c2 06 20 24 	ld  [ %i0 + 0x24 ], %g1                        
400087fc:	80 a0 40 12 	cmp  %g1, %l2                                  
40008800:	82 60 3f ff 	subx  %g0, -1, %g1                             
        block_size,                                                   
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {              
40008804:	80 a0 60 00 	cmp  %g1, 0                                    
40008808:	32 80 00 09 	bne,a   4000882c <_Heap_Walk+0x304>            
4000880c:	90 10 00 16 	mov  %l6, %o0                                  
      (*printer)(                                                     
40008810:	15 10 00 70 	sethi  %hi(0x4001c000), %o2                    
40008814:	90 10 00 19 	mov  %i1, %o0                                  
40008818:	96 10 00 10 	mov  %l0, %o3                                  
4000881c:	98 10 00 12 	mov  %l2, %o4                                  
40008820:	92 10 20 01 	mov  1, %o1                                    
40008824:	10 80 00 20 	b  400088a4 <_Heap_Walk+0x37c>                 
40008828:	94 12 a1 30 	or  %o2, 0x130, %o2                            
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_aligned( block_size, page_size ) ) {               
4000882c:	7f ff e4 ab 	call  40001ad8 <.urem>                         
40008830:	92 10 00 15 	mov  %l5, %o1                                  
40008834:	80 a2 20 00 	cmp  %o0, 0                                    
40008838:	02 80 00 09 	be  4000885c <_Heap_Walk+0x334>                
4000883c:	80 a5 80 13 	cmp  %l6, %l3                                  
      (*printer)(                                                     
40008840:	15 10 00 70 	sethi  %hi(0x4001c000), %o2                    
40008844:	90 10 00 19 	mov  %i1, %o0                                  
40008848:	96 10 00 10 	mov  %l0, %o3                                  
4000884c:	98 10 00 16 	mov  %l6, %o4                                  
40008850:	92 10 20 01 	mov  1, %o1                                    
40008854:	10 80 00 14 	b  400088a4 <_Heap_Walk+0x37c>                 
40008858:	94 12 a1 60 	or  %o2, 0x160, %o2                            
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( block_size < min_block_size ) {                              
4000885c:	1a 80 00 0a 	bcc  40008884 <_Heap_Walk+0x35c>               
40008860:	80 a4 80 10 	cmp  %l2, %l0                                  
      (*printer)(                                                     
40008864:	15 10 00 70 	sethi  %hi(0x4001c000), %o2                    
40008868:	90 10 00 19 	mov  %i1, %o0                                  
4000886c:	96 10 00 10 	mov  %l0, %o3                                  
40008870:	98 10 00 16 	mov  %l6, %o4                                  
40008874:	9a 10 00 13 	mov  %l3, %o5                                  
40008878:	92 10 20 01 	mov  1, %o1                                    
4000887c:	10 80 00 3b 	b  40008968 <_Heap_Walk+0x440>                 
40008880:	94 12 a1 90 	or  %o2, 0x190, %o2                            
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( next_block_begin <= block_begin ) {                          
40008884:	38 80 00 0b 	bgu,a   400088b0 <_Heap_Walk+0x388>            
40008888:	c2 04 a0 04 	ld  [ %l2 + 4 ], %g1                           
      (*printer)(                                                     
4000888c:	15 10 00 70 	sethi  %hi(0x4001c000), %o2                    
40008890:	90 10 00 19 	mov  %i1, %o0                                  
40008894:	96 10 00 10 	mov  %l0, %o3                                  
40008898:	98 10 00 12 	mov  %l2, %o4                                  
4000889c:	92 10 20 01 	mov  1, %o1                                    
400088a0:	94 12 a1 c0 	or  %o2, 0x1c0, %o2                            
400088a4:	9f c4 40 00 	call  %l1                                      
400088a8:	b0 10 20 00 	clr  %i0                                       
400088ac:	30 80 00 53 	b,a   400089f8 <_Heap_Walk+0x4d0>              
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
400088b0:	80 88 60 01 	btst  1, %g1                                   
400088b4:	32 80 00 46 	bne,a   400089cc <_Heap_Walk+0x4a4>            
400088b8:	a0 10 00 12 	mov  %l2, %l0                                  
  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;                 
400088bc:	fa 04 20 04 	ld  [ %l0 + 4 ], %i5                           
  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)(                                                         
400088c0:	d8 04 20 0c 	ld  [ %l0 + 0xc ], %o4                         
  return &heap->free_list;                                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{                                                                     
  return _Heap_Free_list_head(heap)->next;                            
400088c4:	c2 06 20 08 	ld  [ %i0 + 8 ], %g1                           
    - 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;                
400088c8:	ac 0f 7f fe 	and  %i5, -2, %l6                              
  return &heap->free_list;                                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{                                                                     
  return _Heap_Free_list_head(heap)->next;                            
400088cc:	1b 10 00 70 	sethi  %hi(0x4001c000), %o5                    
400088d0:	80 a3 00 01 	cmp  %o4, %g1                                  
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_last( Heap_Control *heap )
{                                                                     
  return _Heap_Free_list_tail(heap)->prev;                            
400088d4:	c6 06 20 0c 	ld  [ %i0 + 0xc ], %g3                         
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
400088d8:	ae 04 00 16 	add  %l0, %l6, %l7                             
  return &heap->free_list;                                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{                                                                     
  return _Heap_Free_list_head(heap)->next;                            
400088dc:	02 80 00 07 	be  400088f8 <_Heap_Walk+0x3d0>                
400088e0:	9a 13 61 f8 	or  %o5, 0x1f8, %o5                            
    "block 0x%08x: prev 0x%08x%s, next 0x%08x%s\n",                   
    block,                                                            
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first)"                                                    
        : (block->prev == free_list_head ? " (= head)" : ""),         
400088e4:	1b 10 00 70 	sethi  %hi(0x4001c000), %o5                    
400088e8:	80 a3 00 18 	cmp  %o4, %i0                                  
400088ec:	02 80 00 03 	be  400088f8 <_Heap_Walk+0x3d0>                
400088f0:	9a 13 62 10 	or  %o5, 0x210, %o5                            
400088f4:	9a 10 00 1c 	mov  %i4, %o5                                  
  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)(                                                         
400088f8:	c4 04 20 08 	ld  [ %l0 + 8 ], %g2                           
400088fc:	03 10 00 70 	sethi  %hi(0x4001c000), %g1                    
40008900:	80 a0 80 03 	cmp  %g2, %g3                                  
40008904:	02 80 00 07 	be  40008920 <_Heap_Walk+0x3f8>                
40008908:	82 10 62 20 	or  %g1, 0x220, %g1                            
      " (= first)"                                                    
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last)"                                                     
        : (block->next == free_list_tail ? " (= tail)" : "")          
4000890c:	03 10 00 70 	sethi  %hi(0x4001c000), %g1                    
40008910:	80 a0 80 18 	cmp  %g2, %i0                                  
40008914:	02 80 00 03 	be  40008920 <_Heap_Walk+0x3f8>                
40008918:	82 10 62 30 	or  %g1, 0x230, %g1                            
4000891c:	82 10 00 1c 	mov  %i4, %g1                                  
  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)(                                                         
40008920:	c4 23 a0 5c 	st  %g2, [ %sp + 0x5c ]                        
40008924:	c2 23 a0 60 	st  %g1, [ %sp + 0x60 ]                        
40008928:	90 10 00 19 	mov  %i1, %o0                                  
4000892c:	92 10 20 00 	clr  %o1                                       
40008930:	15 10 00 70 	sethi  %hi(0x4001c000), %o2                    
40008934:	96 10 00 10 	mov  %l0, %o3                                  
40008938:	9f c4 40 00 	call  %l1                                      
4000893c:	94 12 a2 40 	or  %o2, 0x240, %o2                            
    block->next == last_free_block ?                                  
      " (= last)"                                                     
        : (block->next == free_list_tail ? " (= tail)" : "")          
  );                                                                  
                                                                      
  if ( block_size != next_block->prev_size ) {                        
40008940:	da 05 c0 00 	ld  [ %l7 ], %o5                               
40008944:	80 a5 80 0d 	cmp  %l6, %o5                                  
40008948:	02 80 00 0b 	be  40008974 <_Heap_Walk+0x44c>                
4000894c:	15 10 00 70 	sethi  %hi(0x4001c000), %o2                    
    (*printer)(                                                       
40008950:	ee 23 a0 5c 	st  %l7, [ %sp + 0x5c ]                        
40008954:	90 10 00 19 	mov  %i1, %o0                                  
40008958:	96 10 00 10 	mov  %l0, %o3                                  
4000895c:	98 10 00 16 	mov  %l6, %o4                                  
40008960:	92 10 20 01 	mov  1, %o1                                    
40008964:	94 12 a2 70 	or  %o2, 0x270, %o2                            
40008968:	9f c4 40 00 	call  %l1                                      
4000896c:	b0 10 20 00 	clr  %i0                                       
40008970:	30 80 00 22 	b,a   400089f8 <_Heap_Walk+0x4d0>              
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !prev_used ) {                                                 
40008974:	80 8f 60 01 	btst  1, %i5                                   
40008978:	32 80 00 0b 	bne,a   400089a4 <_Heap_Walk+0x47c>            
4000897c:	c2 06 20 08 	ld  [ %i0 + 8 ], %g1                           
    (*printer)(                                                       
40008980:	15 10 00 70 	sethi  %hi(0x4001c000), %o2                    
40008984:	90 10 00 19 	mov  %i1, %o0                                  
40008988:	96 10 00 10 	mov  %l0, %o3                                  
4000898c:	92 10 20 01 	mov  1, %o1                                    
40008990:	10 80 00 18 	b  400089f0 <_Heap_Walk+0x4c8>                 
40008994:	94 12 a2 b0 	or  %o2, 0x2b0, %o2                            
{                                                                     
  const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
  const Heap_Block *free_block = _Heap_Free_list_first( heap );       
                                                                      
  while ( free_block != free_list_tail ) {                            
    if ( free_block == block ) {                                      
40008998:	22 80 00 0d 	be,a   400089cc <_Heap_Walk+0x4a4>             
4000899c:	a0 10 00 12 	mov  %l2, %l0                                  
      return true;                                                    
    }                                                                 
    free_block = free_block->next;                                    
400089a0:	c2 00 60 08 	ld  [ %g1 + 8 ], %g1                           
)                                                                     
{                                                                     
  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 ) {                            
400089a4:	80 a0 40 18 	cmp  %g1, %i0                                  
400089a8:	12 bf ff fc 	bne  40008998 <_Heap_Walk+0x470>               
400089ac:	80 a0 40 10 	cmp  %g1, %l0                                  
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {                 
    (*printer)(                                                       
400089b0:	10 80 00 0c 	b  400089e0 <_Heap_Walk+0x4b8>                 
400089b4:	15 10 00 70 	sethi  %hi(0x4001c000), %o2                    
    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;        
                                                                      
    if ( prev_used ) {                                                
      (*printer)(                                                     
400089b8:	35 10 00 70 	sethi  %hi(0x4001c000), %i2                    
      " (= first)"                                                    
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last)"                                                     
        : (block->next == free_list_tail ? " (= tail)" : "")          
400089bc:	39 10 00 70 	sethi  %hi(0x4001c000), %i4                    
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
400089c0:	b6 16 e1 08 	or  %i3, 0x108, %i3                            
    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;        
                                                                      
    if ( prev_used ) {                                                
      (*printer)(                                                     
400089c4:	b4 16 a0 f0 	or  %i2, 0xf0, %i2                             
      " (= first)"                                                    
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last)"                                                     
        : (block->next == free_list_tail ? " (= tail)" : "")          
400089c8:	b8 17 22 08 	or  %i4, 0x208, %i4                            
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
  }                                                                   
                                                                      
  while ( block != last_block ) {                                     
400089cc:	80 a4 00 14 	cmp  %l0, %l4                                  
400089d0:	32 bf ff 73 	bne,a   4000879c <_Heap_Walk+0x274>            
400089d4:	ec 04 20 04 	ld  [ %l0 + 4 ], %l6                           
                                                                      
    block = next_block;                                               
  }                                                                   
                                                                      
  return true;                                                        
}                                                                     
400089d8:	81 c7 e0 08 	ret                                            
400089dc:	91 e8 20 01 	restore  %g0, 1, %o0                           
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {                 
    (*printer)(                                                       
400089e0:	90 10 00 19 	mov  %i1, %o0                                  
400089e4:	96 10 00 10 	mov  %l0, %o3                                  
400089e8:	92 10 20 01 	mov  1, %o1                                    
400089ec:	94 12 a2 e0 	or  %o2, 0x2e0, %o2                            
400089f0:	9f c4 40 00 	call  %l1                                      
400089f4:	b0 10 20 00 	clr  %i0                                       
400089f8:	81 c7 e0 08 	ret                                            
400089fc:	81 e8 00 00 	restore                                        
                                                                      

400077a4 <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) {
400077a4:	9d e3 bf a0 	save  %sp, -96, %sp                            
   *  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 )                                       
400077a8:	c2 06 20 18 	ld  [ %i0 + 0x18 ], %g1                        
 */                                                                   
                                                                      
Objects_Control *_Objects_Allocate(                                   
  Objects_Information *information                                    
)                                                                     
{                                                                     
400077ac:	a0 10 00 18 	mov  %i0, %l0                                  
   *  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 )                                       
400077b0:	80 a0 60 00 	cmp  %g1, 0                                    
400077b4:	02 80 00 20 	be  40007834 <_Objects_Allocate+0x90>          <== NEVER TAKEN
400077b8:	b0 10 20 00 	clr  %i0                                       
                                                                      
  /*                                                                  
   *  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 );
400077bc:	a2 04 20 20 	add  %l0, 0x20, %l1                            
400077c0:	40 00 11 00 	call  4000bbc0 <_Chain_Get>                    
400077c4:	90 10 00 11 	mov  %l1, %o0                                  
                                                                      
  if ( information->auto_extend ) {                                   
400077c8:	c2 0c 20 12 	ldub  [ %l0 + 0x12 ], %g1                      
400077cc:	80 a0 60 00 	cmp  %g1, 0                                    
400077d0:	02 80 00 19 	be  40007834 <_Objects_Allocate+0x90>          
400077d4:	b0 10 00 08 	mov  %o0, %i0                                  
    /*                                                                
     *  If the list is empty then we are out of objects and need to   
     *  extend information base.                                      
     */                                                               
                                                                      
    if ( !the_object ) {                                              
400077d8:	80 a2 20 00 	cmp  %o0, 0                                    
400077dc:	32 80 00 0a 	bne,a   40007804 <_Objects_Allocate+0x60>      
400077e0:	c2 14 20 0a 	lduh  [ %l0 + 0xa ], %g1                       
      _Objects_Extend_information( information );                     
400077e4:	40 00 00 1e 	call  4000785c <_Objects_Extend_information>   
400077e8:	90 10 00 10 	mov  %l0, %o0                                  
      the_object =  (Objects_Control *) _Chain_Get( &information->Inactive );
400077ec:	40 00 10 f5 	call  4000bbc0 <_Chain_Get>                    
400077f0:	90 10 00 11 	mov  %l1, %o0                                  
    }                                                                 
                                                                      
    if ( the_object ) {                                               
400077f4:	b0 92 20 00 	orcc  %o0, 0, %i0                              
400077f8:	02 80 00 0f 	be  40007834 <_Objects_Allocate+0x90>          
400077fc:	01 00 00 00 	nop                                            
      uint32_t   block;                                               
                                                                      
      block = (uint32_t) _Objects_Get_index( the_object->id ) -       
40007800:	c2 14 20 0a 	lduh  [ %l0 + 0xa ], %g1                       
40007804:	d0 16 20 0a 	lduh  [ %i0 + 0xa ], %o0                       
              _Objects_Get_index( information->minimum_id );          
      block /= information->allocation_size;                          
                                                                      
      information->inactive_per_block[ block ]--;                     
40007808:	d2 14 20 14 	lduh  [ %l0 + 0x14 ], %o1                      
4000780c:	40 00 40 02 	call  40017814 <.udiv>                         
40007810:	90 22 00 01 	sub  %o0, %g1, %o0                             
40007814:	c2 04 20 30 	ld  [ %l0 + 0x30 ], %g1                        
40007818:	91 2a 20 02 	sll  %o0, 2, %o0                               
      information->inactive--;                                        
4000781c:	c6 14 20 2c 	lduh  [ %l0 + 0x2c ], %g3                      
                                                                      
      block = (uint32_t) _Objects_Get_index( the_object->id ) -       
              _Objects_Get_index( information->minimum_id );          
      block /= information->allocation_size;                          
                                                                      
      information->inactive_per_block[ block ]--;                     
40007820:	c4 00 40 08 	ld  [ %g1 + %o0 ], %g2                         
      information->inactive--;                                        
40007824:	86 00 ff ff 	add  %g3, -1, %g3                              
                                                                      
      block = (uint32_t) _Objects_Get_index( the_object->id ) -       
              _Objects_Get_index( information->minimum_id );          
      block /= information->allocation_size;                          
                                                                      
      information->inactive_per_block[ block ]--;                     
40007828:	84 00 bf ff 	add  %g2, -1, %g2                              
      information->inactive--;                                        
4000782c:	c6 34 20 2c 	sth  %g3, [ %l0 + 0x2c ]                       
                                                                      
      block = (uint32_t) _Objects_Get_index( the_object->id ) -       
              _Objects_Get_index( information->minimum_id );          
      block /= information->allocation_size;                          
                                                                      
      information->inactive_per_block[ block ]--;                     
40007830:	c4 20 40 08 	st  %g2, [ %g1 + %o0 ]                         
      information->inactive--;                                        
    }                                                                 
  }                                                                   
                                                                      
  return the_object;                                                  
}                                                                     
40007834:	81 c7 e0 08 	ret                                            
40007838:	81 e8 00 00 	restore                                        
                                                                      

4000785c <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) {
4000785c:	9d e3 bf 90 	save  %sp, -112, %sp                           
  minimum_index = _Objects_Get_index( information->minimum_id );      
  index_base    = minimum_index;                                      
  block         = 0;                                                  
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
40007860:	e4 06 20 34 	ld  [ %i0 + 0x34 ], %l2                        
40007864:	80 a4 a0 00 	cmp  %l2, 0                                    
40007868:	12 80 00 06 	bne  40007880 <_Objects_Extend_information+0x24>
4000786c:	e6 16 20 0a 	lduh  [ %i0 + 0xa ], %l3                       
40007870:	a0 10 00 13 	mov  %l3, %l0                                  
40007874:	a8 10 20 00 	clr  %l4                                       
40007878:	10 80 00 15 	b  400078cc <_Objects_Extend_information+0x70> 
4000787c:	a2 10 20 00 	clr  %l1                                       
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
40007880:	e2 16 20 14 	lduh  [ %i0 + 0x14 ], %l1                      
40007884:	d0 16 20 10 	lduh  [ %i0 + 0x10 ], %o0                      
40007888:	40 00 3f e3 	call  40017814 <.udiv>                         
4000788c:	92 10 00 11 	mov  %l1, %o1                                  
                                                                      
    for ( ; block < block_count; block++ ) {                          
      if ( information->object_blocks[ block ] == NULL )              
40007890:	82 10 00 11 	mov  %l1, %g1                                  
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
40007894:	91 2a 20 10 	sll  %o0, 0x10, %o0                            
40007898:	a0 10 00 13 	mov  %l3, %l0                                  
4000789c:	a9 32 20 10 	srl  %o0, 0x10, %l4                            
                                                                      
    for ( ; block < block_count; block++ ) {                          
400078a0:	10 80 00 08 	b  400078c0 <_Objects_Extend_information+0x64> 
400078a4:	a2 10 20 00 	clr  %l1                                       
      if ( information->object_blocks[ block ] == NULL )              
400078a8:	c4 04 80 02 	ld  [ %l2 + %g2 ], %g2                         
400078ac:	80 a0 a0 00 	cmp  %g2, 0                                    
400078b0:	22 80 00 08 	be,a   400078d0 <_Objects_Extend_information+0x74>
400078b4:	d0 16 20 14 	lduh  [ %i0 + 0x14 ], %o0                      
400078b8:	a0 04 00 01 	add  %l0, %g1, %l0                             
  if ( information->object_blocks == NULL )                           
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
                                                                      
    for ( ; block < block_count; block++ ) {                          
400078bc:	a2 04 60 01 	inc  %l1                                       
400078c0:	80 a4 40 14 	cmp  %l1, %l4                                  
400078c4:	0a bf ff f9 	bcs  400078a8 <_Objects_Extend_information+0x4c>
400078c8:	85 2c 60 02 	sll  %l1, 2, %g2                               
      else                                                            
        index_base += information->allocation_size;                   
    }                                                                 
  }                                                                   
                                                                      
  maximum = (uint32_t) information->maximum + information->allocation_size;
400078cc:	d0 16 20 14 	lduh  [ %i0 + 0x14 ], %o0                      
400078d0:	ec 16 20 10 	lduh  [ %i0 + 0x10 ], %l6                      
  /*                                                                  
   *  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 ) {                           
400078d4:	03 00 00 3f 	sethi  %hi(0xfc00), %g1                        
      else                                                            
        index_base += information->allocation_size;                   
    }                                                                 
  }                                                                   
                                                                      
  maximum = (uint32_t) information->maximum + information->allocation_size;
400078d8:	ac 02 00 16 	add  %o0, %l6, %l6                             
  /*                                                                  
   *  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 ) {                           
400078dc:	82 10 63 ff 	or  %g1, 0x3ff, %g1                            
400078e0:	80 a5 80 01 	cmp  %l6, %g1                                  
400078e4:	18 80 00 88 	bgu  40007b04 <_Objects_Extend_information+0x2a8><== NEVER TAKEN
400078e8:	01 00 00 00 	nop                                            
                                                                      
  /*                                                                  
   * 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;      
400078ec:	40 00 3f 90 	call  4001772c <.umul>                         
400078f0:	d2 06 20 18 	ld  [ %i0 + 0x18 ], %o1                        
  if ( information->auto_extend ) {                                   
400078f4:	c2 0e 20 12 	ldub  [ %i0 + 0x12 ], %g1                      
400078f8:	80 a0 60 00 	cmp  %g1, 0                                    
400078fc:	02 80 00 09 	be  40007920 <_Objects_Extend_information+0xc4>
40007900:	01 00 00 00 	nop                                            
    new_object_block = _Workspace_Allocate( block_size );             
40007904:	40 00 08 21 	call  40009988 <_Workspace_Allocate>           
40007908:	01 00 00 00 	nop                                            
    if ( !new_object_block )                                          
4000790c:	a4 92 20 00 	orcc  %o0, 0, %l2                              
40007910:	32 80 00 08 	bne,a   40007930 <_Objects_Extend_information+0xd4>
40007914:	c2 16 20 10 	lduh  [ %i0 + 0x10 ], %g1                      
40007918:	81 c7 e0 08 	ret                                            
4000791c:	81 e8 00 00 	restore                                        
      return;                                                         
  } else {                                                            
    new_object_block = _Workspace_Allocate_or_fatal_error( block_size );
40007920:	40 00 08 0c 	call  40009950 <_Workspace_Allocate_or_fatal_error>
40007924:	01 00 00 00 	nop                                            
40007928:	a4 10 00 08 	mov  %o0, %l2                                  
  }                                                                   
                                                                      
  /*                                                                  
   *  If the index_base is the maximum we need to grow the tables.    
   */                                                                 
  if (index_base >= information->maximum ) {                          
4000792c:	c2 16 20 10 	lduh  [ %i0 + 0x10 ], %g1                      
40007930:	80 a4 00 01 	cmp  %l0, %g1                                  
40007934:	2a 80 00 53 	bcs,a   40007a80 <_Objects_Extend_information+0x224>
40007938:	c2 06 20 34 	ld  [ %i0 + 0x34 ], %g1                        
     *  Allocate the tables and break it up.                          
     */                                                               
    block_size = block_count *                                        
           (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
          ((maximum + minimum_index) * sizeof(Objects_Control *));    
    object_blocks = (void**) _Workspace_Allocate( block_size );       
4000793c:	82 05 80 13 	add  %l6, %l3, %g1                             
     */                                                               
                                                                      
    /*                                                                
     *  Up the block count and maximum                                
     */                                                               
    block_count++;                                                    
40007940:	ae 05 20 01 	add  %l4, 1, %l7                               
     *  Allocate the tables and break it up.                          
     */                                                               
    block_size = block_count *                                        
           (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
          ((maximum + minimum_index) * sizeof(Objects_Control *));    
    object_blocks = (void**) _Workspace_Allocate( block_size );       
40007944:	91 2d e0 01 	sll  %l7, 1, %o0                               
40007948:	90 02 00 17 	add  %o0, %l7, %o0                             
4000794c:	90 00 40 08 	add  %g1, %o0, %o0                             
40007950:	40 00 08 0e 	call  40009988 <_Workspace_Allocate>           
40007954:	91 2a 20 02 	sll  %o0, 2, %o0                               
                                                                      
    if ( !object_blocks ) {                                           
40007958:	aa 92 20 00 	orcc  %o0, 0, %l5                              
4000795c:	32 80 00 06 	bne,a   40007974 <_Objects_Extend_information+0x118>
40007960:	c2 16 20 10 	lduh  [ %i0 + 0x10 ], %g1                      
      _Workspace_Free( new_object_block );                            
40007964:	40 00 08 12 	call  400099ac <_Workspace_Free>               
40007968:	90 10 00 12 	mov  %l2, %o0                                  
      return;                                                         
4000796c:	81 c7 e0 08 	ret                                            
40007970:	81 e8 00 00 	restore                                        
    }                                                                 
                                                                      
    /*                                                                
     *  Break the block into the various sections.                    
     */                                                               
    inactive_per_block = (uint32_t *) _Addresses_Add_offset(          
40007974:	af 2d e0 02 	sll  %l7, 2, %l7                               
     *  Take the block count down. Saves all the (block_count - 1)    
     *  in the copies.                                                
     */                                                               
    block_count--;                                                    
                                                                      
    if ( information->maximum > minimum_index ) {                     
40007978:	80 a0 40 13 	cmp  %g1, %l3                                  
RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset (                    
  const void *base,                                                   
  uintptr_t   offset                                                  
)                                                                     
{                                                                     
  return (void *)((uintptr_t)base + offset);                          
4000797c:	ba 05 40 17 	add  %l5, %l7, %i5                             
40007980:	82 10 20 00 	clr  %g1                                       
40007984:	08 80 00 14 	bleu  400079d4 <_Objects_Extend_information+0x178>
40007988:	ae 07 40 17 	add  %i5, %l7, %l7                             
      /*                                                              
       *  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,                                          
4000798c:	d2 06 20 34 	ld  [ %i0 + 0x34 ], %o1                        
              information->object_blocks,                             
              block_count * sizeof(void*) );                          
40007990:	b9 2d 20 02 	sll  %l4, 2, %i4                               
      /*                                                              
       *  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,                                          
40007994:	40 00 1c 44 	call  4000eaa4 <memcpy>                        
40007998:	94 10 00 1c 	mov  %i4, %o2                                  
              information->object_blocks,                             
              block_count * sizeof(void*) );                          
      memcpy( inactive_per_block,                                     
4000799c:	d2 06 20 30 	ld  [ %i0 + 0x30 ], %o1                        
400079a0:	94 10 00 1c 	mov  %i4, %o2                                  
400079a4:	40 00 1c 40 	call  4000eaa4 <memcpy>                        
400079a8:	90 10 00 1d 	mov  %i5, %o0                                  
              information->inactive_per_block,                        
              block_count * sizeof(uint32_t) );                       
      memcpy( local_table,                                            
400079ac:	c2 16 20 10 	lduh  [ %i0 + 0x10 ], %g1                      
400079b0:	d2 06 20 1c 	ld  [ %i0 + 0x1c ], %o1                        
400079b4:	a6 04 c0 01 	add  %l3, %g1, %l3                             
400079b8:	90 10 00 17 	mov  %l7, %o0                                  
400079bc:	40 00 1c 3a 	call  4000eaa4 <memcpy>                        
400079c0:	95 2c e0 02 	sll  %l3, 2, %o2                               
     */                                                               
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
400079c4:	10 80 00 08 	b  400079e4 <_Objects_Extend_information+0x188>
400079c8:	c6 16 20 14 	lduh  [ %i0 + 0x14 ], %g3                      
    } else {                                                          
                                                                      
      /*                                                              
       *  Deal with the special case of the 0 to minimum_index        
       */                                                             
      for ( index = 0; index < minimum_index; index++ ) {             
400079cc:	82 00 60 01 	inc  %g1                                       
        local_table[ index ] = NULL;                                  
400079d0:	c0 20 80 17 	clr  [ %g2 + %l7 ]                             
    } else {                                                          
                                                                      
      /*                                                              
       *  Deal with the special case of the 0 to minimum_index        
       */                                                             
      for ( index = 0; index < minimum_index; index++ ) {             
400079d4:	80 a0 40 13 	cmp  %g1, %l3                                  
400079d8:	2a bf ff fd 	bcs,a   400079cc <_Objects_Extend_information+0x170>
400079dc:	85 28 60 02 	sll  %g1, 2, %g2                               
     */                                                               
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
400079e0:	c6 16 20 14 	lduh  [ %i0 + 0x14 ], %g3                      
    }                                                                 
                                                                      
    /*                                                                
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
400079e4:	a9 2d 20 02 	sll  %l4, 2, %l4                               
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
400079e8:	85 2c 20 02 	sll  %l0, 2, %g2                               
                                                                      
    /*                                                                
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
400079ec:	c0 27 40 14 	clr  [ %i5 + %l4 ]                             
    }                                                                 
                                                                      
    /*                                                                
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
400079f0:	c0 25 40 14 	clr  [ %l5 + %l4 ]                             
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
400079f4:	86 04 00 03 	add  %l0, %g3, %g3                             
400079f8:	84 05 c0 02 	add  %l7, %g2, %g2                             
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
400079fc:	10 80 00 04 	b  40007a0c <_Objects_Extend_information+0x1b0>
40007a00:	82 10 00 10 	mov  %l0, %g1                                  
          index < ( information->allocation_size + index_base );      
          index++ ) {                                                 
40007a04:	82 00 60 01 	inc  %g1                                       
40007a08:	84 00 a0 04 	add  %g2, 4, %g2                               
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
40007a0c:	80 a0 40 03 	cmp  %g1, %g3                                  
40007a10:	2a bf ff fd 	bcs,a   40007a04 <_Objects_Extend_information+0x1a8>
40007a14:	c0 20 80 00 	clr  [ %g2 ]                                   
          index < ( information->allocation_size + index_base );      
          index++ ) {                                                 
      local_table[ index ] = NULL;                                    
    }                                                                 
                                                                      
    _ISR_Disable( level );                                            
40007a18:	7f ff e8 cd 	call  40001d4c <sparc_disable_interrupts>      
40007a1c:	01 00 00 00 	nop                                            
                                                                      
    information->object_blocks = object_blocks;                       
    information->inactive_per_block = inactive_per_block;             
    information->local_table = local_table;                           
    information->maximum = (Objects_Maximum) maximum;                 
    information->maximum_id = _Objects_Build_id(                      
40007a20:	c8 06 00 00 	ld  [ %i0 ], %g4                               
40007a24:	c4 16 20 04 	lduh  [ %i0 + 4 ], %g2                         
    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;                 
40007a28:	ec 36 20 10 	sth  %l6, [ %i0 + 0x10 ]                       
    information->maximum_id = _Objects_Build_id(                      
40007a2c:	ad 2d a0 10 	sll  %l6, 0x10, %l6                            
      local_table[ index ] = NULL;                                    
    }                                                                 
                                                                      
    _ISR_Disable( level );                                            
                                                                      
    old_tables = information->object_blocks;                          
40007a30:	e6 06 20 34 	ld  [ %i0 + 0x34 ], %l3                        
                                                                      
    information->object_blocks = object_blocks;                       
    information->inactive_per_block = inactive_per_block;             
    information->local_table = local_table;                           
    information->maximum = (Objects_Maximum) maximum;                 
    information->maximum_id = _Objects_Build_id(                      
40007a34:	83 35 a0 10 	srl  %l6, 0x10, %g1                            
    _ISR_Disable( level );                                            
                                                                      
    old_tables = information->object_blocks;                          
                                                                      
    information->object_blocks = object_blocks;                       
    information->inactive_per_block = inactive_per_block;             
40007a38:	fa 26 20 30 	st  %i5, [ %i0 + 0x30 ]                        
    information->local_table = local_table;                           
40007a3c:	ee 26 20 1c 	st  %l7, [ %i0 + 0x1c ]                        
    information->maximum = (Objects_Maximum) maximum;                 
    information->maximum_id = _Objects_Build_id(                      
40007a40:	89 29 20 18 	sll  %g4, 0x18, %g4                            
40007a44:	85 28 a0 1b 	sll  %g2, 0x1b, %g2                            
                                                                      
    _ISR_Disable( level );                                            
                                                                      
    old_tables = information->object_blocks;                          
                                                                      
    information->object_blocks = object_blocks;                       
40007a48:	ea 26 20 34 	st  %l5, [ %i0 + 0x34 ]                        
    information->inactive_per_block = inactive_per_block;             
    information->local_table = local_table;                           
    information->maximum = (Objects_Maximum) maximum;                 
    information->maximum_id = _Objects_Build_id(                      
40007a4c:	07 00 00 40 	sethi  %hi(0x10000), %g3                       
40007a50:	ac 11 00 03 	or  %g4, %g3, %l6                              
40007a54:	ac 15 80 02 	or  %l6, %g2, %l6                              
40007a58:	ac 15 80 01 	or  %l6, %g1, %l6                              
40007a5c:	ec 26 20 0c 	st  %l6, [ %i0 + 0xc ]                         
        information->the_class,                                       
        _Objects_Local_node,                                          
        information->maximum                                          
      );                                                              
                                                                      
    _ISR_Enable( level );                                             
40007a60:	7f ff e8 bf 	call  40001d5c <sparc_enable_interrupts>       
40007a64:	01 00 00 00 	nop                                            
                                                                      
    if ( old_tables )                                                 
40007a68:	80 a4 e0 00 	cmp  %l3, 0                                    
40007a6c:	22 80 00 05 	be,a   40007a80 <_Objects_Extend_information+0x224>
40007a70:	c2 06 20 34 	ld  [ %i0 + 0x34 ], %g1                        
      _Workspace_Free( old_tables );                                  
40007a74:	40 00 07 ce 	call  400099ac <_Workspace_Free>               
40007a78:	90 10 00 13 	mov  %l3, %o0                                  
  }                                                                   
                                                                      
  /*                                                                  
   *  Assign the new object block to the object block table.          
   */                                                                 
  information->object_blocks[ block ] = new_object_block;             
40007a7c:	c2 06 20 34 	ld  [ %i0 + 0x34 ], %g1                        
                                                                      
  /*                                                                  
   *  Initialize objects .. add to a local chain first.               
   */                                                                 
  _Chain_Initialize(                                                  
40007a80:	d4 16 20 14 	lduh  [ %i0 + 0x14 ], %o2                      
40007a84:	d6 06 20 18 	ld  [ %i0 + 0x18 ], %o3                        
40007a88:	92 10 00 12 	mov  %l2, %o1                                  
40007a8c:	90 07 bf f4 	add  %fp, -12, %o0                             
  }                                                                   
                                                                      
  /*                                                                  
   *  Assign the new object block to the object block table.          
   */                                                                 
  information->object_blocks[ block ] = new_object_block;             
40007a90:	a3 2c 60 02 	sll  %l1, 2, %l1                               
        information->the_class,                                       
        _Objects_Local_node,                                          
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
40007a94:	a8 06 20 20 	add  %i0, 0x20, %l4                            
  }                                                                   
                                                                      
  /*                                                                  
   *  Assign the new object block to the object block table.          
   */                                                                 
  information->object_blocks[ block ] = new_object_block;             
40007a98:	e4 20 40 11 	st  %l2, [ %g1 + %l1 ]                         
   */                                                                 
  index = index_base;                                                 
                                                                      
  while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
                                                                      
    the_object->id = _Objects_Build_id(                               
40007a9c:	27 00 00 40 	sethi  %hi(0x10000), %l3                       
  information->object_blocks[ block ] = new_object_block;             
                                                                      
  /*                                                                  
   *  Initialize objects .. add to a local chain first.               
   */                                                                 
  _Chain_Initialize(                                                  
40007aa0:	40 00 10 58 	call  4000bc00 <_Chain_Initialize>             
40007aa4:	a4 10 00 08 	mov  %o0, %l2                                  
  /*                                                                  
   *  Move from the local chain, initialise, then append to the inactive chain
   */                                                                 
  index = index_base;                                                 
                                                                      
  while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
40007aa8:	30 80 00 0c 	b,a   40007ad8 <_Objects_Extend_information+0x27c>
                                                                      
    the_object->id = _Objects_Build_id(                               
40007aac:	c4 16 20 04 	lduh  [ %i0 + 4 ], %g2                         
40007ab0:	83 28 60 18 	sll  %g1, 0x18, %g1                            
40007ab4:	85 28 a0 1b 	sll  %g2, 0x1b, %g2                            
40007ab8:	82 10 40 13 	or  %g1, %l3, %g1                              
40007abc:	82 10 40 02 	or  %g1, %g2, %g1                              
40007ac0:	82 10 40 10 	or  %g1, %l0, %g1                              
        information->the_class,                                       
        _Objects_Local_node,                                          
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
40007ac4:	92 10 00 08 	mov  %o0, %o1                                  
   */                                                                 
  index = index_base;                                                 
                                                                      
  while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
                                                                      
    the_object->id = _Objects_Build_id(                               
40007ac8:	c2 22 20 08 	st  %g1, [ %o0 + 8 ]                           
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
                                                                      
    index++;                                                          
40007acc:	a0 04 20 01 	inc  %l0                                       
        information->the_class,                                       
        _Objects_Local_node,                                          
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
40007ad0:	7f ff fc ee 	call  40006e88 <_Chain_Append>                 
40007ad4:	90 10 00 14 	mov  %l4, %o0                                  
  /*                                                                  
   *  Move from the local chain, initialise, then append to the inactive chain
   */                                                                 
  index = index_base;                                                 
                                                                      
  while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
40007ad8:	40 00 10 3a 	call  4000bbc0 <_Chain_Get>                    
40007adc:	90 10 00 12 	mov  %l2, %o0                                  
40007ae0:	80 a2 20 00 	cmp  %o0, 0                                    
40007ae4:	32 bf ff f2 	bne,a   40007aac <_Objects_Extend_information+0x250>
40007ae8:	c2 06 00 00 	ld  [ %i0 ], %g1                               
                                                                      
    index++;                                                          
  }                                                                   
                                                                      
  information->inactive_per_block[ block ] = information->allocation_size;
  information->inactive =                                             
40007aec:	c2 16 20 2c 	lduh  [ %i0 + 0x2c ], %g1                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
                                                                      
    index++;                                                          
  }                                                                   
                                                                      
  information->inactive_per_block[ block ] = information->allocation_size;
40007af0:	c8 16 20 14 	lduh  [ %i0 + 0x14 ], %g4                      
40007af4:	c4 06 20 30 	ld  [ %i0 + 0x30 ], %g2                        
  information->inactive =                                             
40007af8:	82 01 00 01 	add  %g4, %g1, %g1                             
    _Chain_Append( &information->Inactive, &the_object->Node );       
                                                                      
    index++;                                                          
  }                                                                   
                                                                      
  information->inactive_per_block[ block ] = information->allocation_size;
40007afc:	c8 20 80 11 	st  %g4, [ %g2 + %l1 ]                         
  information->inactive =                                             
40007b00:	c2 36 20 2c 	sth  %g1, [ %i0 + 0x2c ]                       
40007b04:	81 c7 e0 08 	ret                                            
40007b08:	81 e8 00 00 	restore                                        
                                                                      

40007bb4 <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint32_t the_class ) {
40007bb4:	9d e3 bf a0 	save  %sp, -96, %sp                            
  Objects_Information *info;                                          
  int the_class_api_maximum;                                          
                                                                      
  if ( !the_class )                                                   
40007bb8:	80 a6 60 00 	cmp  %i1, 0                                    
40007bbc:	22 80 00 1a 	be,a   40007c24 <_Objects_Get_information+0x70>
40007bc0:	b0 10 20 00 	clr  %i0                                       
                                                                      
  /*                                                                  
   *  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 );      
40007bc4:	40 00 11 95 	call  4000c218 <_Objects_API_maximum_class>    
40007bc8:	90 10 00 18 	mov  %i0, %o0                                  
  if ( the_class_api_maximum == 0 )                                   
40007bcc:	80 a2 20 00 	cmp  %o0, 0                                    
40007bd0:	22 80 00 15 	be,a   40007c24 <_Objects_Get_information+0x70>
40007bd4:	b0 10 20 00 	clr  %i0                                       
    return NULL;                                                      
                                                                      
  if ( the_class > (uint32_t) the_class_api_maximum )                 
40007bd8:	80 a6 40 08 	cmp  %i1, %o0                                  
40007bdc:	38 80 00 12 	bgu,a   40007c24 <_Objects_Get_information+0x70>
40007be0:	b0 10 20 00 	clr  %i0                                       
    return NULL;                                                      
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
40007be4:	b1 2e 20 02 	sll  %i0, 2, %i0                               
40007be8:	03 10 00 70 	sethi  %hi(0x4001c000), %g1                    
40007bec:	82 10 63 70 	or  %g1, 0x370, %g1	! 4001c370 <_Objects_Information_table>
40007bf0:	c2 00 40 18 	ld  [ %g1 + %i0 ], %g1                         
40007bf4:	80 a0 60 00 	cmp  %g1, 0                                    
40007bf8:	02 80 00 0b 	be  40007c24 <_Objects_Get_information+0x70>   <== NEVER TAKEN
40007bfc:	b0 10 20 00 	clr  %i0                                       
    return NULL;                                                      
                                                                      
  info = _Objects_Information_table[ the_api ][ the_class ];          
40007c00:	b3 2e 60 02 	sll  %i1, 2, %i1                               
40007c04:	f0 00 40 19 	ld  [ %g1 + %i1 ], %i0                         
  if ( !info )                                                        
40007c08:	80 a6 20 00 	cmp  %i0, 0                                    
40007c0c:	02 80 00 06 	be  40007c24 <_Objects_Get_information+0x70>   <== NEVER TAKEN
40007c10:	01 00 00 00 	nop                                            
   *  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 )                                         
40007c14:	c2 16 20 10 	lduh  [ %i0 + 0x10 ], %g1                      
40007c18:	80 a0 60 00 	cmp  %g1, 0                                    
40007c1c:	22 80 00 02 	be,a   40007c24 <_Objects_Get_information+0x70>
40007c20:	b0 10 20 00 	clr  %i0                                       
      return NULL;                                                    
  #endif                                                              
                                                                      
  return info;                                                        
}                                                                     
40007c24:	81 c7 e0 08 	ret                                            
40007c28:	81 e8 00 00 	restore                                        
                                                                      

40018490 <_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;
40018490:	c4 02 20 08 	ld  [ %o0 + 8 ], %g2                           
                                                                      
  if ( information->maximum >= index ) {                              
40018494:	c2 12 20 10 	lduh  [ %o0 + 0x10 ], %g1                      
                                                                      
  /*                                                                  
   * 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;                           
40018498:	84 22 40 02 	sub  %o1, %g2, %g2                             
4001849c:	84 00 a0 01 	inc  %g2                                       
                                                                      
  if ( information->maximum >= index ) {                              
400184a0:	80 a0 40 02 	cmp  %g1, %g2                                  
400184a4:	0a 80 00 09 	bcs  400184c8 <_Objects_Get_no_protection+0x38>
400184a8:	85 28 a0 02 	sll  %g2, 2, %g2                               
    if ( (the_object = information->local_table[ index ]) != NULL ) { 
400184ac:	c2 02 20 1c 	ld  [ %o0 + 0x1c ], %g1                        
400184b0:	d0 00 40 02 	ld  [ %g1 + %g2 ], %o0                         
400184b4:	80 a2 20 00 	cmp  %o0, 0                                    
400184b8:	02 80 00 05 	be  400184cc <_Objects_Get_no_protection+0x3c> <== NEVER TAKEN
400184bc:	82 10 20 01 	mov  1, %g1                                    
      *location = OBJECTS_LOCAL;                                      
      return the_object;                                              
400184c0:	81 c3 e0 08 	retl                                           
400184c4:	c0 22 80 00 	clr  [ %o2 ]                                   
                                                                      
  /*                                                                  
   *  This isn't supported or required yet for Global objects so      
   *  if it isn't local, we don't find it.                            
   */                                                                 
  *location = OBJECTS_ERROR;                                          
400184c8:	82 10 20 01 	mov  1, %g1                                    
400184cc:	90 10 20 00 	clr  %o0                                       
  return NULL;                                                        
}                                                                     
400184d0:	81 c3 e0 08 	retl                                           
400184d4:	c2 22 80 00 	st  %g1, [ %o2 ]                               
                                                                      

40009328 <_Objects_Id_to_name>: */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) {
40009328:	9d e3 bf 98 	save  %sp, -104, %sp                           
                                                                      
  /*                                                                  
   *  Caller is trusted for name != NULL.                             
   */                                                                 
                                                                      
  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
4000932c:	92 96 20 00 	orcc  %i0, 0, %o1                              
40009330:	12 80 00 06 	bne  40009348 <_Objects_Id_to_name+0x20>       
40009334:	83 32 60 18 	srl  %o1, 0x18, %g1                            
40009338:	03 10 00 87 	sethi  %hi(0x40021c00), %g1                    
4000933c:	c2 00 61 4c 	ld  [ %g1 + 0x14c ], %g1	! 40021d4c <_Thread_Executing>
40009340:	d2 00 60 08 	ld  [ %g1 + 8 ], %o1                           
 */                                                                   
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(                   
  Objects_Id id                                                       
)                                                                     
{                                                                     
  return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
40009344:	83 32 60 18 	srl  %o1, 0x18, %g1                            
40009348:	82 08 60 07 	and  %g1, 7, %g1                               
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(                      
  uint32_t   the_api                                                  
)                                                                     
{                                                                     
  if ( !the_api || the_api > OBJECTS_APIS_LAST )                      
4000934c:	84 00 7f ff 	add  %g1, -1, %g2                              
40009350:	80 a0 a0 03 	cmp  %g2, 3                                    
40009354:	18 80 00 14 	bgu  400093a4 <_Objects_Id_to_name+0x7c>       
40009358:	83 28 60 02 	sll  %g1, 2, %g1                               
                                                                      
  the_api = _Objects_Get_API( tmpId );                                
  if ( !_Objects_Is_api_valid( the_api ) )                            
    return OBJECTS_INVALID_ID;                                        
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
4000935c:	10 80 00 14 	b  400093ac <_Objects_Id_to_name+0x84>         
40009360:	05 10 00 86 	sethi  %hi(0x40021800), %g2                    
    return OBJECTS_INVALID_ID;                                        
                                                                      
  the_class = _Objects_Get_class( tmpId );                            
                                                                      
  information = _Objects_Information_table[ the_api ][ the_class ];   
40009364:	85 28 a0 02 	sll  %g2, 2, %g2                               
40009368:	d0 00 40 02 	ld  [ %g1 + %g2 ], %o0                         
  if ( !information )                                                 
4000936c:	80 a2 20 00 	cmp  %o0, 0                                    
40009370:	02 80 00 0d 	be  400093a4 <_Objects_Id_to_name+0x7c>        <== NEVER TAKEN
40009374:	01 00 00 00 	nop                                            
  #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 ); 
40009378:	7f ff ff cf 	call  400092b4 <_Objects_Get>                  
4000937c:	94 07 bf fc 	add  %fp, -4, %o2                              
  if ( !the_object )                                                  
40009380:	80 a2 20 00 	cmp  %o0, 0                                    
40009384:	02 80 00 08 	be  400093a4 <_Objects_Id_to_name+0x7c>        
40009388:	01 00 00 00 	nop                                            
    return OBJECTS_INVALID_ID;                                        
                                                                      
  *name = the_object->name;                                           
4000938c:	c2 02 20 0c 	ld  [ %o0 + 0xc ], %g1                         
  _Thread_Enable_dispatch();                                          
40009390:	b0 10 20 00 	clr  %i0                                       
40009394:	40 00 02 30 	call  40009c54 <_Thread_Enable_dispatch>       
40009398:	c2 26 40 00 	st  %g1, [ %i1 ]                               
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
4000939c:	81 c7 e0 08 	ret                                            
400093a0:	81 e8 00 00 	restore                                        
}                                                                     
400093a4:	81 c7 e0 08 	ret                                            
400093a8:	91 e8 20 03 	restore  %g0, 3, %o0                           
                                                                      
  the_api = _Objects_Get_API( tmpId );                                
  if ( !_Objects_Is_api_valid( the_api ) )                            
    return OBJECTS_INVALID_ID;                                        
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
400093ac:	84 10 a3 f0 	or  %g2, 0x3f0, %g2                            
400093b0:	c2 00 80 01 	ld  [ %g2 + %g1 ], %g1                         
400093b4:	80 a0 60 00 	cmp  %g1, 0                                    
400093b8:	12 bf ff eb 	bne  40009364 <_Objects_Id_to_name+0x3c>       
400093bc:	85 32 60 1b 	srl  %o1, 0x1b, %g2                            
400093c0:	30 bf ff f9 	b,a   400093a4 <_Objects_Id_to_name+0x7c>      
                                                                      

40007d14 <_Objects_Initialize_information>: , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) {
40007d14:	9d e3 bf a0 	save  %sp, -96, %sp                            
  information->maximum = 0;                                           
                                                                      
  /*                                                                  
   *  Register this Object Class in the Object Information Table.     
   */                                                                 
  _Objects_Information_table[ the_api ][ the_class ] = information;   
40007d18:	05 10 00 70 	sethi  %hi(0x4001c000), %g2                    
40007d1c:	83 2e 60 02 	sll  %i1, 2, %g1                               
40007d20:	84 10 a3 70 	or  %g2, 0x370, %g2                            
40007d24:	c2 00 80 01 	ld  [ %g2 + %g1 ], %g1                         
    uint32_t              index;                                      
  #endif                                                              
                                                                      
  information->the_api            = the_api;                          
  information->the_class          = the_class;                        
  information->size               = size;                             
40007d28:	85 2f 20 10 	sll  %i4, 0x10, %g2                            
40007d2c:	85 30 a0 10 	srl  %g2, 0x10, %g2                            
  information->maximum = 0;                                           
                                                                      
  /*                                                                  
   *  Register this Object Class in the Object Information Table.     
   */                                                                 
  _Objects_Information_table[ the_api ][ the_class ] = information;   
40007d30:	87 2e a0 02 	sll  %i2, 2, %g3                               
    uint32_t              index;                                      
  #endif                                                              
                                                                      
  information->the_api            = the_api;                          
  information->the_class          = the_class;                        
  information->size               = size;                             
40007d34:	c4 26 20 18 	st  %g2, [ %i0 + 0x18 ]                        
  information->maximum = 0;                                           
                                                                      
  /*                                                                  
   *  Register this Object Class in the Object Information Table.     
   */                                                                 
  _Objects_Information_table[ the_api ][ the_class ] = information;   
40007d38:	f0 20 40 03 	st  %i0, [ %g1 + %g3 ]                         
                                                                      
  /*                                                                  
   *  Are we operating in limited or unlimited (e.g. auto-extend) mode.
   */                                                                 
  information->auto_extend =                                          
        (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;         
40007d3c:	85 36 e0 1f 	srl  %i3, 0x1f, %g2                            
  maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS;      
40007d40:	03 20 00 00 	sethi  %hi(0x80000000), %g1                    
  uint32_t                maximum_per_allocation;                     
  #if defined(RTEMS_MULTIPROCESSING)                                  
    uint32_t              index;                                      
  #endif                                                              
                                                                      
  information->the_api            = the_api;                          
40007d44:	f2 26 00 00 	st  %i1, [ %i0 ]                               
  information->the_class          = the_class;                        
40007d48:	f4 36 20 04 	sth  %i2, [ %i0 + 4 ]                          
  information->size               = size;                             
  information->local_table        = 0;                                
40007d4c:	c0 26 20 1c 	clr  [ %i0 + 0x1c ]                            
  information->inactive_per_block = 0;                                
40007d50:	c0 26 20 30 	clr  [ %i0 + 0x30 ]                            
  information->object_blocks      = 0;                                
40007d54:	c0 26 20 34 	clr  [ %i0 + 0x34 ]                            
  information->inactive           = 0;                                
40007d58:	c0 36 20 2c 	clrh  [ %i0 + 0x2c ]                           
                                                                      
  /*                                                                  
   *  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;                                           
40007d5c:	c0 36 20 10 	clrh  [ %i0 + 0x10 ]                           
  _Objects_Information_table[ the_api ][ the_class ] = information;   
                                                                      
  /*                                                                  
   *  Are we operating in limited or unlimited (e.g. auto-extend) mode.
   */                                                                 
  information->auto_extend =                                          
40007d60:	c4 2e 20 12 	stb  %g2, [ %i0 + 0x12 ]                       
        (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;         
  maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS;      
40007d64:	b6 2e c0 01 	andn  %i3, %g1, %i3                            
                                                                      
  /*                                                                  
   *  Unlimited and maximum of zero is illogical.                     
   */                                                                 
  if ( information->auto_extend && maximum_per_allocation == 0) {     
40007d68:	80 a0 a0 00 	cmp  %g2, 0                                    
40007d6c:	02 80 00 09 	be  40007d90 <_Objects_Initialize_information+0x7c>
40007d70:	c2 07 a0 5c 	ld  [ %fp + 0x5c ], %g1                        
40007d74:	80 a6 e0 00 	cmp  %i3, 0                                    
40007d78:	12 80 00 07 	bne  40007d94 <_Objects_Initialize_information+0x80>
40007d7c:	07 10 00 70 	sethi  %hi(0x4001c000), %g3                    
    _Internal_error_Occurred(                                         
40007d80:	90 10 20 00 	clr  %o0                                       
40007d84:	92 10 20 01 	mov  1, %o1                                    
40007d88:	7f ff fe 59 	call  400076ec <_Internal_error_Occurred>      
40007d8c:	94 10 20 14 	mov  0x14, %o2                                 
  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;                       
40007d90:	07 10 00 70 	sethi  %hi(0x4001c000), %g3                    
40007d94:	86 10 e0 7c 	or  %g3, 0x7c, %g3	! 4001c07c <null_local_table.3551>
                                                                      
  /*                                                                  
   *  Calculate minimum and maximum Id's                              
   */                                                                 
  minimum_index = (maximum_per_allocation == 0) ? 0 : 1;              
  information->minimum_id =                                           
40007d98:	80 a0 00 1b 	cmp  %g0, %i3                                  
40007d9c:	b3 2e 60 18 	sll  %i1, 0x18, %i1                            
40007da0:	84 40 20 00 	addx  %g0, 0, %g2                              
40007da4:	b5 2e a0 1b 	sll  %i2, 0x1b, %i2                            
  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;                       
40007da8:	c6 26 20 1c 	st  %g3, [ %i0 + 0x1c ]                        
  }                                                                   
                                                                      
  /*                                                                  
   *  The allocation unit is the maximum value                        
   */                                                                 
  information->allocation_size = maximum_per_allocation;              
40007dac:	f6 36 20 14 	sth  %i3, [ %i0 + 0x14 ]                       
                                                                      
  /*                                                                  
   *  Calculate minimum and maximum Id's                              
   */                                                                 
  minimum_index = (maximum_per_allocation == 0) ? 0 : 1;              
  information->minimum_id =                                           
40007db0:	07 00 00 40 	sethi  %hi(0x10000), %g3                       
40007db4:	b2 16 40 03 	or  %i1, %g3, %i1                              
40007db8:	b4 16 40 1a 	or  %i1, %i2, %i2                              
40007dbc:	b4 16 80 02 	or  %i2, %g2, %i2                              
40007dc0:	f4 26 20 08 	st  %i2, [ %i0 + 8 ]                           
   *  Calculate the maximum name length                               
   */                                                                 
  name_length = maximum_name_length;                                  
                                                                      
  if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )                     
    name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &            
40007dc4:	84 00 60 04 	add  %g1, 4, %g2                               
  /*                                                                  
   *  Calculate the maximum name length                               
   */                                                                 
  name_length = maximum_name_length;                                  
                                                                      
  if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )                     
40007dc8:	80 88 60 03 	btst  3, %g1                                   
40007dcc:	12 80 00 03 	bne  40007dd8 <_Objects_Initialize_information+0xc4><== NEVER TAKEN
40007dd0:	84 08 bf fc 	and  %g2, -4, %g2                              
40007dd4:	84 10 00 01 	mov  %g1, %g2                                  
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
40007dd8:	82 06 20 24 	add  %i0, 0x24, %g1                            
    name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &            
                  ~(OBJECTS_NAME_ALIGNMENT-1);                        
                                                                      
  information->name_length = name_length;                             
40007ddc:	c4 36 20 38 	sth  %g2, [ %i0 + 0x38 ]                       
40007de0:	c2 26 20 20 	st  %g1, [ %i0 + 0x20 ]                        
  the_chain->permanent_null = NULL;                                   
40007de4:	c0 26 20 24 	clr  [ %i0 + 0x24 ]                            
  the_chain->last           = _Chain_Head(the_chain);                 
40007de8:	82 06 20 20 	add  %i0, 0x20, %g1                            
  _Chain_Initialize_empty( &information->Inactive );                  
                                                                      
  /*                                                                  
   *  Initialize objects .. if there are any                          
   */                                                                 
  if ( maximum_per_allocation ) {                                     
40007dec:	80 a6 e0 00 	cmp  %i3, 0                                    
40007df0:	02 80 00 04 	be  40007e00 <_Objects_Initialize_information+0xec>
40007df4:	c2 26 20 28 	st  %g1, [ %i0 + 0x28 ]                        
    /*                                                                
     *  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 );                       
40007df8:	7f ff fe 99 	call  4000785c <_Objects_Extend_information>   
40007dfc:	81 e8 00 00 	restore                                        
40007e00:	81 c7 e0 08 	ret                                            
40007e04:	81 e8 00 00 	restore                                        
                                                                      

4000b958 <_RTEMS_tasks_Post_switch_extension>: */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) {
4000b958:	9d e3 bf 98 	save  %sp, -104, %sp                           
  RTEMS_API_Control *api;                                             
  ASR_Information   *asr;                                             
  rtems_signal_set   signal_set;                                      
  Modes_Control      prev_mode;                                       
                                                                      
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
4000b95c:	e0 06 21 5c 	ld  [ %i0 + 0x15c ], %l0                       
  if ( !api )                                                         
4000b960:	80 a4 20 00 	cmp  %l0, 0                                    
4000b964:	02 80 00 1d 	be  4000b9d8 <_RTEMS_tasks_Post_switch_extension+0x80><== NEVER TAKEN
4000b968:	01 00 00 00 	nop                                            
   *  Signal Processing                                               
   */                                                                 
                                                                      
  asr = &api->Signal;                                                 
                                                                      
  _ISR_Disable( level );                                              
4000b96c:	7f ff d8 f8 	call  40001d4c <sparc_disable_interrupts>      
4000b970:	01 00 00 00 	nop                                            
    signal_set = asr->signals_posted;                                 
4000b974:	e6 04 20 14 	ld  [ %l0 + 0x14 ], %l3                        
    asr->signals_posted = 0;                                          
4000b978:	c0 24 20 14 	clr  [ %l0 + 0x14 ]                            
  _ISR_Enable( level );                                               
4000b97c:	7f ff d8 f8 	call  40001d5c <sparc_enable_interrupts>       
4000b980:	01 00 00 00 	nop                                            
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
4000b984:	80 a4 e0 00 	cmp  %l3, 0                                    
4000b988:	02 80 00 14 	be  4000b9d8 <_RTEMS_tasks_Post_switch_extension+0x80><== NEVER TAKEN
4000b98c:	a2 07 bf fc 	add  %fp, -4, %l1                              
    return;                                                           
                                                                      
  asr->nest_level += 1;                                               
4000b990:	c2 04 20 1c 	ld  [ %l0 + 0x1c ], %g1                        
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
4000b994:	d0 04 20 10 	ld  [ %l0 + 0x10 ], %o0                        
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
    return;                                                           
                                                                      
  asr->nest_level += 1;                                               
4000b998:	82 00 60 01 	inc  %g1                                       
4000b99c:	c2 24 20 1c 	st  %g1, [ %l0 + 0x1c ]                        
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
4000b9a0:	94 10 00 11 	mov  %l1, %o2                                  
4000b9a4:	25 00 00 3f 	sethi  %hi(0xfc00), %l2                        
4000b9a8:	40 00 07 4c 	call  4000d6d8 <rtems_task_mode>               
4000b9ac:	92 14 a3 ff 	or  %l2, 0x3ff, %o1	! ffff <PROM_START+0xffff> 
                                                                      
  (*asr->handler)( signal_set );                                      
4000b9b0:	c2 04 20 0c 	ld  [ %l0 + 0xc ], %g1                         
4000b9b4:	9f c0 40 00 	call  %g1                                      
4000b9b8:	90 10 00 13 	mov  %l3, %o0                                  
                                                                      
  asr->nest_level -= 1;                                               
4000b9bc:	c2 04 20 1c 	ld  [ %l0 + 0x1c ], %g1                        
  rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );     
4000b9c0:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          
  asr->nest_level += 1;                                               
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
                                                                      
  (*asr->handler)( signal_set );                                      
                                                                      
  asr->nest_level -= 1;                                               
4000b9c4:	82 00 7f ff 	add  %g1, -1, %g1                              
  rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );     
4000b9c8:	92 14 a3 ff 	or  %l2, 0x3ff, %o1                            
  asr->nest_level += 1;                                               
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
                                                                      
  (*asr->handler)( signal_set );                                      
                                                                      
  asr->nest_level -= 1;                                               
4000b9cc:	c2 24 20 1c 	st  %g1, [ %l0 + 0x1c ]                        
  rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );     
4000b9d0:	40 00 07 42 	call  4000d6d8 <rtems_task_mode>               
4000b9d4:	94 10 00 11 	mov  %l1, %o2                                  
4000b9d8:	81 c7 e0 08 	ret                                            
4000b9dc:	81 e8 00 00 	restore                                        
                                                                      

40007b5c <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) {
40007b5c:	9d e3 bf 98 	save  %sp, -104, %sp                           
40007b60:	11 10 00 88 	sethi  %hi(0x40022000), %o0                    
40007b64:	92 10 00 18 	mov  %i0, %o1                                  
40007b68:	90 12 20 f0 	or  %o0, 0xf0, %o0                             
40007b6c:	40 00 07 81 	call  40009970 <_Objects_Get>                  
40007b70:	94 07 bf fc 	add  %fp, -4, %o2                              
  /*                                                                  
   *  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 ) {                                               
40007b74:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
40007b78:	80 a0 60 00 	cmp  %g1, 0                                    
40007b7c:	12 80 00 26 	bne  40007c14 <_Rate_monotonic_Timeout+0xb8>   <== NEVER TAKEN
40007b80:	a0 10 00 08 	mov  %o0, %l0                                  
                                                                      
    case OBJECTS_LOCAL:                                               
      the_thread = the_period->owner;                                 
40007b84:	d0 02 20 40 	ld  [ %o0 + 0x40 ], %o0                        
      if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
40007b88:	03 00 00 10 	sethi  %hi(0x4000), %g1                        
40007b8c:	c4 02 20 10 	ld  [ %o0 + 0x10 ], %g2                        
40007b90:	80 88 80 01 	btst  %g2, %g1                                 
40007b94:	22 80 00 0c 	be,a   40007bc4 <_Rate_monotonic_Timeout+0x68> 
40007b98:	c2 04 20 38 	ld  [ %l0 + 0x38 ], %g1                        
            the_thread->Wait.id == the_period->Object.id ) {          
40007b9c:	c4 02 20 20 	ld  [ %o0 + 0x20 ], %g2                        
40007ba0:	c2 04 20 08 	ld  [ %l0 + 8 ], %g1                           
40007ba4:	80 a0 80 01 	cmp  %g2, %g1                                  
40007ba8:	32 80 00 07 	bne,a   40007bc4 <_Rate_monotonic_Timeout+0x68>
40007bac:	c2 04 20 38 	ld  [ %l0 + 0x38 ], %g1                        
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
40007bb0:	13 04 00 ff 	sethi  %hi(0x1003fc00), %o1                    
40007bb4:	40 00 08 b9 	call  40009e98 <_Thread_Clear_state>           
40007bb8:	92 12 63 f8 	or  %o1, 0x3f8, %o1	! 1003fff8 <RAM_SIZE+0xfc3fff8>
        _Thread_Unblock( the_thread );                                
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
40007bbc:	10 80 00 08 	b  40007bdc <_Rate_monotonic_Timeout+0x80>     
40007bc0:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
      } else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) {
40007bc4:	80 a0 60 01 	cmp  %g1, 1                                    
40007bc8:	12 80 00 0e 	bne  40007c00 <_Rate_monotonic_Timeout+0xa4>   
40007bcc:	82 10 20 04 	mov  4, %g1                                    
        the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING;    
40007bd0:	82 10 20 03 	mov  3, %g1                                    
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
40007bd4:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
        _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;    
40007bd8:	c2 24 20 38 	st  %g1, [ %l0 + 0x38 ]                        
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
40007bdc:	7f ff fe 3e 	call  400074d4 <_Rate_monotonic_Initiate_statistics>
40007be0:	01 00 00 00 	nop                                            
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
40007be4:	c2 04 20 3c 	ld  [ %l0 + 0x3c ], %g1                        
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
40007be8:	92 04 20 10 	add  %l0, 0x10, %o1                            
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
40007bec:	c2 24 20 1c 	st  %g1, [ %l0 + 0x1c ]                        
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
40007bf0:	11 10 00 88 	sethi  %hi(0x40022000), %o0                    
40007bf4:	40 00 0e ba 	call  4000b6dc <_Watchdog_Insert>              
40007bf8:	90 12 23 3c 	or  %o0, 0x33c, %o0	! 4002233c <_Watchdog_Ticks_chain>
40007bfc:	30 80 00 02 	b,a   40007c04 <_Rate_monotonic_Timeout+0xa8>  
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
      } else                                                          
        the_period->state = RATE_MONOTONIC_EXPIRED;                   
40007c00:	c2 24 20 38 	st  %g1, [ %l0 + 0x38 ]                        
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
40007c04:	03 10 00 88 	sethi  %hi(0x40022000), %g1                    
40007c08:	c4 00 62 60 	ld  [ %g1 + 0x260 ], %g2	! 40022260 <_Thread_Dispatch_disable_level>
40007c0c:	84 00 bf ff 	add  %g2, -1, %g2                              
40007c10:	c4 20 62 60 	st  %g2, [ %g1 + 0x260 ]                       
40007c14:	81 c7 e0 08 	ret                                            
40007c18:	81 e8 00 00 	restore                                        
                                                                      

4000756c <_TOD_Validate>: */ bool _TOD_Validate( const rtems_time_of_day *the_tod ) {
4000756c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  uint32_t   days_in_month;                                           
  uint32_t   ticks_per_second;                                        
                                                                      
  ticks_per_second = TOD_MICROSECONDS_PER_SECOND /                    
	    rtems_configuration_get_microseconds_per_tick();                 
40007570:	03 10 00 88 	sethi  %hi(0x40022000), %g1                    
  if ((!the_tod)                                  ||                  
40007574:	80 a6 20 00 	cmp  %i0, 0                                    
40007578:	02 80 00 2d 	be  4000762c <_TOD_Validate+0xc0>              <== NEVER TAKEN
4000757c:	d2 00 61 44 	ld  [ %g1 + 0x144 ], %o1                       
      (the_tod->ticks  >= ticks_per_second)       ||                  
40007580:	11 00 03 d0 	sethi  %hi(0xf4000), %o0                       
40007584:	40 00 55 b8 	call  4001cc64 <.udiv>                         
40007588:	90 12 22 40 	or  %o0, 0x240, %o0	! f4240 <PROM_START+0xf4240>
4000758c:	c2 06 20 18 	ld  [ %i0 + 0x18 ], %g1                        
40007590:	80 a0 40 08 	cmp  %g1, %o0                                  
40007594:	1a 80 00 26 	bcc  4000762c <_TOD_Validate+0xc0>             
40007598:	01 00 00 00 	nop                                            
      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||                  
4000759c:	c2 06 20 14 	ld  [ %i0 + 0x14 ], %g1                        
400075a0:	80 a0 60 3b 	cmp  %g1, 0x3b                                 
400075a4:	18 80 00 22 	bgu  4000762c <_TOD_Validate+0xc0>             
400075a8:	01 00 00 00 	nop                                            
      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||                  
400075ac:	c2 06 20 10 	ld  [ %i0 + 0x10 ], %g1                        
400075b0:	80 a0 60 3b 	cmp  %g1, 0x3b                                 
400075b4:	18 80 00 1e 	bgu  4000762c <_TOD_Validate+0xc0>             
400075b8:	01 00 00 00 	nop                                            
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
400075bc:	c2 06 20 0c 	ld  [ %i0 + 0xc ], %g1                         
400075c0:	80 a0 60 17 	cmp  %g1, 0x17                                 
400075c4:	18 80 00 1a 	bgu  4000762c <_TOD_Validate+0xc0>             
400075c8:	01 00 00 00 	nop                                            
      (the_tod->month  == 0)                      ||                  
400075cc:	c2 06 20 04 	ld  [ %i0 + 4 ], %g1                           
  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)                                  ||                  
400075d0:	80 a0 60 00 	cmp  %g1, 0                                    
400075d4:	02 80 00 16 	be  4000762c <_TOD_Validate+0xc0>              <== NEVER TAKEN
400075d8:	80 a0 60 0c 	cmp  %g1, 0xc                                  
400075dc:	18 80 00 14 	bgu  4000762c <_TOD_Validate+0xc0>             
400075e0:	01 00 00 00 	nop                                            
      (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)          ||                  
400075e4:	c6 06 00 00 	ld  [ %i0 ], %g3                               
  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)                                  ||                  
400075e8:	80 a0 e7 c3 	cmp  %g3, 0x7c3                                
400075ec:	08 80 00 10 	bleu  4000762c <_TOD_Validate+0xc0>            
400075f0:	01 00 00 00 	nop                                            
      (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)          ||                  
      (the_tod->day    == 0) )                                        
400075f4:	c4 06 20 08 	ld  [ %i0 + 8 ], %g2                           
  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)                                  ||                  
400075f8:	80 a0 a0 00 	cmp  %g2, 0                                    
400075fc:	02 80 00 0c 	be  4000762c <_TOD_Validate+0xc0>              <== NEVER TAKEN
40007600:	80 88 e0 03 	btst  3, %g3                                   
40007604:	07 10 00 82 	sethi  %hi(0x40020800), %g3                    
      (the_tod->month  >  TOD_MONTHS_PER_YEAR)    ||                  
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
      (the_tod->day    == 0) )                                        
     return false;                                                    
                                                                      
  if ( (the_tod->year % 4) == 0 )                                     
40007608:	12 80 00 03 	bne  40007614 <_TOD_Validate+0xa8>             
4000760c:	86 10 e2 5c 	or  %g3, 0x25c, %g3	! 40020a5c <_TOD_Days_per_month>
    days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];       
40007610:	82 00 60 0d 	add  %g1, 0xd, %g1                             
  else                                                                
    days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];       
40007614:	83 28 60 02 	sll  %g1, 2, %g1                               
40007618:	c2 00 c0 01 	ld  [ %g3 + %g1 ], %g1                         
 *    false - if the the_tod is invalid                               
 *                                                                    
 *  NOTE: This routine only works for leap-years through 2099.        
 */                                                                   
                                                                      
bool _TOD_Validate(                                                   
4000761c:	80 a0 40 02 	cmp  %g1, %g2                                  
40007620:	b0 60 3f ff 	subx  %g0, -1, %i0                             
40007624:	81 c7 e0 08 	ret                                            
40007628:	81 e8 00 00 	restore                                        
                                                                      
  if ( the_tod->day > days_in_month )                                 
    return false;                                                     
                                                                      
  return true;                                                        
}                                                                     
4000762c:	81 c7 e0 08 	ret                                            
40007630:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

40007fe4 <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) {
40007fe4:	9d e3 bf a0 	save  %sp, -96, %sp                            
*/                                                                    
                                                                      
  /*                                                                  
   * Save original state                                              
   */                                                                 
  original_state = the_thread->current_state;                         
40007fe8:	e2 06 20 10 	ld  [ %i0 + 0x10 ], %l1                        
  /*                                                                  
   * 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 );                                
40007fec:	40 00 04 1a 	call  40009054 <_Thread_Set_transient>         
40007ff0:	90 10 00 18 	mov  %i0, %o0                                  
                                                                      
  /*                                                                  
   *  Do not bother recomputing all the priority related information if
   *  we are not REALLY changing priority.                            
   */                                                                 
 if ( the_thread->current_priority != new_priority )                  
40007ff4:	c2 06 20 14 	ld  [ %i0 + 0x14 ], %g1                        
void _Thread_Change_priority(                                         
  Thread_Control   *the_thread,                                       
  Priority_Control  new_priority,                                     
  bool              prepend_it                                        
)                                                                     
{                                                                     
40007ff8:	a0 10 00 18 	mov  %i0, %l0                                  
                                                                      
  /*                                                                  
   *  Do not bother recomputing all the priority related information if
   *  we are not REALLY changing priority.                            
   */                                                                 
 if ( the_thread->current_priority != new_priority )                  
40007ffc:	80 a0 40 19 	cmp  %g1, %i1                                  
40008000:	02 80 00 04 	be  40008010 <_Thread_Change_priority+0x2c>    
40008004:	92 10 00 19 	mov  %i1, %o1                                  
    _Thread_Set_priority( the_thread, new_priority );                 
40008008:	40 00 03 96 	call  40008e60 <_Thread_Set_priority>          
4000800c:	90 10 00 18 	mov  %i0, %o0                                  
                                                                      
  _ISR_Disable( level );                                              
40008010:	7f ff e7 4f 	call  40001d4c <sparc_disable_interrupts>      
40008014:	01 00 00 00 	nop                                            
40008018:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
  /*                                                                  
   *  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;                                  
4000801c:	e4 04 20 10 	ld  [ %l0 + 0x10 ], %l2                        
  if ( state != STATES_TRANSIENT ) {                                  
40008020:	80 a4 a0 04 	cmp  %l2, 4                                    
40008024:	02 80 00 10 	be  40008064 <_Thread_Change_priority+0x80>    
40008028:	a2 0c 60 04 	and  %l1, 4, %l1                               
    /* Only clear the transient state if it wasn't set already */     
    if ( ! _States_Is_transient( original_state ) )                   
4000802c:	80 a4 60 00 	cmp  %l1, 0                                    
40008030:	12 80 00 03 	bne  4000803c <_Thread_Change_priority+0x58>   <== NEVER TAKEN
40008034:	82 0c bf fb 	and  %l2, -5, %g1                              
      the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
40008038:	c2 24 20 10 	st  %g1, [ %l0 + 0x10 ]                        
    _ISR_Enable( level );                                             
4000803c:	7f ff e7 48 	call  40001d5c <sparc_enable_interrupts>       
40008040:	90 10 00 18 	mov  %i0, %o0                                  
    if ( _States_Is_waiting_on_thread_queue( state ) ) {              
40008044:	03 00 00 ef 	sethi  %hi(0x3bc00), %g1                       
40008048:	82 10 62 e0 	or  %g1, 0x2e0, %g1	! 3bee0 <PROM_START+0x3bee0>
4000804c:	80 8c 80 01 	btst  %l2, %g1                                 
40008050:	02 80 00 5c 	be  400081c0 <_Thread_Change_priority+0x1dc>   
40008054:	01 00 00 00 	nop                                            
      _Thread_queue_Requeue( the_thread->Wait.queue, the_thread );    
40008058:	f0 04 20 44 	ld  [ %l0 + 0x44 ], %i0                        
4000805c:	40 00 03 54 	call  40008dac <_Thread_queue_Requeue>         
40008060:	93 e8 00 10 	restore  %g0, %l0, %o1                         
    }                                                                 
    return;                                                           
  }                                                                   
                                                                      
  /* Only clear the transient state if it wasn't set already */       
  if ( ! _States_Is_transient( original_state ) ) {                   
40008064:	80 a4 60 00 	cmp  %l1, 0                                    
40008068:	12 80 00 1c 	bne  400080d8 <_Thread_Change_priority+0xf4>   <== NEVER TAKEN
4000806c:	01 00 00 00 	nop                                            
                                                                      
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (                  
  Priority_Information *the_priority_map                              
)                                                                     
{                                                                     
  *the_priority_map->minor |= the_priority_map->ready_minor;          
40008070:	c4 04 20 90 	ld  [ %l0 + 0x90 ], %g2                        
40008074:	c6 14 20 96 	lduh  [ %l0 + 0x96 ], %g3                      
40008078:	c8 10 80 00 	lduh  [ %g2 ], %g4                             
  _Priority_Major_bit_map  |= the_priority_map->ready_major;          
4000807c:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
                                                                      
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (                  
  Priority_Information *the_priority_map                              
)                                                                     
{                                                                     
  *the_priority_map->minor |= the_priority_map->ready_minor;          
40008080:	86 11 00 03 	or  %g4, %g3, %g3                              
40008084:	c6 30 80 00 	sth  %g3, [ %g2 ]                              
  _Priority_Major_bit_map  |= the_priority_map->ready_major;          
40008088:	c4 10 60 c0 	lduh  [ %g1 + 0xc0 ], %g2                      
4000808c:	c6 14 20 94 	lduh  [ %l0 + 0x94 ], %g3                      
     *  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 );
40008090:	c0 24 20 10 	clr  [ %l0 + 0x10 ]                            
40008094:	84 10 c0 02 	or  %g3, %g2, %g2                              
40008098:	c4 30 60 c0 	sth  %g2, [ %g1 + 0xc0 ]                       
                                                                      
    _Priority_Add_to_bit_map( &the_thread->Priority_map );            
    if ( prepend_it )                                                 
4000809c:	80 8e a0 ff 	btst  0xff, %i2                                
400080a0:	02 80 00 08 	be  400080c0 <_Thread_Change_priority+0xdc>    
400080a4:	c2 04 20 8c 	ld  [ %l0 + 0x8c ], %g1                        
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
400080a8:	c4 00 40 00 	ld  [ %g1 ], %g2                               
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
400080ac:	c2 24 20 04 	st  %g1, [ %l0 + 4 ]                           
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
400080b0:	e0 20 40 00 	st  %l0, [ %g1 ]                               
  the_node->next        = before_node;                                
  before_node->previous = the_node;                                   
400080b4:	e0 20 a0 04 	st  %l0, [ %g2 + 4 ]                           
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
  the_node->next        = before_node;                                
400080b8:	10 80 00 08 	b  400080d8 <_Thread_Change_priority+0xf4>     
400080bc:	c4 24 00 00 	st  %g2, [ %l0 ]                               
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
400080c0:	84 00 60 04 	add  %g1, 4, %g2                               
400080c4:	c4 24 00 00 	st  %g2, [ %l0 ]                               
  old_last_node       = the_chain->last;                              
400080c8:	c4 00 60 08 	ld  [ %g1 + 8 ], %g2                           
  the_chain->last     = the_node;                                     
400080cc:	e0 20 60 08 	st  %l0, [ %g1 + 8 ]                           
  old_last_node->next = the_node;                                     
  the_node->previous  = old_last_node;                                
400080d0:	c4 24 20 04 	st  %g2, [ %l0 + 4 ]                           
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
  old_last_node       = the_chain->last;                              
  the_chain->last     = the_node;                                     
  old_last_node->next = the_node;                                     
400080d4:	e0 20 80 00 	st  %l0, [ %g2 ]                               
      _Chain_Prepend_unprotected( the_thread->ready, &the_thread->Object.Node );
    else                                                              
      _Chain_Append_unprotected( the_thread->ready, &the_thread->Object.Node );
  }                                                                   
                                                                      
  _ISR_Flash( level );                                                
400080d8:	7f ff e7 21 	call  40001d5c <sparc_enable_interrupts>       
400080dc:	90 10 00 18 	mov  %i0, %o0                                  
400080e0:	7f ff e7 1b 	call  40001d4c <sparc_disable_interrupts>      
400080e4:	01 00 00 00 	nop                                            
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 );         
400080e8:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
400080ec:	c4 10 60 c0 	lduh  [ %g1 + 0xc0 ], %g2	! 4001c4c0 <_Priority_Major_bit_map>
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )              
{                                                                     
  _Thread_Heir = (Thread_Control *)                                   
    _Thread_Ready_chain[ _Priority_Get_highest() ].first;             
400080f0:	03 10 00 70 	sethi  %hi(0x4001c000), %g1                    
400080f4:	85 28 a0 10 	sll  %g2, 0x10, %g2                            
400080f8:	da 00 63 64 	ld  [ %g1 + 0x364 ], %o5                       
400080fc:	87 30 a0 10 	srl  %g2, 0x10, %g3                            
40008100:	03 10 00 6a 	sethi  %hi(0x4001a800), %g1                    
40008104:	80 a0 e0 ff 	cmp  %g3, 0xff                                 
40008108:	18 80 00 05 	bgu  4000811c <_Thread_Change_priority+0x138>  
4000810c:	82 10 63 70 	or  %g1, 0x370, %g1                            
40008110:	c4 08 40 03 	ldub  [ %g1 + %g3 ], %g2                       
40008114:	10 80 00 04 	b  40008124 <_Thread_Change_priority+0x140>    
40008118:	84 00 a0 08 	add  %g2, 8, %g2                               
4000811c:	85 30 a0 18 	srl  %g2, 0x18, %g2                            
40008120:	c4 08 40 02 	ldub  [ %g1 + %g2 ], %g2                       
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
40008124:	83 28 a0 10 	sll  %g2, 0x10, %g1                            
40008128:	07 10 00 71 	sethi  %hi(0x4001c400), %g3                    
4000812c:	83 30 60 0f 	srl  %g1, 0xf, %g1                             
40008130:	86 10 e1 40 	or  %g3, 0x140, %g3                            
40008134:	c6 10 c0 01 	lduh  [ %g3 + %g1 ], %g3                       
40008138:	03 10 00 6a 	sethi  %hi(0x4001a800), %g1                    
4000813c:	87 28 e0 10 	sll  %g3, 0x10, %g3                            
40008140:	89 30 e0 10 	srl  %g3, 0x10, %g4                            
40008144:	80 a1 20 ff 	cmp  %g4, 0xff                                 
40008148:	18 80 00 05 	bgu  4000815c <_Thread_Change_priority+0x178>  
4000814c:	82 10 63 70 	or  %g1, 0x370, %g1                            
40008150:	c2 08 40 04 	ldub  [ %g1 + %g4 ], %g1                       
40008154:	10 80 00 04 	b  40008164 <_Thread_Change_priority+0x180>    
40008158:	82 00 60 08 	add  %g1, 8, %g1                               
4000815c:	87 30 e0 18 	srl  %g3, 0x18, %g3                            
40008160:	c2 08 40 03 	ldub  [ %g1 + %g3 ], %g1                       
 *  ready thread.                                                     
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )              
{                                                                     
  _Thread_Heir = (Thread_Control *)                                   
40008164:	83 28 60 10 	sll  %g1, 0x10, %g1                            
40008168:	83 30 60 10 	srl  %g1, 0x10, %g1                            
4000816c:	85 28 a0 10 	sll  %g2, 0x10, %g2                            
40008170:	85 30 a0 0c 	srl  %g2, 0xc, %g2                             
40008174:	84 00 40 02 	add  %g1, %g2, %g2                             
40008178:	83 28 a0 04 	sll  %g2, 4, %g1                               
4000817c:	85 28 a0 02 	sll  %g2, 2, %g2                               
40008180:	84 20 40 02 	sub  %g1, %g2, %g2                             
40008184:	c4 03 40 02 	ld  [ %o5 + %g2 ], %g2                         
 *  is also the heir thread, and false otherwise.                     
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void )  
{                                                                     
  return ( _Thread_Executing == _Thread_Heir );                       
40008188:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
4000818c:	c2 00 60 cc 	ld  [ %g1 + 0xcc ], %g1	! 4001c4cc <_Thread_Executing>
 *  ready thread.                                                     
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )              
{                                                                     
  _Thread_Heir = (Thread_Control *)                                   
40008190:	07 10 00 71 	sethi  %hi(0x4001c400), %g3                    
   *  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() &&                       
40008194:	80 a0 40 02 	cmp  %g1, %g2                                  
40008198:	02 80 00 08 	be  400081b8 <_Thread_Change_priority+0x1d4>   
4000819c:	c4 20 e0 9c 	st  %g2, [ %g3 + 0x9c ]                        
       _Thread_Executing->is_preemptible )                            
400081a0:	c2 08 60 75 	ldub  [ %g1 + 0x75 ], %g1                      
400081a4:	80 a0 60 00 	cmp  %g1, 0                                    
400081a8:	02 80 00 04 	be  400081b8 <_Thread_Change_priority+0x1d4>   
400081ac:	84 10 20 01 	mov  1, %g2                                    
    _Context_Switch_necessary = true;                                 
400081b0:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
400081b4:	c4 28 60 dc 	stb  %g2, [ %g1 + 0xdc ]	! 4001c4dc <_Context_Switch_necessary>
  _ISR_Enable( level );                                               
400081b8:	7f ff e6 e9 	call  40001d5c <sparc_enable_interrupts>       
400081bc:	81 e8 00 00 	restore                                        
400081c0:	81 c7 e0 08 	ret                                            
400081c4:	81 e8 00 00 	restore                                        
                                                                      

400081c8 <_Thread_Clear_state>: void _Thread_Clear_state( Thread_Control *the_thread, States_Control state ) {
400081c8:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level       level;                                              
  States_Control  current_state;                                      
                                                                      
  _ISR_Disable( level );                                              
400081cc:	7f ff e6 e0 	call  40001d4c <sparc_disable_interrupts>      
400081d0:	a0 10 00 18 	mov  %i0, %l0                                  
400081d4:	b0 10 00 08 	mov  %o0, %i0                                  
    current_state = the_thread->current_state;                        
400081d8:	c2 04 20 10 	ld  [ %l0 + 0x10 ], %g1                        
                                                                      
    if ( current_state & state ) {                                    
400081dc:	80 8e 40 01 	btst  %i1, %g1                                 
400081e0:	02 80 00 2d 	be  40008294 <_Thread_Clear_state+0xcc>        
400081e4:	01 00 00 00 	nop                                            
RTEMS_INLINE_ROUTINE States_Control _States_Clear (                   
  States_Control states_to_clear,                                     
  States_Control current_state                                        
)                                                                     
{                                                                     
   return (current_state & ~states_to_clear);                         
400081e8:	b2 28 40 19 	andn  %g1, %i1, %i1                            
      current_state =                                                 
      the_thread->current_state = _States_Clear( state, current_state );
                                                                      
      if ( _States_Is_ready( current_state ) ) {                      
400081ec:	80 a6 60 00 	cmp  %i1, 0                                    
400081f0:	12 80 00 29 	bne  40008294 <_Thread_Clear_state+0xcc>       
400081f4:	f2 24 20 10 	st  %i1, [ %l0 + 0x10 ]                        
                                                                      
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (                  
  Priority_Information *the_priority_map                              
)                                                                     
{                                                                     
  *the_priority_map->minor |= the_priority_map->ready_minor;          
400081f8:	c4 04 20 90 	ld  [ %l0 + 0x90 ], %g2                        
                                                                      
        _Priority_Add_to_bit_map( &the_thread->Priority_map );        
                                                                      
        _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
400081fc:	c2 04 20 8c 	ld  [ %l0 + 0x8c ], %g1                        
40008200:	c8 10 80 00 	lduh  [ %g2 ], %g4                             
40008204:	c6 14 20 96 	lduh  [ %l0 + 0x96 ], %g3                      
40008208:	86 11 00 03 	or  %g4, %g3, %g3                              
4000820c:	c6 30 80 00 	sth  %g3, [ %g2 ]                              
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
40008210:	84 00 60 04 	add  %g1, 4, %g2                               
  _Priority_Major_bit_map  |= the_priority_map->ready_major;          
40008214:	da 14 20 94 	lduh  [ %l0 + 0x94 ], %o5                      
40008218:	c4 24 00 00 	st  %g2, [ %l0 ]                               
4000821c:	07 10 00 71 	sethi  %hi(0x4001c400), %g3                    
  old_last_node       = the_chain->last;                              
40008220:	c4 00 60 08 	ld  [ %g1 + 8 ], %g2                           
40008224:	c8 10 e0 c0 	lduh  [ %g3 + 0xc0 ], %g4                      
  the_chain->last     = the_node;                                     
40008228:	e0 20 60 08 	st  %l0, [ %g1 + 8 ]                           
  old_last_node->next = the_node;                                     
  the_node->previous  = old_last_node;                                
4000822c:	c4 24 20 04 	st  %g2, [ %l0 + 4 ]                           
40008230:	82 13 40 04 	or  %o5, %g4, %g1                              
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
  old_last_node       = the_chain->last;                              
  the_chain->last     = the_node;                                     
  old_last_node->next = the_node;                                     
40008234:	e0 20 80 00 	st  %l0, [ %g2 ]                               
40008238:	c2 30 e0 c0 	sth  %g1, [ %g3 + 0xc0 ]                       
                                                                      
        _ISR_Flash( level );                                          
4000823c:	7f ff e6 c8 	call  40001d5c <sparc_enable_interrupts>       
40008240:	01 00 00 00 	nop                                            
40008244:	7f ff e6 c2 	call  40001d4c <sparc_disable_interrupts>      
40008248:	01 00 00 00 	nop                                            
         *    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 ) {
4000824c:	05 10 00 71 	sethi  %hi(0x4001c400), %g2                    
40008250:	c6 00 a0 9c 	ld  [ %g2 + 0x9c ], %g3	! 4001c49c <_Thread_Heir>
40008254:	c2 04 20 14 	ld  [ %l0 + 0x14 ], %g1                        
40008258:	c6 00 e0 14 	ld  [ %g3 + 0x14 ], %g3                        
4000825c:	80 a0 40 03 	cmp  %g1, %g3                                  
40008260:	1a 80 00 0d 	bcc  40008294 <_Thread_Clear_state+0xcc>       
40008264:	07 10 00 71 	sethi  %hi(0x4001c400), %g3                    
          _Thread_Heir = the_thread;                                  
          if ( _Thread_Executing->is_preemptible ||                   
40008268:	c6 00 e0 cc 	ld  [ %g3 + 0xcc ], %g3	! 4001c4cc <_Thread_Executing>
         *  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;                                  
4000826c:	e0 20 a0 9c 	st  %l0, [ %g2 + 0x9c ]                        
          if ( _Thread_Executing->is_preemptible ||                   
40008270:	c4 08 e0 75 	ldub  [ %g3 + 0x75 ], %g2                      
40008274:	80 a0 a0 00 	cmp  %g2, 0                                    
40008278:	12 80 00 05 	bne  4000828c <_Thread_Clear_state+0xc4>       
4000827c:	84 10 20 01 	mov  1, %g2                                    
40008280:	80 a0 60 00 	cmp  %g1, 0                                    
40008284:	12 80 00 04 	bne  40008294 <_Thread_Clear_state+0xcc>       <== ALWAYS TAKEN
40008288:	01 00 00 00 	nop                                            
               the_thread->current_priority == 0 )                    
            _Context_Switch_necessary = true;                         
4000828c:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
40008290:	c4 28 60 dc 	stb  %g2, [ %g1 + 0xdc ]	! 4001c4dc <_Context_Switch_necessary>
        }                                                             
      }                                                               
  }                                                                   
  _ISR_Enable( level );                                               
40008294:	7f ff e6 b2 	call  40001d5c <sparc_enable_interrupts>       
40008298:	81 e8 00 00 	restore                                        
                                                                      

40008420 <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) {
40008420:	9d e3 bf 98 	save  %sp, -104, %sp                           
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
                                                                      
  the_thread = _Thread_Get( id, &location );                          
40008424:	90 10 00 18 	mov  %i0, %o0                                  
40008428:	40 00 00 6c 	call  400085d8 <_Thread_Get>                   
4000842c:	92 07 bf fc 	add  %fp, -4, %o1                              
  switch ( location ) {                                               
40008430:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
40008434:	80 a0 60 00 	cmp  %g1, 0                                    
40008438:	12 80 00 08 	bne  40008458 <_Thread_Delay_ended+0x38>       <== NEVER TAKEN
4000843c:	13 04 00 00 	sethi  %hi(0x10000000), %o1                    
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
      break;                                                          
    case OBJECTS_LOCAL:                                               
      _Thread_Clear_state(                                            
40008440:	7f ff ff 62 	call  400081c8 <_Thread_Clear_state>           
40008444:	92 12 60 18 	or  %o1, 0x18, %o1	! 10000018 <RAM_SIZE+0xfc00018>
40008448:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
4000844c:	c4 00 60 10 	ld  [ %g1 + 0x10 ], %g2	! 4001c410 <_Thread_Dispatch_disable_level>
40008450:	84 00 bf ff 	add  %g2, -1, %g2                              
40008454:	c4 20 60 10 	st  %g2, [ %g1 + 0x10 ]                        
40008458:	81 c7 e0 08 	ret                                            
4000845c:	81 e8 00 00 	restore                                        
                                                                      

40008460 <_Thread_Dispatch>: * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) {
40008460:	9d e3 bf 90 	save  %sp, -112, %sp                           
  Thread_Control   *executing;                                        
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
40008464:	2d 10 00 71 	sethi  %hi(0x4001c400), %l6                    
  _ISR_Disable( level );                                              
40008468:	7f ff e6 39 	call  40001d4c <sparc_disable_interrupts>      
4000846c:	e0 05 a0 cc 	ld  [ %l6 + 0xcc ], %l0	! 4001c4cc <_Thread_Executing>
  while ( _Context_Switch_necessary == true ) {                       
40008470:	2b 10 00 71 	sethi  %hi(0x4001c400), %l5                    
40008474:	35 10 00 71 	sethi  %hi(0x4001c400), %i2                    
    heir = _Thread_Heir;                                              
40008478:	37 10 00 71 	sethi  %hi(0x4001c400), %i3                    
#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;            
4000847c:	39 10 00 70 	sethi  %hi(0x4001c000), %i4                    
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
        _Timestamp_Subtract(                                          
40008480:	25 10 00 71 	sethi  %hi(0x4001c400), %l2                    
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
40008484:	3b 10 00 71 	sethi  %hi(0x4001c400), %i5                    
  _ISR_Disable( level );                                              
  while ( _Context_Switch_necessary == true ) {                       
    heir = _Thread_Heir;                                              
    _Thread_Dispatch_disable_level = 1;                               
    _Context_Switch_necessary = false;                                
    _Thread_Executing = heir;                                         
40008488:	ac 15 a0 cc 	or  %l6, 0xcc, %l6                             
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Context_Switch_necessary == true ) {                       
4000848c:	aa 15 60 dc 	or  %l5, 0xdc, %l5                             
    heir = _Thread_Heir;                                              
    _Thread_Dispatch_disable_level = 1;                               
40008490:	b4 16 a0 10 	or  %i2, 0x10, %i2                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Context_Switch_necessary == true ) {                       
    heir = _Thread_Heir;                                              
40008494:	b6 16 e0 9c 	or  %i3, 0x9c, %i3                             
#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;            
40008498:	b8 17 23 68 	or  %i4, 0x368, %i4                            
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
        _Timestamp_Subtract(                                          
4000849c:	a4 14 a0 d4 	or  %l2, 0xd4, %l2                             
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
400084a0:	ba 17 60 98 	or  %i5, 0x98, %i5                             
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Context_Switch_necessary == true ) {                       
    heir = _Thread_Heir;                                              
    _Thread_Dispatch_disable_level = 1;                               
400084a4:	ae 10 20 01 	mov  1, %l7                                    
    _ISR_Enable( level );                                             
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
400084a8:	a8 07 bf f8 	add  %fp, -8, %l4                              
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Context_Switch_necessary == true ) {                       
400084ac:	10 80 00 29 	b  40008550 <_Thread_Dispatch+0xf0>            
400084b0:	a6 07 bf f0 	add  %fp, -16, %l3                             
    heir = _Thread_Heir;                                              
    _Thread_Dispatch_disable_level = 1;                               
400084b4:	ee 26 80 00 	st  %l7, [ %i2 ]                               
    _Thread_Executing = heir;                                         
#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 )
400084b8:	c2 04 60 7c 	ld  [ %l1 + 0x7c ], %g1                        
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Context_Switch_necessary == true ) {                       
    heir = _Thread_Heir;                                              
    _Thread_Dispatch_disable_level = 1;                               
    _Context_Switch_necessary = false;                                
400084bc:	c0 2d 40 00 	clrb  [ %l5 ]                                  
    _Thread_Executing = heir;                                         
#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 )
400084c0:	80 a0 60 01 	cmp  %g1, 1                                    
400084c4:	12 80 00 04 	bne  400084d4 <_Thread_Dispatch+0x74>          
400084c8:	e2 25 80 00 	st  %l1, [ %l6 ]                               
      heir->cpu_time_budget = _Thread_Ticks_per_timeslice;            
400084cc:	c2 07 00 00 	ld  [ %i4 ], %g1                               
400084d0:	c2 24 60 78 	st  %g1, [ %l1 + 0x78 ]                        
    _ISR_Enable( level );                                             
400084d4:	7f ff e6 22 	call  40001d5c <sparc_enable_interrupts>       
400084d8:	01 00 00 00 	nop                                            
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
400084dc:	40 00 0e 43 	call  4000bde8 <_TOD_Get_uptime>               
400084e0:	90 10 00 14 	mov  %l4, %o0                                  
        _Timestamp_Subtract(                                          
400084e4:	90 10 00 12 	mov  %l2, %o0                                  
400084e8:	92 10 00 14 	mov  %l4, %o1                                  
400084ec:	40 00 03 a4 	call  4000937c <_Timespec_Subtract>            
400084f0:	94 10 00 13 	mov  %l3, %o2                                  
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
400084f4:	92 10 00 13 	mov  %l3, %o1                                  
400084f8:	40 00 03 87 	call  40009314 <_Timespec_Add_to>              
400084fc:	90 04 20 84 	add  %l0, 0x84, %o0                            
        _Thread_Time_of_last_context_switch = uptime;                 
40008500:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
40008504:	c2 07 40 00 	ld  [ %i5 ], %g1                               
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
        _Thread_Time_of_last_context_switch = uptime;                 
40008508:	c4 24 80 00 	st  %g2, [ %l2 ]                               
4000850c:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          
    if ( _Thread_libc_reent ) {                                       
      executing->libc_reent = *_Thread_libc_reent;                    
      *_Thread_libc_reent = heir->libc_reent;                         
    }                                                                 
                                                                      
    _User_extensions_Thread_switch( executing, heir );                
40008510:	90 10 00 10 	mov  %l0, %o0                                  
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
        _Thread_Time_of_last_context_switch = uptime;                 
40008514:	c4 24 a0 04 	st  %g2, [ %l2 + 4 ]                           
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
40008518:	80 a0 60 00 	cmp  %g1, 0                                    
4000851c:	02 80 00 06 	be  40008534 <_Thread_Dispatch+0xd4>           <== NEVER TAKEN
40008520:	92 10 00 11 	mov  %l1, %o1                                  
      executing->libc_reent = *_Thread_libc_reent;                    
40008524:	c4 00 40 00 	ld  [ %g1 ], %g2                               
40008528:	c4 24 21 58 	st  %g2, [ %l0 + 0x158 ]                       
      *_Thread_libc_reent = heir->libc_reent;                         
4000852c:	c4 04 61 58 	ld  [ %l1 + 0x158 ], %g2                       
40008530:	c4 20 40 00 	st  %g2, [ %g1 ]                               
    }                                                                 
                                                                      
    _User_extensions_Thread_switch( executing, heir );                
40008534:	40 00 04 47 	call  40009650 <_User_extensions_Thread_switch>
40008538:	01 00 00 00 	nop                                            
    if ( executing->fp_context != NULL )                              
      _Context_Save_fp( &executing->fp_context );                     
#endif                                                                
#endif                                                                
                                                                      
    _Context_Switch( &executing->Registers, &heir->Registers );       
4000853c:	90 04 20 d0 	add  %l0, 0xd0, %o0                            
40008540:	40 00 05 3b 	call  40009a2c <_CPU_Context_switch>           
40008544:	92 04 60 d0 	add  %l1, 0xd0, %o1                            
#endif                                                                
#endif                                                                
                                                                      
    executing = _Thread_Executing;                                    
                                                                      
    _ISR_Disable( level );                                            
40008548:	7f ff e6 01 	call  40001d4c <sparc_disable_interrupts>      
4000854c:	e0 05 80 00 	ld  [ %l6 ], %l0                               
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Context_Switch_necessary == true ) {                       
40008550:	c2 0d 40 00 	ldub  [ %l5 ], %g1                             
40008554:	80 a0 60 00 	cmp  %g1, 0                                    
40008558:	32 bf ff d7 	bne,a   400084b4 <_Thread_Dispatch+0x54>       
4000855c:	e2 06 c0 00 	ld  [ %i3 ], %l1                               
    executing = _Thread_Executing;                                    
                                                                      
    _ISR_Disable( level );                                            
  }                                                                   
                                                                      
  _Thread_Dispatch_disable_level = 0;                                 
40008560:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
40008564:	c0 20 60 10 	clr  [ %g1 + 0x10 ]	! 4001c410 <_Thread_Dispatch_disable_level>
                                                                      
  _ISR_Enable( level );                                               
40008568:	7f ff e5 fd 	call  40001d5c <sparc_enable_interrupts>       
4000856c:	01 00 00 00 	nop                                            
                                                                      
  if ( _Thread_Do_post_task_switch_extension ||                       
40008570:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
40008574:	c2 00 60 b0 	ld  [ %g1 + 0xb0 ], %g1	! 4001c4b0 <_Thread_Do_post_task_switch_extension>
40008578:	80 a0 60 00 	cmp  %g1, 0                                    
4000857c:	12 80 00 06 	bne  40008594 <_Thread_Dispatch+0x134>         <== NEVER TAKEN
40008580:	01 00 00 00 	nop                                            
       executing->do_post_task_switch_extension ) {                   
40008584:	c2 0c 20 74 	ldub  [ %l0 + 0x74 ], %g1                      
40008588:	80 a0 60 00 	cmp  %g1, 0                                    
4000858c:	02 80 00 04 	be  4000859c <_Thread_Dispatch+0x13c>          
40008590:	01 00 00 00 	nop                                            
    executing->do_post_task_switch_extension = false;                 
    _API_extensions_Run_postswitch();                                 
40008594:	7f ff f9 eb 	call  40006d40 <_API_extensions_Run_postswitch>
40008598:	c0 2c 20 74 	clrb  [ %l0 + 0x74 ]                           
4000859c:	81 c7 e0 08 	ret                                            
400085a0:	81 e8 00 00 	restore                                        
                                                                      

4000dad8 <_Thread_Evaluate_mode>: bool _Thread_Evaluate_mode( void ) { Thread_Control *executing; executing = _Thread_Executing;
4000dad8:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
4000dadc:	c2 00 60 cc 	ld  [ %g1 + 0xcc ], %g1	! 4001c4cc <_Thread_Executing>
                                                                      
  if ( !_States_Is_ready( executing->current_state ) ||               
4000dae0:	c4 00 60 10 	ld  [ %g1 + 0x10 ], %g2                        
4000dae4:	80 a0 a0 00 	cmp  %g2, 0                                    
4000dae8:	12 80 00 0b 	bne  4000db14 <_Thread_Evaluate_mode+0x3c>     <== NEVER TAKEN
4000daec:	84 10 20 01 	mov  1, %g2                                    
4000daf0:	05 10 00 71 	sethi  %hi(0x4001c400), %g2                    
4000daf4:	c4 00 a0 9c 	ld  [ %g2 + 0x9c ], %g2	! 4001c49c <_Thread_Heir>
4000daf8:	80 a0 40 02 	cmp  %g1, %g2                                  
4000dafc:	02 80 00 0b 	be  4000db28 <_Thread_Evaluate_mode+0x50>      
4000db00:	01 00 00 00 	nop                                            
       ( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) {
4000db04:	c2 08 60 75 	ldub  [ %g1 + 0x75 ], %g1                      
4000db08:	80 a0 60 00 	cmp  %g1, 0                                    
4000db0c:	02 80 00 07 	be  4000db28 <_Thread_Evaluate_mode+0x50>      <== NEVER TAKEN
4000db10:	84 10 20 01 	mov  1, %g2                                    
    _Context_Switch_necessary = true;                                 
4000db14:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
4000db18:	90 10 20 01 	mov  1, %o0                                    
4000db1c:	c4 28 60 dc 	stb  %g2, [ %g1 + 0xdc ]                       
    return true;                                                      
4000db20:	81 c3 e0 08 	retl                                           
4000db24:	01 00 00 00 	nop                                            
  }                                                                   
                                                                      
  return false;                                                       
}                                                                     
4000db28:	81 c3 e0 08 	retl                                           
4000db2c:	90 10 20 00 	clr  %o0	! 0 <PROM_START>                      
                                                                      

4000db30 <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) {
4000db30:	9d e3 bf a0 	save  %sp, -96, %sp                            
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    static char doneConstructors;                                     
    char doneCons;                                                    
  #endif                                                              
                                                                      
  executing = _Thread_Executing;                                      
4000db34:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
4000db38:	e0 00 60 cc 	ld  [ %g1 + 0xcc ], %l0	! 4001c4cc <_Thread_Executing>
  /*                                                                  
   * Some CPUs need to tinker with the call frame or registers when the
   * thread actually begins to execute for the first time.  This is a 
   * hook point where the port gets a shot at doing whatever it requires.
   */                                                                 
  _Context_Initialization_at_thread_begin();                          
4000db3c:	3f 10 00 36 	sethi  %hi(0x4000d800), %i7                    
4000db40:	be 17 e3 30 	or  %i7, 0x330, %i7	! 4000db30 <_Thread_Handler>
  /*                                                                  
   * have to put level into a register for those cpu's that use       
   * inline asm here                                                  
   */                                                                 
                                                                      
  level = executing->Start.isr_level;                                 
4000db44:	d0 04 20 b8 	ld  [ %l0 + 0xb8 ], %o0                        
  _ISR_Set_level(level);                                              
4000db48:	7f ff d0 85 	call  40001d5c <sparc_enable_interrupts>       
4000db4c:	91 2a 20 08 	sll  %o0, 8, %o0                               
                                                                      
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    doneCons = doneConstructors;                                      
4000db50:	03 10 00 70 	sethi  %hi(0x4001c000), %g1                    
    doneConstructors = 1;                                             
4000db54:	84 10 20 01 	mov  1, %g2                                    
                                                                      
  level = executing->Start.isr_level;                                 
  _ISR_Set_level(level);                                              
                                                                      
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    doneCons = doneConstructors;                                      
4000db58:	e2 08 60 8c 	ldub  [ %g1 + 0x8c ], %l1                      
  /*                                                                  
   * 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 );                         
4000db5c:	90 10 00 10 	mov  %l0, %o0                                  
4000db60:	7f ff ee 49 	call  40009484 <_User_extensions_Thread_begin> 
4000db64:	c4 28 60 8c 	stb  %g2, [ %g1 + 0x8c ]                       
                                                                      
  /*                                                                  
   *  At this point, the dispatch disable level BETTER be 1.          
   */                                                                 
  _Thread_Enable_dispatch();                                          
4000db68:	7f ff ea 8f 	call  400085a4 <_Thread_Enable_dispatch>       
4000db6c:	a3 2c 60 18 	sll  %l1, 0x18, %l1                            
    /*                                                                
     *  _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) */ {                 
4000db70:	80 a4 60 00 	cmp  %l1, 0                                    
4000db74:	32 80 00 05 	bne,a   4000db88 <_Thread_Handler+0x58>        
4000db78:	c2 04 20 a0 	ld  [ %l0 + 0xa0 ], %g1                        
      INIT_NAME ();                                                   
4000db7c:	40 00 37 57 	call  4001b8d8 <_init>                         
4000db80:	01 00 00 00 	nop                                            
    }                                                                 
  #endif                                                              
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
4000db84:	c2 04 20 a0 	ld  [ %l0 + 0xa0 ], %g1                        
4000db88:	80 a0 60 00 	cmp  %g1, 0                                    
4000db8c:	12 80 00 06 	bne  4000dba4 <_Thread_Handler+0x74>           <== NEVER TAKEN
4000db90:	01 00 00 00 	nop                                            
    executing->Wait.return_argument =                                 
      (*(Thread_Entry_numeric) executing->Start.entry_point)(         
4000db94:	c2 04 20 9c 	ld  [ %l0 + 0x9c ], %g1                        
4000db98:	9f c0 40 00 	call  %g1                                      
4000db9c:	d0 04 20 a8 	ld  [ %l0 + 0xa8 ], %o0                        
      INIT_NAME ();                                                   
    }                                                                 
  #endif                                                              
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
    executing->Wait.return_argument =                                 
4000dba0:	d0 24 20 28 	st  %o0, [ %l0 + 0x28 ]                        
   *  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 );                       
4000dba4:	7f ff ee 49 	call  400094c8 <_User_extensions_Thread_exitted>
4000dba8:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
  _Internal_error_Occurred(                                           
4000dbac:	90 10 20 00 	clr  %o0                                       
4000dbb0:	92 10 20 01 	mov  1, %o1                                    
4000dbb4:	7f ff e6 ce 	call  400076ec <_Internal_error_Occurred>      
4000dbb8:	94 10 20 06 	mov  6, %o2                                    
                                                                      

40008684 <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) {
40008684:	9d e3 bf a0 	save  %sp, -96, %sp                            
40008688:	c2 07 a0 6c 	ld  [ %fp + 0x6c ], %g1                        
                                                                      
  /*                                                                  
   *  Zero out all the allocated memory fields                        
   */                                                                 
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    the_thread->API_Extensions[i] = NULL;                             
4000868c:	c0 26 61 5c 	clr  [ %i1 + 0x15c ]                           
  Thread_CPU_budget_algorithms          budget_algorithm,             
  Thread_CPU_budget_algorithm_callout   budget_callout,               
  uint32_t                              isr_level,                    
  Objects_Name                          name                          
)                                                                     
{                                                                     
40008690:	e0 00 40 00 	ld  [ %g1 ], %l0                               
                                                                      
  /*                                                                  
   *  Zero out all the allocated memory fields                        
   */                                                                 
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    the_thread->API_Extensions[i] = NULL;                             
40008694:	c0 26 61 60 	clr  [ %i1 + 0x160 ]                           
40008698:	c0 26 61 64 	clr  [ %i1 + 0x164 ]                           
                                                                      
  extensions_area = NULL;                                             
  the_thread->libc_reent = NULL;                                      
4000869c:	c0 26 61 58 	clr  [ %i1 + 0x158 ]                           
  Thread_CPU_budget_algorithms          budget_algorithm,             
  Thread_CPU_budget_algorithm_callout   budget_callout,               
  uint32_t                              isr_level,                    
  Objects_Name                          name                          
)                                                                     
{                                                                     
400086a0:	e2 0f a0 5f 	ldub  [ %fp + 0x5f ], %l1                      
                                                                      
  /*                                                                  
   *  Allocate and Initialize the stack for this thread.              
   */                                                                 
  #if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) 
    actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
400086a4:	90 10 00 19 	mov  %i1, %o0                                  
400086a8:	40 00 02 90 	call  400090e8 <_Thread_Stack_Allocate>        
400086ac:	92 10 00 1b 	mov  %i3, %o1                                  
    if ( !actual_stack_size || actual_stack_size < stack_size )       
400086b0:	80 a2 00 1b 	cmp  %o0, %i3                                  
400086b4:	0a 80 00 04 	bcs  400086c4 <_Thread_Initialize+0x40>        
400086b8:	80 a2 20 00 	cmp  %o0, 0                                    
400086bc:	32 80 00 04 	bne,a   400086cc <_Thread_Initialize+0x48>     <== ALWAYS TAKEN
400086c0:	c4 06 60 c8 	ld  [ %i1 + 0xc8 ], %g2                        
400086c4:	81 c7 e0 08 	ret                                            
400086c8:	91 e8 20 00 	restore  %g0, 0, %o0                           
  #endif                                                              
                                                                      
  /*                                                                  
   *  Allocate the extensions area for this thread                    
   */                                                                 
  if ( _Thread_Maximum_extensions ) {                                 
400086cc:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
400086d0:	c2 00 60 ac 	ld  [ %g1 + 0xac ], %g1	! 4001c4ac <_Thread_Maximum_extensions>
  Stack_Control *the_stack,                                           
  void          *starting_address,                                    
  size_t         size                                                 
)                                                                     
{                                                                     
  the_stack->area = starting_address;                                 
400086d4:	c4 26 60 c4 	st  %g2, [ %i1 + 0xc4 ]                        
  the_stack->size = size;                                             
400086d8:	d0 26 60 c0 	st  %o0, [ %i1 + 0xc0 ]                        
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
400086dc:	c0 26 60 50 	clr  [ %i1 + 0x50 ]                            
  the_watchdog->routine   = routine;                                  
400086e0:	c0 26 60 64 	clr  [ %i1 + 0x64 ]                            
  the_watchdog->id        = id;                                       
400086e4:	c0 26 60 68 	clr  [ %i1 + 0x68 ]                            
  the_watchdog->user_data = user_data;                                
400086e8:	c0 26 60 6c 	clr  [ %i1 + 0x6c ]                            
400086ec:	80 a0 60 00 	cmp  %g1, 0                                    
400086f0:	02 80 00 08 	be  40008710 <_Thread_Initialize+0x8c>         
400086f4:	b6 10 20 00 	clr  %i3                                       
    extensions_area = _Workspace_Allocate(                            
400086f8:	82 00 60 01 	inc  %g1                                       
400086fc:	40 00 04 a3 	call  40009988 <_Workspace_Allocate>           
40008700:	91 28 60 02 	sll  %g1, 2, %o0                               
      (_Thread_Maximum_extensions + 1) * sizeof( void * )             
    );                                                                
    if ( !extensions_area )                                           
40008704:	b6 92 20 00 	orcc  %o0, 0, %i3                              
40008708:	22 80 00 2d 	be,a   400087bc <_Thread_Initialize+0x138>     
4000870c:	d0 06 61 58 	ld  [ %i1 + 0x158 ], %o0                       
   * if they are linked to the thread. An extension user may          
   * create the extension long after tasks have been created          
   * so they cannot rely on the thread create user extension          
   * call.                                                            
   */                                                                 
  if ( the_thread->extensions ) {                                     
40008710:	80 a6 e0 00 	cmp  %i3, 0                                    
40008714:	02 80 00 0c 	be  40008744 <_Thread_Initialize+0xc0>         
40008718:	f6 26 61 68 	st  %i3, [ %i1 + 0x168 ]                       
    for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )              
4000871c:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
40008720:	c4 00 60 ac 	ld  [ %g1 + 0xac ], %g2	! 4001c4ac <_Thread_Maximum_extensions>
40008724:	10 80 00 05 	b  40008738 <_Thread_Initialize+0xb4>          
40008728:	82 10 20 00 	clr  %g1                                       
      the_thread->extensions[i] = NULL;                               
4000872c:	87 28 60 02 	sll  %g1, 2, %g3                               
   * create the extension long after tasks have been created          
   * so they cannot rely on the thread create user extension          
   * call.                                                            
   */                                                                 
  if ( the_thread->extensions ) {                                     
    for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )              
40008730:	82 00 60 01 	inc  %g1                                       
      the_thread->extensions[i] = NULL;                               
40008734:	c0 21 00 03 	clr  [ %g4 + %g3 ]                             
   * create the extension long after tasks have been created          
   * so they cannot rely on the thread create user extension          
   * call.                                                            
   */                                                                 
  if ( the_thread->extensions ) {                                     
    for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )              
40008738:	80 a0 40 02 	cmp  %g1, %g2                                  
4000873c:	28 bf ff fc 	bleu,a   4000872c <_Thread_Initialize+0xa8>    
40008740:	c8 06 61 68 	ld  [ %i1 + 0x168 ], %g4                       
  /*                                                                  
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
  the_thread->Start.budget_algorithm = budget_algorithm;              
40008744:	c2 07 a0 60 	ld  [ %fp + 0x60 ], %g1                        
  #if defined(RTEMS_ITRON_API)                                        
    the_thread->suspend_count         = 0;                            
  #endif                                                              
  the_thread->real_priority           = priority;                     
  the_thread->Start.initial_priority  = priority;                     
  _Thread_Set_priority( the_thread, priority );                       
40008748:	92 10 00 1d 	mov  %i5, %o1                                  
  /*                                                                  
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
  the_thread->Start.budget_algorithm = budget_algorithm;              
4000874c:	c2 26 60 b0 	st  %g1, [ %i1 + 0xb0 ]                        
  the_thread->Start.budget_callout   = budget_callout;                
40008750:	c2 07 a0 64 	ld  [ %fp + 0x64 ], %g1                        
  #if defined(RTEMS_ITRON_API)                                        
    the_thread->suspend_count         = 0;                            
  #endif                                                              
  the_thread->real_priority           = priority;                     
  the_thread->Start.initial_priority  = priority;                     
  _Thread_Set_priority( the_thread, priority );                       
40008754:	90 10 00 19 	mov  %i1, %o0                                  
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
  the_thread->Start.budget_algorithm = budget_algorithm;              
  the_thread->Start.budget_callout   = budget_callout;                
40008758:	c2 26 60 b4 	st  %g1, [ %i1 + 0xb4 ]                        
      case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:                       
	break;                                                               
    #endif                                                            
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
4000875c:	c2 07 a0 68 	ld  [ %fp + 0x68 ], %g1                        
                                                                      
  /*                                                                  
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
40008760:	e2 2e 60 ac 	stb  %l1, [ %i1 + 0xac ]                       
      case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:                       
	break;                                                               
    #endif                                                            
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
40008764:	c2 26 60 b8 	st  %g1, [ %i1 + 0xb8 ]                        
                                                                      
  the_thread->current_state           = STATES_DORMANT;               
40008768:	82 10 20 01 	mov  1, %g1                                    
  the_thread->Wait.queue              = NULL;                         
4000876c:	c0 26 60 44 	clr  [ %i1 + 0x44 ]                            
    #endif                                                            
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
                                                                      
  the_thread->current_state           = STATES_DORMANT;               
40008770:	c2 26 60 10 	st  %g1, [ %i1 + 0x10 ]                        
  the_thread->Wait.queue              = NULL;                         
  the_thread->resource_count          = 0;                            
40008774:	c0 26 60 1c 	clr  [ %i1 + 0x1c ]                            
  #if defined(RTEMS_ITRON_API)                                        
    the_thread->suspend_count         = 0;                            
  #endif                                                              
  the_thread->real_priority           = priority;                     
40008778:	fa 26 60 18 	st  %i5, [ %i1 + 0x18 ]                        
  the_thread->Start.initial_priority  = priority;                     
  _Thread_Set_priority( the_thread, priority );                       
4000877c:	40 00 01 b9 	call  40008e60 <_Thread_Set_priority>          
40008780:	fa 26 60 bc 	st  %i5, [ %i1 + 0xbc ]                        
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
40008784:	c2 16 60 0a 	lduh  [ %i1 + 0xa ], %g1                       
40008788:	c4 06 20 1c 	ld  [ %i0 + 0x1c ], %g2                        
4000878c:	83 28 60 02 	sll  %g1, 2, %g1                               
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
40008790:	e0 26 60 0c 	st  %l0, [ %i1 + 0xc ]                         
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
40008794:	f2 20 80 01 	st  %i1, [ %g2 + %g1 ]                         
                                                                      
  /*                                                                  
   *  Initialize the CPU usage statistics                             
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Set_to_zero( &the_thread->cpu_time_used );             
40008798:	c0 26 60 84 	clr  [ %i1 + 0x84 ]                            
4000879c:	c0 26 60 88 	clr  [ %i1 + 0x88 ]                            
   *  enabled when we get here.  We want to be able to run the        
   *  user extensions with dispatching enabled.  The Allocator        
   *  Mutex provides sufficient protection to let the user extensions 
   *  run safely.                                                     
   */                                                                 
  extension_status = _User_extensions_Thread_create( the_thread );    
400087a0:	90 10 00 19 	mov  %i1, %o0                                  
400087a4:	40 00 03 6d 	call  40009558 <_User_extensions_Thread_create>
400087a8:	b0 10 20 01 	mov  1, %i0                                    
  if ( extension_status )                                             
400087ac:	80 8a 20 ff 	btst  0xff, %o0                                
400087b0:	12 80 00 22 	bne  40008838 <_Thread_Initialize+0x1b4>       
400087b4:	01 00 00 00 	nop                                            
    return true;                                                      
                                                                      
failed:                                                               
  if ( the_thread->libc_reent )                                       
400087b8:	d0 06 61 58 	ld  [ %i1 + 0x158 ], %o0                       
400087bc:	80 a2 20 00 	cmp  %o0, 0                                    
400087c0:	22 80 00 05 	be,a   400087d4 <_Thread_Initialize+0x150>     
400087c4:	d0 06 61 5c 	ld  [ %i1 + 0x15c ], %o0                       
    _Workspace_Free( the_thread->libc_reent );                        
400087c8:	40 00 04 79 	call  400099ac <_Workspace_Free>               
400087cc:	01 00 00 00 	nop                                            
                                                                      
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    if ( the_thread->API_Extensions[i] )                              
400087d0:	d0 06 61 5c 	ld  [ %i1 + 0x15c ], %o0                       
400087d4:	80 a2 20 00 	cmp  %o0, 0                                    
400087d8:	22 80 00 05 	be,a   400087ec <_Thread_Initialize+0x168>     
400087dc:	d0 06 61 60 	ld  [ %i1 + 0x160 ], %o0                       
      _Workspace_Free( the_thread->API_Extensions[i] );               
400087e0:	40 00 04 73 	call  400099ac <_Workspace_Free>               
400087e4:	01 00 00 00 	nop                                            
failed:                                                               
  if ( the_thread->libc_reent )                                       
    _Workspace_Free( the_thread->libc_reent );                        
                                                                      
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    if ( the_thread->API_Extensions[i] )                              
400087e8:	d0 06 61 60 	ld  [ %i1 + 0x160 ], %o0                       
400087ec:	80 a2 20 00 	cmp  %o0, 0                                    
400087f0:	22 80 00 05 	be,a   40008804 <_Thread_Initialize+0x180>     <== ALWAYS TAKEN
400087f4:	d0 06 61 64 	ld  [ %i1 + 0x164 ], %o0                       
      _Workspace_Free( the_thread->API_Extensions[i] );               
400087f8:	40 00 04 6d 	call  400099ac <_Workspace_Free>               <== NOT EXECUTED
400087fc:	01 00 00 00 	nop                                            <== NOT EXECUTED
failed:                                                               
  if ( the_thread->libc_reent )                                       
    _Workspace_Free( the_thread->libc_reent );                        
                                                                      
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    if ( the_thread->API_Extensions[i] )                              
40008800:	d0 06 61 64 	ld  [ %i1 + 0x164 ], %o0                       <== NOT EXECUTED
40008804:	80 a2 20 00 	cmp  %o0, 0                                    
40008808:	02 80 00 05 	be  4000881c <_Thread_Initialize+0x198>        <== ALWAYS TAKEN
4000880c:	80 a6 e0 00 	cmp  %i3, 0                                    
      _Workspace_Free( the_thread->API_Extensions[i] );               
40008810:	40 00 04 67 	call  400099ac <_Workspace_Free>               <== NOT EXECUTED
40008814:	01 00 00 00 	nop                                            <== NOT EXECUTED
                                                                      
  if ( extensions_area )                                              
40008818:	80 a6 e0 00 	cmp  %i3, 0                                    <== NOT EXECUTED
4000881c:	02 80 00 05 	be  40008830 <_Thread_Initialize+0x1ac>        
40008820:	90 10 00 19 	mov  %i1, %o0                                  
    (void) _Workspace_Free( extensions_area );                        
40008824:	40 00 04 62 	call  400099ac <_Workspace_Free>               
40008828:	90 10 00 1b 	mov  %i3, %o0                                  
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    if ( fp_area )                                                    
      (void) _Workspace_Free( fp_area );                              
  #endif                                                              
                                                                      
   _Thread_Stack_Free( the_thread );                                  
4000882c:	90 10 00 19 	mov  %i1, %o0                                  
40008830:	40 00 02 45 	call  40009144 <_Thread_Stack_Free>            
40008834:	b0 10 20 00 	clr  %i0                                       
  return false;                                                       
                                                                      
                                                                      
}                                                                     
40008838:	81 c7 e0 08 	ret                                            
4000883c:	81 e8 00 00 	restore                                        
                                                                      

4000c684 <_Thread_Reset_timeslice>: * ready chain * select heir */ void _Thread_Reset_timeslice( void ) {
4000c684:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level       level;                                              
  Thread_Control *executing;                                          
  Chain_Control  *ready;                                              
                                                                      
  executing = _Thread_Executing;                                      
4000c688:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
4000c68c:	e0 00 60 cc 	ld  [ %g1 + 0xcc ], %l0	! 4001c4cc <_Thread_Executing>
  ready     = executing->ready;                                       
  _ISR_Disable( level );                                              
4000c690:	7f ff d5 af 	call  40001d4c <sparc_disable_interrupts>      
4000c694:	e2 04 20 8c 	ld  [ %l0 + 0x8c ], %l1                        
4000c698:	b0 10 00 08 	mov  %o0, %i0                                  
    if ( _Chain_Has_only_one_node( ready ) ) {                        
4000c69c:	c4 04 40 00 	ld  [ %l1 ], %g2                               
4000c6a0:	c2 04 60 08 	ld  [ %l1 + 8 ], %g1                           
4000c6a4:	80 a0 80 01 	cmp  %g2, %g1                                  
4000c6a8:	32 80 00 03 	bne,a   4000c6b4 <_Thread_Reset_timeslice+0x30>
4000c6ac:	c2 04 00 00 	ld  [ %l0 ], %g1                               
      _ISR_Enable( level );                                           
4000c6b0:	30 80 00 18 	b,a   4000c710 <_Thread_Reset_timeslice+0x8c>  
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
4000c6b4:	c4 04 20 04 	ld  [ %l0 + 4 ], %g2                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
4000c6b8:	86 04 60 04 	add  %l1, 4, %g3                               
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
  next->previous = previous;                                          
  previous->next = next;                                              
4000c6bc:	c2 20 80 00 	st  %g1, [ %g2 ]                               
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
4000c6c0:	c6 24 00 00 	st  %g3, [ %l0 ]                               
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
  next->previous = previous;                                          
4000c6c4:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
  old_last_node       = the_chain->last;                              
4000c6c8:	c2 04 60 08 	ld  [ %l1 + 8 ], %g1                           
  the_chain->last     = the_node;                                     
4000c6cc:	e0 24 60 08 	st  %l0, [ %l1 + 8 ]                           
  old_last_node->next = the_node;                                     
  the_node->previous  = old_last_node;                                
4000c6d0:	c2 24 20 04 	st  %g1, [ %l0 + 4 ]                           
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
  old_last_node       = the_chain->last;                              
  the_chain->last     = the_node;                                     
  old_last_node->next = the_node;                                     
4000c6d4:	e0 20 40 00 	st  %l0, [ %g1 ]                               
      return;                                                         
    }                                                                 
    _Chain_Extract_unprotected( &executing->Object.Node );            
    _Chain_Append_unprotected( ready, &executing->Object.Node );      
                                                                      
  _ISR_Flash( level );                                                
4000c6d8:	7f ff d5 a1 	call  40001d5c <sparc_enable_interrupts>       
4000c6dc:	01 00 00 00 	nop                                            
4000c6e0:	7f ff d5 9b 	call  40001d4c <sparc_disable_interrupts>      
4000c6e4:	01 00 00 00 	nop                                            
                                                                      
    if ( _Thread_Is_heir( executing ) )                               
4000c6e8:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
4000c6ec:	c4 00 60 9c 	ld  [ %g1 + 0x9c ], %g2	! 4001c49c <_Thread_Heir>
4000c6f0:	80 a4 00 02 	cmp  %l0, %g2                                  
4000c6f4:	12 80 00 05 	bne  4000c708 <_Thread_Reset_timeslice+0x84>   <== NEVER TAKEN
4000c6f8:	84 10 20 01 	mov  1, %g2                                    
      _Thread_Heir = (Thread_Control *) ready->first;                 
4000c6fc:	c4 04 40 00 	ld  [ %l1 ], %g2                               
4000c700:	c4 20 60 9c 	st  %g2, [ %g1 + 0x9c ]                        
                                                                      
    _Context_Switch_necessary = true;                                 
4000c704:	84 10 20 01 	mov  1, %g2                                    
4000c708:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
4000c70c:	c4 28 60 dc 	stb  %g2, [ %g1 + 0xdc ]	! 4001c4dc <_Context_Switch_necessary>
                                                                      
  _ISR_Enable( level );                                               
4000c710:	7f ff d5 93 	call  40001d5c <sparc_enable_interrupts>       
4000c714:	81 e8 00 00 	restore                                        
                                                                      

4000d26c <_Thread_Resume>: void _Thread_Resume( Thread_Control *the_thread, bool force ) {
4000d26c:	9d e3 bf a0 	save  %sp, -96, %sp                            
                                                                      
  ISR_Level       level;                                              
  States_Control  current_state;                                      
                                                                      
  _ISR_Disable( level );                                              
4000d270:	7f ff d3 0b 	call  40001e9c <sparc_disable_interrupts>      
4000d274:	a0 10 00 18 	mov  %i0, %l0                                  
4000d278:	b0 10 00 08 	mov  %o0, %i0                                  
      _ISR_Enable( level );                                           
      return;                                                         
    }                                                                 
  #endif                                                              
                                                                      
  current_state = the_thread->current_state;                          
4000d27c:	c2 04 20 10 	ld  [ %l0 + 0x10 ], %g1                        
  if ( current_state & STATES_SUSPENDED ) {                           
4000d280:	80 88 60 02 	btst  2, %g1                                   
4000d284:	02 80 00 2c 	be  4000d334 <_Thread_Resume+0xc8>             <== NEVER TAKEN
4000d288:	82 08 7f fd 	and  %g1, -3, %g1                              
    current_state =                                                   
    the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state);
                                                                      
    if ( _States_Is_ready( current_state ) ) {                        
4000d28c:	80 a0 60 00 	cmp  %g1, 0                                    
4000d290:	12 80 00 29 	bne  4000d334 <_Thread_Resume+0xc8>            
4000d294:	c2 24 20 10 	st  %g1, [ %l0 + 0x10 ]                        
                                                                      
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (                  
  Priority_Information *the_priority_map                              
)                                                                     
{                                                                     
  *the_priority_map->minor |= the_priority_map->ready_minor;          
4000d298:	c4 04 20 90 	ld  [ %l0 + 0x90 ], %g2                        
                                                                      
      _Priority_Add_to_bit_map( &the_thread->Priority_map );          
                                                                      
      _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
4000d29c:	c2 04 20 8c 	ld  [ %l0 + 0x8c ], %g1                        
4000d2a0:	c8 10 80 00 	lduh  [ %g2 ], %g4                             
4000d2a4:	c6 14 20 96 	lduh  [ %l0 + 0x96 ], %g3                      
4000d2a8:	86 11 00 03 	or  %g4, %g3, %g3                              
4000d2ac:	c6 30 80 00 	sth  %g3, [ %g2 ]                              
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
4000d2b0:	84 00 60 04 	add  %g1, 4, %g2                               
  _Priority_Major_bit_map  |= the_priority_map->ready_major;          
4000d2b4:	da 14 20 94 	lduh  [ %l0 + 0x94 ], %o5                      
4000d2b8:	c4 24 00 00 	st  %g2, [ %l0 ]                               
4000d2bc:	07 10 00 89 	sethi  %hi(0x40022400), %g3                    
  old_last_node       = the_chain->last;                              
4000d2c0:	c4 00 60 08 	ld  [ %g1 + 8 ], %g2                           
4000d2c4:	c8 10 e2 80 	lduh  [ %g3 + 0x280 ], %g4                     
  the_chain->last     = the_node;                                     
4000d2c8:	e0 20 60 08 	st  %l0, [ %g1 + 8 ]                           
  old_last_node->next = the_node;                                     
  the_node->previous  = old_last_node;                                
4000d2cc:	c4 24 20 04 	st  %g2, [ %l0 + 4 ]                           
4000d2d0:	82 13 40 04 	or  %o5, %g4, %g1                              
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
  old_last_node       = the_chain->last;                              
  the_chain->last     = the_node;                                     
  old_last_node->next = the_node;                                     
4000d2d4:	e0 20 80 00 	st  %l0, [ %g2 ]                               
4000d2d8:	c2 30 e2 80 	sth  %g1, [ %g3 + 0x280 ]                      
                                                                      
      _ISR_Flash( level );                                            
4000d2dc:	7f ff d2 f4 	call  40001eac <sparc_enable_interrupts>       
4000d2e0:	01 00 00 00 	nop                                            
4000d2e4:	7f ff d2 ee 	call  40001e9c <sparc_disable_interrupts>      
4000d2e8:	01 00 00 00 	nop                                            
                                                                      
      if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
4000d2ec:	05 10 00 89 	sethi  %hi(0x40022400), %g2                    
4000d2f0:	c6 00 a2 5c 	ld  [ %g2 + 0x25c ], %g3	! 4002265c <_Thread_Heir>
4000d2f4:	c2 04 20 14 	ld  [ %l0 + 0x14 ], %g1                        
4000d2f8:	c6 00 e0 14 	ld  [ %g3 + 0x14 ], %g3                        
4000d2fc:	80 a0 40 03 	cmp  %g1, %g3                                  
4000d300:	1a 80 00 0d 	bcc  4000d334 <_Thread_Resume+0xc8>            
4000d304:	07 10 00 89 	sethi  %hi(0x40022400), %g3                    
        _Thread_Heir = the_thread;                                    
        if ( _Thread_Executing->is_preemptible ||                     
4000d308:	c6 00 e2 8c 	ld  [ %g3 + 0x28c ], %g3	! 4002268c <_Thread_Executing>
      _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;                                    
4000d30c:	e0 20 a2 5c 	st  %l0, [ %g2 + 0x25c ]                       
        if ( _Thread_Executing->is_preemptible ||                     
4000d310:	c4 08 e0 75 	ldub  [ %g3 + 0x75 ], %g2                      
4000d314:	80 a0 a0 00 	cmp  %g2, 0                                    
4000d318:	12 80 00 05 	bne  4000d32c <_Thread_Resume+0xc0>            
4000d31c:	84 10 20 01 	mov  1, %g2                                    
4000d320:	80 a0 60 00 	cmp  %g1, 0                                    
4000d324:	12 80 00 04 	bne  4000d334 <_Thread_Resume+0xc8>            <== ALWAYS TAKEN
4000d328:	01 00 00 00 	nop                                            
             the_thread->current_priority == 0 )                      
          _Context_Switch_necessary = true;                           
4000d32c:	03 10 00 89 	sethi  %hi(0x40022400), %g1                    
4000d330:	c4 28 62 9c 	stb  %g2, [ %g1 + 0x29c ]	! 4002269c <_Context_Switch_necessary>
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
4000d334:	7f ff d2 de 	call  40001eac <sparc_enable_interrupts>       
4000d338:	81 e8 00 00 	restore                                        
                                                                      

40009270 <_Thread_Yield_processor>: * ready chain * select heir */ void _Thread_Yield_processor( void ) {
40009270:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level       level;                                              
  Thread_Control *executing;                                          
  Chain_Control  *ready;                                              
                                                                      
  executing = _Thread_Executing;                                      
40009274:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
40009278:	e0 00 60 cc 	ld  [ %g1 + 0xcc ], %l0	! 4001c4cc <_Thread_Executing>
  ready     = executing->ready;                                       
  _ISR_Disable( level );                                              
4000927c:	7f ff e2 b4 	call  40001d4c <sparc_disable_interrupts>      
40009280:	e2 04 20 8c 	ld  [ %l0 + 0x8c ], %l1                        
40009284:	b0 10 00 08 	mov  %o0, %i0                                  
    if ( !_Chain_Has_only_one_node( ready ) ) {                       
40009288:	c4 04 40 00 	ld  [ %l1 ], %g2                               
4000928c:	c2 04 60 08 	ld  [ %l1 + 8 ], %g1                           
40009290:	80 a0 80 01 	cmp  %g2, %g1                                  
40009294:	02 80 00 17 	be  400092f0 <_Thread_Yield_processor+0x80>    
40009298:	25 10 00 71 	sethi  %hi(0x4001c400), %l2                    
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
4000929c:	c2 04 00 00 	ld  [ %l0 ], %g1                               
  previous       = the_node->previous;                                
400092a0:	c4 04 20 04 	ld  [ %l0 + 4 ], %g2                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
400092a4:	86 04 60 04 	add  %l1, 4, %g3                               
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
  next->previous = previous;                                          
  previous->next = next;                                              
400092a8:	c2 20 80 00 	st  %g1, [ %g2 ]                               
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
400092ac:	c6 24 00 00 	st  %g3, [ %l0 ]                               
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
  next->previous = previous;                                          
400092b0:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
  old_last_node       = the_chain->last;                              
400092b4:	c2 04 60 08 	ld  [ %l1 + 8 ], %g1                           
  the_chain->last     = the_node;                                     
400092b8:	e0 24 60 08 	st  %l0, [ %l1 + 8 ]                           
  old_last_node->next = the_node;                                     
  the_node->previous  = old_last_node;                                
400092bc:	c2 24 20 04 	st  %g1, [ %l0 + 4 ]                           
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
  old_last_node       = the_chain->last;                              
  the_chain->last     = the_node;                                     
  old_last_node->next = the_node;                                     
400092c0:	e0 20 40 00 	st  %l0, [ %g1 ]                               
      _Chain_Extract_unprotected( &executing->Object.Node );          
      _Chain_Append_unprotected( ready, &executing->Object.Node );    
                                                                      
      _ISR_Flash( level );                                            
400092c4:	7f ff e2 a6 	call  40001d5c <sparc_enable_interrupts>       
400092c8:	01 00 00 00 	nop                                            
400092cc:	7f ff e2 a0 	call  40001d4c <sparc_disable_interrupts>      
400092d0:	01 00 00 00 	nop                                            
                                                                      
      if ( _Thread_Is_heir( executing ) )                             
400092d4:	c2 04 a0 9c 	ld  [ %l2 + 0x9c ], %g1                        
400092d8:	80 a4 00 01 	cmp  %l0, %g1                                  
400092dc:	12 80 00 09 	bne  40009300 <_Thread_Yield_processor+0x90>   <== NEVER TAKEN
400092e0:	84 10 20 01 	mov  1, %g2                                    
        _Thread_Heir = (Thread_Control *) ready->first;               
400092e4:	c2 04 40 00 	ld  [ %l1 ], %g1                               
400092e8:	10 80 00 06 	b  40009300 <_Thread_Yield_processor+0x90>     
400092ec:	c2 24 a0 9c 	st  %g1, [ %l2 + 0x9c ]                        
      _Context_Switch_necessary = true;                               
    }                                                                 
    else if ( !_Thread_Is_heir( executing ) )                         
400092f0:	c2 04 a0 9c 	ld  [ %l2 + 0x9c ], %g1                        
400092f4:	80 a4 00 01 	cmp  %l0, %g1                                  
400092f8:	02 80 00 04 	be  40009308 <_Thread_Yield_processor+0x98>    <== ALWAYS TAKEN
400092fc:	84 10 20 01 	mov  1, %g2                                    
      _Context_Switch_necessary = true;                               
40009300:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
40009304:	c4 28 60 dc 	stb  %g2, [ %g1 + 0xdc ]	! 4001c4dc <_Context_Switch_necessary>
                                                                      
  _ISR_Enable( level );                                               
40009308:	7f ff e2 95 	call  40001d5c <sparc_enable_interrupts>       
4000930c:	81 e8 00 00 	restore                                        
                                                                      

40008b54 <_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 ) {
40008b54:	9d e3 bf a0 	save  %sp, -96, %sp                            
  Priority_Control     priority;                                      
  States_Control       block_state;                                   
                                                                      
  _Chain_Initialize_empty( &the_thread->Wait.Block2n );               
                                                                      
  priority     = the_thread->current_priority;                        
40008b58:	e0 06 60 14 	ld  [ %i1 + 0x14 ], %l0                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
40008b5c:	82 06 60 3c 	add  %i1, 0x3c, %g1                            
  the_chain->permanent_null = NULL;                                   
40008b60:	c0 26 60 3c 	clr  [ %i1 + 0x3c ]                            
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
40008b64:	c2 26 60 38 	st  %g1, [ %i1 + 0x38 ]                        
  the_chain->permanent_null = NULL;                                   
  the_chain->last           = _Chain_Head(the_chain);                 
40008b68:	82 06 60 38 	add  %i1, 0x38, %g1                            
40008b6c:	c2 26 60 40 	st  %g1, [ %i1 + 0x40 ]                        
  the_thread->Wait.queue = the_thread_queue;                          
  _ISR_Enable( level );                                               
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
                                                                      
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
40008b70:	2d 10 00 6e 	sethi  %hi(0x4001b800), %l6                    
                                                                      
  _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 ];  
40008b74:	83 34 20 06 	srl  %l0, 6, %g1                               
  block_state  = the_thread_queue->state;                             
                                                                      
  if ( _Thread_queue_Is_reverse_search( priority ) )                  
40008b78:	80 8c 20 20 	btst  0x20, %l0                                
                                                                      
  _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 ];  
40008b7c:	a7 28 60 04 	sll  %g1, 4, %l3                               
  the_thread->Wait.queue = the_thread_queue;                          
  _ISR_Enable( level );                                               
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
                                                                      
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
40008b80:	ac 15 a1 d4 	or  %l6, 0x1d4, %l6                            
                                                                      
  _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 ];  
40008b84:	83 28 60 02 	sll  %g1, 2, %g1                               
  block_state  = the_thread_queue->state;                             
40008b88:	ea 06 20 38 	ld  [ %i0 + 0x38 ], %l5                        
                                                                      
  _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 ];  
40008b8c:	a6 24 c0 01 	sub  %l3, %g1, %l3                             
  block_state  = the_thread_queue->state;                             
                                                                      
  if ( _Thread_queue_Is_reverse_search( priority ) )                  
40008b90:	12 80 00 28 	bne  40008c30 <_Thread_queue_Enqueue_priority+0xdc>
40008b94:	a6 06 00 13 	add  %i0, %l3, %l3                             
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
40008b98:	ac 04 e0 04 	add  %l3, 4, %l6                               
    goto restart_reverse_search;                                      
                                                                      
restart_forward_search:                                               
  search_priority = PRIORITY_MINIMUM - 1;                             
  _ISR_Disable( level );                                              
40008b9c:	7f ff e4 6c 	call  40001d4c <sparc_disable_interrupts>      
40008ba0:	01 00 00 00 	nop                                            
40008ba4:	a4 10 00 08 	mov  %o0, %l2                                  
  search_thread = (Thread_Control *) header->first;                   
40008ba8:	a8 10 3f ff 	mov  -1, %l4                                   
  while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {  
40008bac:	10 80 00 10 	b  40008bec <_Thread_queue_Enqueue_priority+0x98>
40008bb0:	e2 04 c0 00 	ld  [ %l3 ], %l1                               
    search_priority = search_thread->current_priority;                
    if ( priority <= search_priority )                                
40008bb4:	80 a4 00 14 	cmp  %l0, %l4                                  
40008bb8:	28 80 00 11 	bleu,a   40008bfc <_Thread_queue_Enqueue_priority+0xa8>
40008bbc:	c2 06 20 30 	ld  [ %i0 + 0x30 ], %g1                        
      break;                                                          
    search_priority = search_thread->current_priority;                
    if ( priority <= search_priority )                                
      break;                                                          
#endif                                                                
    _ISR_Flash( level );                                              
40008bc0:	7f ff e4 67 	call  40001d5c <sparc_enable_interrupts>       
40008bc4:	90 10 00 12 	mov  %l2, %o0                                  
40008bc8:	7f ff e4 61 	call  40001d4c <sparc_disable_interrupts>      
40008bcc:	01 00 00 00 	nop                                            
    if ( !_States_Are_set( search_thread->current_state, block_state) ) {
40008bd0:	c2 04 60 10 	ld  [ %l1 + 0x10 ], %g1                        
40008bd4:	80 8d 40 01 	btst  %l5, %g1                                 
40008bd8:	32 80 00 05 	bne,a   40008bec <_Thread_queue_Enqueue_priority+0x98><== ALWAYS TAKEN
40008bdc:	e2 04 40 00 	ld  [ %l1 ], %l1                               
      _ISR_Enable( level );                                           
40008be0:	7f ff e4 5f 	call  40001d5c <sparc_enable_interrupts>       <== NOT EXECUTED
40008be4:	90 10 00 12 	mov  %l2, %o0                                  <== NOT EXECUTED
      goto restart_forward_search;                                    
40008be8:	30 bf ff ed 	b,a   40008b9c <_Thread_queue_Enqueue_priority+0x48><== NOT EXECUTED
                                                                      
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 ) ) {  
40008bec:	80 a4 40 16 	cmp  %l1, %l6                                  
40008bf0:	32 bf ff f1 	bne,a   40008bb4 <_Thread_queue_Enqueue_priority+0x60>
40008bf4:	e8 04 60 14 	ld  [ %l1 + 0x14 ], %l4                        
    }                                                                 
    search_thread =                                                   
       (Thread_Control *)search_thread->Object.Node.next;             
  }                                                                   
                                                                      
  if ( the_thread_queue->sync_state !=                                
40008bf8:	c2 06 20 30 	ld  [ %i0 + 0x30 ], %g1                        
40008bfc:	80 a0 60 01 	cmp  %g1, 1                                    
40008c00:	12 80 00 3c 	bne  40008cf0 <_Thread_queue_Enqueue_priority+0x19c>
40008c04:	90 10 00 12 	mov  %l2, %o0                                  
       THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )                   
    goto synchronize;                                                 
                                                                      
  the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
                                                                      
  if ( priority == search_priority )                                  
40008c08:	80 a4 00 14 	cmp  %l0, %l4                                  
40008c0c:	02 80 00 2e 	be  40008cc4 <_Thread_queue_Enqueue_priority+0x170>
40008c10:	c0 26 20 30 	clr  [ %i0 + 0x30 ]                            
    goto equal_priority;                                              
                                                                      
  search_node   = (Chain_Node *) search_thread;                       
  previous_node = search_node->previous;                              
40008c14:	c2 04 60 04 	ld  [ %l1 + 4 ], %g1                           
  the_node      = (Chain_Node *) the_thread;                          
                                                                      
  the_node->next         = search_node;                               
40008c18:	e2 26 40 00 	st  %l1, [ %i1 ]                               
  the_node->previous     = previous_node;                             
40008c1c:	c2 26 60 04 	st  %g1, [ %i1 + 4 ]                           
  previous_node->next    = the_node;                                  
  search_node->previous  = the_node;                                  
  the_thread->Wait.queue = the_thread_queue;                          
40008c20:	f0 26 60 44 	st  %i0, [ %i1 + 0x44 ]                        
  previous_node = search_node->previous;                              
  the_node      = (Chain_Node *) the_thread;                          
                                                                      
  the_node->next         = search_node;                               
  the_node->previous     = previous_node;                             
  previous_node->next    = the_node;                                  
40008c24:	f2 20 40 00 	st  %i1, [ %g1 ]                               
  search_node->previous  = the_node;                                  
40008c28:	f2 24 60 04 	st  %i1, [ %l1 + 4 ]                           
  the_thread->Wait.queue = the_thread_queue;                          
  _ISR_Enable( level );                                               
40008c2c:	30 80 00 2d 	b,a   40008ce0 <_Thread_queue_Enqueue_priority+0x18c>
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
                                                                      
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
                                                                      
  _ISR_Disable( level );                                              
40008c30:	7f ff e4 47 	call  40001d4c <sparc_disable_interrupts>      
40008c34:	e8 0d 80 00 	ldub  [ %l6 ], %l4                             
  the_thread->Wait.queue = the_thread_queue;                          
  _ISR_Enable( level );                                               
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
                                                                      
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
40008c38:	a8 05 20 01 	inc  %l4                                       
                                                                      
  _ISR_Disable( level );                                              
40008c3c:	a4 10 00 08 	mov  %o0, %l2                                  
  search_thread = (Thread_Control *) header->last;                    
  while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {  
40008c40:	10 80 00 10 	b  40008c80 <_Thread_queue_Enqueue_priority+0x12c>
40008c44:	e2 04 e0 08 	ld  [ %l3 + 8 ], %l1                           
    search_priority = search_thread->current_priority;                
    if ( priority >= search_priority )                                
40008c48:	80 a4 00 14 	cmp  %l0, %l4                                  
40008c4c:	3a 80 00 11 	bcc,a   40008c90 <_Thread_queue_Enqueue_priority+0x13c>
40008c50:	c2 06 20 30 	ld  [ %i0 + 0x30 ], %g1                        
      break;                                                          
    search_priority = search_thread->current_priority;                
    if ( priority >= search_priority )                                
      break;                                                          
#endif                                                                
    _ISR_Flash( level );                                              
40008c54:	7f ff e4 42 	call  40001d5c <sparc_enable_interrupts>       
40008c58:	90 10 00 12 	mov  %l2, %o0                                  
40008c5c:	7f ff e4 3c 	call  40001d4c <sparc_disable_interrupts>      
40008c60:	01 00 00 00 	nop                                            
    if ( !_States_Are_set( search_thread->current_state, block_state) ) {
40008c64:	c2 04 60 10 	ld  [ %l1 + 0x10 ], %g1                        
40008c68:	80 8d 40 01 	btst  %l5, %g1                                 
40008c6c:	32 80 00 05 	bne,a   40008c80 <_Thread_queue_Enqueue_priority+0x12c><== ALWAYS TAKEN
40008c70:	e2 04 60 04 	ld  [ %l1 + 4 ], %l1                           
      _ISR_Enable( level );                                           
40008c74:	7f ff e4 3a 	call  40001d5c <sparc_enable_interrupts>       <== NOT EXECUTED
40008c78:	90 10 00 12 	mov  %l2, %o0                                  <== NOT EXECUTED
      goto restart_reverse_search;                                    
40008c7c:	30 bf ff ed 	b,a   40008c30 <_Thread_queue_Enqueue_priority+0xdc><== NOT EXECUTED
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 ) ) {  
40008c80:	80 a4 40 13 	cmp  %l1, %l3                                  
40008c84:	32 bf ff f1 	bne,a   40008c48 <_Thread_queue_Enqueue_priority+0xf4>
40008c88:	e8 04 60 14 	ld  [ %l1 + 0x14 ], %l4                        
    }                                                                 
    search_thread = (Thread_Control *)                                
                         search_thread->Object.Node.previous;         
  }                                                                   
                                                                      
  if ( the_thread_queue->sync_state !=                                
40008c8c:	c2 06 20 30 	ld  [ %i0 + 0x30 ], %g1                        
40008c90:	80 a0 60 01 	cmp  %g1, 1                                    
40008c94:	12 80 00 17 	bne  40008cf0 <_Thread_queue_Enqueue_priority+0x19c>
40008c98:	90 10 00 12 	mov  %l2, %o0                                  
       THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )                   
    goto synchronize;                                                 
                                                                      
  the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
                                                                      
  if ( priority == search_priority )                                  
40008c9c:	80 a4 00 14 	cmp  %l0, %l4                                  
40008ca0:	02 80 00 09 	be  40008cc4 <_Thread_queue_Enqueue_priority+0x170>
40008ca4:	c0 26 20 30 	clr  [ %i0 + 0x30 ]                            
    goto equal_priority;                                              
                                                                      
  search_node = (Chain_Node *) search_thread;                         
  next_node   = search_node->next;                                    
40008ca8:	c2 04 40 00 	ld  [ %l1 ], %g1                               
  the_node    = (Chain_Node *) the_thread;                            
                                                                      
  the_node->next          = next_node;                                
  the_node->previous      = search_node;                              
40008cac:	e2 26 60 04 	st  %l1, [ %i1 + 4 ]                           
                                                                      
  search_node = (Chain_Node *) search_thread;                         
  next_node   = search_node->next;                                    
  the_node    = (Chain_Node *) the_thread;                            
                                                                      
  the_node->next          = next_node;                                
40008cb0:	c2 26 40 00 	st  %g1, [ %i1 ]                               
  the_node->previous      = search_node;                              
  search_node->next       = the_node;                                 
  next_node->previous    = the_node;                                  
  the_thread->Wait.queue = the_thread_queue;                          
40008cb4:	f0 26 60 44 	st  %i0, [ %i1 + 0x44 ]                        
  next_node   = search_node->next;                                    
  the_node    = (Chain_Node *) the_thread;                            
                                                                      
  the_node->next          = next_node;                                
  the_node->previous      = search_node;                              
  search_node->next       = the_node;                                 
40008cb8:	f2 24 40 00 	st  %i1, [ %l1 ]                               
  next_node->previous    = the_node;                                  
40008cbc:	f2 20 60 04 	st  %i1, [ %g1 + 4 ]                           
  the_thread->Wait.queue = the_thread_queue;                          
  _ISR_Enable( level );                                               
40008cc0:	30 80 00 08 	b,a   40008ce0 <_Thread_queue_Enqueue_priority+0x18c>
40008cc4:	a2 04 60 3c 	add  %l1, 0x3c, %l1                            
  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;                              
40008cc8:	c2 04 60 04 	ld  [ %l1 + 4 ], %g1                           
  the_node      = (Chain_Node *) the_thread;                          
                                                                      
  the_node->next         = search_node;                               
40008ccc:	e2 26 40 00 	st  %l1, [ %i1 ]                               
  the_node->previous     = previous_node;                             
40008cd0:	c2 26 60 04 	st  %g1, [ %i1 + 4 ]                           
  previous_node->next    = the_node;                                  
  search_node->previous  = the_node;                                  
  the_thread->Wait.queue = the_thread_queue;                          
40008cd4:	f0 26 60 44 	st  %i0, [ %i1 + 0x44 ]                        
  previous_node = search_node->previous;                              
  the_node      = (Chain_Node *) the_thread;                          
                                                                      
  the_node->next         = search_node;                               
  the_node->previous     = previous_node;                             
  previous_node->next    = the_node;                                  
40008cd8:	f2 20 40 00 	st  %i1, [ %g1 ]                               
  search_node->previous  = the_node;                                  
40008cdc:	f2 24 60 04 	st  %i1, [ %l1 + 4 ]                           
  the_thread->Wait.queue = the_thread_queue;                          
  _ISR_Enable( level );                                               
40008ce0:	7f ff e4 1f 	call  40001d5c <sparc_enable_interrupts>       
40008ce4:	b0 10 20 01 	mov  1, %i0                                    
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
40008ce8:	81 c7 e0 08 	ret                                            
40008cec:	81 e8 00 00 	restore                                        
   *  the mutex by an ISR or timed out.                               
   *                                                                  
   *  WARNING! Returning with interrupts disabled!                    
   */                                                                 
  *level_p = level;                                                   
  return the_thread_queue->sync_state;                                
40008cf0:	f0 06 20 30 	ld  [ %i0 + 0x30 ], %i0                        
   *  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;                                                   
40008cf4:	d0 26 80 00 	st  %o0, [ %i2 ]                               
  return the_thread_queue->sync_state;                                
}                                                                     
40008cf8:	81 c7 e0 08 	ret                                            
40008cfc:	81 e8 00 00 	restore                                        
                                                                      

40008dac <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) {
40008dac:	9d e3 bf 98 	save  %sp, -104, %sp                           
  /*                                                                  
   * Just in case the thread really wasn't blocked on a thread queue  
   * when we get here.                                                
   */                                                                 
  if ( !the_thread_queue )                                            
40008db0:	80 a6 20 00 	cmp  %i0, 0                                    
40008db4:	02 80 00 19 	be  40008e18 <_Thread_queue_Requeue+0x6c>      <== NEVER TAKEN
40008db8:	01 00 00 00 	nop                                            
                                                                      
  /*                                                                  
   * 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 ) {
40008dbc:	e2 06 20 34 	ld  [ %i0 + 0x34 ], %l1                        
40008dc0:	80 a4 60 01 	cmp  %l1, 1                                    
40008dc4:	12 80 00 15 	bne  40008e18 <_Thread_queue_Requeue+0x6c>     <== NEVER TAKEN
40008dc8:	01 00 00 00 	nop                                            
    Thread_queue_Control *tq = the_thread_queue;                      
    ISR_Level             level;                                      
    ISR_Level             level_ignored;                              
                                                                      
    _ISR_Disable( level );                                            
40008dcc:	7f ff e3 e0 	call  40001d4c <sparc_disable_interrupts>      
40008dd0:	01 00 00 00 	nop                                            
40008dd4:	a0 10 00 08 	mov  %o0, %l0                                  
    if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
40008dd8:	c4 06 60 10 	ld  [ %i1 + 0x10 ], %g2                        
40008ddc:	03 00 00 ef 	sethi  %hi(0x3bc00), %g1                       
40008de0:	82 10 62 e0 	or  %g1, 0x2e0, %g1	! 3bee0 <PROM_START+0x3bee0>
40008de4:	80 88 80 01 	btst  %g2, %g1                                 
40008de8:	02 80 00 0a 	be  40008e10 <_Thread_queue_Requeue+0x64>      <== NEVER TAKEN
40008dec:	94 10 20 01 	mov  1, %o2                                    
      _Thread_queue_Enter_critical_section( tq );                     
      _Thread_queue_Extract_priority_helper( tq, the_thread, true );  
40008df0:	90 10 00 18 	mov  %i0, %o0                                  
40008df4:	92 10 00 19 	mov  %i1, %o1                                  
40008df8:	40 00 0d 81 	call  4000c3fc <_Thread_queue_Extract_priority_helper>
40008dfc:	e2 26 20 30 	st  %l1, [ %i0 + 0x30 ]                        
      (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
40008e00:	90 10 00 18 	mov  %i0, %o0                                  
40008e04:	92 10 00 19 	mov  %i1, %o1                                  
40008e08:	7f ff ff 53 	call  40008b54 <_Thread_queue_Enqueue_priority>
40008e0c:	94 07 bf fc 	add  %fp, -4, %o2                              
    }                                                                 
    _ISR_Enable( level );                                             
40008e10:	7f ff e3 d3 	call  40001d5c <sparc_enable_interrupts>       
40008e14:	90 10 00 10 	mov  %l0, %o0                                  
40008e18:	81 c7 e0 08 	ret                                            
40008e1c:	81 e8 00 00 	restore                                        
                                                                      

40008e20 <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) {
40008e20:	9d e3 bf 98 	save  %sp, -104, %sp                           
  Thread_Control       *the_thread;                                   
  Objects_Locations     location;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
40008e24:	90 10 00 18 	mov  %i0, %o0                                  
40008e28:	7f ff fd ec 	call  400085d8 <_Thread_Get>                   
40008e2c:	92 07 bf fc 	add  %fp, -4, %o1                              
  switch ( location ) {                                               
40008e30:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
40008e34:	80 a0 60 00 	cmp  %g1, 0                                    
40008e38:	12 80 00 08 	bne  40008e58 <_Thread_queue_Timeout+0x38>     <== NEVER TAKEN
40008e3c:	01 00 00 00 	nop                                            
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
      break;                                                          
    case OBJECTS_LOCAL:                                               
      _Thread_queue_Process_timeout( the_thread );                    
40008e40:	40 00 0d a7 	call  4000c4dc <_Thread_queue_Process_timeout> 
40008e44:	01 00 00 00 	nop                                            
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
40008e48:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
40008e4c:	c4 00 60 10 	ld  [ %g1 + 0x10 ], %g2	! 4001c410 <_Thread_Dispatch_disable_level>
40008e50:	84 00 bf ff 	add  %g2, -1, %g2                              
40008e54:	c4 20 60 10 	st  %g2, [ %g1 + 0x10 ]                        
40008e58:	81 c7 e0 08 	ret                                            
40008e5c:	81 e8 00 00 	restore                                        
                                                                      

40015fcc <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) {
40015fcc:	9d e3 bf 88 	save  %sp, -120, %sp                           
static void _Timer_server_Process_interval_watchdogs(                 
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;            
40015fd0:	35 10 00 f3 	sethi  %hi(0x4003cc00), %i2                    
40015fd4:	b2 07 bf f4 	add  %fp, -12, %i1                             
40015fd8:	ac 07 bf f8 	add  %fp, -8, %l6                              
40015fdc:	a2 07 bf e8 	add  %fp, -24, %l1                             
40015fe0:	a6 07 bf ec 	add  %fp, -20, %l3                             
static void _Timer_server_Process_tod_watchdogs(                      
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
40015fe4:	37 10 00 f3 	sethi  %hi(0x4003cc00), %i3                    
40015fe8:	2b 10 00 f3 	sethi  %hi(0x4003cc00), %l5                    
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
  the_chain->permanent_null = NULL;                                   
40015fec:	c0 27 bf f8 	clr  [ %fp + -8 ]                              
40015ff0:	c0 27 bf ec 	clr  [ %fp + -20 ]                             
  the_chain->last           = _Chain_Head(the_chain);                 
40015ff4:	f2 27 bf fc 	st  %i1, [ %fp + -4 ]                          
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
40015ff8:	ec 27 bf f4 	st  %l6, [ %fp + -12 ]                         
  the_chain->permanent_null = NULL;                                   
  the_chain->last           = _Chain_Head(the_chain);                 
40015ffc:	e2 27 bf f0 	st  %l1, [ %fp + -16 ]                         
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
40016000:	e6 27 bf e8 	st  %l3, [ %fp + -24 ]                         
static void _Timer_server_Process_interval_watchdogs(                 
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;            
40016004:	b4 16 a3 d4 	or  %i2, 0x3d4, %i2                            
static void _Timer_server_Process_tod_watchdogs(                      
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
40016008:	b6 16 e3 10 	or  %i3, 0x310, %i3                            
4001600c:	aa 15 62 80 	or  %l5, 0x280, %l5                            
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
40016010:	a8 06 20 30 	add  %i0, 0x30, %l4                            
    /*                                                                
     *  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 );
40016014:	a4 06 20 68 	add  %i0, 0x68, %l2                            
                                                                      
static void _Timer_server_Stop_interval_system_watchdog(              
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );        
40016018:	b8 06 20 08 	add  %i0, 8, %i4                               
                                                                      
static void _Timer_server_Stop_tod_system_watchdog(                   
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );             
4001601c:	ba 06 20 40 	add  %i0, 0x40, %i5                            
        _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;                                              
40016020:	ae 10 20 01 	mov  1, %l7                                    
{                                                                     
  /*                                                                  
   *  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;                                    
40016024:	f2 26 20 78 	st  %i1, [ %i0 + 0x78 ]                        
static void _Timer_server_Process_interval_watchdogs(                 
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;            
40016028:	c2 06 80 00 	ld  [ %i2 ], %g1                               
                                                                      
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
4001602c:	d2 06 20 3c 	ld  [ %i0 + 0x3c ], %o1                        
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
40016030:	94 10 00 11 	mov  %l1, %o2                                  
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
40016034:	c2 26 20 3c 	st  %g1, [ %i0 + 0x3c ]                        
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
40016038:	92 20 40 09 	sub  %g1, %o1, %o1                             
4001603c:	40 00 10 f0 	call  4001a3fc <_Watchdog_Adjust_to_chain>     
40016040:	90 10 00 14 	mov  %l4, %o0                                  
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
  Watchdog_Interval last_snapshot = watchdogs->last_snapshot;         
40016044:	d4 06 20 74 	ld  [ %i0 + 0x74 ], %o2                        
static void _Timer_server_Process_tod_watchdogs(                      
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
40016048:	e0 06 c0 00 	ld  [ %i3 ], %l0                               
  /*                                                                  
   *  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 ) {                                   
4001604c:	80 a4 00 0a 	cmp  %l0, %o2                                  
40016050:	08 80 00 06 	bleu  40016068 <_Timer_server_Body+0x9c>       
40016054:	92 24 00 0a 	sub  %l0, %o2, %o1                             
    /*                                                                
     *  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 );
40016058:	90 10 00 12 	mov  %l2, %o0                                  
4001605c:	40 00 10 e8 	call  4001a3fc <_Watchdog_Adjust_to_chain>     
40016060:	94 10 00 11 	mov  %l1, %o2                                  
40016064:	30 80 00 06 	b,a   4001607c <_Timer_server_Body+0xb0>       
                                                                      
  } else if ( snapshot < last_snapshot ) {                            
40016068:	1a 80 00 05 	bcc  4001607c <_Timer_server_Body+0xb0>        
4001606c:	94 22 80 10 	sub  %o2, %l0, %o2                             
     /*                                                               
      *  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 ); 
40016070:	90 10 00 12 	mov  %l2, %o0                                  
40016074:	40 00 10 bb 	call  4001a360 <_Watchdog_Adjust>              
40016078:	92 10 20 01 	mov  1, %o1                                    
  }                                                                   
                                                                      
  watchdogs->last_snapshot = snapshot;                                
4001607c:	e0 26 20 74 	st  %l0, [ %i0 + 0x74 ]                        
}                                                                     
                                                                      
static void _Timer_server_Process_insertions( Timer_server_Control *ts )
{                                                                     
  while ( true ) {                                                    
    Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain );
40016080:	d0 06 20 78 	ld  [ %i0 + 0x78 ], %o0                        
40016084:	40 00 02 61 	call  40016a08 <_Chain_Get>                    
40016088:	01 00 00 00 	nop                                            
                                                                      
    if ( timer == NULL ) {                                            
4001608c:	80 a2 20 00 	cmp  %o0, 0                                    
40016090:	02 80 00 0f 	be  400160cc <_Timer_server_Body+0x100>        
40016094:	01 00 00 00 	nop                                            
static void _Timer_server_Insert_timer(                               
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
40016098:	c2 02 20 38 	ld  [ %o0 + 0x38 ], %g1                        
4001609c:	80 a0 60 01 	cmp  %g1, 1                                    
400160a0:	12 80 00 05 	bne  400160b4 <_Timer_server_Body+0xe8>        
400160a4:	80 a0 60 03 	cmp  %g1, 3                                    
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
400160a8:	92 02 20 10 	add  %o0, 0x10, %o1                            
400160ac:	10 80 00 05 	b  400160c0 <_Timer_server_Body+0xf4>          
400160b0:	90 10 00 14 	mov  %l4, %o0                                  
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
400160b4:	12 bf ff f3 	bne  40016080 <_Timer_server_Body+0xb4>        <== NEVER TAKEN
400160b8:	92 02 20 10 	add  %o0, 0x10, %o1                            
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
400160bc:	90 10 00 12 	mov  %l2, %o0                                  
400160c0:	40 00 11 04 	call  4001a4d0 <_Watchdog_Insert>              
400160c4:	01 00 00 00 	nop                                            
400160c8:	30 bf ff ee 	b,a   40016080 <_Timer_server_Body+0xb4>       
     *  of zero it will be processed in the next iteration of the timer server
     *  body loop.                                                    
     */                                                               
    _Timer_server_Process_insertions( ts );                           
                                                                      
    _ISR_Disable( level );                                            
400160cc:	7f ff e1 4f 	call  4000e608 <sparc_disable_interrupts>      
400160d0:	01 00 00 00 	nop                                            
    if ( _Chain_Is_empty( insert_chain ) ) {                          
400160d4:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
400160d8:	80 a0 40 16 	cmp  %g1, %l6                                  
400160dc:	12 80 00 0a 	bne  40016104 <_Timer_server_Body+0x138>       <== NEVER TAKEN
400160e0:	01 00 00 00 	nop                                            
      ts->insert_chain = NULL;                                        
400160e4:	c0 26 20 78 	clr  [ %i0 + 0x78 ]                            
      _ISR_Enable( level );                                           
400160e8:	7f ff e1 4c 	call  4000e618 <sparc_enable_interrupts>       
400160ec:	01 00 00 00 	nop                                            
  _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 ) ) {                          
400160f0:	c2 07 bf e8 	ld  [ %fp + -24 ], %g1                         
400160f4:	80 a0 40 13 	cmp  %g1, %l3                                  
400160f8:	12 80 00 06 	bne  40016110 <_Timer_server_Body+0x144>       
400160fc:	01 00 00 00 	nop                                            
40016100:	30 80 00 1a 	b,a   40016168 <_Timer_server_Body+0x19c>      
      ts->insert_chain = NULL;                                        
      _ISR_Enable( level );                                           
                                                                      
      break;                                                          
    } else {                                                          
      _ISR_Enable( level );                                           
40016104:	7f ff e1 45 	call  4000e618 <sparc_enable_interrupts>       <== NOT EXECUTED
40016108:	01 00 00 00 	nop                                            <== NOT EXECUTED
4001610c:	30 bf ff c7 	b,a   40016028 <_Timer_server_Body+0x5c>       <== NOT EXECUTED
                                                                      
        /*                                                            
         *  It is essential that interrupts are disable here since an interrupt
         *  service routine may remove a watchdog from the chain.     
         */                                                           
        _ISR_Disable( level );                                        
40016110:	7f ff e1 3e 	call  4000e608 <sparc_disable_interrupts>      
40016114:	01 00 00 00 	nop                                            
40016118:	84 10 00 08 	mov  %o0, %g2                                  
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
4001611c:	e0 07 bf e8 	ld  [ %fp + -24 ], %l0                         
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
40016120:	80 a4 00 13 	cmp  %l0, %l3                                  
40016124:	02 80 00 0e 	be  4001615c <_Timer_server_Body+0x190>        
40016128:	80 a4 20 00 	cmp  %l0, 0                                    
{                                                                     
  Chain_Node  *return_node;                                           
  Chain_Node  *new_first;                                             
                                                                      
  return_node         = the_chain->first;                             
  new_first           = return_node->next;                            
4001612c:	c2 04 00 00 	ld  [ %l0 ], %g1                               
  the_chain->first    = new_first;                                    
40016130:	c2 27 bf e8 	st  %g1, [ %fp + -24 ]                         
        watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
        if ( watchdog != NULL ) {                                     
40016134:	02 80 00 0a 	be  4001615c <_Timer_server_Body+0x190>        <== NEVER TAKEN
40016138:	e2 20 60 04 	st  %l1, [ %g1 + 4 ]                           
          watchdog->state = WATCHDOG_INACTIVE;                        
4001613c:	c0 24 20 08 	clr  [ %l0 + 8 ]                               
          _ISR_Enable( level );                                       
40016140:	7f ff e1 36 	call  4000e618 <sparc_enable_interrupts>       
40016144:	01 00 00 00 	nop                                            
        /*                                                            
         *  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 );    
40016148:	d2 04 20 24 	ld  [ %l0 + 0x24 ], %o1                        
4001614c:	c2 04 20 1c 	ld  [ %l0 + 0x1c ], %g1                        
40016150:	9f c0 40 00 	call  %g1                                      
40016154:	d0 04 20 20 	ld  [ %l0 + 0x20 ], %o0                        
      }                                                               
40016158:	30 bf ff ee 	b,a   40016110 <_Timer_server_Body+0x144>      
        watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
        if ( watchdog != NULL ) {                                     
          watchdog->state = WATCHDOG_INACTIVE;                        
          _ISR_Enable( level );                                       
        } else {                                                      
          _ISR_Enable( level );                                       
4001615c:	7f ff e1 2f 	call  4000e618 <sparc_enable_interrupts>       
40016160:	90 10 00 02 	mov  %g2, %o0                                  
40016164:	30 bf ff b0 	b,a   40016024 <_Timer_server_Body+0x58>       
         *  the active flag of the timer server is true.              
         */                                                           
        (*watchdog->routine)( watchdog->id, watchdog->user_data );    
      }                                                               
    } else {                                                          
      ts->active = false;                                             
40016168:	c0 2e 20 7c 	clrb  [ %i0 + 0x7c ]                           
4001616c:	c2 05 40 00 	ld  [ %l5 ], %g1                               
40016170:	82 00 60 01 	inc  %g1                                       
40016174:	c2 25 40 00 	st  %g1, [ %l5 ]                               
                                                                      
      /*                                                              
       *  Block until there is something to do.                       
       */                                                             
      _Thread_Disable_dispatch();                                     
        _Thread_Set_state( ts->thread, STATES_DELAYING );             
40016178:	d0 06 00 00 	ld  [ %i0 ], %o0                               
4001617c:	40 00 0d ee 	call  40019934 <_Thread_Set_state>             
40016180:	92 10 20 08 	mov  8, %o1                                    
        _Timer_server_Reset_interval_system_watchdog( ts );           
40016184:	7f ff ff 68 	call  40015f24 <_Timer_server_Reset_interval_system_watchdog>
40016188:	90 10 00 18 	mov  %i0, %o0                                  
        _Timer_server_Reset_tod_system_watchdog( ts );                
4001618c:	7f ff ff 7b 	call  40015f78 <_Timer_server_Reset_tod_system_watchdog>
40016190:	90 10 00 18 	mov  %i0, %o0                                  
      _Thread_Enable_dispatch();                                      
40016194:	40 00 0b 39 	call  40018e78 <_Thread_Enable_dispatch>       
40016198:	01 00 00 00 	nop                                            
                                                                      
static void _Timer_server_Stop_interval_system_watchdog(              
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );        
4001619c:	90 10 00 1c 	mov  %i4, %o0                                  
        _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;                                              
400161a0:	ee 2e 20 7c 	stb  %l7, [ %i0 + 0x7c ]                       
                                                                      
static void _Timer_server_Stop_interval_system_watchdog(              
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );        
400161a4:	40 00 11 28 	call  4001a644 <_Watchdog_Remove>              
400161a8:	01 00 00 00 	nop                                            
                                                                      
static void _Timer_server_Stop_tod_system_watchdog(                   
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );             
400161ac:	40 00 11 26 	call  4001a644 <_Watchdog_Remove>              
400161b0:	90 10 00 1d 	mov  %i5, %o0                                  
400161b4:	30 bf ff 9c 	b,a   40016024 <_Timer_server_Body+0x58>       
                                                                      

400161b8 <_Timer_server_Schedule_operation_method>: static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) {
400161b8:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if ( ts->insert_chain == NULL ) {                                   
400161bc:	c2 06 20 78 	ld  [ %i0 + 0x78 ], %g1                        
400161c0:	80 a0 60 00 	cmp  %g1, 0                                    
400161c4:	12 80 00 4b 	bne  400162f0 <_Timer_server_Schedule_operation_method+0x138>
400161c8:	a0 10 00 19 	mov  %i1, %l0                                  
400161cc:	03 10 00 f3 	sethi  %hi(0x4003cc00), %g1                    
400161d0:	c4 00 62 80 	ld  [ %g1 + 0x280 ], %g2	! 4003ce80 <_Thread_Dispatch_disable_level>
400161d4:	84 00 a0 01 	inc  %g2                                       
400161d8:	c4 20 62 80 	st  %g2, [ %g1 + 0x280 ]                       
   *  being inserted.  This could result in an integer overflow.      
   */                                                                 
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
400161dc:	c2 06 60 38 	ld  [ %i1 + 0x38 ], %g1                        
400161e0:	80 a0 60 01 	cmp  %g1, 1                                    
400161e4:	12 80 00 1f 	bne  40016260 <_Timer_server_Schedule_operation_method+0xa8>
400161e8:	80 a0 60 03 	cmp  %g1, 3                                    
    /*                                                                
     *  We have to advance the last known ticks value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
400161ec:	7f ff e1 07 	call  4000e608 <sparc_disable_interrupts>      
400161f0:	01 00 00 00 	nop                                            
    snapshot = _Watchdog_Ticks_since_boot;                            
400161f4:	03 10 00 f3 	sethi  %hi(0x4003cc00), %g1                    
400161f8:	c6 00 63 d4 	ld  [ %g1 + 0x3d4 ], %g3	! 4003cfd4 <_Watchdog_Ticks_since_boot>
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
400161fc:	c2 06 20 30 	ld  [ %i0 + 0x30 ], %g1                        
    last_snapshot = ts->Interval_watchdogs.last_snapshot;             
40016200:	c4 06 20 3c 	ld  [ %i0 + 0x3c ], %g2                        
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
40016204:	88 06 20 34 	add  %i0, 0x34, %g4                            
40016208:	80 a0 40 04 	cmp  %g1, %g4                                  
4001620c:	02 80 00 08 	be  4001622c <_Timer_server_Schedule_operation_method+0x74>
40016210:	84 20 c0 02 	sub  %g3, %g2, %g2                             
      /*                                                              
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
                                                                      
      delta_interval = first_watchdog->delta_interval;                
40016214:	c8 00 60 10 	ld  [ %g1 + 0x10 ], %g4                        
      if (delta_interval > delta) {                                   
40016218:	80 a0 80 04 	cmp  %g2, %g4                                  
        delta_interval -= delta;                                      
4001621c:	84 21 00 02 	sub  %g4, %g2, %g2                             
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
                                                                      
      delta_interval = first_watchdog->delta_interval;                
      if (delta_interval > delta) {                                   
40016220:	9a 60 20 00 	subx  %g0, 0, %o5                              
40016224:	84 08 80 0d 	and  %g2, %o5, %g2                             
        delta_interval -= delta;                                      
      } else {                                                        
        delta_interval = 0;                                           
      }                                                               
      first_watchdog->delta_interval = delta_interval;                
40016228:	c4 20 60 10 	st  %g2, [ %g1 + 0x10 ]                        
    }                                                                 
    ts->Interval_watchdogs.last_snapshot = snapshot;                  
4001622c:	c6 26 20 3c 	st  %g3, [ %i0 + 0x3c ]                        
    _ISR_Enable( level );                                             
40016230:	7f ff e0 fa 	call  4000e618 <sparc_enable_interrupts>       
40016234:	01 00 00 00 	nop                                            
                                                                      
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
40016238:	92 04 20 10 	add  %l0, 0x10, %o1                            
4001623c:	40 00 10 a5 	call  4001a4d0 <_Watchdog_Insert>              
40016240:	90 06 20 30 	add  %i0, 0x30, %o0                            
                                                                      
    if ( !ts->active ) {                                              
40016244:	c2 0e 20 7c 	ldub  [ %i0 + 0x7c ], %g1                      
40016248:	80 a0 60 00 	cmp  %g1, 0                                    
4001624c:	12 80 00 27 	bne  400162e8 <_Timer_server_Schedule_operation_method+0x130>
40016250:	01 00 00 00 	nop                                            
      _Timer_server_Reset_interval_system_watchdog( ts );             
40016254:	7f ff ff 34 	call  40015f24 <_Timer_server_Reset_interval_system_watchdog>
40016258:	90 10 00 18 	mov  %i0, %o0                                  
4001625c:	30 80 00 23 	b,a   400162e8 <_Timer_server_Schedule_operation_method+0x130>
    }                                                                 
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
40016260:	12 80 00 22 	bne  400162e8 <_Timer_server_Schedule_operation_method+0x130><== NEVER TAKEN
40016264:	01 00 00 00 	nop                                            
    /*                                                                
     *  We have to advance the last known seconds value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
40016268:	7f ff e0 e8 	call  4000e608 <sparc_disable_interrupts>      
4001626c:	01 00 00 00 	nop                                            
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
40016270:	c6 06 20 68 	ld  [ %i0 + 0x68 ], %g3                        
    snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();        
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
40016274:	da 06 20 74 	ld  [ %i0 + 0x74 ], %o5                        
    /*                                                                
     *  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();        
40016278:	03 10 00 f3 	sethi  %hi(0x4003cc00), %g1                    
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
4001627c:	84 06 20 6c 	add  %i0, 0x6c, %g2                            
40016280:	80 a0 c0 02 	cmp  %g3, %g2                                  
40016284:	02 80 00 0d 	be  400162b8 <_Timer_server_Schedule_operation_method+0x100>
40016288:	c2 00 63 10 	ld  [ %g1 + 0x310 ], %g1                       
    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;                
4001628c:	c8 00 e0 10 	ld  [ %g3 + 0x10 ], %g4                        
      if ( snapshot > last_snapshot ) {                               
40016290:	80 a0 40 0d 	cmp  %g1, %o5                                  
        }                                                             
      } else {                                                        
        /*                                                            
         *  Someone put us in the past.                               
         */                                                           
        delta = last_snapshot - snapshot;                             
40016294:	84 01 00 0d 	add  %g4, %o5, %g2                             
    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 ) {                               
40016298:	08 80 00 07 	bleu  400162b4 <_Timer_server_Schedule_operation_method+0xfc>
4001629c:	84 20 80 01 	sub  %g2, %g1, %g2                             
        /*                                                            
         *  We advanced in time.                                      
         */                                                           
        delta = snapshot - last_snapshot;                             
400162a0:	84 20 40 0d 	sub  %g1, %o5, %g2                             
        if (delta_interval > delta) {                                 
400162a4:	80 a0 80 04 	cmp  %g2, %g4                                  
          delta_interval -= delta;                                    
400162a8:	84 21 00 02 	sub  %g4, %g2, %g2                             
      if ( snapshot > last_snapshot ) {                               
        /*                                                            
         *  We advanced in time.                                      
         */                                                           
        delta = snapshot - last_snapshot;                             
        if (delta_interval > delta) {                                 
400162ac:	9a 60 20 00 	subx  %g0, 0, %o5                              
400162b0:	84 08 80 0d 	and  %g2, %o5, %g2                             
         *  Someone put us in the past.                               
         */                                                           
        delta = last_snapshot - snapshot;                             
        delta_interval += delta;                                      
      }                                                               
      first_watchdog->delta_interval = delta_interval;                
400162b4:	c4 20 e0 10 	st  %g2, [ %g3 + 0x10 ]                        
    }                                                                 
    ts->TOD_watchdogs.last_snapshot = snapshot;                       
400162b8:	c2 26 20 74 	st  %g1, [ %i0 + 0x74 ]                        
    _ISR_Enable( level );                                             
400162bc:	7f ff e0 d7 	call  4000e618 <sparc_enable_interrupts>       
400162c0:	01 00 00 00 	nop                                            
                                                                      
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
400162c4:	92 04 20 10 	add  %l0, 0x10, %o1                            
400162c8:	40 00 10 82 	call  4001a4d0 <_Watchdog_Insert>              
400162cc:	90 06 20 68 	add  %i0, 0x68, %o0                            
                                                                      
    if ( !ts->active ) {                                              
400162d0:	c2 0e 20 7c 	ldub  [ %i0 + 0x7c ], %g1                      
400162d4:	80 a0 60 00 	cmp  %g1, 0                                    
400162d8:	12 80 00 04 	bne  400162e8 <_Timer_server_Schedule_operation_method+0x130>
400162dc:	01 00 00 00 	nop                                            
      _Timer_server_Reset_tod_system_watchdog( ts );                  
400162e0:	7f ff ff 26 	call  40015f78 <_Timer_server_Reset_tod_system_watchdog>
400162e4:	90 10 00 18 	mov  %i0, %o0                                  
    }                                                                 
  }                                                                   
                                                                      
  _Thread_Enable_dispatch();                                          
400162e8:	40 00 0a e4 	call  40018e78 <_Thread_Enable_dispatch>       
400162ec:	81 e8 00 00 	restore                                        
     *  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 );           
400162f0:	f0 06 20 78 	ld  [ %i0 + 0x78 ], %i0                        
400162f4:	40 00 01 b9 	call  400169d8 <_Chain_Append>                 
400162f8:	81 e8 00 00 	restore                                        
                                                                      

4000b340 <_Timespec_Greater_than>: bool _Timespec_Greater_than( const struct timespec *lhs, const struct timespec *rhs ) { if ( lhs->tv_sec > rhs->tv_sec )
4000b340:	c6 02 00 00 	ld  [ %o0 ], %g3                               
4000b344:	c4 02 40 00 	ld  [ %o1 ], %g2                               
                                                                      
bool _Timespec_Greater_than(                                          
  const struct timespec *lhs,                                         
  const struct timespec *rhs                                          
)                                                                     
{                                                                     
4000b348:	82 10 00 08 	mov  %o0, %g1                                  
  if ( lhs->tv_sec > rhs->tv_sec )                                    
4000b34c:	80 a0 c0 02 	cmp  %g3, %g2                                  
4000b350:	14 80 00 0b 	bg  4000b37c <_Timespec_Greater_than+0x3c>     
4000b354:	90 10 20 01 	mov  1, %o0                                    
    return true;                                                      
                                                                      
  if ( lhs->tv_sec < rhs->tv_sec )                                    
4000b358:	80 a0 c0 02 	cmp  %g3, %g2                                  
4000b35c:	06 80 00 08 	bl  4000b37c <_Timespec_Greater_than+0x3c>     <== NEVER TAKEN
4000b360:	90 10 20 00 	clr  %o0                                       
                                                                      
#include <rtems/system.h>                                             
#include <rtems/score/timespec.h>                                     
#include <rtems/score/tod.h>                                          
                                                                      
bool _Timespec_Greater_than(                                          
4000b364:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           
4000b368:	c2 02 60 04 	ld  [ %o1 + 4 ], %g1                           
4000b36c:	80 a0 80 01 	cmp  %g2, %g1                                  
4000b370:	14 80 00 03 	bg  4000b37c <_Timespec_Greater_than+0x3c>     
4000b374:	90 10 20 01 	mov  1, %o0                                    
4000b378:	90 10 20 00 	clr  %o0                                       
  /* ASSERT: lhs->tv_sec == rhs->tv_sec */                            
  if ( lhs->tv_nsec > rhs->tv_nsec )                                  
    return true;                                                      
                                                                      
  return false;                                                       
}                                                                     
4000b37c:	81 c3 e0 08 	retl                                           
                                                                      

4000b870 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) {
4000b870:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level level;                                                    
                                                                      
  _ISR_Disable( level );                                              
4000b874:	7f ff dd 20 	call  40002cf4 <sparc_disable_interrupts>      
4000b878:	a0 10 00 18 	mov  %i0, %l0                                  
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
4000b87c:	c2 06 00 00 	ld  [ %i0 ], %g1                               
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
4000b880:	a2 06 20 04 	add  %i0, 4, %l1                               
   *       hence the compiler must not assume *header to remain       
   *       unmodified across that call.                               
   *                                                                  
   *       Till Straumann, 7/2003                                     
   */                                                                 
  if ( !_Chain_Is_empty( header ) ) {                                 
4000b884:	80 a0 40 11 	cmp  %g1, %l1                                  
4000b888:	02 80 00 1e 	be  4000b900 <_Watchdog_Adjust+0x90>           
4000b88c:	80 a6 60 00 	cmp  %i1, 0                                    
    switch ( direction ) {                                            
4000b890:	02 80 00 19 	be  4000b8f4 <_Watchdog_Adjust+0x84>           
4000b894:	a4 10 20 01 	mov  1, %l2                                    
4000b898:	80 a6 60 01 	cmp  %i1, 1                                    
4000b89c:	12 80 00 19 	bne  4000b900 <_Watchdog_Adjust+0x90>          <== NEVER TAKEN
4000b8a0:	01 00 00 00 	nop                                            
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
4000b8a4:	c4 00 60 10 	ld  [ %g1 + 0x10 ], %g2                        
4000b8a8:	10 80 00 07 	b  4000b8c4 <_Watchdog_Adjust+0x54>            
4000b8ac:	b4 00 80 1a 	add  %g2, %i2, %i2                             
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
          if ( units < _Watchdog_First( header )->delta_interval ) {  
4000b8b0:	f2 00 60 10 	ld  [ %g1 + 0x10 ], %i1                        
4000b8b4:	80 a6 80 19 	cmp  %i2, %i1                                  
4000b8b8:	3a 80 00 05 	bcc,a   4000b8cc <_Watchdog_Adjust+0x5c>       
4000b8bc:	e4 20 60 10 	st  %l2, [ %g1 + 0x10 ]                        
            _Watchdog_First( header )->delta_interval -= units;       
4000b8c0:	b4 26 40 1a 	sub  %i1, %i2, %i2                             
            break;                                                    
4000b8c4:	10 80 00 0f 	b  4000b900 <_Watchdog_Adjust+0x90>            
4000b8c8:	f4 20 60 10 	st  %i2, [ %g1 + 0x10 ]                        
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
            _Watchdog_First( header )->delta_interval = 1;            
                                                                      
            _ISR_Enable( level );                                     
4000b8cc:	7f ff dd 0e 	call  40002d04 <sparc_enable_interrupts>       
4000b8d0:	01 00 00 00 	nop                                            
                                                                      
            _Watchdog_Tickle( header );                               
4000b8d4:	40 00 00 95 	call  4000bb28 <_Watchdog_Tickle>              
4000b8d8:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
            _ISR_Disable( level );                                    
4000b8dc:	7f ff dd 06 	call  40002cf4 <sparc_disable_interrupts>      
4000b8e0:	01 00 00 00 	nop                                            
                                                                      
            if ( _Chain_Is_empty( header ) )                          
4000b8e4:	c2 04 00 00 	ld  [ %l0 ], %g1                               
4000b8e8:	80 a0 40 11 	cmp  %g1, %l1                                  
4000b8ec:	02 80 00 05 	be  4000b900 <_Watchdog_Adjust+0x90>           
4000b8f0:	b4 26 80 19 	sub  %i2, %i1, %i2                             
    switch ( direction ) {                                            
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
4000b8f4:	80 a6 a0 00 	cmp  %i2, 0                                    
4000b8f8:	32 bf ff ee 	bne,a   4000b8b0 <_Watchdog_Adjust+0x40>       <== ALWAYS TAKEN
4000b8fc:	c2 04 00 00 	ld  [ %l0 ], %g1                               
        }                                                             
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
4000b900:	7f ff dd 01 	call  40002d04 <sparc_enable_interrupts>       
4000b904:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      

40009804 <_Watchdog_Remove>: */ Watchdog_States _Watchdog_Remove( Watchdog_Control *the_watchdog ) {
40009804:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level         level;                                            
  Watchdog_States   previous_state;                                   
  Watchdog_Control *next_watchdog;                                    
                                                                      
  _ISR_Disable( level );                                              
40009808:	7f ff e1 51 	call  40001d4c <sparc_disable_interrupts>      
4000980c:	a0 10 00 18 	mov  %i0, %l0                                  
  previous_state = the_watchdog->state;                               
40009810:	f0 06 20 08 	ld  [ %i0 + 8 ], %i0                           
  switch ( previous_state ) {                                         
40009814:	80 a6 20 01 	cmp  %i0, 1                                    
40009818:	22 80 00 1e 	be,a   40009890 <_Watchdog_Remove+0x8c>        
4000981c:	c0 24 20 08 	clr  [ %l0 + 8 ]                               
40009820:	0a 80 00 1d 	bcs  40009894 <_Watchdog_Remove+0x90>          
40009824:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
40009828:	80 a6 20 03 	cmp  %i0, 3                                    
4000982c:	18 80 00 1a 	bgu  40009894 <_Watchdog_Remove+0x90>          <== NEVER TAKEN
40009830:	01 00 00 00 	nop                                            
40009834:	c2 04 00 00 	ld  [ %l0 ], %g1                               
      break;                                                          
                                                                      
    case WATCHDOG_ACTIVE:                                             
    case WATCHDOG_REMOVE_IT:                                          
                                                                      
      the_watchdog->state = WATCHDOG_INACTIVE;                        
40009838:	c0 24 20 08 	clr  [ %l0 + 8 ]                               
      next_watchdog = _Watchdog_Next( the_watchdog );                 
                                                                      
      if ( _Watchdog_Next(next_watchdog) )                            
4000983c:	c4 00 40 00 	ld  [ %g1 ], %g2                               
40009840:	80 a0 a0 00 	cmp  %g2, 0                                    
40009844:	22 80 00 07 	be,a   40009860 <_Watchdog_Remove+0x5c>        
40009848:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
        next_watchdog->delta_interval += the_watchdog->delta_interval;
4000984c:	c6 00 60 10 	ld  [ %g1 + 0x10 ], %g3	! 4001c410 <_Thread_Dispatch_disable_level>
40009850:	c4 04 20 10 	ld  [ %l0 + 0x10 ], %g2                        
40009854:	84 00 c0 02 	add  %g3, %g2, %g2                             
40009858:	c4 20 60 10 	st  %g2, [ %g1 + 0x10 ]                        
                                                                      
      if ( _Watchdog_Sync_count )                                     
4000985c:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
40009860:	c2 00 61 60 	ld  [ %g1 + 0x160 ], %g1	! 4001c560 <_Watchdog_Sync_count>
40009864:	80 a0 60 00 	cmp  %g1, 0                                    
40009868:	22 80 00 07 	be,a   40009884 <_Watchdog_Remove+0x80>        
4000986c:	c2 04 00 00 	ld  [ %l0 ], %g1                               
        _Watchdog_Sync_level = _ISR_Nest_level;                       
40009870:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
40009874:	c4 00 60 a8 	ld  [ %g1 + 0xa8 ], %g2	! 4001c4a8 <_ISR_Nest_level>
40009878:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
4000987c:	c4 20 60 c8 	st  %g2, [ %g1 + 0xc8 ]	! 4001c4c8 <_Watchdog_Sync_level>
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
40009880:	c2 04 00 00 	ld  [ %l0 ], %g1                               
  previous       = the_node->previous;                                
40009884:	c4 04 20 04 	ld  [ %l0 + 4 ], %g2                           
  next->previous = previous;                                          
  previous->next = next;                                              
40009888:	c2 20 80 00 	st  %g1, [ %g2 ]                               
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
  next->previous = previous;                                          
4000988c:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
                                                                      
      _Chain_Extract_unprotected( &the_watchdog->Node );              
      break;                                                          
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
40009890:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
40009894:	c2 00 61 64 	ld  [ %g1 + 0x164 ], %g1	! 4001c564 <_Watchdog_Ticks_since_boot>
40009898:	c2 24 20 18 	st  %g1, [ %l0 + 0x18 ]                        
                                                                      
  _ISR_Enable( level );                                               
4000989c:	7f ff e1 30 	call  40001d5c <sparc_enable_interrupts>       
400098a0:	01 00 00 00 	nop                                            
  return( previous_state );                                           
}                                                                     
400098a4:	81 c7 e0 08 	ret                                            
400098a8:	81 e8 00 00 	restore                                        
                                                                      

4000b03c <_Watchdog_Report_chain>: void _Watchdog_Report_chain( const char *name, Chain_Control *header ) {
4000b03c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level          level;                                           
  Chain_Node        *node;                                            
                                                                      
  _ISR_Disable( level );                                              
4000b040:	7f ff dd fb 	call  4000282c <sparc_disable_interrupts>      
4000b044:	a0 10 00 18 	mov  %i0, %l0                                  
4000b048:	b0 10 00 08 	mov  %o0, %i0                                  
    printk( "Watchdog Chain: %s %p\n", name, header );                
4000b04c:	11 10 00 80 	sethi  %hi(0x40020000), %o0                    
4000b050:	94 10 00 19 	mov  %i1, %o2                                  
4000b054:	90 12 23 48 	or  %o0, 0x348, %o0                            
4000b058:	7f ff e6 7c 	call  40004a48 <printk>                        
4000b05c:	92 10 00 10 	mov  %l0, %o1                                  
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
4000b060:	e2 06 40 00 	ld  [ %i1 ], %l1                               
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
4000b064:	b2 06 60 04 	add  %i1, 4, %i1                               
    if ( !_Chain_Is_empty( header ) ) {                               
4000b068:	80 a4 40 19 	cmp  %l1, %i1                                  
4000b06c:	02 80 00 0e 	be  4000b0a4 <_Watchdog_Report_chain+0x68>     
4000b070:	11 10 00 80 	sethi  %hi(0x40020000), %o0                    
            node != _Chain_Tail(header) ;                             
            node = node->next )                                       
      {                                                               
        Watchdog_Control *watch = (Watchdog_Control *) node;          
                                                                      
        _Watchdog_Report( NULL, watch );                              
4000b074:	92 10 00 11 	mov  %l1, %o1                                  
4000b078:	40 00 00 10 	call  4000b0b8 <_Watchdog_Report>              
4000b07c:	90 10 20 00 	clr  %o0                                       
  _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 )                                       
4000b080:	e2 04 40 00 	ld  [ %l1 ], %l1                               
  Chain_Node        *node;                                            
                                                                      
  _ISR_Disable( level );                                              
    printk( "Watchdog Chain: %s %p\n", name, header );                
    if ( !_Chain_Is_empty( header ) ) {                               
      for ( node = header->first ;                                    
4000b084:	80 a4 40 19 	cmp  %l1, %i1                                  
4000b088:	12 bf ff fc 	bne  4000b078 <_Watchdog_Report_chain+0x3c>    <== NEVER TAKEN
4000b08c:	92 10 00 11 	mov  %l1, %o1                                  
      {                                                               
        Watchdog_Control *watch = (Watchdog_Control *) node;          
                                                                      
        _Watchdog_Report( NULL, watch );                              
      }                                                               
      printk( "== end of %s \n", name );                              
4000b090:	92 10 00 10 	mov  %l0, %o1                                  
4000b094:	11 10 00 80 	sethi  %hi(0x40020000), %o0                    
4000b098:	7f ff e6 6c 	call  40004a48 <printk>                        
4000b09c:	90 12 23 60 	or  %o0, 0x360, %o0	! 40020360 <C.32.3495+0x2c>
4000b0a0:	30 80 00 03 	b,a   4000b0ac <_Watchdog_Report_chain+0x70>   
    } else {                                                          
      printk( "Chain is empty\n" );                                   
4000b0a4:	7f ff e6 69 	call  40004a48 <printk>                        
4000b0a8:	90 12 23 70 	or  %o0, 0x370, %o0                            
    }                                                                 
  _ISR_Enable( level );                                               
4000b0ac:	7f ff dd e4 	call  4000283c <sparc_enable_interrupts>       
4000b0b0:	81 e8 00 00 	restore                                        
                                                                      

40009378 <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) {
40009378:	9d e3 bf a0 	save  %sp, -96, %sp                            
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
4000937c:	80 a6 20 00 	cmp  %i0, 0                                    
40009380:	02 80 00 1d 	be  400093f4 <rtems_iterate_over_all_threads+0x7c><== NEVER TAKEN
40009384:	21 10 00 aa 	sethi  %hi(0x4002a800), %l0                    
40009388:	a0 14 20 c4 	or  %l0, 0xc4, %l0	! 4002a8c4 <_Objects_Information_table+0x4>
#endif                                                                
                                                                      
#include <rtems/system.h>                                             
#include <rtems/score/thread.h>                                       
                                                                      
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) 
4000938c:	a6 04 20 10 	add  %l0, 0x10, %l3                            
                                                                      
  if ( !routine )                                                     
    return;                                                           
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
    if ( !_Objects_Information_table[ api_index ] )                   
40009390:	c2 04 00 00 	ld  [ %l0 ], %g1                               
40009394:	80 a0 60 00 	cmp  %g1, 0                                    
40009398:	22 80 00 14 	be,a   400093e8 <rtems_iterate_over_all_threads+0x70>
4000939c:	a0 04 20 04 	add  %l0, 4, %l0                               
      continue;                                                       
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
400093a0:	e4 00 60 04 	ld  [ %g1 + 4 ], %l2                           
    if ( !information )                                               
400093a4:	80 a4 a0 00 	cmp  %l2, 0                                    
400093a8:	12 80 00 0b 	bne  400093d4 <rtems_iterate_over_all_threads+0x5c>
400093ac:	a2 10 20 01 	mov  1, %l1                                    
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
400093b0:	10 80 00 0e 	b  400093e8 <rtems_iterate_over_all_threads+0x70>
400093b4:	a0 04 20 04 	add  %l0, 4, %l0                               
      the_thread = (Thread_Control *)information->local_table[ i ];   
400093b8:	c2 04 a0 1c 	ld  [ %l2 + 0x1c ], %g1                        
400093bc:	d0 00 40 02 	ld  [ %g1 + %g2 ], %o0                         
                                                                      
      if ( !the_thread )                                              
400093c0:	80 a2 20 00 	cmp  %o0, 0                                    
400093c4:	02 80 00 04 	be  400093d4 <rtems_iterate_over_all_threads+0x5c><== NEVER TAKEN
400093c8:	a2 04 60 01 	inc  %l1                                       
	continue;                                                            
                                                                      
      (*routine)(the_thread);                                         
400093cc:	9f c6 00 00 	call  %i0                                      
400093d0:	01 00 00 00 	nop                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( !information )                                               
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
400093d4:	c2 14 a0 10 	lduh  [ %l2 + 0x10 ], %g1                      
400093d8:	80 a4 40 01 	cmp  %l1, %g1                                  
400093dc:	08 bf ff f7 	bleu  400093b8 <rtems_iterate_over_all_threads+0x40>
400093e0:	85 2c 60 02 	sll  %l1, 2, %g2                               
400093e4:	a0 04 20 04 	add  %l0, 4, %l0                               
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
    return;                                                           
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
400093e8:	80 a4 00 13 	cmp  %l0, %l3                                  
400093ec:	32 bf ff ea 	bne,a   40009394 <rtems_iterate_over_all_threads+0x1c>
400093f0:	c2 04 00 00 	ld  [ %l0 ], %g1                               
400093f4:	81 c7 e0 08 	ret                                            
400093f8:	81 e8 00 00 	restore                                        
                                                                      

40013844 <rtems_partition_create>: uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) {
40013844:	9d e3 bf a0 	save  %sp, -96, %sp                            
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
40013848:	a0 96 20 00 	orcc  %i0, 0, %l0                              
4001384c:	02 80 00 1c 	be  400138bc <rtems_partition_create+0x78>     
40013850:	b0 10 20 03 	mov  3, %i0                                    
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !starting_address )                                            
40013854:	80 a6 60 00 	cmp  %i1, 0                                    
40013858:	02 80 00 34 	be  40013928 <rtems_partition_create+0xe4>     
4001385c:	80 a7 60 00 	cmp  %i5, 0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !id )                                                          
40013860:	02 80 00 32 	be  40013928 <rtems_partition_create+0xe4>     <== NEVER TAKEN
40013864:	80 a6 e0 00 	cmp  %i3, 0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( length == 0 || buffer_size == 0 || length < buffer_size ||     
40013868:	02 80 00 32 	be  40013930 <rtems_partition_create+0xec>     
4001386c:	80 a6 a0 00 	cmp  %i2, 0                                    
40013870:	02 80 00 30 	be  40013930 <rtems_partition_create+0xec>     
40013874:	80 a6 80 1b 	cmp  %i2, %i3                                  
40013878:	0a 80 00 2e 	bcs  40013930 <rtems_partition_create+0xec>    
4001387c:	80 8e e0 07 	btst  7, %i3                                   
40013880:	12 80 00 2c 	bne  40013930 <rtems_partition_create+0xec>    
40013884:	80 8e 60 07 	btst  7, %i1                                   
         !_Partition_Is_buffer_size_aligned( buffer_size ) )          
    return RTEMS_INVALID_SIZE;                                        
                                                                      
  if ( !_Addresses_Is_aligned( starting_address ) )                   
40013888:	12 80 00 28 	bne  40013928 <rtems_partition_create+0xe4>    
4001388c:	03 10 00 f3 	sethi  %hi(0x4003cc00), %g1                    
40013890:	c4 00 62 80 	ld  [ %g1 + 0x280 ], %g2	! 4003ce80 <_Thread_Dispatch_disable_level>
40013894:	84 00 a0 01 	inc  %g2                                       
40013898:	c4 20 62 80 	st  %g2, [ %g1 + 0x280 ]                       
 *  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 );
4001389c:	25 10 00 f3 	sethi  %hi(0x4003cc00), %l2                    
400138a0:	40 00 11 bd 	call  40017f94 <_Objects_Allocate>             
400138a4:	90 14 a0 88 	or  %l2, 0x88, %o0	! 4003cc88 <_Partition_Information>
                                                                      
  _Thread_Disable_dispatch();               /* prevents deletion */   
                                                                      
  the_partition = _Partition_Allocate();                              
                                                                      
  if ( !the_partition ) {                                             
400138a8:	a2 92 20 00 	orcc  %o0, 0, %l1                              
400138ac:	32 80 00 06 	bne,a   400138c4 <rtems_partition_create+0x80> 
400138b0:	f4 24 60 14 	st  %i2, [ %l1 + 0x14 ]                        
    _Thread_Enable_dispatch();                                        
400138b4:	40 00 15 71 	call  40018e78 <_Thread_Enable_dispatch>       
400138b8:	b0 10 20 05 	mov  5, %i0                                    
    return RTEMS_TOO_MANY;                                            
400138bc:	81 c7 e0 08 	ret                                            
400138c0:	81 e8 00 00 	restore                                        
  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,        
400138c4:	90 10 00 1a 	mov  %i2, %o0                                  
400138c8:	92 10 00 1b 	mov  %i3, %o1                                  
#endif                                                                
                                                                      
  the_partition->starting_address      = starting_address;            
  the_partition->length                = length;                      
  the_partition->buffer_size           = buffer_size;                 
  the_partition->attribute_set         = attribute_set;               
400138cc:	f8 24 60 1c 	st  %i4, [ %l1 + 0x1c ]                        
    _Thread_Enable_dispatch();                                        
    return RTEMS_TOO_MANY;                                            
  }                                                                   
#endif                                                                
                                                                      
  the_partition->starting_address      = starting_address;            
400138d0:	f2 24 60 10 	st  %i1, [ %l1 + 0x10 ]                        
  the_partition->length                = length;                      
  the_partition->buffer_size           = buffer_size;                 
400138d4:	f6 24 60 18 	st  %i3, [ %l1 + 0x18 ]                        
  the_partition->attribute_set         = attribute_set;               
  the_partition->number_of_used_blocks = 0;                           
                                                                      
  _Chain_Initialize( &the_partition->Memory, starting_address,        
400138d8:	40 00 5f 00 	call  4002b4d8 <.udiv>                         
400138dc:	c0 24 60 20 	clr  [ %l1 + 0x20 ]                            
400138e0:	92 10 00 19 	mov  %i1, %o1                                  
400138e4:	94 10 00 08 	mov  %o0, %o2                                  
400138e8:	96 10 00 1b 	mov  %i3, %o3                                  
400138ec:	b4 04 60 24 	add  %l1, 0x24, %i2                            
400138f0:	40 00 0c 56 	call  40016a48 <_Chain_Initialize>             
400138f4:	90 10 00 1a 	mov  %i2, %o0                                  
400138f8:	c2 14 60 0a 	lduh  [ %l1 + 0xa ], %g1                       
400138fc:	c6 04 60 08 	ld  [ %l1 + 8 ], %g3                           
40013900:	a4 14 a0 88 	or  %l2, 0x88, %l2                             
40013904:	c4 04 a0 1c 	ld  [ %l2 + 0x1c ], %g2                        
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
40013908:	e0 24 60 0c 	st  %l0, [ %l1 + 0xc ]                         
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
4001390c:	83 28 60 02 	sll  %g1, 2, %g1                               
    &_Partition_Information,                                          
    &the_partition->Object,                                           
    (Objects_Name) name                                               
  );                                                                  
                                                                      
  *id = the_partition->Object.id;                                     
40013910:	c6 27 40 00 	st  %g3, [ %i5 ]                               
40013914:	e2 20 80 01 	st  %l1, [ %g2 + %g1 ]                         
      name,                                                           
      0                  /* Not used */                               
    );                                                                
#endif                                                                
                                                                      
  _Thread_Enable_dispatch();                                          
40013918:	40 00 15 58 	call  40018e78 <_Thread_Enable_dispatch>       
4001391c:	b0 10 20 00 	clr  %i0                                       
  return RTEMS_SUCCESSFUL;                                            
40013920:	81 c7 e0 08 	ret                                            
40013924:	81 e8 00 00 	restore                                        
40013928:	81 c7 e0 08 	ret                                            
4001392c:	91 e8 20 09 	restore  %g0, 9, %o0                           
40013930:	b0 10 20 08 	mov  8, %i0                                    
}                                                                     
40013934:	81 c7 e0 08 	ret                                            
40013938:	81 e8 00 00 	restore                                        
                                                                      

400076e4 <rtems_rate_monotonic_period>: rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) {
400076e4:	9d e3 bf 98 	save  %sp, -104, %sp                           
RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get (    
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Rate_monotonic_Control *)                                   
400076e8:	11 10 00 88 	sethi  %hi(0x40022000), %o0                    
400076ec:	92 10 00 18 	mov  %i0, %o1                                  
400076f0:	90 12 20 f0 	or  %o0, 0xf0, %o0                             
400076f4:	40 00 08 9f 	call  40009970 <_Objects_Get>                  
400076f8:	94 07 bf fc 	add  %fp, -4, %o2                              
  rtems_rate_monotonic_period_states   local_state;                   
  ISR_Level                            level;                         
                                                                      
  the_period = _Rate_monotonic_Get( id, &location );                  
                                                                      
  switch ( location ) {                                               
400076fc:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
40007700:	80 a0 60 00 	cmp  %g1, 0                                    
40007704:	12 80 00 63 	bne  40007890 <rtems_rate_monotonic_period+0x1ac>
40007708:	a0 10 00 08 	mov  %o0, %l0                                  
    case OBJECTS_LOCAL:                                               
      if ( !_Thread_Is_executing( the_period->owner ) ) {             
4000770c:	25 10 00 88 	sethi  %hi(0x40022000), %l2                    
40007710:	c4 02 20 40 	ld  [ %o0 + 0x40 ], %g2                        
40007714:	c2 04 a3 1c 	ld  [ %l2 + 0x31c ], %g1                       
40007718:	80 a0 80 01 	cmp  %g2, %g1                                  
4000771c:	02 80 00 06 	be  40007734 <rtems_rate_monotonic_period+0x50>
40007720:	80 a6 60 00 	cmp  %i1, 0                                    
        _Thread_Enable_dispatch();                                    
40007724:	40 00 0a d4 	call  4000a274 <_Thread_Enable_dispatch>       
40007728:	b0 10 20 17 	mov  0x17, %i0                                 
        return RTEMS_NOT_OWNER_OF_RESOURCE;                           
4000772c:	81 c7 e0 08 	ret                                            
40007730:	81 e8 00 00 	restore                                        
      }                                                               
                                                                      
      if ( length == RTEMS_PERIOD_STATUS ) {                          
40007734:	12 80 00 0b 	bne  40007760 <rtems_rate_monotonic_period+0x7c>
40007738:	01 00 00 00 	nop                                            
        switch ( the_period->state ) {                                
4000773c:	c2 02 20 38 	ld  [ %o0 + 0x38 ], %g1                        
40007740:	80 a0 60 04 	cmp  %g1, 4                                    
40007744:	18 80 00 4f 	bgu  40007880 <rtems_rate_monotonic_period+0x19c><== NEVER TAKEN
40007748:	b0 10 20 00 	clr  %i0                                       
4000774c:	83 28 60 02 	sll  %g1, 2, %g1                               
40007750:	05 10 00 7f 	sethi  %hi(0x4001fc00), %g2                    
40007754:	84 10 a3 98 	or  %g2, 0x398, %g2	! 4001ff98 <CSWTCH.47>     
40007758:	10 80 00 4a 	b  40007880 <rtems_rate_monotonic_period+0x19c>
4000775c:	f0 00 80 01 	ld  [ %g2 + %g1 ], %i0                         
        }                                                             
        _Thread_Enable_dispatch();                                    
        return( return_value );                                       
      }                                                               
                                                                      
      _ISR_Disable( level );                                          
40007760:	7f ff ed 25 	call  40002bf4 <sparc_disable_interrupts>      
40007764:	01 00 00 00 	nop                                            
40007768:	a6 10 00 08 	mov  %o0, %l3                                  
      switch ( the_period->state ) {                                  
4000776c:	e2 04 20 38 	ld  [ %l0 + 0x38 ], %l1                        
40007770:	80 a4 60 02 	cmp  %l1, 2                                    
40007774:	02 80 00 1a 	be  400077dc <rtems_rate_monotonic_period+0xf8>
40007778:	80 a4 60 04 	cmp  %l1, 4                                    
4000777c:	02 80 00 34 	be  4000784c <rtems_rate_monotonic_period+0x168>
40007780:	80 a4 60 00 	cmp  %l1, 0                                    
40007784:	12 80 00 43 	bne  40007890 <rtems_rate_monotonic_period+0x1ac><== NEVER TAKEN
40007788:	01 00 00 00 	nop                                            
        case RATE_MONOTONIC_INACTIVE: {                               
                                                                      
          _ISR_Enable( level );                                       
4000778c:	7f ff ed 1e 	call  40002c04 <sparc_enable_interrupts>       
40007790:	01 00 00 00 	nop                                            
                                                                      
          /*                                                          
           *  Baseline statistics information for the beginning of a period.
           */                                                         
          _Rate_monotonic_Initiate_statistics( the_period );          
40007794:	7f ff ff 50 	call  400074d4 <_Rate_monotonic_Initiate_statistics>
40007798:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
          the_period->state = RATE_MONOTONIC_ACTIVE;                  
4000779c:	82 10 20 02 	mov  2, %g1                                    
400077a0:	c2 24 20 38 	st  %g1, [ %l0 + 0x38 ]                        
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
400077a4:	03 10 00 1e 	sethi  %hi(0x40007800), %g1                    
400077a8:	82 10 63 5c 	or  %g1, 0x35c, %g1	! 40007b5c <_Rate_monotonic_Timeout>
  the_watchdog->id        = id;                                       
400077ac:	f0 24 20 30 	st  %i0, [ %l0 + 0x30 ]                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
400077b0:	92 04 20 10 	add  %l0, 0x10, %o1                            
400077b4:	11 10 00 88 	sethi  %hi(0x40022000), %o0                    
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
400077b8:	f2 24 20 1c 	st  %i1, [ %l0 + 0x1c ]                        
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
400077bc:	90 12 23 3c 	or  %o0, 0x33c, %o0                            
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
400077c0:	c0 24 20 18 	clr  [ %l0 + 0x18 ]                            
  the_watchdog->routine   = routine;                                  
  the_watchdog->id        = id;                                       
  the_watchdog->user_data = user_data;                                
400077c4:	c0 24 20 34 	clr  [ %l0 + 0x34 ]                            
            _Rate_monotonic_Timeout,                                  
            id,                                                       
            NULL                                                      
          );                                                          
                                                                      
          the_period->next_length = length;                           
400077c8:	f2 24 20 3c 	st  %i1, [ %l0 + 0x3c ]                        
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
400077cc:	c2 24 20 2c 	st  %g1, [ %l0 + 0x2c ]                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
400077d0:	40 00 0f c3 	call  4000b6dc <_Watchdog_Insert>              
400077d4:	b0 10 20 00 	clr  %i0                                       
400077d8:	30 80 00 2a 	b,a   40007880 <rtems_rate_monotonic_period+0x19c>
        case RATE_MONOTONIC_ACTIVE:                                   
                                                                      
          /*                                                          
           *  Update statistics from the concluding period.           
           */                                                         
          _Rate_monotonic_Update_statistics( the_period );            
400077dc:	7f ff ff 84 	call  400075ec <_Rate_monotonic_Update_statistics>
400077e0:	90 10 00 10 	mov  %l0, %o0                                  
          /*                                                          
           *  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;       
400077e4:	82 10 20 01 	mov  1, %g1                                    
          the_period->next_length = length;                           
400077e8:	f2 24 20 3c 	st  %i1, [ %l0 + 0x3c ]                        
          /*                                                          
           *  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;       
400077ec:	c2 24 20 38 	st  %g1, [ %l0 + 0x38 ]                        
          the_period->next_length = length;                           
                                                                      
          _ISR_Enable( level );                                       
400077f0:	7f ff ed 05 	call  40002c04 <sparc_enable_interrupts>       
400077f4:	90 10 00 13 	mov  %l3, %o0                                  
                                                                      
          _Thread_Executing->Wait.id = the_period->Object.id;         
400077f8:	c2 04 a3 1c 	ld  [ %l2 + 0x31c ], %g1                       
400077fc:	c4 04 20 08 	ld  [ %l0 + 8 ], %g2                           
          _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
40007800:	90 10 00 01 	mov  %g1, %o0                                  
          the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING;       
          the_period->next_length = length;                           
                                                                      
          _ISR_Enable( level );                                       
                                                                      
          _Thread_Executing->Wait.id = the_period->Object.id;         
40007804:	c4 20 60 20 	st  %g2, [ %g1 + 0x20 ]                        
          _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
40007808:	40 00 0c fa 	call  4000abf0 <_Thread_Set_state>             
4000780c:	13 00 00 10 	sethi  %hi(0x4000), %o1                        
                                                                      
          /*                                                          
           *  Did the watchdog timer expire while we were actually blocking
           *  on it?                                                  
           */                                                         
          _ISR_Disable( level );                                      
40007810:	7f ff ec f9 	call  40002bf4 <sparc_disable_interrupts>      
40007814:	01 00 00 00 	nop                                            
            local_state = the_period->state;                          
40007818:	e6 04 20 38 	ld  [ %l0 + 0x38 ], %l3                        
            the_period->state = RATE_MONOTONIC_ACTIVE;                
4000781c:	e2 24 20 38 	st  %l1, [ %l0 + 0x38 ]                        
          _ISR_Enable( level );                                       
40007820:	7f ff ec f9 	call  40002c04 <sparc_enable_interrupts>       
40007824:	01 00 00 00 	nop                                            
                                                                      
          /*                                                          
           *  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 ) 
40007828:	80 a4 e0 03 	cmp  %l3, 3                                    
4000782c:	12 80 00 04 	bne  4000783c <rtems_rate_monotonic_period+0x158>
40007830:	d0 04 a3 1c 	ld  [ %l2 + 0x31c ], %o0                       
            _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
40007834:	40 00 09 99 	call  40009e98 <_Thread_Clear_state>           
40007838:	13 00 00 10 	sethi  %hi(0x4000), %o1                        
                                                                      
          _Thread_Enable_dispatch();                                  
4000783c:	40 00 0a 8e 	call  4000a274 <_Thread_Enable_dispatch>       
40007840:	b0 10 20 00 	clr  %i0                                       
          return RTEMS_SUCCESSFUL;                                    
40007844:	81 c7 e0 08 	ret                                            
40007848:	81 e8 00 00 	restore                                        
        case RATE_MONOTONIC_EXPIRED:                                  
                                                                      
          /*                                                          
           *  Update statistics from the concluding period            
           */                                                         
          _Rate_monotonic_Update_statistics( the_period );            
4000784c:	7f ff ff 68 	call  400075ec <_Rate_monotonic_Update_statistics>
40007850:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
          _ISR_Enable( level );                                       
40007854:	7f ff ec ec 	call  40002c04 <sparc_enable_interrupts>       
40007858:	90 10 00 13 	mov  %l3, %o0                                  
                                                                      
          the_period->state = RATE_MONOTONIC_ACTIVE;                  
4000785c:	82 10 20 02 	mov  2, %g1                                    
40007860:	92 04 20 10 	add  %l0, 0x10, %o1                            
40007864:	11 10 00 88 	sethi  %hi(0x40022000), %o0                    
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
40007868:	f2 24 20 1c 	st  %i1, [ %l0 + 0x1c ]                        
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
4000786c:	90 12 23 3c 	or  %o0, 0x33c, %o0                            
          the_period->next_length = length;                           
40007870:	f2 24 20 3c 	st  %i1, [ %l0 + 0x3c ]                        
           */                                                         
          _Rate_monotonic_Update_statistics( the_period );            
                                                                      
          _ISR_Enable( level );                                       
                                                                      
          the_period->state = RATE_MONOTONIC_ACTIVE;                  
40007874:	c2 24 20 38 	st  %g1, [ %l0 + 0x38 ]                        
40007878:	40 00 0f 99 	call  4000b6dc <_Watchdog_Insert>              
4000787c:	b0 10 20 06 	mov  6, %i0                                    
          the_period->next_length = length;                           
                                                                      
          _Watchdog_Insert_ticks( &the_period->Timer, length );       
          _Thread_Enable_dispatch();                                  
40007880:	40 00 0a 7d 	call  4000a274 <_Thread_Enable_dispatch>       
40007884:	01 00 00 00 	nop                                            
          return RTEMS_TIMEOUT;                                       
40007888:	81 c7 e0 08 	ret                                            
4000788c:	81 e8 00 00 	restore                                        
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
40007890:	81 c7 e0 08 	ret                                            
40007894:	91 e8 20 04 	restore  %g0, 4, %o0                           
                                                                      

40007898 <rtems_rate_monotonic_report_statistics_with_plugin>: */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) {
40007898:	9d e3 bf 30 	save  %sp, -208, %sp                           
  rtems_id                               id;                          
  rtems_rate_monotonic_period_statistics the_stats;                   
  rtems_rate_monotonic_period_status     the_status;                  
  char                                   name[5];                     
                                                                      
  if ( !print )                                                       
4000789c:	80 a6 60 00 	cmp  %i1, 0                                    
400078a0:	02 80 00 7a 	be  40007a88 <rtems_rate_monotonic_report_statistics_with_plugin+0x1f0><== NEVER TAKEN
400078a4:	90 10 00 18 	mov  %i0, %o0                                  
    return;                                                           
                                                                      
  (*print)( context, "Period information by period\n" );              
400078a8:	13 10 00 7f 	sethi  %hi(0x4001fc00), %o1                    
400078ac:	9f c6 40 00 	call  %i1                                      
400078b0:	92 12 63 b0 	or  %o1, 0x3b0, %o1	! 4001ffb0 <CSWTCH.47+0x18>
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    (*print)( context, "--- CPU times are in seconds ---\n" );        
400078b4:	90 10 00 18 	mov  %i0, %o0                                  
400078b8:	13 10 00 7f 	sethi  %hi(0x4001fc00), %o1                    
400078bc:	9f c6 40 00 	call  %i1                                      
400078c0:	92 12 63 d0 	or  %o1, 0x3d0, %o1	! 4001ffd0 <CSWTCH.47+0x38>
    (*print)( context, "--- Wall times are in seconds ---\n" );       
400078c4:	90 10 00 18 	mov  %i0, %o0                                  
400078c8:	13 10 00 7f 	sethi  %hi(0x4001fc00), %o1                    
400078cc:	9f c6 40 00 	call  %i1                                      
400078d0:	92 12 63 f8 	or  %o1, 0x3f8, %o1	! 4001fff8 <CSWTCH.47+0x60>
  Be sure to test the various cases.                                  
  (*print)( context,"\                                                
1234567890123456789012345678901234567890123456789012345678901234567890123456789\
\n");                                                                 
*/                                                                    
  (*print)( context, "   ID     OWNER COUNT MISSED     "              
400078d4:	90 10 00 18 	mov  %i0, %o0                                  
400078d8:	13 10 00 80 	sethi  %hi(0x40020000), %o1                    
400078dc:	9f c6 40 00 	call  %i1                                      
400078e0:	92 12 60 20 	or  %o1, 0x20, %o1	! 40020020 <CSWTCH.47+0x88> 
       #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                     
          "          "                                                
       #endif                                                         
          "   WALL TIME\n"                                            
  );                                                                  
  (*print)( context, "                               "                
400078e4:	90 10 00 18 	mov  %i0, %o0                                  
400078e8:	13 10 00 80 	sethi  %hi(0x40020000), %o1                    
400078ec:	9f c6 40 00 	call  %i1                                      
400078f0:	92 12 60 70 	or  %o1, 0x70, %o1	! 40020070 <CSWTCH.47+0xd8> 
                                                                      
  /*                                                                  
   * 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 ;                   
400078f4:	03 10 00 88 	sethi  %hi(0x40022000), %g1                    
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
400078f8:	2d 10 00 80 	sethi  %hi(0x40020000), %l6                    
                                                                      
  /*                                                                  
   * 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 ;                   
400078fc:	82 10 60 f0 	or  %g1, 0xf0, %g1                             
      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,                                              
40007900:	2b 10 00 80 	sethi  %hi(0x40020000), %l5                    
      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,                                              
40007904:	29 10 00 80 	sethi  %hi(0x40020000), %l4                    
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
40007908:	27 10 00 80 	sethi  %hi(0x40020000), %l3                    
   * 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 );   
4000790c:	ba 07 bf a0 	add  %fp, -96, %i5                             
                                                                      
  /*                                                                  
   * 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 ;                   
40007910:	ae 10 00 01 	mov  %g1, %l7                                  
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
40007914:	ac 15 a0 c0 	or  %l6, 0xc0, %l6                             
      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,                                              
40007918:	aa 15 60 e0 	or  %l5, 0xe0, %l5                             
      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,                                              
4000791c:	a8 15 21 00 	or  %l4, 0x100, %l4                            
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
40007920:	a6 14 e0 d8 	or  %l3, 0xd8, %l3                             
                                                                      
  /*                                                                  
   * 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 ;                   
40007924:	e0 00 60 08 	ld  [ %g1 + 8 ], %l0                           
    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 );      
40007928:	b8 07 bf d8 	add  %fp, -40, %i4                             
    #if defined(RTEMS_DEBUG)                                          
      if ( status != RTEMS_SUCCESSFUL )                               
        continue;                                                     
    #endif                                                            
                                                                      
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
4000792c:	a4 07 bf f8 	add  %fp, -8, %l2                              
      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 );
40007930:	b4 07 bf b8 	add  %fp, -72, %i2                             
                                                                      
  /*                                                                  
   * 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 ;                   
40007934:	10 80 00 51 	b  40007a78 <rtems_rate_monotonic_report_statistics_with_plugin+0x1e0>
40007938:	a2 07 bf f0 	add  %fp, -16, %l1                             
        id <= _Rate_monotonic_Information.maximum_id ;                
        id++ ) {                                                      
    status = rtems_rate_monotonic_get_statistics( id, &the_stats );   
4000793c:	40 00 17 d9 	call  4000d8a0 <rtems_rate_monotonic_get_statistics>
40007940:	92 10 00 1d 	mov  %i5, %o1                                  
    if ( status != RTEMS_SUCCESSFUL )                                 
40007944:	80 a2 20 00 	cmp  %o0, 0                                    
40007948:	32 80 00 4c 	bne,a   40007a78 <rtems_rate_monotonic_report_statistics_with_plugin+0x1e0>
4000794c:	a0 04 20 01 	inc  %l0                                       
      continue;                                                       
                                                                      
    /* If the above passed, so should this but check it anyway */     
    status = rtems_rate_monotonic_get_status( id, &the_status );      
40007950:	92 10 00 1c 	mov  %i4, %o1                                  
40007954:	40 00 18 00 	call  4000d954 <rtems_rate_monotonic_get_status>
40007958:	90 10 00 10 	mov  %l0, %o0                                  
    #if defined(RTEMS_DEBUG)                                          
      if ( status != RTEMS_SUCCESSFUL )                               
        continue;                                                     
    #endif                                                            
                                                                      
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
4000795c:	d0 07 bf d8 	ld  [ %fp + -40 ], %o0                         
40007960:	94 10 00 12 	mov  %l2, %o2                                  
40007964:	40 00 00 ae 	call  40007c1c <rtems_object_get_name>         
40007968:	92 10 20 05 	mov  5, %o1                                    
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
4000796c:	d8 1f bf a0 	ldd  [ %fp + -96 ], %o4                        
40007970:	92 10 00 16 	mov  %l6, %o1                                  
40007974:	94 10 00 10 	mov  %l0, %o2                                  
40007978:	90 10 00 18 	mov  %i0, %o0                                  
4000797c:	9f c6 40 00 	call  %i1                                      
40007980:	96 10 00 12 	mov  %l2, %o3                                  
    );                                                                
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
40007984:	c2 07 bf a0 	ld  [ %fp + -96 ], %g1                         
      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 );
40007988:	94 10 00 11 	mov  %l1, %o2                                  
4000798c:	90 10 00 1a 	mov  %i2, %o0                                  
    );                                                                
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
40007990:	80 a0 60 00 	cmp  %g1, 0                                    
40007994:	12 80 00 06 	bne  400079ac <rtems_rate_monotonic_report_statistics_with_plugin+0x114>
40007998:	92 10 00 13 	mov  %l3, %o1                                  
      (*print)( context, "\n" );                                      
4000799c:	9f c6 40 00 	call  %i1                                      
400079a0:	90 10 00 18 	mov  %i0, %o0                                  
      continue;                                                       
400079a4:	10 80 00 35 	b  40007a78 <rtems_rate_monotonic_report_statistics_with_plugin+0x1e0>
400079a8:	a0 04 20 01 	inc  %l0                                       
      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 );
400079ac:	40 00 0e 22 	call  4000b234 <_Timespec_Divide_by_integer>   
400079b0:	92 10 00 01 	mov  %g1, %o1                                  
      (*print)( context,                                              
400079b4:	d0 07 bf ac 	ld  [ %fp + -84 ], %o0                         
400079b8:	40 00 52 d1 	call  4001c4fc <.div>                          
400079bc:	92 10 23 e8 	mov  0x3e8, %o1                                
400079c0:	96 10 00 08 	mov  %o0, %o3                                  
400079c4:	d0 07 bf b4 	ld  [ %fp + -76 ], %o0                         
400079c8:	d6 27 bf 9c 	st  %o3, [ %fp + -100 ]                        
400079cc:	40 00 52 cc 	call  4001c4fc <.div>                          
400079d0:	92 10 23 e8 	mov  0x3e8, %o1                                
400079d4:	c2 07 bf f0 	ld  [ %fp + -16 ], %g1                         
400079d8:	b6 10 00 08 	mov  %o0, %i3                                  
400079dc:	d0 07 bf f4 	ld  [ %fp + -12 ], %o0                         
400079e0:	c2 23 a0 5c 	st  %g1, [ %sp + 0x5c ]                        
400079e4:	40 00 52 c6 	call  4001c4fc <.div>                          
400079e8:	92 10 23 e8 	mov  0x3e8, %o1                                
400079ec:	d8 07 bf b0 	ld  [ %fp + -80 ], %o4                         
400079f0:	d6 07 bf 9c 	ld  [ %fp + -100 ], %o3                        
400079f4:	d4 07 bf a8 	ld  [ %fp + -88 ], %o2                         
400079f8:	9a 10 00 1b 	mov  %i3, %o5                                  
400079fc:	d0 23 a0 60 	st  %o0, [ %sp + 0x60 ]                        
40007a00:	92 10 00 15 	mov  %l5, %o1                                  
40007a04:	9f c6 40 00 	call  %i1                                      
40007a08:	90 10 00 18 	mov  %i0, %o0                                  
      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);
40007a0c:	d2 07 bf a0 	ld  [ %fp + -96 ], %o1                         
40007a10:	94 10 00 11 	mov  %l1, %o2                                  
40007a14:	40 00 0e 08 	call  4000b234 <_Timespec_Divide_by_integer>   
40007a18:	90 07 bf d0 	add  %fp, -48, %o0                             
      (*print)( context,                                              
40007a1c:	d0 07 bf c4 	ld  [ %fp + -60 ], %o0                         
40007a20:	40 00 52 b7 	call  4001c4fc <.div>                          
40007a24:	92 10 23 e8 	mov  0x3e8, %o1                                
40007a28:	96 10 00 08 	mov  %o0, %o3                                  
40007a2c:	d0 07 bf cc 	ld  [ %fp + -52 ], %o0                         
40007a30:	d6 27 bf 9c 	st  %o3, [ %fp + -100 ]                        
40007a34:	40 00 52 b2 	call  4001c4fc <.div>                          
40007a38:	92 10 23 e8 	mov  0x3e8, %o1                                
40007a3c:	c2 07 bf f0 	ld  [ %fp + -16 ], %g1                         
40007a40:	b6 10 00 08 	mov  %o0, %i3                                  
40007a44:	d0 07 bf f4 	ld  [ %fp + -12 ], %o0                         
40007a48:	92 10 23 e8 	mov  0x3e8, %o1                                
40007a4c:	40 00 52 ac 	call  4001c4fc <.div>                          
40007a50:	c2 23 a0 5c 	st  %g1, [ %sp + 0x5c ]                        
40007a54:	d4 07 bf c0 	ld  [ %fp + -64 ], %o2                         
40007a58:	d6 07 bf 9c 	ld  [ %fp + -100 ], %o3                        
40007a5c:	d8 07 bf c8 	ld  [ %fp + -56 ], %o4                         
40007a60:	d0 23 a0 60 	st  %o0, [ %sp + 0x60 ]                        
40007a64:	9a 10 00 1b 	mov  %i3, %o5                                  
40007a68:	90 10 00 18 	mov  %i0, %o0                                  
40007a6c:	9f c6 40 00 	call  %i1                                      
40007a70:	92 10 00 14 	mov  %l4, %o1                                  
   * Cycle through all possible ids and try to report on each one.  If it
   * is a period that is inactive, we just get an error back.  No big deal.
   */                                                                 
  for ( id=_Rate_monotonic_Information.minimum_id ;                   
        id <= _Rate_monotonic_Information.maximum_id ;                
        id++ ) {                                                      
40007a74:	a0 04 20 01 	inc  %l0                                       
                                                                      
  /*                                                                  
   * 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 ;                   
40007a78:	c2 05 e0 0c 	ld  [ %l7 + 0xc ], %g1                         
40007a7c:	80 a4 00 01 	cmp  %l0, %g1                                  
40007a80:	08 bf ff af 	bleu  4000793c <rtems_rate_monotonic_report_statistics_with_plugin+0xa4>
40007a84:	90 10 00 10 	mov  %l0, %o0                                  
40007a88:	81 c7 e0 08 	ret                                            
40007a8c:	81 e8 00 00 	restore                                        
                                                                      

40014e2c <rtems_signal_send>: rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) {
40014e2c:	9d e3 bf 98 	save  %sp, -104, %sp                           
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
  RTEMS_API_Control       *api;                                       
  ASR_Information         *asr;                                       
                                                                      
  if ( !signal_set )                                                  
40014e30:	82 10 20 0a 	mov  0xa, %g1                                  
40014e34:	80 a6 60 00 	cmp  %i1, 0                                    
40014e38:	02 80 00 2a 	be  40014ee0 <rtems_signal_send+0xb4>          
40014e3c:	90 10 00 18 	mov  %i0, %o0                                  
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  the_thread = _Thread_Get( id, &location );                          
40014e40:	40 00 10 31 	call  40018f04 <_Thread_Get>                   
40014e44:	92 07 bf fc 	add  %fp, -4, %o1                              
  switch ( location ) {                                               
40014e48:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          
  ASR_Information         *asr;                                       
                                                                      
  if ( !signal_set )                                                  
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  the_thread = _Thread_Get( id, &location );                          
40014e4c:	a0 10 00 08 	mov  %o0, %l0                                  
  switch ( location ) {                                               
40014e50:	80 a0 a0 00 	cmp  %g2, 0                                    
40014e54:	12 80 00 23 	bne  40014ee0 <rtems_signal_send+0xb4>         
40014e58:	82 10 20 04 	mov  4, %g1                                    
                                                                      
    case OBJECTS_LOCAL:                                               
      api = the_thread->API_Extensions[ THREAD_API_RTEMS ];           
40014e5c:	d2 02 21 5c 	ld  [ %o0 + 0x15c ], %o1                       
      asr = &api->Signal;                                             
40014e60:	c2 02 60 0c 	ld  [ %o1 + 0xc ], %g1                         
40014e64:	80 a0 60 00 	cmp  %g1, 0                                    
40014e68:	02 80 00 1b 	be  40014ed4 <rtems_signal_send+0xa8>          
40014e6c:	01 00 00 00 	nop                                            
                                                                      
      if ( ! _ASR_Is_null_handler( asr->handler ) ) {                 
        if ( asr->is_enabled ) {                                      
40014e70:	c2 0a 60 08 	ldub  [ %o1 + 8 ], %g1                         
40014e74:	80 a0 60 00 	cmp  %g1, 0                                    
40014e78:	02 80 00 11 	be  40014ebc <rtems_signal_send+0x90>          
40014e7c:	90 10 00 19 	mov  %i1, %o0                                  
          _ASR_Post_signals( signal_set, &asr->signals_posted );      
40014e80:	7f ff ff e2 	call  40014e08 <_ASR_Post_signals>             
40014e84:	92 02 60 14 	add  %o1, 0x14, %o1                            
                                                                      
          the_thread->do_post_task_switch_extension = true;           
                                                                      
          if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
40014e88:	03 10 00 f3 	sethi  %hi(0x4003cc00), %g1                    
40014e8c:	c4 00 63 18 	ld  [ %g1 + 0x318 ], %g2	! 4003cf18 <_ISR_Nest_level>
                                                                      
      if ( ! _ASR_Is_null_handler( asr->handler ) ) {                 
        if ( asr->is_enabled ) {                                      
          _ASR_Post_signals( signal_set, &asr->signals_posted );      
                                                                      
          the_thread->do_post_task_switch_extension = true;           
40014e90:	82 10 20 01 	mov  1, %g1                                    
                                                                      
          if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
40014e94:	80 a0 a0 00 	cmp  %g2, 0                                    
40014e98:	02 80 00 0b 	be  40014ec4 <rtems_signal_send+0x98>          
40014e9c:	c2 2c 20 74 	stb  %g1, [ %l0 + 0x74 ]                       
40014ea0:	05 10 00 f3 	sethi  %hi(0x4003cc00), %g2                    
40014ea4:	c4 00 a3 3c 	ld  [ %g2 + 0x33c ], %g2	! 4003cf3c <_Thread_Executing>
40014ea8:	80 a4 00 02 	cmp  %l0, %g2                                  
40014eac:	12 80 00 06 	bne  40014ec4 <rtems_signal_send+0x98>         <== NEVER TAKEN
40014eb0:	05 10 00 f3 	sethi  %hi(0x4003cc00), %g2                    
            _ISR_Signals_to_thread_executing = true;                  
40014eb4:	10 80 00 04 	b  40014ec4 <rtems_signal_send+0x98>           
40014eb8:	c2 28 a3 d8 	stb  %g1, [ %g2 + 0x3d8 ]	! 4003cfd8 <_ISR_Signals_to_thread_executing>
        } else {                                                      
          _ASR_Post_signals( signal_set, &asr->signals_pending );     
40014ebc:	7f ff ff d3 	call  40014e08 <_ASR_Post_signals>             
40014ec0:	92 02 60 18 	add  %o1, 0x18, %o1                            
        }                                                             
        _Thread_Enable_dispatch();                                    
40014ec4:	40 00 0f ed 	call  40018e78 <_Thread_Enable_dispatch>       
40014ec8:	01 00 00 00 	nop                                            
        return RTEMS_SUCCESSFUL;                                      
40014ecc:	10 80 00 05 	b  40014ee0 <rtems_signal_send+0xb4>           
40014ed0:	82 10 20 00 	clr  %g1	! 0 <PROM_START>                      
      }                                                               
      _Thread_Enable_dispatch();                                      
40014ed4:	40 00 0f e9 	call  40018e78 <_Thread_Enable_dispatch>       
40014ed8:	01 00 00 00 	nop                                            
40014edc:	82 10 20 0b 	mov  0xb, %g1	! b <PROM_START+0xb>             
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
40014ee0:	81 c7 e0 08 	ret                                            
40014ee4:	91 e8 00 01 	restore  %g0, %g1, %o0                         
                                                                      

4000d6d8 <rtems_task_mode>: rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) {
4000d6d8:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ASR_Information    *asr;                                            
  bool                is_asr_enabled = false;                         
  bool                needs_asr_dispatching = false;                  
  rtems_mode          old_mode;                                       
                                                                      
  if ( !previous_mode_set )                                           
4000d6dc:	80 a6 a0 00 	cmp  %i2, 0                                    
4000d6e0:	02 80 00 54 	be  4000d830 <rtems_task_mode+0x158>           
4000d6e4:	82 10 20 09 	mov  9, %g1                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
4000d6e8:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
4000d6ec:	e0 00 60 cc 	ld  [ %g1 + 0xcc ], %l0	! 4001c4cc <_Thread_Executing>
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
4000d6f0:	c4 0c 20 75 	ldub  [ %l0 + 0x75 ], %g2                      
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
4000d6f4:	c2 04 20 7c 	ld  [ %l0 + 0x7c ], %g1                        
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
4000d6f8:	80 a0 00 02 	cmp  %g0, %g2                                  
                                                                      
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
4000d6fc:	e2 04 21 5c 	ld  [ %l0 + 0x15c ], %l1                       
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
4000d700:	a4 60 3f ff 	subx  %g0, -1, %l2                             
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
4000d704:	80 a0 60 00 	cmp  %g1, 0                                    
4000d708:	02 80 00 03 	be  4000d714 <rtems_task_mode+0x3c>            
4000d70c:	a5 2c a0 08 	sll  %l2, 8, %l2                               
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
4000d710:	a4 14 a2 00 	or  %l2, 0x200, %l2                            
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
4000d714:	c2 0c 60 08 	ldub  [ %l1 + 8 ], %g1                         
4000d718:	80 a0 00 01 	cmp  %g0, %g1                                  
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
  old_mode |= _ISR_Get_level();                                       
4000d71c:	7f ff f1 cd 	call  40009e50 <_CPU_ISR_Get_level>            
4000d720:	a6 60 3f ff 	subx  %g0, -1, %l3                             
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
4000d724:	a7 2c e0 0a 	sll  %l3, 0xa, %l3                             
  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;           
4000d728:	a6 14 c0 08 	or  %l3, %o0, %l3                              
  old_mode |= _ISR_Get_level();                                       
                                                                      
  *previous_mode_set = old_mode;                                      
4000d72c:	a4 14 c0 12 	or  %l3, %l2, %l2                              
                                                                      
  /*                                                                  
   *  These are generic thread scheduling characteristics.            
   */                                                                 
                                                                      
  if ( mask & RTEMS_PREEMPT_MASK )                                    
4000d730:	80 8e 61 00 	btst  0x100, %i1                               
4000d734:	02 80 00 06 	be  4000d74c <rtems_task_mode+0x74>            
4000d738:	e4 26 80 00 	st  %l2, [ %i2 ]                               
    executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
4000d73c:	83 36 20 08 	srl  %i0, 8, %g1                               
4000d740:	82 18 60 01 	xor  %g1, 1, %g1                               
4000d744:	82 08 60 01 	and  %g1, 1, %g1                               
4000d748:	c2 2c 20 75 	stb  %g1, [ %l0 + 0x75 ]                       
                                                                      
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
4000d74c:	80 8e 62 00 	btst  0x200, %i1                               
4000d750:	02 80 00 0b 	be  4000d77c <rtems_task_mode+0xa4>            
4000d754:	80 8e 60 0f 	btst  0xf, %i1                                 
    if ( _Modes_Is_timeslice(mode_set) ) {                            
4000d758:	80 8e 22 00 	btst  0x200, %i0                               
4000d75c:	22 80 00 07 	be,a   4000d778 <rtems_task_mode+0xa0>         
4000d760:	c0 24 20 7c 	clr  [ %l0 + 0x7c ]                            
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
4000d764:	03 10 00 70 	sethi  %hi(0x4001c000), %g1                    
4000d768:	c2 00 63 68 	ld  [ %g1 + 0x368 ], %g1	! 4001c368 <_Thread_Ticks_per_timeslice>
4000d76c:	c2 24 20 78 	st  %g1, [ %l0 + 0x78 ]                        
  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;
4000d770:	82 10 20 01 	mov  1, %g1                                    
4000d774:	c2 24 20 7c 	st  %g1, [ %l0 + 0x7c ]                        
                                                                      
  /*                                                                  
   *  Set the new interrupt level                                     
   */                                                                 
                                                                      
  if ( mask & RTEMS_INTERRUPT_MASK )                                  
4000d778:	80 8e 60 0f 	btst  0xf, %i1                                 
4000d77c:	02 80 00 06 	be  4000d794 <rtems_task_mode+0xbc>            
4000d780:	80 8e 64 00 	btst  0x400, %i1                               
 */                                                                   
RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level (                
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
  _ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) );           
4000d784:	90 0e 20 0f 	and  %i0, 0xf, %o0                             
4000d788:	7f ff d1 75 	call  40001d5c <sparc_enable_interrupts>       
4000d78c:	91 2a 20 08 	sll  %o0, 8, %o0                               
   */                                                                 
                                                                      
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
4000d790:	80 8e 64 00 	btst  0x400, %i1                               
4000d794:	22 80 00 18 	be,a   4000d7f4 <rtems_task_mode+0x11c>        
4000d798:	a0 10 20 00 	clr  %l0                                       
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
4000d79c:	c2 0c 60 08 	ldub  [ %l1 + 8 ], %g1                         
 *  Output:                                                           
 *    *previous_mode_set - previous mode set                          
 *     always return RTEMS_SUCCESSFUL;                                
 */                                                                   
                                                                      
rtems_status_code rtems_task_mode(                                    
4000d7a0:	b1 36 20 0a 	srl  %i0, 0xa, %i0                             
4000d7a4:	b0 1e 20 01 	xor  %i0, 1, %i0                               
4000d7a8:	b0 0e 20 01 	and  %i0, 1, %i0                               
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
4000d7ac:	80 a6 00 01 	cmp  %i0, %g1                                  
4000d7b0:	22 80 00 11 	be,a   4000d7f4 <rtems_task_mode+0x11c>        
4000d7b4:	a0 10 20 00 	clr  %l0                                       
)                                                                     
{                                                                     
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
4000d7b8:	7f ff d1 65 	call  40001d4c <sparc_disable_interrupts>      
4000d7bc:	f0 2c 60 08 	stb  %i0, [ %l1 + 8 ]                          
    _signals                     = information->signals_pending;      
4000d7c0:	c4 04 60 18 	ld  [ %l1 + 0x18 ], %g2                        
    information->signals_pending = information->signals_posted;       
4000d7c4:	c2 04 60 14 	ld  [ %l1 + 0x14 ], %g1                        
    information->signals_posted  = _signals;                          
4000d7c8:	c4 24 60 14 	st  %g2, [ %l1 + 0x14 ]                        
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
    _signals                     = information->signals_pending;      
    information->signals_pending = information->signals_posted;       
4000d7cc:	c2 24 60 18 	st  %g1, [ %l1 + 0x18 ]                        
    information->signals_posted  = _signals;                          
  _ISR_Enable( _level );                                              
4000d7d0:	7f ff d1 63 	call  40001d5c <sparc_enable_interrupts>       
4000d7d4:	01 00 00 00 	nop                                            
4000d7d8:	c2 04 60 14 	ld  [ %l1 + 0x14 ], %g1                        
4000d7dc:	80 a0 60 00 	cmp  %g1, 0                                    
4000d7e0:	22 80 00 05 	be,a   4000d7f4 <rtems_task_mode+0x11c>        
4000d7e4:	a0 10 20 00 	clr  %l0                                       
    if ( is_asr_enabled != asr->is_enabled ) {                        
      asr->is_enabled = is_asr_enabled;                               
      _ASR_Swap_signals( asr );                                       
      if ( _ASR_Are_signals_pending( asr ) ) {                        
        needs_asr_dispatching = true;                                 
        executing->do_post_task_switch_extension = true;              
4000d7e8:	82 10 20 01 	mov  1, %g1                                    
4000d7ec:	c2 2c 20 74 	stb  %g1, [ %l0 + 0x74 ]                       
4000d7f0:	a0 10 20 01 	mov  1, %l0                                    
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) )                   
4000d7f4:	03 10 00 71 	sethi  %hi(0x4001c400), %g1                    
4000d7f8:	c2 00 61 b0 	ld  [ %g1 + 0x1b0 ], %g1	! 4001c5b0 <_System_state_Current>
4000d7fc:	80 a0 60 03 	cmp  %g1, 3                                    
4000d800:	12 80 00 0c 	bne  4000d830 <rtems_task_mode+0x158>          <== NEVER TAKEN
4000d804:	82 10 20 00 	clr  %g1                                       
    if ( _Thread_Evaluate_mode() || needs_asr_dispatching )           
4000d808:	40 00 00 b4 	call  4000dad8 <_Thread_Evaluate_mode>         
4000d80c:	01 00 00 00 	nop                                            
4000d810:	80 8a 20 ff 	btst  0xff, %o0                                
4000d814:	12 80 00 04 	bne  4000d824 <rtems_task_mode+0x14c>          
4000d818:	80 8c 20 ff 	btst  0xff, %l0                                
4000d81c:	02 80 00 05 	be  4000d830 <rtems_task_mode+0x158>           
4000d820:	82 10 20 00 	clr  %g1                                       
      _Thread_Dispatch();                                             
4000d824:	7f ff eb 0f 	call  40008460 <_Thread_Dispatch>              
4000d828:	01 00 00 00 	nop                                            
4000d82c:	82 10 20 00 	clr  %g1	! 0 <PROM_START>                      
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
4000d830:	81 c7 e0 08 	ret                                            
4000d834:	91 e8 00 01 	restore  %g0, %g1, %o0                         
                                                                      

4000ba44 <rtems_task_set_priority>: rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) {
4000ba44:	9d e3 bf 98 	save  %sp, -104, %sp                           
  register Thread_Control *the_thread;                                
  Objects_Locations               location;                           
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
4000ba48:	80 a6 60 00 	cmp  %i1, 0                                    
4000ba4c:	02 80 00 07 	be  4000ba68 <rtems_task_set_priority+0x24>    
4000ba50:	90 10 00 18 	mov  %i0, %o0                                  
4000ba54:	03 10 00 89 	sethi  %hi(0x40022400), %g1                    
4000ba58:	c2 08 60 14 	ldub  [ %g1 + 0x14 ], %g1	! 40022414 <rtems_maximum_priority>
4000ba5c:	80 a6 40 01 	cmp  %i1, %g1                                  
4000ba60:	18 80 00 1c 	bgu  4000bad0 <rtems_task_set_priority+0x8c>   
4000ba64:	b0 10 20 13 	mov  0x13, %i0                                 
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
                                                                      
  if ( !old_priority )                                                
4000ba68:	80 a6 a0 00 	cmp  %i2, 0                                    
4000ba6c:	02 80 00 19 	be  4000bad0 <rtems_task_set_priority+0x8c>    
4000ba70:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
4000ba74:	40 00 08 14 	call  4000dac4 <_Thread_Get>                   
4000ba78:	92 07 bf fc 	add  %fp, -4, %o1                              
  switch ( location ) {                                               
4000ba7c:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
4000ba80:	80 a0 60 00 	cmp  %g1, 0                                    
4000ba84:	12 80 00 13 	bne  4000bad0 <rtems_task_set_priority+0x8c>   
4000ba88:	b0 10 20 04 	mov  4, %i0                                    
                                                                      
    case OBJECTS_LOCAL:                                               
      /* XXX need helper to "convert" from core priority */           
      *old_priority = the_thread->current_priority;                   
4000ba8c:	c2 02 20 14 	ld  [ %o0 + 0x14 ], %g1                        
      if ( new_priority != RTEMS_CURRENT_PRIORITY ) {                 
4000ba90:	80 a6 60 00 	cmp  %i1, 0                                    
4000ba94:	02 80 00 0d 	be  4000bac8 <rtems_task_set_priority+0x84>    
4000ba98:	c2 26 80 00 	st  %g1, [ %i2 ]                               
        the_thread->real_priority = new_priority;                     
        if ( the_thread->resource_count == 0 ||                       
4000ba9c:	c2 02 20 1c 	ld  [ %o0 + 0x1c ], %g1                        
4000baa0:	80 a0 60 00 	cmp  %g1, 0                                    
4000baa4:	02 80 00 06 	be  4000babc <rtems_task_set_priority+0x78>    
4000baa8:	f2 22 20 18 	st  %i1, [ %o0 + 0x18 ]                        
             the_thread->current_priority > new_priority )            
4000baac:	c2 02 20 14 	ld  [ %o0 + 0x14 ], %g1                        
4000bab0:	80 a0 40 19 	cmp  %g1, %i1                                  
4000bab4:	08 80 00 05 	bleu  4000bac8 <rtems_task_set_priority+0x84>  <== ALWAYS TAKEN
4000bab8:	01 00 00 00 	nop                                            
          _Thread_Change_priority( the_thread, new_priority, false ); 
4000babc:	92 10 00 19 	mov  %i1, %o1                                  
4000bac0:	40 00 06 6e 	call  4000d478 <_Thread_Change_priority>       
4000bac4:	94 10 20 00 	clr  %o2                                       
      }                                                               
      _Thread_Enable_dispatch();                                      
4000bac8:	40 00 07 dc 	call  4000da38 <_Thread_Enable_dispatch>       
4000bacc:	b0 10 20 00 	clr  %i0                                       
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
4000bad0:	81 c7 e0 08 	ret                                            
4000bad4:	81 e8 00 00 	restore                                        
                                                                      

400157e4 <rtems_timer_cancel>: */ rtems_status_code rtems_timer_cancel( rtems_id id ) {
400157e4:	9d e3 bf 98 	save  %sp, -104, %sp                           
RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get (                      
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Timer_Control *)                                            
400157e8:	11 10 00 f4 	sethi  %hi(0x4003d000), %o0                    
400157ec:	92 10 00 18 	mov  %i0, %o1                                  
400157f0:	90 12 21 54 	or  %o0, 0x154, %o0                            
400157f4:	40 00 0b 39 	call  400184d8 <_Objects_Get>                  
400157f8:	94 07 bf fc 	add  %fp, -4, %o2                              
  Timer_Control   *the_timer;                                         
  Objects_Locations       location;                                   
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
400157fc:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
40015800:	80 a0 60 00 	cmp  %g1, 0                                    
40015804:	12 80 00 0a 	bne  4001582c <rtems_timer_cancel+0x48>        
40015808:	b0 10 20 04 	mov  4, %i0                                    
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( !_Timer_Is_dormant_class( the_timer->the_class ) )         
4001580c:	c2 02 20 38 	ld  [ %o0 + 0x38 ], %g1                        
40015810:	80 a0 60 04 	cmp  %g1, 4                                    
40015814:	02 80 00 04 	be  40015824 <rtems_timer_cancel+0x40>         <== NEVER TAKEN
40015818:	01 00 00 00 	nop                                            
        (void) _Watchdog_Remove( &the_timer->Ticker );                
4001581c:	40 00 13 8a 	call  4001a644 <_Watchdog_Remove>              
40015820:	90 02 20 10 	add  %o0, 0x10, %o0                            
      _Thread_Enable_dispatch();                                      
40015824:	40 00 0d 95 	call  40018e78 <_Thread_Enable_dispatch>       
40015828:	b0 10 20 00 	clr  %i0                                       
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
4001582c:	81 c7 e0 08 	ret                                            
40015830:	81 e8 00 00 	restore                                        
                                                                      

40015cd4 <rtems_timer_server_fire_when>: rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) {
40015cd4:	9d e3 bf 98 	save  %sp, -104, %sp                           
  Timer_Control        *the_timer;                                    
  Objects_Locations     location;                                     
  rtems_interval        seconds;                                      
  Timer_server_Control *timer_server = _Timer_server;                 
40015cd8:	03 10 00 f4 	sethi  %hi(0x4003d000), %g1                    
40015cdc:	e0 00 61 94 	ld  [ %g1 + 0x194 ], %l0	! 4003d194 <_Timer_server>
  rtems_id                           id,                              
  rtems_time_of_day                  *wall_time,                      
  rtems_timer_service_routine_entry  routine,                         
  void                              *user_data                        
)                                                                     
{                                                                     
40015ce0:	a2 10 00 18 	mov  %i0, %l1                                  
  Timer_Control        *the_timer;                                    
  Objects_Locations     location;                                     
  rtems_interval        seconds;                                      
  Timer_server_Control *timer_server = _Timer_server;                 
                                                                      
  if ( !timer_server )                                                
40015ce4:	80 a4 20 00 	cmp  %l0, 0                                    
40015ce8:	02 80 00 32 	be  40015db0 <rtems_timer_server_fire_when+0xdc>
40015cec:	b0 10 20 0e 	mov  0xe, %i0                                  
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD_Is_set )                                                 
40015cf0:	03 10 00 f3 	sethi  %hi(0x4003cc00), %g1                    
40015cf4:	c2 08 62 94 	ldub  [ %g1 + 0x294 ], %g1	! 4003ce94 <_TOD_Is_set>
40015cf8:	80 a0 60 00 	cmp  %g1, 0                                    
40015cfc:	02 80 00 2d 	be  40015db0 <rtems_timer_server_fire_when+0xdc><== NEVER TAKEN
40015d00:	b0 10 20 0b 	mov  0xb, %i0                                  
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
40015d04:	80 a6 a0 00 	cmp  %i2, 0                                    
40015d08:	02 80 00 2a 	be  40015db0 <rtems_timer_server_fire_when+0xdc>
40015d0c:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
40015d10:	7f ff f4 0d 	call  40012d44 <_TOD_Validate>                 
40015d14:	90 10 00 19 	mov  %i1, %o0                                  
40015d18:	80 8a 20 ff 	btst  0xff, %o0                                
40015d1c:	22 80 00 25 	be,a   40015db0 <rtems_timer_server_fire_when+0xdc>
40015d20:	b0 10 20 14 	mov  0x14, %i0                                 
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
40015d24:	7f ff f3 d4 	call  40012c74 <_TOD_To_seconds>               
40015d28:	90 10 00 19 	mov  %i1, %o0                                  
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
40015d2c:	27 10 00 f3 	sethi  %hi(0x4003cc00), %l3                    
40015d30:	c2 04 e3 10 	ld  [ %l3 + 0x310 ], %g1	! 4003cf10 <_TOD_Now> 
40015d34:	80 a2 00 01 	cmp  %o0, %g1                                  
40015d38:	08 80 00 20 	bleu  40015db8 <rtems_timer_server_fire_when+0xe4>
40015d3c:	a4 10 00 08 	mov  %o0, %l2                                  
40015d40:	11 10 00 f4 	sethi  %hi(0x4003d000), %o0                    
40015d44:	92 10 00 11 	mov  %l1, %o1                                  
40015d48:	90 12 21 54 	or  %o0, 0x154, %o0                            
40015d4c:	40 00 09 e3 	call  400184d8 <_Objects_Get>                  
40015d50:	94 07 bf fc 	add  %fp, -4, %o2                              
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
40015d54:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
40015d58:	b2 10 00 08 	mov  %o0, %i1                                  
40015d5c:	80 a0 60 00 	cmp  %g1, 0                                    
40015d60:	12 80 00 14 	bne  40015db0 <rtems_timer_server_fire_when+0xdc>
40015d64:	b0 10 20 04 	mov  4, %i0                                    
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
40015d68:	40 00 12 37 	call  4001a644 <_Watchdog_Remove>              
40015d6c:	90 02 20 10 	add  %o0, 0x10, %o0                            
  the_watchdog->routine   = routine;                                  
  the_watchdog->id        = id;                                       
40015d70:	e2 26 60 30 	st  %l1, [ %i1 + 0x30 ]                        
      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();
40015d74:	c4 04 e3 10 	ld  [ %l3 + 0x310 ], %g2                       
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
40015d78:	c2 04 20 04 	ld  [ %l0 + 4 ], %g1                           
40015d7c:	90 10 00 10 	mov  %l0, %o0                                  
40015d80:	92 10 00 19 	mov  %i1, %o1                                  
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
      the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;               
      _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
      the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
40015d84:	a4 24 80 02 	sub  %l2, %g2, %l2                             
  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;               
40015d88:	84 10 20 03 	mov  3, %g2                                    
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
40015d8c:	f4 26 60 2c 	st  %i2, [ %i1 + 0x2c ]                        
40015d90:	c4 26 60 38 	st  %g2, [ %i1 + 0x38 ]                        
  the_watchdog->id        = id;                                       
  the_watchdog->user_data = user_data;                                
40015d94:	f6 26 60 34 	st  %i3, [ %i1 + 0x34 ]                        
      _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
      the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
40015d98:	e4 26 60 1c 	st  %l2, [ %i1 + 0x1c ]                        
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
40015d9c:	c0 26 60 18 	clr  [ %i1 + 0x18 ]                            
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
40015da0:	9f c0 40 00 	call  %g1                                      
40015da4:	b0 10 20 00 	clr  %i0                                       
                                                                      
      _Thread_Enable_dispatch();                                      
40015da8:	40 00 0c 34 	call  40018e78 <_Thread_Enable_dispatch>       
40015dac:	01 00 00 00 	nop                                            
      return RTEMS_SUCCESSFUL;                                        
40015db0:	81 c7 e0 08 	ret                                            
40015db4:	81 e8 00 00 	restore                                        
40015db8:	b0 10 20 14 	mov  0x14, %i0                                 
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
40015dbc:	81 c7 e0 08 	ret                                            
40015dc0:	81 e8 00 00 	restore