RTEMS 4.10
Annotated Report
Thu May 27 19:10:47 2010

4000a0e4 <IMFS_Set_handlers>:                                         
{                                                                     
  IMFS_jnode_t    *node = loc->node_access;                           
  IMFS_fs_info_t  *fs_info;                                           
                                                                      
  fs_info = loc->mt_entry->fs_info;                                   
  switch( node->type ) {                                              
4000a0e4:	c4 02 00 00 	ld  [ %o0 ], %g2                               
)                                                                     
{                                                                     
  IMFS_jnode_t    *node = loc->node_access;                           
  IMFS_fs_info_t  *fs_info;                                           
                                                                      
  fs_info = loc->mt_entry->fs_info;                                   
4000a0e8:	c2 02 20 10 	ld  [ %o0 + 0x10 ], %g1                        
  switch( node->type ) {                                              
4000a0ec:	c4 00 a0 4c 	ld  [ %g2 + 0x4c ], %g2                        
4000a0f0:	84 00 bf ff 	add  %g2, -1, %g2                              
4000a0f4:	80 a0 a0 06 	cmp  %g2, 6                                    
4000a0f8:	18 80 00 15 	bgu  4000a14c <IMFS_Set_handlers+0x68>         <== NEVER TAKEN
4000a0fc:	c2 00 60 34 	ld  [ %g1 + 0x34 ], %g1                        
4000a100:	85 28 a0 02 	sll  %g2, 2, %g2                               
4000a104:	07 10 00 28 	sethi  %hi(0x4000a000), %g3                    
4000a108:	86 10 e0 c8 	or  %g3, 0xc8, %g3	! 4000a0c8 <miniIMFS_initialize+0x24>
4000a10c:	c4 00 c0 02 	ld  [ %g3 + %g2 ], %g2                         
4000a110:	81 c0 80 00 	jmp  %g2                                       
4000a114:	01 00 00 00 	nop                                            
    case IMFS_DIRECTORY:                                              
      loc->handlers = fs_info->directory_handlers;                    
4000a118:	10 80 00 0c 	b  4000a148 <IMFS_Set_handlers+0x64>           
4000a11c:	c2 00 60 0c 	ld  [ %g1 + 0xc ], %g1                         
      break;                                                          
    case IMFS_DEVICE:                                                 
      loc->handlers = &IMFS_device_handlers;                          
4000a120:	03 10 00 70 	sethi  %hi(0x4001c000), %g1                    
4000a124:	10 80 00 09 	b  4000a148 <IMFS_Set_handlers+0x64>           
4000a128:	82 10 61 30 	or  %g1, 0x130, %g1	! 4001c130 <IMFS_device_handlers>
      break;                                                          
    case IMFS_SYM_LINK:                                               
    case IMFS_HARD_LINK:                                              
      loc->handlers = &IMFS_link_handlers;                            
4000a12c:	03 10 00 70 	sethi  %hi(0x4001c000), %g1                    
4000a130:	10 80 00 06 	b  4000a148 <IMFS_Set_handlers+0x64>           
4000a134:	82 10 61 68 	or  %g1, 0x168, %g1	! 4001c168 <IMFS_link_handlers>
      break;                                                          
    case IMFS_LINEAR_FILE:                                            
      loc->handlers = fs_info->memfile_handlers;                      
      break;                                                          
    case IMFS_MEMORY_FILE:                                            
      loc->handlers = fs_info->memfile_handlers;                      
4000a138:	10 80 00 04 	b  4000a148 <IMFS_Set_handlers+0x64>           
4000a13c:	c2 00 60 08 	ld  [ %g1 + 8 ], %g1                           
      break;                                                          
    case IMFS_FIFO:                                                   
      loc->handlers = &IMFS_fifo_handlers;                            
4000a140:	03 10 00 70 	sethi  %hi(0x4001c000), %g1                    
4000a144:	82 10 60 5c 	or  %g1, 0x5c, %g1	! 4001c05c <IMFS_fifo_handlers>
4000a148:	c2 22 20 08 	st  %g1, [ %o0 + 8 ]                           
      break;                                                          
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
4000a14c:	81 c3 e0 08 	retl                                           
4000a150:	90 10 20 00 	clr  %o0                                       
                                                                      

4000db70 <IMFS_allocate_node>: IMFS_jnode_t *IMFS_allocate_node( IMFS_jnode_types_t type, const char *name, mode_t mode ) {
4000db70:	9d e3 bf 98 	save  %sp, -104, %sp                           
  struct timeval       tv;                                            
                                                                      
  /*                                                                  
   *  Allocate an IMFS jnode                                          
   */                                                                 
  node = calloc( 1, sizeof( IMFS_jnode_t ) );                         
4000db74:	92 10 20 68 	mov  0x68, %o1                                 
4000db78:	7f ff f5 3b 	call  4000b064 <calloc>                        
4000db7c:	90 10 20 01 	mov  1, %o0                                    
IMFS_jnode_t *IMFS_allocate_node(                                     
  IMFS_jnode_types_t                type,                             
  const char                       *name,                             
  mode_t                            mode                              
)                                                                     
{                                                                     
4000db80:	92 10 00 19 	mov  %i1, %o1                                  
                                                                      
  /*                                                                  
   *  Allocate an IMFS jnode                                          
   */                                                                 
  node = calloc( 1, sizeof( IMFS_jnode_t ) );                         
  if ( !node )                                                        
4000db84:	80 a2 20 00 	cmp  %o0, 0                                    
4000db88:	02 80 00 14 	be  4000dbd8 <IMFS_allocate_node+0x68>         <== NEVER TAKEN
4000db8c:	a0 10 00 08 	mov  %o0, %l0                                  
    return NULL;                                                      
                                                                      
  /*                                                                  
   *  Fill in the basic information                                   
   */                                                                 
  node->st_nlink = 1;                                                 
4000db90:	82 10 20 01 	mov  1, %g1                                    
  node->type     = type;                                              
  strncpy( node->name, name, IMFS_NAME_MAX );                         
4000db94:	94 10 20 20 	mov  0x20, %o2                                 
    return NULL;                                                      
                                                                      
  /*                                                                  
   *  Fill in the basic information                                   
   */                                                                 
  node->st_nlink = 1;                                                 
4000db98:	c2 32 20 34 	sth  %g1, [ %o0 + 0x34 ]                       
  node->type     = type;                                              
4000db9c:	f0 22 20 4c 	st  %i0, [ %o0 + 0x4c ]                        
  strncpy( node->name, name, IMFS_NAME_MAX );                         
4000dba0:	40 00 0a 3c 	call  40010490 <strncpy>                       
4000dba4:	90 02 20 0c 	add  %o0, 0xc, %o0                             
  /*                                                                  
   *  Fill in the mode and permission information for the jnode structure.
   */                                                                 
  node->st_mode = mode;                                               
  #if defined(RTEMS_POSIX_API)                                        
    node->st_uid = geteuid();                                         
4000dba8:	7f ff f5 de 	call  4000b320 <geteuid>                       
4000dbac:	f4 24 20 30 	st  %i2, [ %l0 + 0x30 ]                        
    node->st_gid = getegid();                                         
4000dbb0:	7f ff f5 d8 	call  4000b310 <getegid>                       
4000dbb4:	d0 34 20 3c 	sth  %o0, [ %l0 + 0x3c ]                       
  #endif                                                              
                                                                      
  /*                                                                  
   *  Now set all the times.                                          
   */                                                                 
  gettimeofday( &tv, 0 );                                             
4000dbb8:	92 10 20 00 	clr  %o1                                       
   *  Fill in the mode and permission information for the jnode structure.
   */                                                                 
  node->st_mode = mode;                                               
  #if defined(RTEMS_POSIX_API)                                        
    node->st_uid = geteuid();                                         
    node->st_gid = getegid();                                         
4000dbbc:	d0 34 20 3e 	sth  %o0, [ %l0 + 0x3e ]                       
  #endif                                                              
                                                                      
  /*                                                                  
   *  Now set all the times.                                          
   */                                                                 
  gettimeofday( &tv, 0 );                                             
4000dbc0:	7f ff f5 dc 	call  4000b330 <gettimeofday>                  
4000dbc4:	90 07 bf f8 	add  %fp, -8, %o0                              
                                                                      
  node->stat_atime  = (time_t) tv.tv_sec;                             
4000dbc8:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
  node->stat_mtime  = (time_t) tv.tv_sec;                             
  node->stat_ctime  = (time_t) tv.tv_sec;                             
4000dbcc:	c2 24 20 48 	st  %g1, [ %l0 + 0x48 ]                        
  /*                                                                  
   *  Now set all the times.                                          
   */                                                                 
  gettimeofday( &tv, 0 );                                             
                                                                      
  node->stat_atime  = (time_t) tv.tv_sec;                             
4000dbd0:	c2 24 20 40 	st  %g1, [ %l0 + 0x40 ]                        
  node->stat_mtime  = (time_t) tv.tv_sec;                             
4000dbd4:	c2 24 20 44 	st  %g1, [ %l0 + 0x44 ]                        
  node->stat_ctime  = (time_t) tv.tv_sec;                             
                                                                      
  return node;                                                        
}                                                                     
4000dbd8:	81 c7 e0 08 	ret                                            
4000dbdc:	91 e8 00 10 	restore  %g0, %l0, %o0                         
                                                                      

4000f80c <IMFS_chown>: int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) {
4000f80c:	9d e3 bf 98 	save  %sp, -104, %sp                           
  /*                                                                  
   *  Verify I am the owner of the node or the super user.            
   */                                                                 
                                                                      
#if defined(RTEMS_POSIX_API)                                          
  st_uid = geteuid();                                                 
4000f810:	40 00 04 a9 	call  40010ab4 <geteuid>                       
4000f814:	e0 06 00 00 	ld  [ %i0 ], %l0                               
                                                                      
  if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) )               
4000f818:	91 2a 20 10 	sll  %o0, 0x10, %o0                            
4000f81c:	91 32 20 10 	srl  %o0, 0x10, %o0                            
4000f820:	80 a2 20 00 	cmp  %o0, 0                                    
4000f824:	22 80 00 0c 	be,a   4000f854 <IMFS_chown+0x48>              <== ALWAYS TAKEN
4000f828:	f2 34 20 3c 	sth  %i1, [ %l0 + 0x3c ]                       
4000f82c:	c2 14 20 3c 	lduh  [ %l0 + 0x3c ], %g1                      <== NOT EXECUTED
4000f830:	80 a2 00 01 	cmp  %o0, %g1                                  <== NOT EXECUTED
4000f834:	22 80 00 08 	be,a   4000f854 <IMFS_chown+0x48>              <== NOT EXECUTED
4000f838:	f2 34 20 3c 	sth  %i1, [ %l0 + 0x3c ]                       <== NOT EXECUTED
    rtems_set_errno_and_return_minus_one( EPERM );                    
4000f83c:	40 00 16 3e 	call  40015134 <__errno>                       <== NOT EXECUTED
4000f840:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
4000f844:	82 10 20 01 	mov  1, %g1                                    <== NOT EXECUTED
4000f848:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
4000f84c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000f850:	81 e8 00 00 	restore                                        <== NOT EXECUTED
#endif                                                                
                                                                      
  jnode->st_uid = owner;                                              
  jnode->st_gid = group;                                              
4000f854:	f4 34 20 3e 	sth  %i2, [ %l0 + 0x3e ]                       
                                                                      
  IMFS_update_ctime( jnode );                                         
4000f858:	90 07 bf f8 	add  %fp, -8, %o0                              
4000f85c:	7f ff d4 46 	call  40004974 <gettimeofday>                  
4000f860:	92 10 20 00 	clr  %o1                                       
4000f864:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
4000f868:	c2 24 20 48 	st  %g1, [ %l0 + 0x48 ]                        
                                                                      
  return 0;                                                           
}                                                                     
4000f86c:	81 c7 e0 08 	ret                                            
4000f870:	91 e8 20 00 	restore  %g0, 0, %o0                           
4000f874:	40 00 f9 a0 	call  4004def4 <__end+0x295a4>                 <== NOT EXECUTED
4000f878:	40 00 f9 c0 	call  4004df78 <__end+0x29628>                 <== NOT EXECUTED
4000f87c:	40 00 f9 b8 	call  4004df5c <__end+0x2960c>                 <== NOT EXECUTED
4000f880:	40 00 f9 b8 	call  4004df60 <__end+0x29610>                 <== NOT EXECUTED
4000f884:	40 00 f9 e0 	call  4004e004 <__end+0x296b4>                 <== NOT EXECUTED
4000f888:	40 00 f9 d4 	call  4004dfd8 <__end+0x29688>                 <== NOT EXECUTED
4000f88c:	40 00 f9 f8 	call  4004e06c <__end+0x2971c>                 <== NOT EXECUTED
                                                                      

4000dc20 <IMFS_create_node>: IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) {
4000dc20:	9d e3 bf a0 	save  %sp, -96, %sp                            
4000dc24:	a0 10 00 18 	mov  %i0, %l0                                  
  IMFS_fs_info_t      *fs_info;                                       
                                                                      
  /*                                                                  
   *  MUST have a parent node to call this routine.                   
   */                                                                 
  if ( parent_loc == NULL )                                           
4000dc28:	80 a6 20 00 	cmp  %i0, 0                                    
  IMFS_jnode_types_t                type,                             
  const char                       *name,                             
  mode_t                            mode,                             
  const IMFS_types_union           *info                              
)                                                                     
{                                                                     
4000dc2c:	92 10 00 1a 	mov  %i2, %o1                                  
  IMFS_fs_info_t      *fs_info;                                       
                                                                      
  /*                                                                  
   *  MUST have a parent node to call this routine.                   
   */                                                                 
  if ( parent_loc == NULL )                                           
4000dc30:	02 80 00 3e 	be  4000dd28 <IMFS_create_node+0x108>          <== NEVER TAKEN
4000dc34:	b0 10 20 00 	clr  %i0                                       
    return NULL;                                                      
                                                                      
  /*                                                                  
   *  Allocate filesystem node and fill in basic information          
   */                                                                 
  node  = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask );
4000dc38:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
4000dc3c:	c2 00 63 18 	ld  [ %g1 + 0x318 ], %g1	! 4001cf18 <rtems_current_user_env>
4000dc40:	90 10 00 19 	mov  %i1, %o0                                  
4000dc44:	d4 00 60 2c 	ld  [ %g1 + 0x2c ], %o2                        
4000dc48:	7f ff ff ca 	call  4000db70 <IMFS_allocate_node>            
4000dc4c:	94 2e c0 0a 	andn  %i3, %o2, %o2                            
  if ( !node )                                                        
4000dc50:	b0 92 20 00 	orcc  %o0, 0, %i0                              
4000dc54:	02 80 00 35 	be  4000dd28 <IMFS_create_node+0x108>          <== NEVER TAKEN
4000dc58:	b2 06 7f ff 	add  %i1, -1, %i1                              
    return NULL;                                                      
                                                                      
  /*                                                                  
   *  Set the type specific information                               
   */                                                                 
  switch (type) {                                                     
4000dc5c:	80 a6 60 06 	cmp  %i1, 6                                    
4000dc60:	38 80 00 20 	bgu,a   4000dce0 <IMFS_create_node+0xc0>       <== NEVER TAKEN
4000dc64:	11 10 00 71 	sethi  %hi(0x4001c400), %o0                    <== NOT EXECUTED
4000dc68:	b3 2e 60 02 	sll  %i1, 2, %i1                               
4000dc6c:	03 10 00 36 	sethi  %hi(0x4000d800), %g1                    
4000dc70:	82 10 63 54 	or  %g1, 0x354, %g1	! 4000db54 <fifo_open+0x3ec>
4000dc74:	c2 00 40 19 	ld  [ %g1 + %i1 ], %g1                         
4000dc78:	81 c0 40 00 	jmp  %g1                                       
4000dc7c:	01 00 00 00 	nop                                            
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
4000dc80:	82 06 20 54 	add  %i0, 0x54, %g1                            
  the_chain->permanent_null = NULL;                                   
4000dc84:	c0 26 20 54 	clr  [ %i0 + 0x54 ]                            
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
4000dc88:	c2 26 20 50 	st  %g1, [ %i0 + 0x50 ]                        
  the_chain->permanent_null = NULL;                                   
  the_chain->last           = _Chain_Head(the_chain);                 
4000dc8c:	82 06 20 50 	add  %i0, 0x50, %g1                            
4000dc90:	10 80 00 1b 	b  4000dcfc <IMFS_create_node+0xdc>            
4000dc94:	c2 26 20 58 	st  %g1, [ %i0 + 0x58 ]                        
    case IMFS_HARD_LINK:                                              
      node->info.hard_link.link_node = info->hard_link.link_node;     
      break;                                                          
                                                                      
    case IMFS_SYM_LINK:                                               
      node->info.sym_link.name = info->sym_link.name;                 
4000dc98:	10 80 00 05 	b  4000dcac <IMFS_create_node+0x8c>            
4000dc9c:	c2 07 00 00 	ld  [ %i4 ], %g1                               
      break;                                                          
                                                                      
    case IMFS_DEVICE:                                                 
      node->info.device.major = info->device.major;                   
      node->info.device.minor = info->device.minor;                   
4000dca0:	c4 07 20 04 	ld  [ %i4 + 4 ], %g2                           
    case IMFS_SYM_LINK:                                               
      node->info.sym_link.name = info->sym_link.name;                 
      break;                                                          
                                                                      
    case IMFS_DEVICE:                                                 
      node->info.device.major = info->device.major;                   
4000dca4:	c2 07 00 00 	ld  [ %i4 ], %g1                               
      node->info.device.minor = info->device.minor;                   
4000dca8:	c4 26 20 54 	st  %g2, [ %i0 + 0x54 ]                        
      break;                                                          
4000dcac:	10 80 00 14 	b  4000dcfc <IMFS_create_node+0xdc>            
4000dcb0:	c2 26 20 50 	st  %g1, [ %i0 + 0x50 ]                        
                                                                      
    case IMFS_LINEAR_FILE:                                            
      node->info.linearfile.size      = 0;                            
4000dcb4:	c0 26 20 50 	clr  [ %i0 + 0x50 ]                            <== NOT EXECUTED
4000dcb8:	c0 26 20 54 	clr  [ %i0 + 0x54 ]                            <== NOT EXECUTED
      node->info.linearfile.direct    = 0;                            
4000dcbc:	c0 26 20 58 	clr  [ %i0 + 0x58 ]                            <== NOT EXECUTED
                                                                      
    case IMFS_MEMORY_FILE:                                            
      node->info.file.size            = 0;                            
4000dcc0:	c0 26 20 50 	clr  [ %i0 + 0x50 ]                            
4000dcc4:	c0 26 20 54 	clr  [ %i0 + 0x54 ]                            
      node->info.file.indirect        = 0;                            
4000dcc8:	c0 26 20 58 	clr  [ %i0 + 0x58 ]                            
      node->info.file.doubly_indirect = 0;                            
4000dccc:	c0 26 20 5c 	clr  [ %i0 + 0x5c ]                            
      node->info.file.triply_indirect = 0;                            
      break;                                                          
4000dcd0:	10 80 00 0b 	b  4000dcfc <IMFS_create_node+0xdc>            
4000dcd4:	c0 26 20 60 	clr  [ %i0 + 0x60 ]                            
                                                                      
    case IMFS_FIFO:                                                   
      node->info.fifo.pipe = NULL;                                    
      break;                                                          
4000dcd8:	10 80 00 09 	b  4000dcfc <IMFS_create_node+0xdc>            
4000dcdc:	c0 26 20 50 	clr  [ %i0 + 0x50 ]                            
                                                                      
    default:                                                          
      assert(0);                                                      
4000dce0:	15 10 00 71 	sethi  %hi(0x4001c400), %o2                    <== NOT EXECUTED
4000dce4:	17 10 00 71 	sethi  %hi(0x4001c400), %o3                    <== NOT EXECUTED
4000dce8:	90 12 20 b8 	or  %o0, 0xb8, %o0                             <== NOT EXECUTED
4000dcec:	94 12 a1 10 	or  %o2, 0x110, %o2                            <== NOT EXECUTED
4000dcf0:	96 12 e1 08 	or  %o3, 0x108, %o3                            <== NOT EXECUTED
4000dcf4:	7f ff d4 24 	call  40002d84 <__assert_func>                 <== NOT EXECUTED
4000dcf8:	92 10 20 5c 	mov  0x5c, %o1                                 <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  This node MUST have a parent, so put it in that directory list. 
   */                                                                 
  parent       = parent_loc->node_access;                             
  fs_info      = parent_loc->mt_entry->fs_info;                       
4000dcfc:	c2 04 20 10 	ld  [ %l0 + 0x10 ], %g1                        
  }                                                                   
                                                                      
  /*                                                                  
   *  This node MUST have a parent, so put it in that directory list. 
   */                                                                 
  parent       = parent_loc->node_access;                             
4000dd00:	d0 04 00 00 	ld  [ %l0 ], %o0                               
  fs_info      = parent_loc->mt_entry->fs_info;                       
4000dd04:	c4 00 60 34 	ld  [ %g1 + 0x34 ], %g2                        
                                                                      
  node->Parent = parent;                                              
4000dd08:	d0 26 20 08 	st  %o0, [ %i0 + 8 ]                           
  node->st_ino = ++fs_info->ino_count;                                
4000dd0c:	c2 00 a0 04 	ld  [ %g2 + 4 ], %g1                           
RTEMS_INLINE_ROUTINE void rtems_chain_append(                         
  rtems_chain_control *the_chain,                                     
  rtems_chain_node    *the_node                                       
)                                                                     
{                                                                     
  _Chain_Append( the_chain, the_node );                               
4000dd10:	90 02 20 50 	add  %o0, 0x50, %o0                            
4000dd14:	82 00 60 01 	inc  %g1                                       
4000dd18:	c2 20 a0 04 	st  %g1, [ %g2 + 4 ]                           
4000dd1c:	c2 26 20 38 	st  %g1, [ %i0 + 0x38 ]                        
4000dd20:	7f ff e4 77 	call  40006efc <_Chain_Append>                 
4000dd24:	92 10 00 18 	mov  %i0, %o1                                  
                                                                      
  rtems_chain_append( &parent->info.directory.Entries, &node->Node ); 
                                                                      
  return node;                                                        
}                                                                     
4000dd28:	81 c7 e0 08 	ret                                            
4000dd2c:	81 e8 00 00 	restore                                        
                                                                      

4000dbe0 <IMFS_create_root_node>: IMFS_jnode_t *IMFS_create_root_node(void) {
4000dbe0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  IMFS_jnode_t        *node;                                          
                                                                      
  /*                                                                  
   *  Allocate filesystem node and fill in basic information          
   */                                                                 
  node = IMFS_allocate_node( IMFS_DIRECTORY, "", (S_IFDIR | 0755) );  
4000dbe4:	90 10 20 01 	mov  1, %o0                                    
4000dbe8:	13 10 00 71 	sethi  %hi(0x4001c400), %o1                    
4000dbec:	15 00 00 10 	sethi  %hi(0x4000), %o2                        
4000dbf0:	92 12 60 b0 	or  %o1, 0xb0, %o1                             
4000dbf4:	7f ff ff df 	call  4000db70 <IMFS_allocate_node>            
4000dbf8:	94 12 a1 ed 	or  %o2, 0x1ed, %o2                            
  if ( !node )                                                        
4000dbfc:	80 a2 20 00 	cmp  %o0, 0                                    
4000dc00:	02 80 00 06 	be  4000dc18 <IMFS_create_root_node+0x38>      <== NEVER TAKEN
4000dc04:	82 02 20 54 	add  %o0, 0x54, %g1                            
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
  the_chain->permanent_null = NULL;                                   
4000dc08:	c0 22 20 54 	clr  [ %o0 + 0x54 ]                            
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
4000dc0c:	c2 22 20 50 	st  %g1, [ %o0 + 0x50 ]                        
  the_chain->permanent_null = NULL;                                   
  the_chain->last           = _Chain_Head(the_chain);                 
4000dc10:	82 02 20 50 	add  %o0, 0x50, %g1                            
4000dc14:	c2 22 20 58 	st  %g1, [ %o0 + 0x58 ]                        
   *  NOTE: Root node is always a directory.                          
   */                                                                 
  rtems_chain_initialize_empty(&node->info.directory.Entries);        
                                                                      
  return node;                                                        
}                                                                     
4000dc18:	81 c7 e0 08 	ret                                            
4000dc1c:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      

400054b4 <IMFS_dump_directory>: void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) {
400054b4:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_chain_node     *the_node;                                     
  rtems_chain_control  *the_chain;                                    
  IMFS_jnode_t         *the_jnode;                                    
  int                   i;                                            
                                                                      
  assert( the_directory );                                            
400054b8:	80 a6 20 00 	cmp  %i0, 0                                    
400054bc:	12 80 00 0a 	bne  400054e4 <IMFS_dump_directory+0x30>       <== ALWAYS TAKEN
400054c0:	80 a6 60 00 	cmp  %i1, 0                                    
400054c4:	11 10 00 9a 	sethi  %hi(0x40026800), %o0                    <== NOT EXECUTED
400054c8:	15 10 00 9a 	sethi  %hi(0x40026800), %o2                    <== NOT EXECUTED
400054cc:	17 10 00 9a 	sethi  %hi(0x40026800), %o3                    <== NOT EXECUTED
400054d0:	90 12 21 20 	or  %o0, 0x120, %o0                            <== NOT EXECUTED
400054d4:	94 12 a3 18 	or  %o2, 0x318, %o2                            <== NOT EXECUTED
400054d8:	96 12 e2 08 	or  %o3, 0x208, %o3                            <== NOT EXECUTED
400054dc:	10 80 00 0b 	b  40005508 <IMFS_dump_directory+0x54>         <== NOT EXECUTED
400054e0:	92 10 20 84 	mov  0x84, %o1                                 <== NOT EXECUTED
                                                                      
  assert( level >= 0 );                                               
400054e4:	36 80 00 0b 	bge,a   40005510 <IMFS_dump_directory+0x5c>    <== ALWAYS TAKEN
400054e8:	c2 06 20 4c 	ld  [ %i0 + 0x4c ], %g1                        
400054ec:	11 10 00 9a 	sethi  %hi(0x40026800), %o0                    <== NOT EXECUTED
400054f0:	15 10 00 9a 	sethi  %hi(0x40026800), %o2                    <== NOT EXECUTED
400054f4:	17 10 00 9a 	sethi  %hi(0x40026800), %o3                    <== NOT EXECUTED
400054f8:	90 12 21 20 	or  %o0, 0x120, %o0                            <== NOT EXECUTED
400054fc:	94 12 a3 18 	or  %o2, 0x318, %o2                            <== NOT EXECUTED
40005500:	96 12 e2 18 	or  %o3, 0x218, %o3                            <== NOT EXECUTED
40005504:	92 10 20 86 	mov  0x86, %o1                                 <== NOT EXECUTED
40005508:	40 00 02 26 	call  40005da0 <__assert_func>                 <== NOT EXECUTED
4000550c:	01 00 00 00 	nop                                            <== NOT EXECUTED
                                                                      
  assert( the_directory->type == IMFS_DIRECTORY );                    
40005510:	80 a0 60 01 	cmp  %g1, 1                                    
40005514:	02 80 00 0a 	be  4000553c <IMFS_dump_directory+0x88>        <== ALWAYS TAKEN
40005518:	29 10 00 a2 	sethi  %hi(0x40028800), %l4                    
4000551c:	11 10 00 9a 	sethi  %hi(0x40026800), %o0                    <== NOT EXECUTED
40005520:	15 10 00 9a 	sethi  %hi(0x40026800), %o2                    <== NOT EXECUTED
40005524:	17 10 00 9a 	sethi  %hi(0x40026800), %o3                    <== NOT EXECUTED
40005528:	90 12 21 20 	or  %o0, 0x120, %o0                            <== NOT EXECUTED
4000552c:	94 12 a3 18 	or  %o2, 0x318, %o2                            <== NOT EXECUTED
40005530:	96 12 e2 28 	or  %o3, 0x228, %o3                            <== NOT EXECUTED
40005534:	10 bf ff f5 	b  40005508 <IMFS_dump_directory+0x54>         <== NOT EXECUTED
40005538:	92 10 20 88 	mov  0x88, %o1                                 <== NOT EXECUTED
        the_node = the_node->next ) {                                 
                                                                      
    the_jnode = (IMFS_jnode_t *) the_node;                            
                                                                      
    for ( i=0 ; i<=level ; i++ )                                      
      fprintf(stdout, "...." );                                       
4000553c:	27 10 00 9a 	sethi  %hi(0x40026800), %l3                    
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
40005540:	aa 06 20 54 	add  %i0, 0x54, %l5                            
40005544:	a8 15 20 b0 	or  %l4, 0xb0, %l4                             
40005548:	a6 14 e2 50 	or  %l3, 0x250, %l3                            
                                                                      
  assert( the_directory->type == IMFS_DIRECTORY );                    
                                                                      
  the_chain = &the_directory->info.directory.Entries;                 
                                                                      
  for ( the_node = the_chain->first;                                  
4000554c:	e0 06 20 50 	ld  [ %i0 + 0x50 ], %l0                        
40005550:	10 80 00 14 	b  400055a0 <IMFS_dump_directory+0xec>         
40005554:	a4 06 60 01 	add  %i1, 1, %l2                               
        the_node = the_node->next ) {                                 
                                                                      
    the_jnode = (IMFS_jnode_t *) the_node;                            
                                                                      
    for ( i=0 ; i<=level ; i++ )                                      
      fprintf(stdout, "...." );                                       
40005558:	c2 05 00 00 	ld  [ %l4 ], %g1                               
4000555c:	90 10 00 13 	mov  %l3, %o0                                  
40005560:	d2 00 60 08 	ld  [ %g1 + 8 ], %o1                           
40005564:	40 00 3f aa 	call  4001540c <fputs>                         
40005568:	a2 04 60 01 	inc  %l1                                       
        !rtems_chain_is_tail( the_chain, the_node );                  
        the_node = the_node->next ) {                                 
                                                                      
    the_jnode = (IMFS_jnode_t *) the_node;                            
                                                                      
    for ( i=0 ; i<=level ; i++ )                                      
4000556c:	80 a4 40 19 	cmp  %l1, %i1                                  
40005570:	24 bf ff fb 	ble,a   4000555c <IMFS_dump_directory+0xa8>    
40005574:	c2 05 00 00 	ld  [ %l4 ], %g1                               
      fprintf(stdout, "...." );                                       
    IMFS_print_jnode( the_jnode );                                    
40005578:	7f ff ff 71 	call  4000533c <IMFS_print_jnode>              
4000557c:	90 10 00 10 	mov  %l0, %o0                                  
    if ( the_jnode->type == IMFS_DIRECTORY )                          
40005580:	c2 04 20 4c 	ld  [ %l0 + 0x4c ], %g1                        
40005584:	80 a0 60 01 	cmp  %g1, 1                                    
40005588:	32 80 00 06 	bne,a   400055a0 <IMFS_dump_directory+0xec>    
4000558c:	e0 04 00 00 	ld  [ %l0 ], %l0                               
      IMFS_dump_directory( the_jnode, level + 1 );                    
40005590:	90 10 00 10 	mov  %l0, %o0                                  
40005594:	7f ff ff c8 	call  400054b4 <IMFS_dump_directory>           
40005598:	92 10 00 12 	mov  %l2, %o1                                  
                                                                      
  the_chain = &the_directory->info.directory.Entries;                 
                                                                      
  for ( the_node = the_chain->first;                                  
        !rtems_chain_is_tail( the_chain, the_node );                  
        the_node = the_node->next ) {                                 
4000559c:	e0 04 00 00 	ld  [ %l0 ], %l0                               
                                                                      
  assert( the_directory->type == IMFS_DIRECTORY );                    
                                                                      
  the_chain = &the_directory->info.directory.Entries;                 
                                                                      
  for ( the_node = the_chain->first;                                  
400055a0:	80 a4 00 15 	cmp  %l0, %l5                                  
400055a4:	12 bf ff ed 	bne  40005558 <IMFS_dump_directory+0xa4>       
400055a8:	a2 10 20 00 	clr  %l1                                       
      fprintf(stdout, "...." );                                       
    IMFS_print_jnode( the_jnode );                                    
    if ( the_jnode->type == IMFS_DIRECTORY )                          
      IMFS_dump_directory( the_jnode, level + 1 );                    
  }                                                                   
}                                                                     
400055ac:	81 c7 e0 08 	ret                                            
400055b0:	81 e8 00 00 	restore                                        
                                                                      

4000a2f4 <IMFS_eval_path>: const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) {
4000a2f4:	9d e3 bf 60 	save  %sp, -160, %sp                           
      case IMFS_UP_DIR:                                               
       /*                                                             
        *  Am I at the root of all filesystems? (chroot'ed?)          
	*/                                                                   
                                                                      
       if ( pathloc->node_access == rtems_filesystem_root.node_access )
4000a2f8:	2b 10 00 73 	sethi  %hi(0x4001cc00), %l5                    
  const char                        *pathname,     /* IN     */       
  int                                pathnamelen,  /* IN     */       
  int                                flags,        /* IN     */       
  rtems_filesystem_location_info_t  *pathloc       /* IN/OUT */       
)                                                                     
{                                                                     
4000a2fc:	a0 10 00 18 	mov  %i0, %l0                                  
      case IMFS_UP_DIR:                                               
       /*                                                             
        *  Am I at the root of all filesystems? (chroot'ed?)          
	*/                                                                   
                                                                      
       if ( pathloc->node_access == rtems_filesystem_root.node_access )
4000a300:	aa 15 63 18 	or  %l5, 0x318, %l5                            
  /*                                                                  
   *  This was filled in by the caller and is valid in the            
   *  mount table.                                                    
   */                                                                 
                                                                      
  node = pathloc->node_access;                                        
4000a304:	e2 06 c0 00 	ld  [ %i3 ], %l1                               
4000a308:	ac 10 20 01 	mov  1, %l6                                    
4000a30c:	a4 10 20 00 	clr  %l2                                       
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
                                                                      
    type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );  
4000a310:	a6 07 bf c0 	add  %fp, -64, %l3                             
                                                                      
  /*                                                                  
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
4000a314:	10 80 00 6a 	b  4000a4bc <IMFS_eval_path+0x1c8>             
4000a318:	a8 07 bf fc 	add  %fp, -4, %l4                              
                                                                      
    type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );  
4000a31c:	90 04 00 12 	add  %l0, %l2, %o0                             
4000a320:	92 10 00 19 	mov  %i1, %o1                                  
4000a324:	94 10 00 13 	mov  %l3, %o2                                  
4000a328:	40 00 02 3f 	call  4000ac24 <IMFS_get_token>                
4000a32c:	96 10 00 14 	mov  %l4, %o3                                  
    pathnamelen -= len;                                               
    i += len;                                                         
                                                                      
    if ( !pathloc->node_access )                                      
4000a330:	c2 06 c0 00 	ld  [ %i3 ], %g1                               
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
                                                                      
    type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );  
4000a334:	ac 10 00 08 	mov  %o0, %l6                                  
    pathnamelen -= len;                                               
    i += len;                                                         
                                                                      
    if ( !pathloc->node_access )                                      
4000a338:	80 a0 60 00 	cmp  %g1, 0                                    
4000a33c:	02 80 00 56 	be  4000a494 <IMFS_eval_path+0x1a0>            <== NEVER TAKEN
4000a340:	f0 07 bf fc 	ld  [ %fp + -4 ], %i0                          
      rtems_set_errno_and_return_minus_one( ENOENT );                 
                                                                      
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
    if ( type != IMFS_NO_MORE_PATH )                                  
4000a344:	80 a2 20 00 	cmp  %o0, 0                                    
4000a348:	22 80 00 10 	be,a   4000a388 <IMFS_eval_path+0x94>          
4000a34c:	a4 04 80 18 	add  %l2, %i0, %l2                             
      if ( node->type == IMFS_DIRECTORY )                             
4000a350:	c2 04 60 4c 	ld  [ %l1 + 0x4c ], %g1                        
4000a354:	80 a0 60 01 	cmp  %g1, 1                                    
4000a358:	32 80 00 0c 	bne,a   4000a388 <IMFS_eval_path+0x94>         
4000a35c:	a4 04 80 18 	add  %l2, %i0, %l2                             
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
4000a360:	90 10 00 1b 	mov  %i3, %o0                                  
4000a364:	7f ff ff 7c 	call  4000a154 <IMFS_evaluate_permission>      
4000a368:	92 10 20 01 	mov  1, %o1                                    
4000a36c:	80 a2 20 00 	cmp  %o0, 0                                    
4000a370:	32 80 00 06 	bne,a   4000a388 <IMFS_eval_path+0x94>         
4000a374:	a4 04 80 18 	add  %l2, %i0, %l2                             
           rtems_set_errno_and_return_minus_one( EACCES );            
4000a378:	40 00 14 59 	call  4000f4dc <__errno>                       
4000a37c:	b0 10 3f ff 	mov  -1, %i0                                   
4000a380:	10 80 00 4c 	b  4000a4b0 <IMFS_eval_path+0x1bc>             
4000a384:	82 10 20 0d 	mov  0xd, %g1                                  
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
                                                                      
    type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );  
    pathnamelen -= len;                                               
4000a388:	b2 26 40 18 	sub  %i1, %i0, %i1                             
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
           rtems_set_errno_and_return_minus_one( EACCES );            
                                                                      
    node = pathloc->node_access;                                      
                                                                      
    switch( type ) {                                                  
4000a38c:	80 a5 a0 03 	cmp  %l6, 3                                    
4000a390:	02 80 00 1b 	be  4000a3fc <IMFS_eval_path+0x108>            
4000a394:	e2 06 c0 00 	ld  [ %i3 ], %l1                               
4000a398:	80 a5 a0 04 	cmp  %l6, 4                                    
4000a39c:	02 80 00 42 	be  4000a4a4 <IMFS_eval_path+0x1b0>            
4000a3a0:	80 a5 a0 02 	cmp  %l6, 2                                    
4000a3a4:	12 80 00 47 	bne  4000a4c0 <IMFS_eval_path+0x1cc>           
4000a3a8:	80 a5 a0 04 	cmp  %l6, 4                                    
      case IMFS_UP_DIR:                                               
       /*                                                             
        *  Am I at the root of all filesystems? (chroot'ed?)          
	*/                                                                   
                                                                      
       if ( pathloc->node_access == rtems_filesystem_root.node_access )
4000a3ac:	c2 05 40 00 	ld  [ %l5 ], %g1                               
4000a3b0:	c2 00 60 18 	ld  [ %g1 + 0x18 ], %g1                        
4000a3b4:	80 a4 40 01 	cmp  %l1, %g1                                  
4000a3b8:	02 bf ff da 	be  4000a320 <IMFS_eval_path+0x2c>             
4000a3bc:	90 04 00 12 	add  %l0, %l2, %o0                             
	/*                                                                   
	 *  Am I at the root of this mounted filesystem?                     
	 */                                                                  
                                                                      
        if (pathloc->node_access ==                                   
            pathloc->mt_entry->mt_fs_root.node_access) {              
4000a3c0:	d2 06 e0 10 	ld  [ %i3 + 0x10 ], %o1                        
                                                                      
	/*                                                                   
	 *  Am I at the root of this mounted filesystem?                     
	 */                                                                  
                                                                      
        if (pathloc->node_access ==                                   
4000a3c4:	c2 02 60 1c 	ld  [ %o1 + 0x1c ], %g1                        
4000a3c8:	80 a4 40 01 	cmp  %l1, %g1                                  
4000a3cc:	32 80 00 04 	bne,a   4000a3dc <IMFS_eval_path+0xe8>         
4000a3d0:	e2 04 60 08 	ld  [ %l1 + 8 ], %l1                           
	   */                                                                
                                                                      
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;       /* Throw out the .. in this case */          
	  } else {                                                           
            newloc = pathloc->mt_entry->mt_point_node;                
4000a3d4:	10 80 00 47 	b  4000a4f0 <IMFS_eval_path+0x1fc>             
4000a3d8:	92 02 60 08 	add  %o1, 8, %o1                               
                                               pathnamelen+len,       
                                               flags,pathloc);        
	  }                                                                  
	} else {                                                             
                                                                      
          if ( !node->Parent )                                        
4000a3dc:	80 a4 60 00 	cmp  %l1, 0                                    
4000a3e0:	32 bf ff cf 	bne,a   4000a31c <IMFS_eval_path+0x28>         
4000a3e4:	e2 26 c0 00 	st  %l1, [ %i3 ]                               
            rtems_set_errno_and_return_minus_one( ENOENT );           
4000a3e8:	40 00 14 3d 	call  4000f4dc <__errno>                       
4000a3ec:	b0 10 3f ff 	mov  -1, %i0                                   
4000a3f0:	ec 22 00 00 	st  %l6, [ %o0 ]                               
4000a3f4:	81 c7 e0 08 	ret                                            
4000a3f8:	81 e8 00 00 	restore                                        
      case IMFS_NAME:                                                 
	/*                                                                   
	 *  If we are at a link follow it.                                   
	 */                                                                  
                                                                      
	if ( node->type == IMFS_HARD_LINK ) {                                
4000a3fc:	c2 04 60 4c 	ld  [ %l1 + 0x4c ], %g1                        
4000a400:	80 a0 60 03 	cmp  %g1, 3                                    
4000a404:	12 80 00 0a 	bne  4000a42c <IMFS_eval_path+0x138>           
4000a408:	80 a0 60 04 	cmp  %g1, 4                                    
                                                                      
          IMFS_evaluate_hard_link( pathloc, 0 );                      
4000a40c:	90 10 00 1b 	mov  %i3, %o0                                  
4000a410:	7f ff ff 69 	call  4000a1b4 <IMFS_evaluate_hard_link>       
4000a414:	92 10 20 00 	clr  %o1                                       
                                                                      
          node = pathloc->node_access;                                
4000a418:	e2 06 c0 00 	ld  [ %i3 ], %l1                               
          if ( !node )                                                
4000a41c:	80 a4 60 00 	cmp  %l1, 0                                    
4000a420:	32 80 00 0d 	bne,a   4000a454 <IMFS_eval_path+0x160>        <== ALWAYS TAKEN
4000a424:	c2 04 60 4c 	ld  [ %l1 + 0x4c ], %g1                        
4000a428:	30 80 00 0e 	b,a   4000a460 <IMFS_eval_path+0x16c>          <== NOT EXECUTED
            rtems_set_errno_and_return_minus_one( ENOTDIR );          
                                                                      
	} else if ( node->type == IMFS_SYM_LINK ) {                          
4000a42c:	32 80 00 0a 	bne,a   4000a454 <IMFS_eval_path+0x160>        
4000a430:	c2 04 60 4c 	ld  [ %l1 + 0x4c ], %g1                        
                                                                      
          result = IMFS_evaluate_sym_link( pathloc, 0 );              
4000a434:	90 10 00 1b 	mov  %i3, %o0                                  
4000a438:	7f ff ff 77 	call  4000a214 <IMFS_evaluate_sym_link>        
4000a43c:	92 10 20 00 	clr  %o1                                       
                                                                      
          node = pathloc->node_access;                                
4000a440:	e2 06 c0 00 	ld  [ %i3 ], %l1                               
          if ( result == -1 )                                         
4000a444:	80 a2 3f ff 	cmp  %o0, -1                                   
4000a448:	02 bf ff eb 	be  4000a3f4 <IMFS_eval_path+0x100>            <== NEVER TAKEN
4000a44c:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
       /*                                                             
        *  Only a directory can be decended into.                     
        */                                                            
                                                                      
       if ( node->type != IMFS_DIRECTORY )                            
4000a450:	c2 04 60 4c 	ld  [ %l1 + 0x4c ], %g1                        
4000a454:	80 a0 60 01 	cmp  %g1, 1                                    
4000a458:	22 80 00 06 	be,a   4000a470 <IMFS_eval_path+0x17c>         
4000a45c:	d2 04 60 5c 	ld  [ %l1 + 0x5c ], %o1                        
          rtems_set_errno_and_return_minus_one( ENOTDIR );            
4000a460:	40 00 14 1f 	call  4000f4dc <__errno>                       
4000a464:	b0 10 3f ff 	mov  -1, %i0                                   
4000a468:	10 80 00 12 	b  4000a4b0 <IMFS_eval_path+0x1bc>             
4000a46c:	82 10 20 14 	mov  0x14, %g1                                 
	/*                                                                   
	 *  If we are at a node that is a mount point. Set loc to the        
	 *  new fs root node and let them finish evaluating the path.        
	 */                                                                  
                                                                      
        if ( node->info.directory.mt_fs != NULL ) {                   
4000a470:	80 a2 60 00 	cmp  %o1, 0                                    
4000a474:	12 80 00 1f 	bne  4000a4f0 <IMFS_eval_path+0x1fc>           
4000a478:	92 02 60 1c 	add  %o1, 0x1c, %o1                            
                                                                      
	/*                                                                   
	 *  Otherwise find the token name in the present location.           
	 */                                                                  
                                                                      
        node = IMFS_find_match_in_dir( node, token );                 
4000a47c:	90 10 00 11 	mov  %l1, %o0                                  
4000a480:	40 00 01 be 	call  4000ab78 <IMFS_find_match_in_dir>        
4000a484:	92 10 00 13 	mov  %l3, %o1                                  
        if ( !node )                                                  
4000a488:	a2 92 20 00 	orcc  %o0, 0, %l1                              
4000a48c:	32 bf ff a4 	bne,a   4000a31c <IMFS_eval_path+0x28>         
4000a490:	e2 26 c0 00 	st  %l1, [ %i3 ]                               
          rtems_set_errno_and_return_minus_one( ENOENT );             
4000a494:	40 00 14 12 	call  4000f4dc <__errno>                       
4000a498:	b0 10 3f ff 	mov  -1, %i0                                   
4000a49c:	10 80 00 05 	b  4000a4b0 <IMFS_eval_path+0x1bc>             
4000a4a0:	82 10 20 02 	mov  2, %g1                                    
      case IMFS_NO_MORE_PATH:                                         
      case IMFS_CURRENT_DIR:                                          
        break;                                                        
                                                                      
      case IMFS_INVALID_TOKEN:                                        
        rtems_set_errno_and_return_minus_one( ENAMETOOLONG );         
4000a4a4:	40 00 14 0e 	call  4000f4dc <__errno>                       
4000a4a8:	b0 10 3f ff 	mov  -1, %i0                                   
4000a4ac:	82 10 20 5b 	mov  0x5b, %g1                                 
4000a4b0:	c2 22 00 00 	st  %g1, [ %o0 ]                               
4000a4b4:	81 c7 e0 08 	ret                                            
4000a4b8:	81 e8 00 00 	restore                                        
                                                                      
  /*                                                                  
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
4000a4bc:	80 a5 a0 04 	cmp  %l6, 4                                    
4000a4c0:	02 80 00 04 	be  4000a4d0 <IMFS_eval_path+0x1dc>            <== NEVER TAKEN
4000a4c4:	80 a5 a0 00 	cmp  %l6, 0                                    
4000a4c8:	12 bf ff 96 	bne  4000a320 <IMFS_eval_path+0x2c>            
4000a4cc:	90 04 00 12 	add  %l0, %l2, %o0                             
   *  new fs root node and let let the mounted filesystem set the handlers.
   *                                                                  
   *  NOTE: The behavior of stat() on a mount point appears to be questionable.
   */                                                                 
                                                                      
  if ( node->type == IMFS_DIRECTORY ) {                               
4000a4d0:	c2 04 60 4c 	ld  [ %l1 + 0x4c ], %g1                        
4000a4d4:	80 a0 60 01 	cmp  %g1, 1                                    
4000a4d8:	12 80 00 19 	bne  4000a53c <IMFS_eval_path+0x248>           
4000a4dc:	01 00 00 00 	nop                                            
    if ( node->info.directory.mt_fs != NULL ) {                       
4000a4e0:	d2 04 60 5c 	ld  [ %l1 + 0x5c ], %o1                        
4000a4e4:	80 a2 60 00 	cmp  %o1, 0                                    
4000a4e8:	02 80 00 15 	be  4000a53c <IMFS_eval_path+0x248>            
4000a4ec:	92 02 60 1c 	add  %o1, 0x1c, %o1                            
      newloc   = node->info.directory.mt_fs->mt_fs_root;              
4000a4f0:	a2 07 bf e8 	add  %fp, -24, %l1                             
4000a4f4:	94 10 20 14 	mov  0x14, %o2                                 
4000a4f8:	40 00 16 35 	call  4000fdcc <memcpy>                        
4000a4fc:	90 10 00 11 	mov  %l1, %o0                                  
      *pathloc = newloc;                                              
4000a500:	92 10 00 11 	mov  %l1, %o1                                  
4000a504:	94 10 20 14 	mov  0x14, %o2                                 
4000a508:	40 00 16 31 	call  4000fdcc <memcpy>                        
4000a50c:	90 10 00 1b 	mov  %i3, %o0                                  
      return (*pathloc->ops->evalpath_h)( &pathname[i-len],           
4000a510:	c2 06 e0 0c 	ld  [ %i3 + 0xc ], %g1                         
4000a514:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          
4000a518:	c2 00 40 00 	ld  [ %g1 ], %g1                               
4000a51c:	92 06 40 08 	add  %i1, %o0, %o1                             
4000a520:	94 10 00 1a 	mov  %i2, %o2                                  
4000a524:	90 24 80 08 	sub  %l2, %o0, %o0                             
4000a528:	96 10 00 1b 	mov  %i3, %o3                                  
4000a52c:	9f c0 40 00 	call  %g1                                      
4000a530:	90 04 00 08 	add  %l0, %o0, %o0                             
4000a534:	81 c7 e0 08 	ret                                            
4000a538:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                          flags, pathloc );           
    } else {                                                          
      result = IMFS_Set_handlers( pathloc );                          
    }                                                                 
  } else {                                                            
    result = IMFS_Set_handlers( pathloc );                            
4000a53c:	7f ff fe ea 	call  4000a0e4 <IMFS_Set_handlers>             
4000a540:	90 10 00 1b 	mov  %i3, %o0                                  
                                                                      
  /*                                                                  
   * Verify we have the correct permissions for this node.            
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, flags ) )                  
4000a544:	92 10 00 1a 	mov  %i2, %o1                                  
                                          flags, pathloc );           
    } else {                                                          
      result = IMFS_Set_handlers( pathloc );                          
    }                                                                 
  } else {                                                            
    result = IMFS_Set_handlers( pathloc );                            
4000a548:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
  /*                                                                  
   * Verify we have the correct permissions for this node.            
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, flags ) )                  
4000a54c:	7f ff ff 02 	call  4000a154 <IMFS_evaluate_permission>      
4000a550:	90 10 00 1b 	mov  %i3, %o0                                  
4000a554:	80 a2 20 00 	cmp  %o0, 0                                    
4000a558:	12 80 00 06 	bne  4000a570 <IMFS_eval_path+0x27c>           
4000a55c:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EACCES );                   
4000a560:	40 00 13 df 	call  4000f4dc <__errno>                       
4000a564:	b0 10 3f ff 	mov  -1, %i0	! ffffffff <LEON_REG+0x7fffffff>  
4000a568:	82 10 20 0d 	mov  0xd, %g1                                  
4000a56c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
                                                                      
  return result;                                                      
}                                                                     
4000a570:	81 c7 e0 08 	ret                                            
4000a574:	81 e8 00 00 	restore                                        
                                                                      

4000a634 <IMFS_evaluate_for_make>: int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) {
4000a634:	9d e3 bf 60 	save  %sp, -160, %sp                           
                                                                      
  /*                                                                  
   * This was filled in by the caller and is valid in the             
   * mount table.                                                     
   */                                                                 
  node = pathloc->node_access;                                        
4000a638:	e0 06 40 00 	ld  [ %i1 ], %l0                               
                                                                      
  /*                                                                  
   * Get the path length.                                             
   */                                                                 
  pathlen = strlen( path );                                           
4000a63c:	90 10 00 18 	mov  %i0, %o0                                  
4000a640:	40 00 17 5f 	call  400103bc <strlen>                        
4000a644:	2b 10 00 73 	sethi  %hi(0x4001cc00), %l5                    
int IMFS_evaluate_for_make(                                           
   const char                         *path,       /* IN     */       
   rtems_filesystem_location_info_t   *pathloc,    /* IN/OUT */       
   const char                        **name        /* OUT    */       
)                                                                     
{                                                                     
4000a648:	a2 10 00 18 	mov  %i0, %l1                                  
  node = pathloc->node_access;                                        
                                                                      
  /*                                                                  
   * Get the path length.                                             
   */                                                                 
  pathlen = strlen( path );                                           
4000a64c:	a4 10 20 00 	clr  %l2                                       
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
4000a650:	a8 07 bf c0 	add  %fp, -64, %l4                             
4000a654:	ac 07 bf fc 	add  %fp, -4, %l6                              
  node = pathloc->node_access;                                        
                                                                      
  /*                                                                  
   * Get the path length.                                             
   */                                                                 
  pathlen = strlen( path );                                           
4000a658:	a6 10 00 08 	mov  %o0, %l3                                  
      case IMFS_UP_DIR:                                               
       /*                                                             
        *  Am I at the root of all filesystems? (chroot'ed?)          
	*/                                                                   
                                                                      
       if ( pathloc->node_access == rtems_filesystem_root.node_access )
4000a65c:	aa 15 63 18 	or  %l5, 0x318, %l5                            
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
4000a660:	92 10 00 13 	mov  %l3, %o1                                  
4000a664:	90 04 40 12 	add  %l1, %l2, %o0                             
4000a668:	94 10 00 14 	mov  %l4, %o2                                  
4000a66c:	40 00 01 6e 	call  4000ac24 <IMFS_get_token>                
4000a670:	96 10 00 16 	mov  %l6, %o3                                  
    pathlen -= len;                                                   
    i +=  len;                                                        
                                                                      
    if ( !pathloc->node_access )                                      
4000a674:	c2 06 40 00 	ld  [ %i1 ], %g1                               
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
    pathlen -= len;                                                   
4000a678:	f0 07 bf fc 	ld  [ %fp + -4 ], %i0                          
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
4000a67c:	ae 10 00 08 	mov  %o0, %l7                                  
    pathlen -= len;                                                   
    i +=  len;                                                        
                                                                      
    if ( !pathloc->node_access )                                      
4000a680:	80 a0 60 00 	cmp  %g1, 0                                    
4000a684:	02 80 00 83 	be  4000a890 <IMFS_evaluate_for_make+0x25c>    <== NEVER TAKEN
4000a688:	a6 24 c0 18 	sub  %l3, %i0, %l3                             
                                                                      
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
                                                                      
    if ( type != IMFS_NO_MORE_PATH )                                  
4000a68c:	80 a2 20 00 	cmp  %o0, 0                                    
4000a690:	22 80 00 10 	be,a   4000a6d0 <IMFS_evaluate_for_make+0x9c>  
4000a694:	a4 04 80 18 	add  %l2, %i0, %l2                             
      if ( node->type == IMFS_DIRECTORY )                             
4000a698:	c2 04 20 4c 	ld  [ %l0 + 0x4c ], %g1                        
4000a69c:	80 a0 60 01 	cmp  %g1, 1                                    
4000a6a0:	32 80 00 0c 	bne,a   4000a6d0 <IMFS_evaluate_for_make+0x9c> 
4000a6a4:	a4 04 80 18 	add  %l2, %i0, %l2                             
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
4000a6a8:	90 10 00 19 	mov  %i1, %o0                                  
4000a6ac:	7f ff fe aa 	call  4000a154 <IMFS_evaluate_permission>      
4000a6b0:	92 10 20 01 	mov  1, %o1                                    
4000a6b4:	80 a2 20 00 	cmp  %o0, 0                                    
4000a6b8:	32 80 00 06 	bne,a   4000a6d0 <IMFS_evaluate_for_make+0x9c> 
4000a6bc:	a4 04 80 18 	add  %l2, %i0, %l2                             
           rtems_set_errno_and_return_minus_one( EACCES );            
4000a6c0:	40 00 13 87 	call  4000f4dc <__errno>                       
4000a6c4:	b0 10 3f ff 	mov  -1, %i0                                   
4000a6c8:	10 80 00 84 	b  4000a8d8 <IMFS_evaluate_for_make+0x2a4>     
4000a6cc:	82 10 20 0d 	mov  0xd, %g1                                  
                                                                      
    node = pathloc->node_access;                                      
                                                                      
    switch( type ) {                                                  
4000a6d0:	80 a5 e0 02 	cmp  %l7, 2                                    
4000a6d4:	02 80 00 0f 	be  4000a710 <IMFS_evaluate_for_make+0xdc>     
4000a6d8:	e0 06 40 00 	ld  [ %i1 ], %l0                               
4000a6dc:	80 a5 e0 02 	cmp  %l7, 2                                    
4000a6e0:	18 80 00 07 	bgu  4000a6fc <IMFS_evaluate_for_make+0xc8>    
4000a6e4:	80 a5 e0 03 	cmp  %l7, 3                                    
4000a6e8:	80 a5 e0 00 	cmp  %l7, 0                                    
4000a6ec:	02 80 00 56 	be  4000a844 <IMFS_evaluate_for_make+0x210>    
4000a6f0:	92 10 00 13 	mov  %l3, %o1                                  
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
4000a6f4:	10 bf ff dd 	b  4000a668 <IMFS_evaluate_for_make+0x34>      
4000a6f8:	90 04 40 12 	add  %l1, %l2, %o0                             
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
           rtems_set_errno_and_return_minus_one( EACCES );            
                                                                      
    node = pathloc->node_access;                                      
                                                                      
    switch( type ) {                                                  
4000a6fc:	02 80 00 19 	be  4000a760 <IMFS_evaluate_for_make+0x12c>    
4000a700:	80 a5 e0 04 	cmp  %l7, 4                                    
4000a704:	12 bf ff d8 	bne  4000a664 <IMFS_evaluate_for_make+0x30>    <== NEVER TAKEN
4000a708:	92 10 00 13 	mov  %l3, %o1                                  
4000a70c:	30 80 00 52 	b,a   4000a854 <IMFS_evaluate_for_make+0x220>  
      case IMFS_UP_DIR:                                               
       /*                                                             
        *  Am I at the root of all filesystems? (chroot'ed?)          
	*/                                                                   
                                                                      
       if ( pathloc->node_access == rtems_filesystem_root.node_access )
4000a710:	c2 05 40 00 	ld  [ %l5 ], %g1                               
4000a714:	c2 00 60 18 	ld  [ %g1 + 0x18 ], %g1                        
4000a718:	80 a4 00 01 	cmp  %l0, %g1                                  
4000a71c:	02 bf ff d2 	be  4000a664 <IMFS_evaluate_for_make+0x30>     
4000a720:	92 10 00 13 	mov  %l3, %o1                                  
                                                                      
	/*                                                                   
	 * Am I at the root of this mounted filesystem?                      
	 */                                                                  
                                                                      
        if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){
4000a724:	d2 06 60 10 	ld  [ %i1 + 0x10 ], %o1                        
4000a728:	c2 02 60 1c 	ld  [ %o1 + 0x1c ], %g1                        
4000a72c:	80 a4 00 01 	cmp  %l0, %g1                                  
4000a730:	32 80 00 04 	bne,a   4000a740 <IMFS_evaluate_for_make+0x10c>
4000a734:	e0 04 20 08 	ld  [ %l0 + 8 ], %l0                           
                                                                      
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;                                                    
                                                                      
	  } else {                                                           
            newloc = pathloc->mt_entry->mt_point_node;                
4000a738:	10 80 00 2a 	b  4000a7e0 <IMFS_evaluate_for_make+0x1ac>     
4000a73c:	92 02 60 08 	add  %o1, 8, %o1                               
            *pathloc = newloc;                                        
            return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
	  }                                                                  
	} else {                                                             
                                                                      
          if ( !node->Parent )                                        
4000a740:	80 a4 20 00 	cmp  %l0, 0                                    
4000a744:	32 bf ff c7 	bne,a   4000a660 <IMFS_evaluate_for_make+0x2c> 
4000a748:	e0 26 40 00 	st  %l0, [ %i1 ]                               
            rtems_set_errno_and_return_minus_one( ENOENT );           
4000a74c:	40 00 13 64 	call  4000f4dc <__errno>                       
4000a750:	b0 10 3f ff 	mov  -1, %i0                                   
4000a754:	ee 22 00 00 	st  %l7, [ %o0 ]                               
4000a758:	81 c7 e0 08 	ret                                            
4000a75c:	81 e8 00 00 	restore                                        
        pathloc->node_access = node;                                  
        break;                                                        
                                                                      
      case IMFS_NAME:                                                 
                                                                      
	if ( node->type == IMFS_HARD_LINK ) {                                
4000a760:	c2 04 20 4c 	ld  [ %l0 + 0x4c ], %g1                        
4000a764:	80 a0 60 03 	cmp  %g1, 3                                    
4000a768:	12 80 00 0a 	bne  4000a790 <IMFS_evaluate_for_make+0x15c>   
4000a76c:	80 a0 60 04 	cmp  %g1, 4                                    
                                                                      
          result = IMFS_evaluate_link( pathloc, 0 );                  
4000a770:	90 10 00 19 	mov  %i1, %o0                                  
4000a774:	7f ff ff 81 	call  4000a578 <IMFS_evaluate_link>            
4000a778:	92 10 20 00 	clr  %o1                                       
          if ( result == -1 )                                         
4000a77c:	80 a2 3f ff 	cmp  %o0, -1                                   
4000a780:	12 80 00 0c 	bne  4000a7b0 <IMFS_evaluate_for_make+0x17c>   <== ALWAYS TAKEN
4000a784:	b0 10 00 08 	mov  %o0, %i0                                  
4000a788:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000a78c:	81 e8 00 00 	restore                                        <== NOT EXECUTED
            return -1;                                                
                                                                      
	} else if ( node->type == IMFS_SYM_LINK ) {                          
4000a790:	32 80 00 09 	bne,a   4000a7b4 <IMFS_evaluate_for_make+0x180>
4000a794:	d0 06 40 00 	ld  [ %i1 ], %o0                               
                                                                      
          result = IMFS_evaluate_link( pathloc, 0 );                  
4000a798:	90 10 00 19 	mov  %i1, %o0                                  
4000a79c:	7f ff ff 77 	call  4000a578 <IMFS_evaluate_link>            
4000a7a0:	92 10 20 00 	clr  %o1                                       
                                                                      
          if ( result == -1 )                                         
4000a7a4:	80 a2 3f ff 	cmp  %o0, -1                                   
4000a7a8:	02 bf ff ec 	be  4000a758 <IMFS_evaluate_for_make+0x124>    <== NEVER TAKEN
4000a7ac:	b0 10 00 08 	mov  %o0, %i0                                  
            return -1;                                                
	}                                                                    
                                                                      
        node = pathloc->node_access;                                  
4000a7b0:	d0 06 40 00 	ld  [ %i1 ], %o0                               
        if ( !node )                                                  
4000a7b4:	80 a2 20 00 	cmp  %o0, 0                                    
4000a7b8:	02 80 00 45 	be  4000a8cc <IMFS_evaluate_for_make+0x298>    <== NEVER TAKEN
4000a7bc:	01 00 00 00 	nop                                            
                                                                      
        /*                                                            
         * Only a directory can be decended into.                     
	 */                                                                  
                                                                      
        if ( node->type != IMFS_DIRECTORY )                           
4000a7c0:	c2 02 20 4c 	ld  [ %o0 + 0x4c ], %g1                        
4000a7c4:	80 a0 60 01 	cmp  %g1, 1                                    
4000a7c8:	12 80 00 41 	bne  4000a8cc <IMFS_evaluate_for_make+0x298>   
4000a7cc:	01 00 00 00 	nop                                            
	/*                                                                   
	 * If we are at a node that is a mount point. Set loc to the         
	 * new fs root node and let them finish evaluating the path.         
	 */                                                                  
                                                                      
        if ( node->info.directory.mt_fs != NULL ) {                   
4000a7d0:	d2 02 20 5c 	ld  [ %o0 + 0x5c ], %o1                        
4000a7d4:	80 a2 60 00 	cmp  %o1, 0                                    
4000a7d8:	02 80 00 14 	be  4000a828 <IMFS_evaluate_for_make+0x1f4>    
4000a7dc:	92 02 60 1c 	add  %o1, 0x1c, %o1                            
          newloc  = node->info.directory.mt_fs->mt_fs_root;           
4000a7e0:	a0 07 bf e8 	add  %fp, -24, %l0                             
4000a7e4:	94 10 20 14 	mov  0x14, %o2                                 
4000a7e8:	40 00 15 79 	call  4000fdcc <memcpy>                        
4000a7ec:	90 10 00 10 	mov  %l0, %o0                                  
          *pathloc = newloc;                                          
4000a7f0:	92 10 00 10 	mov  %l0, %o1                                  
4000a7f4:	94 10 20 14 	mov  0x14, %o2                                 
4000a7f8:	40 00 15 75 	call  4000fdcc <memcpy>                        
4000a7fc:	90 10 00 19 	mov  %i1, %o0                                  
          return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
4000a800:	c2 06 60 0c 	ld  [ %i1 + 0xc ], %g1                         
4000a804:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          
4000a808:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
4000a80c:	a4 24 80 02 	sub  %l2, %g2, %l2                             
4000a810:	92 10 00 19 	mov  %i1, %o1                                  
4000a814:	90 04 40 12 	add  %l1, %l2, %o0                             
4000a818:	9f c0 40 00 	call  %g1                                      
4000a81c:	94 10 00 1a 	mov  %i2, %o2                                  
4000a820:	81 c7 e0 08 	ret                                            
4000a824:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      
	/*                                                                   
	 * Otherwise find the token name in the present location.            
	 */                                                                  
                                                                      
        node = IMFS_find_match_in_dir( node, token );                 
4000a828:	40 00 00 d4 	call  4000ab78 <IMFS_find_match_in_dir>        
4000a82c:	92 10 00 14 	mov  %l4, %o1                                  
	/*                                                                   
	 * If there is no node we have found the name of the node we         
         * wish to create.                                            
	 */                                                                  
                                                                      
        if ( ! node )                                                 
4000a830:	a0 92 20 00 	orcc  %o0, 0, %l0                              
4000a834:	02 80 00 0c 	be  4000a864 <IMFS_evaluate_for_make+0x230>    
4000a838:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          
          done = true;                                                
        else                                                          
          pathloc->node_access = node;                                
4000a83c:	10 bf ff 89 	b  4000a660 <IMFS_evaluate_for_make+0x2c>      
4000a840:	e0 26 40 00 	st  %l0, [ %i1 ]                               
                                                                      
        break;                                                        
                                                                      
      case IMFS_NO_MORE_PATH:                                         
        rtems_set_errno_and_return_minus_one( EEXIST );               
4000a844:	40 00 13 26 	call  4000f4dc <__errno>                       
4000a848:	b0 10 3f ff 	mov  -1, %i0                                   
4000a84c:	10 80 00 23 	b  4000a8d8 <IMFS_evaluate_for_make+0x2a4>     
4000a850:	82 10 20 11 	mov  0x11, %g1                                 
        break;                                                        
                                                                      
      case IMFS_INVALID_TOKEN:                                        
        rtems_set_errno_and_return_minus_one( ENAMETOOLONG );         
4000a854:	40 00 13 22 	call  4000f4dc <__errno>                       
4000a858:	b0 10 3f ff 	mov  -1, %i0                                   
4000a85c:	10 80 00 1f 	b  4000a8d8 <IMFS_evaluate_for_make+0x2a4>     
4000a860:	82 10 20 5b 	mov  0x5b, %g1                                 
      case IMFS_CURRENT_DIR:                                          
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  *name = &path[ i - len ];                                           
4000a864:	82 04 40 12 	add  %l1, %l2, %g1                             
4000a868:	a4 24 80 02 	sub  %l2, %g2, %l2                             
4000a86c:	a2 04 40 12 	add  %l1, %l2, %l1                             
  /*                                                                  
   * We have evaluated the path as far as we can.                     
   * Verify there is not any invalid stuff at the end of the name.    
   */                                                                 
                                                                      
  for( ; path[i] != '\0'; i++) {                                      
4000a870:	10 80 00 0c 	b  4000a8a0 <IMFS_evaluate_for_make+0x26c>     
4000a874:	e2 26 80 00 	st  %l1, [ %i2 ]                               
    if ( !IMFS_is_separator( path[ i ] ) )                            
4000a878:	80 a0 a0 5c 	cmp  %g2, 0x5c                                 
4000a87c:	22 80 00 0a 	be,a   4000a8a4 <IMFS_evaluate_for_make+0x270> 
4000a880:	c4 48 40 00 	ldsb  [ %g1 ], %g2                             
4000a884:	80 a0 a0 2f 	cmp  %g2, 0x2f                                 
4000a888:	22 80 00 07 	be,a   4000a8a4 <IMFS_evaluate_for_make+0x270> 
4000a88c:	c4 48 40 00 	ldsb  [ %g1 ], %g2                             
      rtems_set_errno_and_return_minus_one( ENOENT );                 
4000a890:	40 00 13 13 	call  4000f4dc <__errno>                       
4000a894:	b0 10 3f ff 	mov  -1, %i0                                   
4000a898:	10 80 00 10 	b  4000a8d8 <IMFS_evaluate_for_make+0x2a4>     
4000a89c:	82 10 20 02 	mov  2, %g1                                    
  /*                                                                  
   * We have evaluated the path as far as we can.                     
   * Verify there is not any invalid stuff at the end of the name.    
   */                                                                 
                                                                      
  for( ; path[i] != '\0'; i++) {                                      
4000a8a0:	c4 48 40 00 	ldsb  [ %g1 ], %g2                             
4000a8a4:	80 a0 a0 00 	cmp  %g2, 0                                    
4000a8a8:	12 bf ff f4 	bne  4000a878 <IMFS_evaluate_for_make+0x244>   
4000a8ac:	82 00 60 01 	inc  %g1                                       
                                                                      
  /*                                                                  
   * Verify we can execute and write to this directory.               
   */                                                                 
                                                                      
  result = IMFS_Set_handlers( pathloc );                              
4000a8b0:	7f ff fe 0d 	call  4000a0e4 <IMFS_Set_handlers>             
4000a8b4:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
  /*                                                                  
   * The returned node must be a directory                            
   */                                                                 
  node = pathloc->node_access;                                        
4000a8b8:	c2 06 40 00 	ld  [ %i1 ], %g1                               
4000a8bc:	c2 00 60 4c 	ld  [ %g1 + 0x4c ], %g1                        
4000a8c0:	80 a0 60 01 	cmp  %g1, 1                                    
4000a8c4:	02 80 00 08 	be  4000a8e4 <IMFS_evaluate_for_make+0x2b0>    <== ALWAYS TAKEN
4000a8c8:	b0 10 00 08 	mov  %o0, %i0                                  
  if ( node->type != IMFS_DIRECTORY )                                 
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
4000a8cc:	40 00 13 04 	call  4000f4dc <__errno>                       
4000a8d0:	b0 10 3f ff 	mov  -1, %i0                                   
4000a8d4:	82 10 20 14 	mov  0x14, %g1                                 
4000a8d8:	c2 22 00 00 	st  %g1, [ %o0 ]                               
4000a8dc:	81 c7 e0 08 	ret                                            
4000a8e0:	81 e8 00 00 	restore                                        
                                                                      
  /*                                                                  
   * We must have Write and execute permission on the returned node.  
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) )   
4000a8e4:	90 10 00 19 	mov  %i1, %o0                                  
4000a8e8:	7f ff fe 1b 	call  4000a154 <IMFS_evaluate_permission>      
4000a8ec:	92 10 20 03 	mov  3, %o1                                    
4000a8f0:	80 a2 20 00 	cmp  %o0, 0                                    
4000a8f4:	12 80 00 06 	bne  4000a90c <IMFS_evaluate_for_make+0x2d8>   
4000a8f8:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EACCES );                   
4000a8fc:	40 00 12 f8 	call  4000f4dc <__errno>                       
4000a900:	b0 10 3f ff 	mov  -1, %i0	! ffffffff <LEON_REG+0x7fffffff>  
4000a904:	82 10 20 0d 	mov  0xd, %g1                                  
4000a908:	c2 22 00 00 	st  %g1, [ %o0 ]                               
                                                                      
  return result;                                                      
}                                                                     
4000a90c:	81 c7 e0 08 	ret                                            
4000a910:	81 e8 00 00 	restore                                        
                                                                      

4000a1b4 <IMFS_evaluate_hard_link>: int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) {
4000a1b4:	9d e3 bf a0 	save  %sp, -96, %sp                            
  IMFS_jnode_t                     *jnode  = node->node_access;       
4000a1b8:	c2 06 00 00 	ld  [ %i0 ], %g1                               
                                                                      
  /*                                                                  
   * Check for things that should never happen.                       
   */                                                                 
                                                                      
  if ( jnode->type != IMFS_HARD_LINK )                                
4000a1bc:	c4 00 60 4c 	ld  [ %g1 + 0x4c ], %g2                        
4000a1c0:	80 a0 a0 03 	cmp  %g2, 3                                    
4000a1c4:	22 80 00 04 	be,a   4000a1d4 <IMFS_evaluate_hard_link+0x20> <== ALWAYS TAKEN
4000a1c8:	c2 00 60 50 	ld  [ %g1 + 0x50 ], %g1                        
    rtems_fatal_error_occurred (0xABCD0000);                          
4000a1cc:	7f ff f2 71 	call  40006b90 <rtems_fatal_error_occurred>    <== NOT EXECUTED
4000a1d0:	11 2a f3 40 	sethi  %hi(0xabcd0000), %o0                    <== NOT EXECUTED
   * Set the hard link value and the handlers.                        
   */                                                                 
                                                                      
  node->node_access = jnode->info.hard_link.link_node;                
                                                                      
  IMFS_Set_handlers( node );                                          
4000a1d4:	90 10 00 18 	mov  %i0, %o0                                  
4000a1d8:	7f ff ff c3 	call  4000a0e4 <IMFS_Set_handlers>             
4000a1dc:	c2 26 00 00 	st  %g1, [ %i0 ]                               
                                                                      
  /*                                                                  
   * Verify we have the correct permissions for this node.            
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( node, flags ) )                     
4000a1e0:	90 10 00 18 	mov  %i0, %o0                                  
4000a1e4:	92 10 00 19 	mov  %i1, %o1                                  
4000a1e8:	7f ff ff db 	call  4000a154 <IMFS_evaluate_permission>      
4000a1ec:	b0 10 20 00 	clr  %i0                                       
4000a1f0:	80 a2 20 00 	cmp  %o0, 0                                    
4000a1f4:	12 80 00 06 	bne  4000a20c <IMFS_evaluate_hard_link+0x58>   <== ALWAYS TAKEN
4000a1f8:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EACCES );                   
4000a1fc:	40 00 14 b8 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4000a200:	b0 10 3f ff 	mov  -1, %i0	! ffffffff <LEON_REG+0x7fffffff>  <== NOT EXECUTED
4000a204:	82 10 20 0d 	mov  0xd, %g1                                  <== NOT EXECUTED
4000a208:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
                                                                      
  return result;                                                      
}                                                                     
4000a20c:	81 c7 e0 08 	ret                                            
4000a210:	81 e8 00 00 	restore                                        
                                                                      

4000a154 <IMFS_evaluate_permission>: int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) {
4000a154:	9d e3 bf a0 	save  %sp, -96, %sp                            
  }                                                                   
                                                                      
  jnode = node->node_access;                                          
                                                                      
#if defined(RTEMS_POSIX_API)                                          
  st_uid = geteuid();                                                 
4000a158:	40 00 04 72 	call  4000b320 <geteuid>                       
4000a15c:	e0 06 00 00 	ld  [ %i0 ], %l0                               
  st_gid = getegid();                                                 
4000a160:	40 00 04 6c 	call  4000b310 <getegid>                       
4000a164:	a2 10 00 08 	mov  %o0, %l1                                  
   * Check if I am owner or a group member or someone else.           
   */                                                                 
                                                                      
  flags_to_test = flags;                                              
                                                                      
  if ( st_uid == jnode->st_uid )                                      
4000a168:	c2 14 20 3c 	lduh  [ %l0 + 0x3c ], %g1                      
4000a16c:	a3 2c 60 10 	sll  %l1, 0x10, %l1                            
4000a170:	a3 34 60 10 	srl  %l1, 0x10, %l1                            
4000a174:	80 a4 40 01 	cmp  %l1, %g1                                  
4000a178:	02 80 00 09 	be  4000a19c <IMFS_evaluate_permission+0x48>   
4000a17c:	83 2e 60 06 	sll  %i1, 6, %g1                               
    flags_to_test <<= 6;                                              
  else if ( st_gid == jnode->st_gid )                                 
4000a180:	c2 14 20 3e 	lduh  [ %l0 + 0x3e ], %g1                      
4000a184:	91 2a 20 10 	sll  %o0, 0x10, %o0                            
4000a188:	91 32 20 10 	srl  %o0, 0x10, %o0                            
4000a18c:	80 a2 00 01 	cmp  %o0, %g1                                  
4000a190:	02 80 00 03 	be  4000a19c <IMFS_evaluate_permission+0x48>   <== ALWAYS TAKEN
4000a194:	83 2e 60 03 	sll  %i1, 3, %g1                               
4000a198:	82 10 00 19 	mov  %i1, %g1                                  <== NOT EXECUTED
                                                                      
  /*                                                                  
   * If all of the flags are set we have permission                   
   * to do this.                                                      
   */                                                                 
  if ( ( flags_to_test & jnode->st_mode) == flags_to_test )           
4000a19c:	c4 04 20 30 	ld  [ %l0 + 0x30 ], %g2                        
4000a1a0:	82 28 40 02 	andn  %g1, %g2, %g1                            
    return 1;                                                         
                                                                      
  return 0;                                                           
}                                                                     
4000a1a4:	80 a0 00 01 	cmp  %g0, %g1                                  
4000a1a8:	b0 60 3f ff 	subx  %g0, -1, %i0                             
4000a1ac:	81 c7 e0 08 	ret                                            
4000a1b0:	81 e8 00 00 	restore                                        
                                                                      

4000a214 <IMFS_evaluate_sym_link>: int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) {
4000a214:	9d e3 bf a0 	save  %sp, -96, %sp                            
  IMFS_jnode_t                     *jnode  = node->node_access;       
4000a218:	e2 06 00 00 	ld  [ %i0 ], %l1                               
                                                                      
int IMFS_evaluate_sym_link(                                           
  rtems_filesystem_location_info_t  *node,   /* IN/OUT */             
  int                                flags   /* IN     */             
)                                                                     
{                                                                     
4000a21c:	a0 10 00 18 	mov  %i0, %l0                                  
                                                                      
  /*                                                                  
   * Check for things that should never happen.                       
   */                                                                 
                                                                      
  if ( jnode->type != IMFS_SYM_LINK )                                 
4000a220:	c2 04 60 4c 	ld  [ %l1 + 0x4c ], %g1                        
4000a224:	80 a0 60 04 	cmp  %g1, 4                                    
4000a228:	12 80 00 07 	bne  4000a244 <IMFS_evaluate_sym_link+0x30>    <== NEVER TAKEN
4000a22c:	11 2a f3 40 	sethi  %hi(0xabcd0000), %o0                    
    rtems_fatal_error_occurred (0xABCD0000);                          
                                                                      
  if ( !jnode->Parent )                                               
4000a230:	c2 04 60 08 	ld  [ %l1 + 8 ], %g1                           
4000a234:	80 a0 60 00 	cmp  %g1, 0                                    
4000a238:	32 80 00 05 	bne,a   4000a24c <IMFS_evaluate_sym_link+0x38> <== ALWAYS TAKEN
4000a23c:	c2 26 00 00 	st  %g1, [ %i0 ]                               
    rtems_fatal_error_occurred( 0xBAD00000 );                         
4000a240:	11 2e b4 00 	sethi  %hi(0xbad00000), %o0                    <== NOT EXECUTED
4000a244:	7f ff f2 53 	call  40006b90 <rtems_fatal_error_occurred>    <== NOT EXECUTED
4000a248:	01 00 00 00 	nop                                            <== NOT EXECUTED
   * root depending on the symbolic links path.                       
   */                                                                 
                                                                      
  node->node_access = jnode->Parent;                                  
                                                                      
  rtems_filesystem_get_sym_start_loc(                                 
4000a24c:	c2 04 60 50 	ld  [ %l1 + 0x50 ], %g1                        
4000a250:	c2 48 40 00 	ldsb  [ %g1 ], %g1                             
4000a254:	80 a0 60 5c 	cmp  %g1, 0x5c                                 
4000a258:	22 80 00 09 	be,a   4000a27c <IMFS_evaluate_sym_link+0x68>  <== NEVER TAKEN
4000a25c:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    <== NOT EXECUTED
4000a260:	80 a0 60 2f 	cmp  %g1, 0x2f                                 
4000a264:	22 80 00 06 	be,a   4000a27c <IMFS_evaluate_sym_link+0x68>  
4000a268:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
4000a26c:	80 a0 60 00 	cmp  %g1, 0                                    
4000a270:	12 80 00 09 	bne  4000a294 <IMFS_evaluate_sym_link+0x80>    <== ALWAYS TAKEN
4000a274:	82 10 20 00 	clr  %g1                                       
4000a278:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    <== NOT EXECUTED
4000a27c:	d2 00 63 18 	ld  [ %g1 + 0x318 ], %o1	! 4001cf18 <rtems_current_user_env>
4000a280:	90 10 00 10 	mov  %l0, %o0                                  
4000a284:	92 02 60 18 	add  %o1, 0x18, %o1                            
4000a288:	40 00 16 d1 	call  4000fdcc <memcpy>                        
4000a28c:	94 10 20 14 	mov  0x14, %o2                                 
4000a290:	82 10 20 01 	mov  1, %g1                                    
   * Use eval path to evaluate the path of the symbolic link.         
   */                                                                 
                                                                      
  result = IMFS_eval_path(                                            
    &jnode->info.sym_link.name[i],                                    
    strlen( &jnode->info.sym_link.name[i] ),                          
4000a294:	e2 04 60 50 	ld  [ %l1 + 0x50 ], %l1                        
4000a298:	a2 04 40 01 	add  %l1, %g1, %l1                             
4000a29c:	40 00 18 48 	call  400103bc <strlen>                        
4000a2a0:	90 10 00 11 	mov  %l1, %o0                                  
                                                                      
  /*                                                                  
   * Use eval path to evaluate the path of the symbolic link.         
   */                                                                 
                                                                      
  result = IMFS_eval_path(                                            
4000a2a4:	94 10 00 19 	mov  %i1, %o2                                  
    &jnode->info.sym_link.name[i],                                    
    strlen( &jnode->info.sym_link.name[i] ),                          
4000a2a8:	92 10 00 08 	mov  %o0, %o1                                  
                                                                      
  /*                                                                  
   * Use eval path to evaluate the path of the symbolic link.         
   */                                                                 
                                                                      
  result = IMFS_eval_path(                                            
4000a2ac:	96 10 00 10 	mov  %l0, %o3                                  
4000a2b0:	40 00 00 11 	call  4000a2f4 <IMFS_eval_path>                
4000a2b4:	90 10 00 11 	mov  %l1, %o0                                  
4000a2b8:	b0 10 00 08 	mov  %o0, %i0                                  
    strlen( &jnode->info.sym_link.name[i] ),                          
    flags,                                                            
    node                                                              
  );                                                                  
                                                                      
  IMFS_Set_handlers( node );                                          
4000a2bc:	7f ff ff 8a 	call  4000a0e4 <IMFS_Set_handlers>             
4000a2c0:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
  /*                                                                  
   * Verify we have the correct permissions for this node.            
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( node, flags ) )                     
4000a2c4:	90 10 00 10 	mov  %l0, %o0                                  
4000a2c8:	7f ff ff a3 	call  4000a154 <IMFS_evaluate_permission>      
4000a2cc:	92 10 00 19 	mov  %i1, %o1                                  
4000a2d0:	80 a2 20 00 	cmp  %o0, 0                                    
4000a2d4:	12 80 00 06 	bne  4000a2ec <IMFS_evaluate_sym_link+0xd8>    <== ALWAYS TAKEN
4000a2d8:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EACCES );                   
4000a2dc:	40 00 14 80 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4000a2e0:	b0 10 3f ff 	mov  -1, %i0	! ffffffff <LEON_REG+0x7fffffff>  <== NOT EXECUTED
4000a2e4:	82 10 20 0d 	mov  0xd, %g1                                  <== NOT EXECUTED
4000a2e8:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
                                                                      
  return result;                                                      
}                                                                     
4000a2ec:	81 c7 e0 08 	ret                                            
4000a2f0:	81 e8 00 00 	restore                                        
                                                                      

4000dd30 <IMFS_fchmod>: int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) {
4000dd30:	9d e3 bf 98 	save  %sp, -104, %sp                           
                                                                      
  /*                                                                  
   *  Verify I am the owner of the node or the super user.            
   */                                                                 
#if defined(RTEMS_POSIX_API)                                          
  st_uid = geteuid();                                                 
4000dd34:	7f ff f5 7b 	call  4000b320 <geteuid>                       
4000dd38:	e0 06 00 00 	ld  [ %i0 ], %l0                               
                                                                      
  if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) )               
4000dd3c:	91 2a 20 10 	sll  %o0, 0x10, %o0                            
4000dd40:	91 32 20 10 	srl  %o0, 0x10, %o0                            
4000dd44:	80 a2 20 00 	cmp  %o0, 0                                    
4000dd48:	22 80 00 0c 	be,a   4000dd78 <IMFS_fchmod+0x48>             <== ALWAYS TAKEN
4000dd4c:	c2 04 20 30 	ld  [ %l0 + 0x30 ], %g1                        
4000dd50:	c2 14 20 3c 	lduh  [ %l0 + 0x3c ], %g1                      <== NOT EXECUTED
4000dd54:	80 a2 00 01 	cmp  %o0, %g1                                  <== NOT EXECUTED
4000dd58:	22 80 00 08 	be,a   4000dd78 <IMFS_fchmod+0x48>             <== NOT EXECUTED
4000dd5c:	c2 04 20 30 	ld  [ %l0 + 0x30 ], %g1                        <== NOT EXECUTED
    rtems_set_errno_and_return_minus_one( EPERM );                    
4000dd60:	40 00 05 df 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4000dd64:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
4000dd68:	82 10 20 01 	mov  1, %g1                                    <== NOT EXECUTED
4000dd6c:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
4000dd70:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000dd74:	81 e8 00 00 	restore                                        <== NOT EXECUTED
   */                                                                 
                                                                      
  jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
  jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
                                                                      
  IMFS_update_ctime( jnode );                                         
4000dd78:	90 07 bf f8 	add  %fp, -8, %o0                              
  /*                                                                  
   * Change only the RWX permissions on the jnode to mode.            
   */                                                                 
                                                                      
  jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
  jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
4000dd7c:	82 08 70 00 	and  %g1, -4096, %g1                           
                                                                      
  IMFS_update_ctime( jnode );                                         
4000dd80:	92 10 20 00 	clr  %o1                                       
  /*                                                                  
   * Change only the RWX permissions on the jnode to mode.            
   */                                                                 
                                                                      
  jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
  jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
4000dd84:	b2 0e 6f ff 	and  %i1, 0xfff, %i1                           
4000dd88:	b2 16 40 01 	or  %i1, %g1, %i1                              
                                                                      
  IMFS_update_ctime( jnode );                                         
4000dd8c:	7f ff f5 69 	call  4000b330 <gettimeofday>                  
4000dd90:	f2 24 20 30 	st  %i1, [ %l0 + 0x30 ]                        
4000dd94:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
4000dd98:	c2 24 20 48 	st  %g1, [ %l0 + 0x48 ]                        
                                                                      
  return 0;                                                           
}                                                                     
4000dd9c:	81 c7 e0 08 	ret                                            
4000dda0:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

4000aabc <IMFS_fifo_close>: } int IMFS_fifo_close( rtems_libio_t *iop ) {
4000aabc:	9d e3 bf a0 	save  %sp, -96, %sp                            <== NOT EXECUTED
  IMFS_jnode_t *jnode = iop->file_info;                               
4000aac0:	e0 06 20 3c 	ld  [ %i0 + 0x3c ], %l0                        <== NOT EXECUTED
                                                                      
  int err = pipe_release(&JNODE2PIPE(jnode), iop);                    
4000aac4:	92 10 00 18 	mov  %i0, %o1                                  <== NOT EXECUTED
}                                                                     
                                                                      
int IMFS_fifo_close(                                                  
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
4000aac8:	a2 10 00 18 	mov  %i0, %l1                                  <== NOT EXECUTED
  IMFS_jnode_t *jnode = iop->file_info;                               
                                                                      
  int err = pipe_release(&JNODE2PIPE(jnode), iop);                    
4000aacc:	40 00 0a e3 	call  4000d658 <pipe_release>                  <== NOT EXECUTED
4000aad0:	90 04 20 50 	add  %l0, 0x50, %o0                            <== NOT EXECUTED
                                                                      
  if (! err) {                                                        
4000aad4:	b0 92 20 00 	orcc  %o0, 0, %i0                              <== NOT EXECUTED
4000aad8:	12 80 00 12 	bne  4000ab20 <IMFS_fifo_close+0x64>           <== NOT EXECUTED
4000aadc:	80 a6 20 00 	cmp  %i0, 0                                    <== NOT EXECUTED
    iop->flags &= ~LIBIO_FLAGS_OPEN;                                  
4000aae0:	c2 04 60 18 	ld  [ %l1 + 0x18 ], %g1                        <== NOT EXECUTED
    /* Free jnode if file is already unlinked and no one opens it */  
    if (! rtems_libio_is_file_open(jnode) && jnode->st_nlink < 1)     
4000aae4:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
  IMFS_jnode_t *jnode = iop->file_info;                               
                                                                      
  int err = pipe_release(&JNODE2PIPE(jnode), iop);                    
                                                                      
  if (! err) {                                                        
    iop->flags &= ~LIBIO_FLAGS_OPEN;                                  
4000aae8:	82 08 7e ff 	and  %g1, -257, %g1                            <== NOT EXECUTED
    /* Free jnode if file is already unlinked and no one opens it */  
    if (! rtems_libio_is_file_open(jnode) && jnode->st_nlink < 1)     
4000aaec:	40 00 02 49 	call  4000b410 <rtems_libio_is_file_open>      <== NOT EXECUTED
4000aaf0:	c2 24 60 18 	st  %g1, [ %l1 + 0x18 ]                        <== NOT EXECUTED
4000aaf4:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000aaf8:	12 80 00 10 	bne  4000ab38 <IMFS_fifo_close+0x7c>           <== NOT EXECUTED
4000aafc:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000ab00:	c2 14 20 34 	lduh  [ %l0 + 0x34 ], %g1                      <== NOT EXECUTED
4000ab04:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000ab08:	12 80 00 0c 	bne  4000ab38 <IMFS_fifo_close+0x7c>           <== NOT EXECUTED
4000ab0c:	01 00 00 00 	nop                                            <== NOT EXECUTED
      free(jnode);                                                    
4000ab10:	40 00 01 9b 	call  4000b17c <free>                          <== NOT EXECUTED
4000ab14:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
4000ab18:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000ab1c:	81 e8 00 00 	restore                                        <== NOT EXECUTED
  }                                                                   
                                                                      
  IMFS_FIFO_RETURN(err);                                              
4000ab20:	16 80 00 06 	bge  4000ab38 <IMFS_fifo_close+0x7c>           <== NOT EXECUTED
4000ab24:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000ab28:	40 00 12 6d 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4000ab2c:	b0 20 00 18 	neg  %i0                                       <== NOT EXECUTED
4000ab30:	f0 22 00 00 	st  %i0, [ %o0 ]                               <== NOT EXECUTED
4000ab34:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
}                                                                     
4000ab38:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000ab3c:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

4000a96c <IMFS_fifo_ioctl>: int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) {
4000a96c:	9d e3 bf a0 	save  %sp, -96, %sp                            <== NOT EXECUTED
  int err;                                                            
                                                                      
  if (command == FIONBIO) {                                           
4000a970:	03 20 01 19 	sethi  %hi(0x80046400), %g1                    <== NOT EXECUTED
int IMFS_fifo_ioctl(                                                  
  rtems_libio_t *iop,                                                 
  uint32_t       command,                                             
  void          *buffer                                               
)                                                                     
{                                                                     
4000a974:	92 10 00 19 	mov  %i1, %o1                                  <== NOT EXECUTED
  int err;                                                            
                                                                      
  if (command == FIONBIO) {                                           
4000a978:	82 10 62 7e 	or  %g1, 0x27e, %g1                            <== NOT EXECUTED
int IMFS_fifo_ioctl(                                                  
  rtems_libio_t *iop,                                                 
  uint32_t       command,                                             
  void          *buffer                                               
)                                                                     
{                                                                     
4000a97c:	96 10 00 18 	mov  %i0, %o3                                  <== NOT EXECUTED
  int err;                                                            
                                                                      
  if (command == FIONBIO) {                                           
4000a980:	80 a6 40 01 	cmp  %i1, %g1                                  <== NOT EXECUTED
4000a984:	12 80 00 0f 	bne  4000a9c0 <IMFS_fifo_ioctl+0x54>           <== NOT EXECUTED
4000a988:	94 10 00 1a 	mov  %i2, %o2                                  <== NOT EXECUTED
    if (buffer == NULL)                                               
4000a98c:	80 a6 a0 00 	cmp  %i2, 0                                    <== NOT EXECUTED
4000a990:	02 80 00 12 	be  4000a9d8 <IMFS_fifo_ioctl+0x6c>            <== NOT EXECUTED
4000a994:	b0 10 3f f2 	mov  -14, %i0                                  <== NOT EXECUTED
      err = -EFAULT;                                                  
    else {                                                            
      if (*(int *)buffer)                                             
4000a998:	c4 06 80 00 	ld  [ %i2 ], %g2                               <== NOT EXECUTED
4000a99c:	80 a0 a0 00 	cmp  %g2, 0                                    <== NOT EXECUTED
4000a9a0:	02 80 00 04 	be  4000a9b0 <IMFS_fifo_ioctl+0x44>            <== NOT EXECUTED
4000a9a4:	c2 02 e0 18 	ld  [ %o3 + 0x18 ], %g1                        <== NOT EXECUTED
        iop->flags |= LIBIO_FLAGS_NO_DELAY;                           
4000a9a8:	10 80 00 03 	b  4000a9b4 <IMFS_fifo_ioctl+0x48>             <== NOT EXECUTED
4000a9ac:	82 10 60 01 	or  %g1, 1, %g1                                <== NOT EXECUTED
      else                                                            
        iop->flags &= ~LIBIO_FLAGS_NO_DELAY;                          
4000a9b0:	82 08 7f fe 	and  %g1, -2, %g1                              <== NOT EXECUTED
4000a9b4:	c2 22 e0 18 	st  %g1, [ %o3 + 0x18 ]                        <== NOT EXECUTED
4000a9b8:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000a9bc:	91 e8 20 00 	restore  %g0, 0, %o0                           <== NOT EXECUTED
      return 0;                                                       
    }                                                                 
  }                                                                   
  else                                                                
    err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop);          
4000a9c0:	c2 06 20 3c 	ld  [ %i0 + 0x3c ], %g1                        <== NOT EXECUTED
4000a9c4:	40 00 0a 22 	call  4000d24c <pipe_ioctl>                    <== NOT EXECUTED
4000a9c8:	d0 00 60 50 	ld  [ %g1 + 0x50 ], %o0                        <== NOT EXECUTED
                                                                      
  IMFS_FIFO_RETURN(err);                                              
4000a9cc:	b0 92 20 00 	orcc  %o0, 0, %i0                              <== NOT EXECUTED
4000a9d0:	16 80 00 06 	bge  4000a9e8 <IMFS_fifo_ioctl+0x7c>           <== NOT EXECUTED
4000a9d4:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000a9d8:	40 00 12 c1 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4000a9dc:	b0 20 00 18 	neg  %i0                                       <== NOT EXECUTED
4000a9e0:	f0 22 00 00 	st  %i0, [ %o0 ]                               <== NOT EXECUTED
4000a9e4:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
}                                                                     
4000a9e8:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000a9ec:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

4000a914 <IMFS_fifo_lseek>: rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) {
4000a914:	9d e3 bf a0 	save  %sp, -96, %sp                            <== NOT EXECUTED
  off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);       
4000a918:	c2 06 20 3c 	ld  [ %i0 + 0x3c ], %g1                        <== NOT EXECUTED
rtems_off64_t IMFS_fifo_lseek(                                        
  rtems_libio_t *iop,                                                 
  rtems_off64_t  offset,                                              
  int            whence                                               
)                                                                     
{                                                                     
4000a91c:	98 10 00 18 	mov  %i0, %o4                                  <== NOT EXECUTED
  off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);       
4000a920:	d0 00 60 50 	ld  [ %g1 + 0x50 ], %o0                        <== NOT EXECUTED
4000a924:	96 10 00 1b 	mov  %i3, %o3                                  <== NOT EXECUTED
4000a928:	92 10 00 19 	mov  %i1, %o1                                  <== NOT EXECUTED
4000a92c:	40 00 0a 2b 	call  4000d1d8 <pipe_lseek>                    <== NOT EXECUTED
4000a930:	94 10 00 1a 	mov  %i2, %o2                                  <== NOT EXECUTED
4000a934:	85 3a 20 1f 	sra  %o0, 0x1f, %g2                            <== NOT EXECUTED
4000a938:	a0 10 00 08 	mov  %o0, %l0                                  <== NOT EXECUTED
  IMFS_FIFO_RETURN(err);                                              
4000a93c:	80 a0 a0 00 	cmp  %g2, 0                                    <== NOT EXECUTED
4000a940:	16 80 00 08 	bge  4000a960 <IMFS_fifo_lseek+0x4c>           <== NOT EXECUTED
4000a944:	86 10 00 08 	mov  %o0, %g3                                  <== NOT EXECUTED
4000a948:	40 00 12 e5 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4000a94c:	a0 20 00 10 	neg  %l0                                       <== NOT EXECUTED
4000a950:	05 3f ff ff 	sethi  %hi(0xfffffc00), %g2                    <== NOT EXECUTED
4000a954:	e0 22 00 00 	st  %l0, [ %o0 ]                               <== NOT EXECUTED
4000a958:	84 10 a3 ff 	or  %g2, 0x3ff, %g2                            <== NOT EXECUTED
4000a95c:	86 10 00 02 	mov  %g2, %g3                                  <== NOT EXECUTED
}                                                                     
4000a960:	b2 10 00 03 	mov  %g3, %i1                                  <== NOT EXECUTED
4000a964:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000a968:	91 e8 00 02 	restore  %g0, %g2, %o0                         <== NOT EXECUTED
                                                                      

4000ab40 <IMFS_fifo_open>: rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) {
4000ab40:	9d e3 bf a0 	save  %sp, -96, %sp                            
  IMFS_jnode_t *jnode = iop->file_info;                               
                                                                      
  int err = fifo_open(&JNODE2PIPE(jnode), iop);                       
4000ab44:	d0 06 20 3c 	ld  [ %i0 + 0x3c ], %o0                        
  rtems_libio_t *iop,                                                 
  const char    *pathname,                                            
  uint32_t       flag,                                                
  uint32_t       mode                                                 
)                                                                     
{                                                                     
4000ab48:	92 10 00 18 	mov  %i0, %o1                                  
  IMFS_jnode_t *jnode = iop->file_info;                               
                                                                      
  int err = fifo_open(&JNODE2PIPE(jnode), iop);                       
4000ab4c:	40 00 0b 07 	call  4000d768 <fifo_open>                     
4000ab50:	90 02 20 50 	add  %o0, 0x50, %o0                            
  IMFS_FIFO_RETURN(err);                                              
4000ab54:	b0 92 20 00 	orcc  %o0, 0, %i0                              
4000ab58:	16 80 00 06 	bge  4000ab70 <IMFS_fifo_open+0x30>            <== NEVER TAKEN
4000ab5c:	01 00 00 00 	nop                                            
4000ab60:	40 00 12 5f 	call  4000f4dc <__errno>                       
4000ab64:	b0 20 00 18 	neg  %i0                                       
4000ab68:	f0 22 00 00 	st  %i0, [ %o0 ]                               
4000ab6c:	b0 10 3f ff 	mov  -1, %i0                                   
}                                                                     
4000ab70:	81 c7 e0 08 	ret                                            
4000ab74:	81 e8 00 00 	restore                                        
                                                                      

4000aa58 <IMFS_fifo_read>: ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) {
4000aa58:	9d e3 bf 98 	save  %sp, -104, %sp                           <== NOT EXECUTED
  IMFS_jnode_t *jnode = iop->file_info;                               
4000aa5c:	e0 06 20 3c 	ld  [ %i0 + 0x3c ], %l0                        <== NOT EXECUTED
ssize_t IMFS_fifo_read(                                               
  rtems_libio_t *iop,                                                 
  void          *buffer,                                              
  size_t         count                                                
)                                                                     
{                                                                     
4000aa60:	96 10 00 18 	mov  %i0, %o3                                  <== NOT EXECUTED
  IMFS_jnode_t *jnode = iop->file_info;                               
                                                                      
  int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop);         
4000aa64:	d0 04 20 50 	ld  [ %l0 + 0x50 ], %o0                        <== NOT EXECUTED
4000aa68:	92 10 00 19 	mov  %i1, %o1                                  <== NOT EXECUTED
4000aa6c:	40 00 0a 11 	call  4000d2b0 <pipe_read>                     <== NOT EXECUTED
4000aa70:	94 10 00 1a 	mov  %i2, %o2                                  <== NOT EXECUTED
  if (err > 0)                                                        
4000aa74:	b0 92 20 00 	orcc  %o0, 0, %i0                              <== NOT EXECUTED
4000aa78:	04 80 00 08 	ble  4000aa98 <IMFS_fifo_read+0x40>            <== NOT EXECUTED
4000aa7c:	90 07 bf f8 	add  %fp, -8, %o0                              <== NOT EXECUTED
    IMFS_update_atime(jnode);                                         
4000aa80:	40 00 02 2c 	call  4000b330 <gettimeofday>                  <== NOT EXECUTED
4000aa84:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
4000aa88:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          <== NOT EXECUTED
4000aa8c:	c2 24 20 40 	st  %g1, [ %l0 + 0x40 ]                        <== NOT EXECUTED
4000aa90:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000aa94:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      
  IMFS_FIFO_RETURN(err);                                              
4000aa98:	80 a6 20 00 	cmp  %i0, 0                                    <== NOT EXECUTED
4000aa9c:	02 80 00 06 	be  4000aab4 <IMFS_fifo_read+0x5c>             <== NOT EXECUTED
4000aaa0:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000aaa4:	40 00 12 8e 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4000aaa8:	b0 20 00 18 	neg  %i0                                       <== NOT EXECUTED
4000aaac:	f0 22 00 00 	st  %i0, [ %o0 ]                               <== NOT EXECUTED
4000aab0:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
}                                                                     
4000aab4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000aab8:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

4000a9f0 <IMFS_fifo_write>: ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) {
4000a9f0:	9d e3 bf 98 	save  %sp, -104, %sp                           <== NOT EXECUTED
  IMFS_jnode_t *jnode = iop->file_info;                               
4000a9f4:	e0 06 20 3c 	ld  [ %i0 + 0x3c ], %l0                        <== NOT EXECUTED
ssize_t IMFS_fifo_write(                                              
  rtems_libio_t *iop,                                                 
  const void    *buffer,                                              
  size_t         count                                                
)                                                                     
{                                                                     
4000a9f8:	96 10 00 18 	mov  %i0, %o3                                  <== NOT EXECUTED
  IMFS_jnode_t *jnode = iop->file_info;                               
                                                                      
  int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop);        
4000a9fc:	d0 04 20 50 	ld  [ %l0 + 0x50 ], %o0                        <== NOT EXECUTED
4000aa00:	92 10 00 19 	mov  %i1, %o1                                  <== NOT EXECUTED
4000aa04:	40 00 0a 92 	call  4000d44c <pipe_write>                    <== NOT EXECUTED
4000aa08:	94 10 00 1a 	mov  %i2, %o2                                  <== NOT EXECUTED
  if (err > 0) {                                                      
4000aa0c:	b0 92 20 00 	orcc  %o0, 0, %i0                              <== NOT EXECUTED
4000aa10:	04 80 00 09 	ble  4000aa34 <IMFS_fifo_write+0x44>           <== NOT EXECUTED
4000aa14:	90 07 bf f8 	add  %fp, -8, %o0                              <== NOT EXECUTED
    IMFS_mtime_ctime_update(jnode);                                   
4000aa18:	40 00 02 46 	call  4000b330 <gettimeofday>                  <== NOT EXECUTED
4000aa1c:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
4000aa20:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          <== NOT EXECUTED
4000aa24:	c2 24 20 48 	st  %g1, [ %l0 + 0x48 ]                        <== NOT EXECUTED
4000aa28:	c2 24 20 44 	st  %g1, [ %l0 + 0x44 ]                        <== NOT EXECUTED
4000aa2c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000aa30:	81 e8 00 00 	restore                                        <== NOT EXECUTED
  }                                                                   
                                                                      
  IMFS_FIFO_RETURN(err);                                              
4000aa34:	80 a6 20 00 	cmp  %i0, 0                                    <== NOT EXECUTED
4000aa38:	02 80 00 06 	be  4000aa50 <IMFS_fifo_write+0x60>            <== NOT EXECUTED
4000aa3c:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000aa40:	40 00 12 a7 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4000aa44:	b0 20 00 18 	neg  %i0                                       <== NOT EXECUTED
4000aa48:	f0 22 00 00 	st  %i0, [ %o0 ]                               <== NOT EXECUTED
4000aa4c:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
}                                                                     
4000aa50:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000aa54:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

4000ab78 <IMFS_find_match_in_dir>: IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) {
4000ab78:	9d e3 bf a0 	save  %sp, -96, %sp                            
  /*                                                                  
   *  Check for fatal errors.  A NULL directory show a problem in the 
   *  the IMFS code.                                                  
   */                                                                 
                                                                      
  assert( directory );                                                
4000ab7c:	80 a6 20 00 	cmp  %i0, 0                                    
4000ab80:	12 80 00 0a 	bne  4000aba8 <IMFS_find_match_in_dir+0x30>    <== ALWAYS TAKEN
4000ab84:	80 a6 60 00 	cmp  %i1, 0                                    
4000ab88:	11 10 00 70 	sethi  %hi(0x4001c000), %o0                    <== NOT EXECUTED
4000ab8c:	15 10 00 70 	sethi  %hi(0x4001c000), %o2                    <== NOT EXECUTED
4000ab90:	17 10 00 70 	sethi  %hi(0x4001c000), %o3                    <== NOT EXECUTED
4000ab94:	90 12 20 98 	or  %o0, 0x98, %o0                             <== NOT EXECUTED
4000ab98:	94 12 a1 08 	or  %o2, 0x108, %o2                            <== NOT EXECUTED
4000ab9c:	96 12 e0 e8 	or  %o3, 0xe8, %o3                             <== NOT EXECUTED
4000aba0:	7f ff e0 79 	call  40002d84 <__assert_func>                 <== NOT EXECUTED
4000aba4:	92 10 20 2a 	mov  0x2a, %o1                                 <== NOT EXECUTED
  if ( !name )                                                        
4000aba8:	02 80 00 1c 	be  4000ac18 <IMFS_find_match_in_dir+0xa0>     <== NEVER TAKEN
4000abac:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
  /*                                                                  
   *  Check for "." and ".."                                          
   */                                                                 
                                                                      
  if ( !strcmp( name, dotname ) )                                     
4000abb0:	13 10 00 70 	sethi  %hi(0x4001c000), %o1                    
4000abb4:	40 00 15 b1 	call  40010278 <strcmp>                        
4000abb8:	92 12 60 f8 	or  %o1, 0xf8, %o1	! 4001c0f8 <dotname>        
4000abbc:	80 a2 20 00 	cmp  %o0, 0                                    
4000abc0:	02 80 00 09 	be  4000abe4 <IMFS_find_match_in_dir+0x6c>     <== NEVER TAKEN
4000abc4:	90 10 00 19 	mov  %i1, %o0                                  
    return directory;                                                 
                                                                      
  if ( !strcmp( name, dotdotname ) )                                  
4000abc8:	13 10 00 70 	sethi  %hi(0x4001c000), %o1                    
4000abcc:	40 00 15 ab 	call  40010278 <strcmp>                        
4000abd0:	92 12 61 00 	or  %o1, 0x100, %o1	! 4001c100 <dotdotname>    
4000abd4:	80 a2 20 00 	cmp  %o0, 0                                    
4000abd8:	12 80 00 05 	bne  4000abec <IMFS_find_match_in_dir+0x74>    <== ALWAYS TAKEN
4000abdc:	a0 06 20 54 	add  %i0, 0x54, %l0                            
    return directory->Parent;                                         
4000abe0:	f0 06 20 08 	ld  [ %i0 + 8 ], %i0                           <== NOT EXECUTED
4000abe4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000abe8:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      
  the_chain = &directory->info.directory.Entries;                     
                                                                      
  for ( the_node = the_chain->first;                                  
4000abec:	10 80 00 08 	b  4000ac0c <IMFS_find_match_in_dir+0x94>      
4000abf0:	f0 06 20 50 	ld  [ %i0 + 0x50 ], %i0                        
        !rtems_chain_is_tail( the_chain, the_node );                  
        the_node = the_node->next ) {                                 
                                                                      
    the_jnode = (IMFS_jnode_t *) the_node;                            
                                                                      
    if ( !strcmp( name, the_jnode->name ) )                           
4000abf4:	40 00 15 a1 	call  40010278 <strcmp>                        
4000abf8:	92 06 20 0c 	add  %i0, 0xc, %o1                             
4000abfc:	80 a2 20 00 	cmp  %o0, 0                                    
4000ac00:	02 80 00 07 	be  4000ac1c <IMFS_find_match_in_dir+0xa4>     
4000ac04:	01 00 00 00 	nop                                            
                                                                      
  the_chain = &directory->info.directory.Entries;                     
                                                                      
  for ( the_node = the_chain->first;                                  
        !rtems_chain_is_tail( the_chain, the_node );                  
        the_node = the_node->next ) {                                 
4000ac08:	f0 06 00 00 	ld  [ %i0 ], %i0                               
  if ( !strcmp( name, dotdotname ) )                                  
    return directory->Parent;                                         
                                                                      
  the_chain = &directory->info.directory.Entries;                     
                                                                      
  for ( the_node = the_chain->first;                                  
4000ac0c:	80 a6 00 10 	cmp  %i0, %l0                                  
4000ac10:	12 bf ff f9 	bne  4000abf4 <IMFS_find_match_in_dir+0x7c>    
4000ac14:	90 10 00 19 	mov  %i1, %o0                                  
4000ac18:	b0 10 20 00 	clr  %i0                                       
    if ( !strcmp( name, the_jnode->name ) )                           
      return the_jnode;                                               
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
4000ac1c:	81 c7 e0 08 	ret                                            
4000ac20:	81 e8 00 00 	restore                                        
                                                                      

40010508 <IMFS_fsunmount>: ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) {
40010508:	9d e3 bf 88 	save  %sp, -120, %sp                           
    * Traverse tree that starts at the mt_fs_root and deallocate memory
    * associated memory space                                         
    */                                                                
                                                                      
   jnode = (IMFS_jnode_t *)temp_mt_entry->mt_fs_root.node_access;     
   loc = temp_mt_entry->mt_fs_root;                                   
4001050c:	94 10 20 14 	mov  0x14, %o2                                 
40010510:	90 07 bf ec 	add  %fp, -20, %o0                             
   /*                                                                 
    * Traverse tree that starts at the mt_fs_root and deallocate memory
    * associated memory space                                         
    */                                                                
                                                                      
   jnode = (IMFS_jnode_t *)temp_mt_entry->mt_fs_root.node_access;     
40010514:	e0 06 20 1c 	ld  [ %i0 + 0x1c ], %l0                        
   temp_mt_entry->mt_fs_root.node_access = NULL;                      
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
     loc.node_access = (void *)jnode;                                 
     IMFS_Set_handlers( &loc );                                       
40010518:	a2 10 00 08 	mov  %o0, %l1                                  
    * Traverse tree that starts at the mt_fs_root and deallocate memory
    * associated memory space                                         
    */                                                                
                                                                      
   jnode = (IMFS_jnode_t *)temp_mt_entry->mt_fs_root.node_access;     
   loc = temp_mt_entry->mt_fs_root;                                   
4001051c:	40 00 15 42 	call  40015a24 <memcpy>                        
40010520:	92 06 20 1c 	add  %i0, 0x1c, %o1                            
                                                                      
   /*                                                                 
    *  Set this to null to indicate that it is being unmounted.       
    */                                                                
                                                                      
   temp_mt_entry->mt_fs_root.node_access = NULL;                      
40010524:	c0 26 20 1c 	clr  [ %i0 + 0x1c ]                            
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
     loc.node_access = (void *)jnode;                                 
40010528:	e0 27 bf ec 	st  %l0, [ %fp + -20 ]                         
    */                                                                
                                                                      
   temp_mt_entry->mt_fs_root.node_access = NULL;                      
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
4001052c:	f0 04 20 08 	ld  [ %l0 + 8 ], %i0                           
     loc.node_access = (void *)jnode;                                 
     IMFS_Set_handlers( &loc );                                       
40010530:	7f ff fd 4f 	call  4000fa6c <IMFS_Set_handlers>             
40010534:	90 10 00 11 	mov  %l1, %o0                                  
                                                                      
     if ( jnode->type != IMFS_DIRECTORY ) {                           
40010538:	c4 04 20 4c 	ld  [ %l0 + 0x4c ], %g2                        
4001053c:	80 a0 a0 01 	cmp  %g2, 1                                    
40010540:	12 80 00 06 	bne  40010558 <IMFS_fsunmount+0x50>            
40010544:	82 04 20 54 	add  %l0, 0x54, %g1                            
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
40010548:	c4 04 20 50 	ld  [ %l0 + 0x50 ], %g2                        
4001054c:	80 a0 80 01 	cmp  %g2, %g1                                  
40010550:	12 80 00 09 	bne  40010574 <IMFS_fsunmount+0x6c>            
40010554:	80 a4 20 00 	cmp  %l0, 0                                    
        result = IMFS_unlink( NULL, &loc );                           
        if (result != 0)                                              
          return -1;                                                  
        jnode = next;                                                 
     } else if ( jnode_has_no_children( jnode ) ) {                   
        result = IMFS_unlink( NULL, &loc );                           
40010558:	90 10 20 00 	clr  %o0                                       
4001055c:	7f ff cf 45 	call  40004270 <IMFS_unlink>                   
40010560:	92 10 00 11 	mov  %l1, %o1                                  
        if (result != 0)                                              
40010564:	80 a2 20 00 	cmp  %o0, 0                                    
40010568:	12 80 00 13 	bne  400105b4 <IMFS_fsunmount+0xac>            <== NEVER TAKEN
4001056c:	a0 10 00 18 	mov  %i0, %l0                                  
          return -1;                                                  
        jnode = next;                                                 
     }                                                                
     if ( jnode != NULL ) {                                           
40010570:	80 a4 20 00 	cmp  %l0, 0                                    
40010574:	22 80 00 11 	be,a   400105b8 <IMFS_fsunmount+0xb0>          
40010578:	b0 10 20 00 	clr  %i0                                       
       if ( jnode->type == IMFS_DIRECTORY ) {                         
4001057c:	c2 04 20 4c 	ld  [ %l0 + 0x4c ], %g1                        
40010580:	80 a0 60 01 	cmp  %g1, 1                                    
40010584:	32 bf ff ea 	bne,a   4001052c <IMFS_fsunmount+0x24>         <== NEVER TAKEN
40010588:	e0 27 bf ec 	st  %l0, [ %fp + -20 ]                         <== NOT EXECUTED
4001058c:	c2 04 20 50 	ld  [ %l0 + 0x50 ], %g1                        
40010590:	84 04 20 54 	add  %l0, 0x54, %g2                            
40010594:	80 a0 40 02 	cmp  %g1, %g2                                  
40010598:	22 bf ff e5 	be,a   4001052c <IMFS_fsunmount+0x24>          
4001059c:	e0 27 bf ec 	st  %l0, [ %fp + -20 ]                         
         if ( jnode_has_children( jnode ) )                           
           jnode = jnode_get_first_child( jnode );                    
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
400105a0:	a0 90 60 00 	orcc  %g1, 0, %l0                              
400105a4:	32 bf ff e2 	bne,a   4001052c <IMFS_fsunmount+0x24>         <== ALWAYS TAKEN
400105a8:	e0 27 bf ec 	st  %l0, [ %fp + -20 ]                         
400105ac:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
400105b0:	91 e8 20 00 	restore  %g0, 0, %o0                           <== NOT EXECUTED
400105b4:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
                                                                      
   return 0;                                                          
}                                                                     
400105b8:	81 c7 e0 08 	ret                                            
400105bc:	81 e8 00 00 	restore                                        
                                                                      

4000ac24 <IMFS_get_token>: const char *path, int pathlen, char *token, int *token_len ) {
4000ac24:	9d e3 bf a0 	save  %sp, -96, %sp                            
  register char c;                                                    
                                                                      
  /*                                                                  
   *  Copy a name into token.  (Remember NULL is a token.)            
   */                                                                 
  c = path[i];                                                        
4000ac28:	82 10 20 00 	clr  %g1                                       
  while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
4000ac2c:	10 80 00 08 	b  4000ac4c <IMFS_get_token+0x28>              
4000ac30:	c4 0e 00 00 	ldub  [ %i0 ], %g2                             
                                                                      
     token[i] = c;                                                    
                                                                      
     if ( i == IMFS_NAME_MAX )                                        
4000ac34:	80 a0 60 20 	cmp  %g1, 0x20                                 
4000ac38:	12 80 00 04 	bne  4000ac48 <IMFS_get_token+0x24>            
4000ac3c:	82 00 60 01 	inc  %g1                                       
4000ac40:	81 c7 e0 08 	ret                                            
4000ac44:	91 e8 20 04 	restore  %g0, 4, %o0                           
       return IMFS_INVALID_TOKEN;                                     
                                                                      
     if ( !IMFS_is_valid_name_char(c) )                               
       type = IMFS_INVALID_TOKEN;                                     
                                                                      
     c = path [++i];                                                  
4000ac48:	c4 0e 00 01 	ldub  [ %i0 + %g1 ], %g2                       
                                                                      
  /*                                                                  
   *  Copy a name into token.  (Remember NULL is a token.)            
   */                                                                 
  c = path[i];                                                        
  while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
4000ac4c:	87 28 a0 18 	sll  %g2, 0x18, %g3                            
4000ac50:	87 38 e0 18 	sra  %g3, 0x18, %g3                            
4000ac54:	80 a0 e0 5c 	cmp  %g3, 0x5c                                 
4000ac58:	02 80 00 08 	be  4000ac78 <IMFS_get_token+0x54>             
4000ac5c:	80 a0 e0 2f 	cmp  %g3, 0x2f                                 
4000ac60:	02 80 00 06 	be  4000ac78 <IMFS_get_token+0x54>             
4000ac64:	80 a0 40 19 	cmp  %g1, %i1                                  
4000ac68:	16 80 00 04 	bge  4000ac78 <IMFS_get_token+0x54>            
4000ac6c:	80 a0 e0 00 	cmp  %g3, 0                                    
4000ac70:	32 bf ff f1 	bne,a   4000ac34 <IMFS_get_token+0x10>         <== ALWAYS TAKEN
4000ac74:	c4 2e 80 01 	stb  %g2, [ %i2 + %g1 ]                        
                                                                      
  /*                                                                  
   *  Copy a seperator into token.                                    
   */                                                                 
                                                                      
  if ( i == 0 ) {                                                     
4000ac78:	80 a0 60 00 	cmp  %g1, 0                                    
4000ac7c:	32 80 00 0d 	bne,a   4000acb0 <IMFS_get_token+0x8c>         
4000ac80:	84 06 80 01 	add  %i2, %g1, %g2                             
    token[i] = c;                                                     
4000ac84:	c4 2e 80 00 	stb  %g2, [ %i2 ]                              
                                                                      
    if ( (token[i] != '\0') && pathlen ) {                            
4000ac88:	85 28 a0 18 	sll  %g2, 0x18, %g2                            
4000ac8c:	80 a0 a0 00 	cmp  %g2, 0                                    
4000ac90:	02 80 00 0d 	be  4000acc4 <IMFS_get_token+0xa0>             
4000ac94:	b0 10 20 00 	clr  %i0                                       
4000ac98:	80 a6 60 00 	cmp  %i1, 0                                    
4000ac9c:	02 80 00 0b 	be  4000acc8 <IMFS_get_token+0xa4>             
4000aca0:	80 a6 20 03 	cmp  %i0, 3                                    
4000aca4:	b0 10 20 01 	mov  1, %i0                                    
4000aca8:	10 80 00 07 	b  4000acc4 <IMFS_get_token+0xa0>              
4000acac:	82 10 20 01 	mov  1, %g1                                    
      i++;                                                            
      type = IMFS_CURRENT_DIR;                                        
    } else {                                                          
      type = IMFS_NO_MORE_PATH;                                       
    }                                                                 
  } else if (token[ i-1 ] != '\0') {                                  
4000acb0:	c4 48 bf ff 	ldsb  [ %g2 + -1 ], %g2                        
4000acb4:	80 a0 a0 00 	cmp  %g2, 0                                    
4000acb8:	02 80 00 03 	be  4000acc4 <IMFS_get_token+0xa0>             <== NEVER TAKEN
4000acbc:	b0 10 20 03 	mov  3, %i0                                    
    token[i] = '\0';                                                  
4000acc0:	c0 2e 80 01 	clrb  [ %i2 + %g1 ]                            
  /*                                                                  
   *  If we copied something that was not a seperator see if          
   *  it was a special name.                                          
   */                                                                 
                                                                      
  if ( type == IMFS_NAME ) {                                          
4000acc4:	80 a6 20 03 	cmp  %i0, 3                                    
4000acc8:	12 80 00 11 	bne  4000ad0c <IMFS_get_token+0xe8>            
4000accc:	c2 26 c0 00 	st  %g1, [ %i3 ]                               
    if ( strcmp( token, "..") == 0 )                                  
4000acd0:	90 10 00 1a 	mov  %i2, %o0                                  
4000acd4:	13 10 00 70 	sethi  %hi(0x4001c000), %o1                    
4000acd8:	40 00 15 68 	call  40010278 <strcmp>                        
4000acdc:	92 12 61 20 	or  %o1, 0x120, %o1	! 4001c120 <__FUNCTION__.5468+0x18>
4000ace0:	80 a2 20 00 	cmp  %o0, 0                                    
4000ace4:	12 80 00 04 	bne  4000acf4 <IMFS_get_token+0xd0>            
4000ace8:	90 10 00 1a 	mov  %i2, %o0                                  
4000acec:	81 c7 e0 08 	ret                                            
4000acf0:	91 e8 20 02 	restore  %g0, 2, %o0                           
      type = IMFS_UP_DIR;                                             
    else if ( strcmp( token, "." ) == 0 )                             
4000acf4:	13 10 00 70 	sethi  %hi(0x4001c000), %o1                    
4000acf8:	40 00 15 60 	call  40010278 <strcmp>                        
4000acfc:	92 12 61 28 	or  %o1, 0x128, %o1	! 4001c128 <__FUNCTION__.5468+0x20>
4000ad00:	80 a2 20 00 	cmp  %o0, 0                                    
4000ad04:	22 80 00 02 	be,a   4000ad0c <IMFS_get_token+0xe8>          
4000ad08:	b0 10 20 01 	mov  1, %i0                                    
      type = IMFS_CURRENT_DIR;                                        
  }                                                                   
                                                                      
  return type;                                                        
}                                                                     
4000ad0c:	81 c7 e0 08 	ret                                            
4000ad10:	81 e8 00 00 	restore                                        
                                                                      

4000ad14 <IMFS_initialize_support>: rtems_filesystem_mount_table_entry_t *temp_mt_entry, const rtems_filesystem_operations_table *op_table, const rtems_filesystem_file_handlers_r *memfile_handlers, const rtems_filesystem_file_handlers_r *directory_handlers ) {
4000ad14:	9d e3 bf a0 	save  %sp, -96, %sp                            
  IMFS_jnode_t                          *jnode;                       
                                                                      
  /*                                                                  
   * determine/check value for imfs_memfile_bytes_per_block           
   */                                                                 
  IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block,       
4000ad18:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
4000ad1c:	c2 00 62 08 	ld  [ %g1 + 0x208 ], %g1	! 4001ce08 <imfs_rq_memfile_bytes_per_block>
4000ad20:	86 10 20 00 	clr  %g3                                       
4000ad24:	84 10 20 10 	mov  0x10, %g2                                 
  int bit_mask;                                                       
                                                                      
  /*                                                                  
   * check, whether requested bytes per block is valid                
   */                                                                 
  for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
4000ad28:	80 a0 80 01 	cmp  %g2, %g1                                  
4000ad2c:	02 80 00 06 	be  4000ad44 <IMFS_initialize_support+0x30>    
4000ad30:	86 00 e0 01 	inc  %g3                                       
4000ad34:	80 a0 e0 06 	cmp  %g3, 6                                    
4000ad38:	12 bf ff fc 	bne  4000ad28 <IMFS_initialize_support+0x14>   <== ALWAYS TAKEN
4000ad3c:	85 28 a0 01 	sll  %g2, 1, %g2                               
4000ad40:	84 10 20 80 	mov  0x80, %g2                                 <== NOT EXECUTED
    if (bit_mask == requested_bytes_per_block) {                      
      is_valid = true;                                                
    }                                                                 
  }                                                                   
  *dest_bytes_per_block = ((is_valid)                                 
4000ad44:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
  /*                                                                  
   *  Create the root node                                            
   *                                                                  
   *  NOTE: UNIX root is 755 and owned by root/root (0/0).            
   */                                                                 
  temp_mt_entry->mt_fs_root.node_access      = IMFS_create_root_node();
4000ad48:	40 00 0b a6 	call  4000dbe0 <IMFS_create_root_node>         
4000ad4c:	c4 20 61 dc 	st  %g2, [ %g1 + 0x1dc ]	! 4001d5dc <imfs_memfile_bytes_per_block>
  temp_mt_entry->mt_fs_root.handlers         = directory_handlers;    
  temp_mt_entry->mt_fs_root.ops              = op_table;              
  temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS;
4000ad50:	94 10 20 30 	mov  0x30, %o2                                 
  /*                                                                  
   *  Create the root node                                            
   *                                                                  
   *  NOTE: UNIX root is 755 and owned by root/root (0/0).            
   */                                                                 
  temp_mt_entry->mt_fs_root.node_access      = IMFS_create_root_node();
4000ad54:	d0 26 20 1c 	st  %o0, [ %i0 + 0x1c ]                        
  temp_mt_entry->mt_fs_root.handlers         = directory_handlers;    
  temp_mt_entry->mt_fs_root.ops              = op_table;              
4000ad58:	f2 26 20 28 	st  %i1, [ %i0 + 0x28 ]                        
   *  Create the root node                                            
   *                                                                  
   *  NOTE: UNIX root is 755 and owned by root/root (0/0).            
   */                                                                 
  temp_mt_entry->mt_fs_root.node_access      = IMFS_create_root_node();
  temp_mt_entry->mt_fs_root.handlers         = directory_handlers;    
4000ad5c:	f6 26 20 24 	st  %i3, [ %i0 + 0x24 ]                        
  temp_mt_entry->mt_fs_root.ops              = op_table;              
  temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS;
4000ad60:	13 10 00 71 	sethi  %hi(0x4001c400), %o1                    
4000ad64:	90 06 20 38 	add  %i0, 0x38, %o0                            
4000ad68:	40 00 14 19 	call  4000fdcc <memcpy>                        
4000ad6c:	92 12 60 7c 	or  %o1, 0x7c, %o1                             
                                                                      
  /*                                                                  
   * Create custom file system data.                                  
   */                                                                 
  fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) );                    
4000ad70:	90 10 20 01 	mov  1, %o0                                    
4000ad74:	40 00 00 bc 	call  4000b064 <calloc>                        
4000ad78:	92 10 20 10 	mov  0x10, %o1                                 
  if ( !fs_info ) {                                                   
4000ad7c:	82 92 20 00 	orcc  %o0, 0, %g1                              
4000ad80:	12 80 00 0a 	bne  4000ada8 <IMFS_initialize_support+0x94>   <== ALWAYS TAKEN
4000ad84:	d0 06 20 1c 	ld  [ %i0 + 0x1c ], %o0                        
    free(temp_mt_entry->mt_fs_root.node_access);                      
4000ad88:	40 00 00 fd 	call  4000b17c <free>                          <== NOT EXECUTED
4000ad8c:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
    rtems_set_errno_and_return_minus_one(ENOMEM);                     
4000ad90:	40 00 11 d3 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4000ad94:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000ad98:	82 10 20 0c 	mov  0xc, %g1	! c <PROM_START+0xc>             <== NOT EXECUTED
4000ad9c:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
4000ada0:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000ada4:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Set st_ino for the root to 1.                                    
   */                                                                 
                                                                      
  fs_info->instance              = imfs_instance++;                   
4000ada8:	07 10 00 75 	sethi  %hi(0x4001d400), %g3                    
4000adac:	c4 00 e1 e0 	ld  [ %g3 + 0x1e0 ], %g2	! 4001d5e0 <imfs_instance.5969>
  fs_info->ino_count             = 1;                                 
4000adb0:	88 10 20 01 	mov  1, %g4                                    
4000adb4:	c8 20 60 04 	st  %g4, [ %g1 + 4 ]                           
  fs_info->memfile_handlers      = memfile_handlers;                  
  fs_info->directory_handlers    = directory_handlers;                
                                                                      
  jnode = temp_mt_entry->mt_fs_root.node_access;                      
  jnode->st_ino = fs_info->ino_count;                                 
4000adb8:	c8 22 20 38 	st  %g4, [ %o0 + 0x38 ]                        
                                                                      
  /*                                                                  
   * Set st_ino for the root to 1.                                    
   */                                                                 
                                                                      
  fs_info->instance              = imfs_instance++;                   
4000adbc:	88 00 a0 01 	add  %g2, 1, %g4                               
4000adc0:	c8 20 e1 e0 	st  %g4, [ %g3 + 0x1e0 ]                       
  fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) );                    
  if ( !fs_info ) {                                                   
    free(temp_mt_entry->mt_fs_root.node_access);                      
    rtems_set_errno_and_return_minus_one(ENOMEM);                     
  }                                                                   
  temp_mt_entry->fs_info = fs_info;                                   
4000adc4:	c2 26 20 34 	st  %g1, [ %i0 + 0x34 ]                        
   */                                                                 
                                                                      
  fs_info->instance              = imfs_instance++;                   
  fs_info->ino_count             = 1;                                 
  fs_info->memfile_handlers      = memfile_handlers;                  
  fs_info->directory_handlers    = directory_handlers;                
4000adc8:	f6 20 60 0c 	st  %i3, [ %g1 + 0xc ]                         
   * Set st_ino for the root to 1.                                    
   */                                                                 
                                                                      
  fs_info->instance              = imfs_instance++;                   
  fs_info->ino_count             = 1;                                 
  fs_info->memfile_handlers      = memfile_handlers;                  
4000adcc:	f4 20 60 08 	st  %i2, [ %g1 + 8 ]                           
                                                                      
  /*                                                                  
   * Set st_ino for the root to 1.                                    
   */                                                                 
                                                                      
  fs_info->instance              = imfs_instance++;                   
4000add0:	c4 20 40 00 	st  %g2, [ %g1 ]                               
                                                                      
  jnode = temp_mt_entry->mt_fs_root.node_access;                      
  jnode->st_ino = fs_info->ino_count;                                 
                                                                      
  /* Initialize POSIX FIFO/pipe module */                             
  rtems_pipe_initialize();                                            
4000add4:	40 00 09 03 	call  4000d1e0 <rtems_pipe_initialize>         
4000add8:	b0 10 20 00 	clr  %i0                                       
                                                                      
  return 0;                                                           
}                                                                     
4000addc:	81 c7 e0 08 	ret                                            
4000ade0:	81 e8 00 00 	restore                                        
                                                                      

40003f44 <IMFS_link>: int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) {
40003f44:	9d e3 bf 50 	save  %sp, -176, %sp                           
  int                i;                                               
                                                                      
  /*                                                                  
   *  Verify this node can be linked to.                              
   */                                                                 
  info.hard_link.link_node = to_loc->node_access;                     
40003f48:	c2 06 00 00 	ld  [ %i0 ], %g1                               
40003f4c:	c2 27 bf d8 	st  %g1, [ %fp + -40 ]                         
  if ( info.hard_link.link_node->st_nlink >= LINK_MAX )               
40003f50:	c2 10 60 34 	lduh  [ %g1 + 0x34 ], %g1                      
40003f54:	80 a0 60 07 	cmp  %g1, 7                                    
40003f58:	08 80 00 06 	bleu  40003f70 <IMFS_link+0x2c>                
40003f5c:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EMLINK );                   
40003f60:	40 00 44 75 	call  40015134 <__errno>                       
40003f64:	01 00 00 00 	nop                                            
40003f68:	10 80 00 17 	b  40003fc4 <IMFS_link+0x80>                   
40003f6c:	82 10 20 1f 	mov  0x1f, %g1	! 1f <PROM_START+0x1f>          
                                                                      
  /*                                                                  
   * Remove any separators at the end of the string.                  
   */                                                                 
  IMFS_get_token( token, strlen( token ), new_name, &i );             
40003f70:	40 00 48 10 	call  40015fb0 <strlen>                        
40003f74:	90 10 00 1a 	mov  %i2, %o0                                  
40003f78:	a0 07 bf b0 	add  %fp, -80, %l0                             
40003f7c:	92 10 00 08 	mov  %o0, %o1                                  
40003f80:	96 07 bf fc 	add  %fp, -4, %o3                              
40003f84:	94 10 00 10 	mov  %l0, %o2                                  
40003f88:	40 00 31 b9 	call  4001066c <IMFS_get_token>                
40003f8c:	90 10 00 1a 	mov  %i2, %o0                                  
   *        was ONLY passed a NULL when we created the root node.  We 
   *        added a new IMFS_create_root_node() so this path no longer
   *        existed.  The result was simpler code which should not have
   *        this path.                                                
   */                                                                 
  new_node = IMFS_create_node(                                        
40003f90:	90 10 00 19 	mov  %i1, %o0                                  
40003f94:	94 10 00 10 	mov  %l0, %o2                                  
40003f98:	92 10 20 03 	mov  3, %o1                                    
40003f9c:	17 00 00 28 	sethi  %hi(0xa000), %o3                        
40003fa0:	98 07 bf d8 	add  %fp, -40, %o4                             
40003fa4:	40 00 2e 67 	call  4000f940 <IMFS_create_node>              
40003fa8:	96 12 e1 ff 	or  %o3, 0x1ff, %o3                            
    new_name,                                                         
    ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),                     
    &info                                                             
  );                                                                  
                                                                      
  if ( !new_node )                                                    
40003fac:	80 a2 20 00 	cmp  %o0, 0                                    
40003fb0:	12 80 00 08 	bne  40003fd0 <IMFS_link+0x8c>                 <== ALWAYS TAKEN
40003fb4:	c2 07 bf d8 	ld  [ %fp + -40 ], %g1                         
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
40003fb8:	40 00 44 5f 	call  40015134 <__errno>                       <== NOT EXECUTED
40003fbc:	01 00 00 00 	nop                                            <== NOT EXECUTED
40003fc0:	82 10 20 0c 	mov  0xc, %g1	! c <PROM_START+0xc>             <== NOT EXECUTED
40003fc4:	c2 22 00 00 	st  %g1, [ %o0 ]                               
40003fc8:	81 c7 e0 08 	ret                                            
40003fcc:	91 e8 3f ff 	restore  %g0, -1, %o0                          
                                                                      
  /*                                                                  
   * Increment the link count of the node being pointed to.           
   */                                                                 
  info.hard_link.link_node->st_nlink++;                               
  IMFS_update_ctime( info.hard_link.link_node );                      
40003fd0:	90 07 bf f4 	add  %fp, -12, %o0                             
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
                                                                      
  /*                                                                  
   * Increment the link count of the node being pointed to.           
   */                                                                 
  info.hard_link.link_node->st_nlink++;                               
40003fd4:	c4 10 60 34 	lduh  [ %g1 + 0x34 ], %g2                      
  IMFS_update_ctime( info.hard_link.link_node );                      
40003fd8:	92 10 20 00 	clr  %o1                                       
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
                                                                      
  /*                                                                  
   * Increment the link count of the node being pointed to.           
   */                                                                 
  info.hard_link.link_node->st_nlink++;                               
40003fdc:	84 00 a0 01 	inc  %g2                                       
  IMFS_update_ctime( info.hard_link.link_node );                      
40003fe0:	40 00 02 65 	call  40004974 <gettimeofday>                  
40003fe4:	c4 30 60 34 	sth  %g2, [ %g1 + 0x34 ]                       
40003fe8:	c4 07 bf f4 	ld  [ %fp + -12 ], %g2                         
40003fec:	c2 07 bf d8 	ld  [ %fp + -40 ], %g1                         
40003ff0:	c4 20 60 48 	st  %g2, [ %g1 + 0x48 ]                        
                                                                      
  return 0;                                                           
}                                                                     
40003ff4:	81 c7 e0 08 	ret                                            
40003ff8:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

40013238 <IMFS_memfile_addblock>: MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) {
40013238:	9d e3 bf a0 	save  %sp, -96, %sp                            
4001323c:	90 10 00 18 	mov  %i0, %o0                                  
  block_p  memory;                                                    
  block_p *block_entry_ptr;                                           
                                                                      
  assert( the_jnode );                                                
40013240:	80 a6 20 00 	cmp  %i0, 0                                    
40013244:	12 80 00 0a 	bne  4001326c <IMFS_memfile_addblock+0x34>     <== ALWAYS TAKEN
40013248:	92 10 00 19 	mov  %i1, %o1                                  
4001324c:	11 10 00 89 	sethi  %hi(0x40022400), %o0                    <== NOT EXECUTED
40013250:	15 10 00 8a 	sethi  %hi(0x40022800), %o2                    <== NOT EXECUTED
40013254:	17 10 00 89 	sethi  %hi(0x40022400), %o3                    <== NOT EXECUTED
40013258:	90 12 23 00 	or  %o0, 0x300, %o0                            <== NOT EXECUTED
4001325c:	94 12 a0 d8 	or  %o2, 0xd8, %o2                             <== NOT EXECUTED
40013260:	96 12 e3 48 	or  %o3, 0x348, %o3                            <== NOT EXECUTED
40013264:	10 80 00 0c 	b  40013294 <IMFS_memfile_addblock+0x5c>       <== NOT EXECUTED
40013268:	92 10 21 69 	mov  0x169, %o1                                <== NOT EXECUTED
  if ( !the_jnode )                                                   
    rtems_set_errno_and_return_minus_one( EIO );                      
                                                                      
  assert( the_jnode->type == IMFS_MEMORY_FILE );                      
4001326c:	c2 06 20 4c 	ld  [ %i0 + 0x4c ], %g1                        
40013270:	80 a0 60 05 	cmp  %g1, 5                                    
40013274:	02 80 00 0a 	be  4001329c <IMFS_memfile_addblock+0x64>      <== ALWAYS TAKEN
40013278:	15 10 00 8a 	sethi  %hi(0x40022800), %o2                    
4001327c:	11 10 00 89 	sethi  %hi(0x40022400), %o0                    <== NOT EXECUTED
40013280:	17 10 00 89 	sethi  %hi(0x40022400), %o3                    <== NOT EXECUTED
40013284:	90 12 23 00 	or  %o0, 0x300, %o0                            <== NOT EXECUTED
40013288:	94 12 a0 d8 	or  %o2, 0xd8, %o2                             <== NOT EXECUTED
4001328c:	96 12 e3 58 	or  %o3, 0x358, %o3                            <== NOT EXECUTED
40013290:	92 10 21 6d 	mov  0x16d, %o1                                <== NOT EXECUTED
40013294:	7f ff c4 98 	call  400044f4 <__assert_func>                 <== NOT EXECUTED
40013298:	01 00 00 00 	nop                                            <== NOT EXECUTED
  if ( the_jnode->type != IMFS_MEMORY_FILE )                          
    rtems_set_errno_and_return_minus_one( EIO );                      
                                                                      
  block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 1 );
4001329c:	7f ff fe 6c 	call  40012c4c <IMFS_memfile_get_block_pointer>
400132a0:	94 10 20 01 	mov  1, %o2	! 1 <PROM_START+0x1>               
  if ( *block_entry_ptr )                                             
400132a4:	c2 02 00 00 	ld  [ %o0 ], %g1                               
                                                                      
  assert( the_jnode->type == IMFS_MEMORY_FILE );                      
  if ( the_jnode->type != IMFS_MEMORY_FILE )                          
    rtems_set_errno_and_return_minus_one( EIO );                      
                                                                      
  block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 1 );
400132a8:	a0 10 00 08 	mov  %o0, %l0                                  
  if ( *block_entry_ptr )                                             
400132ac:	80 a0 60 00 	cmp  %g1, 0                                    
400132b0:	12 80 00 09 	bne  400132d4 <IMFS_memfile_addblock+0x9c>     
400132b4:	b0 10 20 00 	clr  %i0                                       
#if 0                                                                 
  fprintf(stdout, "%d %p", block, block_entry_ptr );                  
    fflush(stdout);                                                   
#endif                                                                
                                                                      
  memory = memfile_alloc_block();                                     
400132b8:	7f ff fe 58 	call  40012c18 <memfile_alloc_block>           
400132bc:	b0 10 20 01 	mov  1, %i0                                    
  if ( !memory )                                                      
400132c0:	80 a2 20 00 	cmp  %o0, 0                                    
400132c4:	02 80 00 04 	be  400132d4 <IMFS_memfile_addblock+0x9c>      <== NEVER TAKEN
400132c8:	01 00 00 00 	nop                                            
    return 1;                                                         
  *block_entry_ptr = memory;                                          
400132cc:	d0 24 00 00 	st  %o0, [ %l0 ]                               
400132d0:	b0 10 20 00 	clr  %i0                                       
                                                                      
  return 0;                                                           
}                                                                     
400132d4:	81 c7 e0 08 	ret                                            
400132d8:	81 e8 00 00 	restore                                        
                                                                      

400132dc <IMFS_memfile_extend>: MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) {
400132dc:	9d e3 bf a0 	save  %sp, -96, %sp                            
                                                                      
  /*                                                                  
   *  Perform internal consistency checks                             
   */                                                                 
                                                                      
  assert( the_jnode );                                                
400132e0:	80 a6 20 00 	cmp  %i0, 0                                    
400132e4:	32 80 00 0a 	bne,a   4001330c <IMFS_memfile_extend+0x30>    <== ALWAYS TAKEN
400132e8:	c2 06 20 4c 	ld  [ %i0 + 0x4c ], %g1                        
400132ec:	11 10 00 89 	sethi  %hi(0x40022400), %o0                    <== NOT EXECUTED
400132f0:	15 10 00 8a 	sethi  %hi(0x40022800), %o2                    <== NOT EXECUTED
400132f4:	17 10 00 89 	sethi  %hi(0x40022400), %o3                    <== NOT EXECUTED
400132f8:	90 12 23 00 	or  %o0, 0x300, %o0                            <== NOT EXECUTED
400132fc:	94 12 a0 f0 	or  %o2, 0xf0, %o2                             <== NOT EXECUTED
40013300:	96 12 e3 48 	or  %o3, 0x348, %o3                            <== NOT EXECUTED
40013304:	10 80 00 0c 	b  40013334 <IMFS_memfile_extend+0x58>         <== NOT EXECUTED
40013308:	92 10 21 31 	mov  0x131, %o1                                <== NOT EXECUTED
  if ( !the_jnode )                                                   
    rtems_set_errno_and_return_minus_one( EIO );                      
                                                                      
  assert( the_jnode->type == IMFS_MEMORY_FILE );                      
4001330c:	80 a0 60 05 	cmp  %g1, 5                                    
40013310:	02 80 00 0b 	be  4001333c <IMFS_memfile_extend+0x60>        <== ALWAYS TAKEN
40013314:	03 10 00 8e 	sethi  %hi(0x40023800), %g1                    
40013318:	11 10 00 89 	sethi  %hi(0x40022400), %o0                    <== NOT EXECUTED
4001331c:	15 10 00 8a 	sethi  %hi(0x40022800), %o2                    <== NOT EXECUTED
40013320:	17 10 00 89 	sethi  %hi(0x40022400), %o3                    <== NOT EXECUTED
40013324:	90 12 23 00 	or  %o0, 0x300, %o0                            <== NOT EXECUTED
40013328:	94 12 a0 f0 	or  %o2, 0xf0, %o2                             <== NOT EXECUTED
4001332c:	96 12 e3 58 	or  %o3, 0x358, %o3                            <== NOT EXECUTED
40013330:	92 10 21 35 	mov  0x135, %o1                                <== NOT EXECUTED
40013334:	7f ff c4 70 	call  400044f4 <__assert_func>                 <== NOT EXECUTED
40013338:	01 00 00 00 	nop                                            <== NOT EXECUTED
  if ( the_jnode->type != IMFS_MEMORY_FILE )                          
    rtems_set_errno_and_return_minus_one( EIO );                      
                                                                      
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
4001333c:	e0 00 60 d4 	ld  [ %g1 + 0xd4 ], %l0                        
40013340:	a3 34 20 02 	srl  %l0, 2, %l1                               
40013344:	92 10 00 11 	mov  %l1, %o1                                  
40013348:	40 00 2c c0 	call  4001e648 <.umul>                         
4001334c:	90 04 60 01 	add  %l1, 1, %o0                               
40013350:	92 10 00 11 	mov  %l1, %o1                                  
40013354:	40 00 2c bd 	call  4001e648 <.umul>                         
40013358:	90 02 20 01 	inc  %o0                                       
4001335c:	92 10 00 10 	mov  %l0, %o1                                  
40013360:	40 00 2c ba 	call  4001e648 <.umul>                         
40013364:	90 02 3f ff 	add  %o0, -1, %o0                              
40013368:	82 10 20 00 	clr  %g1                                       
4001336c:	80 a0 40 19 	cmp  %g1, %i1                                  
40013370:	34 80 00 0b 	bg,a   4001339c <IMFS_memfile_extend+0xc0>     <== NEVER TAKEN
40013374:	e2 06 20 50 	ld  [ %i0 + 0x50 ], %l1                        <== NOT EXECUTED
40013378:	80 a0 40 19 	cmp  %g1, %i1                                  
4001337c:	12 80 00 04 	bne  4001338c <IMFS_memfile_extend+0xb0>       <== NEVER TAKEN
40013380:	80 a2 00 1a 	cmp  %o0, %i2                                  
40013384:	38 80 00 06 	bgu,a   4001339c <IMFS_memfile_extend+0xc0>    <== ALWAYS TAKEN
40013388:	e2 06 20 50 	ld  [ %i0 + 0x50 ], %l1                        
    rtems_set_errno_and_return_minus_one( EINVAL );                   
4001338c:	40 00 07 6a 	call  40015134 <__errno>                       <== NOT EXECUTED
40013390:	01 00 00 00 	nop                                            <== NOT EXECUTED
40013394:	10 80 00 2b 	b  40013440 <IMFS_memfile_extend+0x164>        <== NOT EXECUTED
40013398:	82 10 20 16 	mov  0x16, %g1	! 16 <PROM_START+0x16>          <== NOT EXECUTED
                                                                      
  if ( new_length <= the_jnode->info.file.size )                      
4001339c:	80 a6 40 11 	cmp  %i1, %l1                                  
400133a0:	14 80 00 09 	bg  400133c4 <IMFS_memfile_extend+0xe8>        <== NEVER TAKEN
400133a4:	e6 06 20 54 	ld  [ %i0 + 0x54 ], %l3                        
400133a8:	80 a6 40 11 	cmp  %i1, %l1                                  
400133ac:	12 80 00 04 	bne  400133bc <IMFS_memfile_extend+0xe0>       <== NEVER TAKEN
400133b0:	80 a6 80 13 	cmp  %i2, %l3                                  
400133b4:	18 80 00 05 	bgu  400133c8 <IMFS_memfile_extend+0xec>       
400133b8:	a5 3c 20 1f 	sra  %l0, 0x1f, %l2                            
400133bc:	81 c7 e0 08 	ret                                            
400133c0:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      
  /*                                                                  
   *  Calculate the number of range of blocks to allocate             
   */                                                                 
                                                                      
  new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;             
400133c4:	a5 3c 20 1f 	sra  %l0, 0x1f, %l2                            <== NOT EXECUTED
400133c8:	96 10 00 10 	mov  %l0, %o3                                  
400133cc:	94 10 00 12 	mov  %l2, %o2                                  
400133d0:	90 10 00 19 	mov  %i1, %o0                                  
400133d4:	40 00 2e 62 	call  4001ed5c <__divdi3>                      
400133d8:	92 10 00 1a 	mov  %i2, %o1                                  
  old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
400133dc:	90 10 00 11 	mov  %l1, %o0                                  
400133e0:	96 10 00 10 	mov  %l0, %o3                                  
                                                                      
  /*                                                                  
   *  Calculate the number of range of blocks to allocate             
   */                                                                 
                                                                      
  new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;             
400133e4:	a8 10 00 09 	mov  %o1, %l4                                  
  old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
400133e8:	94 10 00 12 	mov  %l2, %o2                                  
400133ec:	40 00 2e 5c 	call  4001ed5c <__divdi3>                      
400133f0:	92 10 00 13 	mov  %l3, %o1                                  
400133f4:	a2 10 00 09 	mov  %o1, %l1                                  
                                                                      
  /*                                                                  
   *  Now allocate each of those blocks.                              
   */                                                                 
                                                                      
  for ( block=old_blocks ; block<=new_blocks ; block++ ) {            
400133f8:	10 80 00 15 	b  4001344c <IMFS_memfile_extend+0x170>        
400133fc:	a0 10 00 09 	mov  %o1, %l0                                  
    if ( IMFS_memfile_addblock( the_jnode, block ) ) {                
40013400:	7f ff ff 8e 	call  40013238 <IMFS_memfile_addblock>         
40013404:	92 10 00 10 	mov  %l0, %o1                                  
40013408:	80 a2 20 00 	cmp  %o0, 0                                    
4001340c:	22 80 00 10 	be,a   4001344c <IMFS_memfile_extend+0x170>    <== ALWAYS TAKEN
40013410:	a0 04 20 01 	inc  %l0                                       
       for ( ; block>=old_blocks ; block-- ) {                        
40013414:	10 80 00 06 	b  4001342c <IMFS_memfile_extend+0x150>        <== NOT EXECUTED
40013418:	80 a4 00 11 	cmp  %l0, %l1                                  <== NOT EXECUTED
          IMFS_memfile_remove_block( the_jnode, block );              
4001341c:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
40013420:	7f ff fe d7 	call  40012f7c <IMFS_memfile_remove_block>     <== NOT EXECUTED
40013424:	a0 04 3f ff 	add  %l0, -1, %l0                              <== NOT EXECUTED
   *  Now allocate each of those blocks.                              
   */                                                                 
                                                                      
  for ( block=old_blocks ; block<=new_blocks ; block++ ) {            
    if ( IMFS_memfile_addblock( the_jnode, block ) ) {                
       for ( ; block>=old_blocks ; block-- ) {                        
40013428:	80 a4 00 11 	cmp  %l0, %l1                                  <== NOT EXECUTED
4001342c:	1a bf ff fc 	bcc  4001341c <IMFS_memfile_extend+0x140>      <== NOT EXECUTED
40013430:	92 10 00 10 	mov  %l0, %o1                                  <== NOT EXECUTED
          IMFS_memfile_remove_block( the_jnode, block );              
       }                                                              
       rtems_set_errno_and_return_minus_one( ENOSPC );                
40013434:	40 00 07 40 	call  40015134 <__errno>                       <== NOT EXECUTED
40013438:	01 00 00 00 	nop                                            <== NOT EXECUTED
4001343c:	82 10 20 1c 	mov  0x1c, %g1	! 1c <PROM_START+0x1c>          <== NOT EXECUTED
40013440:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
40013444:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40013448:	91 e8 3f ff 	restore  %g0, -1, %o0                          <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Now allocate each of those blocks.                              
   */                                                                 
                                                                      
  for ( block=old_blocks ; block<=new_blocks ; block++ ) {            
4001344c:	80 a4 00 14 	cmp  %l0, %l4                                  
40013450:	08 bf ff ec 	bleu  40013400 <IMFS_memfile_extend+0x124>     
40013454:	90 10 00 18 	mov  %i0, %o0                                  
                                                                      
  /*                                                                  
   *  Set the new length of the file.                                 
   */                                                                 
                                                                      
  the_jnode->info.file.size = new_length;                             
40013458:	f4 26 20 54 	st  %i2, [ %i0 + 0x54 ]                        
4001345c:	f2 26 20 50 	st  %i1, [ %i0 + 0x50 ]                        
  return 0;                                                           
}                                                                     
40013460:	81 c7 e0 08 	ret                                            
40013464:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

40012c4c <IMFS_memfile_get_block_pointer>: #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) {
40012c4c:	9d e3 bf a0 	save  %sp, -96, %sp                            
                                                                      
  /*                                                                  
   *  Perform internal consistency checks                             
   */                                                                 
                                                                      
  assert( the_jnode );                                                
40012c50:	80 a6 20 00 	cmp  %i0, 0                                    
40012c54:	32 80 00 0a 	bne,a   40012c7c <IMFS_memfile_get_block_pointer+0x30><== ALWAYS TAKEN
40012c58:	c2 06 20 4c 	ld  [ %i0 + 0x4c ], %g1                        
40012c5c:	11 10 00 89 	sethi  %hi(0x40022400), %o0                    <== NOT EXECUTED
40012c60:	15 10 00 8a 	sethi  %hi(0x40022800), %o2                    <== NOT EXECUTED
40012c64:	17 10 00 89 	sethi  %hi(0x40022400), %o3                    <== NOT EXECUTED
40012c68:	90 12 23 00 	or  %o0, 0x300, %o0                            <== NOT EXECUTED
40012c6c:	94 12 a0 30 	or  %o2, 0x30, %o2                             <== NOT EXECUTED
40012c70:	96 12 e3 48 	or  %o3, 0x348, %o3                            <== NOT EXECUTED
40012c74:	10 80 00 0c 	b  40012ca4 <IMFS_memfile_get_block_pointer+0x58><== NOT EXECUTED
40012c78:	92 10 23 88 	mov  0x388, %o1                                <== NOT EXECUTED
  if ( !the_jnode )                                                   
    return NULL;                                                      
                                                                      
  assert( the_jnode->type == IMFS_MEMORY_FILE );                      
40012c7c:	80 a0 60 05 	cmp  %g1, 5                                    
40012c80:	02 80 00 0b 	be  40012cac <IMFS_memfile_get_block_pointer+0x60><== ALWAYS TAKEN
40012c84:	03 10 00 8e 	sethi  %hi(0x40023800), %g1                    
40012c88:	11 10 00 89 	sethi  %hi(0x40022400), %o0                    <== NOT EXECUTED
40012c8c:	15 10 00 8a 	sethi  %hi(0x40022800), %o2                    <== NOT EXECUTED
40012c90:	17 10 00 89 	sethi  %hi(0x40022400), %o3                    <== NOT EXECUTED
40012c94:	90 12 23 00 	or  %o0, 0x300, %o0                            <== NOT EXECUTED
40012c98:	94 12 a0 30 	or  %o2, 0x30, %o2                             <== NOT EXECUTED
40012c9c:	96 12 e3 58 	or  %o3, 0x358, %o3                            <== NOT EXECUTED
40012ca0:	92 10 23 8c 	mov  0x38c, %o1                                <== NOT EXECUTED
40012ca4:	7f ff c6 14 	call  400044f4 <__assert_func>                 <== NOT EXECUTED
40012ca8:	01 00 00 00 	nop                                            <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
                                                                      
  if ( my_block <= LAST_INDIRECT ) {                                  
40012cac:	e0 00 60 d4 	ld  [ %g1 + 0xd4 ], %l0                        
40012cb0:	a1 34 20 02 	srl  %l0, 2, %l0                               
40012cb4:	82 04 3f ff 	add  %l0, -1, %g1                              
40012cb8:	80 a6 40 01 	cmp  %i1, %g1                                  
40012cbc:	18 80 00 16 	bgu  40012d14 <IMFS_memfile_get_block_pointer+0xc8><== NEVER TAKEN
40012cc0:	90 04 20 01 	add  %l0, 1, %o0                               
fprintf(stdout, "(s %d) ", block );                                   
fflush(stdout);                                                       
#endif                                                                
    p = info->indirect;                                               
                                                                      
    if ( malloc_it ) {                                                
40012cc4:	80 a6 a0 00 	cmp  %i2, 0                                    
40012cc8:	02 80 00 0f 	be  40012d04 <IMFS_memfile_get_block_pointer+0xb8>
40012ccc:	c2 06 20 58 	ld  [ %i0 + 0x58 ], %g1                        
                                                                      
      if ( !p ) {                                                     
40012cd0:	80 a0 60 00 	cmp  %g1, 0                                    
40012cd4:	32 80 00 09 	bne,a   40012cf8 <IMFS_memfile_get_block_pointer+0xac>
40012cd8:	f0 06 20 58 	ld  [ %i0 + 0x58 ], %i0                        
        p = memfile_alloc_block();                                    
40012cdc:	7f ff ff cf 	call  40012c18 <memfile_alloc_block>           
40012ce0:	01 00 00 00 	nop                                            
        if ( !p )                                                     
40012ce4:	80 a2 20 00 	cmp  %o0, 0                                    
40012ce8:	22 80 00 86 	be,a   40012f00 <IMFS_memfile_get_block_pointer+0x2b4><== NEVER TAKEN
40012cec:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
           return 0;                                                  
        info->indirect = p;                                           
40012cf0:	d0 26 20 58 	st  %o0, [ %i0 + 0x58 ]                        
      }                                                               
      return &info->indirect[ my_block ];                             
40012cf4:	f0 06 20 58 	ld  [ %i0 + 0x58 ], %i0                        
40012cf8:	b3 2e 60 02 	sll  %i1, 2, %i1                               
40012cfc:	81 c7 e0 08 	ret                                            
40012d00:	91 ee 00 19 	restore  %i0, %i1, %o0                         
    }                                                                 
                                                                      
    if ( !p )                                                         
      return 0;                                                       
                                                                      
    return &info->indirect[ my_block ];                               
40012d04:	b3 2e 60 02 	sll  %i1, 2, %i1                               
        info->indirect = p;                                           
      }                                                               
      return &info->indirect[ my_block ];                             
    }                                                                 
                                                                      
    if ( !p )                                                         
40012d08:	80 a0 60 00 	cmp  %g1, 0                                    
      return 0;                                                       
                                                                      
    return &info->indirect[ my_block ];                               
40012d0c:	10 80 00 32 	b  40012dd4 <IMFS_memfile_get_block_pointer+0x188>
40012d10:	b0 00 40 19 	add  %g1, %i1, %i0                             
                                                                      
  /*                                                                  
   *  Is the block number in the doubly indirect portion?             
   */                                                                 
                                                                      
  if ( my_block <= LAST_DOUBLY_INDIRECT ) {                           
40012d14:	40 00 2e 4d 	call  4001e648 <.umul>                         <== NOT EXECUTED
40012d18:	92 10 00 10 	mov  %l0, %o1                                  <== NOT EXECUTED
40012d1c:	82 02 3f ff 	add  %o0, -1, %g1                              <== NOT EXECUTED
40012d20:	80 a6 40 01 	cmp  %i1, %g1                                  <== NOT EXECUTED
40012d24:	18 80 00 30 	bgu  40012de4 <IMFS_memfile_get_block_pointer+0x198><== NOT EXECUTED
40012d28:	a2 10 00 08 	mov  %o0, %l1                                  <== NOT EXECUTED
#if 0                                                                 
fprintf(stdout, "(d %d) ", block );                                   
fflush(stdout);                                                       
#endif                                                                
                                                                      
    my_block -= FIRST_DOUBLY_INDIRECT;                                
40012d2c:	b2 26 40 10 	sub  %i1, %l0, %i1                             <== NOT EXECUTED
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
40012d30:	92 10 00 10 	mov  %l0, %o1                                  <== NOT EXECUTED
40012d34:	40 00 2f 2b 	call  4001e9e0 <.urem>                         <== NOT EXECUTED
40012d38:	90 10 00 19 	mov  %i1, %o0                                  <== NOT EXECUTED
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
40012d3c:	92 10 00 10 	mov  %l0, %o1                                  <== NOT EXECUTED
fflush(stdout);                                                       
#endif                                                                
                                                                      
    my_block -= FIRST_DOUBLY_INDIRECT;                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
40012d40:	a2 10 00 08 	mov  %o0, %l1                                  <== NOT EXECUTED
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
40012d44:	40 00 2e 7b 	call  4001e730 <.udiv>                         <== NOT EXECUTED
40012d48:	90 10 00 19 	mov  %i1, %o0                                  <== NOT EXECUTED
                                                                      
    p = info->doubly_indirect;                                        
    if ( malloc_it ) {                                                
40012d4c:	80 a6 a0 00 	cmp  %i2, 0                                    <== NOT EXECUTED
#endif                                                                
                                                                      
    my_block -= FIRST_DOUBLY_INDIRECT;                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
40012d50:	a0 10 00 08 	mov  %o0, %l0                                  <== NOT EXECUTED
                                                                      
    p = info->doubly_indirect;                                        
    if ( malloc_it ) {                                                
40012d54:	02 80 00 18 	be  40012db4 <IMFS_memfile_get_block_pointer+0x168><== NOT EXECUTED
40012d58:	c2 06 20 5c 	ld  [ %i0 + 0x5c ], %g1                        <== NOT EXECUTED
                                                                      
      if ( !p ) {                                                     
40012d5c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40012d60:	12 80 00 08 	bne  40012d80 <IMFS_memfile_get_block_pointer+0x134><== NOT EXECUTED
40012d64:	a1 2c 20 02 	sll  %l0, 2, %l0                               <== NOT EXECUTED
        p = memfile_alloc_block();                                    
40012d68:	7f ff ff ac 	call  40012c18 <memfile_alloc_block>           <== NOT EXECUTED
40012d6c:	01 00 00 00 	nop                                            <== NOT EXECUTED
        if ( !p )                                                     
40012d70:	82 92 20 00 	orcc  %o0, 0, %g1                              <== NOT EXECUTED
40012d74:	22 80 00 63 	be,a   40012f00 <IMFS_memfile_get_block_pointer+0x2b4><== NOT EXECUTED
40012d78:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
           return 0;                                                  
        info->doubly_indirect = p;                                    
40012d7c:	c2 26 20 5c 	st  %g1, [ %i0 + 0x5c ]                        <== NOT EXECUTED
      }                                                               
                                                                      
      p1 = (block_p *)p[ doubly ];                                    
40012d80:	d0 00 40 10 	ld  [ %g1 + %l0 ], %o0                         <== NOT EXECUTED
      if ( !p1 ) {                                                    
40012d84:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
40012d88:	12 80 00 08 	bne  40012da8 <IMFS_memfile_get_block_pointer+0x15c><== NOT EXECUTED
40012d8c:	a0 00 40 10 	add  %g1, %l0, %l0                             <== NOT EXECUTED
        p1 = memfile_alloc_block();                                   
40012d90:	7f ff ff a2 	call  40012c18 <memfile_alloc_block>           <== NOT EXECUTED
40012d94:	01 00 00 00 	nop                                            <== NOT EXECUTED
        if ( !p1 )                                                    
40012d98:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
40012d9c:	22 80 00 59 	be,a   40012f00 <IMFS_memfile_get_block_pointer+0x2b4><== NOT EXECUTED
40012da0:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
           return 0;                                                  
        p[ doubly ] = (block_p) p1;                                   
40012da4:	d0 24 00 00 	st  %o0, [ %l0 ]                               <== NOT EXECUTED
      }                                                               
                                                                      
      return (block_p *)&p1[ singly ];                                
40012da8:	a3 2c 60 02 	sll  %l1, 2, %l1                               <== NOT EXECUTED
40012dac:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40012db0:	91 ea 00 11 	restore  %o0, %l1, %o0                         <== NOT EXECUTED
    }                                                                 
                                                                      
    if ( !p )                                                         
40012db4:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40012db8:	02 80 00 52 	be  40012f00 <IMFS_memfile_get_block_pointer+0x2b4><== NOT EXECUTED
40012dbc:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
      return 0;                                                       
                                                                      
    p = (block_p *)p[ doubly ];                                       
40012dc0:	a1 2a 20 02 	sll  %o0, 2, %l0                               <== NOT EXECUTED
40012dc4:	c2 00 40 10 	ld  [ %g1 + %l0 ], %g1                         <== NOT EXECUTED
#if 0                                                                 
fprintf(stdout, "(d %d %d %d %d %p %p) ", block, my_block, doubly,    
                                       singly, p, &p[singly] );       
fflush(stdout);                                                       
#endif                                                                
    return (block_p *)&p[ singly ];                                   
40012dc8:	a3 2c 60 02 	sll  %l1, 2, %l1                               <== NOT EXECUTED
                                                                      
    if ( !p )                                                         
      return 0;                                                       
                                                                      
    p = (block_p *)p[ doubly ];                                       
    if ( !p )                                                         
40012dcc:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
#if 0                                                                 
fprintf(stdout, "(d %d %d %d %d %p %p) ", block, my_block, doubly,    
                                       singly, p, &p[singly] );       
fflush(stdout);                                                       
#endif                                                                
    return (block_p *)&p[ singly ];                                   
40012dd0:	b0 00 40 11 	add  %g1, %l1, %i0                             <== NOT EXECUTED
                                                                      
    if ( !p )                                                         
      return 0;                                                       
                                                                      
    p = (block_p *)p[ doubly ];                                       
    if ( !p )                                                         
40012dd4:	12 80 00 4b 	bne  40012f00 <IMFS_memfile_get_block_pointer+0x2b4><== ALWAYS TAKEN
40012dd8:	01 00 00 00 	nop                                            
                                                                      
    p2 = (block_p *)p1[ doubly ];                                     
    if ( !p )                                                         
      return 0;                                                       
                                                                      
    return (block_p *)&p2[ singly ];                                  
40012ddc:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40012de0:	91 e8 20 00 	restore  %g0, 0, %o0                           <== NOT EXECUTED
#endif                                                                
  /*                                                                  
   *  Is the block number in the triply indirect portion?             
   */                                                                 
                                                                      
  if ( my_block <= LAST_TRIPLY_INDIRECT ) {                           
40012de4:	90 02 20 01 	inc  %o0                                       <== NOT EXECUTED
40012de8:	40 00 2e 18 	call  4001e648 <.umul>                         <== NOT EXECUTED
40012dec:	92 10 00 10 	mov  %l0, %o1                                  <== NOT EXECUTED
40012df0:	90 02 3f ff 	add  %o0, -1, %o0                              <== NOT EXECUTED
40012df4:	80 a6 40 08 	cmp  %i1, %o0                                  <== NOT EXECUTED
40012df8:	18 80 00 41 	bgu  40012efc <IMFS_memfile_get_block_pointer+0x2b0><== NOT EXECUTED
40012dfc:	b2 26 40 11 	sub  %i1, %l1, %i1                             <== NOT EXECUTED
    my_block -= FIRST_TRIPLY_INDIRECT;                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
40012e00:	92 10 00 10 	mov  %l0, %o1                                  <== NOT EXECUTED
40012e04:	40 00 2e f7 	call  4001e9e0 <.urem>                         <== NOT EXECUTED
40012e08:	90 10 00 19 	mov  %i1, %o0                                  <== NOT EXECUTED
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
40012e0c:	92 10 00 10 	mov  %l0, %o1                                  <== NOT EXECUTED
   */                                                                 
                                                                      
  if ( my_block <= LAST_TRIPLY_INDIRECT ) {                           
    my_block -= FIRST_TRIPLY_INDIRECT;                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
40012e10:	a4 10 00 08 	mov  %o0, %l2                                  <== NOT EXECUTED
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
40012e14:	40 00 2e 47 	call  4001e730 <.udiv>                         <== NOT EXECUTED
40012e18:	90 10 00 19 	mov  %i1, %o0                                  <== NOT EXECUTED
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
40012e1c:	92 10 00 10 	mov  %l0, %o1                                  <== NOT EXECUTED
40012e20:	40 00 2e 44 	call  4001e730 <.udiv>                         <== NOT EXECUTED
40012e24:	b2 10 00 08 	mov  %o0, %i1                                  <== NOT EXECUTED
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
40012e28:	92 10 00 10 	mov  %l0, %o1                                  <== NOT EXECUTED
  if ( my_block <= LAST_TRIPLY_INDIRECT ) {                           
    my_block -= FIRST_TRIPLY_INDIRECT;                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
40012e2c:	a2 10 00 08 	mov  %o0, %l1                                  <== NOT EXECUTED
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
40012e30:	40 00 2e ec 	call  4001e9e0 <.urem>                         <== NOT EXECUTED
40012e34:	90 10 00 19 	mov  %i1, %o0                                  <== NOT EXECUTED
                                                                      
    p = info->triply_indirect;                                        
                                                                      
    if ( malloc_it ) {                                                
40012e38:	80 a6 a0 00 	cmp  %i2, 0                                    <== NOT EXECUTED
    my_block -= FIRST_TRIPLY_INDIRECT;                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
40012e3c:	a0 10 00 08 	mov  %o0, %l0                                  <== NOT EXECUTED
                                                                      
    p = info->triply_indirect;                                        
                                                                      
    if ( malloc_it ) {                                                
40012e40:	02 80 00 23 	be  40012ecc <IMFS_memfile_get_block_pointer+0x280><== NOT EXECUTED
40012e44:	c2 06 20 60 	ld  [ %i0 + 0x60 ], %g1                        <== NOT EXECUTED
      if ( !p ) {                                                     
40012e48:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40012e4c:	12 80 00 08 	bne  40012e6c <IMFS_memfile_get_block_pointer+0x220><== NOT EXECUTED
40012e50:	a3 2c 60 02 	sll  %l1, 2, %l1                               <== NOT EXECUTED
        p = memfile_alloc_block();                                    
40012e54:	7f ff ff 71 	call  40012c18 <memfile_alloc_block>           <== NOT EXECUTED
40012e58:	01 00 00 00 	nop                                            <== NOT EXECUTED
        if ( !p )                                                     
40012e5c:	82 92 20 00 	orcc  %o0, 0, %g1                              <== NOT EXECUTED
40012e60:	22 80 00 28 	be,a   40012f00 <IMFS_memfile_get_block_pointer+0x2b4><== NOT EXECUTED
40012e64:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
           return 0;                                                  
        info->triply_indirect = p;                                    
40012e68:	c2 26 20 60 	st  %g1, [ %i0 + 0x60 ]                        <== NOT EXECUTED
      }                                                               
                                                                      
      p1 = (block_p *) p[ triply ];                                   
40012e6c:	c4 00 40 11 	ld  [ %g1 + %l1 ], %g2                         <== NOT EXECUTED
      if ( !p1 ) {                                                    
40012e70:	80 a0 a0 00 	cmp  %g2, 0                                    <== NOT EXECUTED
40012e74:	12 80 00 08 	bne  40012e94 <IMFS_memfile_get_block_pointer+0x248><== NOT EXECUTED
40012e78:	a2 00 40 11 	add  %g1, %l1, %l1                             <== NOT EXECUTED
        p1 = memfile_alloc_block();                                   
40012e7c:	7f ff ff 67 	call  40012c18 <memfile_alloc_block>           <== NOT EXECUTED
40012e80:	01 00 00 00 	nop                                            <== NOT EXECUTED
        if ( !p1 )                                                    
40012e84:	84 92 20 00 	orcc  %o0, 0, %g2                              <== NOT EXECUTED
40012e88:	02 80 00 1e 	be  40012f00 <IMFS_memfile_get_block_pointer+0x2b4><== NOT EXECUTED
40012e8c:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
           return 0;                                                  
        p[ triply ] = (block_p) p1;                                   
40012e90:	c4 24 40 00 	st  %g2, [ %l1 ]                               <== NOT EXECUTED
      }                                                               
                                                                      
      p2 = (block_p *)p1[ doubly ];                                   
40012e94:	a1 2c 20 02 	sll  %l0, 2, %l0                               <== NOT EXECUTED
40012e98:	d0 00 80 10 	ld  [ %g2 + %l0 ], %o0                         <== NOT EXECUTED
      if ( !p2 ) {                                                    
40012e9c:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
40012ea0:	12 80 00 08 	bne  40012ec0 <IMFS_memfile_get_block_pointer+0x274><== NOT EXECUTED
40012ea4:	a0 00 80 10 	add  %g2, %l0, %l0                             <== NOT EXECUTED
        p2 = memfile_alloc_block();                                   
40012ea8:	7f ff ff 5c 	call  40012c18 <memfile_alloc_block>           <== NOT EXECUTED
40012eac:	01 00 00 00 	nop                                            <== NOT EXECUTED
        if ( !p2 )                                                    
40012eb0:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
40012eb4:	22 80 00 13 	be,a   40012f00 <IMFS_memfile_get_block_pointer+0x2b4><== NOT EXECUTED
40012eb8:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
           return 0;                                                  
        p1[ doubly ] = (block_p) p2;                                  
40012ebc:	d0 24 00 00 	st  %o0, [ %l0 ]                               <== NOT EXECUTED
      }                                                               
      return (block_p *)&p2[ singly ];                                
40012ec0:	a5 2c a0 02 	sll  %l2, 2, %l2                               <== NOT EXECUTED
40012ec4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40012ec8:	91 ea 00 12 	restore  %o0, %l2, %o0                         <== NOT EXECUTED
    }                                                                 
                                                                      
    if ( !p )                                                         
40012ecc:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40012ed0:	02 80 00 0c 	be  40012f00 <IMFS_memfile_get_block_pointer+0x2b4><== NOT EXECUTED
40012ed4:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
                                                                      
#if 0                                                                 
fprintf(stdout, "(t %d %d %d %d %d) ", block, my_block, triply, doubly, singly );
fflush(stdout);                                                       
#endif                                                                
    p1 = (block_p *) p[ triply ];                                     
40012ed8:	a3 2c 60 02 	sll  %l1, 2, %l1                               <== NOT EXECUTED
40012edc:	c2 00 40 11 	ld  [ %g1 + %l1 ], %g1                         <== NOT EXECUTED
    if ( !p1 )                                                        
40012ee0:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40012ee4:	02 80 00 07 	be  40012f00 <IMFS_memfile_get_block_pointer+0x2b4><== NOT EXECUTED
40012ee8:	a1 2a 20 02 	sll  %o0, 2, %l0                               <== NOT EXECUTED
                                                                      
    p2 = (block_p *)p1[ doubly ];                                     
    if ( !p )                                                         
      return 0;                                                       
                                                                      
    return (block_p *)&p2[ singly ];                                  
40012eec:	f0 00 40 10 	ld  [ %g1 + %l0 ], %i0                         <== NOT EXECUTED
40012ef0:	a5 2c a0 02 	sll  %l2, 2, %l2                               <== NOT EXECUTED
40012ef4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40012ef8:	91 ee 00 12 	restore  %i0, %l2, %o0                         <== NOT EXECUTED
40012efc:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
                                                                      
  return 0;                                                           
}                                                                     
40012f00:	81 c7 e0 08 	ret                                            
40012f04:	81 e8 00 00 	restore                                        
                                                                      

400138e8 <IMFS_memfile_read>: IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) {
400138e8:	9d e3 bf 98 	save  %sp, -104, %sp                           
                                                                      
  /*                                                                  
   *  Perform internal consistency checks                             
   */                                                                 
                                                                      
  assert( the_jnode );                                                
400138ec:	a0 96 20 00 	orcc  %i0, 0, %l0                              
   IMFS_jnode_t    *the_jnode,                                        
   off_t            start,                                            
   unsigned char   *destination,                                      
   unsigned int     length                                            
)                                                                     
{                                                                     
400138f0:	a4 10 00 19 	mov  %i1, %l2                                  
                                                                      
  /*                                                                  
   *  Perform internal consistency checks                             
   */                                                                 
                                                                      
  assert( the_jnode );                                                
400138f4:	12 80 00 0a 	bne  4001391c <IMFS_memfile_read+0x34>         <== ALWAYS TAKEN
400138f8:	a6 10 00 1a 	mov  %i2, %l3                                  
400138fc:	11 10 00 89 	sethi  %hi(0x40022400), %o0                    <== NOT EXECUTED
40013900:	15 10 00 8a 	sethi  %hi(0x40022800), %o2                    <== NOT EXECUTED
40013904:	17 10 00 89 	sethi  %hi(0x40022400), %o3                    <== NOT EXECUTED
40013908:	90 12 23 00 	or  %o0, 0x300, %o0                            <== NOT EXECUTED
4001390c:	94 12 a0 68 	or  %o2, 0x68, %o2                             <== NOT EXECUTED
40013910:	96 12 e3 48 	or  %o3, 0x348, %o3                            <== NOT EXECUTED
40013914:	10 80 00 0e 	b  4001394c <IMFS_memfile_read+0x64>           <== NOT EXECUTED
40013918:	92 10 22 4c 	mov  0x24c, %o1                                <== NOT EXECUTED
  if ( !the_jnode )                                                   
    rtems_set_errno_and_return_minus_one( EIO );                      
                                                                      
  assert( the_jnode->type == IMFS_MEMORY_FILE ||                      
4001391c:	c2 04 20 4c 	ld  [ %l0 + 0x4c ], %g1                        
40013920:	84 00 7f fb 	add  %g1, -5, %g2                              
40013924:	80 a0 a0 01 	cmp  %g2, 1                                    
40013928:	08 80 00 0b 	bleu  40013954 <IMFS_memfile_read+0x6c>        <== ALWAYS TAKEN
4001392c:	80 a6 e0 00 	cmp  %i3, 0                                    
40013930:	11 10 00 89 	sethi  %hi(0x40022400), %o0                    <== NOT EXECUTED
40013934:	15 10 00 8a 	sethi  %hi(0x40022800), %o2                    <== NOT EXECUTED
40013938:	17 10 00 89 	sethi  %hi(0x40022400), %o3                    <== NOT EXECUTED
4001393c:	90 12 23 00 	or  %o0, 0x300, %o0                            <== NOT EXECUTED
40013940:	94 12 a0 68 	or  %o2, 0x68, %o2                             <== NOT EXECUTED
40013944:	96 12 e3 d8 	or  %o3, 0x3d8, %o3                            <== NOT EXECUTED
40013948:	92 10 22 51 	mov  0x251, %o1                                <== NOT EXECUTED
4001394c:	7f ff c2 ea 	call  400044f4 <__assert_func>                 <== NOT EXECUTED
40013950:	01 00 00 00 	nop                                            <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Error checks on arguments                                       
   */                                                                 
                                                                      
  assert( dest );                                                     
40013954:	32 80 00 0a 	bne,a   4001397c <IMFS_memfile_read+0x94>      <== ALWAYS TAKEN
40013958:	80 a7 20 00 	cmp  %i4, 0                                    
4001395c:	11 10 00 89 	sethi  %hi(0x40022400), %o0                    <== NOT EXECUTED
40013960:	15 10 00 8a 	sethi  %hi(0x40022800), %o2                    <== NOT EXECUTED
40013964:	17 10 00 8a 	sethi  %hi(0x40022800), %o3                    <== NOT EXECUTED
40013968:	90 12 23 00 	or  %o0, 0x300, %o0                            <== NOT EXECUTED
4001396c:	94 12 a0 68 	or  %o2, 0x68, %o2                             <== NOT EXECUTED
40013970:	96 12 e0 28 	or  %o3, 0x28, %o3                             <== NOT EXECUTED
40013974:	10 bf ff f6 	b  4001394c <IMFS_memfile_read+0x64>           <== NOT EXECUTED
40013978:	92 10 22 5a 	mov  0x25a, %o1                                <== NOT EXECUTED
  /*                                                                  
   *  If there is nothing to read, then quick exit.                   
   */                                                                 
                                                                      
  my_length = length;                                                 
  if ( !my_length )                                                   
4001397c:	12 80 00 08 	bne  4001399c <IMFS_memfile_read+0xb4>         <== ALWAYS TAKEN
40013980:	80 a0 60 06 	cmp  %g1, 6                                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
40013984:	40 00 05 ec 	call  40015134 <__errno>                       <== NOT EXECUTED
40013988:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
4001398c:	82 10 20 16 	mov  0x16, %g1                                 <== NOT EXECUTED
40013990:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
40013994:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40013998:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Linear files (as created from a tar file are easier to handle   
   *  than block files).                                              
   */                                                                 
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
4001399c:	32 80 00 1c 	bne,a   40013a0c <IMFS_memfile_read+0x124>     <== ALWAYS TAKEN
400139a0:	c6 04 20 50 	ld  [ %l0 + 0x50 ], %g3                        
    unsigned char  *file_ptr;                                         
                                                                      
    file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;    
                                                                      
    if (my_length > (the_jnode->info.linearfile.size - start))        
400139a4:	d8 1c 20 50 	ldd  [ %l0 + 0x50 ], %o4                       <== NOT EXECUTED
400139a8:	82 10 20 00 	clr  %g1                                       <== NOT EXECUTED
400139ac:	86 a3 40 1a 	subcc  %o5, %i2, %g3                           <== NOT EXECUTED
400139b0:	84 63 00 19 	subx  %o4, %i1, %g2                            <== NOT EXECUTED
400139b4:	80 a0 40 02 	cmp  %g1, %g2                                  <== NOT EXECUTED
400139b8:	14 80 00 09 	bg  400139dc <IMFS_memfile_read+0xf4>          <== NOT EXECUTED
400139bc:	d2 04 20 58 	ld  [ %l0 + 0x58 ], %o1                        <== NOT EXECUTED
400139c0:	80 a0 40 02 	cmp  %g1, %g2                                  <== NOT EXECUTED
400139c4:	12 80 00 04 	bne  400139d4 <IMFS_memfile_read+0xec>         <== NOT EXECUTED
400139c8:	80 a7 00 03 	cmp  %i4, %g3                                  <== NOT EXECUTED
400139cc:	38 80 00 05 	bgu,a   400139e0 <IMFS_memfile_read+0xf8>      <== NOT EXECUTED
400139d0:	b0 23 40 13 	sub  %o5, %l3, %i0                             <== NOT EXECUTED
400139d4:	10 80 00 03 	b  400139e0 <IMFS_memfile_read+0xf8>           <== NOT EXECUTED
400139d8:	b0 10 00 1c 	mov  %i4, %i0                                  <== NOT EXECUTED
      my_length = the_jnode->info.linearfile.size - start;            
400139dc:	b0 23 40 13 	sub  %o5, %l3, %i0                             <== NOT EXECUTED
                                                                      
    memcpy(dest, &file_ptr[start], my_length);                        
400139e0:	92 02 40 13 	add  %o1, %l3, %o1                             <== NOT EXECUTED
400139e4:	94 10 00 18 	mov  %i0, %o2                                  <== NOT EXECUTED
400139e8:	40 00 08 0f 	call  40015a24 <memcpy>                        <== NOT EXECUTED
400139ec:	90 10 00 1b 	mov  %i3, %o0                                  <== NOT EXECUTED
                                                                      
    IMFS_update_atime( the_jnode );                                   
400139f0:	90 07 bf f8 	add  %fp, -8, %o0                              <== NOT EXECUTED
400139f4:	7f ff c3 e0 	call  40004974 <gettimeofday>                  <== NOT EXECUTED
400139f8:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
400139fc:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          <== NOT EXECUTED
40013a00:	c2 24 20 40 	st  %g1, [ %l0 + 0x40 ]                        <== NOT EXECUTED
                                                                      
    return my_length;                                                 
40013a04:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40013a08:	81 e8 00 00 	restore                                        <== NOT EXECUTED
   *  If the last byte we are supposed to read is past the end of this
   *  in memory file, then shorten the length to read.                
   */                                                                 
                                                                      
  last_byte = start + length;                                         
  if ( last_byte > the_jnode->info.file.size )                        
40013a0c:	88 10 20 00 	clr  %g4                                       
  /*                                                                  
   *  If the last byte we are supposed to read is past the end of this
   *  in memory file, then shorten the length to read.                
   */                                                                 
                                                                      
  last_byte = start + length;                                         
40013a10:	82 10 00 1a 	mov  %i2, %g1                                  
  if ( last_byte > the_jnode->info.file.size )                        
40013a14:	80 a1 00 03 	cmp  %g4, %g3                                  
40013a18:	c4 04 20 54 	ld  [ %l0 + 0x54 ], %g2                        
40013a1c:	14 80 00 08 	bg  40013a3c <IMFS_memfile_read+0x154>         <== NEVER TAKEN
40013a20:	9a 07 00 1a 	add  %i4, %i2, %o5                             
40013a24:	80 a1 00 03 	cmp  %g4, %g3                                  
40013a28:	32 80 00 07 	bne,a   40013a44 <IMFS_memfile_read+0x15c>     <== NEVER TAKEN
40013a2c:	03 10 00 8e 	sethi  %hi(0x40023800), %g1                    <== NOT EXECUTED
40013a30:	80 a3 40 02 	cmp  %o5, %g2                                  
40013a34:	28 80 00 04 	bleu,a   40013a44 <IMFS_memfile_read+0x15c>    
40013a38:	03 10 00 8e 	sethi  %hi(0x40023800), %g1                    
    my_length = the_jnode->info.file.size - start;                    
40013a3c:	b8 20 80 01 	sub  %g2, %g1, %i4                             
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
                                                                      
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
40013a40:	03 10 00 8e 	sethi  %hi(0x40023800), %g1                    
40013a44:	e2 00 60 d4 	ld  [ %g1 + 0xd4 ], %l1	! 400238d4 <imfs_memfile_bytes_per_block>
40013a48:	90 10 00 12 	mov  %l2, %o0                                  
40013a4c:	ab 3c 60 1f 	sra  %l1, 0x1f, %l5                            
40013a50:	96 10 00 11 	mov  %l1, %o3                                  
40013a54:	94 10 00 15 	mov  %l5, %o2                                  
40013a58:	40 00 2d a8 	call  4001f0f8 <__moddi3>                      
40013a5c:	92 10 00 13 	mov  %l3, %o1                                  
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
40013a60:	90 10 00 12 	mov  %l2, %o0                                  
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
                                                                      
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
40013a64:	a8 10 00 09 	mov  %o1, %l4                                  
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
40013a68:	94 10 00 15 	mov  %l5, %o2                                  
40013a6c:	92 10 00 13 	mov  %l3, %o1                                  
40013a70:	40 00 2c bb 	call  4001ed5c <__divdi3>                      
40013a74:	96 10 00 11 	mov  %l1, %o3                                  
  if ( start_offset )  {                                              
40013a78:	80 a5 20 00 	cmp  %l4, 0                                    
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
                                                                      
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
40013a7c:	a4 10 00 09 	mov  %o1, %l2                                  
  if ( start_offset )  {                                              
40013a80:	aa 10 00 1b 	mov  %i3, %l5                                  
40013a84:	02 80 00 1c 	be  40013af4 <IMFS_memfile_read+0x20c>         
40013a88:	b0 10 20 00 	clr  %i0                                       
    to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;            
    if ( to_copy > my_length )                                        
      to_copy = my_length;                                            
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
40013a8c:	90 10 00 10 	mov  %l0, %o0                                  
40013a90:	7f ff fc 6f 	call  40012c4c <IMFS_memfile_get_block_pointer>
40013a94:	94 10 20 00 	clr  %o2                                       
    assert( block_ptr );                                              
40013a98:	80 a2 20 00 	cmp  %o0, 0                                    
40013a9c:	32 80 00 0a 	bne,a   40013ac4 <IMFS_memfile_read+0x1dc>     <== ALWAYS TAKEN
40013aa0:	a2 24 40 14 	sub  %l1, %l4, %l1                             
40013aa4:	11 10 00 89 	sethi  %hi(0x40022400), %o0                    <== NOT EXECUTED
40013aa8:	15 10 00 8a 	sethi  %hi(0x40022800), %o2                    <== NOT EXECUTED
40013aac:	17 10 00 89 	sethi  %hi(0x40022400), %o3                    <== NOT EXECUTED
40013ab0:	90 12 23 00 	or  %o0, 0x300, %o0                            <== NOT EXECUTED
40013ab4:	94 12 a0 68 	or  %o2, 0x68, %o2                             <== NOT EXECUTED
40013ab8:	96 12 e3 90 	or  %o3, 0x390, %o3                            <== NOT EXECUTED
40013abc:	10 bf ff a4 	b  4001394c <IMFS_memfile_read+0x64>           <== NOT EXECUTED
40013ac0:	92 10 22 96 	mov  0x296, %o1                                <== NOT EXECUTED
   */                                                                 
                                                                      
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
  if ( start_offset )  {                                              
    to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;            
40013ac4:	80 a7 00 11 	cmp  %i4, %l1                                  
40013ac8:	08 80 00 03 	bleu  40013ad4 <IMFS_memfile_read+0x1ec>       
40013acc:	94 10 00 1c 	mov  %i4, %o2                                  
40013ad0:	94 10 00 11 	mov  %l1, %o2                                  
      to_copy = my_length;                                            
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    assert( block_ptr );                                              
    if ( !block_ptr )                                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ start_offset ], to_copy );           
40013ad4:	d2 02 00 00 	ld  [ %o0 ], %o1                               
    dest += to_copy;                                                  
40013ad8:	aa 06 c0 0a 	add  %i3, %o2, %l5                             
      to_copy = my_length;                                            
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    assert( block_ptr );                                              
    if ( !block_ptr )                                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ start_offset ], to_copy );           
40013adc:	92 02 40 14 	add  %o1, %l4, %o1                             
    dest += to_copy;                                                  
    block++;                                                          
40013ae0:	a4 04 a0 01 	inc  %l2                                       
    my_length -= to_copy;                                             
40013ae4:	b8 27 00 0a 	sub  %i4, %o2, %i4                             
40013ae8:	b0 10 00 0a 	mov  %o2, %i0                                  
      to_copy = my_length;                                            
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    assert( block_ptr );                                              
    if ( !block_ptr )                                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ start_offset ], to_copy );           
40013aec:	40 00 07 ce 	call  40015a24 <memcpy>                        
40013af0:	90 10 00 1b 	mov  %i3, %o0                                  
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
                                                                      
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
40013af4:	03 10 00 8e 	sethi  %hi(0x40023800), %g1                    
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
40013af8:	a8 10 60 d4 	or  %g1, 0xd4, %l4	! 400238d4 <imfs_memfile_bytes_per_block>
40013afc:	10 80 00 17 	b  40013b58 <IMFS_memfile_read+0x270>          
40013b00:	e2 00 60 d4 	ld  [ %g1 + 0xd4 ], %l1                        
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
40013b04:	92 10 00 12 	mov  %l2, %o1                                  
40013b08:	7f ff fc 51 	call  40012c4c <IMFS_memfile_get_block_pointer>
40013b0c:	94 10 20 00 	clr  %o2                                       
    assert( block_ptr );                                              
40013b10:	80 a2 20 00 	cmp  %o0, 0                                    
40013b14:	32 80 00 0a 	bne,a   40013b3c <IMFS_memfile_read+0x254>     <== ALWAYS TAKEN
40013b18:	d2 02 00 00 	ld  [ %o0 ], %o1                               
40013b1c:	11 10 00 89 	sethi  %hi(0x40022400), %o0                    <== NOT EXECUTED
40013b20:	15 10 00 8a 	sethi  %hi(0x40022800), %o2                    <== NOT EXECUTED
40013b24:	17 10 00 89 	sethi  %hi(0x40022400), %o3                    <== NOT EXECUTED
40013b28:	90 12 23 00 	or  %o0, 0x300, %o0                            <== NOT EXECUTED
40013b2c:	94 12 a0 68 	or  %o2, 0x68, %o2                             <== NOT EXECUTED
40013b30:	96 12 e3 90 	or  %o3, 0x390, %o3                            <== NOT EXECUTED
40013b34:	10 bf ff 86 	b  4001394c <IMFS_memfile_read+0x64>           <== NOT EXECUTED
40013b38:	92 10 22 a7 	mov  0x2a7, %o1                                <== NOT EXECUTED
    if ( !block_ptr )                                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], to_copy );                      
    dest += to_copy;                                                  
    block++;                                                          
40013b3c:	a4 04 a0 01 	inc  %l2                                       
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    assert( block_ptr );                                              
    if ( !block_ptr )                                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], to_copy );                      
40013b40:	90 10 00 15 	mov  %l5, %o0                                  
    dest += to_copy;                                                  
    block++;                                                          
    my_length -= to_copy;                                             
40013b44:	b8 27 00 11 	sub  %i4, %l1, %i4                             
    copied += to_copy;                                                
40013b48:	b0 06 00 11 	add  %i0, %l1, %i0                             
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    assert( block_ptr );                                              
    if ( !block_ptr )                                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], to_copy );                      
    dest += to_copy;                                                  
40013b4c:	aa 05 40 11 	add  %l5, %l1, %l5                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    assert( block_ptr );                                              
    if ( !block_ptr )                                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], to_copy );                      
40013b50:	40 00 07 b5 	call  40015a24 <memcpy>                        
40013b54:	94 10 00 11 	mov  %l1, %o2                                  
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
                                                                      
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
40013b58:	c2 05 00 00 	ld  [ %l4 ], %g1                               
40013b5c:	80 a7 00 01 	cmp  %i4, %g1                                  
40013b60:	1a bf ff e9 	bcc  40013b04 <IMFS_memfile_read+0x21c>        
40013b64:	90 10 00 10 	mov  %l0, %o0                                  
   *  Phase 3: possibly the first part of one block                   
   */                                                                 
                                                                      
  assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );                 
                                                                      
  if ( my_length ) {                                                  
40013b68:	80 a7 20 00 	cmp  %i4, 0                                    
40013b6c:	02 80 00 16 	be  40013bc4 <IMFS_memfile_read+0x2dc>         
40013b70:	90 07 bf f8 	add  %fp, -8, %o0                              
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
40013b74:	92 10 00 12 	mov  %l2, %o1                                  
40013b78:	90 10 00 10 	mov  %l0, %o0                                  
40013b7c:	7f ff fc 34 	call  40012c4c <IMFS_memfile_get_block_pointer>
40013b80:	94 10 20 00 	clr  %o2                                       
    assert( block_ptr );                                              
40013b84:	80 a2 20 00 	cmp  %o0, 0                                    
40013b88:	32 80 00 0a 	bne,a   40013bb0 <IMFS_memfile_read+0x2c8>     <== ALWAYS TAKEN
40013b8c:	d2 02 00 00 	ld  [ %o0 ], %o1                               
40013b90:	11 10 00 89 	sethi  %hi(0x40022400), %o0                    <== NOT EXECUTED
40013b94:	15 10 00 8a 	sethi  %hi(0x40022800), %o2                    <== NOT EXECUTED
40013b98:	17 10 00 89 	sethi  %hi(0x40022400), %o3                    <== NOT EXECUTED
40013b9c:	90 12 23 00 	or  %o0, 0x300, %o0                            <== NOT EXECUTED
40013ba0:	94 12 a0 68 	or  %o2, 0x68, %o2                             <== NOT EXECUTED
40013ba4:	96 12 e3 90 	or  %o3, 0x390, %o3                            <== NOT EXECUTED
40013ba8:	10 bf ff 69 	b  4001394c <IMFS_memfile_read+0x64>           <== NOT EXECUTED
40013bac:	92 10 22 b9 	mov  0x2b9, %o1                                <== NOT EXECUTED
    if ( !block_ptr )                                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], my_length );                    
    copied += my_length;                                              
40013bb0:	b0 07 00 18 	add  %i4, %i0, %i0                             
  if ( my_length ) {                                                  
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    assert( block_ptr );                                              
    if ( !block_ptr )                                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], my_length );                    
40013bb4:	90 10 00 15 	mov  %l5, %o0                                  
40013bb8:	40 00 07 9b 	call  40015a24 <memcpy>                        
40013bbc:	94 10 00 1c 	mov  %i4, %o2                                  
    copied += my_length;                                              
  }                                                                   
                                                                      
  IMFS_update_atime( the_jnode );                                     
40013bc0:	90 07 bf f8 	add  %fp, -8, %o0                              
40013bc4:	7f ff c3 6c 	call  40004974 <gettimeofday>                  
40013bc8:	92 10 20 00 	clr  %o1                                       
40013bcc:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
40013bd0:	c2 24 20 40 	st  %g1, [ %l0 + 0x40 ]                        
                                                                      
  return copied;                                                      
}                                                                     
40013bd4:	81 c7 e0 08 	ret                                            
40013bd8:	81 e8 00 00 	restore                                        
                                                                      

40012fd0 <IMFS_memfile_remove>: */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) {
40012fd0:	9d e3 bf a0 	save  %sp, -96, %sp                            
                                                                      
  /*                                                                  
   *  Perform internal consistency checks                             
   */                                                                 
                                                                      
  assert( the_jnode );                                                
40012fd4:	80 a6 20 00 	cmp  %i0, 0                                    
40012fd8:	32 80 00 0a 	bne,a   40013000 <IMFS_memfile_remove+0x30>    <== ALWAYS TAKEN
40012fdc:	c2 06 20 4c 	ld  [ %i0 + 0x4c ], %g1                        
40012fe0:	11 10 00 89 	sethi  %hi(0x40022400), %o0                    <== NOT EXECUTED
40012fe4:	15 10 00 8a 	sethi  %hi(0x40022800), %o2                    <== NOT EXECUTED
40012fe8:	17 10 00 89 	sethi  %hi(0x40022400), %o3                    <== NOT EXECUTED
40012fec:	90 12 23 00 	or  %o0, 0x300, %o0                            <== NOT EXECUTED
40012ff0:	94 12 a0 80 	or  %o2, 0x80, %o2                             <== NOT EXECUTED
40012ff4:	96 12 e3 48 	or  %o3, 0x348, %o3                            <== NOT EXECUTED
40012ff8:	10 80 00 0c 	b  40013028 <IMFS_memfile_remove+0x58>         <== NOT EXECUTED
40012ffc:	92 10 21 ee 	mov  0x1ee, %o1                                <== NOT EXECUTED
  if ( !the_jnode )                                                   
    rtems_set_errno_and_return_minus_one( EIO );                      
                                                                      
  assert( the_jnode->type == IMFS_MEMORY_FILE );                      
40013000:	80 a0 60 05 	cmp  %g1, 5                                    
40013004:	02 80 00 0b 	be  40013030 <IMFS_memfile_remove+0x60>        <== ALWAYS TAKEN
40013008:	03 10 00 8e 	sethi  %hi(0x40023800), %g1                    
4001300c:	11 10 00 89 	sethi  %hi(0x40022400), %o0                    <== NOT EXECUTED
40013010:	15 10 00 8a 	sethi  %hi(0x40022800), %o2                    <== NOT EXECUTED
40013014:	17 10 00 89 	sethi  %hi(0x40022400), %o3                    <== NOT EXECUTED
40013018:	90 12 23 00 	or  %o0, 0x300, %o0                            <== NOT EXECUTED
4001301c:	94 12 a0 80 	or  %o2, 0x80, %o2                             <== NOT EXECUTED
40013020:	96 12 e3 58 	or  %o3, 0x358, %o3                            <== NOT EXECUTED
40013024:	92 10 21 f2 	mov  0x1f2, %o1                                <== NOT EXECUTED
40013028:	7f ff c5 33 	call  400044f4 <__assert_func>                 <== NOT EXECUTED
4001302c:	01 00 00 00 	nop                                            <== NOT EXECUTED
  /*                                                                  
   *  Eventually this could be set smarter at each call to            
   *  memfile_free_blocks_in_table to greatly speed this up.          
   */                                                                 
                                                                      
  to_free = IMFS_MEMFILE_BLOCK_SLOTS;                                 
40013030:	e0 00 60 d4 	ld  [ %g1 + 0xd4 ], %l0                        
   *    + indirect                                                    
   *    + doubly indirect                                             
   *    + triply indirect                                             
   */                                                                 
                                                                      
  info = &the_jnode->info.file;                                       
40013034:	c2 06 20 58 	ld  [ %i0 + 0x58 ], %g1                        
40013038:	80 a0 60 00 	cmp  %g1, 0                                    
4001303c:	02 80 00 05 	be  40013050 <IMFS_memfile_remove+0x80>        
40013040:	a1 34 20 02 	srl  %l0, 2, %l0                               
                                                                      
  if ( info->indirect ) {                                             
    memfile_free_blocks_in_table( &info->indirect, to_free );         
40013044:	90 06 20 58 	add  %i0, 0x58, %o0                            
40013048:	7f ff ff b0 	call  40012f08 <memfile_free_blocks_in_table>  
4001304c:	92 10 00 10 	mov  %l0, %o1                                  
   *    + indirect                                                    
   *    + doubly indirect                                             
   *    + triply indirect                                             
   */                                                                 
                                                                      
  info = &the_jnode->info.file;                                       
40013050:	c2 06 20 5c 	ld  [ %i0 + 0x5c ], %g1                        
40013054:	80 a0 60 00 	cmp  %g1, 0                                    
40013058:	22 80 00 17 	be,a   400130b4 <IMFS_memfile_remove+0xe4>     <== ALWAYS TAKEN
4001305c:	c2 06 20 60 	ld  [ %i0 + 0x60 ], %g1                        
    memfile_free_blocks_in_table( &info->indirect, to_free );         
  }                                                                   
                                                                      
  if ( info->doubly_indirect ) {                                      
                                                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
40013060:	25 10 00 8e 	sethi  %hi(0x40023800), %l2                    <== NOT EXECUTED
   *    + indirect                                                    
   *    + doubly indirect                                             
   *    + triply indirect                                             
   */                                                                 
                                                                      
  info = &the_jnode->info.file;                                       
40013064:	a2 10 20 00 	clr  %l1                                       <== NOT EXECUTED
    memfile_free_blocks_in_table( &info->indirect, to_free );         
  }                                                                   
                                                                      
  if ( info->doubly_indirect ) {                                      
                                                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
40013068:	10 80 00 0a 	b  40013090 <IMFS_memfile_remove+0xc0>         <== NOT EXECUTED
4001306c:	a4 14 a0 d4 	or  %l2, 0xd4, %l2                             <== NOT EXECUTED
      if ( info->doubly_indirect[i] ) {                               
40013070:	83 2c 60 02 	sll  %l1, 2, %g1                               <== NOT EXECUTED
40013074:	c4 02 00 01 	ld  [ %o0 + %g1 ], %g2                         <== NOT EXECUTED
40013078:	80 a0 a0 00 	cmp  %g2, 0                                    <== NOT EXECUTED
4001307c:	02 80 00 04 	be  4001308c <IMFS_memfile_remove+0xbc>        <== NOT EXECUTED
40013080:	90 02 00 01 	add  %o0, %g1, %o0                             <== NOT EXECUTED
        memfile_free_blocks_in_table(                                 
40013084:	7f ff ff a1 	call  40012f08 <memfile_free_blocks_in_table>  <== NOT EXECUTED
40013088:	92 10 00 10 	mov  %l0, %o1                                  <== NOT EXECUTED
    memfile_free_blocks_in_table( &info->indirect, to_free );         
  }                                                                   
                                                                      
  if ( info->doubly_indirect ) {                                      
                                                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
4001308c:	a2 04 60 01 	inc  %l1                                       <== NOT EXECUTED
40013090:	c2 04 80 00 	ld  [ %l2 ], %g1                               <== NOT EXECUTED
40013094:	83 30 60 02 	srl  %g1, 2, %g1                               <== NOT EXECUTED
40013098:	80 a4 40 01 	cmp  %l1, %g1                                  <== NOT EXECUTED
4001309c:	2a bf ff f5 	bcs,a   40013070 <IMFS_memfile_remove+0xa0>    <== NOT EXECUTED
400130a0:	d0 06 20 5c 	ld  [ %i0 + 0x5c ], %o0                        <== NOT EXECUTED
      if ( info->doubly_indirect[i] ) {                               
        memfile_free_blocks_in_table(                                 
         (block_p **)&info->doubly_indirect[i], to_free );            
      }                                                               
    }                                                                 
    memfile_free_blocks_in_table( &info->doubly_indirect, to_free );  
400130a4:	90 06 20 5c 	add  %i0, 0x5c, %o0                            <== NOT EXECUTED
400130a8:	7f ff ff 98 	call  40012f08 <memfile_free_blocks_in_table>  <== NOT EXECUTED
400130ac:	92 10 00 10 	mov  %l0, %o1                                  <== NOT EXECUTED
   *    + indirect                                                    
   *    + doubly indirect                                             
   *    + triply indirect                                             
   */                                                                 
                                                                      
  info = &the_jnode->info.file;                                       
400130b0:	c2 06 20 60 	ld  [ %i0 + 0x60 ], %g1                        <== NOT EXECUTED
400130b4:	80 a0 60 00 	cmp  %g1, 0                                    
400130b8:	02 80 00 25 	be  4001314c <IMFS_memfile_remove+0x17c>       <== ALWAYS TAKEN
400130bc:	29 10 00 8e 	sethi  %hi(0x40023800), %l4                    
400130c0:	a2 10 20 00 	clr  %l1                                       <== NOT EXECUTED
    memfile_free_blocks_in_table( &info->doubly_indirect, to_free );  
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
400130c4:	10 80 00 1a 	b  4001312c <IMFS_memfile_remove+0x15c>        <== NOT EXECUTED
400130c8:	a8 15 20 d4 	or  %l4, 0xd4, %l4                             <== NOT EXECUTED
   *    + indirect                                                    
   *    + doubly indirect                                             
   *    + triply indirect                                             
   */                                                                 
                                                                      
  info = &the_jnode->info.file;                                       
400130cc:	ab 2c 60 02 	sll  %l1, 2, %l5                               <== NOT EXECUTED
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
      p = (block_p *) info->triply_indirect[i];                       
400130d0:	e4 00 40 15 	ld  [ %g1 + %l5 ], %l2                         <== NOT EXECUTED
      if ( !p )  /* ensure we have a valid pointer */                 
400130d4:	80 a4 a0 00 	cmp  %l2, 0                                    <== NOT EXECUTED
400130d8:	02 80 00 1b 	be  40013144 <IMFS_memfile_remove+0x174>       <== NOT EXECUTED
400130dc:	90 06 20 60 	add  %i0, 0x60, %o0                            <== NOT EXECUTED
400130e0:	10 80 00 09 	b  40013104 <IMFS_memfile_remove+0x134>        <== NOT EXECUTED
400130e4:	a6 10 20 00 	clr  %l3                                       <== NOT EXECUTED
         break;                                                       
      for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {                
        if ( p[j] ) {                                                 
400130e8:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
400130ec:	02 80 00 04 	be  400130fc <IMFS_memfile_remove+0x12c>       <== NOT EXECUTED
400130f0:	90 10 00 12 	mov  %l2, %o0                                  <== NOT EXECUTED
          memfile_free_blocks_in_table( (block_p **)&p[j], to_free);  
400130f4:	7f ff ff 85 	call  40012f08 <memfile_free_blocks_in_table>  <== NOT EXECUTED
400130f8:	92 10 00 10 	mov  %l0, %o1                                  <== NOT EXECUTED
  if ( info->triply_indirect ) {                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
      p = (block_p *) info->triply_indirect[i];                       
      if ( !p )  /* ensure we have a valid pointer */                 
         break;                                                       
      for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {                
400130fc:	a6 04 e0 01 	inc  %l3                                       <== NOT EXECUTED
40013100:	a4 04 a0 04 	add  %l2, 4, %l2                               <== NOT EXECUTED
40013104:	c2 05 00 00 	ld  [ %l4 ], %g1                               <== NOT EXECUTED
40013108:	83 30 60 02 	srl  %g1, 2, %g1                               <== NOT EXECUTED
4001310c:	80 a4 c0 01 	cmp  %l3, %g1                                  <== NOT EXECUTED
40013110:	2a bf ff f6 	bcs,a   400130e8 <IMFS_memfile_remove+0x118>   <== NOT EXECUTED
40013114:	c2 04 80 00 	ld  [ %l2 ], %g1                               <== NOT EXECUTED
        if ( p[j] ) {                                                 
          memfile_free_blocks_in_table( (block_p **)&p[j], to_free);  
        }                                                             
      }                                                               
      memfile_free_blocks_in_table(                                   
40013118:	d0 06 20 60 	ld  [ %i0 + 0x60 ], %o0                        <== NOT EXECUTED
    memfile_free_blocks_in_table( &info->doubly_indirect, to_free );  
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
4001311c:	a2 04 60 01 	inc  %l1                                       <== NOT EXECUTED
      for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {                
        if ( p[j] ) {                                                 
          memfile_free_blocks_in_table( (block_p **)&p[j], to_free);  
        }                                                             
      }                                                               
      memfile_free_blocks_in_table(                                   
40013120:	90 02 00 15 	add  %o0, %l5, %o0                             <== NOT EXECUTED
40013124:	7f ff ff 79 	call  40012f08 <memfile_free_blocks_in_table>  <== NOT EXECUTED
40013128:	92 10 00 10 	mov  %l0, %o1                                  <== NOT EXECUTED
    memfile_free_blocks_in_table( &info->doubly_indirect, to_free );  
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
4001312c:	c2 05 00 00 	ld  [ %l4 ], %g1                               <== NOT EXECUTED
40013130:	83 30 60 02 	srl  %g1, 2, %g1                               <== NOT EXECUTED
40013134:	80 a4 40 01 	cmp  %l1, %g1                                  <== NOT EXECUTED
40013138:	2a bf ff e5 	bcs,a   400130cc <IMFS_memfile_remove+0xfc>    <== NOT EXECUTED
4001313c:	c2 06 20 60 	ld  [ %i0 + 0x60 ], %g1                        <== NOT EXECUTED
        }                                                             
      }                                                               
      memfile_free_blocks_in_table(                                   
        (block_p **)&info->triply_indirect[i], to_free );             
    }                                                                 
    memfile_free_blocks_in_table(                                     
40013140:	90 06 20 60 	add  %i0, 0x60, %o0                            <== NOT EXECUTED
40013144:	7f ff ff 71 	call  40012f08 <memfile_free_blocks_in_table>  <== NOT EXECUTED
40013148:	92 10 00 10 	mov  %l0, %o1                                  <== NOT EXECUTED
        (block_p **)&info->triply_indirect, to_free );                
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
4001314c:	81 c7 e0 08 	ret                                            
40013150:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

40012f7c <IMFS_memfile_remove_block>: MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) {
40012f7c:	9d e3 bf a0 	save  %sp, -96, %sp                            <== NOT EXECUTED
  block_p *block_ptr;                                                 
  block_p  ptr;                                                       
                                                                      
  block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );  
40012f80:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
40012f84:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
40012f88:	7f ff ff 31 	call  40012c4c <IMFS_memfile_get_block_pointer><== NOT EXECUTED
40012f8c:	92 10 00 19 	mov  %i1, %o1                                  <== NOT EXECUTED
  assert( block_ptr );                                                
40012f90:	82 92 20 00 	orcc  %o0, 0, %g1                              <== NOT EXECUTED
40012f94:	32 80 00 0a 	bne,a   40012fbc <IMFS_memfile_remove_block+0x40><== NOT EXECUTED
40012f98:	d0 00 40 00 	ld  [ %g1 ], %o0                               <== NOT EXECUTED
40012f9c:	11 10 00 89 	sethi  %hi(0x40022400), %o0                    <== NOT EXECUTED
40012fa0:	15 10 00 8a 	sethi  %hi(0x40022800), %o2                    <== NOT EXECUTED
40012fa4:	17 10 00 89 	sethi  %hi(0x40022400), %o3                    <== NOT EXECUTED
40012fa8:	90 12 23 00 	or  %o0, 0x300, %o0                            <== NOT EXECUTED
40012fac:	94 12 a0 b8 	or  %o2, 0xb8, %o2                             <== NOT EXECUTED
40012fb0:	96 12 e3 90 	or  %o3, 0x390, %o3                            <== NOT EXECUTED
40012fb4:	7f ff c5 50 	call  400044f4 <__assert_func>                 <== NOT EXECUTED
40012fb8:	92 10 21 96 	mov  0x196, %o1                                <== NOT EXECUTED
    *block_ptr = 0;                                                   
    memfile_free_block( ptr );                                        
  }                                                                   
                                                                      
  return 1;                                                           
}                                                                     
40012fbc:	b0 10 20 01 	mov  1, %i0                                    <== NOT EXECUTED
  block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );  
  assert( block_ptr );                                                
  if ( block_ptr ) {                                                  
    ptr = *block_ptr;                                                 
    *block_ptr = 0;                                                   
    memfile_free_block( ptr );                                        
40012fc0:	7f ff ff 0d 	call  40012bf4 <memfile_free_block>            <== NOT EXECUTED
40012fc4:	c0 20 40 00 	clr  [ %g1 ]                                   <== NOT EXECUTED
  }                                                                   
                                                                      
  return 1;                                                           
}                                                                     
40012fc8:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40012fcc:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

40013584 <IMFS_memfile_write>: IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) {
40013584:	9d e3 bf 98 	save  %sp, -104, %sp                           
                                                                      
  /*                                                                  
   *  Perform internal consistency checks                             
   */                                                                 
                                                                      
  assert( the_jnode );                                                
40013588:	a0 96 20 00 	orcc  %i0, 0, %l0                              
4001358c:	32 80 00 0a 	bne,a   400135b4 <IMFS_memfile_write+0x30>     <== ALWAYS TAKEN
40013590:	c2 04 20 4c 	ld  [ %l0 + 0x4c ], %g1                        
40013594:	11 10 00 89 	sethi  %hi(0x40022400), %o0                    <== NOT EXECUTED
40013598:	15 10 00 8a 	sethi  %hi(0x40022800), %o2                    <== NOT EXECUTED
4001359c:	17 10 00 89 	sethi  %hi(0x40022400), %o3                    <== NOT EXECUTED
400135a0:	90 12 23 00 	or  %o0, 0x300, %o0                            <== NOT EXECUTED
400135a4:	94 12 a0 50 	or  %o2, 0x50, %o2                             <== NOT EXECUTED
400135a8:	96 12 e3 48 	or  %o3, 0x348, %o3                            <== NOT EXECUTED
400135ac:	10 80 00 8c 	b  400137dc <IMFS_memfile_write+0x258>         <== NOT EXECUTED
400135b0:	92 10 22 e3 	mov  0x2e3, %o1                                <== NOT EXECUTED
  if ( !the_jnode )                                                   
    rtems_set_errno_and_return_minus_one( EIO );                      
                                                                      
  assert( the_jnode->type == IMFS_MEMORY_FILE );                      
400135b4:	80 a0 60 05 	cmp  %g1, 5                                    
400135b8:	02 80 00 0a 	be  400135e0 <IMFS_memfile_write+0x5c>         <== ALWAYS TAKEN
400135bc:	80 a6 e0 00 	cmp  %i3, 0                                    
400135c0:	11 10 00 89 	sethi  %hi(0x40022400), %o0                    <== NOT EXECUTED
400135c4:	15 10 00 8a 	sethi  %hi(0x40022800), %o2                    <== NOT EXECUTED
400135c8:	17 10 00 89 	sethi  %hi(0x40022400), %o3                    <== NOT EXECUTED
400135cc:	90 12 23 00 	or  %o0, 0x300, %o0                            <== NOT EXECUTED
400135d0:	94 12 a0 50 	or  %o2, 0x50, %o2                             <== NOT EXECUTED
400135d4:	96 12 e3 58 	or  %o3, 0x358, %o3                            <== NOT EXECUTED
400135d8:	10 80 00 81 	b  400137dc <IMFS_memfile_write+0x258>         <== NOT EXECUTED
400135dc:	92 10 22 e7 	mov  0x2e7, %o1                                <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Error check arguments                                           
   */                                                                 
                                                                      
  assert( source );                                                   
400135e0:	12 80 00 0a 	bne  40013608 <IMFS_memfile_write+0x84>        <== ALWAYS TAKEN
400135e4:	80 a7 20 00 	cmp  %i4, 0                                    
400135e8:	11 10 00 89 	sethi  %hi(0x40022400), %o0                    <== NOT EXECUTED
400135ec:	15 10 00 8a 	sethi  %hi(0x40022800), %o2                    <== NOT EXECUTED
400135f0:	17 10 00 89 	sethi  %hi(0x40022400), %o3                    <== NOT EXECUTED
400135f4:	90 12 23 00 	or  %o0, 0x300, %o0                            <== NOT EXECUTED
400135f8:	94 12 a0 50 	or  %o2, 0x50, %o2                             <== NOT EXECUTED
400135fc:	96 12 e3 a0 	or  %o3, 0x3a0, %o3                            <== NOT EXECUTED
40013600:	10 80 00 77 	b  400137dc <IMFS_memfile_write+0x258>         <== NOT EXECUTED
40013604:	92 10 22 ef 	mov  0x2ef, %o1                                <== NOT EXECUTED
  /*                                                                  
   *  If there is nothing to write, then quick exit.                  
   */                                                                 
                                                                      
  my_length = length;                                                 
  if ( !my_length )                                                   
40013608:	32 80 00 06 	bne,a   40013620 <IMFS_memfile_write+0x9c>     <== ALWAYS TAKEN
4001360c:	c2 04 20 50 	ld  [ %l0 + 0x50 ], %g1                        
    rtems_set_errno_and_return_minus_one( EINVAL );                   
40013610:	40 00 06 c9 	call  40015134 <__errno>                       <== NOT EXECUTED
40013614:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
40013618:	10 80 00 15 	b  4001366c <IMFS_memfile_write+0xe8>          <== NOT EXECUTED
4001361c:	82 10 20 16 	mov  0x16, %g1                                 <== NOT EXECUTED
   *  If the last byte we are supposed to write is past the end of this
   *  in memory file, then extend the length.                         
   */                                                                 
                                                                      
  last_byte = start + length;                                         
  if ( last_byte > the_jnode->info.file.size ) {                      
40013620:	80 a0 60 00 	cmp  %g1, 0                                    
40013624:	06 80 00 09 	bl  40013648 <IMFS_memfile_write+0xc4>         <== NEVER TAKEN
40013628:	94 07 00 1a 	add  %i4, %i2, %o2                             
4001362c:	80 a0 60 00 	cmp  %g1, 0                                    
40013630:	12 80 00 12 	bne  40013678 <IMFS_memfile_write+0xf4>        <== NEVER TAKEN
40013634:	03 10 00 8e 	sethi  %hi(0x40023800), %g1                    
40013638:	c2 04 20 54 	ld  [ %l0 + 0x54 ], %g1                        
4001363c:	80 a0 40 0a 	cmp  %g1, %o2                                  
40013640:	1a 80 00 0e 	bcc  40013678 <IMFS_memfile_write+0xf4>        <== NEVER TAKEN
40013644:	03 10 00 8e 	sethi  %hi(0x40023800), %g1                    
    status = IMFS_memfile_extend( the_jnode, last_byte );             
40013648:	90 10 00 10 	mov  %l0, %o0                                  
4001364c:	7f ff ff 24 	call  400132dc <IMFS_memfile_extend>           
40013650:	92 10 20 00 	clr  %o1                                       
    if ( status )                                                     
40013654:	80 a2 20 00 	cmp  %o0, 0                                    
40013658:	02 80 00 08 	be  40013678 <IMFS_memfile_write+0xf4>         <== ALWAYS TAKEN
4001365c:	03 10 00 8e 	sethi  %hi(0x40023800), %g1                    
      rtems_set_errno_and_return_minus_one( ENOSPC );                 
40013660:	40 00 06 b5 	call  40015134 <__errno>                       <== NOT EXECUTED
40013664:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
40013668:	82 10 20 1c 	mov  0x1c, %g1                                 <== NOT EXECUTED
4001366c:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
40013670:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40013674:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
                                                                      
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
40013678:	e2 00 60 d4 	ld  [ %g1 + 0xd4 ], %l1                        
4001367c:	92 10 00 1a 	mov  %i2, %o1                                  
40013680:	a7 3c 60 1f 	sra  %l1, 0x1f, %l3                            
40013684:	96 10 00 11 	mov  %l1, %o3                                  
40013688:	94 10 00 13 	mov  %l3, %o2                                  
4001368c:	40 00 2e 9b 	call  4001f0f8 <__moddi3>                      
40013690:	90 10 00 19 	mov  %i1, %o0                                  
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
40013694:	94 10 00 13 	mov  %l3, %o2                                  
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
                                                                      
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
40013698:	a4 10 00 09 	mov  %o1, %l2                                  
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
4001369c:	90 10 00 19 	mov  %i1, %o0                                  
400136a0:	92 10 00 1a 	mov  %i2, %o1                                  
400136a4:	40 00 2d ae 	call  4001ed5c <__divdi3>                      
400136a8:	96 10 00 11 	mov  %l1, %o3                                  
  if ( start_offset )  {                                              
400136ac:	b4 10 00 1b 	mov  %i3, %i2                                  
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
                                                                      
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
400136b0:	a6 10 00 09 	mov  %o1, %l3                                  
  if ( start_offset )  {                                              
400136b4:	80 a4 a0 00 	cmp  %l2, 0                                    
400136b8:	02 80 00 1b 	be  40013724 <IMFS_memfile_write+0x1a0>        
400136bc:	b0 10 20 00 	clr  %i0                                       
    to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;            
    if ( to_copy > my_length )                                        
      to_copy = my_length;                                            
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
400136c0:	90 10 00 10 	mov  %l0, %o0                                  
400136c4:	7f ff fd 62 	call  40012c4c <IMFS_memfile_get_block_pointer>
400136c8:	94 10 20 00 	clr  %o2                                       
    assert( block_ptr );                                              
400136cc:	80 a2 20 00 	cmp  %o0, 0                                    
400136d0:	32 80 00 0a 	bne,a   400136f8 <IMFS_memfile_write+0x174>    <== ALWAYS TAKEN
400136d4:	94 24 40 12 	sub  %l1, %l2, %o2                             
400136d8:	11 10 00 89 	sethi  %hi(0x40022400), %o0                    <== NOT EXECUTED
400136dc:	15 10 00 8a 	sethi  %hi(0x40022800), %o2                    <== NOT EXECUTED
400136e0:	17 10 00 89 	sethi  %hi(0x40022400), %o3                    <== NOT EXECUTED
400136e4:	90 12 23 00 	or  %o0, 0x300, %o0                            <== NOT EXECUTED
400136e8:	94 12 a0 50 	or  %o2, 0x50, %o2                             <== NOT EXECUTED
400136ec:	96 12 e3 90 	or  %o3, 0x390, %o3                            <== NOT EXECUTED
400136f0:	10 80 00 3b 	b  400137dc <IMFS_memfile_write+0x258>         <== NOT EXECUTED
400136f4:	92 10 23 1c 	mov  0x31c, %o1                                <== NOT EXECUTED
   */                                                                 
                                                                      
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
  if ( start_offset )  {                                              
    to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;            
400136f8:	80 a2 80 1c 	cmp  %o2, %i4                                  
400136fc:	38 80 00 02 	bgu,a   40013704 <IMFS_memfile_write+0x180>    
40013700:	94 10 00 1c 	mov  %i4, %o2                                  
    if ( !block_ptr )                                                 
      return copied;                                                  
#if 0                                                                 
fprintf(stdout, "write %d at %d in %d: %*s\n", to_copy, start_offset, block, to_copy, src );
#endif                                                                
    memcpy( &(*block_ptr)[ start_offset ], src, to_copy );            
40013704:	d0 02 00 00 	ld  [ %o0 ], %o0                               
    src += to_copy;                                                   
40013708:	b4 06 c0 0a 	add  %i3, %o2, %i2                             
    if ( !block_ptr )                                                 
      return copied;                                                  
#if 0                                                                 
fprintf(stdout, "write %d at %d in %d: %*s\n", to_copy, start_offset, block, to_copy, src );
#endif                                                                
    memcpy( &(*block_ptr)[ start_offset ], src, to_copy );            
4001370c:	90 02 00 12 	add  %o0, %l2, %o0                             
    src += to_copy;                                                   
    block++;                                                          
40013710:	a6 04 e0 01 	inc  %l3                                       
    my_length -= to_copy;                                             
40013714:	b8 27 00 0a 	sub  %i4, %o2, %i4                             
    copied += to_copy;                                                
40013718:	b0 10 00 0a 	mov  %o2, %i0                                  
    if ( !block_ptr )                                                 
      return copied;                                                  
#if 0                                                                 
fprintf(stdout, "write %d at %d in %d: %*s\n", to_copy, start_offset, block, to_copy, src );
#endif                                                                
    memcpy( &(*block_ptr)[ start_offset ], src, to_copy );            
4001371c:	40 00 08 c2 	call  40015a24 <memcpy>                        
40013720:	92 10 00 1b 	mov  %i3, %o1                                  
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
                                                                      
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
40013724:	03 10 00 8e 	sethi  %hi(0x40023800), %g1                    
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
40013728:	a4 10 60 d4 	or  %g1, 0xd4, %l2	! 400238d4 <imfs_memfile_bytes_per_block>
4001372c:	10 80 00 17 	b  40013788 <IMFS_memfile_write+0x204>         
40013730:	e2 00 60 d4 	ld  [ %g1 + 0xd4 ], %l1                        
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
40013734:	92 10 00 13 	mov  %l3, %o1                                  
40013738:	7f ff fd 45 	call  40012c4c <IMFS_memfile_get_block_pointer>
4001373c:	94 10 20 00 	clr  %o2                                       
    assert( block_ptr );                                              
40013740:	80 a2 20 00 	cmp  %o0, 0                                    
40013744:	32 80 00 0a 	bne,a   4001376c <IMFS_memfile_write+0x1e8>    <== ALWAYS TAKEN
40013748:	d0 02 00 00 	ld  [ %o0 ], %o0                               
4001374c:	11 10 00 89 	sethi  %hi(0x40022400), %o0                    <== NOT EXECUTED
40013750:	15 10 00 8a 	sethi  %hi(0x40022800), %o2                    <== NOT EXECUTED
40013754:	17 10 00 89 	sethi  %hi(0x40022400), %o3                    <== NOT EXECUTED
40013758:	90 12 23 00 	or  %o0, 0x300, %o0                            <== NOT EXECUTED
4001375c:	94 12 a0 50 	or  %o2, 0x50, %o2                             <== NOT EXECUTED
40013760:	96 12 e3 90 	or  %o3, 0x390, %o3                            <== NOT EXECUTED
40013764:	10 80 00 1e 	b  400137dc <IMFS_memfile_write+0x258>         <== NOT EXECUTED
40013768:	92 10 23 30 	mov  0x330, %o1                                <== NOT EXECUTED
    if ( !block_ptr )                                                 
      return copied;                                                  
#if 0                                                                 
fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src );
#endif                                                                
    memcpy( &(*block_ptr)[ 0 ], src, to_copy );                       
4001376c:	92 10 00 1a 	mov  %i2, %o1                                  
    src += to_copy;                                                   
    block++;                                                          
40013770:	a6 04 e0 01 	inc  %l3                                       
    my_length -= to_copy;                                             
40013774:	b8 27 00 11 	sub  %i4, %l1, %i4                             
 *                                                                    
 *  This routine writes the specified data buffer into the in memory  
 *  file pointed to by the_jnode.  The file is extended as needed.    
 */                                                                   
                                                                      
MEMFILE_STATIC ssize_t IMFS_memfile_write(                            
40013778:	b0 06 00 11 	add  %i0, %l1, %i0                             
      return copied;                                                  
#if 0                                                                 
fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src );
#endif                                                                
    memcpy( &(*block_ptr)[ 0 ], src, to_copy );                       
    src += to_copy;                                                   
4001377c:	b4 06 80 11 	add  %i2, %l1, %i2                             
    if ( !block_ptr )                                                 
      return copied;                                                  
#if 0                                                                 
fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src );
#endif                                                                
    memcpy( &(*block_ptr)[ 0 ], src, to_copy );                       
40013780:	40 00 08 a9 	call  40015a24 <memcpy>                        
40013784:	94 10 00 11 	mov  %l1, %o2                                  
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
                                                                      
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
40013788:	c2 04 80 00 	ld  [ %l2 ], %g1                               
4001378c:	80 a7 00 01 	cmp  %i4, %g1                                  
40013790:	1a bf ff e9 	bcc  40013734 <IMFS_memfile_write+0x1b0>       
40013794:	90 10 00 10 	mov  %l0, %o0                                  
   */                                                                 
                                                                      
  assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );                 
                                                                      
  to_copy = my_length;                                                
  if ( my_length ) {                                                  
40013798:	80 a7 20 00 	cmp  %i4, 0                                    
4001379c:	02 80 00 17 	be  400137f8 <IMFS_memfile_write+0x274>        
400137a0:	90 07 bf f8 	add  %fp, -8, %o0                              
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
400137a4:	92 10 00 13 	mov  %l3, %o1                                  
400137a8:	90 10 00 10 	mov  %l0, %o0                                  
400137ac:	7f ff fd 28 	call  40012c4c <IMFS_memfile_get_block_pointer>
400137b0:	94 10 20 00 	clr  %o2                                       
    assert( block_ptr );                                              
400137b4:	80 a2 20 00 	cmp  %o0, 0                                    
400137b8:	32 80 00 0b 	bne,a   400137e4 <IMFS_memfile_write+0x260>    <== ALWAYS TAKEN
400137bc:	d0 02 00 00 	ld  [ %o0 ], %o0                               
400137c0:	11 10 00 89 	sethi  %hi(0x40022400), %o0                    <== NOT EXECUTED
400137c4:	15 10 00 8a 	sethi  %hi(0x40022800), %o2                    <== NOT EXECUTED
400137c8:	17 10 00 89 	sethi  %hi(0x40022400), %o3                    <== NOT EXECUTED
400137cc:	90 12 23 00 	or  %o0, 0x300, %o0                            <== NOT EXECUTED
400137d0:	94 12 a0 50 	or  %o2, 0x50, %o2                             <== NOT EXECUTED
400137d4:	96 12 e3 90 	or  %o3, 0x390, %o3                            <== NOT EXECUTED
400137d8:	92 10 23 46 	mov  0x346, %o1                                <== NOT EXECUTED
400137dc:	7f ff c3 46 	call  400044f4 <__assert_func>                 <== NOT EXECUTED
400137e0:	01 00 00 00 	nop                                            <== NOT EXECUTED
#if 0                                                                 
fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src );
#endif                                                                
    memcpy( &(*block_ptr)[ 0 ], src, my_length );                     
    my_length = 0;                                                    
    copied += to_copy;                                                
400137e4:	b0 06 00 1c 	add  %i0, %i4, %i0                             
    if ( !block_ptr )                                                 
      return copied;                                                  
#if 0                                                                 
fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src );
#endif                                                                
    memcpy( &(*block_ptr)[ 0 ], src, my_length );                     
400137e8:	92 10 00 1a 	mov  %i2, %o1                                  
400137ec:	40 00 08 8e 	call  40015a24 <memcpy>                        
400137f0:	94 10 00 1c 	mov  %i4, %o2                                  
    my_length = 0;                                                    
    copied += to_copy;                                                
  }                                                                   
                                                                      
  IMFS_mtime_ctime_update( the_jnode );                               
400137f4:	90 07 bf f8 	add  %fp, -8, %o0                              
400137f8:	7f ff c4 5f 	call  40004974 <gettimeofday>                  
400137fc:	92 10 20 00 	clr  %o1                                       
40013800:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
40013804:	c2 24 20 48 	st  %g1, [ %l0 + 0x48 ]                        
40013808:	c2 24 20 44 	st  %g1, [ %l0 + 0x44 ]                        
                                                                      
  return copied;                                                      
}                                                                     
4001380c:	81 c7 e0 08 	ret                                            
40013810:	81 e8 00 00 	restore                                        
                                                                      

4000ade4 <IMFS_mknod>: const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) {
4000ade4:	9d e3 bf 58 	save  %sp, -168, %sp                           
  IMFS_jnode_t      *new_node;                                        
  int                result;                                          
  char               new_name[ IMFS_NAME_MAX + 1 ];                   
  IMFS_types_union   info;                                            
                                                                      
  IMFS_get_token( token, strlen( token ), new_name, &result );        
4000ade8:	40 00 15 75 	call  400103bc <strlen>                        
4000adec:	90 10 00 18 	mov  %i0, %o0                                  
4000adf0:	96 07 bf fc 	add  %fp, -4, %o3                              
4000adf4:	92 10 00 08 	mov  %o0, %o1                                  
4000adf8:	94 07 bf b8 	add  %fp, -72, %o2                             
4000adfc:	7f ff ff 8a 	call  4000ac24 <IMFS_get_token>                
4000ae00:	90 10 00 18 	mov  %i0, %o0                                  
                                                                      
  /*                                                                  
   *  Figure out what type of IMFS node this is.                      
   */                                                                 
  if ( S_ISDIR(mode) )                                                
4000ae04:	03 00 00 3c 	sethi  %hi(0xf000), %g1                        
4000ae08:	05 00 00 10 	sethi  %hi(0x4000), %g2                        
4000ae0c:	82 0e 40 01 	and  %i1, %g1, %g1                             
  const char                        *token,      /* IN */             
  mode_t                             mode,       /* IN */             
  dev_t                              dev,        /* IN */             
  rtems_filesystem_location_info_t  *pathloc     /* IN/OUT */         
)                                                                     
{                                                                     
4000ae10:	96 10 00 19 	mov  %i1, %o3                                  
  IMFS_get_token( token, strlen( token ), new_name, &result );        
                                                                      
  /*                                                                  
   *  Figure out what type of IMFS node this is.                      
   */                                                                 
  if ( S_ISDIR(mode) )                                                
4000ae14:	80 a0 40 02 	cmp  %g1, %g2                                  
4000ae18:	02 80 00 1a 	be  4000ae80 <IMFS_mknod+0x9c>                 
4000ae1c:	90 10 00 1c 	mov  %i4, %o0                                  
    type = IMFS_DIRECTORY;                                            
  else if ( S_ISREG(mode) )                                           
4000ae20:	05 00 00 20 	sethi  %hi(0x8000), %g2                        
4000ae24:	80 a0 40 02 	cmp  %g1, %g2                                  
4000ae28:	02 80 00 17 	be  4000ae84 <IMFS_mknod+0xa0>                 
4000ae2c:	92 10 20 05 	mov  5, %o1                                    
    type = IMFS_MEMORY_FILE;                                          
  else if ( S_ISBLK(mode) || S_ISCHR(mode) ) {                        
4000ae30:	05 00 00 08 	sethi  %hi(0x2000), %g2                        
4000ae34:	80 a0 40 02 	cmp  %g1, %g2                                  
4000ae38:	22 80 00 07 	be,a   4000ae54 <IMFS_mknod+0x70>              
4000ae3c:	f4 3f bf e0 	std  %i2, [ %fp + -32 ]                        
4000ae40:	05 00 00 18 	sethi  %hi(0x6000), %g2                        
4000ae44:	80 a0 40 02 	cmp  %g1, %g2                                  
4000ae48:	12 80 00 05 	bne  4000ae5c <IMFS_mknod+0x78>                
4000ae4c:	05 00 00 04 	sethi  %hi(0x1000), %g2                        
    type = IMFS_DEVICE;                                               
    rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor );
4000ae50:	f4 3f bf e0 	std  %i2, [ %fp + -32 ]                        
4000ae54:	10 80 00 0c 	b  4000ae84 <IMFS_mknod+0xa0>                  
4000ae58:	92 10 20 02 	mov  2, %o1                                    
  }                                                                   
  else if (S_ISFIFO(mode))                                            
4000ae5c:	80 a0 40 02 	cmp  %g1, %g2                                  
4000ae60:	02 80 00 09 	be  4000ae84 <IMFS_mknod+0xa0>                 <== ALWAYS TAKEN
4000ae64:	92 10 20 07 	mov  7, %o1                                    
    type = IMFS_FIFO;                                                 
  else  {                                                             
    rtems_set_errno_and_return_minus_one( EINVAL );                   
4000ae68:	40 00 11 9d 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4000ae6c:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
4000ae70:	82 10 20 16 	mov  0x16, %g1                                 <== NOT EXECUTED
4000ae74:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
4000ae78:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000ae7c:	81 e8 00 00 	restore                                        <== NOT EXECUTED
4000ae80:	92 10 20 01 	mov  1, %o1                                    
   *        was ONLY passed a NULL when we created the root node.  We 
   *        added a new IMFS_create_root_node() so this path no longer
   *        existed.  The result was simpler code which should not have
   *        this path.                                                
   */                                                                 
  new_node = IMFS_create_node(                                        
4000ae84:	94 07 bf b8 	add  %fp, -72, %o2                             
4000ae88:	98 07 bf e0 	add  %fp, -32, %o4                             
4000ae8c:	40 00 0b 65 	call  4000dc20 <IMFS_create_node>              
4000ae90:	b0 10 20 00 	clr  %i0                                       
    new_name,                                                         
    mode,                                                             
    &info                                                             
  );                                                                  
                                                                      
  if ( !new_node )                                                    
4000ae94:	80 a2 20 00 	cmp  %o0, 0                                    
4000ae98:	12 80 00 06 	bne  4000aeb0 <IMFS_mknod+0xcc>                <== ALWAYS TAKEN
4000ae9c:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
4000aea0:	40 00 11 8f 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4000aea4:	b0 10 3f ff 	mov  -1, %i0	! ffffffff <LEON_REG+0x7fffffff>  <== NOT EXECUTED
4000aea8:	82 10 20 0c 	mov  0xc, %g1                                  <== NOT EXECUTED
4000aeac:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
                                                                      
  return 0;                                                           
}                                                                     
4000aeb0:	81 c7 e0 08 	ret                                            
4000aeb4:	81 e8 00 00 	restore                                        
                                                                      

400040d0 <IMFS_mount>: #include <rtems/seterr.h> int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) {
400040d0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  IMFS_jnode_t  *node;                                                
                                                                      
  node = mt_entry->mt_point_node.node_access;                         
400040d4:	c2 06 20 08 	ld  [ %i0 + 8 ], %g1                           
                                                                      
  /*                                                                  
   *  Is the node that we are mounting onto a directory node ?        
   */                                                                 
                                                                      
  if ( node->type != IMFS_DIRECTORY )                                 
400040d8:	c4 00 60 4c 	ld  [ %g1 + 0x4c ], %g2                        
400040dc:	80 a0 a0 01 	cmp  %g2, 1                                    
400040e0:	22 80 00 08 	be,a   40004100 <IMFS_mount+0x30>              <== ALWAYS TAKEN
400040e4:	f0 20 60 5c 	st  %i0, [ %g1 + 0x5c ]                        
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
400040e8:	40 00 44 13 	call  40015134 <__errno>                       <== NOT EXECUTED
400040ec:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
400040f0:	82 10 20 14 	mov  0x14, %g1                                 <== NOT EXECUTED
400040f4:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
400040f8:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
400040fc:	81 e8 00 00 	restore                                        <== NOT EXECUTED
   *  the mounted file system.                                        
   */                                                                 
                                                                      
  node->info.directory.mt_fs = mt_entry;                              
  return 0;                                                           
}                                                                     
40004100:	81 c7 e0 08 	ret                                            
40004104:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

4000533c <IMFS_print_jnode>: */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) {
4000533c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  assert( the_jnode );                                                
40005340:	80 a6 20 00 	cmp  %i0, 0                                    
40005344:	12 80 00 0a 	bne  4000536c <IMFS_print_jnode+0x30>          <== ALWAYS TAKEN
40005348:	21 10 00 a2 	sethi  %hi(0x40028800), %l0                    
4000534c:	11 10 00 9a 	sethi  %hi(0x40026800), %o0                    <== NOT EXECUTED
40005350:	15 10 00 9a 	sethi  %hi(0x40026800), %o2                    <== NOT EXECUTED
40005354:	17 10 00 9a 	sethi  %hi(0x40026800), %o3                    <== NOT EXECUTED
40005358:	90 12 21 20 	or  %o0, 0x120, %o0                            <== NOT EXECUTED
4000535c:	94 12 a3 30 	or  %o2, 0x330, %o2                            <== NOT EXECUTED
40005360:	96 12 e1 70 	or  %o3, 0x170, %o3                            <== NOT EXECUTED
40005364:	10 80 00 3b 	b  40005450 <IMFS_print_jnode+0x114>           <== NOT EXECUTED
40005368:	92 10 20 38 	mov  0x38, %o1                                 <== NOT EXECUTED
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
4000536c:	c2 04 20 b0 	ld  [ %l0 + 0xb0 ], %g1                        
40005370:	90 06 20 0c 	add  %i0, 0xc, %o0                             
40005374:	40 00 40 26 	call  4001540c <fputs>                         
40005378:	d2 00 60 08 	ld  [ %g1 + 8 ], %o1                           
  switch( the_jnode->type ) {                                         
4000537c:	d4 06 20 4c 	ld  [ %i0 + 0x4c ], %o2                        
40005380:	82 02 bf ff 	add  %o2, -1, %g1                              
40005384:	80 a0 60 06 	cmp  %g1, 6                                    
40005388:	38 80 00 42 	bgu,a   40005490 <IMFS_print_jnode+0x154>      <== NEVER TAKEN
4000538c:	c2 04 20 b0 	ld  [ %l0 + 0xb0 ], %g1                        <== NOT EXECUTED
40005390:	83 28 60 02 	sll  %g1, 2, %g1                               
40005394:	05 10 00 14 	sethi  %hi(0x40005000), %g2                    
40005398:	84 10 a2 e4 	or  %g2, 0x2e4, %g2	! 400052e4 <amba_print_conf+0x114>
4000539c:	c2 00 80 01 	ld  [ %g2 + %g1 ], %g1                         
400053a0:	81 c0 40 00 	jmp  %g1                                       
400053a4:	01 00 00 00 	nop                                            
    case IMFS_DIRECTORY:                                              
      fprintf(stdout, "/" );                                          
400053a8:	c2 04 20 b0 	ld  [ %l0 + 0xb0 ], %g1                        
400053ac:	90 10 20 2f 	mov  0x2f, %o0                                 
400053b0:	40 00 3f d3 	call  400152fc <fputc>                         
400053b4:	d2 00 60 08 	ld  [ %g1 + 8 ], %o1                           
      break;                                                          
400053b8:	10 80 00 3c 	b  400054a8 <IMFS_print_jnode+0x16c>           
400053bc:	31 10 00 9a 	sethi  %hi(0x40026800), %i0                    
                                                                      
    case IMFS_DEVICE:                                                 
      fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",           
400053c0:	c2 04 20 b0 	ld  [ %l0 + 0xb0 ], %g1                        
400053c4:	13 10 00 9a 	sethi  %hi(0x40026800), %o1                    
400053c8:	d6 06 20 54 	ld  [ %i0 + 0x54 ], %o3                        
400053cc:	d0 00 60 08 	ld  [ %g1 + 8 ], %o0                           
400053d0:	d4 06 20 50 	ld  [ %i0 + 0x50 ], %o2                        
400053d4:	10 80 00 08 	b  400053f4 <IMFS_print_jnode+0xb8>            
400053d8:	92 12 61 80 	or  %o1, 0x180, %o1                            
        the_jnode->info.device.major, the_jnode->info.device.minor ); 
      break;                                                          
                                                                      
    case IMFS_LINEAR_FILE:                                            
      fprintf(stdout, " (file %" PRId32 " %p)",                       
400053dc:	c2 04 20 b0 	ld  [ %l0 + 0xb0 ], %g1                        <== NOT EXECUTED
400053e0:	d6 06 20 58 	ld  [ %i0 + 0x58 ], %o3                        <== NOT EXECUTED
400053e4:	d0 00 60 08 	ld  [ %g1 + 8 ], %o0                           <== NOT EXECUTED
400053e8:	d4 06 20 54 	ld  [ %i0 + 0x54 ], %o2                        <== NOT EXECUTED
400053ec:	13 10 00 9a 	sethi  %hi(0x40026800), %o1                    <== NOT EXECUTED
400053f0:	92 12 61 98 	or  %o1, 0x198, %o1	! 40026998 <__FUNCTION__.5779+0x270><== NOT EXECUTED
400053f4:	40 00 3f a8 	call  40015294 <fprintf>                       
400053f8:	31 10 00 9a 	sethi  %hi(0x40026800), %i0                    
        (uint32_t)the_jnode->info.linearfile.size,                    
        the_jnode->info.linearfile.direct                             
      );                                                              
      break;                                                          
400053fc:	30 80 00 2b 	b,a   400054a8 <IMFS_print_jnode+0x16c>        
        the_jnode->info.file.indirect,                                
        the_jnode->info.file.doubly_indirect,                         
        the_jnode->info.file.triply_indirect                          
      );                                                              
#else                                                                 
      fprintf(stdout, " (file %" PRId32 ")",                          
40005400:	c2 04 20 b0 	ld  [ %l0 + 0xb0 ], %g1                        
40005404:	d4 06 20 54 	ld  [ %i0 + 0x54 ], %o2                        
40005408:	d0 00 60 08 	ld  [ %g1 + 8 ], %o0                           
4000540c:	13 10 00 9a 	sethi  %hi(0x40026800), %o1                    
40005410:	40 00 3f a1 	call  40015294 <fprintf>                       
40005414:	92 12 61 a8 	or  %o1, 0x1a8, %o1	! 400269a8 <__FUNCTION__.5779+0x280>
        (uint32_t)the_jnode->info.file.size );                        
#endif                                                                
      break;                                                          
40005418:	10 80 00 24 	b  400054a8 <IMFS_print_jnode+0x16c>           
4000541c:	31 10 00 9a 	sethi  %hi(0x40026800), %i0                    
                                                                      
    case IMFS_HARD_LINK:                                              
      fprintf(stdout, " links not printed\n" );                       
40005420:	c2 04 20 b0 	ld  [ %l0 + 0xb0 ], %g1                        <== NOT EXECUTED
40005424:	11 10 00 9a 	sethi  %hi(0x40026800), %o0                    <== NOT EXECUTED
40005428:	d2 00 60 08 	ld  [ %g1 + 8 ], %o1                           <== NOT EXECUTED
4000542c:	40 00 3f f8 	call  4001540c <fputs>                         <== NOT EXECUTED
40005430:	90 12 21 b8 	or  %o0, 0x1b8, %o0                            <== NOT EXECUTED
      assert(0);                                                      
40005434:	92 10 20 5d 	mov  0x5d, %o1                                 <== NOT EXECUTED
40005438:	11 10 00 9a 	sethi  %hi(0x40026800), %o0                    <== NOT EXECUTED
4000543c:	15 10 00 9a 	sethi  %hi(0x40026800), %o2                    <== NOT EXECUTED
40005440:	17 10 00 9a 	sethi  %hi(0x40026800), %o3                    <== NOT EXECUTED
40005444:	90 12 21 20 	or  %o0, 0x120, %o0                            <== NOT EXECUTED
40005448:	94 12 a3 30 	or  %o2, 0x330, %o2                            <== NOT EXECUTED
4000544c:	96 12 e1 d0 	or  %o3, 0x1d0, %o3                            <== NOT EXECUTED
40005450:	40 00 02 54 	call  40005da0 <__assert_func>                 <== NOT EXECUTED
40005454:	01 00 00 00 	nop                                            <== NOT EXECUTED
      break;                                                          
                                                                      
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
40005458:	c2 04 20 b0 	ld  [ %l0 + 0xb0 ], %g1                        <== NOT EXECUTED
4000545c:	11 10 00 9a 	sethi  %hi(0x40026800), %o0                    <== NOT EXECUTED
40005460:	d2 00 60 08 	ld  [ %g1 + 8 ], %o1                           <== NOT EXECUTED
40005464:	40 00 3f ea 	call  4001540c <fputs>                         <== NOT EXECUTED
40005468:	90 12 21 b8 	or  %o0, 0x1b8, %o0                            <== NOT EXECUTED
      assert(0);                                                      
4000546c:	10 bf ff f3 	b  40005438 <IMFS_print_jnode+0xfc>            <== NOT EXECUTED
40005470:	92 10 20 62 	mov  0x62, %o1                                 <== NOT EXECUTED
      break;                                                          
                                                                      
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
40005474:	c2 04 20 b0 	ld  [ %l0 + 0xb0 ], %g1                        <== NOT EXECUTED
40005478:	11 10 00 9a 	sethi  %hi(0x40026800), %o0                    <== NOT EXECUTED
4000547c:	d2 00 60 08 	ld  [ %g1 + 8 ], %o1                           <== NOT EXECUTED
40005480:	40 00 3f e3 	call  4001540c <fputs>                         <== NOT EXECUTED
40005484:	90 12 21 d8 	or  %o0, 0x1d8, %o0                            <== NOT EXECUTED
      assert(0);                                                      
40005488:	10 bf ff ec 	b  40005438 <IMFS_print_jnode+0xfc>            <== NOT EXECUTED
4000548c:	92 10 20 67 	mov  0x67, %o1                                 <== NOT EXECUTED
      break;                                                          
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
40005490:	13 10 00 9a 	sethi  %hi(0x40026800), %o1                    <== NOT EXECUTED
40005494:	d0 00 60 08 	ld  [ %g1 + 8 ], %o0                           <== NOT EXECUTED
40005498:	40 00 3f 7f 	call  40015294 <fprintf>                       <== NOT EXECUTED
4000549c:	92 12 61 f0 	or  %o1, 0x1f0, %o1                            <== NOT EXECUTED
      assert(0);                                                      
400054a0:	10 bf ff e6 	b  40005438 <IMFS_print_jnode+0xfc>            <== NOT EXECUTED
400054a4:	92 10 20 6c 	mov  0x6c, %o1                                 <== NOT EXECUTED
      break;                                                          
  }                                                                   
  puts("");                                                           
400054a8:	40 00 46 c9 	call  40016fcc <puts>                          
400054ac:	91 ee 22 00 	restore  %i0, 0x200, %o0                       
                                                                      

40004114 <IMFS_readlink>: int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) {
40004114:	9d e3 bf a0 	save  %sp, -96, %sp                            
  IMFS_jnode_t      *node;                                            
  int                i;                                               
                                                                      
  node = loc->node_access;                                            
40004118:	c2 06 00 00 	ld  [ %i0 ], %g1                               
                                                                      
  if ( node->type != IMFS_SYM_LINK )                                  
4000411c:	c4 00 60 4c 	ld  [ %g1 + 0x4c ], %g2                        
40004120:	80 a0 a0 04 	cmp  %g2, 4                                    
40004124:	02 80 00 0a 	be  4000414c <IMFS_readlink+0x38>              <== ALWAYS TAKEN
40004128:	b0 10 20 00 	clr  %i0                                       
    rtems_set_errno_and_return_minus_one( EINVAL );                   
4000412c:	40 00 44 02 	call  40015134 <__errno>                       <== NOT EXECUTED
40004130:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
40004134:	82 10 20 16 	mov  0x16, %g1                                 <== NOT EXECUTED
40004138:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
4000413c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40004140:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      
  for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
    buf[i] = node->info.sym_link.name[i];                             
40004144:	c4 2e 40 18 	stb  %g2, [ %i1 + %i0 ]                        
  node = loc->node_access;                                            
                                                                      
  if ( node->type != IMFS_SYM_LINK )                                  
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
40004148:	b0 06 20 01 	inc  %i0                                       
4000414c:	80 a6 00 1a 	cmp  %i0, %i2                                  
40004150:	1a 80 00 07 	bcc  4000416c <IMFS_readlink+0x58>             
40004154:	01 00 00 00 	nop                                            
40004158:	c4 00 60 50 	ld  [ %g1 + 0x50 ], %g2                        
4000415c:	c6 48 80 18 	ldsb  [ %g2 + %i0 ], %g3                       
40004160:	80 a0 e0 00 	cmp  %g3, 0                                    
40004164:	12 bf ff f8 	bne  40004144 <IMFS_readlink+0x30>             
40004168:	c4 08 80 18 	ldub  [ %g2 + %i0 ], %g2                       
    buf[i] = node->info.sym_link.name[i];                             
                                                                      
  return i;                                                           
}                                                                     
4000416c:	81 c7 e0 08 	ret                                            
40004170:	81 e8 00 00 	restore                                        
                                                                      

40004174 <IMFS_rename>: rtems_filesystem_location_info_t *old_parent_loc, /* IN */ rtems_filesystem_location_info_t *old_loc, /* IN */ rtems_filesystem_location_info_t *new_parent_loc, /* IN */ const char *new_name /* IN */ ) {
40004174:	9d e3 bf 98 	save  %sp, -104, %sp                           
  IMFS_jnode_t *the_jnode;                                            
  IMFS_jnode_t *new_parent;                                           
                                                                      
  the_jnode = old_loc->node_access;                                   
40004178:	e0 06 40 00 	ld  [ %i1 ], %l0                               
                                                                      
  strncpy( the_jnode->name, new_name, IMFS_NAME_MAX );                
4000417c:	92 10 00 1b 	mov  %i3, %o1                                  
40004180:	90 04 20 0c 	add  %l0, 0xc, %o0                             
40004184:	40 00 47 c0 	call  40016084 <strncpy>                       
40004188:	94 10 20 20 	mov  0x20, %o2                                 
                                                                      
  if ( the_jnode->Parent != NULL )                                    
4000418c:	c2 04 20 08 	ld  [ %l0 + 8 ], %g1                           
40004190:	80 a0 60 00 	cmp  %g1, 0                                    
40004194:	22 80 00 05 	be,a   400041a8 <IMFS_rename+0x34>             <== NEVER TAKEN
40004198:	c2 06 80 00 	ld  [ %i2 ], %g1                               <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
4000419c:	40 00 13 6b 	call  40008f48 <_Chain_Extract>                
400041a0:	90 10 00 10 	mov  %l0, %o0                                  
    rtems_chain_extract( (rtems_chain_node *) the_jnode );            
                                                                      
  new_parent = new_parent_loc->node_access;                           
400041a4:	c2 06 80 00 	ld  [ %i2 ], %g1                               
RTEMS_INLINE_ROUTINE void rtems_chain_append(                         
  rtems_chain_control *the_chain,                                     
  rtems_chain_node    *the_node                                       
)                                                                     
{                                                                     
  _Chain_Append( the_chain, the_node );                               
400041a8:	92 10 00 10 	mov  %l0, %o1                                  
400041ac:	90 00 60 50 	add  %g1, 0x50, %o0                            
400041b0:	40 00 13 5a 	call  40008f18 <_Chain_Append>                 
400041b4:	c2 24 20 08 	st  %g1, [ %l0 + 8 ]                           
  rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node );
                                                                      
  /*                                                                  
   * Update the time.                                                 
   */                                                                 
  IMFS_update_ctime( the_jnode );                                     
400041b8:	90 07 bf f8 	add  %fp, -8, %o0                              
400041bc:	40 00 01 ee 	call  40004974 <gettimeofday>                  
400041c0:	92 10 20 00 	clr  %o1                                       
400041c4:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
400041c8:	c2 24 20 48 	st  %g1, [ %l0 + 0x48 ]                        
                                                                      
  return 0;                                                           
}                                                                     
400041cc:	81 c7 e0 08 	ret                                            
400041d0:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

4000aec4 <IMFS_rmnod>: int IMFS_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) {
4000aec4:	9d e3 bf 98 	save  %sp, -104, %sp                           
  IMFS_jnode_t *the_jnode;                                            
                                                                      
  the_jnode = (IMFS_jnode_t *) pathloc->node_access;                  
4000aec8:	e0 06 40 00 	ld  [ %i1 ], %l0                               
                                                                      
  /*                                                                  
   * Take the node out of the parent's chain that contains this node  
   */                                                                 
                                                                      
  if ( the_jnode->Parent != NULL ) {                                  
4000aecc:	c2 04 20 08 	ld  [ %l0 + 8 ], %g1                           
4000aed0:	80 a0 60 00 	cmp  %g1, 0                                    
4000aed4:	22 80 00 06 	be,a   4000aeec <IMFS_rmnod+0x28>              <== NEVER TAKEN
4000aed8:	c2 14 20 34 	lduh  [ %l0 + 0x34 ], %g1                      <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
4000aedc:	40 00 05 4b 	call  4000c408 <_Chain_Extract>                
4000aee0:	90 10 00 10 	mov  %l0, %o0                                  
    rtems_chain_extract( (rtems_chain_node *) the_jnode );            
    the_jnode->Parent = NULL;                                         
4000aee4:	c0 24 20 08 	clr  [ %l0 + 8 ]                               
                                                                      
  /*                                                                  
   * Decrement the link counter and see if we can free the space.     
   */                                                                 
                                                                      
  the_jnode->st_nlink--;                                              
4000aee8:	c2 14 20 34 	lduh  [ %l0 + 0x34 ], %g1                      
  IMFS_update_ctime( the_jnode );                                     
4000aeec:	92 10 20 00 	clr  %o1                                       
                                                                      
  /*                                                                  
   * Decrement the link counter and see if we can free the space.     
   */                                                                 
                                                                      
  the_jnode->st_nlink--;                                              
4000aef0:	82 00 7f ff 	add  %g1, -1, %g1                              
  IMFS_update_ctime( the_jnode );                                     
4000aef4:	90 07 bf f8 	add  %fp, -8, %o0                              
4000aef8:	40 00 01 0e 	call  4000b330 <gettimeofday>                  
4000aefc:	c2 34 20 34 	sth  %g1, [ %l0 + 0x34 ]                       
4000af00:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
                                                                      
  /*                                                                  
   * The file cannot be open and the link must be less than 1 to free.
   */                                                                 
                                                                      
  if ( !rtems_libio_is_file_open( the_jnode ) && (the_jnode->st_nlink < 1) ) {
4000af04:	90 10 00 10 	mov  %l0, %o0                                  
4000af08:	40 00 01 42 	call  4000b410 <rtems_libio_is_file_open>      
4000af0c:	c2 24 20 48 	st  %g1, [ %l0 + 0x48 ]                        
4000af10:	80 a2 20 00 	cmp  %o0, 0                                    
4000af14:	12 80 00 18 	bne  4000af74 <IMFS_rmnod+0xb0>                <== NEVER TAKEN
4000af18:	01 00 00 00 	nop                                            
4000af1c:	c2 14 20 34 	lduh  [ %l0 + 0x34 ], %g1                      
4000af20:	80 a0 60 00 	cmp  %g1, 0                                    
4000af24:	12 80 00 14 	bne  4000af74 <IMFS_rmnod+0xb0>                <== NEVER TAKEN
4000af28:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
                                                                      
    /*                                                                
     * Is rtems_filesystem_current this node?                         
     */                                                               
                                                                      
    if ( rtems_filesystem_current.node_access == pathloc->node_access )
4000af2c:	c2 00 63 18 	ld  [ %g1 + 0x318 ], %g1	! 4001cf18 <rtems_current_user_env>
4000af30:	c4 06 40 00 	ld  [ %i1 ], %g2                               
4000af34:	c6 00 60 04 	ld  [ %g1 + 4 ], %g3                           
4000af38:	80 a0 c0 02 	cmp  %g3, %g2                                  
4000af3c:	22 80 00 02 	be,a   4000af44 <IMFS_rmnod+0x80>              <== NEVER TAKEN
4000af40:	c0 20 60 04 	clr  [ %g1 + 4 ]                               <== NOT EXECUTED
                                                                      
    /*                                                                
     * Free memory associated with a memory file.                     
     */                                                               
                                                                      
    if ( the_jnode->type == IMFS_SYM_LINK ) {                         
4000af44:	c2 04 20 4c 	ld  [ %l0 + 0x4c ], %g1                        
4000af48:	80 a0 60 04 	cmp  %g1, 4                                    
4000af4c:	12 80 00 08 	bne  4000af6c <IMFS_rmnod+0xa8>                
4000af50:	01 00 00 00 	nop                                            
      if ( the_jnode->info.sym_link.name )                            
4000af54:	d0 04 20 50 	ld  [ %l0 + 0x50 ], %o0                        
4000af58:	80 a2 20 00 	cmp  %o0, 0                                    
4000af5c:	02 80 00 04 	be  4000af6c <IMFS_rmnod+0xa8>                 <== NEVER TAKEN
4000af60:	01 00 00 00 	nop                                            
        free( (void*) the_jnode->info.sym_link.name );                
4000af64:	40 00 00 86 	call  4000b17c <free>                          
4000af68:	01 00 00 00 	nop                                            
    }                                                                 
    free( the_jnode );                                                
4000af6c:	40 00 00 84 	call  4000b17c <free>                          
4000af70:	90 10 00 10 	mov  %l0, %o0                                  
  }                                                                   
                                                                      
  return 0;                                                           
                                                                      
}                                                                     
4000af74:	81 c7 e0 08 	ret                                            
4000af78:	91 e8 20 00 	restore  %g0, 0, %o0                           
4000af7c:	40 00 af c4 	call  40036e8c <__end+0x189cc>                 <== NOT EXECUTED
4000af80:	40 00 af e8 	call  40036f20 <__end+0x18a60>                 <== NOT EXECUTED
4000af84:	40 00 af dc 	call  40036ef4 <__end+0x18a34>                 <== NOT EXECUTED
4000af88:	40 00 af d0 	call  40036ec8 <__end+0x18a08>                 <== NOT EXECUTED
4000af8c:	40 00 af d0 	call  40036ecc <__end+0x18a0c>                 <== NOT EXECUTED
4000af90:	40 00 af dc 	call  40036f00 <__end+0x18a40>                 <== NOT EXECUTED
                                                                      

4000af94 <IMFS_stat>: int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) {
4000af94:	9d e3 bf a0 	save  %sp, -96, %sp                            
  IMFS_fs_info_t *fs_info;                                            
  IMFS_jnode_t   *the_jnode;                                          
  IMFS_device_t  *io;                                                 
                                                                      
  the_jnode = loc->node_access;                                       
4000af98:	c2 06 00 00 	ld  [ %i0 ], %g1                               
                                                                      
                                                                      
  switch ( the_jnode->type ) {                                        
4000af9c:	c4 00 60 4c 	ld  [ %g1 + 0x4c ], %g2                        
4000afa0:	84 00 bf fe 	add  %g2, -2, %g2                              
4000afa4:	80 a0 a0 05 	cmp  %g2, 5                                    
4000afa8:	18 80 00 10 	bgu  4000afe8 <IMFS_stat+0x54>                 <== NEVER TAKEN
4000afac:	85 28 a0 02 	sll  %g2, 2, %g2                               
4000afb0:	07 10 00 2b 	sethi  %hi(0x4000ac00), %g3                    
4000afb4:	86 10 e3 7c 	or  %g3, 0x37c, %g3	! 4000af7c <IMFS_rmnod+0xb8>
4000afb8:	c4 00 c0 02 	ld  [ %g3 + %g2 ], %g2                         
4000afbc:	81 c0 80 00 	jmp  %g2                                       
4000afc0:	01 00 00 00 	nop                                            
  rtems_device_minor_number _minor                                    
)                                                                     
{                                                                     
  union __rtems_dev_t temp;                                           
                                                                      
  temp.__overlay.major = _major;                                      
4000afc4:	c4 18 60 50 	ldd  [ %g1 + 0x50 ], %g2                       
                                                                      
    case IMFS_DEVICE:                                                 
      io           = &the_jnode->info.device;                         
      buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor );
      break;                                                          
4000afc8:	10 80 00 0e 	b  4000b000 <IMFS_stat+0x6c>                   
4000afcc:	c4 3e 60 18 	std  %g2, [ %i1 + 0x18 ]                       
                                                                      
    case IMFS_LINEAR_FILE:                                            
    case IMFS_MEMORY_FILE:                                            
      buf->st_size = the_jnode->info.file.size;                       
4000afd0:	c4 18 60 50 	ldd  [ %g1 + 0x50 ], %g2                       
      break;                                                          
4000afd4:	10 80 00 0b 	b  4000b000 <IMFS_stat+0x6c>                   
4000afd8:	c4 3e 60 20 	std  %g2, [ %i1 + 0x20 ]                       
    case IMFS_SYM_LINK:                                               
      buf->st_size = 0;                                               
      break;                                                          
                                                                      
    case IMFS_FIFO:                                                   
      buf->st_size = 0;                                               
4000afdc:	c0 26 60 20 	clr  [ %i1 + 0x20 ]                            <== NOT EXECUTED
      break;                                                          
4000afe0:	10 80 00 08 	b  4000b000 <IMFS_stat+0x6c>                   <== NOT EXECUTED
4000afe4:	c0 26 60 24 	clr  [ %i1 + 0x24 ]                            <== NOT EXECUTED
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( ENOTSUP );                
4000afe8:	40 00 11 3d 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4000afec:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
4000aff0:	82 10 20 86 	mov  0x86, %g1                                 <== NOT EXECUTED
4000aff4:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
4000aff8:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000affc:	81 e8 00 00 	restore                                        <== NOT EXECUTED
   */                                                                 
  fs_info = loc->mt_entry->fs_info;                                   
  buf->st_dev =                                                       
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
                                                                      
  buf->st_mode  = the_jnode->st_mode;                                 
4000b000:	c6 00 60 30 	ld  [ %g1 + 0x30 ], %g3                        
  buf->st_nlink = the_jnode->st_nlink;                                
4000b004:	c8 10 60 34 	lduh  [ %g1 + 0x34 ], %g4                      
   */                                                                 
  fs_info = loc->mt_entry->fs_info;                                   
  buf->st_dev =                                                       
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
                                                                      
  buf->st_mode  = the_jnode->st_mode;                                 
4000b008:	c6 26 60 0c 	st  %g3, [ %i1 + 0xc ]                         
  buf->st_nlink = the_jnode->st_nlink;                                
  buf->st_ino   = the_jnode->st_ino;                                  
4000b00c:	c6 00 60 38 	ld  [ %g1 + 0x38 ], %g3                        
   * The device number of the IMFS is the major number and the minor is the
   * instance.                                                        
   */                                                                 
  fs_info = loc->mt_entry->fs_info;                                   
  buf->st_dev =                                                       
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
4000b010:	c4 06 20 10 	ld  [ %i0 + 0x10 ], %g2                        
                                                                      
  buf->st_mode  = the_jnode->st_mode;                                 
  buf->st_nlink = the_jnode->st_nlink;                                
  buf->st_ino   = the_jnode->st_ino;                                  
4000b014:	c6 26 60 08 	st  %g3, [ %i1 + 8 ]                           
  buf->st_uid   = the_jnode->st_uid;                                  
  buf->st_gid   = the_jnode->st_gid;                                  
                                                                      
  buf->st_atime = the_jnode->stat_atime;                              
4000b018:	c6 00 60 40 	ld  [ %g1 + 0x40 ], %g3                        
  fs_info = loc->mt_entry->fs_info;                                   
  buf->st_dev =                                                       
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
                                                                      
  buf->st_mode  = the_jnode->st_mode;                                 
  buf->st_nlink = the_jnode->st_nlink;                                
4000b01c:	c8 36 60 10 	sth  %g4, [ %i1 + 0x10 ]                       
  buf->st_ino   = the_jnode->st_ino;                                  
  buf->st_uid   = the_jnode->st_uid;                                  
  buf->st_gid   = the_jnode->st_gid;                                  
                                                                      
  buf->st_atime = the_jnode->stat_atime;                              
4000b020:	c6 26 60 28 	st  %g3, [ %i1 + 0x28 ]                        
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
                                                                      
  buf->st_mode  = the_jnode->st_mode;                                 
  buf->st_nlink = the_jnode->st_nlink;                                
  buf->st_ino   = the_jnode->st_ino;                                  
  buf->st_uid   = the_jnode->st_uid;                                  
4000b024:	c8 10 60 3c 	lduh  [ %g1 + 0x3c ], %g4                      
  buf->st_gid   = the_jnode->st_gid;                                  
                                                                      
  buf->st_atime = the_jnode->stat_atime;                              
  buf->st_mtime = the_jnode->stat_mtime;                              
4000b028:	c6 00 60 44 	ld  [ %g1 + 0x44 ], %g3                        
   * The device number of the IMFS is the major number and the minor is the
   * instance.                                                        
   */                                                                 
  fs_info = loc->mt_entry->fs_info;                                   
  buf->st_dev =                                                       
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
4000b02c:	c4 00 a0 34 	ld  [ %g2 + 0x34 ], %g2                        
                                                                      
  buf->st_mode  = the_jnode->st_mode;                                 
  buf->st_nlink = the_jnode->st_nlink;                                
  buf->st_ino   = the_jnode->st_ino;                                  
  buf->st_uid   = the_jnode->st_uid;                                  
4000b030:	c8 36 60 12 	sth  %g4, [ %i1 + 0x12 ]                       
  buf->st_gid   = the_jnode->st_gid;                                  
                                                                      
  buf->st_atime = the_jnode->stat_atime;                              
  buf->st_mtime = the_jnode->stat_mtime;                              
4000b034:	c6 26 60 30 	st  %g3, [ %i1 + 0x30 ]                        
   * The device number of the IMFS is the major number and the minor is the
   * instance.                                                        
   */                                                                 
  fs_info = loc->mt_entry->fs_info;                                   
  buf->st_dev =                                                       
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
4000b038:	c4 00 80 00 	ld  [ %g2 ], %g2                               
  buf->st_uid   = the_jnode->st_uid;                                  
  buf->st_gid   = the_jnode->st_gid;                                  
                                                                      
  buf->st_atime = the_jnode->stat_atime;                              
  buf->st_mtime = the_jnode->stat_mtime;                              
  buf->st_ctime = the_jnode->stat_ctime;                              
4000b03c:	c6 00 60 48 	ld  [ %g1 + 0x48 ], %g3                        
                                                                      
  buf->st_mode  = the_jnode->st_mode;                                 
  buf->st_nlink = the_jnode->st_nlink;                                
  buf->st_ino   = the_jnode->st_ino;                                  
  buf->st_uid   = the_jnode->st_uid;                                  
  buf->st_gid   = the_jnode->st_gid;                                  
4000b040:	c2 10 60 3e 	lduh  [ %g1 + 0x3e ], %g1                      
                                                                      
  buf->st_atime = the_jnode->stat_atime;                              
  buf->st_mtime = the_jnode->stat_mtime;                              
  buf->st_ctime = the_jnode->stat_ctime;                              
4000b044:	c6 26 60 38 	st  %g3, [ %i1 + 0x38 ]                        
                                                                      
  buf->st_mode  = the_jnode->st_mode;                                 
  buf->st_nlink = the_jnode->st_nlink;                                
  buf->st_ino   = the_jnode->st_ino;                                  
  buf->st_uid   = the_jnode->st_uid;                                  
  buf->st_gid   = the_jnode->st_gid;                                  
4000b048:	c2 36 60 14 	sth  %g1, [ %i1 + 0x14 ]                       
  /*                                                                  
   * The device number of the IMFS is the major number and the minor is the
   * instance.                                                        
   */                                                                 
  fs_info = loc->mt_entry->fs_info;                                   
  buf->st_dev =                                                       
4000b04c:	c4 26 60 04 	st  %g2, [ %i1 + 4 ]                           
4000b050:	03 00 00 3f 	sethi  %hi(0xfc00), %g1                        
4000b054:	82 10 63 fe 	or  %g1, 0x3fe, %g1	! fffe <PROM_START+0xfffe> 
4000b058:	c2 26 40 00 	st  %g1, [ %i1 ]                               
  buf->st_atime = the_jnode->stat_atime;                              
  buf->st_mtime = the_jnode->stat_mtime;                              
  buf->st_ctime = the_jnode->stat_ctime;                              
                                                                      
  return 0;                                                           
}                                                                     
4000b05c:	81 c7 e0 08 	ret                                            
4000b060:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

400041d4 <IMFS_symlink>: int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) {
400041d4:	9d e3 bf 58 	save  %sp, -168, %sp                           
  int                i;                                               
                                                                      
  /*                                                                  
   * Remove any separators at the end of the string.                  
   */                                                                 
  IMFS_get_token( node_name, strlen( node_name ), new_name, &i );     
400041d8:	40 00 47 76 	call  40015fb0 <strlen>                        
400041dc:	90 10 00 1a 	mov  %i2, %o0                                  
400041e0:	96 07 bf fc 	add  %fp, -4, %o3                              
400041e4:	92 10 00 08 	mov  %o0, %o1                                  
400041e8:	a0 07 bf b8 	add  %fp, -72, %l0                             
400041ec:	90 10 00 1a 	mov  %i2, %o0                                  
400041f0:	40 00 31 1f 	call  4001066c <IMFS_get_token>                
400041f4:	94 10 00 10 	mov  %l0, %o2                                  
                                                                      
  /*                                                                  
   * Duplicate link name                                              
   */                                                                 
  info.sym_link.name = strdup(link_name);                             
400041f8:	40 00 47 59 	call  40015f5c <strdup>                        
400041fc:	90 10 00 19 	mov  %i1, %o0                                  
40004200:	d0 27 bf e0 	st  %o0, [ %fp + -32 ]                         
  if (info.sym_link.name == NULL) {                                   
40004204:	80 a2 20 00 	cmp  %o0, 0                                    
40004208:	12 80 00 08 	bne  40004228 <IMFS_symlink+0x54>              <== ALWAYS TAKEN
4000420c:	90 10 00 18 	mov  %i0, %o0                                  
    rtems_set_errno_and_return_minus_one(ENOMEM);                     
40004210:	40 00 43 c9 	call  40015134 <__errno>                       <== NOT EXECUTED
40004214:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
40004218:	82 10 20 0c 	mov  0xc, %g1                                  <== NOT EXECUTED
4000421c:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
40004220:	81 c7 e0 08 	ret                                            
40004224:	81 e8 00 00 	restore                                        
   *        was ONLY passed a NULL when we created the root node.  We 
   *        added a new IMFS_create_root_node() so this path no longer
   *        existed.  The result was simpler code which should not have
   *        this path.                                                
   */                                                                 
  new_node = IMFS_create_node(                                        
40004228:	94 10 00 10 	mov  %l0, %o2                                  
4000422c:	92 10 20 04 	mov  4, %o1                                    
40004230:	17 00 00 28 	sethi  %hi(0xa000), %o3                        
40004234:	98 07 bf e0 	add  %fp, -32, %o4                             
40004238:	96 12 e1 ff 	or  %o3, 0x1ff, %o3                            
4000423c:	40 00 2d c1 	call  4000f940 <IMFS_create_node>              
40004240:	b0 10 20 00 	clr  %i0                                       
    new_name,                                                         
    ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),                     
    &info                                                             
  );                                                                  
                                                                      
  if (new_node == NULL) {                                             
40004244:	80 a2 20 00 	cmp  %o0, 0                                    
40004248:	12 bf ff f6 	bne  40004220 <IMFS_symlink+0x4c>              <== ALWAYS TAKEN
4000424c:	d0 07 bf e0 	ld  [ %fp + -32 ], %o0                         
    free(info.sym_link.name);                                         
40004250:	40 00 01 9f 	call  400048cc <free>                          <== NOT EXECUTED
40004254:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
    rtems_set_errno_and_return_minus_one(ENOMEM);                     
40004258:	40 00 43 b7 	call  40015134 <__errno>                       <== NOT EXECUTED
4000425c:	01 00 00 00 	nop                                            <== NOT EXECUTED
40004260:	82 10 20 0c 	mov  0xc, %g1	! c <PROM_START+0xc>             <== NOT EXECUTED
40004264:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
40004268:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000426c:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

40004270 <IMFS_unlink>: int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) {
40004270:	9d e3 bf 80 	save  %sp, -128, %sp                           
  IMFS_jnode_t                      *node;                            
  rtems_filesystem_location_info_t   the_link;                        
  int                                result = 0;                      
                                                                      
  node = loc->node_access;                                            
40004274:	e0 06 40 00 	ld  [ %i1 ], %l0                               
  /*                                                                  
   * If this is the last last pointer to the node                     
   * free the node.                                                   
   */                                                                 
                                                                      
  if ( node->type == IMFS_HARD_LINK ) {                               
40004278:	c2 04 20 4c 	ld  [ %l0 + 0x4c ], %g1                        
4000427c:	80 a0 60 03 	cmp  %g1, 3                                    
40004280:	12 80 00 29 	bne  40004324 <IMFS_unlink+0xb4>               
40004284:	a4 10 00 18 	mov  %i0, %l2                                  
                                                                      
    if ( !node->info.hard_link.link_node )                            
40004288:	e6 04 20 50 	ld  [ %l0 + 0x50 ], %l3                        
4000428c:	80 a4 e0 00 	cmp  %l3, 0                                    
40004290:	12 80 00 08 	bne  400042b0 <IMFS_unlink+0x40>               <== ALWAYS TAKEN
40004294:	a2 07 bf e4 	add  %fp, -28, %l1                             
      rtems_set_errno_and_return_minus_one( EINVAL );                 
40004298:	40 00 43 a7 	call  40015134 <__errno>                       <== NOT EXECUTED
4000429c:	01 00 00 00 	nop                                            <== NOT EXECUTED
400042a0:	82 10 20 16 	mov  0x16, %g1	! 16 <PROM_START+0x16>          <== NOT EXECUTED
400042a4:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
400042a8:	10 80 00 24 	b  40004338 <IMFS_unlink+0xc8>                 <== NOT EXECUTED
400042ac:	90 10 3f ff 	mov  -1, %o0                                   <== NOT EXECUTED
                                                                      
    the_link = *loc;                                                  
400042b0:	92 10 00 19 	mov  %i1, %o1                                  
400042b4:	94 10 20 14 	mov  0x14, %o2                                 
400042b8:	40 00 45 db 	call  40015a24 <memcpy>                        
400042bc:	90 10 00 11 	mov  %l1, %o0                                  
    the_link.node_access = node->info.hard_link.link_node;            
    IMFS_Set_handlers( &the_link );                                   
400042c0:	90 10 00 11 	mov  %l1, %o0                                  
400042c4:	40 00 2d ea 	call  4000fa6c <IMFS_Set_handlers>             
400042c8:	e6 27 bf e4 	st  %l3, [ %fp + -28 ]                         
    /*                                                                
     *  If removing the last hard link to a node, then we need        
     *  to remove the node that is a link and the node itself.        
     */                                                               
                                                                      
    if ( node->info.hard_link.link_node->st_nlink == 1)               
400042cc:	c2 04 20 50 	ld  [ %l0 + 0x50 ], %g1                        
400042d0:	c6 10 60 34 	lduh  [ %g1 + 0x34 ], %g3                      
400042d4:	80 a0 e0 01 	cmp  %g3, 1                                    
400042d8:	12 80 00 0c 	bne  40004308 <IMFS_unlink+0x98>               
400042dc:	84 00 ff ff 	add  %g3, -1, %g2                              
    {                                                                 
        result = (*the_link.handlers->rmnod_h)( parentloc, &the_link );
400042e0:	c2 07 bf ec 	ld  [ %fp + -20 ], %g1                         
400042e4:	92 10 00 11 	mov  %l1, %o1                                  
400042e8:	c2 00 60 34 	ld  [ %g1 + 0x34 ], %g1                        
400042ec:	9f c0 40 00 	call  %g1                                      
400042f0:	90 10 00 18 	mov  %i0, %o0                                  
        if ( result != 0 )                                            
400042f4:	80 a2 20 00 	cmp  %o0, 0                                    
400042f8:	02 80 00 0b 	be  40004324 <IMFS_unlink+0xb4>                
400042fc:	90 10 3f ff 	mov  -1, %o0                                   
   */                                                                 
                                                                      
  result = (*loc->handlers->rmnod_h)( parentloc, loc );               
                                                                      
  return result;                                                      
}                                                                     
40004300:	81 c7 e0 08 	ret                                            
40004304:	91 e8 00 08 	restore  %g0, %o0, %o0                         
            return -1;                                                
    }                                                                 
    else                                                              
    {                                                                 
        node->info.hard_link.link_node->st_nlink --;                  
        IMFS_update_ctime( node->info.hard_link.link_node );          
40004308:	90 07 bf f8 	add  %fp, -8, %o0                              
        if ( result != 0 )                                            
            return -1;                                                
    }                                                                 
    else                                                              
    {                                                                 
        node->info.hard_link.link_node->st_nlink --;                  
4000430c:	c4 30 60 34 	sth  %g2, [ %g1 + 0x34 ]                       
        IMFS_update_ctime( node->info.hard_link.link_node );          
40004310:	40 00 01 99 	call  40004974 <gettimeofday>                  
40004314:	92 10 20 00 	clr  %o1                                       
40004318:	c2 04 20 50 	ld  [ %l0 + 0x50 ], %g1                        
4000431c:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          
40004320:	c4 20 60 48 	st  %g2, [ %g1 + 0x48 ]                        
                                                                      
  /*                                                                  
   *  Now actually free the node we were asked to free.               
   */                                                                 
                                                                      
  result = (*loc->handlers->rmnod_h)( parentloc, loc );               
40004324:	c2 06 60 08 	ld  [ %i1 + 8 ], %g1                           
40004328:	90 10 00 12 	mov  %l2, %o0                                  
4000432c:	c2 00 60 34 	ld  [ %g1 + 0x34 ], %g1                        
40004330:	9f c0 40 00 	call  %g1                                      
40004334:	92 10 00 19 	mov  %i1, %o1                                  
                                                                      
  return result;                                                      
}                                                                     
40004338:	b0 10 00 08 	mov  %o0, %i0                                  
4000433c:	81 c7 e0 08 	ret                                            
40004340:	81 e8 00 00 	restore                                        
                                                                      

40004344 <IMFS_unmount>: #include <rtems/seterr.h> int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) {
40004344:	9d e3 bf a0 	save  %sp, -96, %sp                            
  IMFS_jnode_t  *node;                                                
                                                                      
  node = mt_entry->mt_point_node.node_access;                         
40004348:	c2 06 20 08 	ld  [ %i0 + 8 ], %g1                           
                                                                      
  /*                                                                  
   * Is the node that we are mounting onto a directory node ?         
   */                                                                 
                                                                      
  if ( node->type != IMFS_DIRECTORY )                                 
4000434c:	c4 00 60 4c 	ld  [ %g1 + 0x4c ], %g2                        
40004350:	80 a0 a0 01 	cmp  %g2, 1                                    
40004354:	22 80 00 06 	be,a   4000436c <IMFS_unmount+0x28>            <== ALWAYS TAKEN
40004358:	c4 00 60 5c 	ld  [ %g1 + 0x5c ], %g2                        
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
4000435c:	40 00 43 76 	call  40015134 <__errno>                       <== NOT EXECUTED
40004360:	01 00 00 00 	nop                                            <== NOT EXECUTED
40004364:	10 80 00 08 	b  40004384 <IMFS_unmount+0x40>                <== NOT EXECUTED
40004368:	82 10 20 14 	mov  0x14, %g1	! 14 <PROM_START+0x14>          <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Did the node indicate that there was a directory mounted here?   
   */                                                                 
                                                                      
  if ( node->info.directory.mt_fs == NULL )                           
4000436c:	80 a0 a0 00 	cmp  %g2, 0                                    
40004370:	32 80 00 08 	bne,a   40004390 <IMFS_unmount+0x4c>           <== ALWAYS TAKEN
40004374:	c0 20 60 5c 	clr  [ %g1 + 0x5c ]                            
    rtems_set_errno_and_return_minus_one( EINVAL );  /* XXX */        
40004378:	40 00 43 6f 	call  40015134 <__errno>                       <== NOT EXECUTED
4000437c:	01 00 00 00 	nop                                            <== NOT EXECUTED
40004380:	82 10 20 16 	mov  0x16, %g1	! 16 <PROM_START+0x16>          <== NOT EXECUTED
40004384:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
40004388:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000438c:	91 e8 3f ff 	restore  %g0, -1, %o0                          <== NOT EXECUTED
   */                                                                 
                                                                      
  node->info.directory.mt_fs = NULL;                                  
                                                                      
  return 0;                                                           
}                                                                     
40004390:	81 c7 e0 08 	ret                                            
40004394:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

400031c0 <RTEMS_Malloc_Initialize>: void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) {
400031c0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  #endif                                                              
                                                                      
  /*                                                                  
   *  If configured, initialize the statistics support                
   */                                                                 
  if ( rtems_malloc_statistics_helpers != NULL ) {                    
400031c4:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
400031c8:	c2 00 60 78 	ld  [ %g1 + 0x78 ], %g1	! 4001d478 <rtems_malloc_statistics_helpers>
400031cc:	80 a0 60 00 	cmp  %g1, 0                                    
400031d0:	02 80 00 05 	be  400031e4 <RTEMS_Malloc_Initialize+0x24>    <== ALWAYS TAKEN
400031d4:	01 00 00 00 	nop                                            
    (*rtems_malloc_statistics_helpers->initialize)();                 
400031d8:	c2 00 40 00 	ld  [ %g1 ], %g1                               <== NOT EXECUTED
400031dc:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
400031e0:	01 00 00 00 	nop                                            <== NOT EXECUTED
  }                                                                   
                                                                      
  /*                                                                  
   *  Initialize the garbage collection list to start with nothing on it.
   */                                                                 
  malloc_deferred_frees_initialize();                                 
400031e4:	40 00 21 2d 	call  4000b698 <malloc_deferred_frees_initialize>
400031e8:	01 00 00 00 	nop                                            
                                                                      
  /*                                                                  
   *  Initialize the optional sbrk support for extending the heap     
   */                                                                 
  if ( rtems_malloc_sbrk_helpers != NULL ) {                          
400031ec:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
400031f0:	c2 00 60 7c 	ld  [ %g1 + 0x7c ], %g1	! 4001d47c <rtems_malloc_sbrk_helpers>
400031f4:	80 a0 60 00 	cmp  %g1, 0                                    
400031f8:	02 80 00 08 	be  40003218 <RTEMS_Malloc_Initialize+0x58>    <== ALWAYS TAKEN
400031fc:	90 10 00 18 	mov  %i0, %o0                                  
    void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)(  
40003200:	c2 00 40 00 	ld  [ %g1 ], %g1                               <== NOT EXECUTED
      heap_begin,                                                     
      sbrk_amount                                                     
    );                                                                
                                                                      
    heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 
40003204:	b2 06 00 19 	add  %i0, %i1, %i1                             <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Initialize the optional sbrk support for extending the heap     
   */                                                                 
  if ( rtems_malloc_sbrk_helpers != NULL ) {                          
    void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)(  
40003208:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
4000320c:	92 10 00 1a 	mov  %i2, %o1                                  <== NOT EXECUTED
      heap_begin,                                                     
      sbrk_amount                                                     
    );                                                                
                                                                      
    heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 
40003210:	b0 10 00 08 	mov  %o0, %i0                                  <== NOT EXECUTED
40003214:	b2 26 40 08 	sub  %i1, %o0, %i1                             <== NOT EXECUTED
   *  of the time under UNIX because zero'ing memory when it is first 
   *  given to a process eliminates the chance of a process seeing data
   *  left over from another process.  This would be a security violation.
   */                                                                 
                                                                      
  if (                                                                
40003218:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
4000321c:	c2 08 60 75 	ldub  [ %g1 + 0x75 ], %g1	! 4001d475 <rtems_unified_work_area>
40003220:	80 a0 60 00 	cmp  %g1, 0                                    
40003224:	12 80 00 0c 	bne  40003254 <RTEMS_Malloc_Initialize+0x94>   
40003228:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
    !rtems_unified_work_area                                          
      && rtems_configuration_get_do_zero_of_workspace()               
4000322c:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
40003230:	c2 08 62 e0 	ldub  [ %g1 + 0x2e0 ], %g1	! 4001cee0 <Configuration+0x28>
40003234:	80 a0 60 00 	cmp  %g1, 0                                    
40003238:	02 80 00 07 	be  40003254 <RTEMS_Malloc_Initialize+0x94>    
4000323c:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
  ) {                                                                 
     memset( heap_begin, 0, heap_size );                              
40003240:	90 10 00 18 	mov  %i0, %o0                                  
40003244:	92 10 20 00 	clr  %o1                                       
40003248:	40 00 33 20 	call  4000fec8 <memset>                        
4000324c:	94 10 00 19 	mov  %i1, %o2                                  
   *  Unfortunately we cannot use assert if this fails because if this
   *  has failed we do not have a heap and if we do not have a heap   
   *  STDIO cannot work because there will be no buffers.             
   */                                                                 
                                                                      
  if ( !rtems_unified_work_area ) {                                   
40003250:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
40003254:	c2 08 60 75 	ldub  [ %g1 + 0x75 ], %g1	! 4001d475 <rtems_unified_work_area>
40003258:	80 a0 60 00 	cmp  %g1, 0                                    
4000325c:	12 80 00 0c 	bne  4000328c <RTEMS_Malloc_Initialize+0xcc>   
40003260:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
  void *area_begin,                                                   
  uintptr_t area_size,                                                
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return _Heap_Initialize( heap, area_begin, area_size, page_size );  
40003264:	d0 00 62 10 	ld  [ %g1 + 0x210 ], %o0	! 4001ce10 <RTEMS_Malloc_Heap>
40003268:	92 10 00 18 	mov  %i0, %o1                                  
4000326c:	94 10 00 19 	mov  %i1, %o2                                  
40003270:	40 00 10 57 	call  400073cc <_Heap_Initialize>              
40003274:	96 10 20 08 	mov  8, %o3                                    
      RTEMS_Malloc_Heap,                                              
      heap_begin,                                                     
      heap_size,                                                      
      CPU_HEAP_ALIGNMENT                                              
    );                                                                
    if ( status == 0 ) {                                              
40003278:	80 a2 20 00 	cmp  %o0, 0                                    
4000327c:	12 80 00 05 	bne  40003290 <RTEMS_Malloc_Initialize+0xd0>   <== ALWAYS TAKEN
40003280:	33 10 00 75 	sethi  %hi(0x4001d400), %i1                    
      rtems_fatal_error_occurred( RTEMS_NO_MEMORY );                  
40003284:	40 00 0e 43 	call  40006b90 <rtems_fatal_error_occurred>    <== NOT EXECUTED
40003288:	90 10 20 1a 	mov  0x1a, %o0                                 <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
  MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) );
4000328c:	33 10 00 75 	sethi  %hi(0x4001d400), %i1                    
40003290:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
40003294:	f0 06 63 a8 	ld  [ %i1 + 0x3a8 ], %i0                       
40003298:	40 00 13 66 	call  40008030 <_Protected_heap_Get_size>      
4000329c:	d0 00 62 10 	ld  [ %g1 + 0x210 ], %o0                       
400032a0:	90 02 00 18 	add  %o0, %i0, %o0                             
400032a4:	d0 26 63 a8 	st  %o0, [ %i1 + 0x3a8 ]                       
      printk( "\n" );                                                 
      rtems_print_buffer( (heap_begin + heap_size) - 48, 48 );        
      rtems_fatal_error_occurred( RTEMS_NO_MEMORY );                  
    }                                                                 
  #endif                                                              
}                                                                     
400032a8:	81 c7 e0 08 	ret                                            
400032ac:	81 e8 00 00 	restore                                        
                                                                      

40002c90 <Stack_check_Dump_threads_usage>: static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) {
40002c90:	9d e3 bf 98 	save  %sp, -104, %sp                           <== NOT EXECUTED
  void           *high_water_mark;                                    
  void           *current;                                            
  Stack_Control  *stack;                                              
  char            name[5];                                            
                                                                      
  if ( !the_thread )                                                  
40002c94:	80 a6 20 00 	cmp  %i0, 0                                    <== NOT EXECUTED
40002c98:	02 80 00 49 	be  40002dbc <Stack_check_Dump_threads_usage+0x12c><== NOT EXECUTED
40002c9c:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    <== NOT EXECUTED
    return;                                                           
                                                                      
  if ( !print_handler )                                               
40002ca0:	e4 00 63 fc 	ld  [ %g1 + 0x3fc ], %l2	! 4001dbfc <print_handler><== NOT EXECUTED
40002ca4:	80 a4 a0 00 	cmp  %l2, 0                                    <== NOT EXECUTED
40002ca8:	02 80 00 45 	be  40002dbc <Stack_check_Dump_threads_usage+0x12c><== NOT EXECUTED
40002cac:	80 a6 3f ff 	cmp  %i0, -1                                   <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Obtain interrupt stack information                              
   */                                                                 
                                                                      
  if (the_thread == (Thread_Control *) -1) {                          
40002cb0:	32 80 00 0a 	bne,a   40002cd8 <Stack_check_Dump_threads_usage+0x48><== NOT EXECUTED
40002cb4:	e8 06 21 48 	ld  [ %i0 + 0x148 ], %l4                       <== NOT EXECUTED
    if (Stack_check_Interrupt_stack.area) {                           
40002cb8:	23 10 00 77 	sethi  %hi(0x4001dc00), %l1                    <== NOT EXECUTED
40002cbc:	a2 14 62 d8 	or  %l1, 0x2d8, %l1	! 4001ded8 <Stack_check_Interrupt_stack><== NOT EXECUTED
40002cc0:	c2 04 60 04 	ld  [ %l1 + 4 ], %g1                           <== NOT EXECUTED
40002cc4:	a8 10 20 00 	clr  %l4                                       <== NOT EXECUTED
40002cc8:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40002ccc:	12 80 00 04 	bne  40002cdc <Stack_check_Dump_threads_usage+0x4c><== NOT EXECUTED
40002cd0:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
40002cd4:	30 80 00 41 	b,a   40002dd8 <Stack_check_Dump_threads_usage+0x148><== NOT EXECUTED
      current = 0;                                                    
    }                                                                 
    else                                                              
      return;                                                         
  } else {                                                            
    stack  = &the_thread->Start.Initial_stack;                        
40002cd8:	a2 06 20 c4 	add  %i0, 0xc4, %l1                            <== NOT EXECUTED
    current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );  
  }                                                                   
                                                                      
  low  = Stack_check_usable_stack_start(stack);                       
40002cdc:	ea 04 60 04 	ld  [ %l1 + 4 ], %l5                           <== NOT EXECUTED
  size = Stack_check_usable_stack_size(stack);                        
40002ce0:	e6 04 40 00 	ld  [ %l1 ], %l3                               <== NOT EXECUTED
  } else {                                                            
    stack  = &the_thread->Start.Initial_stack;                        
    current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );  
  }                                                                   
                                                                      
  low  = Stack_check_usable_stack_start(stack);                       
40002ce4:	aa 05 60 10 	add  %l5, 0x10, %l5                            <== NOT EXECUTED
  size = Stack_check_usable_stack_size(stack);                        
40002ce8:	a6 04 ff f0 	add  %l3, -16, %l3                             <== NOT EXECUTED
                                                                      
  high_water_mark = Stack_check_find_high_water_mark(low, size);      
40002cec:	90 10 00 15 	mov  %l5, %o0                                  <== NOT EXECUTED
40002cf0:	7f ff ff d8 	call  40002c50 <Stack_check_find_high_water_mark><== NOT EXECUTED
40002cf4:	92 10 00 13 	mov  %l3, %o1                                  <== NOT EXECUTED
                                                                      
  if ( high_water_mark )                                              
40002cf8:	80 a0 00 08 	cmp  %g0, %o0                                  <== NOT EXECUTED
40002cfc:	82 60 20 00 	subx  %g0, 0, %g1                              <== NOT EXECUTED
    used = Stack_check_Calculate_used( low, size, high_water_mark );  
40002d00:	a0 05 40 13 	add  %l5, %l3, %l0                             <== NOT EXECUTED
  else                                                                
    used = 0;                                                         
                                                                      
  if ( the_thread ) {                                                 
40002d04:	80 a6 20 00 	cmp  %i0, 0                                    <== NOT EXECUTED
  size = Stack_check_usable_stack_size(stack);                        
                                                                      
  high_water_mark = Stack_check_find_high_water_mark(low, size);      
                                                                      
  if ( high_water_mark )                                              
    used = Stack_check_Calculate_used( low, size, high_water_mark );  
40002d08:	a0 24 00 08 	sub  %l0, %o0, %l0                             <== NOT EXECUTED
  low  = Stack_check_usable_stack_start(stack);                       
  size = Stack_check_usable_stack_size(stack);                        
                                                                      
  high_water_mark = Stack_check_find_high_water_mark(low, size);      
                                                                      
  if ( high_water_mark )                                              
40002d0c:	a0 0c 00 01 	and  %l0, %g1, %l0                             <== NOT EXECUTED
    used = Stack_check_Calculate_used( low, size, high_water_mark );  
  else                                                                
    used = 0;                                                         
                                                                      
  if ( the_thread ) {                                                 
40002d10:	02 80 00 10 	be  40002d50 <Stack_check_Dump_threads_usage+0xc0><== NOT EXECUTED
40002d14:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    <== NOT EXECUTED
    (*print_handler)(                                                 
40002d18:	ea 06 20 08 	ld  [ %i0 + 8 ], %l5                           <== NOT EXECUTED
40002d1c:	ec 00 63 f8 	ld  [ %g1 + 0x3f8 ], %l6                       <== NOT EXECUTED
40002d20:	94 07 bf f8 	add  %fp, -8, %o2                              <== NOT EXECUTED
40002d24:	90 10 00 15 	mov  %l5, %o0                                  <== NOT EXECUTED
40002d28:	40 00 0e 7b 	call  40006714 <rtems_object_get_name>         <== NOT EXECUTED
40002d2c:	92 10 20 05 	mov  5, %o1                                    <== NOT EXECUTED
40002d30:	94 10 00 15 	mov  %l5, %o2                                  <== NOT EXECUTED
40002d34:	96 10 00 08 	mov  %o0, %o3                                  <== NOT EXECUTED
40002d38:	13 10 00 70 	sethi  %hi(0x4001c000), %o1                    <== NOT EXECUTED
40002d3c:	90 10 00 16 	mov  %l6, %o0                                  <== NOT EXECUTED
40002d40:	9f c4 80 00 	call  %l2                                      <== NOT EXECUTED
40002d44:	92 12 63 08 	or  %o1, 0x308, %o1                            <== NOT EXECUTED
    );                                                                
  } else {                                                            
    (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );   
  }                                                                   
                                                                      
  (*print_handler)(                                                   
40002d48:	10 80 00 08 	b  40002d68 <Stack_check_Dump_threads_usage+0xd8><== NOT EXECUTED
40002d4c:	d6 04 40 00 	ld  [ %l1 ], %o3                               <== NOT EXECUTED
      "0x%08" PRIx32 "  %4s",                                         
      the_thread->Object.id,                                          
      rtems_object_get_name( the_thread->Object.id, sizeof(name), name )
    );                                                                
  } else {                                                            
    (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );   
40002d50:	d0 00 63 f8 	ld  [ %g1 + 0x3f8 ], %o0                       <== NOT EXECUTED
40002d54:	13 10 00 70 	sethi  %hi(0x4001c000), %o1                    <== NOT EXECUTED
40002d58:	94 10 3f ff 	mov  -1, %o2                                   <== NOT EXECUTED
40002d5c:	9f c4 80 00 	call  %l2                                      <== NOT EXECUTED
40002d60:	92 12 63 18 	or  %o1, 0x318, %o1                            <== NOT EXECUTED
  }                                                                   
                                                                      
  (*print_handler)(                                                   
40002d64:	d6 04 40 00 	ld  [ %l1 ], %o3                               <== NOT EXECUTED
40002d68:	d4 04 60 04 	ld  [ %l1 + 4 ], %o2                           <== NOT EXECUTED
40002d6c:	25 10 00 76 	sethi  %hi(0x4001d800), %l2                    <== NOT EXECUTED
40002d70:	23 10 00 76 	sethi  %hi(0x4001d800), %l1                    <== NOT EXECUTED
40002d74:	c2 04 a3 fc 	ld  [ %l2 + 0x3fc ], %g1                       <== NOT EXECUTED
40002d78:	d0 04 63 f8 	ld  [ %l1 + 0x3f8 ], %o0                       <== NOT EXECUTED
40002d7c:	96 02 ff ff 	add  %o3, -1, %o3                              <== NOT EXECUTED
40002d80:	98 10 00 14 	mov  %l4, %o4                                  <== NOT EXECUTED
40002d84:	96 02 80 0b 	add  %o2, %o3, %o3                             <== NOT EXECUTED
40002d88:	9a 10 00 13 	mov  %l3, %o5                                  <== NOT EXECUTED
40002d8c:	13 10 00 70 	sethi  %hi(0x4001c000), %o1                    <== NOT EXECUTED
40002d90:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40002d94:	92 12 63 28 	or  %o1, 0x328, %o1	! 4001c328 <__FUNCTION__.5779+0x218><== NOT EXECUTED
    stack->area + stack->size - 1,                                    
    current,                                                          
    size                                                              
  );                                                                  
                                                                      
  if (Stack_check_Initialized == 0) {                                 
40002d98:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    <== NOT EXECUTED
40002d9c:	c2 00 63 f4 	ld  [ %g1 + 0x3f4 ], %g1	! 4001dbf4 <Stack_check_Initialized><== NOT EXECUTED
40002da0:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40002da4:	12 80 00 08 	bne  40002dc4 <Stack_check_Dump_threads_usage+0x134><== NOT EXECUTED
40002da8:	c2 04 a3 fc 	ld  [ %l2 + 0x3fc ], %g1                       <== NOT EXECUTED
    (*print_handler)( print_context, "Unavailable\n" );               
40002dac:	d0 04 63 f8 	ld  [ %l1 + 0x3f8 ], %o0                       <== NOT EXECUTED
40002db0:	13 10 00 70 	sethi  %hi(0x4001c000), %o1                    <== NOT EXECUTED
40002db4:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40002db8:	92 12 63 48 	or  %o1, 0x348, %o1	! 4001c348 <__FUNCTION__.5779+0x238><== NOT EXECUTED
40002dbc:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40002dc0:	81 e8 00 00 	restore                                        <== NOT EXECUTED
  } else {                                                            
    (*print_handler)( print_context, "%8" PRId32 "\n", used );        
40002dc4:	d0 04 63 f8 	ld  [ %l1 + 0x3f8 ], %o0                       <== NOT EXECUTED
40002dc8:	13 10 00 70 	sethi  %hi(0x4001c000), %o1                    <== NOT EXECUTED
40002dcc:	94 10 00 10 	mov  %l0, %o2                                  <== NOT EXECUTED
40002dd0:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40002dd4:	92 12 63 58 	or  %o1, 0x358, %o1                            <== NOT EXECUTED
40002dd8:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40002ddc:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

40002ff0 <Stack_check_Initialize>: /* * Stack_check_Initialize */ void Stack_check_Initialize( void ) {
40002ff0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  static    uint32_t pattern[ 4 ] = {                                 
    0xFEEDF00D, 0x0BAD0D06,  /* FEED FOOD to  BAD DOG */              
    0xDEADF00D, 0x600D0D06   /* DEAD FOOD but GOOD DOG */             
  };                                                                  
                                                                      
  if (Stack_check_Initialized)                                        
40002ff4:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
40002ff8:	c2 00 63 f4 	ld  [ %g1 + 0x3f4 ], %g1	! 4001dbf4 <Stack_check_Initialized>
40002ffc:	80 a0 60 00 	cmp  %g1, 0                                    
40003000:	12 80 00 21 	bne  40003084 <Stack_check_Initialize+0x94>    
40003004:	07 10 00 77 	sethi  %hi(0x4001dc00), %g3                    
  /*                                                                  
   * Dope the pattern and fill areas                                  
   */                                                                 
  p = Stack_check_Pattern.pattern;                                    
  for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) {                        
      p[i] = pattern[ i%4 ];                                          
40003008:	05 10 00 71 	sethi  %hi(0x4001c400), %g2                    
4000300c:	86 10 e2 c8 	or  %g3, 0x2c8, %g3                            
40003010:	84 10 a0 b0 	or  %g2, 0xb0, %g2                             
40003014:	88 08 60 03 	and  %g1, 3, %g4                               
40003018:	89 29 20 02 	sll  %g4, 2, %g4                               
4000301c:	da 00 80 04 	ld  [ %g2 + %g4 ], %o5                         
40003020:	89 28 60 02 	sll  %g1, 2, %g4                               
                                                                      
  /*                                                                  
   * Dope the pattern and fill areas                                  
   */                                                                 
  p = Stack_check_Pattern.pattern;                                    
  for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) {                        
40003024:	82 00 60 01 	inc  %g1                                       
40003028:	80 a0 60 04 	cmp  %g1, 4                                    
4000302c:	12 bf ff fa 	bne  40003014 <Stack_check_Initialize+0x24>    
40003030:	da 20 c0 04 	st  %o5, [ %g3 + %g4 ]                         
  /*                                                                  
   * If appropriate, setup the interrupt stack for high water testing 
   * also.                                                            
   */                                                                 
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if (_CPU_Interrupt_stack_low && _CPU_Interrupt_stack_high) {      
40003034:	03 10 00 78 	sethi  %hi(0x4001e000), %g1                    
40003038:	c2 00 60 c0 	ld  [ %g1 + 0xc0 ], %g1	! 4001e0c0 <_CPU_Interrupt_stack_low>
4000303c:	80 a0 60 00 	cmp  %g1, 0                                    
40003040:	02 80 00 0e 	be  40003078 <Stack_check_Initialize+0x88>     <== NEVER TAKEN
40003044:	05 10 00 78 	sethi  %hi(0x4001e000), %g2                    
40003048:	c6 00 a0 0c 	ld  [ %g2 + 0xc ], %g3	! 4001e00c <_CPU_Interrupt_stack_high>
4000304c:	80 a0 e0 00 	cmp  %g3, 0                                    
40003050:	02 80 00 0a 	be  40003078 <Stack_check_Initialize+0x88>     <== NEVER TAKEN
40003054:	86 20 c0 01 	sub  %g3, %g1, %g3                             
      Stack_check_Interrupt_stack.area = _CPU_Interrupt_stack_low;    
40003058:	05 10 00 77 	sethi  %hi(0x4001dc00), %g2                    
      Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high -
4000305c:	c6 20 a2 d8 	st  %g3, [ %g2 + 0x2d8 ]	! 4001ded8 <Stack_check_Interrupt_stack>
   * If appropriate, setup the interrupt stack for high water testing 
   * also.                                                            
   */                                                                 
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if (_CPU_Interrupt_stack_low && _CPU_Interrupt_stack_high) {      
      Stack_check_Interrupt_stack.area = _CPU_Interrupt_stack_low;    
40003060:	84 10 a2 d8 	or  %g2, 0x2d8, %g2                            
      Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high -
                                  (char *) _CPU_Interrupt_stack_low;  
      Stack_check_Dope_stack(&Stack_check_Interrupt_stack);           
40003064:	90 10 00 01 	mov  %g1, %o0                                  
40003068:	94 10 00 03 	mov  %g3, %o2                                  
   * If appropriate, setup the interrupt stack for high water testing 
   * also.                                                            
   */                                                                 
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if (_CPU_Interrupt_stack_low && _CPU_Interrupt_stack_high) {      
      Stack_check_Interrupt_stack.area = _CPU_Interrupt_stack_low;    
4000306c:	c2 20 a0 04 	st  %g1, [ %g2 + 4 ]                           
      Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high -
                                  (char *) _CPU_Interrupt_stack_low;  
      Stack_check_Dope_stack(&Stack_check_Interrupt_stack);           
40003070:	40 00 35 1a 	call  400104d8 <memset>                        
40003074:	92 10 20 a5 	mov  0xa5, %o1                                 
  }                                                                   
  #endif                                                              
                                                                      
  Stack_check_Initialized = 1;                                        
40003078:	84 10 20 01 	mov  1, %g2                                    
4000307c:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
40003080:	c4 20 63 f4 	st  %g2, [ %g1 + 0x3f4 ]	! 4001dbf4 <Stack_check_Initialized>
40003084:	81 c7 e0 08 	ret                                            
40003088:	81 e8 00 00 	restore                                        
                                                                      

40002c50 <Stack_check_find_high_water_mark>: /* * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS;
40002c50:	90 02 20 10 	add  %o0, 0x10, %o0                            <== NOT EXECUTED
    for (ebase = base + length; base < ebase; base++)                 
40002c54:	84 0a 7f fc 	and  %o1, -4, %g2                              <== NOT EXECUTED
      if (*base != U32_PATTERN)                                       
40002c58:	03 29 69 69 	sethi  %hi(0xa5a5a400), %g1                    <== NOT EXECUTED
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    for (ebase = base + length; base < ebase; base++)                 
40002c5c:	84 02 00 02 	add  %o0, %g2, %g2                             <== NOT EXECUTED
40002c60:	10 80 00 06 	b  40002c78 <Stack_check_find_high_water_mark+0x28><== NOT EXECUTED
40002c64:	82 10 61 a5 	or  %g1, 0x1a5, %g1                            <== NOT EXECUTED
      if (*base != U32_PATTERN)                                       
40002c68:	80 a0 c0 01 	cmp  %g3, %g1                                  <== NOT EXECUTED
40002c6c:	12 80 00 07 	bne  40002c88 <Stack_check_find_high_water_mark+0x38><== NOT EXECUTED
40002c70:	01 00 00 00 	nop                                            <== NOT EXECUTED
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    for (ebase = base + length; base < ebase; base++)                 
40002c74:	90 02 20 04 	add  %o0, 4, %o0                               <== NOT EXECUTED
40002c78:	80 a2 00 02 	cmp  %o0, %g2                                  <== NOT EXECUTED
40002c7c:	2a bf ff fb 	bcs,a   40002c68 <Stack_check_find_high_water_mark+0x18><== NOT EXECUTED
40002c80:	c6 02 00 00 	ld  [ %o0 ], %g3                               <== NOT EXECUTED
40002c84:	90 10 20 00 	clr  %o0                                       <== NOT EXECUTED
      if (*base != U32_PATTERN)                                       
        return (void *) base;                                         
  #endif                                                              
                                                                      
  return (void *)0;                                                   
}                                                                     
40002c88:	81 c3 e0 08 	retl                                           <== NOT EXECUTED
                                                                      

40002e54 <Stack_check_report_blown_task>: * * NOTE: The system is in a questionable state... we may not get * the following message out. */ void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok) {
40002e54:	9d e3 bf 80 	save  %sp, -128, %sp                           <== NOT EXECUTED
  Stack_Control *stack = &running->Start.Initial_stack;               
  void *pattern_area = Stack_check_Get_pattern_area(stack);           
  char name [32];                                                     
                                                                      
  printk("BLOWN STACK!!!\n");                                         
40002e58:	11 10 00 70 	sethi  %hi(0x4001c000), %o0                    <== NOT EXECUTED
 *        the following message out.                                  
 */                                                                   
void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok)
{                                                                     
  Stack_Control *stack = &running->Start.Initial_stack;               
  void *pattern_area = Stack_check_Get_pattern_area(stack);           
40002e5c:	e0 06 20 c8 	ld  [ %i0 + 0xc8 ], %l0                        <== NOT EXECUTED
  char name [32];                                                     
                                                                      
  printk("BLOWN STACK!!!\n");                                         
40002e60:	40 00 04 b0 	call  40004120 <printk>                        <== NOT EXECUTED
40002e64:	90 12 23 c8 	or  %o0, 0x3c8, %o0                            <== NOT EXECUTED
  printk("task control block: 0x%08" PRIxPTR "\n", running);          
40002e68:	92 10 00 18 	mov  %i0, %o1                                  <== NOT EXECUTED
40002e6c:	11 10 00 70 	sethi  %hi(0x4001c000), %o0                    <== NOT EXECUTED
40002e70:	40 00 04 ac 	call  40004120 <printk>                        <== NOT EXECUTED
40002e74:	90 12 23 d8 	or  %o0, 0x3d8, %o0	! 4001c3d8 <__FUNCTION__.5779+0x2c8><== NOT EXECUTED
  printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id);   
40002e78:	d2 06 20 08 	ld  [ %i0 + 8 ], %o1                           <== NOT EXECUTED
40002e7c:	11 10 00 70 	sethi  %hi(0x4001c000), %o0                    <== NOT EXECUTED
40002e80:	40 00 04 a8 	call  40004120 <printk>                        <== NOT EXECUTED
40002e84:	90 12 23 f8 	or  %o0, 0x3f8, %o0	! 4001c3f8 <__FUNCTION__.5779+0x2e8><== NOT EXECUTED
  printk(                                                             
40002e88:	d2 06 20 0c 	ld  [ %i0 + 0xc ], %o1                         <== NOT EXECUTED
40002e8c:	11 10 00 71 	sethi  %hi(0x4001c400), %o0                    <== NOT EXECUTED
40002e90:	40 00 04 a4 	call  40004120 <printk>                        <== NOT EXECUTED
40002e94:	90 12 20 10 	or  %o0, 0x10, %o0	! 4001c410 <__FUNCTION__.5779+0x300><== NOT EXECUTED
    "task name: 0x%08" PRIx32 "\n",                                   
    running->Object.name.name_u32                                     
  );                                                                  
  printk(                                                             
40002e98:	d0 06 20 08 	ld  [ %i0 + 8 ], %o0                           <== NOT EXECUTED
40002e9c:	94 07 bf e0 	add  %fp, -32, %o2                             <== NOT EXECUTED
40002ea0:	40 00 0e 1d 	call  40006714 <rtems_object_get_name>         <== NOT EXECUTED
40002ea4:	92 10 20 20 	mov  0x20, %o1                                 <== NOT EXECUTED
40002ea8:	92 10 00 08 	mov  %o0, %o1                                  <== NOT EXECUTED
40002eac:	11 10 00 71 	sethi  %hi(0x4001c400), %o0                    <== NOT EXECUTED
40002eb0:	40 00 04 9c 	call  40004120 <printk>                        <== NOT EXECUTED
40002eb4:	90 12 20 28 	or  %o0, 0x28, %o0	! 4001c428 <__FUNCTION__.5779+0x318><== NOT EXECUTED
    "task name string: %s\n",                                         
    rtems_object_get_name(running->Object.id, sizeof(name), name)     
  );                                                                  
  printk(                                                             
40002eb8:	d2 06 20 c4 	ld  [ %i0 + 0xc4 ], %o1                        <== NOT EXECUTED
40002ebc:	d4 06 20 c8 	ld  [ %i0 + 0xc8 ], %o2                        <== NOT EXECUTED
40002ec0:	11 10 00 71 	sethi  %hi(0x4001c400), %o0                    <== NOT EXECUTED
40002ec4:	96 02 80 09 	add  %o2, %o1, %o3                             <== NOT EXECUTED
40002ec8:	40 00 04 96 	call  40004120 <printk>                        <== NOT EXECUTED
40002ecc:	90 12 20 40 	or  %o0, 0x40, %o0                             <== NOT EXECUTED
    "task stack area (%lu Bytes): 0x%08" PRIxPTR " .. 0x%08" PRIxPTR "\n",
    (unsigned long) stack->size,                                      
    stack->area,                                                      
    ((char *) stack->area + stack->size)                              
  );                                                                  
  if (!pattern_ok) {                                                  
40002ed0:	80 8e 60 ff 	btst  0xff, %i1                                <== NOT EXECUTED
40002ed4:	12 80 00 07 	bne  40002ef0 <Stack_check_report_blown_task+0x9c><== NOT EXECUTED
40002ed8:	11 10 00 71 	sethi  %hi(0x4001c400), %o0                    <== NOT EXECUTED
    printk(                                                           
40002edc:	96 04 20 18 	add  %l0, 0x18, %o3                            <== NOT EXECUTED
40002ee0:	90 12 20 78 	or  %o0, 0x78, %o0                             <== NOT EXECUTED
40002ee4:	92 10 20 10 	mov  0x10, %o1                                 <== NOT EXECUTED
40002ee8:	40 00 04 8e 	call  40004120 <printk>                        <== NOT EXECUTED
40002eec:	94 04 20 08 	add  %l0, 8, %o2                               <== NOT EXECUTED
          rtems_configuration_get_user_multiprocessing_table()->node  
      );                                                              
    }                                                                 
  #endif                                                              
                                                                      
  rtems_fatal_error_occurred(0x81);                                   
40002ef0:	40 00 10 40 	call  40006ff0 <rtems_fatal_error_occurred>    <== NOT EXECUTED
40002ef4:	90 10 20 81 	mov  0x81, %o0                                 <== NOT EXECUTED
                                                                      

4000b4ec <Untar_FromFile>: *************************************************************************/ int Untar_FromFile( const char *tar_name ) {
4000b4ec:	9d e3 be d0 	save  %sp, -304, %sp                           <== NOT EXECUTED
   unsigned long  size;                                               
   unsigned char  linkflag;                                           
                                                                      
                                                                      
   retval = UNTAR_SUCCESSFUL;                                         
   bufr = (char *)malloc(512);                                        
4000b4f0:	7f ff e3 a3 	call  4000437c <malloc>                        <== NOT EXECUTED
4000b4f4:	90 10 22 00 	mov  0x200, %o0                                <== NOT EXECUTED
   if (bufr == NULL)                                                  
4000b4f8:	a2 10 20 01 	mov  1, %l1                                    <== NOT EXECUTED
   unsigned long  size;                                               
   unsigned char  linkflag;                                           
                                                                      
                                                                      
   retval = UNTAR_SUCCESSFUL;                                         
   bufr = (char *)malloc(512);                                        
4000b4fc:	a0 10 00 08 	mov  %o0, %l0                                  <== NOT EXECUTED
   if (bufr == NULL)                                                  
4000b500:	80 a4 20 00 	cmp  %l0, 0                                    <== NOT EXECUTED
4000b504:	02 80 00 95 	be  4000b758 <Untar_FromFile+0x26c>            <== NOT EXECUTED
4000b508:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
   {                                                                  
      return(UNTAR_FAIL);                                             
   }                                                                  
                                                                      
   fd = open(tar_name, O_RDONLY);                                     
4000b50c:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
4000b510:	7f ff e5 b7 	call  40004bec <open>                          <== NOT EXECUTED
4000b514:	33 10 00 8a 	sethi  %hi(0x40022800), %i1                    <== NOT EXECUTED
      if ((n = read(fd, bufr, 512)) != 512)                           
      {                                                               
         break;                                                       
      }                                                               
                                                                      
      if (strncmp(&bufr[257], "ustar  ", 7))                          
4000b518:	b0 04 21 01 	add  %l0, 0x101, %i0                           <== NOT EXECUTED
   if (bufr == NULL)                                                  
   {                                                                  
      return(UNTAR_FAIL);                                             
   }                                                                  
                                                                      
   fd = open(tar_name, O_RDONLY);                                     
4000b51c:	a4 10 00 08 	mov  %o0, %l2                                  <== NOT EXECUTED
      if ((n = read(fd, bufr, 512)) != 512)                           
      {                                                               
         break;                                                       
      }                                                               
                                                                      
      if (strncmp(&bufr[257], "ustar  ", 7))                          
4000b520:	b2 16 61 c0 	or  %i1, 0x1c0, %i1                            <== NOT EXECUTED
      {                                                               
         break;                                                       
      }                                                               
                                                                      
      strncpy(fname, bufr, MAX_NAME_FIELD_SIZE);                      
4000b524:	a6 07 bf 98 	add  %fp, -104, %l3                            <== NOT EXECUTED
 **************************************************************************
 * Change History:                                                        *
 *  12/30/1998 - Creation (JWJ)                                           *
 *************************************************************************/
int                                                                   
Untar_FromFile(                                                       
4000b528:	b4 04 20 0c 	add  %l0, 0xc, %i2                             <== NOT EXECUTED
4000b52c:	b6 04 20 08 	add  %l0, 8, %i3                               <== NOT EXECUTED
       * We've decoded the header, now figure out what it contains and
       * do something with it.                                        
       *****************************************************************/
      if (linkflag == SYMTYPE)                                        
      {                                                               
         strncpy(linkname, &bufr[157], MAX_NAME_FIELD_SIZE);          
4000b530:	ae 07 bf 30 	add  %fp, -208, %l7                            <== NOT EXECUTED
4000b534:	b8 04 20 9d 	add  %l0, 0x9d, %i4                            <== NOT EXECUTED
   while (1)                                                          
   {                                                                  
      /* Read the header */                                           
      /* If the header read fails, we just consider it the end        
         of the tarfile. */                                           
      if ((n = read(fd, bufr, 512)) != 512)                           
4000b538:	90 10 00 12 	mov  %l2, %o0                                  <== NOT EXECUTED
4000b53c:	92 10 00 10 	mov  %l0, %o1                                  <== NOT EXECUTED
4000b540:	7f ff e6 7d 	call  40004f34 <read>                          <== NOT EXECUTED
4000b544:	94 10 22 00 	mov  0x200, %o2                                <== NOT EXECUTED
4000b548:	80 a2 22 00 	cmp  %o0, 0x200                                <== NOT EXECUTED
4000b54c:	12 80 00 7e 	bne  4000b744 <Untar_FromFile+0x258>           <== NOT EXECUTED
4000b550:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
      {                                                               
         break;                                                       
      }                                                               
                                                                      
      if (strncmp(&bufr[257], "ustar  ", 7))                          
4000b554:	92 10 00 19 	mov  %i1, %o1                                  <== NOT EXECUTED
4000b558:	40 00 22 6e 	call  40013f10 <strncmp>                       <== NOT EXECUTED
4000b55c:	94 10 20 07 	mov  7, %o2                                    <== NOT EXECUTED
4000b560:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000b564:	12 80 00 78 	bne  4000b744 <Untar_FromFile+0x258>           <== NOT EXECUTED
4000b568:	90 10 00 13 	mov  %l3, %o0                                  <== NOT EXECUTED
      {                                                               
         break;                                                       
      }                                                               
                                                                      
      strncpy(fname, bufr, MAX_NAME_FIELD_SIZE);                      
4000b56c:	92 10 00 10 	mov  %l0, %o1                                  <== NOT EXECUTED
4000b570:	40 00 22 c4 	call  40014080 <strncpy>                       <== NOT EXECUTED
4000b574:	94 10 20 63 	mov  0x63, %o2                                 <== NOT EXECUTED
      fname[MAX_NAME_FIELD_SIZE] = '\0';                              
                                                                      
      linkflag   = bufr[156];                                         
4000b578:	c8 0c 20 9c 	ldub  [ %l0 + 0x9c ], %g4                      <== NOT EXECUTED
      {                                                               
         break;                                                       
      }                                                               
                                                                      
      strncpy(fname, bufr, MAX_NAME_FIELD_SIZE);                      
      fname[MAX_NAME_FIELD_SIZE] = '\0';                              
4000b57c:	c0 2f bf fb 	clrb  [ %fp + -5 ]                             <== NOT EXECUTED
                                                                      
      linkflag   = bufr[156];                                         
4000b580:	82 10 00 10 	mov  %l0, %g1                                  <== NOT EXECUTED
 **************************************************************************
 * Change History:                                                        *
 *  12/30/1998 - Creation (JWJ)                                           *
 *************************************************************************/
int                                                                   
Untar_FromFile(                                                       
4000b584:	84 10 00 10 	mov  %l0, %g2                                  <== NOT EXECUTED
4000b588:	a2 10 20 00 	clr  %l1                                       <== NOT EXECUTED
   unsigned long num;                                                 
                                                                      
   num = 0;                                                           
   for (i=0; i < len; i++)                                            
   {                                                                  
      if ((octascii[i] < '0') || (octascii[i] > '9'))                 
4000b58c:	c6 08 a0 7c 	ldub  [ %g2 + 0x7c ], %g3                      <== NOT EXECUTED
      {                                                               
         continue;                                                    
      }                                                               
      num  = num * 8 + ((unsigned long)(octascii[i] - '0'));          
4000b590:	9b 2c 60 03 	sll  %l1, 3, %o5                               <== NOT EXECUTED
4000b594:	99 28 e0 18 	sll  %g3, 0x18, %o4                            <== NOT EXECUTED
4000b598:	84 00 a0 01 	inc  %g2                                       <== NOT EXECUTED
4000b59c:	99 3b 20 18 	sra  %o4, 0x18, %o4                            <== NOT EXECUTED
   unsigned long num;                                                 
                                                                      
   num = 0;                                                           
   for (i=0; i < len; i++)                                            
   {                                                                  
      if ((octascii[i] < '0') || (octascii[i] > '9'))                 
4000b5a0:	86 00 ff d0 	add  %g3, -48, %g3                             <== NOT EXECUTED
4000b5a4:	86 08 e0 ff 	and  %g3, 0xff, %g3                            <== NOT EXECUTED
4000b5a8:	80 a0 e0 09 	cmp  %g3, 9                                    <== NOT EXECUTED
4000b5ac:	18 80 00 03 	bgu  4000b5b8 <Untar_FromFile+0xcc>            <== NOT EXECUTED
4000b5b0:	98 03 3f d0 	add  %o4, -48, %o4                             <== NOT EXECUTED
      {                                                               
         continue;                                                    
      }                                                               
      num  = num * 8 + ((unsigned long)(octascii[i] - '0'));          
4000b5b4:	a2 03 00 0d 	add  %o4, %o5, %l1                             <== NOT EXECUTED
{                                                                     
   size_t        i;                                                   
   unsigned long num;                                                 
                                                                      
   num = 0;                                                           
   for (i=0; i < len; i++)                                            
4000b5b8:	80 a0 80 1a 	cmp  %g2, %i2                                  <== NOT EXECUTED
4000b5bc:	32 bf ff f5 	bne,a   4000b590 <Untar_FromFile+0xa4>         <== NOT EXECUTED
4000b5c0:	c6 08 a0 7c 	ldub  [ %g2 + 0x7c ], %g3                      <== NOT EXECUTED
 **************************************************************************
 * Change History:                                                        *
 *  12/30/1998 - Creation (JWJ)                                           *
 *************************************************************************/
int                                                                   
Untar_FromFile(                                                       
4000b5c4:	86 10 20 00 	clr  %g3                                       <== NOT EXECUTED
   unsigned long num;                                                 
                                                                      
   num = 0;                                                           
   for (i=0; i < len; i++)                                            
   {                                                                  
      if ((octascii[i] < '0') || (octascii[i] > '9'))                 
4000b5c8:	c4 08 60 94 	ldub  [ %g1 + 0x94 ], %g2                      <== NOT EXECUTED
      {                                                               
         continue;                                                    
      }                                                               
      num  = num * 8 + ((unsigned long)(octascii[i] - '0'));          
4000b5cc:	9b 28 e0 03 	sll  %g3, 3, %o5                               <== NOT EXECUTED
4000b5d0:	99 28 a0 18 	sll  %g2, 0x18, %o4                            <== NOT EXECUTED
4000b5d4:	82 00 60 01 	inc  %g1                                       <== NOT EXECUTED
4000b5d8:	99 3b 20 18 	sra  %o4, 0x18, %o4                            <== NOT EXECUTED
   unsigned long num;                                                 
                                                                      
   num = 0;                                                           
   for (i=0; i < len; i++)                                            
   {                                                                  
      if ((octascii[i] < '0') || (octascii[i] > '9'))                 
4000b5dc:	84 00 bf d0 	add  %g2, -48, %g2                             <== NOT EXECUTED
4000b5e0:	84 08 a0 ff 	and  %g2, 0xff, %g2                            <== NOT EXECUTED
4000b5e4:	80 a0 a0 09 	cmp  %g2, 9                                    <== NOT EXECUTED
4000b5e8:	18 80 00 03 	bgu  4000b5f4 <Untar_FromFile+0x108>           <== NOT EXECUTED
4000b5ec:	98 03 3f d0 	add  %o4, -48, %o4                             <== NOT EXECUTED
      {                                                               
         continue;                                                    
      }                                                               
      num  = num * 8 + ((unsigned long)(octascii[i] - '0'));          
4000b5f0:	86 03 00 0d 	add  %o4, %o5, %g3                             <== NOT EXECUTED
{                                                                     
   size_t        i;                                                   
   unsigned long num;                                                 
                                                                      
   num = 0;                                                           
   for (i=0; i < len; i++)                                            
4000b5f4:	80 a0 40 1b 	cmp  %g1, %i3                                  <== NOT EXECUTED
4000b5f8:	32 bf ff f5 	bne,a   4000b5cc <Untar_FromFile+0xe0>         <== NOT EXECUTED
4000b5fc:	c4 08 60 94 	ldub  [ %g1 + 0x94 ], %g2                      <== NOT EXECUTED
4000b600:	82 10 20 00 	clr  %g1                                       <== NOT EXECUTED
4000b604:	84 10 20 00 	clr  %g2                                       <== NOT EXECUTED
   int  i, sum;                                                       
                                                                      
   sum = 0;                                                           
   for (i=0; i<512; i++)                                              
   {                                                                  
      if ((i >= 148) && (i < 156))                                    
4000b608:	9a 00 bf 6c 	add  %g2, -148, %o5                            <== NOT EXECUTED
4000b60c:	80 a3 60 07 	cmp  %o5, 7                                    <== NOT EXECUTED
4000b610:	38 80 00 04 	bgu,a   4000b620 <Untar_FromFile+0x134>        <== NOT EXECUTED
4000b614:	da 0c 00 02 	ldub  [ %l0 + %g2 ], %o5                       <== NOT EXECUTED
         sum += 0xff & ' ';                                           
4000b618:	10 80 00 03 	b  4000b624 <Untar_FromFile+0x138>             <== NOT EXECUTED
4000b61c:	82 00 60 20 	add  %g1, 0x20, %g1                            <== NOT EXECUTED
      else                                                            
         sum += 0xff & bufr[i];                                       
4000b620:	82 00 40 0d 	add  %g1, %o5, %g1                             <== NOT EXECUTED
)                                                                     
{                                                                     
   int  i, sum;                                                       
                                                                      
   sum = 0;                                                           
   for (i=0; i<512; i++)                                              
4000b624:	84 00 a0 01 	inc  %g2                                       <== NOT EXECUTED
4000b628:	80 a0 a2 00 	cmp  %g2, 0x200                                <== NOT EXECUTED
4000b62c:	12 bf ff f8 	bne  4000b60c <Untar_FromFile+0x120>           <== NOT EXECUTED
4000b630:	9a 00 bf 6c 	add  %g2, -148, %o5                            <== NOT EXECUTED
       * header, but the checksum field is substituted with blanks.   
       ******************************************************************/
      hdr_chksum = _rtems_octal2ulong(&bufr[148], 8);                 
      sum = _rtems_tar_header_checksum(bufr);                         
                                                                      
      if (sum != hdr_chksum)                                          
4000b634:	80 a0 40 03 	cmp  %g1, %g3                                  <== NOT EXECUTED
4000b638:	02 80 00 04 	be  4000b648 <Untar_FromFile+0x15c>            <== NOT EXECUTED
4000b63c:	82 09 20 ff 	and  %g4, 0xff, %g1                            <== NOT EXECUTED
4000b640:	10 80 00 42 	b  4000b748 <Untar_FromFile+0x25c>             <== NOT EXECUTED
4000b644:	a2 10 20 02 	mov  2, %l1                                    <== NOT EXECUTED
                                                                      
      /******************************************************************
       * We've decoded the header, now figure out what it contains and
       * do something with it.                                        
       *****************************************************************/
      if (linkflag == SYMTYPE)                                        
4000b648:	80 a0 60 32 	cmp  %g1, 0x32                                 <== NOT EXECUTED
4000b64c:	12 80 00 0c 	bne  4000b67c <Untar_FromFile+0x190>           <== NOT EXECUTED
4000b650:	80 a0 60 30 	cmp  %g1, 0x30                                 <== NOT EXECUTED
      {                                                               
         strncpy(linkname, &bufr[157], MAX_NAME_FIELD_SIZE);          
4000b654:	92 10 00 1c 	mov  %i4, %o1                                  <== NOT EXECUTED
4000b658:	90 10 00 17 	mov  %l7, %o0                                  <== NOT EXECUTED
4000b65c:	40 00 22 89 	call  40014080 <strncpy>                       <== NOT EXECUTED
4000b660:	94 10 20 63 	mov  0x63, %o2                                 <== NOT EXECUTED
         linkname[MAX_NAME_FIELD_SIZE] = '\0';                        
         symlink(linkname,fname);                                     
4000b664:	90 10 00 17 	mov  %l7, %o0                                  <== NOT EXECUTED
       * do something with it.                                        
       *****************************************************************/
      if (linkflag == SYMTYPE)                                        
      {                                                               
         strncpy(linkname, &bufr[157], MAX_NAME_FIELD_SIZE);          
         linkname[MAX_NAME_FIELD_SIZE] = '\0';                        
4000b668:	c0 2f bf 93 	clrb  [ %fp + -109 ]                           <== NOT EXECUTED
         symlink(linkname,fname);                                     
4000b66c:	40 00 08 0c 	call  4000d69c <symlink>                       <== NOT EXECUTED
4000b670:	92 10 00 13 	mov  %l3, %o1                                  <== NOT EXECUTED
   while (1)                                                          
   {                                                                  
      /* Read the header */                                           
      /* If the header read fails, we just consider it the end        
         of the tarfile. */                                           
      if ((n = read(fd, bufr, 512)) != 512)                           
4000b674:	10 bf ff b2 	b  4000b53c <Untar_FromFile+0x50>              <== NOT EXECUTED
4000b678:	90 10 00 12 	mov  %l2, %o0                                  <== NOT EXECUTED
      {                                                               
         strncpy(linkname, &bufr[157], MAX_NAME_FIELD_SIZE);          
         linkname[MAX_NAME_FIELD_SIZE] = '\0';                        
         symlink(linkname,fname);                                     
      }                                                               
      else if (linkflag == REGTYPE)                                   
4000b67c:	12 80 00 2b 	bne  4000b728 <Untar_FromFile+0x23c>           <== NOT EXECUTED
4000b680:	80 a0 60 35 	cmp  %g1, 0x35                                 <== NOT EXECUTED
                                                                      
         /******************************************************************
          * Read out the data.  There are nblocks of data where nblocks
          * is the size rounded to the nearest 512-byte boundary.     
          *****************************************************************/
         nblocks = (((size) + 511) & ~511) / 512;                     
4000b684:	ba 04 61 ff 	add  %l1, 0x1ff, %i5                           <== NOT EXECUTED
                                                                      
         if ((out_fd = creat(fname, 0644)) == -1)                     
4000b688:	90 10 00 13 	mov  %l3, %o0                                  <== NOT EXECUTED
4000b68c:	92 10 21 a4 	mov  0x1a4, %o1                                <== NOT EXECUTED
4000b690:	40 00 19 16 	call  40011ae8 <creat>                         <== NOT EXECUTED
4000b694:	bb 37 60 09 	srl  %i5, 9, %i5                               <== NOT EXECUTED
4000b698:	aa 10 20 00 	clr  %l5                                       <== NOT EXECUTED
4000b69c:	a8 10 00 08 	mov  %o0, %l4                                  <== NOT EXECUTED
4000b6a0:	80 a2 3f ff 	cmp  %o0, -1                                   <== NOT EXECUTED
4000b6a4:	12 80 00 18 	bne  4000b704 <Untar_FromFile+0x218>           <== NOT EXECUTED
4000b6a8:	ac 10 20 00 	clr  %l6                                       <== NOT EXECUTED
         {                                                            
            for (i=0; i<nblocks; i++)                                 
4000b6ac:	10 80 00 07 	b  4000b6c8 <Untar_FromFile+0x1dc>             <== NOT EXECUTED
4000b6b0:	80 a5 80 1d 	cmp  %l6, %i5                                  <== NOT EXECUTED
            {                                                         
               n = read(fd, bufr, 512);                               
4000b6b4:	90 10 00 12 	mov  %l2, %o0                                  <== NOT EXECUTED
4000b6b8:	92 10 00 10 	mov  %l0, %o1                                  <== NOT EXECUTED
4000b6bc:	7f ff e6 1e 	call  40004f34 <read>                          <== NOT EXECUTED
4000b6c0:	94 10 22 00 	mov  0x200, %o2                                <== NOT EXECUTED
          *****************************************************************/
         nblocks = (((size) + 511) & ~511) / 512;                     
                                                                      
         if ((out_fd = creat(fname, 0644)) == -1)                     
         {                                                            
            for (i=0; i<nblocks; i++)                                 
4000b6c4:	80 a5 80 1d 	cmp  %l6, %i5                                  <== NOT EXECUTED
4000b6c8:	2a bf ff fb 	bcs,a   4000b6b4 <Untar_FromFile+0x1c8>        <== NOT EXECUTED
4000b6cc:	ac 05 a0 01 	inc  %l6                                       <== NOT EXECUTED
   while (1)                                                          
   {                                                                  
      /* Read the header */                                           
      /* If the header read fails, we just consider it the end        
         of the tarfile. */                                           
      if ((n = read(fd, bufr, 512)) != 512)                           
4000b6d0:	10 bf ff 9b 	b  4000b53c <Untar_FromFile+0x50>              <== NOT EXECUTED
4000b6d4:	90 10 00 12 	mov  %l2, %o0                                  <== NOT EXECUTED
         }                                                            
         else                                                         
         {                                                            
            for (i=0; i<nblocks; i++)                                 
            {                                                         
               n = read(fd, bufr, 512);                               
4000b6d8:	7f ff e6 17 	call  40004f34 <read>                          <== NOT EXECUTED
4000b6dc:	01 00 00 00 	nop                                            <== NOT EXECUTED
               n = MIN(n, size - i*512);                              
               write(out_fd, bufr, n);                                
4000b6e0:	80 a2 00 11 	cmp  %o0, %l1                                  <== NOT EXECUTED
4000b6e4:	08 80 00 03 	bleu  4000b6f0 <Untar_FromFile+0x204>          <== NOT EXECUTED
4000b6e8:	94 10 00 08 	mov  %o0, %o2                                  <== NOT EXECUTED
4000b6ec:	94 10 00 11 	mov  %l1, %o2                                  <== NOT EXECUTED
               n = read(fd, bufr, 512);                               
            }                                                         
         }                                                            
         else                                                         
         {                                                            
            for (i=0; i<nblocks; i++)                                 
4000b6f0:	aa 05 60 01 	inc  %l5                                       <== NOT EXECUTED
4000b6f4:	a2 04 7e 00 	add  %l1, -512, %l1                            <== NOT EXECUTED
            {                                                         
               n = read(fd, bufr, 512);                               
               n = MIN(n, size - i*512);                              
               write(out_fd, bufr, n);                                
4000b6f8:	90 10 00 14 	mov  %l4, %o0                                  <== NOT EXECUTED
4000b6fc:	40 00 08 2d 	call  4000d7b0 <write>                         <== NOT EXECUTED
4000b700:	92 10 00 10 	mov  %l0, %o1                                  <== NOT EXECUTED
         }                                                            
         else                                                         
         {                                                            
            for (i=0; i<nblocks; i++)                                 
            {                                                         
               n = read(fd, bufr, 512);                               
4000b704:	92 10 00 10 	mov  %l0, %o1                                  <== NOT EXECUTED
4000b708:	94 10 22 00 	mov  0x200, %o2                                <== NOT EXECUTED
               n = read(fd, bufr, 512);                               
            }                                                         
         }                                                            
         else                                                         
         {                                                            
            for (i=0; i<nblocks; i++)                                 
4000b70c:	80 a5 40 1d 	cmp  %l5, %i5                                  <== NOT EXECUTED
4000b710:	0a bf ff f2 	bcs  4000b6d8 <Untar_FromFile+0x1ec>           <== NOT EXECUTED
4000b714:	90 10 00 12 	mov  %l2, %o0                                  <== NOT EXECUTED
            {                                                         
               n = read(fd, bufr, 512);                               
               n = MIN(n, size - i*512);                              
               write(out_fd, bufr, n);                                
            }                                                         
            close(out_fd);                                            
4000b718:	7f ff df f9 	call  400036fc <close>                         <== NOT EXECUTED
4000b71c:	90 10 00 14 	mov  %l4, %o0                                  <== NOT EXECUTED
   while (1)                                                          
   {                                                                  
      /* Read the header */                                           
      /* If the header read fails, we just consider it the end        
         of the tarfile. */                                           
      if ((n = read(fd, bufr, 512)) != 512)                           
4000b720:	10 bf ff 87 	b  4000b53c <Untar_FromFile+0x50>              <== NOT EXECUTED
4000b724:	90 10 00 12 	mov  %l2, %o0                                  <== NOT EXECUTED
               write(out_fd, bufr, n);                                
            }                                                         
            close(out_fd);                                            
         }                                                            
      }                                                               
      else if (linkflag == DIRTYPE)                                   
4000b728:	32 bf ff 85 	bne,a   4000b53c <Untar_FromFile+0x50>         <== NOT EXECUTED
4000b72c:	90 10 00 12 	mov  %l2, %o0                                  <== NOT EXECUTED
      {                                                               
         mkdir(fname, S_IRWXU | S_IRWXG | S_IRWXO);                   
4000b730:	90 10 00 13 	mov  %l3, %o0                                  <== NOT EXECUTED
4000b734:	7f ff e3 54 	call  40004484 <mkdir>                         <== NOT EXECUTED
4000b738:	92 10 21 ff 	mov  0x1ff, %o1                                <== NOT EXECUTED
   while (1)                                                          
   {                                                                  
      /* Read the header */                                           
      /* If the header read fails, we just consider it the end        
         of the tarfile. */                                           
      if ((n = read(fd, bufr, 512)) != 512)                           
4000b73c:	10 bf ff 80 	b  4000b53c <Untar_FromFile+0x50>              <== NOT EXECUTED
4000b740:	90 10 00 12 	mov  %l2, %o0                                  <== NOT EXECUTED
            close(out_fd);                                            
         }                                                            
      }                                                               
      else if (linkflag == DIRTYPE)                                   
      {                                                               
         mkdir(fname, S_IRWXU | S_IRWXG | S_IRWXO);                   
4000b744:	a2 10 20 00 	clr  %l1                                       <== NOT EXECUTED
      }                                                               
   }                                                                  
   free(bufr);                                                        
4000b748:	7f ff e1 33 	call  40003c14 <free>                          <== NOT EXECUTED
4000b74c:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
   close(fd);                                                         
4000b750:	7f ff df eb 	call  400036fc <close>                         <== NOT EXECUTED
4000b754:	90 10 00 12 	mov  %l2, %o0                                  <== NOT EXECUTED
                                                                      
   return(retval);                                                    
}                                                                     
4000b758:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000b75c:	91 e8 00 11 	restore  %g0, %l1, %o0                         <== NOT EXECUTED
                                                                      

4000b760 <Untar_FromMemory>: int Untar_FromMemory( void *tar_buf, size_t size ) {
4000b760:	9d e3 be d0 	save  %sp, -304, %sp                           
         symlink(linkname, fname);                                    
      }                                                               
      else if (linkflag == REGTYPE)                                   
      {                                                               
         nblocks = (((file_size) + 511) & ~511) / 512;                
         if ((fp = fopen(fname, "w")) == NULL)                        
4000b764:	35 10 00 8a 	sethi  %hi(0x40022800), %i2                    
int                                                                   
Untar_FromMemory(                                                     
  void   *tar_buf,                                                    
  size_t  size                                                        
)                                                                     
{                                                                     
4000b768:	f2 27 a0 48 	st  %i1, [ %fp + 0x48 ]                        
      else if (linkflag == REGTYPE)                                   
      {                                                               
         nblocks = (((file_size) + 511) & ~511) / 512;                
         if ((fp = fopen(fname, "w")) == NULL)                        
         {                                                            
            printk("Untar: failed to create file %s\n", fname);       
4000b76c:	37 10 00 8a 	sethi  %hi(0x40022800), %i3                    
      }                                                               
                                                                      
      /* Read the header */                                           
      bufr = &tar_ptr[ptr];                                           
      ptr += 512;                                                     
      if (strncmp(&bufr[257], "ustar  ", 7))                          
4000b770:	33 10 00 8a 	sethi  %hi(0x40022800), %i1                    
            {                                                         
               len = ((sizeToGo < 512L)?(sizeToGo):(512L));           
               n = fwrite(&tar_ptr[ptr], 1, len, fp);                 
               if (n != len)                                          
               {                                                      
                  printk("untar: Error during write\n");              
4000b774:	39 10 00 8a 	sethi  %hi(0x40022800), %i4                    
      }                                                               
                                                                      
      /* Read the header */                                           
      bufr = &tar_ptr[ptr];                                           
      ptr += 512;                                                     
      if (strncmp(&bufr[257], "ustar  ", 7))                          
4000b778:	b2 16 61 c0 	or  %i1, 0x1c0, %i1                            
         symlink(linkname, fname);                                    
      }                                                               
      else if (linkflag == REGTYPE)                                   
      {                                                               
         nblocks = (((file_size) + 511) & ~511) / 512;                
         if ((fp = fopen(fname, "w")) == NULL)                        
4000b77c:	b4 16 a1 c8 	or  %i2, 0x1c8, %i2                            
         {                                                            
            printk("Untar: failed to create file %s\n", fname);       
4000b780:	b6 16 e1 d0 	or  %i3, 0x1d0, %i3                            
            {                                                         
               len = ((sizeToGo < 512L)?(sizeToGo):(512L));           
               n = fwrite(&tar_ptr[ptr], 1, len, fp);                 
               if (n != len)                                          
               {                                                      
                  printk("untar: Error during write\n");              
4000b784:	b8 17 21 f8 	or  %i4, 0x1f8, %i4                            
  void   *tar_buf,                                                    
  size_t  size                                                        
)                                                                     
{                                                                     
   FILE           *fp;                                                
   const char     *tar_ptr = (const char *)tar_buf;                   
4000b788:	a6 10 20 00 	clr  %l3                                       
      {                                                               
         retval = UNTAR_SUCCESSFUL;                                   
         break;                                                       
      }                                                               
                                                                      
      strncpy(fname, bufr, MAX_NAME_FIELD_SIZE);                      
4000b78c:	a2 07 bf 98 	add  %fp, -104, %l1                            
       * We've decoded the header, now figure out what it contains and
       * do something with it.                                        
       *****************************************************************/
      if (linkflag == SYMTYPE)                                        
      {                                                               
         strncpy(linkname, &bufr[157], MAX_NAME_FIELD_SIZE);          
4000b790:	10 80 00 03 	b  4000b79c <Untar_FromMemory+0x3c>            
4000b794:	ae 07 bf 30 	add  %fp, -208, %l7                            
  void   *tar_buf,                                                    
  size_t  size                                                        
)                                                                     
{                                                                     
   FILE           *fp;                                                
   const char     *tar_ptr = (const char *)tar_buf;                   
4000b798:	a6 10 00 10 	mov  %l0, %l3                                  <== NOT EXECUTED
                                                                      
                                                                      
   ptr = 0;                                                           
   while (1)                                                          
   {                                                                  
      if (ptr + 512 > size)                                           
4000b79c:	c2 07 a0 48 	ld  [ %fp + 0x48 ], %g1                        
4000b7a0:	a0 04 e2 00 	add  %l3, 0x200, %l0                           
4000b7a4:	80 a4 00 01 	cmp  %l0, %g1                                  
4000b7a8:	18 80 00 80 	bgu  4000b9a8 <Untar_FromMemory+0x248>         <== NEVER TAKEN
4000b7ac:	a6 06 00 13 	add  %i0, %l3, %l3                             
      }                                                               
                                                                      
      /* Read the header */                                           
      bufr = &tar_ptr[ptr];                                           
      ptr += 512;                                                     
      if (strncmp(&bufr[257], "ustar  ", 7))                          
4000b7b0:	92 10 00 19 	mov  %i1, %o1                                  
4000b7b4:	90 04 e1 01 	add  %l3, 0x101, %o0                           
4000b7b8:	40 00 21 d6 	call  40013f10 <strncmp>                       
4000b7bc:	94 10 20 07 	mov  7, %o2                                    
4000b7c0:	80 a2 20 00 	cmp  %o0, 0                                    
4000b7c4:	12 80 00 79 	bne  4000b9a8 <Untar_FromMemory+0x248>         
4000b7c8:	90 10 00 11 	mov  %l1, %o0                                  
      {                                                               
         retval = UNTAR_SUCCESSFUL;                                   
         break;                                                       
      }                                                               
                                                                      
      strncpy(fname, bufr, MAX_NAME_FIELD_SIZE);                      
4000b7cc:	92 10 00 13 	mov  %l3, %o1                                  
4000b7d0:	40 00 22 2c 	call  40014080 <strncpy>                       
4000b7d4:	94 10 20 63 	mov  0x63, %o2                                 
      fname[MAX_NAME_FIELD_SIZE] = '\0';                              
                                                                      
      linkflag   = bufr[156];                                         
4000b7d8:	c8 0c e0 9c 	ldub  [ %l3 + 0x9c ], %g4                      
4000b7dc:	82 10 00 13 	mov  %l3, %g1                                  
         retval = UNTAR_SUCCESSFUL;                                   
         break;                                                       
      }                                                               
                                                                      
      strncpy(fname, bufr, MAX_NAME_FIELD_SIZE);                      
      fname[MAX_NAME_FIELD_SIZE] = '\0';                              
4000b7e0:	c0 2f bf fb 	clrb  [ %fp + -5 ]                             
 *          UNTAR_INVALID_CHECKSUM  for an invalid header checksum.       *
 *          UNTAR_INVALID_HEADER    for an invalid header.                *
 *                                                                        *
 **************************************************************************/
int                                                                   
Untar_FromMemory(                                                     
4000b7e4:	9a 04 e0 0c 	add  %l3, 0xc, %o5                             
4000b7e8:	84 10 00 13 	mov  %l3, %g2                                  
4000b7ec:	a4 10 20 00 	clr  %l2                                       
   unsigned long num;                                                 
                                                                      
   num = 0;                                                           
   for (i=0; i < len; i++)                                            
   {                                                                  
      if ((octascii[i] < '0') || (octascii[i] > '9'))                 
4000b7f0:	c6 08 a0 7c 	ldub  [ %g2 + 0x7c ], %g3                      
      {                                                               
         continue;                                                    
      }                                                               
      num  = num * 8 + ((unsigned long)(octascii[i] - '0'));          
4000b7f4:	99 2c a0 03 	sll  %l2, 3, %o4                               
4000b7f8:	97 28 e0 18 	sll  %g3, 0x18, %o3                            
4000b7fc:	84 00 a0 01 	inc  %g2                                       
4000b800:	97 3a e0 18 	sra  %o3, 0x18, %o3                            
   unsigned long num;                                                 
                                                                      
   num = 0;                                                           
   for (i=0; i < len; i++)                                            
   {                                                                  
      if ((octascii[i] < '0') || (octascii[i] > '9'))                 
4000b804:	86 00 ff d0 	add  %g3, -48, %g3                             
4000b808:	86 08 e0 ff 	and  %g3, 0xff, %g3                            
4000b80c:	80 a0 e0 09 	cmp  %g3, 9                                    
4000b810:	18 80 00 03 	bgu  4000b81c <Untar_FromMemory+0xbc>          
4000b814:	96 02 ff d0 	add  %o3, -48, %o3                             
      {                                                               
         continue;                                                    
      }                                                               
      num  = num * 8 + ((unsigned long)(octascii[i] - '0'));          
4000b818:	a4 02 c0 0c 	add  %o3, %o4, %l2                             
{                                                                     
   size_t        i;                                                   
   unsigned long num;                                                 
                                                                      
   num = 0;                                                           
   for (i=0; i < len; i++)                                            
4000b81c:	80 a0 80 0d 	cmp  %g2, %o5                                  
4000b820:	32 bf ff f5 	bne,a   4000b7f4 <Untar_FromMemory+0x94>       
4000b824:	c6 08 a0 7c 	ldub  [ %g2 + 0x7c ], %g3                      
 *          UNTAR_INVALID_CHECKSUM  for an invalid header checksum.       *
 *          UNTAR_INVALID_HEADER    for an invalid header.                *
 *                                                                        *
 **************************************************************************/
int                                                                   
Untar_FromMemory(                                                     
4000b828:	9a 04 e0 08 	add  %l3, 8, %o5                               
4000b82c:	86 10 20 00 	clr  %g3                                       
   unsigned long num;                                                 
                                                                      
   num = 0;                                                           
   for (i=0; i < len; i++)                                            
   {                                                                  
      if ((octascii[i] < '0') || (octascii[i] > '9'))                 
4000b830:	c4 08 60 94 	ldub  [ %g1 + 0x94 ], %g2                      
      {                                                               
         continue;                                                    
      }                                                               
      num  = num * 8 + ((unsigned long)(octascii[i] - '0'));          
4000b834:	99 28 e0 03 	sll  %g3, 3, %o4                               
4000b838:	97 28 a0 18 	sll  %g2, 0x18, %o3                            
4000b83c:	82 00 60 01 	inc  %g1                                       
4000b840:	97 3a e0 18 	sra  %o3, 0x18, %o3                            
   unsigned long num;                                                 
                                                                      
   num = 0;                                                           
   for (i=0; i < len; i++)                                            
   {                                                                  
      if ((octascii[i] < '0') || (octascii[i] > '9'))                 
4000b844:	84 00 bf d0 	add  %g2, -48, %g2                             
4000b848:	84 08 a0 ff 	and  %g2, 0xff, %g2                            
4000b84c:	80 a0 a0 09 	cmp  %g2, 9                                    
4000b850:	18 80 00 03 	bgu  4000b85c <Untar_FromMemory+0xfc>          
4000b854:	96 02 ff d0 	add  %o3, -48, %o3                             
      {                                                               
         continue;                                                    
      }                                                               
      num  = num * 8 + ((unsigned long)(octascii[i] - '0'));          
4000b858:	86 02 c0 0c 	add  %o3, %o4, %g3                             
{                                                                     
   size_t        i;                                                   
   unsigned long num;                                                 
                                                                      
   num = 0;                                                           
   for (i=0; i < len; i++)                                            
4000b85c:	80 a0 40 0d 	cmp  %g1, %o5                                  
4000b860:	32 bf ff f5 	bne,a   4000b834 <Untar_FromMemory+0xd4>       
4000b864:	c4 08 60 94 	ldub  [ %g1 + 0x94 ], %g2                      
4000b868:	82 10 20 00 	clr  %g1                                       
4000b86c:	84 10 20 00 	clr  %g2                                       
   int  i, sum;                                                       
                                                                      
   sum = 0;                                                           
   for (i=0; i<512; i++)                                              
   {                                                                  
      if ((i >= 148) && (i < 156))                                    
4000b870:	9a 00 bf 6c 	add  %g2, -148, %o5                            
4000b874:	80 a3 60 07 	cmp  %o5, 7                                    
4000b878:	38 80 00 04 	bgu,a   4000b888 <Untar_FromMemory+0x128>      
4000b87c:	da 0c c0 02 	ldub  [ %l3 + %g2 ], %o5                       
         sum += 0xff & ' ';                                           
4000b880:	10 80 00 03 	b  4000b88c <Untar_FromMemory+0x12c>           
4000b884:	82 00 60 20 	add  %g1, 0x20, %g1                            
      else                                                            
         sum += 0xff & bufr[i];                                       
4000b888:	82 00 40 0d 	add  %g1, %o5, %g1                             
)                                                                     
{                                                                     
   int  i, sum;                                                       
                                                                      
   sum = 0;                                                           
   for (i=0; i<512; i++)                                              
4000b88c:	84 00 a0 01 	inc  %g2                                       
4000b890:	80 a0 a2 00 	cmp  %g2, 0x200                                
4000b894:	12 bf ff f8 	bne  4000b874 <Untar_FromMemory+0x114>         
4000b898:	9a 00 bf 6c 	add  %g2, -148, %o5                            
       * header, but the checksum field is substituted with blanks.   
       ******************************************************************/
      hdr_chksum = _rtems_octal2ulong(&bufr[148], 8);                 
      sum = _rtems_tar_header_checksum(bufr);                         
                                                                      
      if (sum != hdr_chksum)                                          
4000b89c:	80 a0 40 03 	cmp  %g1, %g3                                  
4000b8a0:	02 80 00 04 	be  4000b8b0 <Untar_FromMemory+0x150>          <== ALWAYS TAKEN
4000b8a4:	82 09 20 ff 	and  %g4, 0xff, %g1                            
4000b8a8:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000b8ac:	91 e8 20 02 	restore  %g0, 2, %o0                           <== NOT EXECUTED
                                                                      
      /******************************************************************
       * We've decoded the header, now figure out what it contains and
       * do something with it.                                        
       *****************************************************************/
      if (linkflag == SYMTYPE)                                        
4000b8b0:	80 a0 60 32 	cmp  %g1, 0x32                                 
4000b8b4:	12 80 00 0c 	bne  4000b8e4 <Untar_FromMemory+0x184>         
4000b8b8:	80 a0 60 30 	cmp  %g1, 0x30                                 
      {                                                               
         strncpy(linkname, &bufr[157], MAX_NAME_FIELD_SIZE);          
4000b8bc:	92 04 e0 9d 	add  %l3, 0x9d, %o1                            
4000b8c0:	90 10 00 17 	mov  %l7, %o0                                  
4000b8c4:	40 00 21 ef 	call  40014080 <strncpy>                       
4000b8c8:	94 10 20 63 	mov  0x63, %o2                                 
         linkname[MAX_NAME_FIELD_SIZE] = '\0';                        
         symlink(linkname, fname);                                    
4000b8cc:	90 10 00 17 	mov  %l7, %o0                                  
       * do something with it.                                        
       *****************************************************************/
      if (linkflag == SYMTYPE)                                        
      {                                                               
         strncpy(linkname, &bufr[157], MAX_NAME_FIELD_SIZE);          
         linkname[MAX_NAME_FIELD_SIZE] = '\0';                        
4000b8d0:	c0 2f bf 93 	clrb  [ %fp + -109 ]                           
         symlink(linkname, fname);                                    
4000b8d4:	40 00 07 72 	call  4000d69c <symlink>                       
4000b8d8:	92 10 00 11 	mov  %l1, %o1                                  
  void   *tar_buf,                                                    
  size_t  size                                                        
)                                                                     
{                                                                     
   FILE           *fp;                                                
   const char     *tar_ptr = (const char *)tar_buf;                   
4000b8dc:	10 bf ff b0 	b  4000b79c <Untar_FromMemory+0x3c>            
4000b8e0:	a6 10 00 10 	mov  %l0, %l3                                  
      {                                                               
         strncpy(linkname, &bufr[157], MAX_NAME_FIELD_SIZE);          
         linkname[MAX_NAME_FIELD_SIZE] = '\0';                        
         symlink(linkname, fname);                                    
      }                                                               
      else if (linkflag == REGTYPE)                                   
4000b8e4:	12 80 00 2a 	bne  4000b98c <Untar_FromMemory+0x22c>         
4000b8e8:	80 a0 60 35 	cmp  %g1, 0x35                                 
      {                                                               
         nblocks = (((file_size) + 511) & ~511) / 512;                
4000b8ec:	ba 04 a1 ff 	add  %l2, 0x1ff, %i5                           
         if ((fp = fopen(fname, "w")) == NULL)                        
4000b8f0:	90 10 00 11 	mov  %l1, %o0                                  
4000b8f4:	92 10 00 1a 	mov  %i2, %o1                                  
4000b8f8:	40 00 1a b0 	call  400123b8 <fopen>                         
4000b8fc:	bb 37 60 09 	srl  %i5, 9, %i5                               
4000b900:	a8 92 20 00 	orcc  %o0, 0, %l4                              
4000b904:	02 80 00 04 	be  4000b914 <Untar_FromMemory+0x1b4>          <== NEVER TAKEN
4000b908:	ac 06 00 10 	add  %i0, %l0, %l6                             
4000b90c:	10 80 00 19 	b  4000b970 <Untar_FromMemory+0x210>           
4000b910:	aa 10 20 00 	clr  %l5                                       
         {                                                            
            printk("Untar: failed to create file %s\n", fname);       
4000b914:	90 10 00 1b 	mov  %i3, %o0                                  <== NOT EXECUTED
4000b918:	92 10 00 11 	mov  %l1, %o1                                  <== NOT EXECUTED
4000b91c:	7f ff e5 7a 	call  40004f04 <printk>                        <== NOT EXECUTED
4000b920:	bb 2f 60 09 	sll  %i5, 9, %i5                               <== NOT EXECUTED
            ptr += 512 * nblocks;                                     
4000b924:	10 bf ff 9d 	b  4000b798 <Untar_FromMemory+0x38>            <== NOT EXECUTED
4000b928:	a0 04 00 1d 	add  %l0, %i5, %l0                             <== NOT EXECUTED
                                                                      
            /***************************************************************
             * Read out the data.  There are nblocks of data where nblocks
             * is the file_size rounded to the nearest 512-byte boundary.
             **************************************************************/
            for (i=0; i<nblocks; i++)                                 
4000b92c:	aa 05 60 01 	inc  %l5                                       
            {                                                         
               len = ((sizeToGo < 512L)?(sizeToGo):(512L));           
4000b930:	08 80 00 03 	bleu  4000b93c <Untar_FromMemory+0x1dc>        <== ALWAYS TAKEN
4000b934:	a6 10 00 12 	mov  %l2, %l3                                  
4000b938:	a6 10 22 00 	mov  0x200, %l3                                <== NOT EXECUTED
               n = fwrite(&tar_ptr[ptr], 1, len, fp);                 
4000b93c:	90 10 00 16 	mov  %l6, %o0                                  
4000b940:	92 10 20 01 	mov  1, %o1                                    
4000b944:	94 10 00 13 	mov  %l3, %o2                                  
4000b948:	96 10 00 14 	mov  %l4, %o3                                  
4000b94c:	40 00 1c a7 	call  40012be8 <fwrite>                        
4000b950:	a4 24 80 13 	sub  %l2, %l3, %l2                             
               if (n != len)                                          
4000b954:	80 a2 00 13 	cmp  %o0, %l3                                  
4000b958:	02 80 00 05 	be  4000b96c <Untar_FromMemory+0x20c>          <== ALWAYS TAKEN
4000b95c:	ac 05 a2 00 	add  %l6, 0x200, %l6                           
               {                                                      
                  printk("untar: Error during write\n");              
4000b960:	7f ff e5 69 	call  40004f04 <printk>                        <== NOT EXECUTED
4000b964:	90 10 00 1c 	mov  %i4, %o0                                  <== NOT EXECUTED
                  break;                                              
4000b968:	30 80 00 05 	b,a   4000b97c <Untar_FromMemory+0x21c>        <== NOT EXECUTED
               }                                                      
               ptr += 512;                                            
4000b96c:	a0 04 22 00 	add  %l0, 0x200, %l0                           
                                                                      
            /***************************************************************
             * Read out the data.  There are nblocks of data where nblocks
             * is the file_size rounded to the nearest 512-byte boundary.
             **************************************************************/
            for (i=0; i<nblocks; i++)                                 
4000b970:	80 a5 40 1d 	cmp  %l5, %i5                                  
4000b974:	0a bf ff ee 	bcs  4000b92c <Untar_FromMemory+0x1cc>         
4000b978:	80 a4 a2 00 	cmp  %l2, 0x200                                
                  break;                                              
               }                                                      
               ptr += 512;                                            
               sizeToGo -= n;                                         
            }                                                         
            fclose(fp);                                               
4000b97c:	40 00 18 b9 	call  40011c60 <fclose>                        
4000b980:	90 10 00 14 	mov  %l4, %o0                                  
  void   *tar_buf,                                                    
  size_t  size                                                        
)                                                                     
{                                                                     
   FILE           *fp;                                                
   const char     *tar_ptr = (const char *)tar_buf;                   
4000b984:	10 bf ff 86 	b  4000b79c <Untar_FromMemory+0x3c>            
4000b988:	a6 10 00 10 	mov  %l0, %l3                                  
               sizeToGo -= n;                                         
            }                                                         
            fclose(fp);                                               
         }                                                            
      }                                                               
      else if (linkflag == DIRTYPE)                                   
4000b98c:	32 bf ff 84 	bne,a   4000b79c <Untar_FromMemory+0x3c>       <== NEVER TAKEN
4000b990:	a6 10 00 10 	mov  %l0, %l3                                  <== NOT EXECUTED
      {                                                               
         mkdir(fname, S_IRWXU | S_IRWXG | S_IRWXO);                   
4000b994:	90 10 00 11 	mov  %l1, %o0                                  
4000b998:	7f ff e2 bb 	call  40004484 <mkdir>                         
4000b99c:	92 10 21 ff 	mov  0x1ff, %o1                                
  void   *tar_buf,                                                    
  size_t  size                                                        
)                                                                     
{                                                                     
   FILE           *fp;                                                
   const char     *tar_ptr = (const char *)tar_buf;                   
4000b9a0:	10 bf ff 7f 	b  4000b79c <Untar_FromMemory+0x3c>            
4000b9a4:	a6 10 00 10 	mov  %l0, %l3                                  
         mkdir(fname, S_IRWXU | S_IRWXG | S_IRWXO);                   
      }                                                               
   }                                                                  
                                                                      
   return(retval);                                                    
}                                                                     
4000b9a8:	81 c7 e0 08 	ret                                            
4000b9ac:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

4000941c <_CORE_RWLock_Obtain_for_reading>: Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_RWLock_API_mp_support_callout api_rwlock_mp_support ) {
4000941c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level       level;                                              
  Thread_Control *executing = _Thread_Executing;                      
40009420:	03 10 00 82 	sethi  %hi(0x40020800), %g1                    
   *  If unlocked, then OK to read.                                   
   *  If locked for reading and no waiters, then OK to read.          
   *  If any thread is waiting, then we wait.                         
   */                                                                 
                                                                      
  _ISR_Disable( level );                                              
40009424:	7f ff e7 e2 	call  400033ac <sparc_disable_interrupts>      
40009428:	e0 00 63 5c 	ld  [ %g1 + 0x35c ], %l0	! 40020b5c <_Thread_Executing>
4000942c:	a2 10 00 08 	mov  %o0, %l1                                  
    switch ( the_rwlock->current_state ) {                            
40009430:	c2 06 20 44 	ld  [ %i0 + 0x44 ], %g1                        
40009434:	80 a0 60 00 	cmp  %g1, 0                                    
40009438:	22 80 00 06 	be,a   40009450 <_CORE_RWLock_Obtain_for_reading+0x34>
4000943c:	c2 06 20 48 	ld  [ %i0 + 0x48 ], %g1                        
40009440:	80 a0 60 01 	cmp  %g1, 1                                    
40009444:	12 80 00 16 	bne  4000949c <_CORE_RWLock_Obtain_for_reading+0x80>
40009448:	80 8e a0 ff 	btst  0xff, %i2                                
4000944c:	30 80 00 06 	b,a   40009464 <_CORE_RWLock_Obtain_for_reading+0x48>
      case CORE_RWLOCK_UNLOCKED:                                      
	the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING;          
40009450:	84 10 20 01 	mov  1, %g2                                    
	the_rwlock->number_of_readers += 1;                                  
40009454:	82 00 60 01 	inc  %g1                                       
   */                                                                 
                                                                      
  _ISR_Disable( level );                                              
    switch ( the_rwlock->current_state ) {                            
      case CORE_RWLOCK_UNLOCKED:                                      
	the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING;          
40009458:	c4 26 20 44 	st  %g2, [ %i0 + 0x44 ]                        
	the_rwlock->number_of_readers += 1;                                  
4000945c:	c2 26 20 48 	st  %g1, [ %i0 + 0x48 ]                        
	_ISR_Enable( level );                                                
40009460:	30 80 00 0a 	b,a   40009488 <_CORE_RWLock_Obtain_for_reading+0x6c>
	executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;                
	return;                                                              
                                                                      
      case CORE_RWLOCK_LOCKED_FOR_READING: {                          
        Thread_Control *waiter;                                       
        waiter = _Thread_queue_First( &the_rwlock->Wait_queue );      
40009464:	40 00 07 b7 	call  4000b340 <_Thread_queue_First>           
40009468:	90 10 00 18 	mov  %i0, %o0                                  
        if ( !waiter ) {                                              
4000946c:	80 a2 20 00 	cmp  %o0, 0                                    
40009470:	12 80 00 0b 	bne  4000949c <_CORE_RWLock_Obtain_for_reading+0x80><== NEVER TAKEN
40009474:	80 8e a0 ff 	btst  0xff, %i2                                
	  the_rwlock->number_of_readers += 1;                                
40009478:	c2 06 20 48 	ld  [ %i0 + 0x48 ], %g1                        
4000947c:	82 00 60 01 	inc  %g1                                       
40009480:	c2 26 20 48 	st  %g1, [ %i0 + 0x48 ]                        
	  _ISR_Enable( level );                                              
40009484:	90 10 00 11 	mov  %l1, %o0                                  
40009488:	7f ff e7 cd 	call  400033bc <sparc_enable_interrupts>       
4000948c:	01 00 00 00 	nop                                            
	  executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;              
40009490:	c0 24 20 34 	clr  [ %l0 + 0x34 ]                            
          return;                                                     
40009494:	81 c7 e0 08 	ret                                            
40009498:	81 e8 00 00 	restore                                        
                                                                      
    /*                                                                
     *  If the thread is not willing to wait, then return immediately.
     */                                                               
                                                                      
    if ( !wait ) {                                                    
4000949c:	32 80 00 08 	bne,a   400094bc <_CORE_RWLock_Obtain_for_reading+0xa0>
400094a0:	f2 24 20 20 	st  %i1, [ %l0 + 0x20 ]                        
      _ISR_Enable( level );                                           
400094a4:	7f ff e7 c6 	call  400033bc <sparc_enable_interrupts>       
400094a8:	90 10 00 11 	mov  %l1, %o0                                  
      executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;          
400094ac:	82 10 20 02 	mov  2, %g1                                    
400094b0:	c2 24 20 34 	st  %g1, [ %l0 + 0x34 ]                        
400094b4:	81 c7 e0 08 	ret                                            
400094b8:	81 e8 00 00 	restore                                        
                                                                      
    _Thread_queue_Enter_critical_section( &the_rwlock->Wait_queue );  
    executing->Wait.queue       = &the_rwlock->Wait_queue;            
    executing->Wait.id          = id;                                 
    executing->Wait.option      = CORE_RWLOCK_THREAD_WAITING_FOR_READ;
    executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;             
400094bc:	c0 24 20 34 	clr  [ %l0 + 0x34 ]                            
    /*                                                                
     *  We need to wait to enter this critical section                
     */                                                               
                                                                      
    _Thread_queue_Enter_critical_section( &the_rwlock->Wait_queue );  
    executing->Wait.queue       = &the_rwlock->Wait_queue;            
400094c0:	f0 24 20 44 	st  %i0, [ %l0 + 0x44 ]                        
    executing->Wait.id          = id;                                 
    executing->Wait.option      = CORE_RWLOCK_THREAD_WAITING_FOR_READ;
400094c4:	c0 24 20 30 	clr  [ %l0 + 0x30 ]                            
400094c8:	82 10 20 01 	mov  1, %g1                                    
400094cc:	c2 26 20 30 	st  %g1, [ %i0 + 0x30 ]                        
    executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;             
    _ISR_Enable( level );                                             
400094d0:	90 10 00 11 	mov  %l1, %o0                                  
400094d4:	7f ff e7 ba 	call  400033bc <sparc_enable_interrupts>       
400094d8:	35 10 00 25 	sethi  %hi(0x40009400), %i2                    
                                                                      
    _Thread_queue_Enqueue_with_handler(                               
400094dc:	b2 10 00 1b 	mov  %i3, %i1                                  
400094e0:	40 00 06 b8 	call  4000afc0 <_Thread_queue_Enqueue_with_handler>
400094e4:	95 ee a2 6c 	restore  %i2, 0x26c, %o2                       
                                                                      

40009574 <_CORE_RWLock_Release>: */ CORE_RWLock_Status _CORE_RWLock_Release( CORE_RWLock_Control *the_rwlock ) {
40009574:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level       level;                                              
  Thread_Control *executing = _Thread_Executing;                      
40009578:	03 10 00 82 	sethi  %hi(0x40020800), %g1                    
   *  Otherwise, we have to block.                                    
   *  If locked for reading and no waiters, then OK to read.          
   *  If any thread is waiting, then we wait.                         
   */                                                                 
                                                                      
  _ISR_Disable( level );                                              
4000957c:	7f ff e7 8c 	call  400033ac <sparc_disable_interrupts>      
40009580:	e0 00 63 5c 	ld  [ %g1 + 0x35c ], %l0	! 40020b5c <_Thread_Executing>
40009584:	84 10 00 08 	mov  %o0, %g2                                  
    if ( the_rwlock->current_state == CORE_RWLOCK_UNLOCKED){          
40009588:	c2 06 20 44 	ld  [ %i0 + 0x44 ], %g1                        
4000958c:	80 a0 60 00 	cmp  %g1, 0                                    
40009590:	12 80 00 08 	bne  400095b0 <_CORE_RWLock_Release+0x3c>      
40009594:	80 a0 60 01 	cmp  %g1, 1                                    
      _ISR_Enable( level );                                           
40009598:	7f ff e7 89 	call  400033bc <sparc_enable_interrupts>       
4000959c:	b0 10 20 00 	clr  %i0                                       
      executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;          
400095a0:	82 10 20 02 	mov  2, %g1                                    
400095a4:	c2 24 20 34 	st  %g1, [ %l0 + 0x34 ]                        
400095a8:	81 c7 e0 08 	ret                                            
400095ac:	81 e8 00 00 	restore                                        
      return CORE_RWLOCK_SUCCESSFUL;                                  
    }                                                                 
    if ( the_rwlock->current_state == CORE_RWLOCK_LOCKED_FOR_READING ) {
400095b0:	32 80 00 0b 	bne,a   400095dc <_CORE_RWLock_Release+0x68>   
400095b4:	c0 24 20 34 	clr  [ %l0 + 0x34 ]                            
	the_rwlock->number_of_readers -= 1;                                  
400095b8:	c2 06 20 48 	ld  [ %i0 + 0x48 ], %g1                        
400095bc:	82 00 7f ff 	add  %g1, -1, %g1                              
	if ( the_rwlock->number_of_readers != 0 ) {                          
400095c0:	80 a0 60 00 	cmp  %g1, 0                                    
400095c4:	02 80 00 05 	be  400095d8 <_CORE_RWLock_Release+0x64>       
400095c8:	c2 26 20 48 	st  %g1, [ %i0 + 0x48 ]                        
          /* must be unlocked again */                                
	  _ISR_Enable( level );                                              
400095cc:	7f ff e7 7c 	call  400033bc <sparc_enable_interrupts>       
400095d0:	b0 10 20 00 	clr  %i0                                       
          return CORE_RWLOCK_SUCCESSFUL;                              
400095d4:	30 80 00 24 	b,a   40009664 <_CORE_RWLock_Release+0xf0>     
        }                                                             
    }                                                                 
                                                                      
    /* CORE_RWLOCK_LOCKED_FOR_WRITING or READING with readers */      
    executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;             
400095d8:	c0 24 20 34 	clr  [ %l0 + 0x34 ]                            
                                                                      
    /*                                                                
     * Implicitly transition to "unlocked" and find another thread interested
     * in obtaining this rwlock.                                      
     */                                                               
    the_rwlock->current_state = CORE_RWLOCK_UNLOCKED;                 
400095dc:	c0 26 20 44 	clr  [ %i0 + 0x44 ]                            
  _ISR_Enable( level );                                               
400095e0:	7f ff e7 77 	call  400033bc <sparc_enable_interrupts>       
400095e4:	90 10 00 02 	mov  %g2, %o0                                  
                                                                      
  next = _Thread_queue_Dequeue( &the_rwlock->Wait_queue );            
400095e8:	40 00 06 13 	call  4000ae34 <_Thread_queue_Dequeue>         
400095ec:	90 10 00 18 	mov  %i0, %o0                                  
                                                                      
  if ( next ) {                                                       
400095f0:	80 a2 20 00 	cmp  %o0, 0                                    
400095f4:	22 80 00 1c 	be,a   40009664 <_CORE_RWLock_Release+0xf0>    
400095f8:	b0 10 20 00 	clr  %i0                                       
    if ( next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) {
400095fc:	c2 02 20 30 	ld  [ %o0 + 0x30 ], %g1                        
40009600:	80 a0 60 01 	cmp  %g1, 1                                    
40009604:	32 80 00 05 	bne,a   40009618 <_CORE_RWLock_Release+0xa4>   
40009608:	c2 06 20 48 	ld  [ %i0 + 0x48 ], %g1                        
      the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_WRITING;     
4000960c:	82 10 20 02 	mov  2, %g1                                    
      return CORE_RWLOCK_SUCCESSFUL;                                  
40009610:	10 80 00 14 	b  40009660 <_CORE_RWLock_Release+0xec>        
40009614:	c2 26 20 44 	st  %g1, [ %i0 + 0x44 ]                        
                                                                      
    /*                                                                
     * Must be CORE_RWLOCK_THREAD_WAITING_FOR_READING                 
     */                                                               
    the_rwlock->number_of_readers += 1;                               
    the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING;       
40009618:	84 10 20 01 	mov  1, %g2                                    
    }                                                                 
                                                                      
    /*                                                                
     * Must be CORE_RWLOCK_THREAD_WAITING_FOR_READING                 
     */                                                               
    the_rwlock->number_of_readers += 1;                               
4000961c:	82 00 60 01 	inc  %g1                                       
    the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING;       
40009620:	c4 26 20 44 	st  %g2, [ %i0 + 0x44 ]                        
    }                                                                 
                                                                      
    /*                                                                
     * Must be CORE_RWLOCK_THREAD_WAITING_FOR_READING                 
     */                                                               
    the_rwlock->number_of_readers += 1;                               
40009624:	c2 26 20 48 	st  %g1, [ %i0 + 0x48 ]                        
                                                                      
    /*                                                                
     * Now see if more readers can be let go.                         
     */                                                               
    while ( 1 ) {                                                     
      next = _Thread_queue_First( &the_rwlock->Wait_queue );          
40009628:	40 00 07 46 	call  4000b340 <_Thread_queue_First>           
4000962c:	90 10 00 18 	mov  %i0, %o0                                  
      if ( !next ||                                                   
40009630:	92 92 20 00 	orcc  %o0, 0, %o1                              
40009634:	22 80 00 0c 	be,a   40009664 <_CORE_RWLock_Release+0xf0>    
40009638:	b0 10 20 00 	clr  %i0                                       
           next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE )
4000963c:	c2 02 60 30 	ld  [ %o1 + 0x30 ], %g1                        
40009640:	80 a0 60 01 	cmp  %g1, 1                                    
40009644:	02 80 00 07 	be  40009660 <_CORE_RWLock_Release+0xec>       <== NEVER TAKEN
40009648:	90 10 00 18 	mov  %i0, %o0                                  
        return CORE_RWLOCK_SUCCESSFUL;                                
      the_rwlock->number_of_readers += 1;                             
4000964c:	c2 06 20 48 	ld  [ %i0 + 0x48 ], %g1                        
40009650:	82 00 60 01 	inc  %g1                                       
      _Thread_queue_Extract( &the_rwlock->Wait_queue, next );         
40009654:	40 00 06 eb 	call  4000b200 <_Thread_queue_Extract>         
40009658:	c2 26 20 48 	st  %g1, [ %i0 + 0x48 ]                        
    }                                                                 
4000965c:	30 bf ff f3 	b,a   40009628 <_CORE_RWLock_Release+0xb4>     
  }                                                                   
                                                                      
  /* indentation is to match _ISR_Disable at top */                   
                                                                      
  return CORE_RWLOCK_SUCCESSFUL;                                      
}                                                                     
40009660:	b0 10 20 00 	clr  %i0                                       
40009664:	81 c7 e0 08 	ret                                            
40009668:	81 e8 00 00 	restore                                        
                                                                      

4000966c <_CORE_RWLock_Timeout>: void _CORE_RWLock_Timeout( Objects_Id id, void *ignored ) {
4000966c:	9d e3 bf 98 	save  %sp, -104, %sp                           
  Thread_Control       *the_thread;                                   
  Objects_Locations     location;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
40009670:	90 10 00 18 	mov  %i0, %o0                                  
40009674:	40 00 05 0d 	call  4000aaa8 <_Thread_Get>                   
40009678:	92 07 bf fc 	add  %fp, -4, %o1                              
  switch ( location ) {                                               
4000967c:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
40009680:	80 a0 60 00 	cmp  %g1, 0                                    
40009684:	12 80 00 08 	bne  400096a4 <_CORE_RWLock_Timeout+0x38>      <== NEVER TAKEN
40009688:	01 00 00 00 	nop                                            
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
      break;                                                          
    case OBJECTS_LOCAL:                                               
      _Thread_queue_Process_timeout( the_thread );                    
4000968c:	40 00 07 69 	call  4000b430 <_Thread_queue_Process_timeout> 
40009690:	01 00 00 00 	nop                                            
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
40009694:	03 10 00 82 	sethi  %hi(0x40020800), %g1                    
40009698:	c4 00 62 a0 	ld  [ %g1 + 0x2a0 ], %g2	! 40020aa0 <_Thread_Dispatch_disable_level>
4000969c:	84 00 bf ff 	add  %g2, -1, %g2                              
400096a0:	c4 20 62 a0 	st  %g2, [ %g1 + 0x2a0 ]                       
400096a4:	81 c7 e0 08 	ret                                            
400096a8:	81 e8 00 00 	restore                                        
                                                                      

40016af4 <_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 ) {
40016af4:	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 ) {             
40016af8:	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                    
)                                                                     
{                                                                     
40016afc:	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 ) {             
40016b00:	80 a6 80 01 	cmp  %i2, %g1                                  
40016b04:	18 80 00 17 	bgu  40016b60 <_CORE_message_queue_Broadcast+0x6c><== NEVER TAKEN
40016b08:	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 ) {         
40016b0c:	c2 04 20 48 	ld  [ %l0 + 0x48 ], %g1                        
40016b10:	80 a0 60 00 	cmp  %g1, 0                                    
40016b14:	02 80 00 0a 	be  40016b3c <_CORE_message_queue_Broadcast+0x48>
40016b18:	a2 10 20 00 	clr  %l1                                       
    *count = 0;                                                       
40016b1c:	c0 27 40 00 	clr  [ %i5 ]                                   
    return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;                      
40016b20:	81 c7 e0 08 	ret                                            
40016b24:	91 e8 20 00 	restore  %g0, 0, %o0                           
  const void *source,                                                 
  void       *destination,                                            
  size_t      size                                                    
)                                                                     
{                                                                     
  memcpy(destination, source, size);                                  
40016b28:	d0 04 a0 2c 	ld  [ %l2 + 0x2c ], %o0                        
40016b2c:	40 00 27 11 	call  40020770 <memcpy>                        
40016b30:	a2 04 60 01 	inc  %l1                                       
      buffer,                                                         
      waitp->return_argument_second.mutable_object,                   
      size                                                            
    );                                                                
                                                                      
    *(size_t *) the_thread->Wait.return_argument = size;              
40016b34:	c2 04 a0 28 	ld  [ %l2 + 0x28 ], %g1                        
40016b38:	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))) {   
40016b3c:	40 00 0a 30 	call  400193fc <_Thread_queue_Dequeue>         
40016b40:	90 10 00 10 	mov  %l0, %o0                                  
40016b44:	92 10 00 19 	mov  %i1, %o1                                  
40016b48:	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 =                                                
40016b4c:	80 a2 20 00 	cmp  %o0, 0                                    
40016b50:	12 bf ff f6 	bne  40016b28 <_CORE_message_queue_Broadcast+0x34>
40016b54:	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;                                        
40016b58:	e2 27 40 00 	st  %l1, [ %i5 ]                               
40016b5c:	b0 10 20 00 	clr  %i0                                       
  return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;                        
}                                                                     
40016b60:	81 c7 e0 08 	ret                                            
40016b64:	81 e8 00 00 	restore                                        
                                                                      

40010644 <_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 ) {
40010644:	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;                  
40010648:	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;
4001064c:	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;
40010650:	f6 26 20 4c 	st  %i3, [ %i0 + 0x4c ]                        
    CORE_message_queue_Control        *the_message_queue,             
    CORE_message_queue_Notify_Handler  the_handler,                   
    void                              *the_argument                   
  )                                                                   
  {                                                                   
    the_message_queue->notify_handler  = the_handler;                 
40010654:	c0 26 20 60 	clr  [ %i0 + 0x60 ]                            
    the_message_queue->notify_argument = the_argument;                
40010658:	c0 26 20 64 	clr  [ %i0 + 0x64 ]                            
  /*                                                                  
   *  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)) {              
4001065c:	80 8e e0 03 	btst  3, %i3                                   
40010660:	02 80 00 07 	be  4001067c <_CORE_message_queue_Initialize+0x38>
40010664:	a2 10 00 1b 	mov  %i3, %l1                                  
    allocated_message_size += sizeof(uint32_t);                       
40010668:	a2 06 e0 04 	add  %i3, 4, %l1                               
    allocated_message_size &= ~(sizeof(uint32_t) - 1);                
4001066c:	a2 0c 7f fc 	and  %l1, -4, %l1                              
  }                                                                   
                                                                      
  if (allocated_message_size < maximum_message_size)                  
40010670:	80 a4 40 1b 	cmp  %l1, %i3                                  
40010674:	0a 80 00 23 	bcs  40010700 <_CORE_message_queue_Initialize+0xbc><== NEVER TAKEN
40010678:	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));
4001067c:	a0 04 60 14 	add  %l1, 0x14, %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 *    
40010680:	92 10 00 1a 	mov  %i2, %o1                                  
40010684:	40 00 4f df 	call  40024600 <.umul>                         
40010688:	90 10 00 10 	mov  %l0, %o0                                  
       (allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
                                                                      
  if (message_buffering_required < allocated_message_size)            
4001068c:	80 a2 00 11 	cmp  %o0, %l1                                  
40010690:	0a 80 00 1c 	bcs  40010700 <_CORE_message_queue_Initialize+0xbc><== NEVER TAKEN
40010694:	01 00 00 00 	nop                                            
    return false;                                                     
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
40010698:	40 00 0b d3 	call  400135e4 <_Workspace_Allocate>           
4001069c:	01 00 00 00 	nop                                            
400106a0:	d0 26 20 5c 	st  %o0, [ %i0 + 0x5c ]                        
     _Workspace_Allocate( message_buffering_required );               
                                                                      
  if (the_message_queue->message_buffers == 0)                        
400106a4:	80 a2 20 00 	cmp  %o0, 0                                    
400106a8:	02 80 00 16 	be  40010700 <_CORE_message_queue_Initialize+0xbc>
400106ac:	92 10 00 08 	mov  %o0, %o1                                  
                                                                      
  /*                                                                  
   *  Initialize the pool of inactive messages, pending messages,     
   *  and set of waiting threads.                                     
   */                                                                 
  _Chain_Initialize (                                                 
400106b0:	90 06 20 68 	add  %i0, 0x68, %o0                            
400106b4:	94 10 00 1a 	mov  %i2, %o2                                  
400106b8:	40 00 15 80 	call  40015cb8 <_Chain_Initialize>             
400106bc:	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(                                           
400106c0:	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;                                   
400106c4:	c0 26 20 54 	clr  [ %i0 + 0x54 ]                            
400106c8:	82 18 60 01 	xor  %g1, 1, %g1                               
400106cc:	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);                 
400106d0:	82 06 20 54 	add  %i0, 0x54, %g1                            
400106d4:	c2 26 20 50 	st  %g1, [ %i0 + 0x50 ]                        
  the_chain->permanent_null = NULL;                                   
  the_chain->last           = _Chain_Head(the_chain);                 
400106d8:	82 06 20 50 	add  %i0, 0x50, %g1                            
400106dc:	90 10 00 18 	mov  %i0, %o0                                  
400106e0:	c2 26 20 58 	st  %g1, [ %i0 + 0x58 ]                        
400106e4:	92 60 3f ff 	subx  %g0, -1, %o1                             
400106e8:	94 10 20 80 	mov  0x80, %o2                                 
400106ec:	96 10 20 06 	mov  6, %o3                                    
400106f0:	40 00 08 9e 	call  40012968 <_Thread_queue_Initialize>      
400106f4:	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;                                                        
400106f8:	81 c7 e0 08 	ret                                            
400106fc:	81 e8 00 00 	restore                                        
}                                                                     
40010700:	81 c7 e0 08 	ret                                            
40010704:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

40010708 <_CORE_message_queue_Seize>: void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) {
40010708:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level                          level;                           
  CORE_message_queue_Buffer_control *the_message;                     
  Thread_Control                    *executing;                       
                                                                      
  executing = _Thread_Executing;                                      
4001070c:	23 10 00 b1 	sethi  %hi(0x4002c400), %l1                    
40010710:	e0 04 61 cc 	ld  [ %l1 + 0x1cc ], %l0	! 4002c5cc <_Thread_Executing>
  void                            *buffer,                            
  size_t                          *size_p,                            
  bool                             wait,                              
  Watchdog_Interval                timeout                            
)                                                                     
{                                                                     
40010714:	a4 10 00 19 	mov  %i1, %l2                                  
  ISR_Level                          level;                           
  CORE_message_queue_Buffer_control *the_message;                     
  Thread_Control                    *executing;                       
                                                                      
  executing = _Thread_Executing;                                      
  executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 
40010718:	c0 24 20 34 	clr  [ %l0 + 0x34 ]                            
  _ISR_Disable( level );                                              
4001071c:	7f ff db 00 	call  4000731c <sparc_disable_interrupts>      
40010720:	a6 10 00 18 	mov  %i0, %l3                                  
40010724:	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));                
40010728:	f2 06 20 50 	ld  [ %i0 + 0x50 ], %i1                        
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
4001072c:	84 06 20 54 	add  %i0, 0x54, %g2                            
40010730:	80 a6 40 02 	cmp  %i1, %g2                                  
40010734:	02 80 00 24 	be  400107c4 <_CORE_message_queue_Seize+0xbc>  
40010738:	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;                            
4001073c:	c4 06 40 00 	ld  [ %i1 ], %g2                               
  the_chain->first    = new_first;                                    
40010740:	c4 26 20 50 	st  %g2, [ %i0 + 0x50 ]                        
  the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
  if ( the_message != NULL ) {                                        
40010744:	80 a6 60 00 	cmp  %i1, 0                                    
40010748:	02 80 00 1f 	be  400107c4 <_CORE_message_queue_Seize+0xbc>  <== NEVER TAKEN
4001074c:	c6 20 a0 04 	st  %g3, [ %g2 + 4 ]                           
    the_message_queue->number_of_pending_messages -= 1;               
40010750:	c2 06 20 48 	ld  [ %i0 + 0x48 ], %g1                        
40010754:	82 00 7f ff 	add  %g1, -1, %g1                              
40010758:	c2 26 20 48 	st  %g1, [ %i0 + 0x48 ]                        
    _ISR_Enable( level );                                             
4001075c:	7f ff da f4 	call  4000732c <sparc_enable_interrupts>       
40010760:	a0 06 60 10 	add  %i1, 0x10, %l0                            
                                                                      
    *size_p = the_message->Contents.size;                             
40010764:	d4 06 60 0c 	ld  [ %i1 + 0xc ], %o2                         
    _Thread_Executing->Wait.count =                                   
40010768:	c2 04 61 cc 	ld  [ %l1 + 0x1cc ], %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;                             
4001076c:	d4 26 c0 00 	st  %o2, [ %i3 ]                               
    _Thread_Executing->Wait.count =                                   
40010770:	c4 06 60 08 	ld  [ %i1 + 8 ], %g2                           
40010774:	c4 20 60 24 	st  %g2, [ %g1 + 0x24 ]                        
  const void *source,                                                 
  void       *destination,                                            
  size_t      size                                                    
)                                                                     
{                                                                     
  memcpy(destination, source, size);                                  
40010778:	92 10 00 10 	mov  %l0, %o1                                  
4001077c:	40 00 23 07 	call  40019398 <memcpy>                        
40010780:	90 10 00 1a 	mov  %i2, %o0                                  
       *  is not, then we can go ahead and free the buffer.           
       *                                                              
       *  NOTE: If we note that the queue was not full before this receive,
       *  then we can avoid this dequeue.                             
       */                                                             
      the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue );
40010784:	40 00 07 71 	call  40012548 <_Thread_queue_Dequeue>         
40010788:	90 10 00 18 	mov  %i0, %o0                                  
      if ( !the_thread ) {                                            
4001078c:	80 a2 20 00 	cmp  %o0, 0                                    
40010790:	32 80 00 04 	bne,a   400107a0 <_CORE_message_queue_Seize+0x98>
40010794:	d4 02 20 30 	ld  [ %o0 + 0x30 ], %o2                        
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 );
40010798:	7f ff ff 7a 	call  40010580 <_Chain_Append>                 
4001079c:	91 ee 20 68 	restore  %i0, 0x68, %o0                        
  CORE_message_queue_Buffer_control *the_message,                     
  int                                priority                         
)                                                                     
{                                                                     
  #if defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY)            
    the_message->priority = priority;                                 
400107a0:	c2 02 20 24 	ld  [ %o0 + 0x24 ], %g1                        
       */                                                             
      _CORE_message_queue_Set_message_priority(                       
        the_message,                                                  
        the_thread->Wait.count                                        
      );                                                              
      the_message->Contents.size = (size_t) the_thread->Wait.option;  
400107a4:	d4 26 60 0c 	st  %o2, [ %i1 + 0xc ]                         
400107a8:	c2 26 60 08 	st  %g1, [ %i1 + 8 ]                           
  const void *source,                                                 
  void       *destination,                                            
  size_t      size                                                    
)                                                                     
{                                                                     
  memcpy(destination, source, size);                                  
400107ac:	d2 02 20 2c 	ld  [ %o0 + 0x2c ], %o1                        
400107b0:	40 00 22 fa 	call  40019398 <memcpy>                        
400107b4:	90 10 00 10 	mov  %l0, %o0                                  
        the_thread->Wait.return_argument_second.immutable_object,     
        the_message->Contents.buffer,                                 
        the_message->Contents.size                                    
      );                                                              
                                                                      
      _CORE_message_queue_Insert_message(                             
400107b8:	f4 06 60 08 	ld  [ %i1 + 8 ], %i2                           
400107bc:	40 00 15 4d 	call  40015cf0 <_CORE_message_queue_Insert_message>
400107c0:	81 e8 00 00 	restore                                        
      return;                                                         
    }                                                                 
    #endif                                                            
  }                                                                   
                                                                      
  if ( !wait ) {                                                      
400107c4:	80 8f 20 ff 	btst  0xff, %i4                                
400107c8:	12 80 00 08 	bne  400107e8 <_CORE_message_queue_Seize+0xe0> 
400107cc:	84 10 20 01 	mov  1, %g2                                    
    _ISR_Enable( level );                                             
400107d0:	7f ff da d7 	call  4000732c <sparc_enable_interrupts>       
400107d4:	90 10 00 01 	mov  %g1, %o0                                  
    executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT;
400107d8:	82 10 20 04 	mov  4, %g1                                    
400107dc:	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 );   
}                                                                     
400107e0:	81 c7 e0 08 	ret                                            
400107e4:	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;
400107e8:	c4 24 e0 30 	st  %g2, [ %l3 + 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;                           
400107ec:	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;                                            
400107f0:	e4 24 20 20 	st  %l2, [ %l0 + 0x20 ]                        
  executing->Wait.return_argument_second.mutable_object = buffer;     
400107f4:	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;             
400107f8:	e6 24 20 44 	st  %l3, [ %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 );                                               
400107fc:	90 10 00 01 	mov  %g1, %o0                                  
40010800:	7f ff da cb 	call  4000732c <sparc_enable_interrupts>       
40010804:	35 10 00 4a 	sethi  %hi(0x40012800), %i2                    
                                                                      
  _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );   
40010808:	b0 10 00 13 	mov  %l3, %i0                                  
4001080c:	b2 10 00 1d 	mov  %i5, %i1                                  
40010810:	40 00 07 b1 	call  400126d4 <_Thread_queue_Enqueue_with_handler>
40010814:	95 ee a2 34 	restore  %i2, 0x234, %o2                       
                                                                      

40007054 <_CORE_mutex_Seize>: Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) {
40007054:	9d e3 bf a0 	save  %sp, -96, %sp                            
  _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 
40007058:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
4000705c:	c2 00 61 70 	ld  [ %g1 + 0x170 ], %g1	! 4001d970 <_Thread_Dispatch_disable_level>
40007060:	80 a0 60 00 	cmp  %g1, 0                                    
40007064:	02 80 00 0d 	be  40007098 <_CORE_mutex_Seize+0x44>          
40007068:	f8 27 a0 54 	st  %i4, [ %fp + 0x54 ]                        
4000706c:	80 8e a0 ff 	btst  0xff, %i2                                
40007070:	02 80 00 0b 	be  4000709c <_CORE_mutex_Seize+0x48>          <== NEVER TAKEN
40007074:	90 10 00 18 	mov  %i0, %o0                                  
40007078:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
4000707c:	c2 00 63 10 	ld  [ %g1 + 0x310 ], %g1	! 4001db10 <_System_state_Current>
40007080:	80 a0 60 01 	cmp  %g1, 1                                    
40007084:	08 80 00 05 	bleu  40007098 <_CORE_mutex_Seize+0x44>        
40007088:	90 10 20 00 	clr  %o0                                       
4000708c:	92 10 20 00 	clr  %o1                                       
40007090:	40 00 01 b4 	call  40007760 <_Internal_error_Occurred>      
40007094:	94 10 20 13 	mov  0x13, %o2                                 
40007098:	90 10 00 18 	mov  %i0, %o0                                  
4000709c:	40 00 15 03 	call  4000c4a8 <_CORE_mutex_Seize_interrupt_trylock>
400070a0:	92 07 a0 54 	add  %fp, 0x54, %o1                            
400070a4:	80 a2 20 00 	cmp  %o0, 0                                    
400070a8:	02 80 00 09 	be  400070cc <_CORE_mutex_Seize+0x78>          
400070ac:	80 8e a0 ff 	btst  0xff, %i2                                
400070b0:	12 80 00 09 	bne  400070d4 <_CORE_mutex_Seize+0x80>         
400070b4:	35 10 00 76 	sethi  %hi(0x4001d800), %i2                    
400070b8:	7f ff eb 29 	call  40001d5c <sparc_enable_interrupts>       
400070bc:	d0 07 a0 54 	ld  [ %fp + 0x54 ], %o0                        
400070c0:	c2 06 a2 2c 	ld  [ %i2 + 0x22c ], %g1                       
400070c4:	84 10 20 01 	mov  1, %g2                                    
400070c8:	c4 20 60 34 	st  %g2, [ %g1 + 0x34 ]                        
400070cc:	81 c7 e0 08 	ret                                            
400070d0:	81 e8 00 00 	restore                                        
400070d4:	c4 06 a2 2c 	ld  [ %i2 + 0x22c ], %g2                       
400070d8:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
400070dc:	c6 00 61 70 	ld  [ %g1 + 0x170 ], %g3	! 4001d970 <_Thread_Dispatch_disable_level>
400070e0:	f2 20 a0 20 	st  %i1, [ %g2 + 0x20 ]                        
400070e4:	f0 20 a0 44 	st  %i0, [ %g2 + 0x44 ]                        
400070e8:	84 00 e0 01 	add  %g3, 1, %g2                               
400070ec:	c4 20 61 70 	st  %g2, [ %g1 + 0x170 ]                       
                                                                      
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;
400070f0:	82 10 20 01 	mov  1, %g1                                    
400070f4:	c2 26 20 30 	st  %g1, [ %i0 + 0x30 ]                        
400070f8:	7f ff eb 19 	call  40001d5c <sparc_enable_interrupts>       
400070fc:	d0 07 a0 54 	ld  [ %fp + 0x54 ], %o0                        
40007100:	90 10 00 18 	mov  %i0, %o0                                  
40007104:	7f ff ff bb 	call  40006ff0 <_CORE_mutex_Seize_interrupt_blocking>
40007108:	92 10 00 1b 	mov  %i3, %o1                                  
4000710c:	81 c7 e0 08 	ret                                            
40007110:	81 e8 00 00 	restore                                        
                                                                      

400072b8 <_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 ) {
400072b8:	9d e3 bf a0 	save  %sp, -96, %sp                            
400072bc:	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)) ) {
400072c0:	b0 10 20 00 	clr  %i0                                       
400072c4:	40 00 05 d2 	call  40008a0c <_Thread_queue_Dequeue>         
400072c8:	90 10 00 10 	mov  %l0, %o0                                  
400072cc:	80 a2 20 00 	cmp  %o0, 0                                    
400072d0:	12 80 00 0e 	bne  40007308 <_CORE_semaphore_Surrender+0x50> 
400072d4:	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 );                                            
400072d8:	7f ff ea 9d 	call  40001d4c <sparc_disable_interrupts>      
400072dc:	01 00 00 00 	nop                                            
      if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
400072e0:	c2 04 20 48 	ld  [ %l0 + 0x48 ], %g1                        
400072e4:	c4 04 20 40 	ld  [ %l0 + 0x40 ], %g2                        
400072e8:	80 a0 40 02 	cmp  %g1, %g2                                  
400072ec:	1a 80 00 05 	bcc  40007300 <_CORE_semaphore_Surrender+0x48> <== NEVER TAKEN
400072f0:	b0 10 20 04 	mov  4, %i0                                    
        the_semaphore->count += 1;                                    
400072f4:	82 00 60 01 	inc  %g1                                       
400072f8:	b0 10 20 00 	clr  %i0                                       
400072fc:	c2 24 20 48 	st  %g1, [ %l0 + 0x48 ]                        
      else                                                            
        status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;               
    _ISR_Enable( level );                                             
40007300:	7f ff ea 97 	call  40001d5c <sparc_enable_interrupts>       
40007304:	01 00 00 00 	nop                                            
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
40007308:	81 c7 e0 08 	ret                                            
4000730c:	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 76 	sethi  %hi(0x4001d800), %g1                    
40005ee4:	e0 00 62 2c 	ld  [ %g1 + 0x22c ], %l0	! 4001da2c <_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 78 	sethi  %hi(0x4001e000), %g1                    
40005f68:	c4 20 62 a4 	st  %g2, [ %g1 + 0x2a4 ]	! 4001e2a4 <_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 76 	sethi  %hi(0x4001d800), %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 22 4c 	or  %o0, 0x24c, %o0                            
40005fa8:	40 00 0e 02 	call  400097b0 <_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 fb 	call  40008fa0 <_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 78 	sethi  %hi(0x4001e000), %g1                    
40005fc8:	f0 00 62 a4 	ld  [ %g1 + 0x2a4 ], %i0	! 4001e2a4 <_Event_Sync_state>
  _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;         
40005fcc:	c0 20 62 a4 	clr  [ %g1 + 0x2a4 ]                           
  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 08 15 	call  40008038 <_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 76 	sethi  %hi(0x4001d800), %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 22 08 	ld  [ %g4 + 0x208 ], %g4	! 4001da08 <_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 76 	sethi  %hi(0x4001d800), %g4                    
4000608c:	c8 01 22 2c 	ld  [ %g4 + 0x22c ], %g4	! 4001da2c <_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 78 	sethi  %hi(0x4001e000), %g4                    
400060a0:	da 01 22 a4 	ld  [ %g4 + 0x2a4 ], %o5	! 4001e2a4 <_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 a4 	ld  [ %g4 + 0x2a4 ], %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 78 	sethi  %hi(0x4001e000), %g1                    
400060f0:	c4 20 62 a4 	st  %g2, [ %g1 + 0x2a4 ]	! 4001e2a4 <_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 f0 	call  40009924 <_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 3f 	call  40008270 <_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 3c 	call  40008680 <_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 76 	sethi  %hi(0x4001d800), %g1                    
400061b4:	c2 00 62 2c 	ld  [ %g1 + 0x22c ], %g1	! 4001da2c <_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 78 	sethi  %hi(0x4001e000), %g1                    
400061c8:	c4 00 62 a4 	ld  [ %g1 + 0x2a4 ], %g2	! 4001e2a4 <_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 a4 	st  %g2, [ %g1 + 0x2a4 ]                       
        }                                                             
                                                                      
        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 08 1e 	call  40008270 <_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 76 	sethi  %hi(0x4001d800), %g1                    
40006204:	c4 00 61 70 	ld  [ %g1 + 0x170 ], %g2	! 4001d970 <_Thread_Dispatch_disable_level>
40006208:	84 00 bf ff 	add  %g2, -1, %g2                              
4000620c:	c4 20 61 70 	st  %g2, [ %g1 + 0x170 ]                       
40006210:	81 c7 e0 08 	ret                                            
40006214:	81 e8 00 00 	restore                                        
                                                                      

4000c6d4 <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) {
4000c6d4:	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;                                         
4000c6d8:	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;                            
4000c6dc:	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 ) {                              
4000c6e0:	80 a5 80 19 	cmp  %l6, %i1                                  
4000c6e4:	0a 80 00 6d 	bcs  4000c898 <_Heap_Allocate_aligned_with_boundary+0x1c4>
4000c6e8:	e8 06 20 10 	ld  [ %i0 + 0x10 ], %l4                        
    /* Integer overflow occured */                                    
    return NULL;                                                      
  }                                                                   
                                                                      
  if ( boundary != 0 ) {                                              
4000c6ec:	80 a6 e0 00 	cmp  %i3, 0                                    
4000c6f0:	02 80 00 08 	be  4000c710 <_Heap_Allocate_aligned_with_boundary+0x3c>
4000c6f4:	82 10 20 04 	mov  4, %g1                                    
    if ( boundary < alloc_size ) {                                    
4000c6f8:	80 a6 c0 19 	cmp  %i3, %i1                                  
4000c6fc:	0a 80 00 67 	bcs  4000c898 <_Heap_Allocate_aligned_with_boundary+0x1c4>
4000c700:	80 a6 a0 00 	cmp  %i2, 0                                    
      return NULL;                                                    
    }                                                                 
                                                                      
    if ( alignment == 0 ) {                                           
4000c704:	22 80 00 03 	be,a   4000c710 <_Heap_Allocate_aligned_with_boundary+0x3c>
4000c708:	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;                     
4000c70c:	82 10 20 04 	mov  4, %g1                                    
4000c710:	82 20 40 19 	sub  %g1, %i1, %g1                             
  if ( boundary != 0 ) {                                              
    if ( boundary < alloc_size ) {                                    
      return NULL;                                                    
    }                                                                 
                                                                      
    if ( alignment == 0 ) {                                           
4000c714:	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;                     
4000c718:	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;      
4000c71c:	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;                         
4000c720:	82 05 20 07 	add  %l4, 7, %g1                               
4000c724:	10 80 00 4b 	b  4000c850 <_Heap_Allocate_aligned_with_boundary+0x17c>
4000c728:	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 ) {                  
4000c72c:	80 a4 c0 16 	cmp  %l3, %l6                                  
4000c730:	08 80 00 47 	bleu  4000c84c <_Heap_Allocate_aligned_with_boundary+0x178>
4000c734:	a2 04 60 01 	inc  %l1                                       
      if ( alignment == 0 ) {                                         
4000c738:	80 a6 a0 00 	cmp  %i2, 0                                    
4000c73c:	12 80 00 04 	bne  4000c74c <_Heap_Allocate_aligned_with_boundary+0x78>
4000c740:	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;                  
4000c744:	10 80 00 3f 	b  4000c840 <_Heap_Allocate_aligned_with_boundary+0x16c>
4000c748:	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;                     
4000c74c:	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;              
4000c750:	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;               
4000c754:	a6 0c ff fe 	and  %l3, -2, %l3                              
4000c758:	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;                     
4000c75c:	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;                         
4000c760:	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);                                 
4000c764:	90 10 00 10 	mov  %l0, %o0                                  
4000c768:	82 20 80 17 	sub  %g2, %l7, %g1                             
4000c76c:	92 10 00 1a 	mov  %i2, %o1                                  
4000c770:	40 00 31 9f 	call  40018dec <.urem>                         
4000c774:	a6 00 40 13 	add  %g1, %l3, %l3                             
4000c778:	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 ) {                          
4000c77c:	80 a4 00 13 	cmp  %l0, %l3                                  
4000c780:	08 80 00 07 	bleu  4000c79c <_Heap_Allocate_aligned_with_boundary+0xc8>
4000c784:	80 a6 e0 00 	cmp  %i3, 0                                    
4000c788:	90 10 00 13 	mov  %l3, %o0                                  
4000c78c:	40 00 31 98 	call  40018dec <.urem>                         
4000c790:	92 10 00 1a 	mov  %i2, %o1                                  
4000c794:	a0 24 c0 08 	sub  %l3, %o0, %l0                             
  }                                                                   
                                                                      
  alloc_end = alloc_begin + alloc_size;                               
                                                                      
  /* Ensure boundary constaint */                                     
  if ( boundary != 0 ) {                                              
4000c798:	80 a6 e0 00 	cmp  %i3, 0                                    
4000c79c:	02 80 00 1d 	be  4000c810 <_Heap_Allocate_aligned_with_boundary+0x13c>
4000c7a0:	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;                               
4000c7a4:	a6 04 00 19 	add  %l0, %i1, %l3                             
                                                                      
  /* Ensure boundary constaint */                                     
  if ( boundary != 0 ) {                                              
    uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;  
4000c7a8:	82 05 40 19 	add  %l5, %i1, %g1                             
4000c7ac:	92 10 00 1b 	mov  %i3, %o1                                  
4000c7b0:	90 10 00 13 	mov  %l3, %o0                                  
4000c7b4:	10 80 00 0b 	b  4000c7e0 <_Heap_Allocate_aligned_with_boundary+0x10c>
4000c7b8:	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 ) {                         
4000c7bc:	80 a0 40 02 	cmp  %g1, %g2                                  
4000c7c0:	2a 80 00 24 	bcs,a   4000c850 <_Heap_Allocate_aligned_with_boundary+0x17c>
4000c7c4:	e4 04 a0 08 	ld  [ %l2 + 8 ], %l2                           
4000c7c8:	40 00 31 89 	call  40018dec <.urem>                         
4000c7cc:	01 00 00 00 	nop                                            
4000c7d0:	92 10 00 1b 	mov  %i3, %o1                                  
4000c7d4:	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;                           
4000c7d8:	a6 04 00 19 	add  %l0, %i1, %l3                             
4000c7dc:	90 10 00 13 	mov  %l3, %o0                                  
4000c7e0:	40 00 31 83 	call  40018dec <.urem>                         
4000c7e4:	01 00 00 00 	nop                                            
4000c7e8:	92 10 00 1a 	mov  %i2, %o1                                  
4000c7ec:	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;                       
4000c7f0:	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 ) {
4000c7f4:	80 a0 40 13 	cmp  %g1, %l3                                  
4000c7f8:	1a 80 00 05 	bcc  4000c80c <_Heap_Allocate_aligned_with_boundary+0x138>
4000c7fc:	90 10 00 1d 	mov  %i5, %o0                                  
4000c800:	80 a4 00 01 	cmp  %l0, %g1                                  
4000c804:	0a bf ff ee 	bcs  4000c7bc <_Heap_Allocate_aligned_with_boundary+0xe8>
4000c808:	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 ) {                           
4000c80c:	80 a4 00 15 	cmp  %l0, %l5                                  
4000c810:	0a 80 00 0f 	bcs  4000c84c <_Heap_Allocate_aligned_with_boundary+0x178>
4000c814:	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;      
4000c818:	90 10 00 10 	mov  %l0, %o0                                  
4000c81c:	a6 04 c0 10 	add  %l3, %l0, %l3                             
4000c820:	40 00 31 73 	call  40018dec <.urem>                         
4000c824:	92 10 00 14 	mov  %l4, %o1                                  
                                                                      
    if ( free_size >= min_block_size || free_size == 0 ) {            
4000c828:	90 a4 c0 08 	subcc  %l3, %o0, %o0                           
4000c82c:	02 80 00 06 	be  4000c844 <_Heap_Allocate_aligned_with_boundary+0x170>
4000c830:	80 a4 20 00 	cmp  %l0, 0                                    
4000c834:	80 a2 00 17 	cmp  %o0, %l7                                  
4000c838:	2a 80 00 06 	bcs,a   4000c850 <_Heap_Allocate_aligned_with_boundary+0x17c>
4000c83c:	e4 04 a0 08 	ld  [ %l2 + 8 ], %l2                           
          boundary                                                    
        );                                                            
      }                                                               
    }                                                                 
                                                                      
    if ( alloc_begin != 0 ) {                                         
4000c840:	80 a4 20 00 	cmp  %l0, 0                                    
4000c844:	32 80 00 08 	bne,a   4000c864 <_Heap_Allocate_aligned_with_boundary+0x190><== ALWAYS TAKEN
4000c848:	c2 06 20 4c 	ld  [ %i0 + 0x4c ], %g1                        
      break;                                                          
    }                                                                 
                                                                      
    block = block->next;                                              
4000c84c:	e4 04 a0 08 	ld  [ %l2 + 8 ], %l2                           
    if ( alignment == 0 ) {                                           
      alignment = page_size;                                          
    }                                                                 
  }                                                                   
                                                                      
  while ( block != free_list_tail ) {                                 
4000c850:	80 a4 80 18 	cmp  %l2, %i0                                  
4000c854:	32 bf ff b6 	bne,a   4000c72c <_Heap_Allocate_aligned_with_boundary+0x58>
4000c858:	e6 04 a0 04 	ld  [ %l2 + 4 ], %l3                           
4000c85c:	10 80 00 09 	b  4000c880 <_Heap_Allocate_aligned_with_boundary+0x1ac>
4000c860:	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 );
4000c864:	92 10 00 12 	mov  %l2, %o1                                  
    block = block->next;                                              
  }                                                                   
                                                                      
  if ( alloc_begin != 0 ) {                                           
    /* Statistics */                                                  
    stats->searches += search_count;                                  
4000c868:	82 00 40 11 	add  %g1, %l1, %g1                             
                                                                      
    block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
4000c86c:	96 10 00 19 	mov  %i1, %o3                                  
    block = block->next;                                              
  }                                                                   
                                                                      
  if ( alloc_begin != 0 ) {                                           
    /* Statistics */                                                  
    stats->searches += search_count;                                  
4000c870:	c2 26 20 4c 	st  %g1, [ %i0 + 0x4c ]                        
                                                                      
    block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
4000c874:	90 10 00 18 	mov  %i0, %o0                                  
4000c878:	7f ff eb 69 	call  4000761c <_Heap_Block_allocate>          
4000c87c:	94 10 00 10 	mov  %l0, %o2                                  
  uintptr_t alloc_size,                                               
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
  Heap_Statistics *const stats = &heap->stats;                        
4000c880:	c2 06 20 44 	ld  [ %i0 + 0x44 ], %g1                        
4000c884:	80 a0 40 11 	cmp  %g1, %l1                                  
4000c888:	2a 80 00 02 	bcs,a   4000c890 <_Heap_Allocate_aligned_with_boundary+0x1bc>
4000c88c:	e2 26 20 44 	st  %l1, [ %i0 + 0x44 ]                        
  /* Statistics */                                                    
  if ( stats->max_search < search_count ) {                           
    stats->max_search = search_count;                                 
  }                                                                   
                                                                      
  return (void *) alloc_begin;                                        
4000c890:	81 c7 e0 08 	ret                                            
4000c894:	91 e8 00 10 	restore  %g0, %l0, %o0                         
}                                                                     
4000c898:	81 c7 e0 08 	ret                                            
4000c89c:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

40011cd0 <_Heap_Extend>: Heap_Control *heap, void *area_begin_ptr, uintptr_t area_size, uintptr_t *amount_extended ) {
40011cd0:	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;                     
40011cd4:	c2 06 20 1c 	ld  [ %i0 + 0x1c ], %g1                        
  Heap_Control *heap,                                                 
  void *area_begin_ptr,                                               
  uintptr_t area_size,                                                
  uintptr_t *amount_extended                                          
)                                                                     
{                                                                     
40011cd8:	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 ) {
40011cdc:	80 a6 40 01 	cmp  %i1, %g1                                  
40011ce0:	1a 80 00 07 	bcc  40011cfc <_Heap_Extend+0x2c>              
40011ce4:	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;                 
40011ce8:	c4 06 20 18 	ld  [ %i0 + 0x18 ], %g2                        
40011cec:	80 a6 40 02 	cmp  %i1, %g2                                  
40011cf0:	1a 80 00 28 	bcc  40011d90 <_Heap_Extend+0xc0>              
40011cf4:	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 ) {                         
40011cf8:	80 a6 40 01 	cmp  %i1, %g1                                  
40011cfc:	12 80 00 25 	bne  40011d90 <_Heap_Extend+0xc0>              
40011d00:	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);                                 
40011d04:	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;      
40011d08:	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                                     
40011d0c:	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;                                 
40011d10:	f4 24 20 1c 	st  %i2, [ %l0 + 0x1c ]                        
                                                                      
  extend_size = new_heap_area_end                                     
40011d14:	b2 06 7f f8 	add  %i1, -8, %i1                              
40011d18:	7f ff c9 0c 	call  40004148 <.urem>                         
40011d1c:	90 10 00 19 	mov  %i1, %o0                                  
40011d20:	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;                                     
40011d24:	d0 26 c0 00 	st  %o0, [ %i3 ]                               
                                                                      
  if( extend_size >= heap->min_block_size ) {                         
40011d28:	c2 04 20 14 	ld  [ %l0 + 0x14 ], %g1                        
40011d2c:	80 a2 00 01 	cmp  %o0, %g1                                  
40011d30:	0a 80 00 18 	bcs  40011d90 <_Heap_Extend+0xc0>              <== NEVER TAKEN
40011d34:	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;                                 
40011d38:	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 =                                   
40011d3c:	c4 04 20 20 	ld  [ %l0 + 0x20 ], %g2                        
40011d40:	82 08 60 01 	and  %g1, 1, %g1                               
40011d44:	82 12 00 01 	or  %o0, %g1, %g1                              
40011d48:	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);                 
40011d4c:	82 02 00 11 	add  %o0, %l1, %g1                             
40011d50:	84 20 80 01 	sub  %g2, %g1, %g2                             
40011d54:	84 10 a0 01 	or  %g2, 1, %g2                                
40011d58:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
                                                                      
    heap->last_block = new_last_block;                                
                                                                      
    /* Statistics */                                                  
    stats->size += extend_size;                                       
    ++stats->used_blocks;                                             
40011d5c:	c6 04 20 40 	ld  [ %l0 + 0x40 ], %g3                        
        | HEAP_PREV_BLOCK_USED;                                       
                                                                      
    heap->last_block = new_last_block;                                
                                                                      
    /* Statistics */                                                  
    stats->size += extend_size;                                       
40011d60:	f2 04 20 2c 	ld  [ %l0 + 0x2c ], %i1                        
    ++stats->used_blocks;                                             
    --stats->frees; /* Do not count subsequent call as actual free() */
40011d64:	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;                                
40011d68:	c2 24 20 24 	st  %g1, [ %l0 + 0x24 ]                        
                                                                      
    /* Statistics */                                                  
    stats->size += extend_size;                                       
    ++stats->used_blocks;                                             
40011d6c:	82 00 e0 01 	add  %g3, 1, %g1                               
        | HEAP_PREV_BLOCK_USED;                                       
                                                                      
    heap->last_block = new_last_block;                                
                                                                      
    /* Statistics */                                                  
    stats->size += extend_size;                                       
40011d70:	90 06 40 08 	add  %i1, %o0, %o0                             
    ++stats->used_blocks;                                             
40011d74:	c2 24 20 40 	st  %g1, [ %l0 + 0x40 ]                        
    --stats->frees; /* Do not count subsequent call as actual free() */
40011d78:	82 00 bf ff 	add  %g2, -1, %g1                              
        | HEAP_PREV_BLOCK_USED;                                       
                                                                      
    heap->last_block = new_last_block;                                
                                                                      
    /* Statistics */                                                  
    stats->size += extend_size;                                       
40011d7c:	d0 24 20 2c 	st  %o0, [ %l0 + 0x2c ]                        
    ++stats->used_blocks;                                             
    --stats->frees; /* Do not count subsequent call as actual free() */
40011d80:	c2 24 20 50 	st  %g1, [ %l0 + 0x50 ]                        
                                                                      
    _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block ));
40011d84:	90 10 00 10 	mov  %l0, %o0                                  
40011d88:	7f ff e8 fb 	call  4000c174 <_Heap_Free>                    
40011d8c:	92 04 60 08 	add  %l1, 8, %o1                               
  }                                                                   
                                                                      
  return HEAP_EXTEND_SUCCESSFUL;                                      
}                                                                     
40011d90:	81 c7 e0 08 	ret                                            
40011d94:	81 e8 00 00 	restore                                        
                                                                      

4000c8a0 <_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 ) {
4000c8a0:	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 )   
4000c8a4:	d2 06 20 10 	ld  [ %i0 + 0x10 ], %o1                        
4000c8a8:	40 00 31 51 	call  40018dec <.urem>                         
4000c8ac:	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;             
4000c8b0:	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 )   
4000c8b4:	b2 06 7f f8 	add  %i1, -8, %i1                              
4000c8b8:	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           
4000c8bc:	80 a2 00 01 	cmp  %o0, %g1                                  
4000c8c0:	0a 80 00 05 	bcs  4000c8d4 <_Heap_Free+0x34>                
4000c8c4:	84 10 20 00 	clr  %g2                                       
4000c8c8:	c4 06 20 24 	ld  [ %i0 + 0x24 ], %g2                        
4000c8cc:	80 a0 80 08 	cmp  %g2, %o0                                  
4000c8d0:	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 ) ) {                     
4000c8d4:	80 a0 a0 00 	cmp  %g2, 0                                    
4000c8d8:	02 80 00 6a 	be  4000ca80 <_Heap_Free+0x1e0>                
4000c8dc:	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;                
4000c8e0:	c8 02 20 04 	ld  [ %o0 + 4 ], %g4                           
4000c8e4:	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);                 
4000c8e8:	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           
4000c8ec:	80 a0 80 01 	cmp  %g2, %g1                                  
4000c8f0:	0a 80 00 05 	bcs  4000c904 <_Heap_Free+0x64>                <== NEVER TAKEN
4000c8f4:	9a 10 20 00 	clr  %o5                                       
4000c8f8:	da 06 20 24 	ld  [ %i0 + 0x24 ], %o5                        
4000c8fc:	80 a3 40 02 	cmp  %o5, %g2                                  
4000c900:	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 ) ) {                
4000c904:	80 a3 60 00 	cmp  %o5, 0                                    
4000c908:	02 80 00 5e 	be  4000ca80 <_Heap_Free+0x1e0>                <== NEVER TAKEN
4000c90c:	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;                 
4000c910:	da 00 a0 04 	ld  [ %g2 + 4 ], %o5                           
    _HAssert( false );                                                
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( next_block ) ) {                          
4000c914:	80 8b 60 01 	btst  1, %o5                                   
4000c918:	02 80 00 5a 	be  4000ca80 <_Heap_Free+0x1e0>                <== NEVER TAKEN
4000c91c:	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 ));
4000c920:	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                       
4000c924:	80 a0 80 09 	cmp  %g2, %o1                                  
4000c928:	02 80 00 06 	be  4000c940 <_Heap_Free+0xa0>                 
4000c92c:	96 10 20 00 	clr  %o3                                       
4000c930:	98 00 80 0d 	add  %g2, %o5, %o4                             
4000c934:	d6 03 20 04 	ld  [ %o4 + 4 ], %o3                           
4000c938:	96 0a e0 01 	and  %o3, 1, %o3                               
4000c93c:	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 ) ) {                               
4000c940:	80 89 20 01 	btst  1, %g4                                   
4000c944:	12 80 00 26 	bne  4000c9dc <_Heap_Free+0x13c>               
4000c948:	80 a2 e0 00 	cmp  %o3, 0                                    
    uintptr_t const prev_size = block->prev_size;                     
4000c94c:	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);                 
4000c950:	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           
4000c954:	80 a1 00 01 	cmp  %g4, %g1                                  
4000c958:	0a 80 00 04 	bcs  4000c968 <_Heap_Free+0xc8>                <== NEVER TAKEN
4000c95c:	94 10 20 00 	clr  %o2                                       
4000c960:	80 a2 40 04 	cmp  %o1, %g4                                  
4000c964:	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 ) ) {              
4000c968:	80 a2 a0 00 	cmp  %o2, 0                                    
4000c96c:	02 80 00 45 	be  4000ca80 <_Heap_Free+0x1e0>                <== NEVER TAKEN
4000c970:	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) ) {                        
4000c974:	c2 01 20 04 	ld  [ %g4 + 4 ], %g1                           
4000c978:	80 88 60 01 	btst  1, %g1                                   
4000c97c:	02 80 00 41 	be  4000ca80 <_Heap_Free+0x1e0>                <== NEVER TAKEN
4000c980:	80 a2 e0 00 	cmp  %o3, 0                                    
      _HAssert( false );                                              
      return( false );                                                
    }                                                                 
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
4000c984:	22 80 00 0f 	be,a   4000c9c0 <_Heap_Free+0x120>             
4000c988:	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;                                        
4000c98c:	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;                                     
4000c990:	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;                                     
4000c994:	c4 00 a0 08 	ld  [ %g2 + 8 ], %g2                           
4000c998:	82 00 7f ff 	add  %g1, -1, %g1                              
4000c99c:	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;
4000c9a0:	9a 00 c0 0d 	add  %g3, %o5, %o5                             
  Heap_Block *prev = block->prev;                                     
                                                                      
  prev->next = next;                                                  
  next->prev = prev;                                                  
4000c9a4:	d6 20 a0 0c 	st  %o3, [ %g2 + 0xc ]                         
4000c9a8:	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;                                                  
4000c9ac:	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;                                   
4000c9b0:	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;        
4000c9b4:	98 13 20 01 	or  %o4, 1, %o4                                
4000c9b8:	10 80 00 27 	b  4000ca54 <_Heap_Free+0x1b4>                 
4000c9bc:	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;        
4000c9c0:	82 13 20 01 	or  %o4, 1, %g1                                
4000c9c4:	c2 21 20 04 	st  %g1, [ %g4 + 4 ]                           
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
4000c9c8:	c2 00 a0 04 	ld  [ %g2 + 4 ], %g1                           
      next_block->prev_size = size;                                   
4000c9cc:	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;             
4000c9d0:	82 08 7f fe 	and  %g1, -2, %g1                              
4000c9d4:	10 80 00 20 	b  4000ca54 <_Heap_Free+0x1b4>                 
4000c9d8:	c2 20 a0 04 	st  %g1, [ %g2 + 4 ]                           
      next_block->prev_size = size;                                   
    }                                                                 
  } else if ( next_is_free ) {    /* coalesce next */                 
4000c9dc:	02 80 00 0d 	be  4000ca10 <_Heap_Free+0x170>                
4000c9e0:	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;                                 
4000c9e4:	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;                                 
4000c9e8:	c4 00 a0 08 	ld  [ %g2 + 8 ], %g2                           
  Heap_Block *prev = old_block->prev;                                 
                                                                      
  new_block->next = next;                                             
  new_block->prev = prev;                                             
4000c9ec:	c2 22 20 0c 	st  %g1, [ %o0 + 0xc ]                         
)                                                                     
{                                                                     
  Heap_Block *next = old_block->next;                                 
  Heap_Block *prev = old_block->prev;                                 
                                                                      
  new_block->next = next;                                             
4000c9f0:	c4 22 20 08 	st  %g2, [ %o0 + 8 ]                           
  new_block->prev = prev;                                             
                                                                      
  next->prev = new_block;                                             
  prev->next = new_block;                                             
4000c9f4:	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;                                             
4000c9f8:	d0 20 a0 0c 	st  %o0, [ %g2 + 0xc ]                         
    uintptr_t const size = block_size + next_block_size;              
4000c9fc:	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;                                     
4000ca00:	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;               
4000ca04:	82 10 60 01 	or  %g1, 1, %g1                                
4000ca08:	10 80 00 13 	b  4000ca54 <_Heap_Free+0x1b4>                 
4000ca0c:	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;         
4000ca10:	c2 22 20 04 	st  %g1, [ %o0 + 4 ]                           
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
4000ca14:	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;                              
4000ca18:	c8 06 20 08 	ld  [ %i0 + 8 ], %g4                           
4000ca1c:	82 08 7f fe 	and  %g1, -2, %g1                              
    next_block->prev_size = block_size;                               
4000ca20:	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;               
4000ca24:	c2 20 a0 04 	st  %g1, [ %g2 + 4 ]                           
    next_block->prev_size = block_size;                               
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
4000ca28:	c2 06 20 38 	ld  [ %i0 + 0x38 ], %g1                        
                                                                      
  new_block->next = next;                                             
4000ca2c:	c8 22 20 08 	st  %g4, [ %o0 + 8 ]                           
  new_block->prev = block_before;                                     
4000ca30:	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;                        
4000ca34:	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;                                             
4000ca38:	82 00 60 01 	inc  %g1                                       
  block_before->next = new_block;                                     
  next->prev = new_block;                                             
4000ca3c:	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;                                     
4000ca40:	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;                        
4000ca44:	80 a0 80 01 	cmp  %g2, %g1                                  
4000ca48:	1a 80 00 03 	bcc  4000ca54 <_Heap_Free+0x1b4>               
4000ca4c:	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;                    
4000ca50:	c2 26 20 3c 	st  %g1, [ %i0 + 0x3c ]                        
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
4000ca54:	c4 06 20 40 	ld  [ %i0 + 0x40 ], %g2                        
  ++stats->frees;                                                     
4000ca58:	c2 06 20 50 	ld  [ %i0 + 0x50 ], %g1                        
  stats->free_size += block_size;                                     
4000ca5c:	c8 06 20 30 	ld  [ %i0 + 0x30 ], %g4                        
      stats->max_free_blocks = stats->free_blocks;                    
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
4000ca60:	84 00 bf ff 	add  %g2, -1, %g2                              
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
4000ca64:	86 01 00 03 	add  %g4, %g3, %g3                             
      stats->max_free_blocks = stats->free_blocks;                    
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
4000ca68:	c4 26 20 40 	st  %g2, [ %i0 + 0x40 ]                        
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
4000ca6c:	c6 26 20 30 	st  %g3, [ %i0 + 0x30 ]                        
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
4000ca70:	82 00 60 01 	inc  %g1                                       
4000ca74:	c2 26 20 50 	st  %g1, [ %i0 + 0x50 ]                        
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
4000ca78:	81 c7 e0 08 	ret                                            
4000ca7c:	91 e8 20 01 	restore  %g0, 1, %o0                           
}                                                                     
4000ca80:	81 c7 e0 08 	ret                                            
4000ca84:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

4001b5e8 <_Heap_Size_of_alloc_area>: bool _Heap_Size_of_alloc_area( Heap_Control *heap, void *alloc_begin_ptr, uintptr_t *alloc_size ) {
4001b5e8:	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 )   
4001b5ec:	d2 06 20 10 	ld  [ %i0 + 0x10 ], %o1                        
4001b5f0:	7f ff f5 ff 	call  40018dec <.urem>                         
4001b5f4:	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;             
4001b5f8:	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 )   
4001b5fc:	84 06 7f f8 	add  %i1, -8, %g2                              
4001b600:	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           
4001b604:	80 a2 00 01 	cmp  %o0, %g1                                  
4001b608:	0a 80 00 05 	bcs  4001b61c <_Heap_Size_of_alloc_area+0x34>  
4001b60c:	84 10 20 00 	clr  %g2                                       
4001b610:	c4 06 20 24 	ld  [ %i0 + 0x24 ], %g2                        
4001b614:	80 a0 80 08 	cmp  %g2, %o0                                  
4001b618:	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 ) ) {                     
4001b61c:	80 a0 a0 00 	cmp  %g2, 0                                    
4001b620:	02 80 00 16 	be  4001b678 <_Heap_Size_of_alloc_area+0x90>   
4001b624:	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);                 
4001b628:	c4 02 20 04 	ld  [ %o0 + 4 ], %g2                           
4001b62c:	84 08 bf fe 	and  %g2, -2, %g2                              
4001b630:	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           
4001b634:	80 a0 80 01 	cmp  %g2, %g1                                  
4001b638:	0a 80 00 05 	bcs  4001b64c <_Heap_Size_of_alloc_area+0x64>  <== NEVER TAKEN
4001b63c:	86 10 20 00 	clr  %g3                                       
4001b640:	c2 06 20 24 	ld  [ %i0 + 0x24 ], %g1                        
4001b644:	80 a0 40 02 	cmp  %g1, %g2                                  
4001b648:	86 60 3f ff 	subx  %g0, -1, %g3                             
  }                                                                   
                                                                      
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if (                                                                
4001b64c:	80 a0 e0 00 	cmp  %g3, 0                                    
4001b650:	02 80 00 0a 	be  4001b678 <_Heap_Size_of_alloc_area+0x90>   <== NEVER TAKEN
4001b654:	01 00 00 00 	nop                                            
4001b658:	c2 00 a0 04 	ld  [ %g2 + 4 ], %g1                           
4001b65c:	80 88 60 01 	btst  1, %g1                                   
4001b660:	02 80 00 06 	be  4001b678 <_Heap_Size_of_alloc_area+0x90>   <== NEVER TAKEN
4001b664:	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;
4001b668:	84 00 a0 04 	add  %g2, 4, %g2                               
4001b66c:	c4 26 80 00 	st  %g2, [ %i2 ]                               
                                                                      
  return true;                                                        
4001b670:	81 c7 e0 08 	ret                                            
4001b674:	91 e8 20 01 	restore  %g0, 1, %o0                           
}                                                                     
4001b678:	81 c7 e0 08 	ret                                            
4001b67c:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

4000859c <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) {
4000859c:	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;                      
400085a0:	23 10 00 22 	sethi  %hi(0x40008800), %l1                    
400085a4:	80 8e a0 ff 	btst  0xff, %i2                                
400085a8:	a2 14 62 74 	or  %l1, 0x274, %l1                            
  Heap_Control *heap,                                                 
  int source,                                                         
  bool dump                                                           
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
400085ac:	e4 06 20 10 	ld  [ %i0 + 0x10 ], %l2                        
  uintptr_t const min_block_size = heap->min_block_size;              
400085b0:	e6 06 20 14 	ld  [ %i0 + 0x14 ], %l3                        
  Heap_Block *const last_block = heap->last_block;                    
400085b4:	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;                      
400085b8:	12 80 00 04 	bne  400085c8 <_Heap_Walk+0x2c>                
400085bc:	e0 06 20 20 	ld  [ %i0 + 0x20 ], %l0                        
400085c0:	23 10 00 21 	sethi  %hi(0x40008400), %l1                    
400085c4:	a2 14 61 94 	or  %l1, 0x194, %l1	! 40008594 <_Heap_Walk_print_nothing>
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
400085c8:	03 10 00 80 	sethi  %hi(0x40020000), %g1                    
400085cc:	c2 00 61 d0 	ld  [ %g1 + 0x1d0 ], %g1	! 400201d0 <_System_state_Current>
400085d0:	80 a0 60 03 	cmp  %g1, 3                                    
400085d4:	12 80 01 1e 	bne  40008a4c <_Heap_Walk+0x4b0>               
400085d8:	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)(                                                         
400085dc:	da 06 20 18 	ld  [ %i0 + 0x18 ], %o5                        
400085e0:	c6 06 20 1c 	ld  [ %i0 + 0x1c ], %g3                        
400085e4:	c4 06 20 08 	ld  [ %i0 + 8 ], %g2                           
400085e8:	c2 06 20 0c 	ld  [ %i0 + 0xc ], %g1                         
400085ec:	c6 23 a0 5c 	st  %g3, [ %sp + 0x5c ]                        
400085f0:	c4 23 a0 68 	st  %g2, [ %sp + 0x68 ]                        
400085f4:	c2 23 a0 6c 	st  %g1, [ %sp + 0x6c ]                        
400085f8:	e0 23 a0 60 	st  %l0, [ %sp + 0x60 ]                        
400085fc:	e8 23 a0 64 	st  %l4, [ %sp + 0x64 ]                        
40008600:	92 10 20 00 	clr  %o1                                       
40008604:	15 10 00 74 	sethi  %hi(0x4001d000), %o2                    
40008608:	96 10 00 12 	mov  %l2, %o3                                  
4000860c:	94 12 a1 c0 	or  %o2, 0x1c0, %o2                            
40008610:	9f c4 40 00 	call  %l1                                      
40008614:	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 ) {                                             
40008618:	80 a4 a0 00 	cmp  %l2, 0                                    
4000861c:	12 80 00 07 	bne  40008638 <_Heap_Walk+0x9c>                
40008620:	80 8c a0 07 	btst  7, %l2                                   
    (*printer)( source, true, "page size is zero\n" );                
40008624:	15 10 00 74 	sethi  %hi(0x4001d000), %o2                    
40008628:	90 10 00 19 	mov  %i1, %o0                                  
4000862c:	92 10 20 01 	mov  1, %o1                                    
40008630:	10 80 00 27 	b  400086cc <_Heap_Walk+0x130>                 
40008634:	94 12 a2 58 	or  %o2, 0x258, %o2                            
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Addresses_Is_aligned( (void *) page_size ) ) {               
40008638:	22 80 00 08 	be,a   40008658 <_Heap_Walk+0xbc>              
4000863c:	90 10 00 13 	mov  %l3, %o0                                  
    (*printer)(                                                       
40008640:	15 10 00 74 	sethi  %hi(0x4001d000), %o2                    
40008644:	90 10 00 19 	mov  %i1, %o0                                  
40008648:	96 10 00 12 	mov  %l2, %o3                                  
4000864c:	92 10 20 01 	mov  1, %o1                                    
40008650:	10 80 01 05 	b  40008a64 <_Heap_Walk+0x4c8>                 
40008654:	94 12 a2 70 	or  %o2, 0x270, %o2                            
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {             
40008658:	7f ff e5 20 	call  40001ad8 <.urem>                         
4000865c:	92 10 00 12 	mov  %l2, %o1                                  
40008660:	80 a2 20 00 	cmp  %o0, 0                                    
40008664:	22 80 00 08 	be,a   40008684 <_Heap_Walk+0xe8>              
40008668:	90 04 20 08 	add  %l0, 8, %o0                               
    (*printer)(                                                       
4000866c:	15 10 00 74 	sethi  %hi(0x4001d000), %o2                    
40008670:	90 10 00 19 	mov  %i1, %o0                                  
40008674:	96 10 00 13 	mov  %l3, %o3                                  
40008678:	92 10 20 01 	mov  1, %o1                                    
4000867c:	10 80 00 fa 	b  40008a64 <_Heap_Walk+0x4c8>                 
40008680:	94 12 a2 90 	or  %o2, 0x290, %o2                            
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
40008684:	7f ff e5 15 	call  40001ad8 <.urem>                         
40008688:	92 10 00 12 	mov  %l2, %o1                                  
4000868c:	80 a2 20 00 	cmp  %o0, 0                                    
40008690:	22 80 00 08 	be,a   400086b0 <_Heap_Walk+0x114>             
40008694:	c2 04 20 04 	ld  [ %l0 + 4 ], %g1                           
    !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
  ) {                                                                 
    (*printer)(                                                       
40008698:	15 10 00 74 	sethi  %hi(0x4001d000), %o2                    
4000869c:	90 10 00 19 	mov  %i1, %o0                                  
400086a0:	96 10 00 10 	mov  %l0, %o3                                  
400086a4:	92 10 20 01 	mov  1, %o1                                    
400086a8:	10 80 00 ef 	b  40008a64 <_Heap_Walk+0x4c8>                 
400086ac:	94 12 a2 b8 	or  %o2, 0x2b8, %o2                            
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( first_block ) ) {                         
400086b0:	80 88 60 01 	btst  1, %g1                                   
400086b4:	32 80 00 09 	bne,a   400086d8 <_Heap_Walk+0x13c>            
400086b8:	ea 04 00 00 	ld  [ %l0 ], %l5                               
    (*printer)(                                                       
400086bc:	15 10 00 74 	sethi  %hi(0x4001d000), %o2                    
400086c0:	90 10 00 19 	mov  %i1, %o0                                  
400086c4:	92 10 20 01 	mov  1, %o1                                    
400086c8:	94 12 a2 f0 	or  %o2, 0x2f0, %o2                            
400086cc:	9f c4 40 00 	call  %l1                                      
400086d0:	b0 10 20 00 	clr  %i0                                       
400086d4:	30 80 00 e6 	b,a   40008a6c <_Heap_Walk+0x4d0>              
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( first_block->prev_size != page_size ) {                        
400086d8:	80 a5 40 12 	cmp  %l5, %l2                                  
400086dc:	22 80 00 09 	be,a   40008700 <_Heap_Walk+0x164>             
400086e0:	c2 05 20 04 	ld  [ %l4 + 4 ], %g1                           
    (*printer)(                                                       
400086e4:	15 10 00 74 	sethi  %hi(0x4001d000), %o2                    
400086e8:	90 10 00 19 	mov  %i1, %o0                                  
400086ec:	96 10 00 15 	mov  %l5, %o3                                  
400086f0:	98 10 00 12 	mov  %l2, %o4                                  
400086f4:	92 10 20 01 	mov  1, %o1                                    
400086f8:	10 80 00 88 	b  40008918 <_Heap_Walk+0x37c>                 
400086fc:	94 12 a3 20 	or  %o2, 0x320, %o2                            
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( _Heap_Is_free( last_block ) ) {                                
40008700:	82 08 7f fe 	and  %g1, -2, %g1                              
40008704:	82 05 00 01 	add  %l4, %g1, %g1                             
40008708:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
4000870c:	80 88 60 01 	btst  1, %g1                                   
40008710:	32 80 00 07 	bne,a   4000872c <_Heap_Walk+0x190>            
40008714:	d6 06 20 08 	ld  [ %i0 + 8 ], %o3                           
    (*printer)(                                                       
40008718:	15 10 00 74 	sethi  %hi(0x4001d000), %o2                    
4000871c:	90 10 00 19 	mov  %i1, %o0                                  
40008720:	92 10 20 01 	mov  1, %o1                                    
40008724:	10 bf ff ea 	b  400086cc <_Heap_Walk+0x130>                 
40008728:	94 12 a3 50 	or  %o2, 0x350, %o2                            
  int source,                                                         
  Heap_Walk_printer printer,                                          
  Heap_Control *heap                                                  
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
4000872c:	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;                            
40008730:	a4 10 00 18 	mov  %i0, %l2                                  
40008734:	10 80 00 32 	b  400087fc <_Heap_Walk+0x260>                 
40008738:	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           
4000873c:	80 a0 80 17 	cmp  %g2, %l7                                  
40008740:	18 80 00 05 	bgu  40008754 <_Heap_Walk+0x1b8>               
40008744:	82 10 20 00 	clr  %g1                                       
40008748:	c2 06 20 24 	ld  [ %i0 + 0x24 ], %g1                        
4000874c:	80 a0 40 17 	cmp  %g1, %l7                                  
40008750:	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 ) ) {              
40008754:	80 a0 60 00 	cmp  %g1, 0                                    
40008758:	32 80 00 08 	bne,a   40008778 <_Heap_Walk+0x1dc>            
4000875c:	90 05 e0 08 	add  %l7, 8, %o0                               
      (*printer)(                                                     
40008760:	15 10 00 74 	sethi  %hi(0x4001d000), %o2                    
40008764:	96 10 00 17 	mov  %l7, %o3                                  
40008768:	90 10 00 19 	mov  %i1, %o0                                  
4000876c:	92 10 20 01 	mov  1, %o1                                    
40008770:	10 80 00 bd 	b  40008a64 <_Heap_Walk+0x4c8>                 
40008774:	94 12 a3 68 	or  %o2, 0x368, %o2                            
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if (                                                              
40008778:	7f ff e4 d8 	call  40001ad8 <.urem>                         
4000877c:	92 10 00 16 	mov  %l6, %o1                                  
40008780:	80 a2 20 00 	cmp  %o0, 0                                    
40008784:	22 80 00 08 	be,a   400087a4 <_Heap_Walk+0x208>             
40008788:	c2 05 e0 04 	ld  [ %l7 + 4 ], %g1                           
      !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
    ) {                                                               
      (*printer)(                                                     
4000878c:	15 10 00 74 	sethi  %hi(0x4001d000), %o2                    
40008790:	96 10 00 17 	mov  %l7, %o3                                  
40008794:	90 10 00 19 	mov  %i1, %o0                                  
40008798:	92 10 20 01 	mov  1, %o1                                    
4000879c:	10 80 00 b2 	b  40008a64 <_Heap_Walk+0x4c8>                 
400087a0:	94 12 a3 88 	or  %o2, 0x388, %o2                            
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
400087a4:	82 08 7f fe 	and  %g1, -2, %g1                              
400087a8:	82 05 c0 01 	add  %l7, %g1, %g1                             
400087ac:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
400087b0:	80 88 60 01 	btst  1, %g1                                   
400087b4:	22 80 00 08 	be,a   400087d4 <_Heap_Walk+0x238>             
400087b8:	d8 05 e0 0c 	ld  [ %l7 + 0xc ], %o4                         
      (*printer)(                                                     
400087bc:	15 10 00 74 	sethi  %hi(0x4001d000), %o2                    
400087c0:	96 10 00 17 	mov  %l7, %o3                                  
400087c4:	90 10 00 19 	mov  %i1, %o0                                  
400087c8:	92 10 20 01 	mov  1, %o1                                    
400087cc:	10 80 00 a6 	b  40008a64 <_Heap_Walk+0x4c8>                 
400087d0:	94 12 a3 b8 	or  %o2, 0x3b8, %o2                            
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( free_block->prev != prev_block ) {                           
400087d4:	80 a3 00 12 	cmp  %o4, %l2                                  
400087d8:	02 80 00 08 	be  400087f8 <_Heap_Walk+0x25c>                
400087dc:	a4 10 00 17 	mov  %l7, %l2                                  
      (*printer)(                                                     
400087e0:	15 10 00 74 	sethi  %hi(0x4001d000), %o2                    
400087e4:	96 10 00 17 	mov  %l7, %o3                                  
400087e8:	90 10 00 19 	mov  %i1, %o0                                  
400087ec:	92 10 20 01 	mov  1, %o1                                    
400087f0:	10 80 00 4a 	b  40008918 <_Heap_Walk+0x37c>                 
400087f4:	94 12 a3 d8 	or  %o2, 0x3d8, %o2                            
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    prev_block = free_block;                                          
    free_block = free_block->next;                                    
400087f8:	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 ) {                            
400087fc:	80 a5 c0 18 	cmp  %l7, %i0                                  
40008800:	32 bf ff cf 	bne,a   4000873c <_Heap_Walk+0x1a0>            
40008804:	c4 06 20 20 	ld  [ %i0 + 0x20 ], %g2                        
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
40008808:	10 80 00 89 	b  40008a2c <_Heap_Walk+0x490>                 
4000880c:	37 10 00 75 	sethi  %hi(0x4001d400), %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 ) {                                                
40008810:	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;                
40008814:	ac 0d bf fe 	and  %l6, -2, %l6                              
40008818:	02 80 00 0a 	be  40008840 <_Heap_Walk+0x2a4>                
4000881c:	a4 04 00 16 	add  %l0, %l6, %l2                             
      (*printer)(                                                     
40008820:	90 10 00 19 	mov  %i1, %o0                                  
40008824:	92 10 20 00 	clr  %o1                                       
40008828:	94 10 00 1a 	mov  %i2, %o2                                  
4000882c:	96 10 00 10 	mov  %l0, %o3                                  
40008830:	9f c4 40 00 	call  %l1                                      
40008834:	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           
40008838:	10 80 00 0a 	b  40008860 <_Heap_Walk+0x2c4>                 
4000883c:	c4 06 20 20 	ld  [ %i0 + 0x20 ], %g2                        
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
40008840:	da 04 00 00 	ld  [ %l0 ], %o5                               
40008844:	90 10 00 19 	mov  %i1, %o0                                  
40008848:	92 10 20 00 	clr  %o1                                       
4000884c:	94 10 00 1b 	mov  %i3, %o2                                  
40008850:	96 10 00 10 	mov  %l0, %o3                                  
40008854:	9f c4 40 00 	call  %l1                                      
40008858:	98 10 00 16 	mov  %l6, %o4                                  
4000885c:	c4 06 20 20 	ld  [ %i0 + 0x20 ], %g2                        
40008860:	80 a0 80 12 	cmp  %g2, %l2                                  
40008864:	18 80 00 05 	bgu  40008878 <_Heap_Walk+0x2dc>               <== NEVER TAKEN
40008868:	82 10 20 00 	clr  %g1                                       
4000886c:	c2 06 20 24 	ld  [ %i0 + 0x24 ], %g1                        
40008870:	80 a0 40 12 	cmp  %g1, %l2                                  
40008874:	82 60 3f ff 	subx  %g0, -1, %g1                             
        block_size,                                                   
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {              
40008878:	80 a0 60 00 	cmp  %g1, 0                                    
4000887c:	32 80 00 09 	bne,a   400088a0 <_Heap_Walk+0x304>            
40008880:	90 10 00 16 	mov  %l6, %o0                                  
      (*printer)(                                                     
40008884:	15 10 00 75 	sethi  %hi(0x4001d400), %o2                    
40008888:	90 10 00 19 	mov  %i1, %o0                                  
4000888c:	96 10 00 10 	mov  %l0, %o3                                  
40008890:	98 10 00 12 	mov  %l2, %o4                                  
40008894:	92 10 20 01 	mov  1, %o1                                    
40008898:	10 80 00 20 	b  40008918 <_Heap_Walk+0x37c>                 
4000889c:	94 12 a0 50 	or  %o2, 0x50, %o2                             
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_aligned( block_size, page_size ) ) {               
400088a0:	7f ff e4 8e 	call  40001ad8 <.urem>                         
400088a4:	92 10 00 15 	mov  %l5, %o1                                  
400088a8:	80 a2 20 00 	cmp  %o0, 0                                    
400088ac:	02 80 00 09 	be  400088d0 <_Heap_Walk+0x334>                
400088b0:	80 a5 80 13 	cmp  %l6, %l3                                  
      (*printer)(                                                     
400088b4:	15 10 00 75 	sethi  %hi(0x4001d400), %o2                    
400088b8:	90 10 00 19 	mov  %i1, %o0                                  
400088bc:	96 10 00 10 	mov  %l0, %o3                                  
400088c0:	98 10 00 16 	mov  %l6, %o4                                  
400088c4:	92 10 20 01 	mov  1, %o1                                    
400088c8:	10 80 00 14 	b  40008918 <_Heap_Walk+0x37c>                 
400088cc:	94 12 a0 80 	or  %o2, 0x80, %o2                             
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( block_size < min_block_size ) {                              
400088d0:	1a 80 00 0a 	bcc  400088f8 <_Heap_Walk+0x35c>               
400088d4:	80 a4 80 10 	cmp  %l2, %l0                                  
      (*printer)(                                                     
400088d8:	15 10 00 75 	sethi  %hi(0x4001d400), %o2                    
400088dc:	90 10 00 19 	mov  %i1, %o0                                  
400088e0:	96 10 00 10 	mov  %l0, %o3                                  
400088e4:	98 10 00 16 	mov  %l6, %o4                                  
400088e8:	9a 10 00 13 	mov  %l3, %o5                                  
400088ec:	92 10 20 01 	mov  1, %o1                                    
400088f0:	10 80 00 3b 	b  400089dc <_Heap_Walk+0x440>                 
400088f4:	94 12 a0 b0 	or  %o2, 0xb0, %o2                             
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( next_block_begin <= block_begin ) {                          
400088f8:	38 80 00 0b 	bgu,a   40008924 <_Heap_Walk+0x388>            
400088fc:	c2 04 a0 04 	ld  [ %l2 + 4 ], %g1                           
      (*printer)(                                                     
40008900:	15 10 00 75 	sethi  %hi(0x4001d400), %o2                    
40008904:	90 10 00 19 	mov  %i1, %o0                                  
40008908:	96 10 00 10 	mov  %l0, %o3                                  
4000890c:	98 10 00 12 	mov  %l2, %o4                                  
40008910:	92 10 20 01 	mov  1, %o1                                    
40008914:	94 12 a0 e0 	or  %o2, 0xe0, %o2                             
40008918:	9f c4 40 00 	call  %l1                                      
4000891c:	b0 10 20 00 	clr  %i0                                       
40008920:	30 80 00 53 	b,a   40008a6c <_Heap_Walk+0x4d0>              
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
40008924:	80 88 60 01 	btst  1, %g1                                   
40008928:	32 80 00 46 	bne,a   40008a40 <_Heap_Walk+0x4a4>            
4000892c:	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;                 
40008930:	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)(                                                         
40008934:	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;                            
40008938:	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;                
4000893c:	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;                            
40008940:	1b 10 00 75 	sethi  %hi(0x4001d400), %o5                    
40008944:	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;                            
40008948:	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);                 
4000894c:	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;                            
40008950:	02 80 00 07 	be  4000896c <_Heap_Walk+0x3d0>                
40008954:	9a 13 61 18 	or  %o5, 0x118, %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)" : ""),         
40008958:	1b 10 00 75 	sethi  %hi(0x4001d400), %o5                    
4000895c:	80 a3 00 18 	cmp  %o4, %i0                                  
40008960:	02 80 00 03 	be  4000896c <_Heap_Walk+0x3d0>                
40008964:	9a 13 61 30 	or  %o5, 0x130, %o5                            
40008968:	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)(                                                         
4000896c:	c4 04 20 08 	ld  [ %l0 + 8 ], %g2                           
40008970:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
40008974:	80 a0 80 03 	cmp  %g2, %g3                                  
40008978:	02 80 00 07 	be  40008994 <_Heap_Walk+0x3f8>                
4000897c:	82 10 61 40 	or  %g1, 0x140, %g1                            
      " (= first)"                                                    
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last)"                                                     
        : (block->next == free_list_tail ? " (= tail)" : "")          
40008980:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
40008984:	80 a0 80 18 	cmp  %g2, %i0                                  
40008988:	02 80 00 03 	be  40008994 <_Heap_Walk+0x3f8>                
4000898c:	82 10 61 50 	or  %g1, 0x150, %g1                            
40008990:	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)(                                                         
40008994:	c4 23 a0 5c 	st  %g2, [ %sp + 0x5c ]                        
40008998:	c2 23 a0 60 	st  %g1, [ %sp + 0x60 ]                        
4000899c:	90 10 00 19 	mov  %i1, %o0                                  
400089a0:	92 10 20 00 	clr  %o1                                       
400089a4:	15 10 00 75 	sethi  %hi(0x4001d400), %o2                    
400089a8:	96 10 00 10 	mov  %l0, %o3                                  
400089ac:	9f c4 40 00 	call  %l1                                      
400089b0:	94 12 a1 60 	or  %o2, 0x160, %o2                            
    block->next == last_free_block ?                                  
      " (= last)"                                                     
        : (block->next == free_list_tail ? " (= tail)" : "")          
  );                                                                  
                                                                      
  if ( block_size != next_block->prev_size ) {                        
400089b4:	da 05 c0 00 	ld  [ %l7 ], %o5                               
400089b8:	80 a5 80 0d 	cmp  %l6, %o5                                  
400089bc:	02 80 00 0b 	be  400089e8 <_Heap_Walk+0x44c>                
400089c0:	15 10 00 75 	sethi  %hi(0x4001d400), %o2                    
    (*printer)(                                                       
400089c4:	ee 23 a0 5c 	st  %l7, [ %sp + 0x5c ]                        
400089c8:	90 10 00 19 	mov  %i1, %o0                                  
400089cc:	96 10 00 10 	mov  %l0, %o3                                  
400089d0:	98 10 00 16 	mov  %l6, %o4                                  
400089d4:	92 10 20 01 	mov  1, %o1                                    
400089d8:	94 12 a1 90 	or  %o2, 0x190, %o2                            
400089dc:	9f c4 40 00 	call  %l1                                      
400089e0:	b0 10 20 00 	clr  %i0                                       
400089e4:	30 80 00 22 	b,a   40008a6c <_Heap_Walk+0x4d0>              
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !prev_used ) {                                                 
400089e8:	80 8f 60 01 	btst  1, %i5                                   
400089ec:	32 80 00 0b 	bne,a   40008a18 <_Heap_Walk+0x47c>            
400089f0:	c2 06 20 08 	ld  [ %i0 + 8 ], %g1                           
    (*printer)(                                                       
400089f4:	15 10 00 75 	sethi  %hi(0x4001d400), %o2                    
400089f8:	90 10 00 19 	mov  %i1, %o0                                  
400089fc:	96 10 00 10 	mov  %l0, %o3                                  
40008a00:	92 10 20 01 	mov  1, %o1                                    
40008a04:	10 80 00 18 	b  40008a64 <_Heap_Walk+0x4c8>                 
40008a08:	94 12 a1 d0 	or  %o2, 0x1d0, %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 ) {                                      
40008a0c:	22 80 00 0d 	be,a   40008a40 <_Heap_Walk+0x4a4>             
40008a10:	a0 10 00 12 	mov  %l2, %l0                                  
      return true;                                                    
    }                                                                 
    free_block = free_block->next;                                    
40008a14:	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 ) {                            
40008a18:	80 a0 40 18 	cmp  %g1, %i0                                  
40008a1c:	12 bf ff fc 	bne  40008a0c <_Heap_Walk+0x470>               
40008a20:	80 a0 40 10 	cmp  %g1, %l0                                  
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {                 
    (*printer)(                                                       
40008a24:	10 80 00 0c 	b  40008a54 <_Heap_Walk+0x4b8>                 
40008a28:	15 10 00 75 	sethi  %hi(0x4001d400), %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)(                                                     
40008a2c:	35 10 00 75 	sethi  %hi(0x4001d400), %i2                    
      " (= first)"                                                    
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last)"                                                     
        : (block->next == free_list_tail ? " (= tail)" : "")          
40008a30:	39 10 00 75 	sethi  %hi(0x4001d400), %i4                    
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
40008a34:	b6 16 e0 28 	or  %i3, 0x28, %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)(                                                     
40008a38:	b4 16 a0 10 	or  %i2, 0x10, %i2                             
      " (= first)"                                                    
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last)"                                                     
        : (block->next == free_list_tail ? " (= tail)" : "")          
40008a3c:	b8 17 21 28 	or  %i4, 0x128, %i4                            
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
  }                                                                   
                                                                      
  while ( block != last_block ) {                                     
40008a40:	80 a4 00 14 	cmp  %l0, %l4                                  
40008a44:	32 bf ff 73 	bne,a   40008810 <_Heap_Walk+0x274>            
40008a48:	ec 04 20 04 	ld  [ %l0 + 4 ], %l6                           
                                                                      
    block = next_block;                                               
  }                                                                   
                                                                      
  return true;                                                        
}                                                                     
40008a4c:	81 c7 e0 08 	ret                                            
40008a50:	91 e8 20 01 	restore  %g0, 1, %o0                           
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {                 
    (*printer)(                                                       
40008a54:	90 10 00 19 	mov  %i1, %o0                                  
40008a58:	96 10 00 10 	mov  %l0, %o3                                  
40008a5c:	92 10 20 01 	mov  1, %o1                                    
40008a60:	94 12 a2 00 	or  %o2, 0x200, %o2                            
40008a64:	9f c4 40 00 	call  %l1                                      
40008a68:	b0 10 20 00 	clr  %i0                                       
40008a6c:	81 c7 e0 08 	ret                                            
40008a70:	81 e8 00 00 	restore                                        
                                                                      

40007818 <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) {
40007818:	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 )                                       
4000781c:	c2 06 20 18 	ld  [ %i0 + 0x18 ], %g1                        
 */                                                                   
                                                                      
Objects_Control *_Objects_Allocate(                                   
  Objects_Information *information                                    
)                                                                     
{                                                                     
40007820:	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 )                                       
40007824:	80 a0 60 00 	cmp  %g1, 0                                    
40007828:	02 80 00 20 	be  400078a8 <_Objects_Allocate+0x90>          <== NEVER TAKEN
4000782c:	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 );
40007830:	a2 04 20 20 	add  %l0, 0x20, %l1                            
40007834:	40 00 12 ff 	call  4000c430 <_Chain_Get>                    
40007838:	90 10 00 11 	mov  %l1, %o0                                  
                                                                      
  if ( information->auto_extend ) {                                   
4000783c:	c2 0c 20 12 	ldub  [ %l0 + 0x12 ], %g1                      
40007840:	80 a0 60 00 	cmp  %g1, 0                                    
40007844:	02 80 00 19 	be  400078a8 <_Objects_Allocate+0x90>          
40007848:	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 ) {                                              
4000784c:	80 a2 20 00 	cmp  %o0, 0                                    
40007850:	32 80 00 0a 	bne,a   40007878 <_Objects_Allocate+0x60>      
40007854:	c2 14 20 0a 	lduh  [ %l0 + 0xa ], %g1                       
      _Objects_Extend_information( information );                     
40007858:	40 00 00 1e 	call  400078d0 <_Objects_Extend_information>   
4000785c:	90 10 00 10 	mov  %l0, %o0                                  
      the_object =  (Objects_Control *) _Chain_Get( &information->Inactive );
40007860:	40 00 12 f4 	call  4000c430 <_Chain_Get>                    
40007864:	90 10 00 11 	mov  %l1, %o0                                  
    }                                                                 
                                                                      
    if ( the_object ) {                                               
40007868:	b0 92 20 00 	orcc  %o0, 0, %i0                              
4000786c:	02 80 00 0f 	be  400078a8 <_Objects_Allocate+0x90>          
40007870:	01 00 00 00 	nop                                            
      uint32_t   block;                                               
                                                                      
      block = (uint32_t) _Objects_Get_index( the_object->id ) -       
40007874:	c2 14 20 0a 	lduh  [ %l0 + 0xa ], %g1                       
40007878:	d0 16 20 0a 	lduh  [ %i0 + 0xa ], %o0                       
              _Objects_Get_index( information->minimum_id );          
      block /= information->allocation_size;                          
                                                                      
      information->inactive_per_block[ block ]--;                     
4000787c:	d2 14 20 14 	lduh  [ %l0 + 0x14 ], %o1                      
40007880:	40 00 44 af 	call  40018b3c <.udiv>                         
40007884:	90 22 00 01 	sub  %o0, %g1, %o0                             
40007888:	c2 04 20 30 	ld  [ %l0 + 0x30 ], %g1                        
4000788c:	91 2a 20 02 	sll  %o0, 2, %o0                               
      information->inactive--;                                        
40007890:	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 ]--;                     
40007894:	c4 00 40 08 	ld  [ %g1 + %o0 ], %g2                         
      information->inactive--;                                        
40007898:	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 ]--;                     
4000789c:	84 00 bf ff 	add  %g2, -1, %g2                              
      information->inactive--;                                        
400078a0:	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 ]--;                     
400078a4:	c4 20 40 08 	st  %g2, [ %g1 + %o0 ]                         
      information->inactive--;                                        
    }                                                                 
  }                                                                   
                                                                      
  return the_object;                                                  
}                                                                     
400078a8:	81 c7 e0 08 	ret                                            
400078ac:	81 e8 00 00 	restore                                        
                                                                      

400078d0 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) {
400078d0:	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 )                           
400078d4:	e4 06 20 34 	ld  [ %i0 + 0x34 ], %l2                        
400078d8:	80 a4 a0 00 	cmp  %l2, 0                                    
400078dc:	12 80 00 06 	bne  400078f4 <_Objects_Extend_information+0x24>
400078e0:	e6 16 20 0a 	lduh  [ %i0 + 0xa ], %l3                       
400078e4:	a0 10 00 13 	mov  %l3, %l0                                  
400078e8:	a2 10 20 00 	clr  %l1                                       
400078ec:	10 80 00 15 	b  40007940 <_Objects_Extend_information+0x70> 
400078f0:	a8 10 20 00 	clr  %l4                                       
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
400078f4:	e2 16 20 14 	lduh  [ %i0 + 0x14 ], %l1                      
400078f8:	d0 16 20 10 	lduh  [ %i0 + 0x10 ], %o0                      
400078fc:	40 00 44 90 	call  40018b3c <.udiv>                         
40007900:	92 10 00 11 	mov  %l1, %o1                                  
                                                                      
    for ( ; block < block_count; block++ ) {                          
      if ( information->object_blocks[ block ] == NULL )              
40007904:	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;
40007908:	91 2a 20 10 	sll  %o0, 0x10, %o0                            
4000790c:	a0 10 00 13 	mov  %l3, %l0                                  
40007910:	a9 32 20 10 	srl  %o0, 0x10, %l4                            
                                                                      
    for ( ; block < block_count; block++ ) {                          
40007914:	10 80 00 08 	b  40007934 <_Objects_Extend_information+0x64> 
40007918:	a2 10 20 00 	clr  %l1                                       
      if ( information->object_blocks[ block ] == NULL )              
4000791c:	c4 04 80 02 	ld  [ %l2 + %g2 ], %g2                         
40007920:	80 a0 a0 00 	cmp  %g2, 0                                    
40007924:	22 80 00 08 	be,a   40007944 <_Objects_Extend_information+0x74>
40007928:	d0 16 20 14 	lduh  [ %i0 + 0x14 ], %o0                      
4000792c:	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++ ) {                          
40007930:	a2 04 60 01 	inc  %l1                                       
40007934:	80 a4 40 14 	cmp  %l1, %l4                                  
40007938:	0a bf ff f9 	bcs  4000791c <_Objects_Extend_information+0x4c>
4000793c:	85 2c 60 02 	sll  %l1, 2, %g2                               
      else                                                            
        index_base += information->allocation_size;                   
    }                                                                 
  }                                                                   
                                                                      
  maximum = (uint32_t) information->maximum + information->allocation_size;
40007940:	d0 16 20 14 	lduh  [ %i0 + 0x14 ], %o0                      
40007944:	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 ) {                           
40007948:	03 00 00 3f 	sethi  %hi(0xfc00), %g1                        
      else                                                            
        index_base += information->allocation_size;                   
    }                                                                 
  }                                                                   
                                                                      
  maximum = (uint32_t) information->maximum + information->allocation_size;
4000794c:	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 ) {                           
40007950:	82 10 63 ff 	or  %g1, 0x3ff, %g1                            
40007954:	80 a5 80 01 	cmp  %l6, %g1                                  
40007958:	18 80 00 88 	bgu  40007b78 <_Objects_Extend_information+0x2a8><== NEVER TAKEN
4000795c:	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;      
40007960:	40 00 44 3d 	call  40018a54 <.umul>                         
40007964:	d2 06 20 18 	ld  [ %i0 + 0x18 ], %o1                        
  if ( information->auto_extend ) {                                   
40007968:	c2 0e 20 12 	ldub  [ %i0 + 0x12 ], %g1                      
4000796c:	80 a0 60 00 	cmp  %g1, 0                                    
40007970:	02 80 00 09 	be  40007994 <_Objects_Extend_information+0xc4>
40007974:	01 00 00 00 	nop                                            
    new_object_block = _Workspace_Allocate( block_size );             
40007978:	40 00 08 4c 	call  40009aa8 <_Workspace_Allocate>           
4000797c:	01 00 00 00 	nop                                            
    if ( !new_object_block )                                          
40007980:	a4 92 20 00 	orcc  %o0, 0, %l2                              
40007984:	32 80 00 08 	bne,a   400079a4 <_Objects_Extend_information+0xd4>
40007988:	c2 16 20 10 	lduh  [ %i0 + 0x10 ], %g1                      
4000798c:	81 c7 e0 08 	ret                                            
40007990:	81 e8 00 00 	restore                                        
      return;                                                         
  } else {                                                            
    new_object_block = _Workspace_Allocate_or_fatal_error( block_size );
40007994:	40 00 08 37 	call  40009a70 <_Workspace_Allocate_or_fatal_error>
40007998:	01 00 00 00 	nop                                            
4000799c:	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 ) {                          
400079a0:	c2 16 20 10 	lduh  [ %i0 + 0x10 ], %g1                      
400079a4:	80 a4 00 01 	cmp  %l0, %g1                                  
400079a8:	2a 80 00 53 	bcs,a   40007af4 <_Objects_Extend_information+0x224>
400079ac:	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 );       
400079b0:	82 05 80 13 	add  %l6, %l3, %g1                             
     */                                                               
                                                                      
    /*                                                                
     *  Up the block count and maximum                                
     */                                                               
    block_count++;                                                    
400079b4:	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 );       
400079b8:	91 2d e0 01 	sll  %l7, 1, %o0                               
400079bc:	90 02 00 17 	add  %o0, %l7, %o0                             
400079c0:	90 00 40 08 	add  %g1, %o0, %o0                             
400079c4:	40 00 08 39 	call  40009aa8 <_Workspace_Allocate>           
400079c8:	91 2a 20 02 	sll  %o0, 2, %o0                               
                                                                      
    if ( !object_blocks ) {                                           
400079cc:	aa 92 20 00 	orcc  %o0, 0, %l5                              
400079d0:	32 80 00 06 	bne,a   400079e8 <_Objects_Extend_information+0x118>
400079d4:	c2 16 20 10 	lduh  [ %i0 + 0x10 ], %g1                      
      _Workspace_Free( new_object_block );                            
400079d8:	40 00 08 3d 	call  40009acc <_Workspace_Free>               
400079dc:	90 10 00 12 	mov  %l2, %o0                                  
      return;                                                         
400079e0:	81 c7 e0 08 	ret                                            
400079e4:	81 e8 00 00 	restore                                        
    }                                                                 
                                                                      
    /*                                                                
     *  Break the block into the various sections.                    
     */                                                               
    inactive_per_block = (uint32_t *) _Addresses_Add_offset(          
400079e8:	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 ) {                     
400079ec:	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);                          
400079f0:	ba 05 40 17 	add  %l5, %l7, %i5                             
400079f4:	82 10 20 00 	clr  %g1                                       
400079f8:	08 80 00 14 	bleu  40007a48 <_Objects_Extend_information+0x178>
400079fc:	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,                                          
40007a00:	d2 06 20 34 	ld  [ %i0 + 0x34 ], %o1                        
              information->object_blocks,                             
              block_count * sizeof(void*) );                          
40007a04:	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,                                          
40007a08:	40 00 20 f1 	call  4000fdcc <memcpy>                        
40007a0c:	94 10 00 1c 	mov  %i4, %o2                                  
              information->object_blocks,                             
              block_count * sizeof(void*) );                          
      memcpy( inactive_per_block,                                     
40007a10:	d2 06 20 30 	ld  [ %i0 + 0x30 ], %o1                        
40007a14:	94 10 00 1c 	mov  %i4, %o2                                  
40007a18:	40 00 20 ed 	call  4000fdcc <memcpy>                        
40007a1c:	90 10 00 1d 	mov  %i5, %o0                                  
              information->inactive_per_block,                        
              block_count * sizeof(uint32_t) );                       
      memcpy( local_table,                                            
40007a20:	c2 16 20 10 	lduh  [ %i0 + 0x10 ], %g1                      
40007a24:	d2 06 20 1c 	ld  [ %i0 + 0x1c ], %o1                        
40007a28:	a6 04 c0 01 	add  %l3, %g1, %l3                             
40007a2c:	90 10 00 17 	mov  %l7, %o0                                  
40007a30:	40 00 20 e7 	call  4000fdcc <memcpy>                        
40007a34:	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 );      
40007a38:	10 80 00 08 	b  40007a58 <_Objects_Extend_information+0x188>
40007a3c:	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++ ) {             
40007a40:	82 00 60 01 	inc  %g1                                       
        local_table[ index ] = NULL;                                  
40007a44:	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++ ) {             
40007a48:	80 a0 40 13 	cmp  %g1, %l3                                  
40007a4c:	2a bf ff fd 	bcs,a   40007a40 <_Objects_Extend_information+0x170>
40007a50:	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 );      
40007a54:	c6 16 20 14 	lduh  [ %i0 + 0x14 ], %g3                      
    }                                                                 
                                                                      
    /*                                                                
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
40007a58:	a9 2d 20 02 	sll  %l4, 2, %l4                               
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
40007a5c:	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;                              
40007a60:	c0 27 40 14 	clr  [ %i5 + %l4 ]                             
    }                                                                 
                                                                      
    /*                                                                
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
40007a64:	c0 25 40 14 	clr  [ %l5 + %l4 ]                             
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
40007a68:	86 04 00 03 	add  %l0, %g3, %g3                             
40007a6c:	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 ;                                          
40007a70:	10 80 00 04 	b  40007a80 <_Objects_Extend_information+0x1b0>
40007a74:	82 10 00 10 	mov  %l0, %g1                                  
          index < ( information->allocation_size + index_base );      
          index++ ) {                                                 
40007a78:	82 00 60 01 	inc  %g1                                       
40007a7c:	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 ;                                          
40007a80:	80 a0 40 03 	cmp  %g1, %g3                                  
40007a84:	2a bf ff fd 	bcs,a   40007a78 <_Objects_Extend_information+0x1a8>
40007a88:	c0 20 80 00 	clr  [ %g2 ]                                   
          index < ( information->allocation_size + index_base );      
          index++ ) {                                                 
      local_table[ index ] = NULL;                                    
    }                                                                 
                                                                      
    _ISR_Disable( level );                                            
40007a8c:	7f ff e8 b0 	call  40001d4c <sparc_disable_interrupts>      
40007a90:	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(                      
40007a94:	c8 06 00 00 	ld  [ %i0 ], %g4                               
40007a98:	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;                 
40007a9c:	ec 36 20 10 	sth  %l6, [ %i0 + 0x10 ]                       
    information->maximum_id = _Objects_Build_id(                      
40007aa0:	ad 2d a0 10 	sll  %l6, 0x10, %l6                            
      local_table[ index ] = NULL;                                    
    }                                                                 
                                                                      
    _ISR_Disable( level );                                            
                                                                      
    old_tables = information->object_blocks;                          
40007aa4:	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(                      
40007aa8:	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;             
40007aac:	fa 26 20 30 	st  %i5, [ %i0 + 0x30 ]                        
    information->local_table = local_table;                           
40007ab0:	ee 26 20 1c 	st  %l7, [ %i0 + 0x1c ]                        
    information->maximum = (Objects_Maximum) maximum;                 
    information->maximum_id = _Objects_Build_id(                      
40007ab4:	89 29 20 18 	sll  %g4, 0x18, %g4                            
40007ab8:	85 28 a0 1b 	sll  %g2, 0x1b, %g2                            
                                                                      
    _ISR_Disable( level );                                            
                                                                      
    old_tables = information->object_blocks;                          
                                                                      
    information->object_blocks = object_blocks;                       
40007abc:	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(                      
40007ac0:	07 00 00 40 	sethi  %hi(0x10000), %g3                       
40007ac4:	ac 11 00 03 	or  %g4, %g3, %l6                              
40007ac8:	ac 15 80 02 	or  %l6, %g2, %l6                              
40007acc:	ac 15 80 01 	or  %l6, %g1, %l6                              
40007ad0:	ec 26 20 0c 	st  %l6, [ %i0 + 0xc ]                         
        information->the_class,                                       
        _Objects_Local_node,                                          
        information->maximum                                          
      );                                                              
                                                                      
    _ISR_Enable( level );                                             
40007ad4:	7f ff e8 a2 	call  40001d5c <sparc_enable_interrupts>       
40007ad8:	01 00 00 00 	nop                                            
                                                                      
    if ( old_tables )                                                 
40007adc:	80 a4 e0 00 	cmp  %l3, 0                                    
40007ae0:	22 80 00 05 	be,a   40007af4 <_Objects_Extend_information+0x224>
40007ae4:	c2 06 20 34 	ld  [ %i0 + 0x34 ], %g1                        
      _Workspace_Free( old_tables );                                  
40007ae8:	40 00 07 f9 	call  40009acc <_Workspace_Free>               
40007aec:	90 10 00 13 	mov  %l3, %o0                                  
  }                                                                   
                                                                      
  /*                                                                  
   *  Assign the new object block to the object block table.          
   */                                                                 
  information->object_blocks[ block ] = new_object_block;             
40007af0:	c2 06 20 34 	ld  [ %i0 + 0x34 ], %g1                        
                                                                      
  /*                                                                  
   *  Initialize objects .. add to a local chain first.               
   */                                                                 
  _Chain_Initialize(                                                  
40007af4:	d4 16 20 14 	lduh  [ %i0 + 0x14 ], %o2                      
40007af8:	d6 06 20 18 	ld  [ %i0 + 0x18 ], %o3                        
40007afc:	92 10 00 12 	mov  %l2, %o1                                  
40007b00:	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;             
40007b04:	a3 2c 60 02 	sll  %l1, 2, %l1                               
        information->the_class,                                       
        _Objects_Local_node,                                          
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
40007b08:	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;             
40007b0c:	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(                               
40007b10:	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(                                                  
40007b14:	40 00 12 57 	call  4000c470 <_Chain_Initialize>             
40007b18:	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 ) {
40007b1c:	30 80 00 0c 	b,a   40007b4c <_Objects_Extend_information+0x27c>
                                                                      
    the_object->id = _Objects_Build_id(                               
40007b20:	c4 16 20 04 	lduh  [ %i0 + 4 ], %g2                         
40007b24:	83 28 60 18 	sll  %g1, 0x18, %g1                            
40007b28:	85 28 a0 1b 	sll  %g2, 0x1b, %g2                            
40007b2c:	82 10 40 13 	or  %g1, %l3, %g1                              
40007b30:	82 10 40 02 	or  %g1, %g2, %g1                              
40007b34:	82 10 40 10 	or  %g1, %l0, %g1                              
        information->the_class,                                       
        _Objects_Local_node,                                          
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
40007b38:	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(                               
40007b3c:	c2 22 20 08 	st  %g1, [ %o0 + 8 ]                           
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
                                                                      
    index++;                                                          
40007b40:	a0 04 20 01 	inc  %l0                                       
        information->the_class,                                       
        _Objects_Local_node,                                          
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
40007b44:	7f ff fc ee 	call  40006efc <_Chain_Append>                 
40007b48:	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 ) {
40007b4c:	40 00 12 39 	call  4000c430 <_Chain_Get>                    
40007b50:	90 10 00 12 	mov  %l2, %o0                                  
40007b54:	80 a2 20 00 	cmp  %o0, 0                                    
40007b58:	32 bf ff f2 	bne,a   40007b20 <_Objects_Extend_information+0x250>
40007b5c:	c2 06 00 00 	ld  [ %i0 ], %g1                               
                                                                      
    index++;                                                          
  }                                                                   
                                                                      
  information->inactive_per_block[ block ] = information->allocation_size;
  information->inactive =                                             
40007b60:	c2 16 20 2c 	lduh  [ %i0 + 0x2c ], %g1                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
                                                                      
    index++;                                                          
  }                                                                   
                                                                      
  information->inactive_per_block[ block ] = information->allocation_size;
40007b64:	c8 16 20 14 	lduh  [ %i0 + 0x14 ], %g4                      
40007b68:	c4 06 20 30 	ld  [ %i0 + 0x30 ], %g2                        
  information->inactive =                                             
40007b6c:	82 01 00 01 	add  %g4, %g1, %g1                             
    _Chain_Append( &information->Inactive, &the_object->Node );       
                                                                      
    index++;                                                          
  }                                                                   
                                                                      
  information->inactive_per_block[ block ] = information->allocation_size;
40007b70:	c8 20 80 11 	st  %g4, [ %g2 + %l1 ]                         
  information->inactive =                                             
40007b74:	c2 36 20 2c 	sth  %g1, [ %i0 + 0x2c ]                       
40007b78:	81 c7 e0 08 	ret                                            
40007b7c:	81 e8 00 00 	restore                                        
                                                                      

40007c28 <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint32_t the_class ) {
40007c28:	9d e3 bf a0 	save  %sp, -96, %sp                            
  Objects_Information *info;                                          
  int the_class_api_maximum;                                          
                                                                      
  if ( !the_class )                                                   
40007c2c:	80 a6 60 00 	cmp  %i1, 0                                    
40007c30:	22 80 00 1a 	be,a   40007c98 <_Objects_Get_information+0x70>
40007c34:	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 );      
40007c38:	40 00 13 94 	call  4000ca88 <_Objects_API_maximum_class>    
40007c3c:	90 10 00 18 	mov  %i0, %o0                                  
  if ( the_class_api_maximum == 0 )                                   
40007c40:	80 a2 20 00 	cmp  %o0, 0                                    
40007c44:	22 80 00 15 	be,a   40007c98 <_Objects_Get_information+0x70>
40007c48:	b0 10 20 00 	clr  %i0                                       
    return NULL;                                                      
                                                                      
  if ( the_class > (uint32_t) the_class_api_maximum )                 
40007c4c:	80 a6 40 08 	cmp  %i1, %o0                                  
40007c50:	38 80 00 12 	bgu,a   40007c98 <_Objects_Get_information+0x70>
40007c54:	b0 10 20 00 	clr  %i0                                       
    return NULL;                                                      
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
40007c58:	b1 2e 20 02 	sll  %i0, 2, %i0                               
40007c5c:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
40007c60:	82 10 60 d0 	or  %g1, 0xd0, %g1	! 4001d8d0 <_Objects_Information_table>
40007c64:	c2 00 40 18 	ld  [ %g1 + %i0 ], %g1                         
40007c68:	80 a0 60 00 	cmp  %g1, 0                                    
40007c6c:	02 80 00 0b 	be  40007c98 <_Objects_Get_information+0x70>   <== NEVER TAKEN
40007c70:	b0 10 20 00 	clr  %i0                                       
    return NULL;                                                      
                                                                      
  info = _Objects_Information_table[ the_api ][ the_class ];          
40007c74:	b3 2e 60 02 	sll  %i1, 2, %i1                               
40007c78:	f0 00 40 19 	ld  [ %g1 + %i1 ], %i0                         
  if ( !info )                                                        
40007c7c:	80 a6 20 00 	cmp  %i0, 0                                    
40007c80:	02 80 00 06 	be  40007c98 <_Objects_Get_information+0x70>   <== NEVER TAKEN
40007c84:	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 )                                         
40007c88:	c2 16 20 10 	lduh  [ %i0 + 0x10 ], %g1                      
40007c8c:	80 a0 60 00 	cmp  %g1, 0                                    
40007c90:	22 80 00 02 	be,a   40007c98 <_Objects_Get_information+0x70>
40007c94:	b0 10 20 00 	clr  %i0                                       
      return NULL;                                                    
  #endif                                                              
                                                                      
  return info;                                                        
}                                                                     
40007c98:	81 c7 e0 08 	ret                                            
40007c9c:	81 e8 00 00 	restore                                        
                                                                      

400185b8 <_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;
400185b8:	c4 02 20 08 	ld  [ %o0 + 8 ], %g2                           
                                                                      
  if ( information->maximum >= index ) {                              
400185bc:	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;                           
400185c0:	84 22 40 02 	sub  %o1, %g2, %g2                             
400185c4:	84 00 a0 01 	inc  %g2                                       
                                                                      
  if ( information->maximum >= index ) {                              
400185c8:	80 a0 40 02 	cmp  %g1, %g2                                  
400185cc:	0a 80 00 09 	bcs  400185f0 <_Objects_Get_no_protection+0x38>
400185d0:	85 28 a0 02 	sll  %g2, 2, %g2                               
    if ( (the_object = information->local_table[ index ]) != NULL ) { 
400185d4:	c2 02 20 1c 	ld  [ %o0 + 0x1c ], %g1                        
400185d8:	d0 00 40 02 	ld  [ %g1 + %g2 ], %o0                         
400185dc:	80 a2 20 00 	cmp  %o0, 0                                    
400185e0:	02 80 00 05 	be  400185f4 <_Objects_Get_no_protection+0x3c> <== NEVER TAKEN
400185e4:	82 10 20 01 	mov  1, %g1                                    
      *location = OBJECTS_LOCAL;                                      
      return the_object;                                              
400185e8:	81 c3 e0 08 	retl                                           
400185ec:	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;                                          
400185f0:	82 10 20 01 	mov  1, %g1                                    
400185f4:	90 10 20 00 	clr  %o0                                       
  return NULL;                                                        
}                                                                     
400185f8:	81 c3 e0 08 	retl                                           
400185fc:	c2 22 80 00 	st  %g1, [ %o2 ]                               
                                                                      

4000939c <_Objects_Id_to_name>: */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) {
4000939c:	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;
400093a0:	92 96 20 00 	orcc  %i0, 0, %o1                              
400093a4:	12 80 00 06 	bne  400093bc <_Objects_Id_to_name+0x20>       
400093a8:	83 32 60 18 	srl  %o1, 0x18, %g1                            
400093ac:	03 10 00 8c 	sethi  %hi(0x40023000), %g1                    
400093b0:	c2 00 62 bc 	ld  [ %g1 + 0x2bc ], %g1	! 400232bc <_Thread_Executing>
400093b4:	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);
400093b8:	83 32 60 18 	srl  %o1, 0x18, %g1                            
400093bc:	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 )                      
400093c0:	84 00 7f ff 	add  %g1, -1, %g2                              
400093c4:	80 a0 a0 03 	cmp  %g2, 3                                    
400093c8:	18 80 00 18 	bgu  40009428 <_Objects_Id_to_name+0x8c>       
400093cc:	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 ] )                       
400093d0:	10 80 00 18 	b  40009430 <_Objects_Id_to_name+0x94>         
400093d4:	05 10 00 8c 	sethi  %hi(0x40023000), %g2                    
    return OBJECTS_INVALID_ID;                                        
                                                                      
  the_class = _Objects_Get_class( tmpId );                            
                                                                      
  information = _Objects_Information_table[ the_api ][ the_class ];   
400093d8:	85 28 a0 02 	sll  %g2, 2, %g2                               
400093dc:	d0 00 40 02 	ld  [ %g1 + %g2 ], %o0                         
  if ( !information )                                                 
400093e0:	80 a2 20 00 	cmp  %o0, 0                                    
400093e4:	02 80 00 11 	be  40009428 <_Objects_Id_to_name+0x8c>        <== NEVER TAKEN
400093e8:	01 00 00 00 	nop                                            
    return OBJECTS_INVALID_ID;                                        
                                                                      
  #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)                 
    if ( information->is_string )                                     
400093ec:	c2 0a 20 38 	ldub  [ %o0 + 0x38 ], %g1                      
400093f0:	80 a0 60 00 	cmp  %g1, 0                                    
400093f4:	12 80 00 0d 	bne  40009428 <_Objects_Id_to_name+0x8c>       <== NEVER TAKEN
400093f8:	01 00 00 00 	nop                                            
      return OBJECTS_INVALID_ID;                                      
  #endif                                                              
                                                                      
  the_object = _Objects_Get( information, tmpId, &ignored_location ); 
400093fc:	7f ff ff cb 	call  40009328 <_Objects_Get>                  
40009400:	94 07 bf fc 	add  %fp, -4, %o2                              
  if ( !the_object )                                                  
40009404:	80 a2 20 00 	cmp  %o0, 0                                    
40009408:	02 80 00 08 	be  40009428 <_Objects_Id_to_name+0x8c>        
4000940c:	01 00 00 00 	nop                                            
    return OBJECTS_INVALID_ID;                                        
                                                                      
  *name = the_object->name;                                           
40009410:	c2 02 20 0c 	ld  [ %o0 + 0xc ], %g1                         
  _Thread_Enable_dispatch();                                          
40009414:	b0 10 20 00 	clr  %i0                                       
40009418:	40 00 02 3d 	call  40009d0c <_Thread_Enable_dispatch>       
4000941c:	c2 26 40 00 	st  %g1, [ %i1 ]                               
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
40009420:	81 c7 e0 08 	ret                                            
40009424:	81 e8 00 00 	restore                                        
}                                                                     
40009428:	81 c7 e0 08 	ret                                            
4000942c:	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 ] )                       
40009430:	84 10 a1 60 	or  %g2, 0x160, %g2                            
40009434:	c2 00 80 01 	ld  [ %g2 + %g1 ], %g1                         
40009438:	80 a0 60 00 	cmp  %g1, 0                                    
4000943c:	12 bf ff e7 	bne  400093d8 <_Objects_Id_to_name+0x3c>       
40009440:	85 32 60 1b 	srl  %o1, 0x1b, %g2                            
40009444:	30 bf ff f9 	b,a   40009428 <_Objects_Id_to_name+0x8c>      
                                                                      

400085c4 <_Objects_Set_name>: bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) {
400085c4:	9d e3 bf a0 	save  %sp, -96, %sp                            
  size_t                 length;                                      
  const char            *s;                                           
                                                                      
  s      = name;                                                      
  length = strnlen( name, information->name_length );                 
400085c8:	d2 16 20 3a 	lduh  [ %i0 + 0x3a ], %o1                      
400085cc:	40 00 24 b0 	call  4001188c <strnlen>                       
400085d0:	90 10 00 1a 	mov  %i2, %o0                                  
                                                                      
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)                   
  if ( information->is_string ) {                                     
400085d4:	c2 0e 20 38 	ldub  [ %i0 + 0x38 ], %g1                      
400085d8:	80 a0 60 00 	cmp  %g1, 0                                    
400085dc:	02 80 00 17 	be  40008638 <_Objects_Set_name+0x74>          
400085e0:	a0 10 00 08 	mov  %o0, %l0                                  
    char *d;                                                          
                                                                      
    d = _Workspace_Allocate( length + 1 );                            
400085e4:	90 02 20 01 	inc  %o0                                       
400085e8:	40 00 06 fb 	call  4000a1d4 <_Workspace_Allocate>           
400085ec:	b0 10 20 00 	clr  %i0                                       
    if ( !d )                                                         
400085f0:	a2 92 20 00 	orcc  %o0, 0, %l1                              
400085f4:	02 80 00 24 	be  40008684 <_Objects_Set_name+0xc0>          <== NEVER TAKEN
400085f8:	01 00 00 00 	nop                                            
      return false;                                                   
                                                                      
    if ( the_object->name.name_p ) {                                  
400085fc:	d0 06 60 0c 	ld  [ %i1 + 0xc ], %o0                         
40008600:	80 a2 20 00 	cmp  %o0, 0                                    
40008604:	02 80 00 06 	be  4000861c <_Objects_Set_name+0x58>          
40008608:	92 10 00 1a 	mov  %i2, %o1                                  
      _Workspace_Free( (void *)the_object->name.name_p );             
4000860c:	40 00 06 fb 	call  4000a1f8 <_Workspace_Free>               
40008610:	01 00 00 00 	nop                                            
      the_object->name.name_p = NULL;                                 
40008614:	c0 26 60 0c 	clr  [ %i1 + 0xc ]                             
    }                                                                 
                                                                      
    strncpy( d, name, length );                                       
40008618:	92 10 00 1a 	mov  %i2, %o1                                  
4000861c:	90 10 00 11 	mov  %l1, %o0                                  
40008620:	40 00 24 60 	call  400117a0 <strncpy>                       
40008624:	94 10 00 10 	mov  %l0, %o2                                  
    d[length] = '\0';                                                 
40008628:	c0 2c 40 10 	clrb  [ %l1 + %l0 ]                            
    the_object->name.name_p = d;                                      
4000862c:	e2 26 60 0c 	st  %l1, [ %i1 + 0xc ]                         
40008630:	81 c7 e0 08 	ret                                            
40008634:	91 e8 20 01 	restore  %g0, 1, %o0                           
  } else                                                              
#endif                                                                
  {                                                                   
    the_object->name.name_u32 =  _Objects_Build_name(                 
40008638:	80 a2 20 01 	cmp  %o0, 1                                    
4000863c:	08 80 00 14 	bleu  4000868c <_Objects_Set_name+0xc8>        
40008640:	c8 0e 80 00 	ldub  [ %i2 ], %g4                             
40008644:	c6 4e a0 01 	ldsb  [ %i2 + 1 ], %g3                         
40008648:	80 a2 20 02 	cmp  %o0, 2                                    
4000864c:	08 80 00 11 	bleu  40008690 <_Objects_Set_name+0xcc>        
40008650:	87 28 e0 10 	sll  %g3, 0x10, %g3                            
40008654:	c4 4e a0 02 	ldsb  [ %i2 + 2 ], %g2                         
40008658:	80 a2 20 03 	cmp  %o0, 3                                    
4000865c:	85 28 a0 08 	sll  %g2, 8, %g2                               
40008660:	08 80 00 03 	bleu  4000866c <_Objects_Set_name+0xa8>        
40008664:	82 10 20 20 	mov  0x20, %g1                                 
40008668:	c2 4e a0 03 	ldsb  [ %i2 + 3 ], %g1                         
4000866c:	89 29 20 18 	sll  %g4, 0x18, %g4                            
40008670:	b0 10 20 01 	mov  1, %i0                                    
40008674:	86 10 c0 04 	or  %g3, %g4, %g3                              
40008678:	84 10 c0 02 	or  %g3, %g2, %g2                              
4000867c:	82 10 80 01 	or  %g2, %g1, %g1                              
40008680:	c2 26 60 0c 	st  %g1, [ %i1 + 0xc ]                         
    );                                                                
                                                                      
  }                                                                   
                                                                      
  return true;                                                        
}                                                                     
40008684:	81 c7 e0 08 	ret                                            
40008688:	81 e8 00 00 	restore                                        
    d[length] = '\0';                                                 
    the_object->name.name_p = d;                                      
  } else                                                              
#endif                                                                
  {                                                                   
    the_object->name.name_u32 =  _Objects_Build_name(                 
4000868c:	07 00 08 00 	sethi  %hi(0x200000), %g3                      
40008690:	05 00 00 08 	sethi  %hi(0x2000), %g2                        
40008694:	10 bf ff f6 	b  4000866c <_Objects_Set_name+0xa8>           
40008698:	82 10 20 20 	mov  0x20, %g1                                 
                                                                      

400074a0 <_POSIX_Condition_variables_Wait_support>: pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) {
400074a0:	9d e3 bf 98 	save  %sp, -104, %sp                           
  register POSIX_Condition_variables_Control *the_cond;               
  Objects_Locations                           location;               
  int                                         status;                 
  int                                         mutex_status;           
                                                                      
  if ( !_POSIX_Mutex_Get( mutex, &location ) ) {                      
400074a4:	a0 07 bf fc 	add  %fp, -4, %l0                              
400074a8:	90 10 00 19 	mov  %i1, %o0                                  
400074ac:	40 00 00 7e 	call  400076a4 <_POSIX_Mutex_Get>              
400074b0:	92 10 00 10 	mov  %l0, %o1                                  
400074b4:	80 a2 20 00 	cmp  %o0, 0                                    
400074b8:	22 80 00 18 	be,a   40007518 <_POSIX_Condition_variables_Wait_support+0x78>
400074bc:	b0 10 20 16 	mov  0x16, %i0                                 
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
400074c0:	03 10 00 81 	sethi  %hi(0x40020400), %g1                    
400074c4:	c4 00 61 70 	ld  [ %g1 + 0x170 ], %g2	! 40020570 <_Thread_Dispatch_disable_level>
     return EINVAL;                                                   
  }                                                                   
                                                                      
  _Thread_Unnest_dispatch();                                          
                                                                      
  the_cond = _POSIX_Condition_variables_Get( cond, &location );       
400074c8:	92 10 00 10 	mov  %l0, %o1                                  
400074cc:	84 00 bf ff 	add  %g2, -1, %g2                              
400074d0:	90 10 00 18 	mov  %i0, %o0                                  
400074d4:	c4 20 61 70 	st  %g2, [ %g1 + 0x170 ]                       
400074d8:	7f ff ff 74 	call  400072a8 <_POSIX_Condition_variables_Get>
400074dc:	01 00 00 00 	nop                                            
  switch ( location ) {                                               
400074e0:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
400074e4:	80 a0 60 00 	cmp  %g1, 0                                    
400074e8:	12 80 00 34 	bne  400075b8 <_POSIX_Condition_variables_Wait_support+0x118>
400074ec:	a0 10 00 08 	mov  %o0, %l0                                  
                                                                      
    case OBJECTS_LOCAL:                                               
                                                                      
      if ( the_cond->Mutex && ( the_cond->Mutex != *mutex ) ) {       
400074f0:	c2 02 20 14 	ld  [ %o0 + 0x14 ], %g1                        
400074f4:	80 a0 60 00 	cmp  %g1, 0                                    
400074f8:	02 80 00 0a 	be  40007520 <_POSIX_Condition_variables_Wait_support+0x80>
400074fc:	01 00 00 00 	nop                                            
40007500:	c4 06 40 00 	ld  [ %i1 ], %g2                               
40007504:	80 a0 40 02 	cmp  %g1, %g2                                  
40007508:	02 80 00 06 	be  40007520 <_POSIX_Condition_variables_Wait_support+0x80>
4000750c:	01 00 00 00 	nop                                            
        _Thread_Enable_dispatch();                                    
40007510:	40 00 0c 9f 	call  4000a78c <_Thread_Enable_dispatch>       
40007514:	b0 10 20 16 	mov  0x16, %i0	! 16 <PROM_START+0x16>          
        return EINVAL;                                                
40007518:	81 c7 e0 08 	ret                                            
4000751c:	81 e8 00 00 	restore                                        
      }                                                               
                                                                      
      (void) pthread_mutex_unlock( mutex );                           
40007520:	40 00 00 f2 	call  400078e8 <pthread_mutex_unlock>          
40007524:	90 10 00 19 	mov  %i1, %o0                                  
        _Thread_Enable_dispatch();                                    
        return EINVAL;                                                
      }                                                               
*/                                                                    
                                                                      
      if ( !already_timedout ) {                                      
40007528:	80 8e e0 ff 	btst  0xff, %i3                                
4000752c:	12 80 00 1c 	bne  4000759c <_POSIX_Condition_variables_Wait_support+0xfc>
40007530:	23 10 00 81 	sethi  %hi(0x40020400), %l1                    
        the_cond->Mutex = *mutex;                                     
40007534:	c4 06 40 00 	ld  [ %i1 ], %g2                               
                                                                      
        _Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
        _Thread_Executing->Wait.return_code = 0;                      
40007538:	c2 04 62 2c 	ld  [ %l1 + 0x22c ], %g1                       
        return EINVAL;                                                
      }                                                               
*/                                                                    
                                                                      
      if ( !already_timedout ) {                                      
        the_cond->Mutex = *mutex;                                     
4000753c:	c4 24 20 14 	st  %g2, [ %l0 + 0x14 ]                        
                                                                      
        _Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
        _Thread_Executing->Wait.return_code = 0;                      
40007540:	c0 20 60 34 	clr  [ %g1 + 0x34 ]                            
        _Thread_Executing->Wait.queue       = &the_cond->Wait_queue;  
        _Thread_Executing->Wait.id          = *cond;                  
40007544:	c6 06 00 00 	ld  [ %i0 ], %g3                               
      if ( !already_timedout ) {                                      
        the_cond->Mutex = *mutex;                                     
                                                                      
        _Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
        _Thread_Executing->Wait.return_code = 0;                      
        _Thread_Executing->Wait.queue       = &the_cond->Wait_queue;  
40007548:	84 04 20 18 	add  %l0, 0x18, %g2                            
        _Thread_Executing->Wait.id          = *cond;                  
4000754c:	c6 20 60 20 	st  %g3, [ %g1 + 0x20 ]                        
      if ( !already_timedout ) {                                      
        the_cond->Mutex = *mutex;                                     
                                                                      
        _Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
        _Thread_Executing->Wait.return_code = 0;                      
        _Thread_Executing->Wait.queue       = &the_cond->Wait_queue;  
40007550:	c4 20 60 44 	st  %g2, [ %g1 + 0x44 ]                        
        _Thread_Executing->Wait.id          = *cond;                  
                                                                      
        _Thread_queue_Enqueue( &the_cond->Wait_queue, timeout );      
40007554:	92 10 00 1a 	mov  %i2, %o1                                  
                                                                      
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;
40007558:	82 10 20 01 	mov  1, %g1                                    
4000755c:	90 10 00 02 	mov  %g2, %o0                                  
40007560:	15 10 00 2c 	sethi  %hi(0x4000b000), %o2                    
40007564:	94 12 a0 b0 	or  %o2, 0xb0, %o2	! 4000b0b0 <_Thread_queue_Timeout>
40007568:	40 00 0d dc 	call  4000acd8 <_Thread_queue_Enqueue_with_handler>
4000756c:	c2 24 20 48 	st  %g1, [ %l0 + 0x48 ]                        
                                                                      
        _Thread_Enable_dispatch();                                    
40007570:	40 00 0c 87 	call  4000a78c <_Thread_Enable_dispatch>       
40007574:	01 00 00 00 	nop                                            
        /*                                                            
         *  Switch ourself out because we blocked as a result of the  
         *  _Thread_queue_Enqueue.                                    
         */                                                           
                                                                      
        status = _Thread_Executing->Wait.return_code;                 
40007578:	c2 04 62 2c 	ld  [ %l1 + 0x22c ], %g1                       
4000757c:	f0 00 60 34 	ld  [ %g1 + 0x34 ], %i0                        
        if ( status && status != ETIMEDOUT )                          
40007580:	80 a6 20 74 	cmp  %i0, 0x74                                 
40007584:	02 80 00 08 	be  400075a4 <_POSIX_Condition_variables_Wait_support+0x104>
40007588:	80 a6 20 00 	cmp  %i0, 0                                    
4000758c:	02 80 00 06 	be  400075a4 <_POSIX_Condition_variables_Wait_support+0x104><== ALWAYS TAKEN
40007590:	01 00 00 00 	nop                                            
40007594:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40007598:	81 e8 00 00 	restore                                        <== NOT EXECUTED
          return status;                                              
                                                                      
      } else {                                                        
        _Thread_Enable_dispatch();                                    
4000759c:	40 00 0c 7c 	call  4000a78c <_Thread_Enable_dispatch>       
400075a0:	b0 10 20 74 	mov  0x74, %i0                                 
                                                                      
      /*                                                              
       *  When we get here the dispatch disable level is 0.           
       */                                                             
                                                                      
      mutex_status = pthread_mutex_lock( mutex );                     
400075a4:	40 00 00 b0 	call  40007864 <pthread_mutex_lock>            
400075a8:	90 10 00 19 	mov  %i1, %o0                                  
      if ( mutex_status )                                             
400075ac:	80 a2 20 00 	cmp  %o0, 0                                    
400075b0:	02 80 00 03 	be  400075bc <_POSIX_Condition_variables_Wait_support+0x11c>
400075b4:	01 00 00 00 	nop                                            
400075b8:	b0 10 20 16 	mov  0x16, %i0	! 16 <PROM_START+0x16>          
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return EINVAL;                                                      
}                                                                     
400075bc:	81 c7 e0 08 	ret                                            
400075c0:	81 e8 00 00 	restore                                        
                                                                      

4000b2d4 <_POSIX_Message_queue_Receive_support>: size_t msg_len, unsigned int *msg_prio, bool wait, Watchdog_Interval timeout ) {
4000b2d4:	9d e3 bf 98 	save  %sp, -104, %sp                           
RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *_POSIX_Message_queue_Get_fd (
  mqd_t              id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (POSIX_Message_queue_Control_fd *) _Objects_Get(             
4000b2d8:	11 10 00 9e 	sethi  %hi(0x40027800), %o0                    
4000b2dc:	94 07 bf fc 	add  %fp, -4, %o2                              
4000b2e0:	90 12 22 7c 	or  %o0, 0x27c, %o0                            
4000b2e4:	40 00 0c 61 	call  4000e468 <_Objects_Get>                  
4000b2e8:	92 10 00 18 	mov  %i0, %o1                                  
  Objects_Locations                location;                          
  size_t                           length_out;                        
  bool                             do_wait;                           
                                                                      
  the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );        
  switch ( location ) {                                               
4000b2ec:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
  size_t              msg_len,                                        
  unsigned int       *msg_prio,                                       
  bool                wait,                                           
  Watchdog_Interval   timeout                                         
)                                                                     
{                                                                     
4000b2f0:	94 10 00 19 	mov  %i1, %o2                                  
  Objects_Locations                location;                          
  size_t                           length_out;                        
  bool                             do_wait;                           
                                                                      
  the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );        
  switch ( location ) {                                               
4000b2f4:	80 a0 60 00 	cmp  %g1, 0                                    
4000b2f8:	12 80 00 3b 	bne  4000b3e4 <_POSIX_Message_queue_Receive_support+0x110>
4000b2fc:	9a 10 00 1d 	mov  %i5, %o5                                  
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( (the_mq_fd->oflag & O_ACCMODE) == O_WRONLY ) {             
4000b300:	c2 02 20 14 	ld  [ %o0 + 0x14 ], %g1                        
4000b304:	84 08 60 03 	and  %g1, 3, %g2                               
4000b308:	80 a0 a0 01 	cmp  %g2, 1                                    
4000b30c:	32 80 00 08 	bne,a   4000b32c <_POSIX_Message_queue_Receive_support+0x58>
4000b310:	d0 02 20 10 	ld  [ %o0 + 0x10 ], %o0                        
        _Thread_Enable_dispatch();                                    
4000b314:	40 00 0e a1 	call  4000ed98 <_Thread_Enable_dispatch>       
4000b318:	01 00 00 00 	nop                                            
        rtems_set_errno_and_return_minus_one( EBADF );                
4000b31c:	40 00 2a de 	call  40015e94 <__errno>                       
4000b320:	01 00 00 00 	nop                                            
4000b324:	10 80 00 0b 	b  4000b350 <_POSIX_Message_queue_Receive_support+0x7c>
4000b328:	82 10 20 09 	mov  9, %g1	! 9 <PROM_START+0x9>               
      }                                                               
                                                                      
      the_mq = the_mq_fd->Queue;                                      
                                                                      
      if ( msg_len < the_mq->Message_queue.maximum_message_size ) {   
4000b32c:	c4 02 20 68 	ld  [ %o0 + 0x68 ], %g2                        
4000b330:	80 a6 80 02 	cmp  %i2, %g2                                  
4000b334:	1a 80 00 09 	bcc  4000b358 <_POSIX_Message_queue_Receive_support+0x84>
4000b338:	80 8f 20 ff 	btst  0xff, %i4                                
        _Thread_Enable_dispatch();                                    
4000b33c:	40 00 0e 97 	call  4000ed98 <_Thread_Enable_dispatch>       
4000b340:	01 00 00 00 	nop                                            
        rtems_set_errno_and_return_minus_one( EMSGSIZE );             
4000b344:	40 00 2a d4 	call  40015e94 <__errno>                       
4000b348:	01 00 00 00 	nop                                            
4000b34c:	82 10 20 7a 	mov  0x7a, %g1	! 7a <PROM_START+0x7a>          
4000b350:	10 80 00 23 	b  4000b3dc <_POSIX_Message_queue_Receive_support+0x108>
4000b354:	c2 22 00 00 	st  %g1, [ %o0 ]                               
      length_out = -1;                                                
                                                                      
      /*                                                              
       *  A timed receive with a bad time will do a poll regardless.  
       */                                                             
      if ( wait )                                                     
4000b358:	02 80 00 05 	be  4000b36c <_POSIX_Message_queue_Receive_support+0x98><== NEVER TAKEN
4000b35c:	98 10 20 00 	clr  %o4                                       
        do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? false : true;     
4000b360:	99 30 60 0e 	srl  %g1, 0xe, %o4                             
4000b364:	98 1b 20 01 	xor  %o4, 1, %o4                               
4000b368:	98 0b 20 01 	and  %o4, 1, %o4                               
      /*                                                              
       *  Now if something goes wrong, we return a "length" of -1     
       *  to indicate an error.                                       
       */                                                             
                                                                      
      length_out = -1;                                                
4000b36c:	82 10 3f ff 	mov  -1, %g1                                   
        do_wait = wait;                                               
                                                                      
      /*                                                              
       *  Now perform the actual message receive                      
       */                                                             
      _CORE_message_queue_Seize(                                      
4000b370:	90 02 20 1c 	add  %o0, 0x1c, %o0                            
4000b374:	92 10 00 18 	mov  %i0, %o1                                  
4000b378:	98 0b 20 01 	and  %o4, 1, %o4                               
4000b37c:	96 07 bf f8 	add  %fp, -8, %o3                              
4000b380:	40 00 08 0e 	call  4000d3b8 <_CORE_message_queue_Seize>     
4000b384:	c2 27 bf f8 	st  %g1, [ %fp + -8 ]                          
        &length_out,                                                  
        do_wait,                                                      
        timeout                                                       
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
4000b388:	40 00 0e 84 	call  4000ed98 <_Thread_Enable_dispatch>       
4000b38c:	35 10 00 9d 	sethi  %hi(0x40027400), %i2                    
      *msg_prio =                                                     
        _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count);
4000b390:	c2 06 a2 1c 	ld  [ %i2 + 0x21c ], %g1	! 4002761c <_Thread_Executing>
        do_wait,                                                      
        timeout                                                       
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      *msg_prio =                                                     
4000b394:	c4 00 60 24 	ld  [ %g1 + 0x24 ], %g2                        
        _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count);
                                                                      
      if ( !_Thread_Executing->Wait.return_code )                     
4000b398:	c6 00 60 34 	ld  [ %g1 + 0x34 ], %g3                        
        do_wait,                                                      
        timeout                                                       
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      *msg_prio =                                                     
4000b39c:	83 38 a0 1f 	sra  %g2, 0x1f, %g1                            
4000b3a0:	84 18 40 02 	xor  %g1, %g2, %g2                             
4000b3a4:	82 20 80 01 	sub  %g2, %g1, %g1                             
        _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count);
                                                                      
      if ( !_Thread_Executing->Wait.return_code )                     
4000b3a8:	80 a0 e0 00 	cmp  %g3, 0                                    
4000b3ac:	12 80 00 05 	bne  4000b3c0 <_POSIX_Message_queue_Receive_support+0xec>
4000b3b0:	c2 26 c0 00 	st  %g1, [ %i3 ]                               
        return length_out;                                            
4000b3b4:	f0 07 bf f8 	ld  [ %fp + -8 ], %i0                          
4000b3b8:	81 c7 e0 08 	ret                                            
4000b3bc:	81 e8 00 00 	restore                                        
                                                                      
      rtems_set_errno_and_return_minus_one(                           
4000b3c0:	40 00 2a b5 	call  40015e94 <__errno>                       
4000b3c4:	01 00 00 00 	nop                                            
4000b3c8:	c2 06 a2 1c 	ld  [ %i2 + 0x21c ], %g1                       
4000b3cc:	b6 10 00 08 	mov  %o0, %i3                                  
4000b3d0:	40 00 00 9b 	call  4000b63c <_POSIX_Message_queue_Translate_core_message_queue_return_code>
4000b3d4:	d0 00 60 34 	ld  [ %g1 + 0x34 ], %o0                        
4000b3d8:	d0 26 c0 00 	st  %o0, [ %i3 ]                               
4000b3dc:	81 c7 e0 08 	ret                                            
4000b3e0:	91 e8 3f ff 	restore  %g0, -1, %o0                          
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  rtems_set_errno_and_return_minus_one( EBADF );                      
4000b3e4:	40 00 2a ac 	call  40015e94 <__errno>                       
4000b3e8:	b0 10 3f ff 	mov  -1, %i0                                   
4000b3ec:	82 10 20 09 	mov  9, %g1                                    
4000b3f0:	c2 22 00 00 	st  %g1, [ %o0 ]                               
}                                                                     
4000b3f4:	81 c7 e0 08 	ret                                            
4000b3f8:	81 e8 00 00 	restore                                        
                                                                      

4000bb88 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch>: Thread_Control *the_thread ) { POSIX_API_Control *thread_support; thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];
4000bb88:	c2 02 21 60 	ld  [ %o0 + 0x160 ], %g1                       
                                                                      
  if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
4000bb8c:	c4 00 60 d4 	ld  [ %g1 + 0xd4 ], %g2                        
4000bb90:	80 a0 a0 00 	cmp  %g2, 0                                    
4000bb94:	12 80 00 12 	bne  4000bbdc <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x54><== NEVER TAKEN
4000bb98:	01 00 00 00 	nop                                            
       thread_support->cancelability_type == PTHREAD_CANCEL_ASYNCHRONOUS &&
4000bb9c:	c4 00 60 d8 	ld  [ %g1 + 0xd8 ], %g2                        
4000bba0:	80 a0 a0 01 	cmp  %g2, 1                                    
4000bba4:	12 80 00 0e 	bne  4000bbdc <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x54>
4000bba8:	01 00 00 00 	nop                                            
       thread_support->cancelation_requested ) {                      
4000bbac:	c2 00 60 dc 	ld  [ %g1 + 0xdc ], %g1                        
4000bbb0:	80 a0 60 00 	cmp  %g1, 0                                    
4000bbb4:	02 80 00 0a 	be  4000bbdc <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x54>
4000bbb8:	01 00 00 00 	nop                                            
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
4000bbbc:	03 10 00 7b 	sethi  %hi(0x4001ec00), %g1                    
4000bbc0:	c4 00 61 e0 	ld  [ %g1 + 0x1e0 ], %g2	! 4001ede0 <_Thread_Dispatch_disable_level>
    _Thread_Unnest_dispatch();                                        
    _POSIX_Thread_Exit( the_thread, PTHREAD_CANCELED );               
4000bbc4:	92 10 3f ff 	mov  -1, %o1                                   
4000bbc8:	84 00 bf ff 	add  %g2, -1, %g2                              
4000bbcc:	c4 20 61 e0 	st  %g2, [ %g1 + 0x1e0 ]                       
4000bbd0:	82 13 c0 00 	mov  %o7, %g1                                  
4000bbd4:	40 00 01 ab 	call  4000c280 <_POSIX_Thread_Exit>            
4000bbd8:	9e 10 40 00 	mov  %g1, %o7                                  
  } else                                                              
    _Thread_Enable_dispatch();                                        
4000bbdc:	82 13 c0 00 	mov  %o7, %g1                                  
4000bbe0:	7f ff f3 7a 	call  400089c8 <_Thread_Enable_dispatch>       
4000bbe4:	9e 10 40 00 	mov  %g1, %o7                                  
                                                                      

4000cefc <_POSIX_Thread_Translate_sched_param>: int policy, struct sched_param *param, Thread_CPU_budget_algorithms *budget_algorithm, Thread_CPU_budget_algorithm_callout *budget_callout ) {
4000cefc:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if ( !_POSIX_Priority_Is_valid( param->sched_priority ) )           
4000cf00:	7f ff ff f4 	call  4000ced0 <_POSIX_Priority_Is_valid>      
4000cf04:	d0 06 40 00 	ld  [ %i1 ], %o0                               
4000cf08:	80 8a 20 ff 	btst  0xff, %o0                                
4000cf0c:	02 80 00 37 	be  4000cfe8 <_POSIX_Thread_Translate_sched_param+0xec><== NEVER TAKEN
4000cf10:	80 a6 20 00 	cmp  %i0, 0                                    
    return EINVAL;                                                    
                                                                      
  *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;               
4000cf14:	c0 26 80 00 	clr  [ %i2 ]                                   
  *budget_callout = NULL;                                             
                                                                      
  if ( policy == SCHED_OTHER ) {                                      
4000cf18:	12 80 00 06 	bne  4000cf30 <_POSIX_Thread_Translate_sched_param+0x34>
4000cf1c:	c0 26 c0 00 	clr  [ %i3 ]                                   
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;  
4000cf20:	82 10 20 01 	mov  1, %g1                                    
4000cf24:	c2 26 80 00 	st  %g1, [ %i2 ]                               
    return 0;                                                         
4000cf28:	81 c7 e0 08 	ret                                            
4000cf2c:	81 e8 00 00 	restore                                        
  }                                                                   
                                                                      
  if ( policy == SCHED_FIFO ) {                                       
4000cf30:	80 a6 20 01 	cmp  %i0, 1                                    
4000cf34:	12 80 00 04 	bne  4000cf44 <_POSIX_Thread_Translate_sched_param+0x48>
4000cf38:	80 a6 20 02 	cmp  %i0, 2                                    
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;             
4000cf3c:	10 80 00 29 	b  4000cfe0 <_POSIX_Thread_Translate_sched_param+0xe4>
4000cf40:	c0 26 80 00 	clr  [ %i2 ]                                   
    return 0;                                                         
  }                                                                   
                                                                      
  if ( policy == SCHED_RR ) {                                         
4000cf44:	12 80 00 04 	bne  4000cf54 <_POSIX_Thread_Translate_sched_param+0x58>
4000cf48:	80 a6 20 04 	cmp  %i0, 4                                    
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE;
4000cf4c:	10 80 00 25 	b  4000cfe0 <_POSIX_Thread_Translate_sched_param+0xe4>
4000cf50:	f0 26 80 00 	st  %i0, [ %i2 ]                               
    return 0;                                                         
  }                                                                   
                                                                      
  if ( policy == SCHED_SPORADIC ) {                                   
4000cf54:	12 80 00 25 	bne  4000cfe8 <_POSIX_Thread_Translate_sched_param+0xec>
4000cf58:	01 00 00 00 	nop                                            
    if ( (param->sched_ss_repl_period.tv_sec == 0) &&                 
4000cf5c:	c2 06 60 08 	ld  [ %i1 + 8 ], %g1                           
4000cf60:	80 a0 60 00 	cmp  %g1, 0                                    
4000cf64:	32 80 00 07 	bne,a   4000cf80 <_POSIX_Thread_Translate_sched_param+0x84>
4000cf68:	c2 06 60 10 	ld  [ %i1 + 0x10 ], %g1                        
         (param->sched_ss_repl_period.tv_nsec == 0) )                 
4000cf6c:	c2 06 60 0c 	ld  [ %i1 + 0xc ], %g1                         
4000cf70:	80 a0 60 00 	cmp  %g1, 0                                    
4000cf74:	02 80 00 1d 	be  4000cfe8 <_POSIX_Thread_Translate_sched_param+0xec>
4000cf78:	01 00 00 00 	nop                                            
      return EINVAL;                                                  
                                                                      
    if ( (param->sched_ss_init_budget.tv_sec == 0) &&                 
4000cf7c:	c2 06 60 10 	ld  [ %i1 + 0x10 ], %g1                        
4000cf80:	80 a0 60 00 	cmp  %g1, 0                                    
4000cf84:	12 80 00 06 	bne  4000cf9c <_POSIX_Thread_Translate_sched_param+0xa0>
4000cf88:	01 00 00 00 	nop                                            
         (param->sched_ss_init_budget.tv_nsec == 0) )                 
4000cf8c:	c2 06 60 14 	ld  [ %i1 + 0x14 ], %g1                        
4000cf90:	80 a0 60 00 	cmp  %g1, 0                                    
4000cf94:	02 80 00 15 	be  4000cfe8 <_POSIX_Thread_Translate_sched_param+0xec>
4000cf98:	01 00 00 00 	nop                                            
      return EINVAL;                                                  
                                                                      
    if ( _Timespec_To_ticks( ¶m->sched_ss_repl_period ) <         
4000cf9c:	7f ff f5 a9 	call  4000a640 <_Timespec_To_ticks>            
4000cfa0:	90 06 60 08 	add  %i1, 8, %o0                               
4000cfa4:	b0 10 00 08 	mov  %o0, %i0                                  
4000cfa8:	7f ff f5 a6 	call  4000a640 <_Timespec_To_ticks>            
4000cfac:	90 06 60 10 	add  %i1, 0x10, %o0                            
4000cfb0:	80 a6 00 08 	cmp  %i0, %o0                                  
4000cfb4:	0a 80 00 0d 	bcs  4000cfe8 <_POSIX_Thread_Translate_sched_param+0xec>
4000cfb8:	01 00 00 00 	nop                                            
	 _Timespec_To_ticks( ¶m->sched_ss_init_budget ) )                
      return EINVAL;                                                  
                                                                      
    if ( !_POSIX_Priority_Is_valid( param->sched_ss_low_priority ) )  
4000cfbc:	7f ff ff c5 	call  4000ced0 <_POSIX_Priority_Is_valid>      
4000cfc0:	d0 06 60 04 	ld  [ %i1 + 4 ], %o0                           
4000cfc4:	80 8a 20 ff 	btst  0xff, %o0                                
4000cfc8:	02 80 00 08 	be  4000cfe8 <_POSIX_Thread_Translate_sched_param+0xec>
4000cfcc:	82 10 20 03 	mov  3, %g1                                    
      return EINVAL;                                                  
                                                                      
    *budget_algorithm  = THREAD_CPU_BUDGET_ALGORITHM_CALLOUT;         
4000cfd0:	c2 26 80 00 	st  %g1, [ %i2 ]                               
    *budget_callout = _POSIX_Threads_Sporadic_budget_callout;         
4000cfd4:	03 10 00 1b 	sethi  %hi(0x40006c00), %g1                    
4000cfd8:	82 10 60 50 	or  %g1, 0x50, %g1	! 40006c50 <_POSIX_Threads_Sporadic_budget_callout>
4000cfdc:	c2 26 c0 00 	st  %g1, [ %i3 ]                               
    return 0;                                                         
4000cfe0:	81 c7 e0 08 	ret                                            
4000cfe4:	91 e8 20 00 	restore  %g0, 0, %o0                           
  }                                                                   
                                                                      
  return EINVAL;                                                      
}                                                                     
4000cfe8:	81 c7 e0 08 	ret                                            
4000cfec:	91 e8 20 16 	restore  %g0, 0x16, %o0                        
                                                                      

400069b4 <_POSIX_Threads_Initialize_user_threads_body>: * * Output parameters: NONE */ void _POSIX_Threads_Initialize_user_threads_body(void) {
400069b4:	9d e3 bf 60 	save  %sp, -160, %sp                           
  uint32_t                            maximum;                        
  posix_initialization_threads_table *user_threads;                   
  pthread_t                           thread_id;                      
  pthread_attr_t                      attr;                           
                                                                      
  user_threads = Configuration_POSIX_API.User_initialization_threads_table;
400069b8:	03 10 00 78 	sethi  %hi(0x4001e000), %g1                    
400069bc:	82 10 61 fc 	or  %g1, 0x1fc, %g1	! 4001e1fc <Configuration_POSIX_API>
  maximum      = Configuration_POSIX_API.number_of_initialization_threads;
400069c0:	e6 00 60 30 	ld  [ %g1 + 0x30 ], %l3                        
                                                                      
  if ( !user_threads || maximum == 0 )                                
400069c4:	80 a4 e0 00 	cmp  %l3, 0                                    
400069c8:	02 80 00 1d 	be  40006a3c <_POSIX_Threads_Initialize_user_threads_body+0x88><== NEVER TAKEN
400069cc:	e2 00 60 34 	ld  [ %g1 + 0x34 ], %l1                        
400069d0:	80 a4 60 00 	cmp  %l1, 0                                    
400069d4:	02 80 00 1a 	be  40006a3c <_POSIX_Threads_Initialize_user_threads_body+0x88><== NEVER TAKEN
400069d8:	a4 10 20 00 	clr  %l2                                       
                                                                      
  for ( index=0 ; index < maximum ; index++ ) {                       
    /*                                                                
     * There is no way for these calls to fail in this situation.     
     */                                                               
    (void) pthread_attr_init( &attr );                                
400069dc:	a0 07 bf c0 	add  %fp, -64, %l0                             
    (void) pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED );
    (void) pthread_attr_setstacksize(&attr, user_threads[ index ].stack_size);
                                                                      
    status = pthread_create(                                          
400069e0:	a8 07 bf fc 	add  %fp, -4, %l4                              
                                                                      
  for ( index=0 ; index < maximum ; index++ ) {                       
    /*                                                                
     * There is no way for these calls to fail in this situation.     
     */                                                               
    (void) pthread_attr_init( &attr );                                
400069e4:	40 00 19 83 	call  4000cff0 <pthread_attr_init>             
400069e8:	90 10 00 10 	mov  %l0, %o0                                  
    (void) pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED );
400069ec:	92 10 20 02 	mov  2, %o1                                    
400069f0:	40 00 19 8b 	call  4000d01c <pthread_attr_setinheritsched>  
400069f4:	90 10 00 10 	mov  %l0, %o0                                  
    (void) pthread_attr_setstacksize(&attr, user_threads[ index ].stack_size);
400069f8:	d2 04 60 04 	ld  [ %l1 + 4 ], %o1                           
400069fc:	40 00 19 98 	call  4000d05c <pthread_attr_setstacksize>     
40006a00:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
    status = pthread_create(                                          
40006a04:	d4 04 40 00 	ld  [ %l1 ], %o2                               
40006a08:	90 10 00 14 	mov  %l4, %o0                                  
40006a0c:	92 10 00 10 	mov  %l0, %o1                                  
40006a10:	7f ff ff 34 	call  400066e0 <pthread_create>                
40006a14:	96 10 20 00 	clr  %o3                                       
      &thread_id,                                                     
      &attr,                                                          
      user_threads[ index ].thread_entry,                             
      NULL                                                            
    );                                                                
    if ( status )                                                     
40006a18:	94 92 20 00 	orcc  %o0, 0, %o2                              
40006a1c:	22 80 00 05 	be,a   40006a30 <_POSIX_Threads_Initialize_user_threads_body+0x7c>
40006a20:	a4 04 a0 01 	inc  %l2                                       
      _Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, true, status );
40006a24:	90 10 20 02 	mov  2, %o0                                    
40006a28:	40 00 07 a6 	call  400088c0 <_Internal_error_Occurred>      
40006a2c:	92 10 20 01 	mov  1, %o1                                    
   *                                                                  
   *  Setting the attributes explicitly is critical, since we don't want
   *  to inherit the idle tasks attributes.                           
   */                                                                 
                                                                      
  for ( index=0 ; index < maximum ; index++ ) {                       
40006a30:	80 a4 80 13 	cmp  %l2, %l3                                  
40006a34:	0a bf ff ec 	bcs  400069e4 <_POSIX_Threads_Initialize_user_threads_body+0x30><== NEVER TAKEN
40006a38:	a2 04 60 08 	add  %l1, 8, %l1                               
40006a3c:	81 c7 e0 08 	ret                                            
40006a40:	81 e8 00 00 	restore                                        
                                                                      

4000be04 <_POSIX_Threads_Sporadic_budget_TSR>: */ void _POSIX_Threads_Sporadic_budget_TSR( Objects_Id id __attribute__((unused)), void *argument ) {
4000be04:	9d e3 bf a0 	save  %sp, -96, %sp                            
  Thread_Control     *the_thread;                                     
  POSIX_API_Control  *api;                                            
                                                                      
  the_thread = argument;                                              
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
4000be08:	e0 06 61 60 	ld  [ %i1 + 0x160 ], %l0                       
                                                                      
  /* ticks is guaranteed to be at least one */                        
  ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_init_budget );
4000be0c:	40 00 04 60 	call  4000cf8c <_Timespec_To_ticks>            
4000be10:	90 04 20 94 	add  %l0, 0x94, %o0                            
4000be14:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
4000be18:	c4 04 20 84 	ld  [ %l0 + 0x84 ], %g2                        
4000be1c:	d2 08 62 b4 	ldub  [ %g1 + 0x2b4 ], %o1                     
   */                                                                 
  #if 0                                                               
    printk( "TSR %d %d %d\n", the_thread->resource_count,             
        the_thread->current_priority, new_priority );                 
  #endif                                                              
  if ( the_thread->resource_count == 0 ) {                            
4000be20:	c2 06 60 1c 	ld  [ %i1 + 0x1c ], %g1                        
4000be24:	92 22 40 02 	sub  %o1, %g2, %o1                             
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
                                                                      
  /* ticks is guaranteed to be at least one */                        
  ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_init_budget );
                                                                      
  the_thread->cpu_time_budget = ticks;                                
4000be28:	d0 26 60 78 	st  %o0, [ %i1 + 0x78 ]                        
   */                                                                 
  #if 0                                                               
    printk( "TSR %d %d %d\n", the_thread->resource_count,             
        the_thread->current_priority, new_priority );                 
  #endif                                                              
  if ( the_thread->resource_count == 0 ) {                            
4000be2c:	80 a0 60 00 	cmp  %g1, 0                                    
4000be30:	12 80 00 08 	bne  4000be50 <_POSIX_Threads_Sporadic_budget_TSR+0x4c><== NEVER TAKEN
4000be34:	d2 26 60 18 	st  %o1, [ %i1 + 0x18 ]                        
    /*                                                                
     *  If this would make them less important, then do not change it.
     */                                                               
    if ( the_thread->current_priority > new_priority ) {              
4000be38:	c2 06 60 14 	ld  [ %i1 + 0x14 ], %g1                        
4000be3c:	80 a0 40 09 	cmp  %g1, %o1                                  
4000be40:	08 80 00 04 	bleu  4000be50 <_POSIX_Threads_Sporadic_budget_TSR+0x4c>
4000be44:	90 10 00 19 	mov  %i1, %o0                                  
      _Thread_Change_priority( the_thread, new_priority, true );      
4000be48:	7f ff f0 91 	call  4000808c <_Thread_Change_priority>       
4000be4c:	94 10 20 01 	mov  1, %o2                                    
      #endif                                                          
    }                                                                 
  }                                                                   
                                                                      
  /* ticks is guaranteed to be at least one */                        
  ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_repl_period );
4000be50:	40 00 04 4f 	call  4000cf8c <_Timespec_To_ticks>            
4000be54:	90 04 20 8c 	add  %l0, 0x8c, %o0                            
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
4000be58:	31 10 00 76 	sethi  %hi(0x4001d800), %i0                    
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
4000be5c:	d0 24 20 b0 	st  %o0, [ %l0 + 0xb0 ]                        
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
4000be60:	b2 04 20 a4 	add  %l0, 0xa4, %i1                            
4000be64:	7f ff f6 53 	call  400097b0 <_Watchdog_Insert>              
4000be68:	91 ee 22 4c 	restore  %i0, 0x24c, %o0                       
                                                                      

4000bdb4 <_POSIX_Threads_Sporadic_budget_callout>: ) { POSIX_API_Control *api; uint32_t new_priority; api = the_thread->API_Extensions[ THREAD_API_POSIX ];
4000bdb4:	c4 02 21 60 	ld  [ %o0 + 0x160 ], %g2                       
                                                                      
RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(        
  int priority                                                        
)                                                                     
{                                                                     
  return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
4000bdb8:	c6 00 a0 88 	ld  [ %g2 + 0x88 ], %g3                        
4000bdbc:	05 10 00 73 	sethi  %hi(0x4001cc00), %g2                    
4000bdc0:	d2 08 a2 b4 	ldub  [ %g2 + 0x2b4 ], %o1	! 4001ceb4 <rtems_maximum_priority>
   */                                                                 
  #if 0                                                               
    printk( "callout %d %d %d\n", the_thread->resource_count,         
	the_thread->current_priority, new_priority );                        
  #endif                                                              
  if ( the_thread->resource_count == 0 ) {                            
4000bdc4:	c4 02 20 1c 	ld  [ %o0 + 0x1c ], %g2                        
4000bdc8:	92 22 40 03 	sub  %o1, %g3, %o1                             
                                                                      
  /*                                                                  
   *  This will prevent the thread from consuming its entire "budget" 
   *  while at low priority.                                          
   */                                                                 
  the_thread->cpu_time_budget = 0xFFFFFFFF; /* XXX should be based on MAX_U32 */
4000bdcc:	86 10 3f ff 	mov  -1, %g3                                   
                                                                      
  new_priority = _POSIX_Priority_To_core(api->schedparam.sched_ss_low_priority);
  the_thread->real_priority = new_priority;                           
4000bdd0:	d2 22 20 18 	st  %o1, [ %o0 + 0x18 ]                        
   */                                                                 
  #if 0                                                               
    printk( "callout %d %d %d\n", the_thread->resource_count,         
	the_thread->current_priority, new_priority );                        
  #endif                                                              
  if ( the_thread->resource_count == 0 ) {                            
4000bdd4:	80 a0 a0 00 	cmp  %g2, 0                                    
4000bdd8:	12 80 00 09 	bne  4000bdfc <_POSIX_Threads_Sporadic_budget_callout+0x48><== NEVER TAKEN
4000bddc:	c6 22 20 78 	st  %g3, [ %o0 + 0x78 ]                        
    /*                                                                
     *  Make sure we are actually lowering it. If they have lowered it
     *  to logically lower than sched_ss_low_priority, then we do not want to
     *  change it.                                                    
     */                                                               
    if ( the_thread->current_priority < new_priority ) {              
4000bde0:	c2 02 20 14 	ld  [ %o0 + 0x14 ], %g1                        
4000bde4:	80 a0 40 09 	cmp  %g1, %o1                                  
4000bde8:	1a 80 00 05 	bcc  4000bdfc <_POSIX_Threads_Sporadic_budget_callout+0x48><== NEVER TAKEN
4000bdec:	94 10 20 01 	mov  1, %o2                                    
      _Thread_Change_priority( the_thread, new_priority, true );      
4000bdf0:	82 13 c0 00 	mov  %o7, %g1                                  
4000bdf4:	7f ff f0 a6 	call  4000808c <_Thread_Change_priority>       
4000bdf8:	9e 10 40 00 	mov  %g1, %o7                                  
4000bdfc:	81 c3 e0 08 	retl                                           <== NOT EXECUTED
                                                                      

400066c0 <_POSIX_Timer_TSR>: * This is the operation that is run when a timer expires */ void _POSIX_Timer_TSR( Objects_Id timer __attribute__((unused)), void *data) {
400066c0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  bool                 activated;                                     
                                                                      
  ptimer = (POSIX_Timer_Control *)data;                               
                                                                      
  /* Increment the number of expirations. */                          
  ptimer->overrun = ptimer->overrun + 1;                              
400066c4:	c4 06 60 68 	ld  [ %i1 + 0x68 ], %g2                        
                                                                      
  /* The timer must be reprogrammed */                                
  if ( ( ptimer->timer_data.it_interval.tv_sec  != 0 ) ||             
400066c8:	c2 06 60 54 	ld  [ %i1 + 0x54 ], %g1                        
  bool                 activated;                                     
                                                                      
  ptimer = (POSIX_Timer_Control *)data;                               
                                                                      
  /* Increment the number of expirations. */                          
  ptimer->overrun = ptimer->overrun + 1;                              
400066cc:	84 00 a0 01 	inc  %g2                                       
                                                                      
  /* The timer must be reprogrammed */                                
  if ( ( ptimer->timer_data.it_interval.tv_sec  != 0 ) ||             
400066d0:	80 a0 60 00 	cmp  %g1, 0                                    
400066d4:	12 80 00 06 	bne  400066ec <_POSIX_Timer_TSR+0x2c>          
400066d8:	c4 26 60 68 	st  %g2, [ %i1 + 0x68 ]                        
       ( ptimer->timer_data.it_interval.tv_nsec != 0 ) ) {            
400066dc:	c2 06 60 58 	ld  [ %i1 + 0x58 ], %g1                        
400066e0:	80 a0 60 00 	cmp  %g1, 0                                    
400066e4:	02 80 00 0f 	be  40006720 <_POSIX_Timer_TSR+0x60>           <== NEVER TAKEN
400066e8:	82 10 20 04 	mov  4, %g1                                    
    activated = _POSIX_Timer_Insert_helper(                           
400066ec:	d2 06 60 64 	ld  [ %i1 + 0x64 ], %o1                        
400066f0:	d4 06 60 08 	ld  [ %i1 + 8 ], %o2                           
400066f4:	90 06 60 10 	add  %i1, 0x10, %o0                            
400066f8:	17 10 00 19 	sethi  %hi(0x40006400), %o3                    
400066fc:	98 10 00 19 	mov  %i1, %o4                                  
40006700:	40 00 19 30 	call  4000cbc0 <_POSIX_Timer_Insert_helper>    
40006704:	96 12 e2 c0 	or  %o3, 0x2c0, %o3                            
      ptimer->ticks,                                                  
      ptimer->Object.id,                                              
      _POSIX_Timer_TSR,                                               
      ptimer                                                          
    );                                                                
    if ( !activated )                                                 
40006708:	80 8a 20 ff 	btst  0xff, %o0                                
4000670c:	02 80 00 0a 	be  40006734 <_POSIX_Timer_TSR+0x74>           <== NEVER TAKEN
40006710:	01 00 00 00 	nop                                            
      return;                                                         
                                                                      
    /* Store the time when the timer was started again */             
    _TOD_Get( &ptimer->time );                                        
40006714:	40 00 05 ac 	call  40007dc4 <_TOD_Get>                      
40006718:	90 06 60 6c 	add  %i1, 0x6c, %o0                            
4000671c:	82 10 20 03 	mov  3, %g1                                    
  /*                                                                  
   * The sending of the signal to the process running the handling function
   * specified for that signal is simulated                           
   */                                                                 
                                                                      
  if ( pthread_kill ( ptimer->thread_id, ptimer->inf.sigev_signo ) ) {
40006720:	d0 06 60 38 	ld  [ %i1 + 0x38 ], %o0                        
40006724:	d2 06 60 44 	ld  [ %i1 + 0x44 ], %o1                        
40006728:	40 00 18 10 	call  4000c768 <pthread_kill>                  
4000672c:	c2 2e 60 3c 	stb  %g1, [ %i1 + 0x3c ]                       
  }                                                                   
                                                                      
  /* After the signal handler returns, the count of expirations of the
   * timer must be set to 0.                                          
   */                                                                 
  ptimer->overrun = 0;                                                
40006730:	c0 26 60 68 	clr  [ %i1 + 0x68 ]                            
40006734:	81 c7 e0 08 	ret                                            
40006738:	81 e8 00 00 	restore                                        
                                                                      

4000dfc8 <_POSIX_signals_Check_signal>: bool _POSIX_signals_Check_signal( POSIX_API_Control *api, int signo, bool is_global ) {
4000dfc8:	9d e3 bf 90 	save  %sp, -112, %sp                           
  siginfo_t                   siginfo_struct;                         
  sigset_t                    saved_signals_blocked;                  
                                                                      
  if ( ! _POSIX_signals_Clear_signals( api, signo, &siginfo_struct,   
4000dfcc:	98 10 20 01 	mov  1, %o4                                    
4000dfd0:	96 0e a0 ff 	and  %i2, 0xff, %o3                            
4000dfd4:	a0 07 bf f4 	add  %fp, -12, %l0                             
4000dfd8:	90 10 00 18 	mov  %i0, %o0                                  
4000dfdc:	92 10 00 19 	mov  %i1, %o1                                  
4000dfe0:	40 00 00 22 	call  4000e068 <_POSIX_signals_Clear_signals>  
4000dfe4:	94 10 00 10 	mov  %l0, %o2                                  
4000dfe8:	80 8a 20 ff 	btst  0xff, %o0                                
4000dfec:	02 80 00 1d 	be  4000e060 <_POSIX_signals_Check_signal+0x98>
4000dff0:	83 2e 60 02 	sll  %i1, 2, %g1                               
  #endif                                                              
                                                                      
  /*                                                                  
   *  Just to prevent sending a signal which is currently being ignored.
   */                                                                 
  if ( _POSIX_signals_Vectors[ signo ].sa_handler == SIG_IGN )        
4000dff4:	07 10 00 77 	sethi  %hi(0x4001dc00), %g3                    
4000dff8:	85 2e 60 04 	sll  %i1, 4, %g2                               
4000dffc:	86 10 e3 04 	or  %g3, 0x304, %g3                            
4000e000:	84 20 80 01 	sub  %g2, %g1, %g2                             
4000e004:	88 00 c0 02 	add  %g3, %g2, %g4                             
4000e008:	c2 01 20 08 	ld  [ %g4 + 8 ], %g1                           
4000e00c:	80 a0 60 01 	cmp  %g1, 1                                    
4000e010:	02 80 00 14 	be  4000e060 <_POSIX_signals_Check_signal+0x98><== NEVER TAKEN
4000e014:	01 00 00 00 	nop                                            
                                                                      
  /*                                                                  
   *  Block the signals requested in sa_mask                          
   */                                                                 
  saved_signals_blocked = api->signals_blocked;                       
  api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask;    
4000e018:	c8 01 20 04 	ld  [ %g4 + 4 ], %g4                           
    return false;                                                     
                                                                      
  /*                                                                  
   *  Block the signals requested in sa_mask                          
   */                                                                 
  saved_signals_blocked = api->signals_blocked;                       
4000e01c:	e2 06 20 cc 	ld  [ %i0 + 0xcc ], %l1                        
  api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask;    
                                                                      
  /*                                                                  
   *  Here, the signal handler function executes                      
   */                                                                 
  switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) {               
4000e020:	c4 00 c0 02 	ld  [ %g3 + %g2 ], %g2                         
                                                                      
  /*                                                                  
   *  Block the signals requested in sa_mask                          
   */                                                                 
  saved_signals_blocked = api->signals_blocked;                       
  api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask;    
4000e024:	86 11 00 11 	or  %g4, %l1, %g3                              
                                                                      
  /*                                                                  
   *  Here, the signal handler function executes                      
   */                                                                 
  switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) {               
4000e028:	80 a0 a0 02 	cmp  %g2, 2                                    
4000e02c:	12 80 00 08 	bne  4000e04c <_POSIX_signals_Check_signal+0x84>
4000e030:	c6 26 20 cc 	st  %g3, [ %i0 + 0xcc ]                        
    case SA_SIGINFO:                                                  
      (*_POSIX_signals_Vectors[ signo ].sa_sigaction)(                
4000e034:	90 10 00 19 	mov  %i1, %o0                                  
4000e038:	92 10 00 10 	mov  %l0, %o1                                  
4000e03c:	9f c0 40 00 	call  %g1                                      
4000e040:	94 10 20 00 	clr  %o2                                       
        signo,                                                        
        &siginfo_struct,                                              
        NULL        /* context is undefined per 1003.1b-1993, p. 66 */
      );                                                              
      break;                                                          
4000e044:	10 80 00 05 	b  4000e058 <_POSIX_signals_Check_signal+0x90> 
4000e048:	e2 26 20 cc 	st  %l1, [ %i0 + 0xcc ]                        
    default:                                                          
      (*_POSIX_signals_Vectors[ signo ].sa_handler)( signo );         
4000e04c:	9f c0 40 00 	call  %g1                                      
4000e050:	90 10 00 19 	mov  %i1, %o0                                  
  }                                                                   
                                                                      
  /*                                                                  
   *  Restore the previous set of blocked signals                     
   */                                                                 
  api->signals_blocked = saved_signals_blocked;                       
4000e054:	e2 26 20 cc 	st  %l1, [ %i0 + 0xcc ]                        
                                                                      
  return true;                                                        
4000e058:	81 c7 e0 08 	ret                                            
4000e05c:	91 e8 20 01 	restore  %g0, 1, %o0                           
}                                                                     
4000e060:	81 c7 e0 08 	ret                                            
4000e064:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

4000f148 <_POSIX_signals_Clear_process_signals>: */ void _POSIX_signals_Clear_process_signals( int signo ) {
4000f148:	9d e3 bf a0 	save  %sp, -96, %sp                            
  clear_signal = true;                                                
  mask         = signo_to_mask( signo );                              
                                                                      
  ISR_Level  level;                                                   
                                                                      
  _ISR_Disable( level );                                              
4000f14c:	7f ff cb 00 	call  40001d4c <sparc_disable_interrupts>      
4000f150:	01 00 00 00 	nop                                            
    if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) {   
4000f154:	85 2e 20 04 	sll  %i0, 4, %g2                               
4000f158:	83 2e 20 02 	sll  %i0, 2, %g1                               
4000f15c:	82 20 80 01 	sub  %g2, %g1, %g1                             
4000f160:	05 10 00 77 	sethi  %hi(0x4001dc00), %g2                    
4000f164:	84 10 a3 04 	or  %g2, 0x304, %g2	! 4001df04 <_POSIX_signals_Vectors>
4000f168:	c4 00 80 01 	ld  [ %g2 + %g1 ], %g2                         
4000f16c:	80 a0 a0 02 	cmp  %g2, 2                                    
4000f170:	12 80 00 0a 	bne  4000f198 <_POSIX_signals_Clear_process_signals+0x50>
4000f174:	05 10 00 78 	sethi  %hi(0x4001e000), %g2                    
      if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) )     
4000f178:	05 10 00 78 	sethi  %hi(0x4001e000), %g2                    
4000f17c:	84 10 a0 fc 	or  %g2, 0xfc, %g2	! 4001e0fc <_POSIX_signals_Siginfo>
4000f180:	c6 00 40 02 	ld  [ %g1 + %g2 ], %g3                         
4000f184:	82 00 40 02 	add  %g1, %g2, %g1                             
4000f188:	82 00 60 04 	add  %g1, 4, %g1                               
4000f18c:	80 a0 c0 01 	cmp  %g3, %g1                                  
4000f190:	12 80 00 0e 	bne  4000f1c8 <_POSIX_signals_Clear_process_signals+0x80><== NEVER TAKEN
4000f194:	05 10 00 78 	sethi  %hi(0x4001e000), %g2                    
       clear_signal = false;                                          
    }                                                                 
    if ( clear_signal ) {                                             
      _POSIX_signals_Pending &= ~mask;                                
4000f198:	c6 00 a0 f8 	ld  [ %g2 + 0xf8 ], %g3	! 4001e0f8 <_POSIX_signals_Pending>
4000f19c:	b0 06 3f ff 	add  %i0, -1, %i0                              
4000f1a0:	82 10 20 01 	mov  1, %g1                                    
4000f1a4:	83 28 40 18 	sll  %g1, %i0, %g1                             
4000f1a8:	82 28 c0 01 	andn  %g3, %g1, %g1                            
      if ( !_POSIX_signals_Pending )                                  
4000f1ac:	80 a0 60 00 	cmp  %g1, 0                                    
4000f1b0:	12 80 00 06 	bne  4000f1c8 <_POSIX_signals_Clear_process_signals+0x80><== NEVER TAKEN
4000f1b4:	c2 20 a0 f8 	st  %g1, [ %g2 + 0xf8 ]                        
	_Thread_Do_post_task_switch_extension--;                             
4000f1b8:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
4000f1bc:	c4 00 62 10 	ld  [ %g1 + 0x210 ], %g2	! 4001da10 <_Thread_Do_post_task_switch_extension>
4000f1c0:	84 00 bf ff 	add  %g2, -1, %g2                              
4000f1c4:	c4 20 62 10 	st  %g2, [ %g1 + 0x210 ]                       
    }                                                                 
  _ISR_Enable( level );                                               
4000f1c8:	7f ff ca e5 	call  40001d5c <sparc_enable_interrupts>       
4000f1cc:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      

4000715c <_POSIX_signals_Get_highest>: #include <rtems/score/isr.h> int _POSIX_signals_Get_highest( sigset_t set ) {
4000715c:	82 10 20 1b 	mov  0x1b, %g1	! 1b <PROM_START+0x1b>          
  int signo;                                                          
                                                                      
  for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {            
    if ( set & signo_to_mask( signo ) ) {                             
40007160:	84 10 20 01 	mov  1, %g2                                    
40007164:	86 00 7f ff 	add  %g1, -1, %g3                              
40007168:	87 28 80 03 	sll  %g2, %g3, %g3                             
4000716c:	80 88 c0 08 	btst  %g3, %o0                                 
40007170:	12 80 00 11 	bne  400071b4 <_POSIX_signals_Get_highest+0x58><== NEVER TAKEN
40007174:	01 00 00 00 	nop                                            
  sigset_t   set                                                      
)                                                                     
{                                                                     
  int signo;                                                          
                                                                      
  for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {            
40007178:	82 00 60 01 	inc  %g1                                       
4000717c:	80 a0 60 20 	cmp  %g1, 0x20                                 
40007180:	12 bf ff fa 	bne  40007168 <_POSIX_signals_Get_highest+0xc> 
40007184:	86 00 7f ff 	add  %g1, -1, %g3                              
40007188:	82 10 20 01 	mov  1, %g1                                    
                                                                      
  #if (SIGHUP != 1)                                                   
    #error "Assumption that SIGHUP==1 violated!!"                     
  #endif                                                              
  for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {        
    if ( set & signo_to_mask( signo ) ) {                             
4000718c:	84 10 20 01 	mov  1, %g2                                    
40007190:	86 00 7f ff 	add  %g1, -1, %g3                              
40007194:	87 28 80 03 	sll  %g2, %g3, %g3                             
40007198:	80 88 c0 08 	btst  %g3, %o0                                 
4000719c:	12 80 00 06 	bne  400071b4 <_POSIX_signals_Get_highest+0x58>
400071a0:	01 00 00 00 	nop                                            
   */                                                                 
                                                                      
  #if (SIGHUP != 1)                                                   
    #error "Assumption that SIGHUP==1 violated!!"                     
  #endif                                                              
  for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {        
400071a4:	82 00 60 01 	inc  %g1                                       
400071a8:	80 a0 60 1b 	cmp  %g1, 0x1b                                 
400071ac:	12 bf ff fa 	bne  40007194 <_POSIX_signals_Get_highest+0x38><== ALWAYS TAKEN
400071b0:	86 00 7f ff 	add  %g1, -1, %g3                              
   *  a return 0.  This routine will NOT be called unless a signal    
   *  is pending in the set passed in.                                
   */                                                                 
found_it:                                                             
  return signo;                                                       
}                                                                     
400071b4:	81 c3 e0 08 	retl                                           
400071b8:	90 10 00 01 	mov  %g1, %o0                                  
                                                                      

4000f218 <_POSIX_signals_Unblock_thread>: bool _POSIX_signals_Unblock_thread( Thread_Control *the_thread, int signo, siginfo_t *info ) {
4000f218:	9d e3 bf a0 	save  %sp, -96, %sp                            
                                                                      
  /*                                                                  
   *  Is the thread is specifically waiting for a signal?             
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
4000f21c:	c2 06 20 10 	ld  [ %i0 + 0x10 ], %g1                        
4000f220:	09 04 00 20 	sethi  %hi(0x10008000), %g4                    
4000f224:	86 06 7f ff 	add  %i1, -1, %g3                              
4000f228:	9a 08 40 04 	and  %g1, %g4, %o5                             
4000f22c:	84 10 20 01 	mov  1, %g2                                    
4000f230:	80 a3 40 04 	cmp  %o5, %g4                                  
bool _POSIX_signals_Unblock_thread(                                   
  Thread_Control  *the_thread,                                        
  int              signo,                                             
  siginfo_t       *info                                               
)                                                                     
{                                                                     
4000f234:	92 10 00 1a 	mov  %i2, %o1                                  
4000f238:	87 28 80 03 	sll  %g2, %g3, %g3                             
                                                                      
  /*                                                                  
   *  Is the thread is specifically waiting for a signal?             
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
4000f23c:	12 80 00 1a 	bne  4000f2a4 <_POSIX_signals_Unblock_thread+0x8c>
4000f240:	c8 06 21 60 	ld  [ %i0 + 0x160 ], %g4                       
                                                                      
    if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) {
4000f244:	c2 06 20 30 	ld  [ %i0 + 0x30 ], %g1                        
4000f248:	80 88 c0 01 	btst  %g3, %g1                                 
4000f24c:	12 80 00 06 	bne  4000f264 <_POSIX_signals_Unblock_thread+0x4c>
4000f250:	82 10 20 04 	mov  4, %g1                                    
4000f254:	c2 01 20 cc 	ld  [ %g4 + 0xcc ], %g1                        
4000f258:	80 a8 c0 01 	andncc  %g3, %g1, %g0                          
4000f25c:	02 80 00 38 	be  4000f33c <_POSIX_signals_Unblock_thread+0x124>
4000f260:	82 10 20 04 	mov  4, %g1                                    
      the_thread->Wait.return_code = EINTR;                           
4000f264:	c2 26 20 34 	st  %g1, [ %i0 + 0x34 ]                        
                                                                      
      the_info = (siginfo_t *) the_thread->Wait.return_argument;      
                                                                      
      if ( !info ) {                                                  
4000f268:	80 a2 60 00 	cmp  %o1, 0                                    
4000f26c:	12 80 00 07 	bne  4000f288 <_POSIX_signals_Unblock_thread+0x70>
4000f270:	d0 06 20 28 	ld  [ %i0 + 0x28 ], %o0                        
        the_info->si_signo = signo;                                   
        the_info->si_code = SI_USER;                                  
4000f274:	82 10 20 01 	mov  1, %g1                                    
      the_thread->Wait.return_code = EINTR;                           
                                                                      
      the_info = (siginfo_t *) the_thread->Wait.return_argument;      
                                                                      
      if ( !info ) {                                                  
        the_info->si_signo = signo;                                   
4000f278:	f2 22 00 00 	st  %i1, [ %o0 ]                               
        the_info->si_code = SI_USER;                                  
        the_info->si_value.sival_int = 0;                             
4000f27c:	c0 22 20 08 	clr  [ %o0 + 8 ]                               
                                                                      
      the_info = (siginfo_t *) the_thread->Wait.return_argument;      
                                                                      
      if ( !info ) {                                                  
        the_info->si_signo = signo;                                   
        the_info->si_code = SI_USER;                                  
4000f280:	10 80 00 04 	b  4000f290 <_POSIX_signals_Unblock_thread+0x78>
4000f284:	c2 22 20 04 	st  %g1, [ %o0 + 4 ]                           
        the_info->si_value.sival_int = 0;                             
      } else {                                                        
        *the_info = *info;                                            
4000f288:	40 00 02 d1 	call  4000fdcc <memcpy>                        
4000f28c:	94 10 20 0c 	mov  0xc, %o2                                  
      }                                                               
                                                                      
      _Thread_queue_Extract_with_proxy( the_thread );                 
4000f290:	90 10 00 18 	mov  %i0, %o0                                  
4000f294:	7f ff e6 d1 	call  40008dd8 <_Thread_queue_Extract_with_proxy>
4000f298:	b0 10 20 01 	mov  1, %i0                                    
      return true;                                                    
4000f29c:	81 c7 e0 08 	ret                                            
4000f2a0:	81 e8 00 00 	restore                                        
  }                                                                   
                                                                      
  /*                                                                  
   *  Thread is not waiting due to a sigwait.                         
   */                                                                 
  if ( ~api->signals_blocked & mask ) {                               
4000f2a4:	c8 01 20 cc 	ld  [ %g4 + 0xcc ], %g4                        
4000f2a8:	80 a8 c0 04 	andncc  %g3, %g4, %g0                          
4000f2ac:	02 80 00 24 	be  4000f33c <_POSIX_signals_Unblock_thread+0x124>
4000f2b0:	07 04 00 00 	sethi  %hi(0x10000000), %g3                    
     *    + Any other combination, do nothing.                        
     */                                                               
                                                                      
    the_thread->do_post_task_switch_extension = true;                 
                                                                      
    if ( the_thread->current_state & STATES_INTERRUPTIBLE_BY_SIGNAL ) {
4000f2b4:	80 88 40 03 	btst  %g1, %g3                                 
4000f2b8:	02 80 00 12 	be  4000f300 <_POSIX_signals_Unblock_thread+0xe8>
4000f2bc:	c4 2e 20 74 	stb  %g2, [ %i0 + 0x74 ]                       
      the_thread->Wait.return_code = EINTR;                           
4000f2c0:	84 10 20 04 	mov  4, %g2                                    
      #if 0                                                           
	if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) ) 
	  _Thread_queue_Extract_with_proxy( the_thread );                    
	else                                                                 
      #endif                                                          
	  if ( _States_Is_delaying(the_thread->current_state) ){             
4000f2c4:	80 88 60 08 	btst  8, %g1                                   
4000f2c8:	02 80 00 1d 	be  4000f33c <_POSIX_signals_Unblock_thread+0x124><== NEVER TAKEN
4000f2cc:	c4 26 20 34 	st  %g2, [ %i0 + 0x34 ]                        
	    if ( _Watchdog_Is_active( &the_thread->Timer ) )                 
4000f2d0:	c2 06 20 50 	ld  [ %i0 + 0x50 ], %g1                        
4000f2d4:	80 a0 60 02 	cmp  %g1, 2                                    
4000f2d8:	12 80 00 05 	bne  4000f2ec <_POSIX_signals_Unblock_thread+0xd4><== NEVER TAKEN
4000f2dc:	90 10 00 18 	mov  %i0, %o0                                  
	      (void) _Watchdog_Remove( &the_thread->Timer );                 
4000f2e0:	7f ff e9 91 	call  40009924 <_Watchdog_Remove>              
4000f2e4:	90 06 20 48 	add  %i0, 0x48, %o0                            
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
4000f2e8:	90 10 00 18 	mov  %i0, %o0                                  
4000f2ec:	13 04 00 ff 	sethi  %hi(0x1003fc00), %o1                    
4000f2f0:	7f ff e3 e0 	call  40008270 <_Thread_Clear_state>           
4000f2f4:	92 12 63 f8 	or  %o1, 0x3f8, %o1	! 1003fff8 <RAM_SIZE+0xfc3fff8>
	    _Thread_Unblock( the_thread );                                   
	  }                                                                  
    } else if ( the_thread->current_state == STATES_READY ) {         
      if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
	_ISR_Signals_to_thread_executing = true;                             
4000f2f8:	81 c7 e0 08 	ret                                            
4000f2fc:	91 e8 20 00 	restore  %g0, 0, %o0                           
	  if ( _States_Is_delaying(the_thread->current_state) ){             
	    if ( _Watchdog_Is_active( &the_thread->Timer ) )                 
	      (void) _Watchdog_Remove( &the_thread->Timer );                 
	    _Thread_Unblock( the_thread );                                   
	  }                                                                  
    } else if ( the_thread->current_state == STATES_READY ) {         
4000f300:	80 a0 60 00 	cmp  %g1, 0                                    
4000f304:	12 80 00 0e 	bne  4000f33c <_POSIX_signals_Unblock_thread+0x124><== NEVER TAKEN
4000f308:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
      if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
4000f30c:	c2 00 62 08 	ld  [ %g1 + 0x208 ], %g1	! 4001da08 <_ISR_Nest_level>
4000f310:	80 a0 60 00 	cmp  %g1, 0                                    
4000f314:	02 80 00 0a 	be  4000f33c <_POSIX_signals_Unblock_thread+0x124>
4000f318:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
4000f31c:	c2 00 62 2c 	ld  [ %g1 + 0x22c ], %g1	! 4001da2c <_Thread_Executing>
4000f320:	80 a6 00 01 	cmp  %i0, %g1                                  
4000f324:	12 bf ff de 	bne  4000f29c <_POSIX_signals_Unblock_thread+0x84><== NEVER TAKEN
4000f328:	b0 10 20 00 	clr  %i0                                       
	_ISR_Signals_to_thread_executing = true;                             
4000f32c:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
4000f330:	c4 28 62 c8 	stb  %g2, [ %g1 + 0x2c8 ]	! 4001dac8 <_ISR_Signals_to_thread_executing>
4000f334:	81 c7 e0 08 	ret                                            
4000f338:	81 e8 00 00 	restore                                        
4000f33c:	b0 10 20 00 	clr  %i0                                       
    }                                                                 
  }                                                                   
  return false;                                                       
}                                                                     
4000f340:	81 c7 e0 08 	ret                                            
4000f344:	81 e8 00 00 	restore                                        
                                                                      

4000c1c8 <_RTEMS_tasks_Post_switch_extension>: */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) {
4000c1c8:	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 ];                
4000c1cc:	e0 06 21 5c 	ld  [ %i0 + 0x15c ], %l0                       
  if ( !api )                                                         
4000c1d0:	80 a4 20 00 	cmp  %l0, 0                                    
4000c1d4:	02 80 00 1d 	be  4000c248 <_RTEMS_tasks_Post_switch_extension+0x80><== NEVER TAKEN
4000c1d8:	01 00 00 00 	nop                                            
   *  Signal Processing                                               
   */                                                                 
                                                                      
  asr = &api->Signal;                                                 
                                                                      
  _ISR_Disable( level );                                              
4000c1dc:	7f ff d6 dc 	call  40001d4c <sparc_disable_interrupts>      
4000c1e0:	01 00 00 00 	nop                                            
    signal_set = asr->signals_posted;                                 
4000c1e4:	e6 04 20 14 	ld  [ %l0 + 0x14 ], %l3                        
    asr->signals_posted = 0;                                          
4000c1e8:	c0 24 20 14 	clr  [ %l0 + 0x14 ]                            
  _ISR_Enable( level );                                               
4000c1ec:	7f ff d6 dc 	call  40001d5c <sparc_enable_interrupts>       
4000c1f0:	01 00 00 00 	nop                                            
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
4000c1f4:	80 a4 e0 00 	cmp  %l3, 0                                    
4000c1f8:	02 80 00 14 	be  4000c248 <_RTEMS_tasks_Post_switch_extension+0x80>
4000c1fc:	a2 07 bf fc 	add  %fp, -4, %l1                              
    return;                                                           
                                                                      
  asr->nest_level += 1;                                               
4000c200:	c2 04 20 1c 	ld  [ %l0 + 0x1c ], %g1                        
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
4000c204:	d0 04 20 10 	ld  [ %l0 + 0x10 ], %o0                        
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
    return;                                                           
                                                                      
  asr->nest_level += 1;                                               
4000c208:	82 00 60 01 	inc  %g1                                       
4000c20c:	c2 24 20 1c 	st  %g1, [ %l0 + 0x1c ]                        
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
4000c210:	94 10 00 11 	mov  %l1, %o2                                  
4000c214:	25 00 00 3f 	sethi  %hi(0xfc00), %l2                        
4000c218:	40 00 08 74 	call  4000e3e8 <rtems_task_mode>               
4000c21c:	92 14 a3 ff 	or  %l2, 0x3ff, %o1	! ffff <PROM_START+0xffff> 
                                                                      
  (*asr->handler)( signal_set );                                      
4000c220:	c2 04 20 0c 	ld  [ %l0 + 0xc ], %g1                         
4000c224:	9f c0 40 00 	call  %g1                                      
4000c228:	90 10 00 13 	mov  %l3, %o0                                  
                                                                      
  asr->nest_level -= 1;                                               
4000c22c:	c2 04 20 1c 	ld  [ %l0 + 0x1c ], %g1                        
  rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );     
4000c230:	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;                                               
4000c234:	82 00 7f ff 	add  %g1, -1, %g1                              
  rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );     
4000c238:	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;                                               
4000c23c:	c2 24 20 1c 	st  %g1, [ %l0 + 0x1c ]                        
  rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );     
4000c240:	40 00 08 6a 	call  4000e3e8 <rtems_task_mode>               
4000c244:	94 10 00 11 	mov  %l1, %o2                                  
4000c248:	81 c7 e0 08 	ret                                            
4000c24c:	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 8d 	sethi  %hi(0x40023400), %o0                    
40007b64:	92 10 00 18 	mov  %i0, %o1                                  
40007b68:	90 12 22 70 	or  %o0, 0x270, %o0                            
40007b6c:	40 00 07 a6 	call  40009a04 <_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 eb 	call  40009f60 <_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 8e 	sethi  %hi(0x40023800), %o0                    
40007bf4:	40 00 0f 0a 	call  4000b81c <_Watchdog_Insert>              
40007bf8:	90 12 20 bc 	or  %o0, 0xbc, %o0	! 400238bc <_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 8d 	sethi  %hi(0x40023400), %g1                    
40007c08:	c4 00 63 e0 	ld  [ %g1 + 0x3e0 ], %g2	! 400237e0 <_Thread_Dispatch_disable_level>
40007c0c:	84 00 bf ff 	add  %g2, -1, %g2                              
40007c10:	c4 20 63 e0 	st  %g2, [ %g1 + 0x3e0 ]                       
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 8d 	sethi  %hi(0x40023400), %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 62 44 	ld  [ %g1 + 0x244 ], %o1                       
      (the_tod->ticks  >= ticks_per_second)       ||                  
40007580:	11 00 03 d0 	sethi  %hi(0xf4000), %o0                       
40007584:	40 00 5a 8a 	call  4001dfac <.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 87 	sethi  %hi(0x40021c00), %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 e1 9c 	or  %g3, 0x19c, %g3	! 40021d9c <_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                           
                                                                      

4000808c <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) {
4000808c:	9d e3 bf a0 	save  %sp, -96, %sp                            
*/                                                                    
                                                                      
  /*                                                                  
   * Save original state                                              
   */                                                                 
  original_state = the_thread->current_state;                         
40008090:	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 );                                
40008094:	40 00 04 26 	call  4000912c <_Thread_Set_transient>         
40008098:	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 )                  
4000809c:	c2 06 20 14 	ld  [ %i0 + 0x14 ], %g1                        
void _Thread_Change_priority(                                         
  Thread_Control   *the_thread,                                       
  Priority_Control  new_priority,                                     
  bool              prepend_it                                        
)                                                                     
{                                                                     
400080a0:	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 )                  
400080a4:	80 a0 40 19 	cmp  %g1, %i1                                  
400080a8:	02 80 00 04 	be  400080b8 <_Thread_Change_priority+0x2c>    
400080ac:	92 10 00 19 	mov  %i1, %o1                                  
    _Thread_Set_priority( the_thread, new_priority );                 
400080b0:	40 00 03 a2 	call  40008f38 <_Thread_Set_priority>          
400080b4:	90 10 00 18 	mov  %i0, %o0                                  
                                                                      
  _ISR_Disable( level );                                              
400080b8:	7f ff e7 25 	call  40001d4c <sparc_disable_interrupts>      
400080bc:	01 00 00 00 	nop                                            
400080c0:	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;                                  
400080c4:	e4 04 20 10 	ld  [ %l0 + 0x10 ], %l2                        
  if ( state != STATES_TRANSIENT ) {                                  
400080c8:	80 a4 a0 04 	cmp  %l2, 4                                    
400080cc:	02 80 00 10 	be  4000810c <_Thread_Change_priority+0x80>    
400080d0:	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 ) )                   
400080d4:	80 a4 60 00 	cmp  %l1, 0                                    
400080d8:	12 80 00 03 	bne  400080e4 <_Thread_Change_priority+0x58>   <== NEVER TAKEN
400080dc:	82 0c bf fb 	and  %l2, -5, %g1                              
      the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
400080e0:	c2 24 20 10 	st  %g1, [ %l0 + 0x10 ]                        
    _ISR_Enable( level );                                             
400080e4:	7f ff e7 1e 	call  40001d5c <sparc_enable_interrupts>       
400080e8:	90 10 00 18 	mov  %i0, %o0                                  
    if ( _States_Is_waiting_on_thread_queue( state ) ) {              
400080ec:	03 00 00 ef 	sethi  %hi(0x3bc00), %g1                       
400080f0:	82 10 62 e0 	or  %g1, 0x2e0, %g1	! 3bee0 <PROM_START+0x3bee0>
400080f4:	80 8c 80 01 	btst  %l2, %g1                                 
400080f8:	02 80 00 5c 	be  40008268 <_Thread_Change_priority+0x1dc>   
400080fc:	01 00 00 00 	nop                                            
      _Thread_queue_Requeue( the_thread->Wait.queue, the_thread );    
40008100:	f0 04 20 44 	ld  [ %l0 + 0x44 ], %i0                        
40008104:	40 00 03 60 	call  40008e84 <_Thread_queue_Requeue>         
40008108:	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 ) ) {                   
4000810c:	80 a4 60 00 	cmp  %l1, 0                                    
40008110:	12 80 00 1c 	bne  40008180 <_Thread_Change_priority+0xf4>   <== NEVER TAKEN
40008114:	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;          
40008118:	c4 04 20 90 	ld  [ %l0 + 0x90 ], %g2                        
4000811c:	c6 14 20 96 	lduh  [ %l0 + 0x96 ], %g3                      
40008120:	c8 10 80 00 	lduh  [ %g2 ], %g4                             
  _Priority_Major_bit_map  |= the_priority_map->ready_major;          
40008124:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
                                                                      
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (                  
  Priority_Information *the_priority_map                              
)                                                                     
{                                                                     
  *the_priority_map->minor |= the_priority_map->ready_minor;          
40008128:	86 11 00 03 	or  %g4, %g3, %g3                              
4000812c:	c6 30 80 00 	sth  %g3, [ %g2 ]                              
  _Priority_Major_bit_map  |= the_priority_map->ready_major;          
40008130:	c4 10 62 20 	lduh  [ %g1 + 0x220 ], %g2                     
40008134:	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 );
40008138:	c0 24 20 10 	clr  [ %l0 + 0x10 ]                            
4000813c:	84 10 c0 02 	or  %g3, %g2, %g2                              
40008140:	c4 30 62 20 	sth  %g2, [ %g1 + 0x220 ]                      
                                                                      
    _Priority_Add_to_bit_map( &the_thread->Priority_map );            
    if ( prepend_it )                                                 
40008144:	80 8e a0 ff 	btst  0xff, %i2                                
40008148:	02 80 00 08 	be  40008168 <_Thread_Change_priority+0xdc>    
4000814c:	c2 04 20 8c 	ld  [ %l0 + 0x8c ], %g1                        
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
40008150:	c4 00 40 00 	ld  [ %g1 ], %g2                               
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
40008154:	c2 24 20 04 	st  %g1, [ %l0 + 4 ]                           
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
40008158:	e0 20 40 00 	st  %l0, [ %g1 ]                               
  the_node->next        = before_node;                                
  before_node->previous = the_node;                                   
4000815c:	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;                                
40008160:	10 80 00 08 	b  40008180 <_Thread_Change_priority+0xf4>     
40008164:	c4 24 00 00 	st  %g2, [ %l0 ]                               
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
40008168:	84 00 60 04 	add  %g1, 4, %g2                               
4000816c:	c4 24 00 00 	st  %g2, [ %l0 ]                               
  old_last_node       = the_chain->last;                              
40008170:	c4 00 60 08 	ld  [ %g1 + 8 ], %g2                           
  the_chain->last     = the_node;                                     
40008174:	e0 20 60 08 	st  %l0, [ %g1 + 8 ]                           
  old_last_node->next = the_node;                                     
  the_node->previous  = old_last_node;                                
40008178:	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;                                     
4000817c:	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 );                                                
40008180:	7f ff e6 f7 	call  40001d5c <sparc_enable_interrupts>       
40008184:	90 10 00 18 	mov  %i0, %o0                                  
40008188:	7f ff e6 f1 	call  40001d4c <sparc_disable_interrupts>      
4000818c:	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 );         
40008190:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
40008194:	c4 10 62 20 	lduh  [ %g1 + 0x220 ], %g2	! 4001da20 <_Priority_Major_bit_map>
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )              
{                                                                     
  _Thread_Heir = (Thread_Control *)                                   
    _Thread_Ready_chain[ _Priority_Get_highest() ].first;             
40008198:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
4000819c:	85 28 a0 10 	sll  %g2, 0x10, %g2                            
400081a0:	da 00 60 c4 	ld  [ %g1 + 0xc4 ], %o5                        
400081a4:	87 30 a0 10 	srl  %g2, 0x10, %g3                            
400081a8:	03 10 00 6f 	sethi  %hi(0x4001bc00), %g1                    
400081ac:	80 a0 e0 ff 	cmp  %g3, 0xff                                 
400081b0:	18 80 00 05 	bgu  400081c4 <_Thread_Change_priority+0x138>  
400081b4:	82 10 62 90 	or  %g1, 0x290, %g1                            
400081b8:	c4 08 40 03 	ldub  [ %g1 + %g3 ], %g2                       
400081bc:	10 80 00 04 	b  400081cc <_Thread_Change_priority+0x140>    
400081c0:	84 00 a0 08 	add  %g2, 8, %g2                               
400081c4:	85 30 a0 18 	srl  %g2, 0x18, %g2                            
400081c8:	c4 08 40 02 	ldub  [ %g1 + %g2 ], %g2                       
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
400081cc:	83 28 a0 10 	sll  %g2, 0x10, %g1                            
400081d0:	07 10 00 76 	sethi  %hi(0x4001d800), %g3                    
400081d4:	83 30 60 0f 	srl  %g1, 0xf, %g1                             
400081d8:	86 10 e2 a0 	or  %g3, 0x2a0, %g3                            
400081dc:	c6 10 c0 01 	lduh  [ %g3 + %g1 ], %g3                       
400081e0:	03 10 00 6f 	sethi  %hi(0x4001bc00), %g1                    
400081e4:	87 28 e0 10 	sll  %g3, 0x10, %g3                            
400081e8:	89 30 e0 10 	srl  %g3, 0x10, %g4                            
400081ec:	80 a1 20 ff 	cmp  %g4, 0xff                                 
400081f0:	18 80 00 05 	bgu  40008204 <_Thread_Change_priority+0x178>  
400081f4:	82 10 62 90 	or  %g1, 0x290, %g1                            
400081f8:	c2 08 40 04 	ldub  [ %g1 + %g4 ], %g1                       
400081fc:	10 80 00 04 	b  4000820c <_Thread_Change_priority+0x180>    
40008200:	82 00 60 08 	add  %g1, 8, %g1                               
40008204:	87 30 e0 18 	srl  %g3, 0x18, %g3                            
40008208:	c2 08 40 03 	ldub  [ %g1 + %g3 ], %g1                       
 *  ready thread.                                                     
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )              
{                                                                     
  _Thread_Heir = (Thread_Control *)                                   
4000820c:	83 28 60 10 	sll  %g1, 0x10, %g1                            
40008210:	83 30 60 10 	srl  %g1, 0x10, %g1                            
40008214:	85 28 a0 10 	sll  %g2, 0x10, %g2                            
40008218:	85 30 a0 0c 	srl  %g2, 0xc, %g2                             
4000821c:	84 00 40 02 	add  %g1, %g2, %g2                             
40008220:	83 28 a0 04 	sll  %g2, 4, %g1                               
40008224:	85 28 a0 02 	sll  %g2, 2, %g2                               
40008228:	84 20 40 02 	sub  %g1, %g2, %g2                             
4000822c:	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 );                       
40008230:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
40008234:	c2 00 62 2c 	ld  [ %g1 + 0x22c ], %g1	! 4001da2c <_Thread_Executing>
 *  ready thread.                                                     
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )              
{                                                                     
  _Thread_Heir = (Thread_Control *)                                   
40008238:	07 10 00 76 	sethi  %hi(0x4001d800), %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() &&                       
4000823c:	80 a0 40 02 	cmp  %g1, %g2                                  
40008240:	02 80 00 08 	be  40008260 <_Thread_Change_priority+0x1d4>   
40008244:	c4 20 e1 fc 	st  %g2, [ %g3 + 0x1fc ]                       
       _Thread_Executing->is_preemptible )                            
40008248:	c2 08 60 75 	ldub  [ %g1 + 0x75 ], %g1                      
4000824c:	80 a0 60 00 	cmp  %g1, 0                                    
40008250:	02 80 00 04 	be  40008260 <_Thread_Change_priority+0x1d4>   
40008254:	84 10 20 01 	mov  1, %g2                                    
    _Context_Switch_necessary = true;                                 
40008258:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
4000825c:	c4 28 62 3c 	stb  %g2, [ %g1 + 0x23c ]	! 4001da3c <_Context_Switch_necessary>
  _ISR_Enable( level );                                               
40008260:	7f ff e6 bf 	call  40001d5c <sparc_enable_interrupts>       
40008264:	81 e8 00 00 	restore                                        
40008268:	81 c7 e0 08 	ret                                            
4000826c:	81 e8 00 00 	restore                                        
                                                                      

40008270 <_Thread_Clear_state>: void _Thread_Clear_state( Thread_Control *the_thread, States_Control state ) {
40008270:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level       level;                                              
  States_Control  current_state;                                      
                                                                      
  _ISR_Disable( level );                                              
40008274:	7f ff e6 b6 	call  40001d4c <sparc_disable_interrupts>      
40008278:	a0 10 00 18 	mov  %i0, %l0                                  
4000827c:	b0 10 00 08 	mov  %o0, %i0                                  
    current_state = the_thread->current_state;                        
40008280:	c2 04 20 10 	ld  [ %l0 + 0x10 ], %g1                        
                                                                      
    if ( current_state & state ) {                                    
40008284:	80 8e 40 01 	btst  %i1, %g1                                 
40008288:	02 80 00 2d 	be  4000833c <_Thread_Clear_state+0xcc>        
4000828c:	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);                         
40008290:	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 ) ) {                      
40008294:	80 a6 60 00 	cmp  %i1, 0                                    
40008298:	12 80 00 29 	bne  4000833c <_Thread_Clear_state+0xcc>       
4000829c:	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;          
400082a0:	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);
400082a4:	c2 04 20 8c 	ld  [ %l0 + 0x8c ], %g1                        
400082a8:	c8 10 80 00 	lduh  [ %g2 ], %g4                             
400082ac:	c6 14 20 96 	lduh  [ %l0 + 0x96 ], %g3                      
400082b0:	86 11 00 03 	or  %g4, %g3, %g3                              
400082b4:	c6 30 80 00 	sth  %g3, [ %g2 ]                              
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
400082b8:	84 00 60 04 	add  %g1, 4, %g2                               
  _Priority_Major_bit_map  |= the_priority_map->ready_major;          
400082bc:	da 14 20 94 	lduh  [ %l0 + 0x94 ], %o5                      
400082c0:	c4 24 00 00 	st  %g2, [ %l0 ]                               
400082c4:	07 10 00 76 	sethi  %hi(0x4001d800), %g3                    
  old_last_node       = the_chain->last;                              
400082c8:	c4 00 60 08 	ld  [ %g1 + 8 ], %g2                           
400082cc:	c8 10 e2 20 	lduh  [ %g3 + 0x220 ], %g4                     
  the_chain->last     = the_node;                                     
400082d0:	e0 20 60 08 	st  %l0, [ %g1 + 8 ]                           
  old_last_node->next = the_node;                                     
  the_node->previous  = old_last_node;                                
400082d4:	c4 24 20 04 	st  %g2, [ %l0 + 4 ]                           
400082d8:	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;                                     
400082dc:	e0 20 80 00 	st  %l0, [ %g2 ]                               
400082e0:	c2 30 e2 20 	sth  %g1, [ %g3 + 0x220 ]                      
                                                                      
        _ISR_Flash( level );                                          
400082e4:	7f ff e6 9e 	call  40001d5c <sparc_enable_interrupts>       
400082e8:	01 00 00 00 	nop                                            
400082ec:	7f ff e6 98 	call  40001d4c <sparc_disable_interrupts>      
400082f0:	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 ) {
400082f4:	05 10 00 76 	sethi  %hi(0x4001d800), %g2                    
400082f8:	c6 00 a1 fc 	ld  [ %g2 + 0x1fc ], %g3	! 4001d9fc <_Thread_Heir>
400082fc:	c2 04 20 14 	ld  [ %l0 + 0x14 ], %g1                        
40008300:	c6 00 e0 14 	ld  [ %g3 + 0x14 ], %g3                        
40008304:	80 a0 40 03 	cmp  %g1, %g3                                  
40008308:	1a 80 00 0d 	bcc  4000833c <_Thread_Clear_state+0xcc>       
4000830c:	07 10 00 76 	sethi  %hi(0x4001d800), %g3                    
          _Thread_Heir = the_thread;                                  
          if ( _Thread_Executing->is_preemptible ||                   
40008310:	c6 00 e2 2c 	ld  [ %g3 + 0x22c ], %g3	! 4001da2c <_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;                                  
40008314:	e0 20 a1 fc 	st  %l0, [ %g2 + 0x1fc ]                       
          if ( _Thread_Executing->is_preemptible ||                   
40008318:	c4 08 e0 75 	ldub  [ %g3 + 0x75 ], %g2                      
4000831c:	80 a0 a0 00 	cmp  %g2, 0                                    
40008320:	12 80 00 05 	bne  40008334 <_Thread_Clear_state+0xc4>       
40008324:	84 10 20 01 	mov  1, %g2                                    
40008328:	80 a0 60 00 	cmp  %g1, 0                                    
4000832c:	12 80 00 04 	bne  4000833c <_Thread_Clear_state+0xcc>       <== ALWAYS TAKEN
40008330:	01 00 00 00 	nop                                            
               the_thread->current_priority == 0 )                    
            _Context_Switch_necessary = true;                         
40008334:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
40008338:	c4 28 62 3c 	stb  %g2, [ %g1 + 0x23c ]	! 4001da3c <_Context_Switch_necessary>
        }                                                             
      }                                                               
  }                                                                   
  _ISR_Enable( level );                                               
4000833c:	7f ff e6 88 	call  40001d5c <sparc_enable_interrupts>       
40008340:	81 e8 00 00 	restore                                        
                                                                      

400084c8 <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) {
400084c8:	9d e3 bf 98 	save  %sp, -104, %sp                           
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
                                                                      
  the_thread = _Thread_Get( id, &location );                          
400084cc:	90 10 00 18 	mov  %i0, %o0                                  
400084d0:	40 00 00 6c 	call  40008680 <_Thread_Get>                   
400084d4:	92 07 bf fc 	add  %fp, -4, %o1                              
  switch ( location ) {                                               
400084d8:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
400084dc:	80 a0 60 00 	cmp  %g1, 0                                    
400084e0:	12 80 00 08 	bne  40008500 <_Thread_Delay_ended+0x38>       <== NEVER TAKEN
400084e4:	13 04 00 00 	sethi  %hi(0x10000000), %o1                    
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
      break;                                                          
    case OBJECTS_LOCAL:                                               
      _Thread_Clear_state(                                            
400084e8:	7f ff ff 62 	call  40008270 <_Thread_Clear_state>           
400084ec:	92 12 60 18 	or  %o1, 0x18, %o1	! 10000018 <RAM_SIZE+0xfc00018>
400084f0:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
400084f4:	c4 00 61 70 	ld  [ %g1 + 0x170 ], %g2	! 4001d970 <_Thread_Dispatch_disable_level>
400084f8:	84 00 bf ff 	add  %g2, -1, %g2                              
400084fc:	c4 20 61 70 	st  %g2, [ %g1 + 0x170 ]                       
40008500:	81 c7 e0 08 	ret                                            
40008504:	81 e8 00 00 	restore                                        
                                                                      

40008508 <_Thread_Dispatch>: * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) {
40008508:	9d e3 bf 90 	save  %sp, -112, %sp                           
  Thread_Control   *executing;                                        
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
4000850c:	2d 10 00 76 	sethi  %hi(0x4001d800), %l6                    
  _ISR_Disable( level );                                              
40008510:	7f ff e6 0f 	call  40001d4c <sparc_disable_interrupts>      
40008514:	e0 05 a2 2c 	ld  [ %l6 + 0x22c ], %l0	! 4001da2c <_Thread_Executing>
  while ( _Context_Switch_necessary == true ) {                       
40008518:	2b 10 00 76 	sethi  %hi(0x4001d800), %l5                    
4000851c:	35 10 00 76 	sethi  %hi(0x4001d800), %i2                    
    heir = _Thread_Heir;                                              
40008520:	37 10 00 76 	sethi  %hi(0x4001d800), %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;            
40008524:	39 10 00 76 	sethi  %hi(0x4001d800), %i4                    
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
        _Timestamp_Subtract(                                          
40008528:	25 10 00 76 	sethi  %hi(0x4001d800), %l2                    
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
4000852c:	3b 10 00 76 	sethi  %hi(0x4001d800), %i5                    
  _ISR_Disable( level );                                              
  while ( _Context_Switch_necessary == true ) {                       
    heir = _Thread_Heir;                                              
    _Thread_Dispatch_disable_level = 1;                               
    _Context_Switch_necessary = false;                                
    _Thread_Executing = heir;                                         
40008530:	ac 15 a2 2c 	or  %l6, 0x22c, %l6                            
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Context_Switch_necessary == true ) {                       
40008534:	aa 15 62 3c 	or  %l5, 0x23c, %l5                            
    heir = _Thread_Heir;                                              
    _Thread_Dispatch_disable_level = 1;                               
40008538:	b4 16 a1 70 	or  %i2, 0x170, %i2                            
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Context_Switch_necessary == true ) {                       
    heir = _Thread_Heir;                                              
4000853c:	b6 16 e1 fc 	or  %i3, 0x1fc, %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;            
40008540:	b8 17 20 c8 	or  %i4, 0xc8, %i4                             
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
        _Timestamp_Subtract(                                          
40008544:	a4 14 a2 34 	or  %l2, 0x234, %l2                            
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
40008548:	ba 17 61 f8 	or  %i5, 0x1f8, %i5                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Context_Switch_necessary == true ) {                       
    heir = _Thread_Heir;                                              
    _Thread_Dispatch_disable_level = 1;                               
4000854c:	ae 10 20 01 	mov  1, %l7                                    
    _ISR_Enable( level );                                             
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
40008550:	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 ) {                       
40008554:	10 80 00 29 	b  400085f8 <_Thread_Dispatch+0xf0>            
40008558:	a6 07 bf f0 	add  %fp, -16, %l3                             
    heir = _Thread_Heir;                                              
    _Thread_Dispatch_disable_level = 1;                               
4000855c:	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 )
40008560:	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;                                
40008564:	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 )
40008568:	80 a0 60 01 	cmp  %g1, 1                                    
4000856c:	12 80 00 04 	bne  4000857c <_Thread_Dispatch+0x74>          
40008570:	e2 25 80 00 	st  %l1, [ %l6 ]                               
      heir->cpu_time_budget = _Thread_Ticks_per_timeslice;            
40008574:	c2 07 00 00 	ld  [ %i4 ], %g1                               
40008578:	c2 24 60 78 	st  %g1, [ %l1 + 0x78 ]                        
    _ISR_Enable( level );                                             
4000857c:	7f ff e5 f8 	call  40001d5c <sparc_enable_interrupts>       
40008580:	01 00 00 00 	nop                                            
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
40008584:	40 00 10 35 	call  4000c658 <_TOD_Get_uptime>               
40008588:	90 10 00 14 	mov  %l4, %o0                                  
        _Timestamp_Subtract(                                          
4000858c:	90 10 00 12 	mov  %l2, %o0                                  
40008590:	92 10 00 14 	mov  %l4, %o1                                  
40008594:	40 00 03 c2 	call  4000949c <_Timespec_Subtract>            
40008598:	94 10 00 13 	mov  %l3, %o2                                  
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
4000859c:	92 10 00 13 	mov  %l3, %o1                                  
400085a0:	40 00 03 a5 	call  40009434 <_Timespec_Add_to>              
400085a4:	90 04 20 84 	add  %l0, 0x84, %o0                            
        _Thread_Time_of_last_context_switch = uptime;                 
400085a8:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
400085ac:	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;                 
400085b0:	c4 24 80 00 	st  %g2, [ %l2 ]                               
400085b4:	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 );                
400085b8:	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;                 
400085bc:	c4 24 a0 04 	st  %g2, [ %l2 + 4 ]                           
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
400085c0:	80 a0 60 00 	cmp  %g1, 0                                    
400085c4:	02 80 00 06 	be  400085dc <_Thread_Dispatch+0xd4>           <== NEVER TAKEN
400085c8:	92 10 00 11 	mov  %l1, %o1                                  
      executing->libc_reent = *_Thread_libc_reent;                    
400085cc:	c4 00 40 00 	ld  [ %g1 ], %g2                               
400085d0:	c4 24 21 58 	st  %g2, [ %l0 + 0x158 ]                       
      *_Thread_libc_reent = heir->libc_reent;                         
400085d4:	c4 04 61 58 	ld  [ %l1 + 0x158 ], %g2                       
400085d8:	c4 20 40 00 	st  %g2, [ %g1 ]                               
    }                                                                 
                                                                      
    _User_extensions_Thread_switch( executing, heir );                
400085dc:	40 00 04 65 	call  40009770 <_User_extensions_Thread_switch>
400085e0:	01 00 00 00 	nop                                            
    if ( executing->fp_context != NULL )                              
      _Context_Save_fp( &executing->fp_context );                     
#endif                                                                
#endif                                                                
                                                                      
    _Context_Switch( &executing->Registers, &heir->Registers );       
400085e4:	90 04 20 d0 	add  %l0, 0xd0, %o0                            
400085e8:	40 00 05 59 	call  40009b4c <_CPU_Context_switch>           
400085ec:	92 04 60 d0 	add  %l1, 0xd0, %o1                            
#endif                                                                
#endif                                                                
                                                                      
    executing = _Thread_Executing;                                    
                                                                      
    _ISR_Disable( level );                                            
400085f0:	7f ff e5 d7 	call  40001d4c <sparc_disable_interrupts>      
400085f4:	e0 05 80 00 	ld  [ %l6 ], %l0                               
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Context_Switch_necessary == true ) {                       
400085f8:	c2 0d 40 00 	ldub  [ %l5 ], %g1                             
400085fc:	80 a0 60 00 	cmp  %g1, 0                                    
40008600:	32 bf ff d7 	bne,a   4000855c <_Thread_Dispatch+0x54>       
40008604:	e2 06 c0 00 	ld  [ %i3 ], %l1                               
    executing = _Thread_Executing;                                    
                                                                      
    _ISR_Disable( level );                                            
  }                                                                   
                                                                      
  _Thread_Dispatch_disable_level = 0;                                 
40008608:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
4000860c:	c0 20 61 70 	clr  [ %g1 + 0x170 ]	! 4001d970 <_Thread_Dispatch_disable_level>
                                                                      
  _ISR_Enable( level );                                               
40008610:	7f ff e5 d3 	call  40001d5c <sparc_enable_interrupts>       
40008614:	01 00 00 00 	nop                                            
                                                                      
  if ( _Thread_Do_post_task_switch_extension ||                       
40008618:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
4000861c:	c2 00 62 10 	ld  [ %g1 + 0x210 ], %g1	! 4001da10 <_Thread_Do_post_task_switch_extension>
40008620:	80 a0 60 00 	cmp  %g1, 0                                    
40008624:	12 80 00 06 	bne  4000863c <_Thread_Dispatch+0x134>         
40008628:	01 00 00 00 	nop                                            
       executing->do_post_task_switch_extension ) {                   
4000862c:	c2 0c 20 74 	ldub  [ %l0 + 0x74 ], %g1                      
40008630:	80 a0 60 00 	cmp  %g1, 0                                    
40008634:	02 80 00 04 	be  40008644 <_Thread_Dispatch+0x13c>          
40008638:	01 00 00 00 	nop                                            
    executing->do_post_task_switch_extension = false;                 
    _API_extensions_Run_postswitch();                                 
4000863c:	7f ff f9 de 	call  40006db4 <_API_extensions_Run_postswitch>
40008640:	c0 2c 20 74 	clrb  [ %l0 + 0x74 ]                           
40008644:	81 c7 e0 08 	ret                                            
40008648:	81 e8 00 00 	restore                                        
                                                                      

4000e808 <_Thread_Evaluate_mode>: bool _Thread_Evaluate_mode( void ) { Thread_Control *executing; executing = _Thread_Executing;
4000e808:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
4000e80c:	c2 00 62 2c 	ld  [ %g1 + 0x22c ], %g1	! 4001da2c <_Thread_Executing>
                                                                      
  if ( !_States_Is_ready( executing->current_state ) ||               
4000e810:	c4 00 60 10 	ld  [ %g1 + 0x10 ], %g2                        
4000e814:	80 a0 a0 00 	cmp  %g2, 0                                    
4000e818:	12 80 00 0b 	bne  4000e844 <_Thread_Evaluate_mode+0x3c>     <== NEVER TAKEN
4000e81c:	84 10 20 01 	mov  1, %g2                                    
4000e820:	05 10 00 76 	sethi  %hi(0x4001d800), %g2                    
4000e824:	c4 00 a1 fc 	ld  [ %g2 + 0x1fc ], %g2	! 4001d9fc <_Thread_Heir>
4000e828:	80 a0 40 02 	cmp  %g1, %g2                                  
4000e82c:	02 80 00 0b 	be  4000e858 <_Thread_Evaluate_mode+0x50>      
4000e830:	01 00 00 00 	nop                                            
       ( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) {
4000e834:	c2 08 60 75 	ldub  [ %g1 + 0x75 ], %g1                      
4000e838:	80 a0 60 00 	cmp  %g1, 0                                    
4000e83c:	02 80 00 07 	be  4000e858 <_Thread_Evaluate_mode+0x50>      <== NEVER TAKEN
4000e840:	84 10 20 01 	mov  1, %g2                                    
    _Context_Switch_necessary = true;                                 
4000e844:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
4000e848:	90 10 20 01 	mov  1, %o0                                    
4000e84c:	c4 28 62 3c 	stb  %g2, [ %g1 + 0x23c ]                      
    return true;                                                      
4000e850:	81 c3 e0 08 	retl                                           
4000e854:	01 00 00 00 	nop                                            
  }                                                                   
                                                                      
  return false;                                                       
}                                                                     
4000e858:	81 c3 e0 08 	retl                                           
4000e85c:	90 10 20 00 	clr  %o0	! 0 <PROM_START>                      
                                                                      

4000e860 <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) {
4000e860:	9d e3 bf a0 	save  %sp, -96, %sp                            
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    static char doneConstructors;                                     
    char doneCons;                                                    
  #endif                                                              
                                                                      
  executing = _Thread_Executing;                                      
4000e864:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
4000e868:	e0 00 62 2c 	ld  [ %g1 + 0x22c ], %l0	! 4001da2c <_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();                          
4000e86c:	3f 10 00 3a 	sethi  %hi(0x4000e800), %i7                    
4000e870:	be 17 e0 60 	or  %i7, 0x60, %i7	! 4000e860 <_Thread_Handler>
  /*                                                                  
   * have to put level into a register for those cpu's that use       
   * inline asm here                                                  
   */                                                                 
                                                                      
  level = executing->Start.isr_level;                                 
4000e874:	d0 04 20 b8 	ld  [ %l0 + 0xb8 ], %o0                        
  _ISR_Set_level(level);                                              
4000e878:	7f ff cd 39 	call  40001d5c <sparc_enable_interrupts>       
4000e87c:	91 2a 20 08 	sll  %o0, 8, %o0                               
                                                                      
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    doneCons = doneConstructors;                                      
4000e880:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
    doneConstructors = 1;                                             
4000e884:	84 10 20 01 	mov  1, %g2                                    
                                                                      
  level = executing->Start.isr_level;                                 
  _ISR_Set_level(level);                                              
                                                                      
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    doneCons = doneConstructors;                                      
4000e888:	e2 08 61 e8 	ldub  [ %g1 + 0x1e8 ], %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 );                         
4000e88c:	90 10 00 10 	mov  %l0, %o0                                  
4000e890:	7f ff eb 45 	call  400095a4 <_User_extensions_Thread_begin> 
4000e894:	c4 28 61 e8 	stb  %g2, [ %g1 + 0x1e8 ]                      
                                                                      
  /*                                                                  
   *  At this point, the dispatch disable level BETTER be 1.          
   */                                                                 
  _Thread_Enable_dispatch();                                          
4000e898:	7f ff e7 6d 	call  4000864c <_Thread_Enable_dispatch>       
4000e89c:	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) */ {                 
4000e8a0:	80 a4 60 00 	cmp  %l1, 0                                    
4000e8a4:	32 80 00 05 	bne,a   4000e8b8 <_Thread_Handler+0x58>        
4000e8a8:	c2 04 20 a0 	ld  [ %l0 + 0xa0 ], %g1                        
      INIT_NAME ();                                                   
4000e8ac:	40 00 39 43 	call  4001cdb8 <_init>                         
4000e8b0:	01 00 00 00 	nop                                            
    }                                                                 
  #endif                                                              
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
4000e8b4:	c2 04 20 a0 	ld  [ %l0 + 0xa0 ], %g1                        
4000e8b8:	80 a0 60 00 	cmp  %g1, 0                                    
4000e8bc:	12 80 00 05 	bne  4000e8d0 <_Thread_Handler+0x70>           
4000e8c0:	80 a0 60 01 	cmp  %g1, 1                                    
    executing->Wait.return_argument =                                 
      (*(Thread_Entry_numeric) executing->Start.entry_point)(         
4000e8c4:	c2 04 20 9c 	ld  [ %l0 + 0x9c ], %g1                        
4000e8c8:	10 80 00 06 	b  4000e8e0 <_Thread_Handler+0x80>             
4000e8cc:	d0 04 20 a8 	ld  [ %l0 + 0xa8 ], %o0                        
        executing->Start.numeric_argument                             
      );                                                              
  }                                                                   
  #if defined(RTEMS_POSIX_API)                                        
    else if ( executing->Start.prototype == THREAD_START_POINTER ) {  
4000e8d0:	12 80 00 07 	bne  4000e8ec <_Thread_Handler+0x8c>           <== NEVER TAKEN
4000e8d4:	01 00 00 00 	nop                                            
      executing->Wait.return_argument =                               
        (*(Thread_Entry_pointer) executing->Start.entry_point)(       
4000e8d8:	c2 04 20 9c 	ld  [ %l0 + 0x9c ], %g1                        
4000e8dc:	d0 04 20 a4 	ld  [ %l0 + 0xa4 ], %o0                        
4000e8e0:	9f c0 40 00 	call  %g1                                      
4000e8e4:	01 00 00 00 	nop                                            
        executing->Start.numeric_argument                             
      );                                                              
  }                                                                   
  #if defined(RTEMS_POSIX_API)                                        
    else if ( executing->Start.prototype == THREAD_START_POINTER ) {  
      executing->Wait.return_argument =                               
4000e8e8:	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 );                       
4000e8ec:	7f ff eb 3f 	call  400095e8 <_User_extensions_Thread_exitted>
4000e8f0:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
  _Internal_error_Occurred(                                           
4000e8f4:	90 10 20 00 	clr  %o0                                       
4000e8f8:	92 10 20 01 	mov  1, %o1                                    
4000e8fc:	7f ff e3 99 	call  40007760 <_Internal_error_Occurred>      
4000e900:	94 10 20 06 	mov  6, %o2                                    
                                                                      

4000872c <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) {
4000872c:	9d e3 bf a0 	save  %sp, -96, %sp                            
40008730:	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;                             
40008734:	c0 26 61 5c 	clr  [ %i1 + 0x15c ]                           
40008738:	c0 26 61 60 	clr  [ %i1 + 0x160 ]                           
4000873c:	c0 26 61 64 	clr  [ %i1 + 0x164 ]                           
                                                                      
  extensions_area = NULL;                                             
  the_thread->libc_reent = NULL;                                      
40008740:	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                          
)                                                                     
{                                                                     
40008744:	e2 00 40 00 	ld  [ %g1 ], %l1                               
    if ( !actual_stack_size || actual_stack_size < stack_size )       
      return false;                     /* stack allocation failed */ 
                                                                      
    stack = the_thread->Start.stack;                                  
  #else                                                               
    if ( !stack_area ) {                                              
40008748:	80 a6 a0 00 	cmp  %i2, 0                                    
  Thread_CPU_budget_algorithms          budget_algorithm,             
  Thread_CPU_budget_algorithm_callout   budget_callout,               
  uint32_t                              isr_level,                    
  Objects_Name                          name                          
)                                                                     
{                                                                     
4000874c:	e0 07 a0 60 	ld  [ %fp + 0x60 ], %l0                        
    if ( !actual_stack_size || actual_stack_size < stack_size )       
      return false;                     /* stack allocation failed */ 
                                                                      
    stack = the_thread->Start.stack;                                  
  #else                                                               
    if ( !stack_area ) {                                              
40008750:	12 80 00 0f 	bne  4000878c <_Thread_Initialize+0x60>        
40008754:	e4 0f a0 5f 	ldub  [ %fp + 0x5f ], %l2                      
      actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
40008758:	90 10 00 19 	mov  %i1, %o0                                  
4000875c:	40 00 02 99 	call  400091c0 <_Thread_Stack_Allocate>        
40008760:	92 10 00 1b 	mov  %i3, %o1                                  
      if ( !actual_stack_size || actual_stack_size < stack_size )     
40008764:	80 a2 00 1b 	cmp  %o0, %i3                                  
40008768:	0a 80 00 04 	bcs  40008778 <_Thread_Initialize+0x4c>        
4000876c:	80 a2 20 00 	cmp  %o0, 0                                    
40008770:	12 80 00 04 	bne  40008780 <_Thread_Initialize+0x54>        <== ALWAYS TAKEN
40008774:	82 10 20 01 	mov  1, %g1                                    
40008778:	81 c7 e0 08 	ret                                            
4000877c:	91 e8 20 00 	restore  %g0, 0, %o0                           
        return false;                     /* stack allocation failed */
                                                                      
      stack = the_thread->Start.stack;                                
40008780:	f4 06 60 cc 	ld  [ %i1 + 0xcc ], %i2                        
      the_thread->Start.core_allocated_stack = true;                  
40008784:	10 80 00 04 	b  40008794 <_Thread_Initialize+0x68>          
40008788:	c2 2e 60 c0 	stb  %g1, [ %i1 + 0xc0 ]                       
    } else {                                                          
      stack = stack_area;                                             
      actual_stack_size = stack_size;                                 
      the_thread->Start.core_allocated_stack = false;                 
4000878c:	c0 2e 60 c0 	clrb  [ %i1 + 0xc0 ]                           
40008790:	90 10 00 1b 	mov  %i3, %o0                                  
  #endif                                                              
                                                                      
  /*                                                                  
   *  Allocate the extensions area for this thread                    
   */                                                                 
  if ( _Thread_Maximum_extensions ) {                                 
40008794:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
40008798:	c2 00 62 0c 	ld  [ %g1 + 0x20c ], %g1	! 4001da0c <_Thread_Maximum_extensions>
  Stack_Control *the_stack,                                           
  void          *starting_address,                                    
  size_t         size                                                 
)                                                                     
{                                                                     
  the_stack->area = starting_address;                                 
4000879c:	f4 26 60 c8 	st  %i2, [ %i1 + 0xc8 ]                        
  the_stack->size = size;                                             
400087a0:	d0 26 60 c4 	st  %o0, [ %i1 + 0xc4 ]                        
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
400087a4:	c0 26 60 50 	clr  [ %i1 + 0x50 ]                            
  the_watchdog->routine   = routine;                                  
400087a8:	c0 26 60 64 	clr  [ %i1 + 0x64 ]                            
  the_watchdog->id        = id;                                       
400087ac:	c0 26 60 68 	clr  [ %i1 + 0x68 ]                            
  the_watchdog->user_data = user_data;                                
400087b0:	c0 26 60 6c 	clr  [ %i1 + 0x6c ]                            
400087b4:	80 a0 60 00 	cmp  %g1, 0                                    
400087b8:	02 80 00 08 	be  400087d8 <_Thread_Initialize+0xac>         
400087bc:	b6 10 20 00 	clr  %i3                                       
    extensions_area = _Workspace_Allocate(                            
400087c0:	82 00 60 01 	inc  %g1                                       
400087c4:	40 00 04 b9 	call  40009aa8 <_Workspace_Allocate>           
400087c8:	91 28 60 02 	sll  %g1, 2, %o0                               
      (_Thread_Maximum_extensions + 1) * sizeof( void * )             
    );                                                                
    if ( !extensions_area )                                           
400087cc:	b6 92 20 00 	orcc  %o0, 0, %i3                              
400087d0:	22 80 00 31 	be,a   40008894 <_Thread_Initialize+0x168>     
400087d4:	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 ) {                                     
400087d8:	80 a6 e0 00 	cmp  %i3, 0                                    
400087dc:	02 80 00 0c 	be  4000880c <_Thread_Initialize+0xe0>         
400087e0:	f6 26 61 68 	st  %i3, [ %i1 + 0x168 ]                       
    for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )              
400087e4:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
400087e8:	c4 00 62 0c 	ld  [ %g1 + 0x20c ], %g2	! 4001da0c <_Thread_Maximum_extensions>
400087ec:	10 80 00 05 	b  40008800 <_Thread_Initialize+0xd4>          
400087f0:	82 10 20 00 	clr  %g1                                       
      the_thread->extensions[i] = NULL;                               
400087f4:	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++ )              
400087f8:	82 00 60 01 	inc  %g1                                       
      the_thread->extensions[i] = NULL;                               
400087fc:	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++ )              
40008800:	80 a0 40 02 	cmp  %g1, %g2                                  
40008804:	28 bf ff fc 	bleu,a   400087f4 <_Thread_Initialize+0xc8>    
40008808:	c8 06 61 68 	ld  [ %i1 + 0x168 ], %g4                       
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
  the_thread->Start.budget_algorithm = budget_algorithm;              
  the_thread->Start.budget_callout   = budget_callout;                
4000880c:	c2 07 a0 64 	ld  [ %fp + 0x64 ], %g1                        
                                                                      
  /*                                                                  
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
40008810:	e4 2e 60 ac 	stb  %l2, [ %i1 + 0xac ]                       
  the_thread->Start.budget_algorithm = budget_algorithm;              
  the_thread->Start.budget_callout   = budget_callout;                
40008814:	c2 26 60 b4 	st  %g1, [ %i1 + 0xb4 ]                        
                                                                      
  switch ( budget_algorithm ) {                                       
40008818:	80 a4 20 02 	cmp  %l0, 2                                    
4000881c:	12 80 00 05 	bne  40008830 <_Thread_Initialize+0x104>       
40008820:	e0 26 60 b0 	st  %l0, [ %i1 + 0xb0 ]                        
    case THREAD_CPU_BUDGET_ALGORITHM_NONE:                            
    case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE:                 
      break;                                                          
    #if defined(RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE)          
      case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE:             
        the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;    
40008824:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
40008828:	c2 00 60 c8 	ld  [ %g1 + 0xc8 ], %g1	! 4001d8c8 <_Thread_Ticks_per_timeslice>
4000882c:	c2 26 60 78 	st  %g1, [ %i1 + 0x78 ]                        
      case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:                       
	break;                                                               
    #endif                                                            
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
40008830:	c2 07 a0 68 	ld  [ %fp + 0x68 ], %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 );                       
40008834:	92 10 00 1d 	mov  %i5, %o1                                  
      case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:                       
	break;                                                               
    #endif                                                            
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
40008838:	c2 26 60 b8 	st  %g1, [ %i1 + 0xb8 ]                        
                                                                      
  the_thread->current_state           = STATES_DORMANT;               
4000883c:	82 10 20 01 	mov  1, %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 );                       
40008840:	90 10 00 19 	mov  %i1, %o0                                  
    #endif                                                            
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
                                                                      
  the_thread->current_state           = STATES_DORMANT;               
40008844:	c2 26 60 10 	st  %g1, [ %i1 + 0x10 ]                        
  the_thread->Wait.queue              = NULL;                         
40008848:	c0 26 60 44 	clr  [ %i1 + 0x44 ]                            
  the_thread->resource_count          = 0;                            
4000884c:	c0 26 60 1c 	clr  [ %i1 + 0x1c ]                            
  #if defined(RTEMS_ITRON_API)                                        
    the_thread->suspend_count         = 0;                            
  #endif                                                              
  the_thread->real_priority           = priority;                     
40008850:	fa 26 60 18 	st  %i5, [ %i1 + 0x18 ]                        
  the_thread->Start.initial_priority  = priority;                     
  _Thread_Set_priority( the_thread, priority );                       
40008854:	40 00 01 b9 	call  40008f38 <_Thread_Set_priority>          
40008858:	fa 26 60 bc 	st  %i5, [ %i1 + 0xbc ]                        
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
4000885c:	c2 16 60 0a 	lduh  [ %i1 + 0xa ], %g1                       
40008860:	c4 06 20 1c 	ld  [ %i0 + 0x1c ], %g2                        
40008864:	83 28 60 02 	sll  %g1, 2, %g1                               
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
40008868:	e2 26 60 0c 	st  %l1, [ %i1 + 0xc ]                         
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
4000886c:	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 );             
40008870:	c0 26 60 84 	clr  [ %i1 + 0x84 ]                            
40008874:	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 );    
40008878:	90 10 00 19 	mov  %i1, %o0                                  
4000887c:	40 00 03 7f 	call  40009678 <_User_extensions_Thread_create>
40008880:	b0 10 20 01 	mov  1, %i0                                    
  if ( extension_status )                                             
40008884:	80 8a 20 ff 	btst  0xff, %o0                                
40008888:	12 80 00 22 	bne  40008910 <_Thread_Initialize+0x1e4>       
4000888c:	01 00 00 00 	nop                                            
    return true;                                                      
                                                                      
failed:                                                               
  if ( the_thread->libc_reent )                                       
40008890:	d0 06 61 58 	ld  [ %i1 + 0x158 ], %o0                       
40008894:	80 a2 20 00 	cmp  %o0, 0                                    
40008898:	22 80 00 05 	be,a   400088ac <_Thread_Initialize+0x180>     
4000889c:	d0 06 61 5c 	ld  [ %i1 + 0x15c ], %o0                       
    _Workspace_Free( the_thread->libc_reent );                        
400088a0:	40 00 04 8b 	call  40009acc <_Workspace_Free>               
400088a4:	01 00 00 00 	nop                                            
                                                                      
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    if ( the_thread->API_Extensions[i] )                              
400088a8:	d0 06 61 5c 	ld  [ %i1 + 0x15c ], %o0                       
400088ac:	80 a2 20 00 	cmp  %o0, 0                                    
400088b0:	22 80 00 05 	be,a   400088c4 <_Thread_Initialize+0x198>     
400088b4:	d0 06 61 60 	ld  [ %i1 + 0x160 ], %o0                       
      _Workspace_Free( the_thread->API_Extensions[i] );               
400088b8:	40 00 04 85 	call  40009acc <_Workspace_Free>               
400088bc:	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] )                              
400088c0:	d0 06 61 60 	ld  [ %i1 + 0x160 ], %o0                       
400088c4:	80 a2 20 00 	cmp  %o0, 0                                    
400088c8:	22 80 00 05 	be,a   400088dc <_Thread_Initialize+0x1b0>     
400088cc:	d0 06 61 64 	ld  [ %i1 + 0x164 ], %o0                       
      _Workspace_Free( the_thread->API_Extensions[i] );               
400088d0:	40 00 04 7f 	call  40009acc <_Workspace_Free>               
400088d4:	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] )                              
400088d8:	d0 06 61 64 	ld  [ %i1 + 0x164 ], %o0                       
400088dc:	80 a2 20 00 	cmp  %o0, 0                                    
400088e0:	02 80 00 05 	be  400088f4 <_Thread_Initialize+0x1c8>        <== ALWAYS TAKEN
400088e4:	80 a6 e0 00 	cmp  %i3, 0                                    
      _Workspace_Free( the_thread->API_Extensions[i] );               
400088e8:	40 00 04 79 	call  40009acc <_Workspace_Free>               <== NOT EXECUTED
400088ec:	01 00 00 00 	nop                                            <== NOT EXECUTED
                                                                      
  if ( extensions_area )                                              
400088f0:	80 a6 e0 00 	cmp  %i3, 0                                    <== NOT EXECUTED
400088f4:	02 80 00 05 	be  40008908 <_Thread_Initialize+0x1dc>        
400088f8:	90 10 00 19 	mov  %i1, %o0                                  
    (void) _Workspace_Free( extensions_area );                        
400088fc:	40 00 04 74 	call  40009acc <_Workspace_Free>               
40008900:	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 );                                  
40008904:	90 10 00 19 	mov  %i1, %o0                                  
40008908:	40 00 02 45 	call  4000921c <_Thread_Stack_Free>            
4000890c:	b0 10 20 00 	clr  %i0                                       
  return false;                                                       
                                                                      
                                                                      
}                                                                     
40008910:	81 c7 e0 08 	ret                                            
40008914:	81 e8 00 00 	restore                                        
                                                                      

4000d344 <_Thread_Resume>: void _Thread_Resume( Thread_Control *the_thread, bool force ) {
4000d344:	9d e3 bf a0 	save  %sp, -96, %sp                            
                                                                      
  ISR_Level       level;                                              
  States_Control  current_state;                                      
                                                                      
  _ISR_Disable( level );                                              
4000d348:	7f ff d2 d5 	call  40001e9c <sparc_disable_interrupts>      
4000d34c:	a0 10 00 18 	mov  %i0, %l0                                  
4000d350:	b0 10 00 08 	mov  %o0, %i0                                  
      _ISR_Enable( level );                                           
      return;                                                         
    }                                                                 
  #endif                                                              
                                                                      
  current_state = the_thread->current_state;                          
4000d354:	c2 04 20 10 	ld  [ %l0 + 0x10 ], %g1                        
  if ( current_state & STATES_SUSPENDED ) {                           
4000d358:	80 88 60 02 	btst  2, %g1                                   
4000d35c:	02 80 00 2c 	be  4000d40c <_Thread_Resume+0xc8>             <== NEVER TAKEN
4000d360:	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 ) ) {                        
4000d364:	80 a0 60 00 	cmp  %g1, 0                                    
4000d368:	12 80 00 29 	bne  4000d40c <_Thread_Resume+0xc8>            
4000d36c:	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;          
4000d370:	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);
4000d374:	c2 04 20 8c 	ld  [ %l0 + 0x8c ], %g1                        
4000d378:	c8 10 80 00 	lduh  [ %g2 ], %g4                             
4000d37c:	c6 14 20 96 	lduh  [ %l0 + 0x96 ], %g3                      
4000d380:	86 11 00 03 	or  %g4, %g3, %g3                              
4000d384:	c6 30 80 00 	sth  %g3, [ %g2 ]                              
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
4000d388:	84 00 60 04 	add  %g1, 4, %g2                               
  _Priority_Major_bit_map  |= the_priority_map->ready_major;          
4000d38c:	da 14 20 94 	lduh  [ %l0 + 0x94 ], %o5                      
4000d390:	c4 24 00 00 	st  %g2, [ %l0 ]                               
4000d394:	07 10 00 8f 	sethi  %hi(0x40023c00), %g3                    
  old_last_node       = the_chain->last;                              
4000d398:	c4 00 60 08 	ld  [ %g1 + 8 ], %g2                           
4000d39c:	c8 10 e0 10 	lduh  [ %g3 + 0x10 ], %g4                      
  the_chain->last     = the_node;                                     
4000d3a0:	e0 20 60 08 	st  %l0, [ %g1 + 8 ]                           
  old_last_node->next = the_node;                                     
  the_node->previous  = old_last_node;                                
4000d3a4:	c4 24 20 04 	st  %g2, [ %l0 + 4 ]                           
4000d3a8:	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;                                     
4000d3ac:	e0 20 80 00 	st  %l0, [ %g2 ]                               
4000d3b0:	c2 30 e0 10 	sth  %g1, [ %g3 + 0x10 ]                       
                                                                      
      _ISR_Flash( level );                                            
4000d3b4:	7f ff d2 be 	call  40001eac <sparc_enable_interrupts>       
4000d3b8:	01 00 00 00 	nop                                            
4000d3bc:	7f ff d2 b8 	call  40001e9c <sparc_disable_interrupts>      
4000d3c0:	01 00 00 00 	nop                                            
                                                                      
      if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
4000d3c4:	05 10 00 8e 	sethi  %hi(0x40023800), %g2                    
4000d3c8:	c6 00 a3 ec 	ld  [ %g2 + 0x3ec ], %g3	! 40023bec <_Thread_Heir>
4000d3cc:	c2 04 20 14 	ld  [ %l0 + 0x14 ], %g1                        
4000d3d0:	c6 00 e0 14 	ld  [ %g3 + 0x14 ], %g3                        
4000d3d4:	80 a0 40 03 	cmp  %g1, %g3                                  
4000d3d8:	1a 80 00 0d 	bcc  4000d40c <_Thread_Resume+0xc8>            
4000d3dc:	07 10 00 8f 	sethi  %hi(0x40023c00), %g3                    
        _Thread_Heir = the_thread;                                    
        if ( _Thread_Executing->is_preemptible ||                     
4000d3e0:	c6 00 e0 1c 	ld  [ %g3 + 0x1c ], %g3	! 40023c1c <_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;                                    
4000d3e4:	e0 20 a3 ec 	st  %l0, [ %g2 + 0x3ec ]                       
        if ( _Thread_Executing->is_preemptible ||                     
4000d3e8:	c4 08 e0 75 	ldub  [ %g3 + 0x75 ], %g2                      
4000d3ec:	80 a0 a0 00 	cmp  %g2, 0                                    
4000d3f0:	12 80 00 05 	bne  4000d404 <_Thread_Resume+0xc0>            
4000d3f4:	84 10 20 01 	mov  1, %g2                                    
4000d3f8:	80 a0 60 00 	cmp  %g1, 0                                    
4000d3fc:	12 80 00 04 	bne  4000d40c <_Thread_Resume+0xc8>            <== ALWAYS TAKEN
4000d400:	01 00 00 00 	nop                                            
             the_thread->current_priority == 0 )                      
          _Context_Switch_necessary = true;                           
4000d404:	03 10 00 8f 	sethi  %hi(0x40023c00), %g1                    
4000d408:	c4 28 60 2c 	stb  %g2, [ %g1 + 0x2c ]	! 40023c2c <_Context_Switch_necessary>
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
4000d40c:	7f ff d2 a8 	call  40001eac <sparc_enable_interrupts>       
4000d410:	81 e8 00 00 	restore                                        
                                                                      

400092e8 <_Thread_Tickle_timeslice>: * * Output parameters: NONE */ void _Thread_Tickle_timeslice( void ) {
400092e8:	9d e3 bf a0 	save  %sp, -96, %sp                            
  Thread_Control *executing;                                          
                                                                      
  executing = _Thread_Executing;                                      
400092ec:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
400092f0:	e0 00 62 2c 	ld  [ %g1 + 0x22c ], %l0	! 4001da2c <_Thread_Executing>
  /*                                                                  
   *  If the thread is not preemptible or is not ready, then          
   *  just return.                                                    
   */                                                                 
                                                                      
  if ( !executing->is_preemptible )                                   
400092f4:	c2 0c 20 75 	ldub  [ %l0 + 0x75 ], %g1                      
400092f8:	80 a0 60 00 	cmp  %g1, 0                                    
400092fc:	02 80 00 23 	be  40009388 <_Thread_Tickle_timeslice+0xa0>   
40009300:	01 00 00 00 	nop                                            
    return;                                                           
                                                                      
  if ( !_States_Is_ready( executing->current_state ) )                
40009304:	c2 04 20 10 	ld  [ %l0 + 0x10 ], %g1                        
40009308:	80 a0 60 00 	cmp  %g1, 0                                    
4000930c:	12 80 00 1f 	bne  40009388 <_Thread_Tickle_timeslice+0xa0>  
40009310:	01 00 00 00 	nop                                            
                                                                      
  /*                                                                  
   *  The cpu budget algorithm determines what happens next.          
   */                                                                 
                                                                      
  switch ( executing->budget_algorithm ) {                            
40009314:	c2 04 20 7c 	ld  [ %l0 + 0x7c ], %g1                        
40009318:	80 a0 60 01 	cmp  %g1, 1                                    
4000931c:	0a 80 00 12 	bcs  40009364 <_Thread_Tickle_timeslice+0x7c>  
40009320:	80 a0 60 02 	cmp  %g1, 2                                    
40009324:	28 80 00 07 	bleu,a   40009340 <_Thread_Tickle_timeslice+0x58>
40009328:	c2 04 20 78 	ld  [ %l0 + 0x78 ], %g1                        
4000932c:	80 a0 60 03 	cmp  %g1, 3                                    
40009330:	12 80 00 16 	bne  40009388 <_Thread_Tickle_timeslice+0xa0>  <== NEVER TAKEN
40009334:	01 00 00 00 	nop                                            
      }                                                               
      break;                                                          
                                                                      
    #if defined(RTEMS_SCORE_THREAD_ENABLE_SCHEDULER_CALLOUT)          
      case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:                       
	if ( --executing->cpu_time_budget == 0 )                             
40009338:	10 80 00 0d 	b  4000936c <_Thread_Tickle_timeslice+0x84>    
4000933c:	c2 04 20 78 	ld  [ %l0 + 0x78 ], %g1                        
                                                                      
    case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE:                 
    #if defined(RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE)          
      case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE:             
    #endif                                                            
      if ( (int)(--executing->cpu_time_budget) <= 0 ) {               
40009340:	82 00 7f ff 	add  %g1, -1, %g1                              
40009344:	80 a0 60 00 	cmp  %g1, 0                                    
40009348:	14 80 00 07 	bg  40009364 <_Thread_Tickle_timeslice+0x7c>   
4000934c:	c2 24 20 78 	st  %g1, [ %l0 + 0x78 ]                        
        _Thread_Reset_timeslice();                                    
40009350:	40 00 0e e9 	call  4000cef4 <_Thread_Reset_timeslice>       
40009354:	01 00 00 00 	nop                                            
        executing->cpu_time_budget = _Thread_Ticks_per_timeslice;     
40009358:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
4000935c:	c2 00 60 c8 	ld  [ %g1 + 0xc8 ], %g1	! 4001d8c8 <_Thread_Ticks_per_timeslice>
40009360:	c2 24 20 78 	st  %g1, [ %l0 + 0x78 ]                        
40009364:	81 c7 e0 08 	ret                                            
40009368:	81 e8 00 00 	restore                                        
      }                                                               
      break;                                                          
                                                                      
    #if defined(RTEMS_SCORE_THREAD_ENABLE_SCHEDULER_CALLOUT)          
      case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:                       
	if ( --executing->cpu_time_budget == 0 )                             
4000936c:	82 00 7f ff 	add  %g1, -1, %g1                              
40009370:	80 a0 60 00 	cmp  %g1, 0                                    
40009374:	12 bf ff fc 	bne  40009364 <_Thread_Tickle_timeslice+0x7c>  
40009378:	c2 24 20 78 	st  %g1, [ %l0 + 0x78 ]                        
	  (*executing->budget_callout)( executing );                         
4000937c:	c2 04 20 80 	ld  [ %l0 + 0x80 ], %g1                        
40009380:	9f c0 40 00 	call  %g1                                      
40009384:	90 10 00 10 	mov  %l0, %o0                                  
40009388:	81 c7 e0 08 	ret                                            
4000938c:	81 e8 00 00 	restore                                        
                                                                      

40009390 <_Thread_Yield_processor>: * ready chain * select heir */ void _Thread_Yield_processor( void ) {
40009390:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level       level;                                              
  Thread_Control *executing;                                          
  Chain_Control  *ready;                                              
                                                                      
  executing = _Thread_Executing;                                      
40009394:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
40009398:	e0 00 62 2c 	ld  [ %g1 + 0x22c ], %l0	! 4001da2c <_Thread_Executing>
  ready     = executing->ready;                                       
  _ISR_Disable( level );                                              
4000939c:	7f ff e2 6c 	call  40001d4c <sparc_disable_interrupts>      
400093a0:	e2 04 20 8c 	ld  [ %l0 + 0x8c ], %l1                        
400093a4:	b0 10 00 08 	mov  %o0, %i0                                  
    if ( !_Chain_Has_only_one_node( ready ) ) {                       
400093a8:	c4 04 40 00 	ld  [ %l1 ], %g2                               
400093ac:	c2 04 60 08 	ld  [ %l1 + 8 ], %g1                           
400093b0:	80 a0 80 01 	cmp  %g2, %g1                                  
400093b4:	02 80 00 17 	be  40009410 <_Thread_Yield_processor+0x80>    
400093b8:	25 10 00 76 	sethi  %hi(0x4001d800), %l2                    
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
400093bc:	c2 04 00 00 	ld  [ %l0 ], %g1                               
  previous       = the_node->previous;                                
400093c0:	c4 04 20 04 	ld  [ %l0 + 4 ], %g2                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
400093c4:	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;                                              
400093c8:	c2 20 80 00 	st  %g1, [ %g2 ]                               
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *old_last_node;                                          
                                                                      
  the_node->next      = _Chain_Tail(the_chain);                       
400093cc:	c6 24 00 00 	st  %g3, [ %l0 ]                               
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
  next->previous = previous;                                          
400093d0:	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;                              
400093d4:	c2 04 60 08 	ld  [ %l1 + 8 ], %g1                           
  the_chain->last     = the_node;                                     
400093d8:	e0 24 60 08 	st  %l0, [ %l1 + 8 ]                           
  old_last_node->next = the_node;                                     
  the_node->previous  = old_last_node;                                
400093dc:	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;                                     
400093e0:	e0 20 40 00 	st  %l0, [ %g1 ]                               
      _Chain_Extract_unprotected( &executing->Object.Node );          
      _Chain_Append_unprotected( ready, &executing->Object.Node );    
                                                                      
      _ISR_Flash( level );                                            
400093e4:	7f ff e2 5e 	call  40001d5c <sparc_enable_interrupts>       
400093e8:	01 00 00 00 	nop                                            
400093ec:	7f ff e2 58 	call  40001d4c <sparc_disable_interrupts>      
400093f0:	01 00 00 00 	nop                                            
                                                                      
      if ( _Thread_Is_heir( executing ) )                             
400093f4:	c2 04 a1 fc 	ld  [ %l2 + 0x1fc ], %g1                       
400093f8:	80 a4 00 01 	cmp  %l0, %g1                                  
400093fc:	12 80 00 09 	bne  40009420 <_Thread_Yield_processor+0x90>   <== NEVER TAKEN
40009400:	84 10 20 01 	mov  1, %g2                                    
        _Thread_Heir = (Thread_Control *) ready->first;               
40009404:	c2 04 40 00 	ld  [ %l1 ], %g1                               
40009408:	10 80 00 06 	b  40009420 <_Thread_Yield_processor+0x90>     
4000940c:	c2 24 a1 fc 	st  %g1, [ %l2 + 0x1fc ]                       
      _Context_Switch_necessary = true;                               
    }                                                                 
    else if ( !_Thread_Is_heir( executing ) )                         
40009410:	c2 04 a1 fc 	ld  [ %l2 + 0x1fc ], %g1                       
40009414:	80 a4 00 01 	cmp  %l0, %g1                                  
40009418:	02 80 00 04 	be  40009428 <_Thread_Yield_processor+0x98>    <== ALWAYS TAKEN
4000941c:	84 10 20 01 	mov  1, %g2                                    
      _Context_Switch_necessary = true;                               
40009420:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
40009424:	c4 28 62 3c 	stb  %g2, [ %g1 + 0x23c ]	! 4001da3c <_Context_Switch_necessary>
                                                                      
  _ISR_Enable( level );                                               
40009428:	7f ff e2 4d 	call  40001d5c <sparc_enable_interrupts>       
4000942c:	81 e8 00 00 	restore                                        
                                                                      

40008c2c <_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 ) {
40008c2c:	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;                        
40008c30:	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);                 
40008c34:	82 06 60 3c 	add  %i1, 0x3c, %g1                            
  the_chain->permanent_null = NULL;                                   
40008c38:	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);                 
40008c3c:	c2 26 60 38 	st  %g1, [ %i1 + 0x38 ]                        
  the_chain->permanent_null = NULL;                                   
  the_chain->last           = _Chain_Head(the_chain);                 
40008c40:	82 06 60 38 	add  %i1, 0x38, %g1                            
40008c44:	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;                         
40008c48:	2d 10 00 73 	sethi  %hi(0x4001cc00), %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 ];  
40008c4c:	83 34 20 06 	srl  %l0, 6, %g1                               
  block_state  = the_thread_queue->state;                             
                                                                      
  if ( _Thread_queue_Is_reverse_search( priority ) )                  
40008c50:	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 ];  
40008c54:	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;                         
40008c58:	ac 15 a2 b4 	or  %l6, 0x2b4, %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 ];  
40008c5c:	83 28 60 02 	sll  %g1, 2, %g1                               
  block_state  = the_thread_queue->state;                             
40008c60:	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 ];  
40008c64:	a6 24 c0 01 	sub  %l3, %g1, %l3                             
  block_state  = the_thread_queue->state;                             
                                                                      
  if ( _Thread_queue_Is_reverse_search( priority ) )                  
40008c68:	12 80 00 28 	bne  40008d08 <_Thread_queue_Enqueue_priority+0xdc>
40008c6c:	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;                  
40008c70:	ac 04 e0 04 	add  %l3, 4, %l6                               
    goto restart_reverse_search;                                      
                                                                      
restart_forward_search:                                               
  search_priority = PRIORITY_MINIMUM - 1;                             
  _ISR_Disable( level );                                              
40008c74:	7f ff e4 36 	call  40001d4c <sparc_disable_interrupts>      
40008c78:	01 00 00 00 	nop                                            
40008c7c:	a4 10 00 08 	mov  %o0, %l2                                  
  search_thread = (Thread_Control *) header->first;                   
40008c80:	a8 10 3f ff 	mov  -1, %l4                                   
  while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {  
40008c84:	10 80 00 10 	b  40008cc4 <_Thread_queue_Enqueue_priority+0x98>
40008c88:	e2 04 c0 00 	ld  [ %l3 ], %l1                               
    search_priority = search_thread->current_priority;                
    if ( priority <= search_priority )                                
40008c8c:	80 a4 00 14 	cmp  %l0, %l4                                  
40008c90:	28 80 00 11 	bleu,a   40008cd4 <_Thread_queue_Enqueue_priority+0xa8>
40008c94:	c2 06 20 30 	ld  [ %i0 + 0x30 ], %g1                        
      break;                                                          
    search_priority = search_thread->current_priority;                
    if ( priority <= search_priority )                                
      break;                                                          
#endif                                                                
    _ISR_Flash( level );                                              
40008c98:	7f ff e4 31 	call  40001d5c <sparc_enable_interrupts>       
40008c9c:	90 10 00 12 	mov  %l2, %o0                                  
40008ca0:	7f ff e4 2b 	call  40001d4c <sparc_disable_interrupts>      
40008ca4:	01 00 00 00 	nop                                            
    if ( !_States_Are_set( search_thread->current_state, block_state) ) {
40008ca8:	c2 04 60 10 	ld  [ %l1 + 0x10 ], %g1                        
40008cac:	80 8d 40 01 	btst  %l5, %g1                                 
40008cb0:	32 80 00 05 	bne,a   40008cc4 <_Thread_queue_Enqueue_priority+0x98><== ALWAYS TAKEN
40008cb4:	e2 04 40 00 	ld  [ %l1 ], %l1                               
      _ISR_Enable( level );                                           
40008cb8:	7f ff e4 29 	call  40001d5c <sparc_enable_interrupts>       <== NOT EXECUTED
40008cbc:	90 10 00 12 	mov  %l2, %o0                                  <== NOT EXECUTED
      goto restart_forward_search;                                    
40008cc0:	30 bf ff ed 	b,a   40008c74 <_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 ) ) {  
40008cc4:	80 a4 40 16 	cmp  %l1, %l6                                  
40008cc8:	32 bf ff f1 	bne,a   40008c8c <_Thread_queue_Enqueue_priority+0x60>
40008ccc:	e8 04 60 14 	ld  [ %l1 + 0x14 ], %l4                        
    }                                                                 
    search_thread =                                                   
       (Thread_Control *)search_thread->Object.Node.next;             
  }                                                                   
                                                                      
  if ( the_thread_queue->sync_state !=                                
40008cd0:	c2 06 20 30 	ld  [ %i0 + 0x30 ], %g1                        
40008cd4:	80 a0 60 01 	cmp  %g1, 1                                    
40008cd8:	12 80 00 3c 	bne  40008dc8 <_Thread_queue_Enqueue_priority+0x19c>
40008cdc:	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 )                                  
40008ce0:	80 a4 00 14 	cmp  %l0, %l4                                  
40008ce4:	02 80 00 2e 	be  40008d9c <_Thread_queue_Enqueue_priority+0x170>
40008ce8:	c0 26 20 30 	clr  [ %i0 + 0x30 ]                            
    goto equal_priority;                                              
                                                                      
  search_node   = (Chain_Node *) search_thread;                       
  previous_node = search_node->previous;                              
40008cec:	c2 04 60 04 	ld  [ %l1 + 4 ], %g1                           
  the_node      = (Chain_Node *) the_thread;                          
                                                                      
  the_node->next         = search_node;                               
40008cf0:	e2 26 40 00 	st  %l1, [ %i1 ]                               
  the_node->previous     = previous_node;                             
40008cf4:	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;                          
40008cf8:	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;                                  
40008cfc:	f2 20 40 00 	st  %i1, [ %g1 ]                               
  search_node->previous  = the_node;                                  
40008d00:	f2 24 60 04 	st  %i1, [ %l1 + 4 ]                           
  the_thread->Wait.queue = the_thread_queue;                          
  _ISR_Enable( level );                                               
40008d04:	30 80 00 2d 	b,a   40008db8 <_Thread_queue_Enqueue_priority+0x18c>
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
                                                                      
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
                                                                      
  _ISR_Disable( level );                                              
40008d08:	7f ff e4 11 	call  40001d4c <sparc_disable_interrupts>      
40008d0c:	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;                         
40008d10:	a8 05 20 01 	inc  %l4                                       
                                                                      
  _ISR_Disable( level );                                              
40008d14:	a4 10 00 08 	mov  %o0, %l2                                  
  search_thread = (Thread_Control *) header->last;                    
  while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {  
40008d18:	10 80 00 10 	b  40008d58 <_Thread_queue_Enqueue_priority+0x12c>
40008d1c:	e2 04 e0 08 	ld  [ %l3 + 8 ], %l1                           
    search_priority = search_thread->current_priority;                
    if ( priority >= search_priority )                                
40008d20:	80 a4 00 14 	cmp  %l0, %l4                                  
40008d24:	3a 80 00 11 	bcc,a   40008d68 <_Thread_queue_Enqueue_priority+0x13c>
40008d28:	c2 06 20 30 	ld  [ %i0 + 0x30 ], %g1                        
      break;                                                          
    search_priority = search_thread->current_priority;                
    if ( priority >= search_priority )                                
      break;                                                          
#endif                                                                
    _ISR_Flash( level );                                              
40008d2c:	7f ff e4 0c 	call  40001d5c <sparc_enable_interrupts>       
40008d30:	90 10 00 12 	mov  %l2, %o0                                  
40008d34:	7f ff e4 06 	call  40001d4c <sparc_disable_interrupts>      
40008d38:	01 00 00 00 	nop                                            
    if ( !_States_Are_set( search_thread->current_state, block_state) ) {
40008d3c:	c2 04 60 10 	ld  [ %l1 + 0x10 ], %g1                        
40008d40:	80 8d 40 01 	btst  %l5, %g1                                 
40008d44:	32 80 00 05 	bne,a   40008d58 <_Thread_queue_Enqueue_priority+0x12c>
40008d48:	e2 04 60 04 	ld  [ %l1 + 4 ], %l1                           
      _ISR_Enable( level );                                           
40008d4c:	7f ff e4 04 	call  40001d5c <sparc_enable_interrupts>       
40008d50:	90 10 00 12 	mov  %l2, %o0                                  
      goto restart_reverse_search;                                    
40008d54:	30 bf ff ed 	b,a   40008d08 <_Thread_queue_Enqueue_priority+0xdc>
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 ) ) {  
40008d58:	80 a4 40 13 	cmp  %l1, %l3                                  
40008d5c:	32 bf ff f1 	bne,a   40008d20 <_Thread_queue_Enqueue_priority+0xf4>
40008d60:	e8 04 60 14 	ld  [ %l1 + 0x14 ], %l4                        
    }                                                                 
    search_thread = (Thread_Control *)                                
                         search_thread->Object.Node.previous;         
  }                                                                   
                                                                      
  if ( the_thread_queue->sync_state !=                                
40008d64:	c2 06 20 30 	ld  [ %i0 + 0x30 ], %g1                        
40008d68:	80 a0 60 01 	cmp  %g1, 1                                    
40008d6c:	12 80 00 17 	bne  40008dc8 <_Thread_queue_Enqueue_priority+0x19c>
40008d70:	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 )                                  
40008d74:	80 a4 00 14 	cmp  %l0, %l4                                  
40008d78:	02 80 00 09 	be  40008d9c <_Thread_queue_Enqueue_priority+0x170>
40008d7c:	c0 26 20 30 	clr  [ %i0 + 0x30 ]                            
    goto equal_priority;                                              
                                                                      
  search_node = (Chain_Node *) search_thread;                         
  next_node   = search_node->next;                                    
40008d80:	c2 04 40 00 	ld  [ %l1 ], %g1                               
  the_node    = (Chain_Node *) the_thread;                            
                                                                      
  the_node->next          = next_node;                                
  the_node->previous      = search_node;                              
40008d84:	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;                                
40008d88:	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;                          
40008d8c:	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;                                 
40008d90:	f2 24 40 00 	st  %i1, [ %l1 ]                               
  next_node->previous    = the_node;                                  
40008d94:	f2 20 60 04 	st  %i1, [ %g1 + 4 ]                           
  the_thread->Wait.queue = the_thread_queue;                          
  _ISR_Enable( level );                                               
40008d98:	30 80 00 08 	b,a   40008db8 <_Thread_queue_Enqueue_priority+0x18c>
40008d9c:	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;                              
40008da0:	c2 04 60 04 	ld  [ %l1 + 4 ], %g1                           
  the_node      = (Chain_Node *) the_thread;                          
                                                                      
  the_node->next         = search_node;                               
40008da4:	e2 26 40 00 	st  %l1, [ %i1 ]                               
  the_node->previous     = previous_node;                             
40008da8:	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;                          
40008dac:	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;                                  
40008db0:	f2 20 40 00 	st  %i1, [ %g1 ]                               
  search_node->previous  = the_node;                                  
40008db4:	f2 24 60 04 	st  %i1, [ %l1 + 4 ]                           
  the_thread->Wait.queue = the_thread_queue;                          
  _ISR_Enable( level );                                               
40008db8:	7f ff e3 e9 	call  40001d5c <sparc_enable_interrupts>       
40008dbc:	b0 10 20 01 	mov  1, %i0                                    
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
40008dc0:	81 c7 e0 08 	ret                                            
40008dc4:	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;                                
40008dc8:	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;                                                   
40008dcc:	d0 26 80 00 	st  %o0, [ %i2 ]                               
  return the_thread_queue->sync_state;                                
}                                                                     
40008dd0:	81 c7 e0 08 	ret                                            
40008dd4:	81 e8 00 00 	restore                                        
                                                                      

40008e84 <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) {
40008e84:	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 )                                            
40008e88:	80 a6 20 00 	cmp  %i0, 0                                    
40008e8c:	02 80 00 19 	be  40008ef0 <_Thread_queue_Requeue+0x6c>      <== NEVER TAKEN
40008e90:	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 ) {
40008e94:	e2 06 20 34 	ld  [ %i0 + 0x34 ], %l1                        
40008e98:	80 a4 60 01 	cmp  %l1, 1                                    
40008e9c:	12 80 00 15 	bne  40008ef0 <_Thread_queue_Requeue+0x6c>     <== NEVER TAKEN
40008ea0:	01 00 00 00 	nop                                            
    Thread_queue_Control *tq = the_thread_queue;                      
    ISR_Level             level;                                      
    ISR_Level             level_ignored;                              
                                                                      
    _ISR_Disable( level );                                            
40008ea4:	7f ff e3 aa 	call  40001d4c <sparc_disable_interrupts>      
40008ea8:	01 00 00 00 	nop                                            
40008eac:	a0 10 00 08 	mov  %o0, %l0                                  
    if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
40008eb0:	c4 06 60 10 	ld  [ %i1 + 0x10 ], %g2                        
40008eb4:	03 00 00 ef 	sethi  %hi(0x3bc00), %g1                       
40008eb8:	82 10 62 e0 	or  %g1, 0x2e0, %g1	! 3bee0 <PROM_START+0x3bee0>
40008ebc:	80 88 80 01 	btst  %g2, %g1                                 
40008ec0:	02 80 00 0a 	be  40008ee8 <_Thread_queue_Requeue+0x64>      <== NEVER TAKEN
40008ec4:	94 10 20 01 	mov  1, %o2                                    
      _Thread_queue_Enter_critical_section( tq );                     
      _Thread_queue_Extract_priority_helper( tq, the_thread, true );  
40008ec8:	90 10 00 18 	mov  %i0, %o0                                  
40008ecc:	92 10 00 19 	mov  %i1, %o1                                  
40008ed0:	40 00 0f 67 	call  4000cc6c <_Thread_queue_Extract_priority_helper>
40008ed4:	e2 26 20 30 	st  %l1, [ %i0 + 0x30 ]                        
      (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
40008ed8:	90 10 00 18 	mov  %i0, %o0                                  
40008edc:	92 10 00 19 	mov  %i1, %o1                                  
40008ee0:	7f ff ff 53 	call  40008c2c <_Thread_queue_Enqueue_priority>
40008ee4:	94 07 bf fc 	add  %fp, -4, %o2                              
    }                                                                 
    _ISR_Enable( level );                                             
40008ee8:	7f ff e3 9d 	call  40001d5c <sparc_enable_interrupts>       
40008eec:	90 10 00 10 	mov  %l0, %o0                                  
40008ef0:	81 c7 e0 08 	ret                                            
40008ef4:	81 e8 00 00 	restore                                        
                                                                      

40008ef8 <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) {
40008ef8:	9d e3 bf 98 	save  %sp, -104, %sp                           
  Thread_Control       *the_thread;                                   
  Objects_Locations     location;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
40008efc:	90 10 00 18 	mov  %i0, %o0                                  
40008f00:	7f ff fd e0 	call  40008680 <_Thread_Get>                   
40008f04:	92 07 bf fc 	add  %fp, -4, %o1                              
  switch ( location ) {                                               
40008f08:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
40008f0c:	80 a0 60 00 	cmp  %g1, 0                                    
40008f10:	12 80 00 08 	bne  40008f30 <_Thread_queue_Timeout+0x38>     <== NEVER TAKEN
40008f14:	01 00 00 00 	nop                                            
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
      break;                                                          
    case OBJECTS_LOCAL:                                               
      _Thread_queue_Process_timeout( the_thread );                    
40008f18:	40 00 0f 8d 	call  4000cd4c <_Thread_queue_Process_timeout> 
40008f1c:	01 00 00 00 	nop                                            
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
40008f20:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
40008f24:	c4 00 61 70 	ld  [ %g1 + 0x170 ], %g2	! 4001d970 <_Thread_Dispatch_disable_level>
40008f28:	84 00 bf ff 	add  %g2, -1, %g2                              
40008f2c:	c4 20 61 70 	st  %g2, [ %g1 + 0x170 ]                       
40008f30:	81 c7 e0 08 	ret                                            
40008f34:	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 f9 	sethi  %hi(0x4003e400), %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 f9 	sethi  %hi(0x4003e400), %i3                    
40015fe8:	2b 10 00 f9 	sethi  %hi(0x4003e400), %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 a2 94 	or  %i2, 0x294, %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 e1 d0 	or  %i3, 0x1d0, %i3                            
4001600c:	aa 15 61 40 	or  %l5, 0x140, %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 11 69 	call  4001a5e0 <_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 11 61 	call  4001a5e0 <_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 11 34 	call  4001a544 <_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 7e 	call  40016a7c <_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 7d 	call  4001a6b4 <_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 0e 55 	call  40019ad0 <_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 94 	call  40018fe4 <_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 a1 	call  4001a828 <_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 9f 	call  4001a828 <_Watchdog_Remove>              
400161b0:	90 10 00 1d 	mov  %i5, %o0                                  
400161b4:	30 bf ff 9c 	b,a   40016024 <_Timer_server_Body+0x58>       
                                                                      

4000b9b0 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) {
4000b9b0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level level;                                                    
                                                                      
  _ISR_Disable( level );                                              
4000b9b4:	7f ff dc d0 	call  40002cf4 <sparc_disable_interrupts>      
4000b9b8:	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));                
4000b9bc:	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;                  
4000b9c0:	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 ) ) {                                 
4000b9c4:	80 a0 40 11 	cmp  %g1, %l1                                  
4000b9c8:	02 80 00 1e 	be  4000ba40 <_Watchdog_Adjust+0x90>           
4000b9cc:	80 a6 60 00 	cmp  %i1, 0                                    
    switch ( direction ) {                                            
4000b9d0:	02 80 00 19 	be  4000ba34 <_Watchdog_Adjust+0x84>           
4000b9d4:	a4 10 20 01 	mov  1, %l2                                    
4000b9d8:	80 a6 60 01 	cmp  %i1, 1                                    
4000b9dc:	12 80 00 19 	bne  4000ba40 <_Watchdog_Adjust+0x90>          <== NEVER TAKEN
4000b9e0:	01 00 00 00 	nop                                            
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
4000b9e4:	c4 00 60 10 	ld  [ %g1 + 0x10 ], %g2                        
4000b9e8:	10 80 00 07 	b  4000ba04 <_Watchdog_Adjust+0x54>            
4000b9ec:	b4 00 80 1a 	add  %g2, %i2, %i2                             
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
          if ( units < _Watchdog_First( header )->delta_interval ) {  
4000b9f0:	f2 00 60 10 	ld  [ %g1 + 0x10 ], %i1                        
4000b9f4:	80 a6 80 19 	cmp  %i2, %i1                                  
4000b9f8:	3a 80 00 05 	bcc,a   4000ba0c <_Watchdog_Adjust+0x5c>       
4000b9fc:	e4 20 60 10 	st  %l2, [ %g1 + 0x10 ]                        
            _Watchdog_First( header )->delta_interval -= units;       
4000ba00:	b4 26 40 1a 	sub  %i1, %i2, %i2                             
            break;                                                    
4000ba04:	10 80 00 0f 	b  4000ba40 <_Watchdog_Adjust+0x90>            
4000ba08:	f4 20 60 10 	st  %i2, [ %g1 + 0x10 ]                        
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
            _Watchdog_First( header )->delta_interval = 1;            
                                                                      
            _ISR_Enable( level );                                     
4000ba0c:	7f ff dc be 	call  40002d04 <sparc_enable_interrupts>       
4000ba10:	01 00 00 00 	nop                                            
                                                                      
            _Watchdog_Tickle( header );                               
4000ba14:	40 00 00 95 	call  4000bc68 <_Watchdog_Tickle>              
4000ba18:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
            _ISR_Disable( level );                                    
4000ba1c:	7f ff dc b6 	call  40002cf4 <sparc_disable_interrupts>      
4000ba20:	01 00 00 00 	nop                                            
                                                                      
            if ( _Chain_Is_empty( header ) )                          
4000ba24:	c2 04 00 00 	ld  [ %l0 ], %g1                               
4000ba28:	80 a0 40 11 	cmp  %g1, %l1                                  
4000ba2c:	02 80 00 05 	be  4000ba40 <_Watchdog_Adjust+0x90>           
4000ba30:	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 ) {                                             
4000ba34:	80 a6 a0 00 	cmp  %i2, 0                                    
4000ba38:	32 bf ff ee 	bne,a   4000b9f0 <_Watchdog_Adjust+0x40>       <== ALWAYS TAKEN
4000ba3c:	c2 04 00 00 	ld  [ %l0 ], %g1                               
        }                                                             
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
4000ba40:	7f ff dc b1 	call  40002d04 <sparc_enable_interrupts>       
4000ba44:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      

40009924 <_Watchdog_Remove>: */ Watchdog_States _Watchdog_Remove( Watchdog_Control *the_watchdog ) {
40009924:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level         level;                                            
  Watchdog_States   previous_state;                                   
  Watchdog_Control *next_watchdog;                                    
                                                                      
  _ISR_Disable( level );                                              
40009928:	7f ff e1 09 	call  40001d4c <sparc_disable_interrupts>      
4000992c:	a0 10 00 18 	mov  %i0, %l0                                  
  previous_state = the_watchdog->state;                               
40009930:	f0 06 20 08 	ld  [ %i0 + 8 ], %i0                           
  switch ( previous_state ) {                                         
40009934:	80 a6 20 01 	cmp  %i0, 1                                    
40009938:	22 80 00 1e 	be,a   400099b0 <_Watchdog_Remove+0x8c>        
4000993c:	c0 24 20 08 	clr  [ %l0 + 8 ]                               
40009940:	0a 80 00 1d 	bcs  400099b4 <_Watchdog_Remove+0x90>          
40009944:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
40009948:	80 a6 20 03 	cmp  %i0, 3                                    
4000994c:	18 80 00 1a 	bgu  400099b4 <_Watchdog_Remove+0x90>          <== NEVER TAKEN
40009950:	01 00 00 00 	nop                                            
40009954:	c2 04 00 00 	ld  [ %l0 ], %g1                               
      break;                                                          
                                                                      
    case WATCHDOG_ACTIVE:                                             
    case WATCHDOG_REMOVE_IT:                                          
                                                                      
      the_watchdog->state = WATCHDOG_INACTIVE;                        
40009958:	c0 24 20 08 	clr  [ %l0 + 8 ]                               
      next_watchdog = _Watchdog_Next( the_watchdog );                 
                                                                      
      if ( _Watchdog_Next(next_watchdog) )                            
4000995c:	c4 00 40 00 	ld  [ %g1 ], %g2                               
40009960:	80 a0 a0 00 	cmp  %g2, 0                                    
40009964:	22 80 00 07 	be,a   40009980 <_Watchdog_Remove+0x5c>        
40009968:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
        next_watchdog->delta_interval += the_watchdog->delta_interval;
4000996c:	c6 00 60 10 	ld  [ %g1 + 0x10 ], %g3	! 4001d810 <rtems_global_user_env+0x20>
40009970:	c4 04 20 10 	ld  [ %l0 + 0x10 ], %g2                        
40009974:	84 00 c0 02 	add  %g3, %g2, %g2                             
40009978:	c4 20 60 10 	st  %g2, [ %g1 + 0x10 ]                        
                                                                      
      if ( _Watchdog_Sync_count )                                     
4000997c:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
40009980:	c2 00 62 c0 	ld  [ %g1 + 0x2c0 ], %g1	! 4001dac0 <_Watchdog_Sync_count>
40009984:	80 a0 60 00 	cmp  %g1, 0                                    
40009988:	22 80 00 07 	be,a   400099a4 <_Watchdog_Remove+0x80>        
4000998c:	c2 04 00 00 	ld  [ %l0 ], %g1                               
        _Watchdog_Sync_level = _ISR_Nest_level;                       
40009990:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
40009994:	c4 00 62 08 	ld  [ %g1 + 0x208 ], %g2	! 4001da08 <_ISR_Nest_level>
40009998:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
4000999c:	c4 20 62 28 	st  %g2, [ %g1 + 0x228 ]	! 4001da28 <_Watchdog_Sync_level>
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
400099a0:	c2 04 00 00 	ld  [ %l0 ], %g1                               
  previous       = the_node->previous;                                
400099a4:	c4 04 20 04 	ld  [ %l0 + 4 ], %g2                           
  next->previous = previous;                                          
  previous->next = next;                                              
400099a8:	c2 20 80 00 	st  %g1, [ %g2 ]                               
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
  next->previous = previous;                                          
400099ac:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
                                                                      
      _Chain_Extract_unprotected( &the_watchdog->Node );              
      break;                                                          
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
400099b0:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
400099b4:	c2 00 62 c4 	ld  [ %g1 + 0x2c4 ], %g1	! 4001dac4 <_Watchdog_Ticks_since_boot>
400099b8:	c2 24 20 18 	st  %g1, [ %l0 + 0x18 ]                        
                                                                      
  _ISR_Enable( level );                                               
400099bc:	7f ff e0 e8 	call  40001d5c <sparc_enable_interrupts>       
400099c0:	01 00 00 00 	nop                                            
  return( previous_state );                                           
}                                                                     
400099c4:	81 c7 e0 08 	ret                                            
400099c8:	81 e8 00 00 	restore                                        
                                                                      

4000b15c <_Watchdog_Report_chain>: void _Watchdog_Report_chain( const char *name, Chain_Control *header ) {
4000b15c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level          level;                                           
  Chain_Node        *node;                                            
                                                                      
  _ISR_Disable( level );                                              
4000b160:	7f ff dd b3 	call  4000282c <sparc_disable_interrupts>      
4000b164:	a0 10 00 18 	mov  %i0, %l0                                  
4000b168:	b0 10 00 08 	mov  %o0, %i0                                  
    printk( "Watchdog Chain: %s %p\n", name, header );                
4000b16c:	11 10 00 85 	sethi  %hi(0x40021400), %o0                    
4000b170:	94 10 00 19 	mov  %i1, %o2                                  
4000b174:	90 12 22 58 	or  %o0, 0x258, %o0                            
4000b178:	7f ff e6 34 	call  40004a48 <printk>                        
4000b17c:	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));                
4000b180:	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;                  
4000b184:	b2 06 60 04 	add  %i1, 4, %i1                               
    if ( !_Chain_Is_empty( header ) ) {                               
4000b188:	80 a4 40 19 	cmp  %l1, %i1                                  
4000b18c:	02 80 00 0e 	be  4000b1c4 <_Watchdog_Report_chain+0x68>     
4000b190:	11 10 00 85 	sethi  %hi(0x40021400), %o0                    
            node != _Chain_Tail(header) ;                             
            node = node->next )                                       
      {                                                               
        Watchdog_Control *watch = (Watchdog_Control *) node;          
                                                                      
        _Watchdog_Report( NULL, watch );                              
4000b194:	92 10 00 11 	mov  %l1, %o1                                  
4000b198:	40 00 00 10 	call  4000b1d8 <_Watchdog_Report>              
4000b19c:	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 )                                       
4000b1a0:	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 ;                                    
4000b1a4:	80 a4 40 19 	cmp  %l1, %i1                                  
4000b1a8:	12 bf ff fc 	bne  4000b198 <_Watchdog_Report_chain+0x3c>    <== NEVER TAKEN
4000b1ac:	92 10 00 11 	mov  %l1, %o1                                  
      {                                                               
        Watchdog_Control *watch = (Watchdog_Control *) node;          
                                                                      
        _Watchdog_Report( NULL, watch );                              
      }                                                               
      printk( "== end of %s \n", name );                              
4000b1b0:	92 10 00 10 	mov  %l0, %o1                                  
4000b1b4:	11 10 00 85 	sethi  %hi(0x40021400), %o0                    
4000b1b8:	7f ff e6 24 	call  40004a48 <printk>                        
4000b1bc:	90 12 22 70 	or  %o0, 0x270, %o0	! 40021670 <C.32.3506+0x2c>
4000b1c0:	30 80 00 03 	b,a   4000b1cc <_Watchdog_Report_chain+0x70>   
    } else {                                                          
      printk( "Chain is empty\n" );                                   
4000b1c4:	7f ff e6 21 	call  40004a48 <printk>                        
4000b1c8:	90 12 22 80 	or  %o0, 0x280, %o0                            
    }                                                                 
  _ISR_Enable( level );                                               
4000b1cc:	7f ff dd 9c 	call  4000283c <sparc_enable_interrupts>       
4000b1d0:	81 e8 00 00 	restore                                        
                                                                      

4001adec <_calloc_r>: struct _reent *ignored __attribute__((unused)), size_t elements, size_t size ) { return calloc( elements, size );
4001adec:	90 10 00 09 	mov  %o1, %o0                                  <== NOT EXECUTED
4001adf0:	92 10 00 0a 	mov  %o2, %o1                                  <== NOT EXECUTED
4001adf4:	82 13 c0 00 	mov  %o7, %g1                                  <== NOT EXECUTED
4001adf8:	7f ff c0 9b 	call  4000b064 <calloc>                        <== NOT EXECUTED
4001adfc:	9e 10 40 00 	mov  %g1, %o7                                  <== NOT EXECUTED
                                                                      

4001b0c4 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL();
4001b0c4:	9d e3 bf a0 	save  %sp, -96, %sp                            
4001b0c8:	40 00 07 43 	call  4001cdd4 <_fini>                         
4001b0cc:	01 00 00 00 	nop                                            
   *  We need to do the exit processing on the global reentrancy structure.
   *  This has already been done on the per task reentrancy structure 
   *  associated with this task.                                      
   */                                                                 
                                                                      
  libc_wrapup();                                                      
4001b0d0:	7f ff ff e1 	call  4001b054 <libc_wrapup>                   
4001b0d4:	01 00 00 00 	nop                                            
  rtems_shutdown_executive(status);                                   
4001b0d8:	40 00 00 4c 	call  4001b208 <rtems_shutdown_executive>      
4001b0dc:	90 10 00 18 	mov  %i0, %o0                                  
4001b0e0:	30 80 00 00 	b,a   4001b0e0 <_exit+0x1c>                    <== NOT EXECUTED
                                                                      

40004314 <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg );
40004314:	90 10 00 09 	mov  %o1, %o0                                  <== NOT EXECUTED
40004318:	92 10 00 0a 	mov  %o2, %o1                                  <== NOT EXECUTED
4000431c:	94 10 00 0b 	mov  %o3, %o2                                  <== NOT EXECUTED
40004320:	82 13 c0 00 	mov  %o7, %g1                                  <== NOT EXECUTED
40004324:	7f ff ff 7f 	call  40004120 <fcntl>                         <== NOT EXECUTED
40004328:	9e 10 40 00 	mov  %g1, %o7                                  <== NOT EXECUTED
                                                                      

4000de84 <_getpid_r>: pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { return getpid(); }
4000de84:	81 c3 e0 08 	retl                                           <== NOT EXECUTED
4000de88:	90 10 20 01 	mov  1, %o0                                    <== NOT EXECUTED
                                                                      

4000b394 <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp );
4000b394:	82 13 c0 00 	mov  %o7, %g1                                  <== NOT EXECUTED
4000b398:	7f ff ff e6 	call  4000b330 <gettimeofday>                  <== NOT EXECUTED
4000b39c:	9e 10 40 00 	mov  %g1, %o7                                  <== NOT EXECUTED
                                                                      

40004f00 <_link_r>: struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new );
40004f00:	90 10 00 09 	mov  %o1, %o0                                  <== NOT EXECUTED
40004f04:	92 10 00 0a 	mov  %o2, %o1                                  <== NOT EXECUTED
40004f08:	82 13 c0 00 	mov  %o7, %g1                                  <== NOT EXECUTED
40004f0c:	7f ff ff 61 	call  40004c90 <link>                          <== NOT EXECUTED
40004f10:	9e 10 40 00 	mov  %g1, %o7                                  <== NOT EXECUTED
                                                                      

4001b1d4 <_realloc_r>: struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { return realloc( ptr, size );
4001b1d4:	90 10 00 09 	mov  %o1, %o0                                  <== NOT EXECUTED
4001b1d8:	92 10 00 0a 	mov  %o2, %o1                                  <== NOT EXECUTED
4001b1dc:	82 13 c0 00 	mov  %o7, %g1                                  <== NOT EXECUTED
4001b1e0:	40 00 00 17 	call  4001b23c <realloc>                       <== NOT EXECUTED
4001b1e4:	9e 10 40 00 	mov  %g1, %o7                                  <== NOT EXECUTED
                                                                      

40007704 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) {
40007704:	9d e3 bf 60 	save  %sp, -160, %sp                           
                                                                      
  /*                                                                  
   *  Get the parent node of the old path to be renamed. Find the parent path.
   */                                                                 
                                                                      
  old_parent_pathlen = rtems_filesystem_dirname ( old );              
40007708:	7f ff fa 9f 	call  40006184 <rtems_filesystem_dirname>      
4000770c:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
  if ( old_parent_pathlen == 0 )                                      
40007710:	a0 92 20 00 	orcc  %o0, 0, %l0                              
40007714:	32 80 00 18 	bne,a   40007774 <_rename_r+0x70>              
40007718:	90 10 00 19 	mov  %i1, %o0                                  
    rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );       
4000771c:	c2 4e 40 00 	ldsb  [ %i1 ], %g1                             
40007720:	80 a0 60 5c 	cmp  %g1, 0x5c                                 
40007724:	22 80 00 08 	be,a   40007744 <_rename_r+0x40>               <== NEVER TAKEN
40007728:	03 10 00 a2 	sethi  %hi(0x40028800), %g1                    <== NOT EXECUTED
4000772c:	80 a0 60 2f 	cmp  %g1, 0x2f                                 
40007730:	22 80 00 05 	be,a   40007744 <_rename_r+0x40>               <== NEVER TAKEN
40007734:	03 10 00 a2 	sethi  %hi(0x40028800), %g1                    <== NOT EXECUTED
40007738:	80 a0 60 00 	cmp  %g1, 0                                    
4000773c:	12 80 00 06 	bne  40007754 <_rename_r+0x50>                 <== ALWAYS TAKEN
40007740:	03 10 00 a2 	sethi  %hi(0x40028800), %g1                    
40007744:	d2 00 60 08 	ld  [ %g1 + 8 ], %o1	! 40028808 <rtems_current_user_env><== NOT EXECUTED
40007748:	90 07 bf d4 	add  %fp, -44, %o0                             <== NOT EXECUTED
4000774c:	10 80 00 05 	b  40007760 <_rename_r+0x5c>                   <== NOT EXECUTED
40007750:	92 02 60 18 	add  %o1, 0x18, %o1                            <== NOT EXECUTED
40007754:	d2 00 60 08 	ld  [ %g1 + 8 ], %o1                           
40007758:	90 07 bf d4 	add  %fp, -44, %o0                             
4000775c:	92 02 60 04 	add  %o1, 4, %o1                               
40007760:	94 10 20 14 	mov  0x14, %o2                                 
40007764:	40 00 3a c7 	call  40016280 <memcpy>                        
40007768:	a2 10 20 00 	clr  %l1                                       
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  old_loc = old_parent_loc;                                           
4000776c:	10 80 00 0b 	b  40007798 <_rename_r+0x94>                   
40007770:	94 10 20 14 	mov  0x14, %o2                                 
  old_parent_pathlen = rtems_filesystem_dirname ( old );              
                                                                      
  if ( old_parent_pathlen == 0 )                                      
    rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );       
  else {                                                              
    result = rtems_filesystem_evaluate_path( old, old_parent_pathlen, 
40007774:	92 10 00 10 	mov  %l0, %o1                                  
40007778:	94 10 20 02 	mov  2, %o2                                    
4000777c:	96 07 bf d4 	add  %fp, -44, %o3                             
40007780:	7f ff fa cf 	call  400062bc <rtems_filesystem_evaluate_path>
40007784:	98 10 20 00 	clr  %o4                                       
                                             RTEMS_LIBIO_PERMS_WRITE, 
                                             &old_parent_loc,         
                                             false );                 
    if ( result != 0 )                                                
40007788:	80 a2 20 00 	cmp  %o0, 0                                    
4000778c:	12 80 00 e3 	bne  40007b18 <_rename_r+0x414>                <== NEVER TAKEN
40007790:	a2 10 20 01 	mov  1, %l1                                    
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  old_loc = old_parent_loc;                                           
40007794:	94 10 20 14 	mov  0x14, %o2                                 
40007798:	a6 07 bf e8 	add  %fp, -24, %l3                             
4000779c:	a4 07 bf d4 	add  %fp, -44, %l2                             
400077a0:	90 10 00 13 	mov  %l3, %o0                                  
400077a4:	40 00 3a b7 	call  40016280 <memcpy>                        
400077a8:	92 10 00 12 	mov  %l2, %o1                                  
  name = old + old_parent_pathlen;                                    
400077ac:	b2 06 40 10 	add  %i1, %l0, %i1                             
400077b0:	f2 27 bf fc 	st  %i1, [ %fp + -4 ]                          
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
400077b4:	40 00 40 fc 	call  40017ba4 <strlen>                        
400077b8:	90 10 00 19 	mov  %i1, %o0                                  
400077bc:	92 10 00 08 	mov  %o0, %o1                                  
400077c0:	7f ff fa 60 	call  40006140 <rtems_filesystem_prefix_separators>
400077c4:	90 10 00 19 	mov  %i1, %o0                                  
400077c8:	b2 06 40 08 	add  %i1, %o0, %i1                             
400077cc:	f2 27 bf fc 	st  %i1, [ %fp + -4 ]                          
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
400077d0:	40 00 40 f5 	call  40017ba4 <strlen>                        
400077d4:	90 10 00 19 	mov  %i1, %o0                                  
400077d8:	96 10 00 13 	mov  %l3, %o3                                  
400077dc:	92 10 00 08 	mov  %o0, %o1                                  
400077e0:	94 10 20 00 	clr  %o2                                       
400077e4:	90 10 00 19 	mov  %i1, %o0                                  
400077e8:	7f ff fa 79 	call  400061cc <rtems_filesystem_evaluate_relative_path>
400077ec:	98 10 20 00 	clr  %o4                                       
                                                    0, &old_loc, false );
  if ( result != 0 ) {                                                
400077f0:	80 a2 20 00 	cmp  %o0, 0                                    
400077f4:	22 80 00 0e 	be,a   4000782c <_rename_r+0x128>              
400077f8:	c2 4e 80 00 	ldsb  [ %i2 ], %g1                             
    if ( free_old_parentloc )                                         
400077fc:	80 8c 60 ff 	btst  0xff, %l1                                
40007800:	02 80 00 4e 	be  40007938 <_rename_r+0x234>                 <== NEVER TAKEN
40007804:	b0 10 3f ff 	mov  -1, %i0                                   
      rtems_filesystem_freenode( &old_parent_loc );                   
40007808:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         
4000780c:	80 a0 60 00 	cmp  %g1, 0                                    
40007810:	02 80 00 c3 	be  40007b1c <_rename_r+0x418>                 <== NEVER TAKEN
40007814:	01 00 00 00 	nop                                            
40007818:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
4000781c:	80 a0 60 00 	cmp  %g1, 0                                    
40007820:	02 80 00 46 	be  40007938 <_rename_r+0x234>                 <== NEVER TAKEN
40007824:	90 10 00 12 	mov  %l2, %o0                                  
40007828:	30 80 00 42 	b,a   40007930 <_rename_r+0x22c>               
                                                                      
  /*                                                                  
   * Get the parent of the new node we are renaming to.               
   */                                                                 
                                                                      
  rtems_filesystem_get_start_loc( new, &i, &new_parent_loc );         
4000782c:	80 a0 60 5c 	cmp  %g1, 0x5c                                 
40007830:	22 80 00 08 	be,a   40007850 <_rename_r+0x14c>              <== NEVER TAKEN
40007834:	03 10 00 a2 	sethi  %hi(0x40028800), %g1                    <== NOT EXECUTED
40007838:	80 a0 60 2f 	cmp  %g1, 0x2f                                 
4000783c:	22 80 00 05 	be,a   40007850 <_rename_r+0x14c>              
40007840:	03 10 00 a2 	sethi  %hi(0x40028800), %g1                    
40007844:	80 a0 60 00 	cmp  %g1, 0                                    
40007848:	12 80 00 09 	bne  4000786c <_rename_r+0x168>                <== ALWAYS TAKEN
4000784c:	03 10 00 a2 	sethi  %hi(0x40028800), %g1                    
40007850:	d2 00 60 08 	ld  [ %g1 + 8 ], %o1	! 40028808 <rtems_current_user_env>
40007854:	90 07 bf c0 	add  %fp, -64, %o0                             
40007858:	92 02 60 18 	add  %o1, 0x18, %o1                            
4000785c:	40 00 3a 89 	call  40016280 <memcpy>                        
40007860:	94 10 20 14 	mov  0x14, %o2                                 
40007864:	10 80 00 08 	b  40007884 <_rename_r+0x180>                  
40007868:	90 10 20 01 	mov  1, %o0                                    
4000786c:	d2 00 60 08 	ld  [ %g1 + 8 ], %o1                           
40007870:	90 07 bf c0 	add  %fp, -64, %o0                             
40007874:	92 02 60 04 	add  %o1, 4, %o1                               
40007878:	40 00 3a 82 	call  40016280 <memcpy>                        
4000787c:	94 10 20 14 	mov  0x14, %o2                                 
40007880:	90 10 20 00 	clr  %o0                                       
                                                                      
  if ( !new_parent_loc.ops->evalformake_h ) {                         
40007884:	c2 07 bf cc 	ld  [ %fp + -52 ], %g1                         
40007888:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
4000788c:	80 a0 60 00 	cmp  %g1, 0                                    
40007890:	02 80 00 5e 	be  40007a08 <_rename_r+0x304>                 
40007894:	94 07 bf fc 	add  %fp, -4, %o2                              
      rtems_filesystem_freenode( &old_parent_loc );                   
    rtems_filesystem_freenode( &old_loc );                            
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
  }                                                                   
                                                                      
  result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name );
40007898:	90 06 80 08 	add  %i2, %o0, %o0                             
4000789c:	a0 07 bf c0 	add  %fp, -64, %l0                             
400078a0:	9f c0 40 00 	call  %g1                                      
400078a4:	92 10 00 10 	mov  %l0, %o1                                  
  if ( result != 0 ) {                                                
400078a8:	80 a2 20 00 	cmp  %o0, 0                                    
400078ac:	02 80 00 25 	be  40007940 <_rename_r+0x23c>                 
400078b0:	c2 07 bf d0 	ld  [ %fp + -48 ], %g1                         
    rtems_filesystem_freenode( &new_parent_loc );                     
400078b4:	c2 07 bf cc 	ld  [ %fp + -52 ], %g1                         
400078b8:	80 a0 60 00 	cmp  %g1, 0                                    
400078bc:	02 80 00 09 	be  400078e0 <_rename_r+0x1dc>                 <== NEVER TAKEN
400078c0:	80 8c 60 ff 	btst  0xff, %l1                                
400078c4:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
400078c8:	80 a0 60 00 	cmp  %g1, 0                                    
400078cc:	02 80 00 05 	be  400078e0 <_rename_r+0x1dc>                 <== NEVER TAKEN
400078d0:	80 8c 60 ff 	btst  0xff, %l1                                
400078d4:	9f c0 40 00 	call  %g1                                      
400078d8:	90 10 00 10 	mov  %l0, %o0                                  
    if ( free_old_parentloc )                                         
400078dc:	80 8c 60 ff 	btst  0xff, %l1                                
400078e0:	02 80 00 0d 	be  40007914 <_rename_r+0x210>                 <== NEVER TAKEN
400078e4:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
      rtems_filesystem_freenode( &old_parent_loc );                   
400078e8:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         
400078ec:	80 a0 60 00 	cmp  %g1, 0                                    
400078f0:	22 80 00 09 	be,a   40007914 <_rename_r+0x210>              <== NEVER TAKEN
400078f4:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         <== NOT EXECUTED
400078f8:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
400078fc:	80 a0 60 00 	cmp  %g1, 0                                    
40007900:	22 80 00 05 	be,a   40007914 <_rename_r+0x210>              <== NEVER TAKEN
40007904:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         <== NOT EXECUTED
40007908:	9f c0 40 00 	call  %g1                                      
4000790c:	90 07 bf d4 	add  %fp, -44, %o0                             
    rtems_filesystem_freenode( &old_loc );                            
40007910:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
40007914:	80 a0 60 00 	cmp  %g1, 0                                    
40007918:	02 80 00 08 	be  40007938 <_rename_r+0x234>                 <== NEVER TAKEN
4000791c:	b0 10 3f ff 	mov  -1, %i0                                   
40007920:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
40007924:	80 a0 60 00 	cmp  %g1, 0                                    
40007928:	02 80 00 04 	be  40007938 <_rename_r+0x234>                 <== NEVER TAKEN
4000792c:	90 07 bf e8 	add  %fp, -24, %o0                             
40007930:	9f c0 40 00 	call  %g1                                      
40007934:	b0 10 3f ff 	mov  -1, %i0                                   
40007938:	81 c7 e0 08 	ret                                            
4000793c:	81 e8 00 00 	restore                                        
  /*                                                                  
   *  Check to see if the caller is trying to rename across file system
   *  boundaries.                                                     
   */                                                                 
                                                                      
  if ( old_parent_loc.mt_entry != new_parent_loc.mt_entry ) {         
40007940:	c6 07 bf e4 	ld  [ %fp + -28 ], %g3                         
40007944:	80 a0 c0 01 	cmp  %g3, %g1                                  
40007948:	02 80 00 26 	be  400079e0 <_rename_r+0x2dc>                 
4000794c:	c4 07 bf cc 	ld  [ %fp + -52 ], %g2                         
    rtems_filesystem_freenode( &new_parent_loc );                     
40007950:	80 a0 a0 00 	cmp  %g2, 0                                    
40007954:	02 80 00 09 	be  40007978 <_rename_r+0x274>                 <== NEVER TAKEN
40007958:	80 8c 60 ff 	btst  0xff, %l1                                
4000795c:	c2 00 a0 1c 	ld  [ %g2 + 0x1c ], %g1                        
40007960:	80 a0 60 00 	cmp  %g1, 0                                    
40007964:	02 80 00 05 	be  40007978 <_rename_r+0x274>                 <== NEVER TAKEN
40007968:	80 8c 60 ff 	btst  0xff, %l1                                
4000796c:	9f c0 40 00 	call  %g1                                      
40007970:	90 10 00 10 	mov  %l0, %o0                                  
    if ( free_old_parentloc )                                         
40007974:	80 8c 60 ff 	btst  0xff, %l1                                
40007978:	02 80 00 0d 	be  400079ac <_rename_r+0x2a8>                 
4000797c:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
      rtems_filesystem_freenode( &old_parent_loc );                   
40007980:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         
40007984:	80 a0 60 00 	cmp  %g1, 0                                    
40007988:	22 80 00 09 	be,a   400079ac <_rename_r+0x2a8>              <== NEVER TAKEN
4000798c:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         <== NOT EXECUTED
40007990:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
40007994:	80 a0 60 00 	cmp  %g1, 0                                    
40007998:	22 80 00 05 	be,a   400079ac <_rename_r+0x2a8>              <== NEVER TAKEN
4000799c:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         <== NOT EXECUTED
400079a0:	9f c0 40 00 	call  %g1                                      
400079a4:	90 07 bf d4 	add  %fp, -44, %o0                             
    rtems_filesystem_freenode( &old_loc );                            
400079a8:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
400079ac:	80 a0 60 00 	cmp  %g1, 0                                    
400079b0:	02 80 00 08 	be  400079d0 <_rename_r+0x2cc>                 <== NEVER TAKEN
400079b4:	01 00 00 00 	nop                                            
400079b8:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
400079bc:	80 a0 60 00 	cmp  %g1, 0                                    
400079c0:	02 80 00 04 	be  400079d0 <_rename_r+0x2cc>                 <== NEVER TAKEN
400079c4:	01 00 00 00 	nop                                            
400079c8:	9f c0 40 00 	call  %g1                                      
400079cc:	90 07 bf e8 	add  %fp, -24, %o0                             
    rtems_set_errno_and_return_minus_one( EXDEV );                    
400079d0:	40 00 33 a2 	call  40014858 <__errno>                       
400079d4:	b0 10 3f ff 	mov  -1, %i0                                   
400079d8:	10 80 00 26 	b  40007a70 <_rename_r+0x36c>                  
400079dc:	82 10 20 12 	mov  0x12, %g1                                 
  }                                                                   
                                                                      
  if ( !new_parent_loc.ops->rename_h ) {                              
400079e0:	c2 00 a0 40 	ld  [ %g2 + 0x40 ], %g1                        
400079e4:	80 a0 60 00 	cmp  %g1, 0                                    
400079e8:	12 80 00 25 	bne  40007a7c <_rename_r+0x378>                
400079ec:	d6 07 bf fc 	ld  [ %fp + -4 ], %o3                          
    rtems_filesystem_freenode( &new_parent_loc );                     
400079f0:	c2 00 a0 1c 	ld  [ %g2 + 0x1c ], %g1                        
400079f4:	80 a0 60 00 	cmp  %g1, 0                                    
400079f8:	02 80 00 05 	be  40007a0c <_rename_r+0x308>                 <== NEVER TAKEN
400079fc:	80 8c 60 ff 	btst  0xff, %l1                                
40007a00:	9f c0 40 00 	call  %g1                                      
40007a04:	90 10 00 10 	mov  %l0, %o0                                  
    if ( free_old_parentloc )                                         
40007a08:	80 8c 60 ff 	btst  0xff, %l1                                
40007a0c:	02 80 00 0d 	be  40007a40 <_rename_r+0x33c>                 <== NEVER TAKEN
40007a10:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
      rtems_filesystem_freenode( &old_parent_loc );                   
40007a14:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         
40007a18:	80 a0 60 00 	cmp  %g1, 0                                    
40007a1c:	22 80 00 09 	be,a   40007a40 <_rename_r+0x33c>              <== NEVER TAKEN
40007a20:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         <== NOT EXECUTED
40007a24:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
40007a28:	80 a0 60 00 	cmp  %g1, 0                                    
40007a2c:	22 80 00 05 	be,a   40007a40 <_rename_r+0x33c>              <== NEVER TAKEN
40007a30:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         <== NOT EXECUTED
40007a34:	9f c0 40 00 	call  %g1                                      
40007a38:	90 07 bf d4 	add  %fp, -44, %o0                             
    rtems_filesystem_freenode( &old_loc );                            
40007a3c:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
40007a40:	80 a0 60 00 	cmp  %g1, 0                                    
40007a44:	02 80 00 08 	be  40007a64 <_rename_r+0x360>                 <== NEVER TAKEN
40007a48:	01 00 00 00 	nop                                            
40007a4c:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
40007a50:	80 a0 60 00 	cmp  %g1, 0                                    
40007a54:	02 80 00 04 	be  40007a64 <_rename_r+0x360>                 <== NEVER TAKEN
40007a58:	01 00 00 00 	nop                                            
40007a5c:	9f c0 40 00 	call  %g1                                      
40007a60:	90 07 bf e8 	add  %fp, -24, %o0                             
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
40007a64:	40 00 33 7d 	call  40014858 <__errno>                       
40007a68:	b0 10 3f ff 	mov  -1, %i0                                   
40007a6c:	82 10 20 86 	mov  0x86, %g1                                 
40007a70:	c2 22 00 00 	st  %g1, [ %o0 ]                               
40007a74:	81 c7 e0 08 	ret                                            
40007a78:	81 e8 00 00 	restore                                        
  }                                                                   
                                                                      
  result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name );
40007a7c:	90 07 bf d4 	add  %fp, -44, %o0                             
40007a80:	92 07 bf e8 	add  %fp, -24, %o1                             
40007a84:	9f c0 40 00 	call  %g1                                      
40007a88:	94 10 00 10 	mov  %l0, %o2                                  
                                                                      
  rtems_filesystem_freenode( &new_parent_loc );                       
40007a8c:	c2 07 bf cc 	ld  [ %fp + -52 ], %g1                         
40007a90:	80 a0 60 00 	cmp  %g1, 0                                    
40007a94:	02 80 00 08 	be  40007ab4 <_rename_r+0x3b0>                 <== NEVER TAKEN
40007a98:	b0 10 00 08 	mov  %o0, %i0                                  
40007a9c:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
40007aa0:	80 a0 60 00 	cmp  %g1, 0                                    
40007aa4:	02 80 00 05 	be  40007ab8 <_rename_r+0x3b4>                 <== NEVER TAKEN
40007aa8:	80 8c 60 ff 	btst  0xff, %l1                                
40007aac:	9f c0 40 00 	call  %g1                                      
40007ab0:	90 10 00 10 	mov  %l0, %o0                                  
  if ( free_old_parentloc )                                           
40007ab4:	80 8c 60 ff 	btst  0xff, %l1                                
40007ab8:	02 80 00 0d 	be  40007aec <_rename_r+0x3e8>                 
40007abc:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
    rtems_filesystem_freenode( &old_parent_loc );                     
40007ac0:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         
40007ac4:	80 a0 60 00 	cmp  %g1, 0                                    
40007ac8:	22 80 00 09 	be,a   40007aec <_rename_r+0x3e8>              <== NEVER TAKEN
40007acc:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         <== NOT EXECUTED
40007ad0:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
40007ad4:	80 a0 60 00 	cmp  %g1, 0                                    
40007ad8:	22 80 00 05 	be,a   40007aec <_rename_r+0x3e8>              <== NEVER TAKEN
40007adc:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         <== NOT EXECUTED
40007ae0:	9f c0 40 00 	call  %g1                                      
40007ae4:	90 07 bf d4 	add  %fp, -44, %o0                             
  rtems_filesystem_freenode( &old_loc );                              
40007ae8:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
40007aec:	80 a0 60 00 	cmp  %g1, 0                                    
40007af0:	02 80 00 0b 	be  40007b1c <_rename_r+0x418>                 <== NEVER TAKEN
40007af4:	01 00 00 00 	nop                                            
40007af8:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
40007afc:	80 a0 60 00 	cmp  %g1, 0                                    
40007b00:	02 80 00 07 	be  40007b1c <_rename_r+0x418>                 <== NEVER TAKEN
40007b04:	01 00 00 00 	nop                                            
40007b08:	9f c0 40 00 	call  %g1                                      
40007b0c:	90 07 bf e8 	add  %fp, -24, %o0                             
40007b10:	81 c7 e0 08 	ret                                            
40007b14:	81 e8 00 00 	restore                                        
40007b18:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
                                                                      
  return result;                                                      
}                                                                     
40007b1c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40007b20:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

4000b460 <_rtems_octal2ulong>: unsigned long _rtems_octal2ulong( const char *octascii, size_t len ) {
4000b460:	9d e3 bf a0 	save  %sp, -96, %sp                            <== NOT EXECUTED
4000b464:	84 10 20 00 	clr  %g2                                       <== NOT EXECUTED
4000b468:	82 10 00 18 	mov  %i0, %g1                                  <== NOT EXECUTED
   size_t        i;                                                   
   unsigned long num;                                                 
                                                                      
   num = 0;                                                           
   for (i=0; i < len; i++)                                            
4000b46c:	10 80 00 0c 	b  4000b49c <_rtems_octal2ulong+0x3c>          <== NOT EXECUTED
4000b470:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
   {                                                                  
      if ((octascii[i] < '0') || (octascii[i] > '9'))                 
      {                                                               
         continue;                                                    
      }                                                               
      num  = num * 8 + ((unsigned long)(octascii[i] - '0'));          
4000b474:	89 2e 20 03 	sll  %i0, 3, %g4                               <== NOT EXECUTED
4000b478:	9b 28 e0 18 	sll  %g3, 0x18, %o5                            <== NOT EXECUTED
{                                                                     
   size_t        i;                                                   
   unsigned long num;                                                 
                                                                      
   num = 0;                                                           
   for (i=0; i < len; i++)                                            
4000b47c:	84 00 a0 01 	inc  %g2                                       <== NOT EXECUTED
   {                                                                  
      if ((octascii[i] < '0') || (octascii[i] > '9'))                 
      {                                                               
         continue;                                                    
      }                                                               
      num  = num * 8 + ((unsigned long)(octascii[i] - '0'));          
4000b480:	9b 3b 60 18 	sra  %o5, 0x18, %o5                            <== NOT EXECUTED
   unsigned long num;                                                 
                                                                      
   num = 0;                                                           
   for (i=0; i < len; i++)                                            
   {                                                                  
      if ((octascii[i] < '0') || (octascii[i] > '9'))                 
4000b484:	86 00 ff d0 	add  %g3, -48, %g3                             <== NOT EXECUTED
4000b488:	86 08 e0 ff 	and  %g3, 0xff, %g3                            <== NOT EXECUTED
4000b48c:	80 a0 e0 09 	cmp  %g3, 9                                    <== NOT EXECUTED
4000b490:	18 80 00 03 	bgu  4000b49c <_rtems_octal2ulong+0x3c>        <== NOT EXECUTED
4000b494:	9a 03 7f d0 	add  %o5, -48, %o5                             <== NOT EXECUTED
      {                                                               
         continue;                                                    
      }                                                               
      num  = num * 8 + ((unsigned long)(octascii[i] - '0'));          
4000b498:	b0 03 40 04 	add  %o5, %g4, %i0                             <== NOT EXECUTED
{                                                                     
   size_t        i;                                                   
   unsigned long num;                                                 
                                                                      
   num = 0;                                                           
   for (i=0; i < len; i++)                                            
4000b49c:	80 a0 80 19 	cmp  %g2, %i1                                  <== NOT EXECUTED
4000b4a0:	2a bf ff f5 	bcs,a   4000b474 <_rtems_octal2ulong+0x14>     <== NOT EXECUTED
4000b4a4:	c6 08 40 02 	ldub  [ %g1 + %g2 ], %g3                       <== NOT EXECUTED
         continue;                                                    
      }                                                               
      num  = num * 8 + ((unsigned long)(octascii[i] - '0'));          
   }                                                                  
   return(num);                                                       
}                                                                     
4000b4a8:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000b4ac:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

4000b4b0 <_rtems_tar_header_checksum>: ************************************************************************/ int _rtems_tar_header_checksum( const char *bufr ) {
4000b4b0:	82 10 20 00 	clr  %g1                                       <== NOT EXECUTED
4000b4b4:	84 10 20 00 	clr  %g2                                       <== NOT EXECUTED
   int  i, sum;                                                       
                                                                      
   sum = 0;                                                           
   for (i=0; i<512; i++)                                              
   {                                                                  
      if ((i >= 148) && (i < 156))                                    
4000b4b8:	86 00 bf 6c 	add  %g2, -148, %g3                            <== NOT EXECUTED
4000b4bc:	80 a0 e0 07 	cmp  %g3, 7                                    <== NOT EXECUTED
4000b4c0:	38 80 00 04 	bgu,a   4000b4d0 <_rtems_tar_header_checksum+0x20><== NOT EXECUTED
4000b4c4:	c6 0a 00 02 	ldub  [ %o0 + %g2 ], %g3                       <== NOT EXECUTED
         sum += 0xff & ' ';                                           
4000b4c8:	10 80 00 03 	b  4000b4d4 <_rtems_tar_header_checksum+0x24>  <== NOT EXECUTED
4000b4cc:	82 00 60 20 	add  %g1, 0x20, %g1                            <== NOT EXECUTED
      else                                                            
         sum += 0xff & bufr[i];                                       
4000b4d0:	82 00 40 03 	add  %g1, %g3, %g1                             <== NOT EXECUTED
)                                                                     
{                                                                     
   int  i, sum;                                                       
                                                                      
   sum = 0;                                                           
   for (i=0; i<512; i++)                                              
4000b4d4:	84 00 a0 01 	inc  %g2                                       <== NOT EXECUTED
4000b4d8:	80 a0 a2 00 	cmp  %g2, 0x200                                <== NOT EXECUTED
4000b4dc:	12 bf ff f8 	bne  4000b4bc <_rtems_tar_header_checksum+0xc> <== NOT EXECUTED
4000b4e0:	86 00 bf 6c 	add  %g2, -148, %g3                            <== NOT EXECUTED
         sum += 0xff & ' ';                                           
      else                                                            
         sum += 0xff & bufr[i];                                       
   }                                                                  
   return(sum);                                                       
}                                                                     
4000b4e4:	81 c3 e0 08 	retl                                           <== NOT EXECUTED
4000b4e8:	90 10 00 01 	mov  %g1, %o0                                  <== NOT EXECUTED
                                                                      

40005aac <_stat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf );
40005aac:	90 10 00 09 	mov  %o1, %o0                                  <== NOT EXECUTED
40005ab0:	92 10 00 0a 	mov  %o2, %o1                                  <== NOT EXECUTED
40005ab4:	82 13 c0 00 	mov  %o7, %g1                                  <== NOT EXECUTED
40005ab8:	7f ff ff c0 	call  400059b8 <stat>                          <== NOT EXECUTED
40005abc:	9e 10 40 00 	mov  %g1, %o7                                  <== NOT EXECUTED
                                                                      

4000ee54 <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path );
4000ee54:	90 10 00 09 	mov  %o1, %o0                                  <== NOT EXECUTED
4000ee58:	82 13 c0 00 	mov  %o7, %g1                                  <== NOT EXECUTED
4000ee5c:	7f ff ff 57 	call  4000ebb8 <unlink>                        <== NOT EXECUTED
4000ee60:	9e 10 40 00 	mov  %g1, %o7                                  <== NOT EXECUTED
                                                                      

400064ec <adjtime>: int adjtime( struct timeval *delta, struct timeval *olddelta ) {
400064ec:	9d e3 bf 98 	save  %sp, -104, %sp                           
  long   adjustment;                                                  
                                                                      
  /*                                                                  
   * Simple validations                                               
   */                                                                 
  if ( !delta )                                                       
400064f0:	a0 96 20 00 	orcc  %i0, 0, %l0                              
400064f4:	02 80 00 07 	be  40006510 <adjtime+0x24>                    
400064f8:	03 00 03 d0 	sethi  %hi(0xf4000), %g1                       
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( delta->tv_usec >= TOD_MICROSECONDS_PER_SECOND )                
400064fc:	c4 04 20 04 	ld  [ %l0 + 4 ], %g2                           
40006500:	82 10 62 3f 	or  %g1, 0x23f, %g1                            
40006504:	80 a0 80 01 	cmp  %g2, %g1                                  
40006508:	08 80 00 08 	bleu  40006528 <adjtime+0x3c>                  
4000650c:	80 a6 60 00 	cmp  %i1, 0                                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
40006510:	40 00 26 d3 	call  4001005c <__errno>                       
40006514:	b0 10 3f ff 	mov  -1, %i0                                   
40006518:	82 10 20 16 	mov  0x16, %g1                                 
4000651c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
40006520:	81 c7 e0 08 	ret                                            
40006524:	81 e8 00 00 	restore                                        
                                                                      
  if ( olddelta ) {                                                   
40006528:	22 80 00 05 	be,a   4000653c <adjtime+0x50>                 
4000652c:	c2 04 00 00 	ld  [ %l0 ], %g1                               
    olddelta->tv_sec  = 0;                                            
40006530:	c0 26 40 00 	clr  [ %i1 ]                                   
    olddelta->tv_usec = 0;                                            
40006534:	c0 26 60 04 	clr  [ %i1 + 4 ]                               
  }                                                                   
                                                                      
  /* convert delta to microseconds */                                 
  adjustment  = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND);        
40006538:	c2 04 00 00 	ld  [ %l0 ], %g1                               
  adjustment += delta->tv_usec;                                       
                                                                      
  /* too small to account for */                                      
  if ( adjustment < rtems_configuration_get_microseconds_per_tick() ) 
4000653c:	05 10 00 79 	sethi  %hi(0x4001e400), %g2                    
    olddelta->tv_usec = 0;                                            
  }                                                                   
                                                                      
  /* convert delta to microseconds */                                 
  adjustment  = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND);        
  adjustment += delta->tv_usec;                                       
40006540:	c8 04 20 04 	ld  [ %l0 + 4 ], %g4                           
                                                                      
  /* too small to account for */                                      
  if ( adjustment < rtems_configuration_get_microseconds_per_tick() ) 
40006544:	c6 00 a1 54 	ld  [ %g2 + 0x154 ], %g3                       
    olddelta->tv_sec  = 0;                                            
    olddelta->tv_usec = 0;                                            
  }                                                                   
                                                                      
  /* convert delta to microseconds */                                 
  adjustment  = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND);        
40006548:	9b 28 60 08 	sll  %g1, 8, %o5                               
4000654c:	85 28 60 03 	sll  %g1, 3, %g2                               
40006550:	84 23 40 02 	sub  %o5, %g2, %g2                             
40006554:	9b 28 a0 06 	sll  %g2, 6, %o5                               
40006558:	84 23 40 02 	sub  %o5, %g2, %g2                             
4000655c:	82 00 80 01 	add  %g2, %g1, %g1                             
40006560:	83 28 60 06 	sll  %g1, 6, %g1                               
  adjustment += delta->tv_usec;                                       
40006564:	82 00 40 04 	add  %g1, %g4, %g1                             
                                                                      
  /* too small to account for */                                      
  if ( adjustment < rtems_configuration_get_microseconds_per_tick() ) 
40006568:	80 a0 40 03 	cmp  %g1, %g3                                  
4000656c:	0a 80 00 35 	bcs  40006640 <adjtime+0x154>                  
40006570:	03 10 00 7c 	sethi  %hi(0x4001f000), %g1                    
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
40006574:	c4 00 61 30 	ld  [ %g1 + 0x130 ], %g2	! 4001f130 <_Thread_Dispatch_disable_level>
40006578:	84 00 a0 01 	inc  %g2                                       
4000657c:	c4 20 61 30 	st  %g2, [ %g1 + 0x130 ]                       
   * This prevents context switches while we are adjusting the TOD    
   */                                                                 
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
    _TOD_Get( &ts );                                                  
40006580:	40 00 06 24 	call  40007e10 <_TOD_Get>                      
40006584:	90 07 bf f8 	add  %fp, -8, %o0                              
                                                                      
    ts.tv_sec  += delta->tv_sec;                                      
    ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;   
40006588:	c4 04 20 04 	ld  [ %l0 + 4 ], %g2                           
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
    _TOD_Get( &ts );                                                  
                                                                      
    ts.tv_sec  += delta->tv_sec;                                      
4000658c:	c2 04 00 00 	ld  [ %l0 ], %g1                               
    ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;   
40006590:	c8 07 bf f8 	ld  [ %fp + -8 ], %g4                          
40006594:	87 28 a0 07 	sll  %g2, 7, %g3                               
40006598:	88 01 00 01 	add  %g4, %g1, %g4                             
4000659c:	83 28 a0 02 	sll  %g2, 2, %g1                               
400065a0:	82 20 c0 01 	sub  %g3, %g1, %g1                             
400065a4:	c6 07 bf fc 	ld  [ %fp + -4 ], %g3                          
400065a8:	82 00 40 02 	add  %g1, %g2, %g1                             
                                                                      
    /* if adjustment is too much positive */                          
    while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {              
400065ac:	1b 0e e6 b2 	sethi  %hi(0x3b9ac800), %o5                    
  _Thread_Disable_dispatch();                                         
                                                                      
    _TOD_Get( &ts );                                                  
                                                                      
    ts.tv_sec  += delta->tv_sec;                                      
    ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;   
400065b0:	83 28 60 03 	sll  %g1, 3, %g1                               
                                                                      
    /* if adjustment is too much positive */                          
    while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {              
400065b4:	05 31 19 4d 	sethi  %hi(0xc4653400), %g2                    
  _Thread_Disable_dispatch();                                         
                                                                      
    _TOD_Get( &ts );                                                  
                                                                      
    ts.tv_sec  += delta->tv_sec;                                      
    ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;   
400065b8:	82 00 40 03 	add  %g1, %g3, %g1                             
                                                                      
    /* if adjustment is too much positive */                          
    while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {              
400065bc:	9a 13 61 ff 	or  %o5, 0x1ff, %o5                            
400065c0:	10 80 00 03 	b  400065cc <adjtime+0xe0>                     
400065c4:	84 10 a2 00 	or  %g2, 0x200, %g2                            
400065c8:	82 00 40 02 	add  %g1, %g2, %g1                             
400065cc:	86 10 00 04 	mov  %g4, %g3                                  
400065d0:	80 a0 40 0d 	cmp  %g1, %o5                                  
400065d4:	18 bf ff fd 	bgu  400065c8 <adjtime+0xdc>                   
400065d8:	88 01 20 01 	inc  %g4                                       
      ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND;                       
      ts.tv_sec++;                                                    
    }                                                                 
                                                                      
    /* if adjustment is too much negative */                          
    while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) {       
400065dc:	1b 31 19 4d 	sethi  %hi(0xc4653400), %o5                    
                                                                      
    ts.tv_sec  += delta->tv_sec;                                      
    ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;   
                                                                      
    /* if adjustment is too much positive */                          
    while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {              
400065e0:	09 0e e6 b2 	sethi  %hi(0x3b9ac800), %g4                    
      ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND;                       
      ts.tv_sec++;                                                    
    }                                                                 
                                                                      
    /* if adjustment is too much negative */                          
    while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) {       
400065e4:	9a 13 62 00 	or  %o5, 0x200, %o5                            
                                                                      
    ts.tv_sec  += delta->tv_sec;                                      
    ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;   
                                                                      
    /* if adjustment is too much positive */                          
    while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {              
400065e8:	10 80 00 03 	b  400065f4 <adjtime+0x108>                    
400065ec:	88 11 22 00 	or  %g4, 0x200, %g4                            
400065f0:	82 00 40 04 	add  %g1, %g4, %g1                             
400065f4:	84 10 00 03 	mov  %g3, %g2                                  
      ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND;                       
      ts.tv_sec++;                                                    
    }                                                                 
                                                                      
    /* if adjustment is too much negative */                          
    while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) {       
400065f8:	80 a0 40 0d 	cmp  %g1, %o5                                  
400065fc:	08 bf ff fd 	bleu  400065f0 <adjtime+0x104>                 
40006600:	86 00 ff ff 	add  %g3, -1, %g3                              
      ts.tv_nsec += TOD_NANOSECONDS_PER_SECOND;                       
      ts.tv_sec--;                                                    
    }                                                                 
                                                                      
    _TOD_Set( &ts );                                                  
40006604:	90 07 bf f8 	add  %fp, -8, %o0                              
      ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND;                       
      ts.tv_sec++;                                                    
    }                                                                 
                                                                      
    /* if adjustment is too much negative */                          
    while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) {       
40006608:	c2 27 bf fc 	st  %g1, [ %fp + -4 ]                          
      ts.tv_nsec += TOD_NANOSECONDS_PER_SECOND;                       
      ts.tv_sec--;                                                    
    }                                                                 
                                                                      
    _TOD_Set( &ts );                                                  
4000660c:	40 00 06 2d 	call  40007ec0 <_TOD_Set>                      
40006610:	c4 27 bf f8 	st  %g2, [ %fp + -8 ]                          
                                                                      
  _Thread_Enable_dispatch();                                          
40006614:	40 00 0a df 	call  40009190 <_Thread_Enable_dispatch>       
40006618:	01 00 00 00 	nop                                            
                                                                      
  /* set the user's output */                                         
  if ( olddelta )                                                     
4000661c:	80 a6 60 00 	cmp  %i1, 0                                    
40006620:	02 80 00 08 	be  40006640 <adjtime+0x154>                   <== NEVER TAKEN
40006624:	01 00 00 00 	nop                                            
    *olddelta = *delta;                                               
40006628:	c2 04 00 00 	ld  [ %l0 ], %g1                               
4000662c:	c2 26 40 00 	st  %g1, [ %i1 ]                               
40006630:	c2 04 20 04 	ld  [ %l0 + 4 ], %g1                           
40006634:	c2 26 60 04 	st  %g1, [ %i1 + 4 ]                           
40006638:	81 c7 e0 08 	ret                                            
4000663c:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      
  return 0;                                                           
}                                                                     
40006640:	81 c7 e0 08 	ret                                            
40006644:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

4000b064 <calloc>: ) { register char *cptr; size_t length; MSBUMP(calloc_calls, 1);
4000b064:	9d e3 bf a0 	save  %sp, -96, %sp                            
4000b068:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
4000b06c:	82 10 63 a8 	or  %g1, 0x3a8, %g1	! 4001d7a8 <rtems_malloc_statistics>
4000b070:	c4 00 60 14 	ld  [ %g1 + 0x14 ], %g2                        
                                                                      
  length = nelem * elsize;                                            
4000b074:	92 10 00 18 	mov  %i0, %o1                                  
)                                                                     
{                                                                     
  register char *cptr;                                                
  size_t length;                                                      
                                                                      
  MSBUMP(calloc_calls, 1);                                            
4000b078:	84 00 a0 01 	inc  %g2                                       
                                                                      
  length = nelem * elsize;                                            
4000b07c:	90 10 00 19 	mov  %i1, %o0                                  
4000b080:	40 00 36 75 	call  40018a54 <.umul>                         
4000b084:	c4 20 60 14 	st  %g2, [ %g1 + 0x14 ]                        
  cptr = malloc( length );                                            
4000b088:	40 00 01 9f 	call  4000b704 <malloc>                        
4000b08c:	a0 10 00 08 	mov  %o0, %l0                                  
  if ( cptr )                                                         
4000b090:	b0 92 20 00 	orcc  %o0, 0, %i0                              
4000b094:	02 80 00 04 	be  4000b0a4 <calloc+0x40>                     <== NEVER TAKEN
4000b098:	94 10 00 10 	mov  %l0, %o2                                  
    memset( cptr, '\0', length );                                     
4000b09c:	40 00 13 8b 	call  4000fec8 <memset>                        
4000b0a0:	92 10 20 00 	clr  %o1                                       
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
4000b0a4:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
4000b0a8:	82 10 63 a8 	or  %g1, 0x3a8, %g1	! 4001d7a8 <rtems_malloc_statistics>
4000b0ac:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           
4000b0b0:	84 00 bf ff 	add  %g2, -1, %g2                              
4000b0b4:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
                                                                      
  return cptr;                                                        
}                                                                     
4000b0b8:	81 c7 e0 08 	ret                                            
4000b0bc:	81 e8 00 00 	restore                                        
                                                                      

4000d23c <chdir>: #include <rtems/seterr.h> int chdir( const char *pathname ) {
4000d23c:	9d e3 bf 88 	save  %sp, -120, %sp                           
  rtems_filesystem_location_info_t  loc;                              
  int                               result;                           
                                                                      
  if ( !pathname )                                                    
4000d240:	80 a6 20 00 	cmp  %i0, 0                                    
4000d244:	12 80 00 06 	bne  4000d25c <chdir+0x20>                     
4000d248:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EFAULT );                   
4000d24c:	40 00 11 23 	call  400116d8 <__errno>                       
4000d250:	01 00 00 00 	nop                                            
4000d254:	10 80 00 2f 	b  4000d310 <chdir+0xd4>                       
4000d258:	82 10 20 0e 	mov  0xe, %g1	! e <PROM_START+0xe>             
                                                                      
  /*                                                                  
   *  Get the node where we wish to go.                               
   */                                                                 
  result = rtems_filesystem_evaluate_path(                            
    pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true );
4000d25c:	40 00 14 be 	call  40012554 <strlen>                        
4000d260:	90 10 00 18 	mov  %i0, %o0                                  
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  /*                                                                  
   *  Get the node where we wish to go.                               
   */                                                                 
  result = rtems_filesystem_evaluate_path(                            
4000d264:	a0 07 bf ec 	add  %fp, -20, %l0                             
    pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true );
4000d268:	92 10 00 08 	mov  %o0, %o1                                  
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  /*                                                                  
   *  Get the node where we wish to go.                               
   */                                                                 
  result = rtems_filesystem_evaluate_path(                            
4000d26c:	94 10 20 01 	mov  1, %o2                                    
4000d270:	90 10 00 18 	mov  %i0, %o0                                  
4000d274:	96 10 00 10 	mov  %l0, %o3                                  
4000d278:	98 10 20 01 	mov  1, %o4                                    
4000d27c:	7f ff d9 f8 	call  40003a5c <rtems_filesystem_evaluate_path>
4000d280:	b0 10 3f ff 	mov  -1, %i0                                   
    pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true );
  if ( result != 0 )                                                  
4000d284:	80 a2 20 00 	cmp  %o0, 0                                    
4000d288:	12 80 00 37 	bne  4000d364 <chdir+0x128>                    
4000d28c:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          
     return -1;                                                       
                                                                      
  /*                                                                  
   * Verify you can change directory into this node.                  
   */                                                                 
  if ( !loc.ops->node_type_h ) {                                      
4000d290:	c2 00 a0 10 	ld  [ %g2 + 0x10 ], %g1                        
4000d294:	80 a0 60 00 	cmp  %g1, 0                                    
4000d298:	12 80 00 0c 	bne  4000d2c8 <chdir+0x8c>                     <== ALWAYS TAKEN
4000d29c:	01 00 00 00 	nop                                            
    rtems_filesystem_freenode( &loc );                                
4000d2a0:	c2 00 a0 1c 	ld  [ %g2 + 0x1c ], %g1                        <== NOT EXECUTED
4000d2a4:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000d2a8:	02 80 00 04 	be  4000d2b8 <chdir+0x7c>                      <== NOT EXECUTED
4000d2ac:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000d2b0:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
4000d2b4:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
4000d2b8:	40 00 11 08 	call  400116d8 <__errno>                       <== NOT EXECUTED
4000d2bc:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000d2c0:	10 80 00 14 	b  4000d310 <chdir+0xd4>                       <== NOT EXECUTED
4000d2c4:	82 10 20 86 	mov  0x86, %g1	! 86 <PROM_START+0x86>          <== NOT EXECUTED
  }                                                                   
                                                                      
  if (  (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
4000d2c8:	9f c0 40 00 	call  %g1                                      
4000d2cc:	90 10 00 10 	mov  %l0, %o0                                  
4000d2d0:	80 a2 20 01 	cmp  %o0, 1                                    
4000d2d4:	02 80 00 12 	be  4000d31c <chdir+0xe0>                      
4000d2d8:	03 10 00 7e 	sethi  %hi(0x4001f800), %g1                    
    rtems_filesystem_freenode( &loc );                                
4000d2dc:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
4000d2e0:	80 a0 60 00 	cmp  %g1, 0                                    
4000d2e4:	02 80 00 08 	be  4000d304 <chdir+0xc8>                      <== NEVER TAKEN
4000d2e8:	01 00 00 00 	nop                                            
4000d2ec:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
4000d2f0:	80 a0 60 00 	cmp  %g1, 0                                    
4000d2f4:	02 80 00 04 	be  4000d304 <chdir+0xc8>                      <== NEVER TAKEN
4000d2f8:	01 00 00 00 	nop                                            
4000d2fc:	9f c0 40 00 	call  %g1                                      
4000d300:	90 10 00 10 	mov  %l0, %o0                                  
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
4000d304:	40 00 10 f5 	call  400116d8 <__errno>                       
4000d308:	01 00 00 00 	nop                                            
4000d30c:	82 10 20 14 	mov  0x14, %g1	! 14 <PROM_START+0x14>          
4000d310:	c2 22 00 00 	st  %g1, [ %o0 ]                               
4000d314:	81 c7 e0 08 	ret                                            
4000d318:	91 e8 3f ff 	restore  %g0, -1, %o0                          
  }                                                                   
                                                                      
  rtems_filesystem_freenode( &rtems_filesystem_current );             
4000d31c:	d0 00 63 50 	ld  [ %g1 + 0x350 ], %o0                       
4000d320:	c2 02 20 10 	ld  [ %o0 + 0x10 ], %g1                        
4000d324:	80 a0 60 00 	cmp  %g1, 0                                    
4000d328:	22 80 00 09 	be,a   4000d34c <chdir+0x110>                  <== NEVER TAKEN
4000d32c:	03 10 00 7e 	sethi  %hi(0x4001f800), %g1                    <== NOT EXECUTED
4000d330:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1	! 4001f81c <__mprec_bigtens+0x1c>
4000d334:	80 a0 60 00 	cmp  %g1, 0                                    
4000d338:	22 80 00 05 	be,a   4000d34c <chdir+0x110>                  <== NEVER TAKEN
4000d33c:	03 10 00 7e 	sethi  %hi(0x4001f800), %g1                    <== NOT EXECUTED
4000d340:	9f c0 40 00 	call  %g1                                      
4000d344:	90 02 20 04 	add  %o0, 4, %o0                               
                                                                      
  rtems_filesystem_current = loc;                                     
4000d348:	03 10 00 7e 	sethi  %hi(0x4001f800), %g1                    
4000d34c:	d0 00 63 50 	ld  [ %g1 + 0x350 ], %o0	! 4001fb50 <rtems_current_user_env>
4000d350:	92 07 bf ec 	add  %fp, -20, %o1                             
4000d354:	90 02 20 04 	add  %o0, 4, %o0                               
4000d358:	94 10 20 14 	mov  0x14, %o2                                 
4000d35c:	40 00 13 1b 	call  40011fc8 <memcpy>                        
4000d360:	b0 10 20 00 	clr  %i0                                       
                                                                      
  return 0;                                                           
}                                                                     
4000d364:	81 c7 e0 08 	ret                                            
4000d368:	81 e8 00 00 	restore                                        
                                                                      

40005384 <chmod>: int chmod( const char *path, mode_t mode ) {
40005384:	9d e3 bf 88 	save  %sp, -120, %sp                           
  int                              status;                            
  rtems_filesystem_location_info_t loc;                               
  int                              result;                            
                                                                      
  status = rtems_filesystem_evaluate_path( path, strlen( path ), 0, &loc, true );
40005388:	40 00 41 57 	call  400158e4 <strlen>                        
4000538c:	90 10 00 18 	mov  %i0, %o0                                  
40005390:	a0 07 bf ec 	add  %fp, -20, %l0                             
40005394:	92 10 00 08 	mov  %o0, %o1                                  
40005398:	94 10 20 00 	clr  %o2                                       
4000539c:	90 10 00 18 	mov  %i0, %o0                                  
400053a0:	96 10 00 10 	mov  %l0, %o3                                  
400053a4:	98 10 20 01 	mov  1, %o4                                    
400053a8:	40 00 00 c5 	call  400056bc <rtems_filesystem_evaluate_path>
400053ac:	b0 10 3f ff 	mov  -1, %i0                                   
  if ( status != 0 )                                                  
400053b0:	80 a2 20 00 	cmp  %o0, 0                                    
400053b4:	12 80 00 24 	bne  40005444 <chmod+0xc0>                     
400053b8:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
    return -1;                                                        
                                                                      
  if ( !loc.handlers ){                                               
400053bc:	80 a0 60 00 	cmp  %g1, 0                                    
400053c0:	32 80 00 10 	bne,a   40005400 <chmod+0x7c>                  <== ALWAYS TAKEN
400053c4:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
    rtems_filesystem_freenode( &loc );                                
400053c8:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          <== NOT EXECUTED
400053cc:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
400053d0:	02 80 00 08 	be  400053f0 <chmod+0x6c>                      <== NOT EXECUTED
400053d4:	01 00 00 00 	nop                                            <== NOT EXECUTED
400053d8:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        <== NOT EXECUTED
400053dc:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
400053e0:	02 80 00 04 	be  400053f0 <chmod+0x6c>                      <== NOT EXECUTED
400053e4:	01 00 00 00 	nop                                            <== NOT EXECUTED
400053e8:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
400053ec:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
    rtems_set_errno_and_return_minus_one( EBADF );                    
400053f0:	40 00 3a 10 	call  40013c30 <__errno>                       <== NOT EXECUTED
400053f4:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
400053f8:	10 80 00 12 	b  40005440 <chmod+0xbc>                       <== NOT EXECUTED
400053fc:	82 10 20 09 	mov  9, %g1                                    <== NOT EXECUTED
  }                                                                   
                                                                      
  if ( !loc.handlers->fchmod_h ){                                     
40005400:	80 a0 60 00 	cmp  %g1, 0                                    
40005404:	12 80 00 12 	bne  4000544c <chmod+0xc8>                     <== ALWAYS TAKEN
40005408:	92 10 00 19 	mov  %i1, %o1                                  
    rtems_filesystem_freenode( &loc );                                
4000540c:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          <== NOT EXECUTED
40005410:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40005414:	02 80 00 08 	be  40005434 <chmod+0xb0>                      <== NOT EXECUTED
40005418:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000541c:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        <== NOT EXECUTED
40005420:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40005424:	02 80 00 04 	be  40005434 <chmod+0xb0>                      <== NOT EXECUTED
40005428:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000542c:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40005430:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
40005434:	40 00 39 ff 	call  40013c30 <__errno>                       <== NOT EXECUTED
40005438:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
4000543c:	82 10 20 86 	mov  0x86, %g1                                 <== NOT EXECUTED
40005440:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
40005444:	81 c7 e0 08 	ret                                            
40005448:	81 e8 00 00 	restore                                        
  }                                                                   
                                                                      
  result = (*loc.handlers->fchmod_h)( &loc, mode );                   
4000544c:	9f c0 40 00 	call  %g1                                      
40005450:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
  rtems_filesystem_freenode( &loc );                                  
40005454:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
40005458:	80 a0 60 00 	cmp  %g1, 0                                    
4000545c:	02 bf ff fa 	be  40005444 <chmod+0xc0>                      <== NEVER TAKEN
40005460:	b0 10 00 08 	mov  %o0, %i0                                  
40005464:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
40005468:	80 a0 60 00 	cmp  %g1, 0                                    
4000546c:	02 80 00 04 	be  4000547c <chmod+0xf8>                      <== NEVER TAKEN
40005470:	01 00 00 00 	nop                                            
40005474:	9f c0 40 00 	call  %g1                                      
40005478:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
  return result;                                                      
}                                                                     
4000547c:	81 c7 e0 08 	ret                                            
40005480:	81 e8 00 00 	restore                                        
                                                                      

40005484 <chown>: int chown( const char *path, uid_t owner, gid_t group ) {
40005484:	9d e3 bf 88 	save  %sp, -120, %sp                           
  rtems_filesystem_location_info_t   loc;                             
  int                                result;                          
                                                                      
  if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) )
40005488:	40 00 41 17 	call  400158e4 <strlen>                        
4000548c:	90 10 00 18 	mov  %i0, %o0                                  
40005490:	a0 07 bf ec 	add  %fp, -20, %l0                             
40005494:	92 10 00 08 	mov  %o0, %o1                                  
40005498:	94 10 20 00 	clr  %o2                                       
4000549c:	90 10 00 18 	mov  %i0, %o0                                  
400054a0:	96 10 00 10 	mov  %l0, %o3                                  
400054a4:	98 10 20 01 	mov  1, %o4                                    
400054a8:	40 00 00 85 	call  400056bc <rtems_filesystem_evaluate_path>
400054ac:	b0 10 3f ff 	mov  -1, %i0                                   
400054b0:	80 a2 20 00 	cmp  %o0, 0                                    
400054b4:	12 80 00 10 	bne  400054f4 <chown+0x70>                     
400054b8:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          
    return -1;                                                        
                                                                      
  if ( !loc.ops->chown_h ) {                                          
400054bc:	c2 00 a0 18 	ld  [ %g2 + 0x18 ], %g1                        
400054c0:	80 a0 60 00 	cmp  %g1, 0                                    
400054c4:	12 80 00 0e 	bne  400054fc <chown+0x78>                     <== ALWAYS TAKEN
400054c8:	93 2e 60 10 	sll  %i1, 0x10, %o1                            
    rtems_filesystem_freenode( &loc );                                
400054cc:	c2 00 a0 1c 	ld  [ %g2 + 0x1c ], %g1                        <== NOT EXECUTED
400054d0:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
400054d4:	02 80 00 04 	be  400054e4 <chown+0x60>                      <== NOT EXECUTED
400054d8:	01 00 00 00 	nop                                            <== NOT EXECUTED
400054dc:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
400054e0:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
400054e4:	40 00 39 d3 	call  40013c30 <__errno>                       <== NOT EXECUTED
400054e8:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
400054ec:	82 10 20 86 	mov  0x86, %g1                                 <== NOT EXECUTED
400054f0:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
400054f4:	81 c7 e0 08 	ret                                            
400054f8:	81 e8 00 00 	restore                                        
  }                                                                   
                                                                      
  result = (*loc.ops->chown_h)( &loc, owner, group );                 
400054fc:	95 2e a0 10 	sll  %i2, 0x10, %o2                            
40005500:	93 32 60 10 	srl  %o1, 0x10, %o1                            
40005504:	95 32 a0 10 	srl  %o2, 0x10, %o2                            
40005508:	9f c0 40 00 	call  %g1                                      
4000550c:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
  rtems_filesystem_freenode( &loc );                                  
40005510:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
40005514:	80 a0 60 00 	cmp  %g1, 0                                    
40005518:	02 bf ff f7 	be  400054f4 <chown+0x70>                      <== NEVER TAKEN
4000551c:	b0 10 00 08 	mov  %o0, %i0                                  
40005520:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
40005524:	80 a0 60 00 	cmp  %g1, 0                                    
40005528:	02 80 00 04 	be  40005538 <chown+0xb4>                      <== NEVER TAKEN
4000552c:	01 00 00 00 	nop                                            
40005530:	9f c0 40 00 	call  %g1                                      
40005534:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
  return result;                                                      
}                                                                     
40005538:	81 c7 e0 08 	ret                                            
4000553c:	81 e8 00 00 	restore                                        
                                                                      

4000372c <chroot>: #include <rtems/seterr.h> int chroot( const char *pathname ) {
4000372c:	9d e3 bf 88 	save  %sp, -120, %sp                           
  int                               result;                           
  rtems_filesystem_location_info_t  loc;                              
                                                                      
  /* an automatic call to new private env the first time */           
  if (rtems_current_user_env == &rtems_global_user_env) {             
40003730:	23 10 00 7e 	sethi  %hi(0x4001f800), %l1                    
40003734:	e0 04 63 50 	ld  [ %l1 + 0x350 ], %l0	! 4001fb50 <rtems_current_user_env>
40003738:	03 10 00 81 	sethi  %hi(0x40020400), %g1                    
4000373c:	82 10 60 40 	or  %g1, 0x40, %g1	! 40020440 <rtems_global_user_env>
40003740:	80 a4 00 01 	cmp  %l0, %g1                                  
40003744:	12 80 00 0e 	bne  4000377c <chroot+0x50>                    <== NEVER TAKEN
40003748:	01 00 00 00 	nop                                            
   rtems_libio_set_private_env(); /* try to set a new private env*/   
4000374c:	40 00 05 90 	call  40004d8c <rtems_libio_set_private_env>   
40003750:	01 00 00 00 	nop                                            
   if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 
40003754:	c2 04 63 50 	ld  [ %l1 + 0x350 ], %g1                       
40003758:	80 a0 40 10 	cmp  %g1, %l0                                  
4000375c:	12 80 00 08 	bne  4000377c <chroot+0x50>                    <== ALWAYS TAKEN
40003760:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
40003764:	40 00 37 dd 	call  400116d8 <__errno>                       <== NOT EXECUTED
40003768:	b0 10 3f ff 	mov  -1, %i0	! ffffffff <LEON_REG+0x7fffffff>  <== NOT EXECUTED
4000376c:	82 10 20 86 	mov  0x86, %g1                                 <== NOT EXECUTED
40003770:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
40003774:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40003778:	81 e8 00 00 	restore                                        <== NOT EXECUTED
  }                                                                   
                                                                      
  result = chdir(pathname);                                           
4000377c:	40 00 26 b0 	call  4000d23c <chdir>                         
40003780:	90 10 00 18 	mov  %i0, %o0                                  
  if (result) {                                                       
40003784:	80 a2 20 00 	cmp  %o0, 0                                    
40003788:	12 80 00 0b 	bne  400037b4 <chroot+0x88>                    <== NEVER TAKEN
4000378c:	11 10 00 7a 	sethi  %hi(0x4001e800), %o0                    
    rtems_set_errno_and_return_minus_one( errno );                    
  }                                                                   
                                                                      
  /* clone the new root location */                                   
  if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {           
40003790:	92 10 20 01 	mov  1, %o1                                    
40003794:	90 12 20 58 	or  %o0, 0x58, %o0                             
40003798:	94 10 20 00 	clr  %o2                                       
4000379c:	96 07 bf ec 	add  %fp, -20, %o3                             
400037a0:	40 00 00 af 	call  40003a5c <rtems_filesystem_evaluate_path>
400037a4:	98 10 20 00 	clr  %o4                                       
400037a8:	80 a2 20 00 	cmp  %o0, 0                                    
400037ac:	02 80 00 0a 	be  400037d4 <chroot+0xa8>                     <== ALWAYS TAKEN
400037b0:	03 10 00 7e 	sethi  %hi(0x4001f800), %g1                    
    /* our cwd has changed, though - but there is no easy way of return :-( */
    rtems_set_errno_and_return_minus_one( errno );                    
400037b4:	40 00 37 c9 	call  400116d8 <__errno>                       <== NOT EXECUTED
400037b8:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
400037bc:	40 00 37 c7 	call  400116d8 <__errno>                       <== NOT EXECUTED
400037c0:	a0 10 00 08 	mov  %o0, %l0                                  <== NOT EXECUTED
400037c4:	c2 02 00 00 	ld  [ %o0 ], %g1                               <== NOT EXECUTED
400037c8:	c2 24 00 00 	st  %g1, [ %l0 ]                               <== NOT EXECUTED
400037cc:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
400037d0:	81 e8 00 00 	restore                                        <== NOT EXECUTED
  }                                                                   
  rtems_filesystem_freenode(&rtems_filesystem_root);                  
400037d4:	d0 00 63 50 	ld  [ %g1 + 0x350 ], %o0                       
400037d8:	c2 02 20 24 	ld  [ %o0 + 0x24 ], %g1                        
400037dc:	80 a0 60 00 	cmp  %g1, 0                                    
400037e0:	22 80 00 09 	be,a   40003804 <chroot+0xd8>                  <== NEVER TAKEN
400037e4:	03 10 00 7e 	sethi  %hi(0x4001f800), %g1                    <== NOT EXECUTED
400037e8:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1	! 4001f81c <__mprec_bigtens+0x1c>
400037ec:	80 a0 60 00 	cmp  %g1, 0                                    
400037f0:	22 80 00 05 	be,a   40003804 <chroot+0xd8>                  <== NEVER TAKEN
400037f4:	03 10 00 7e 	sethi  %hi(0x4001f800), %g1                    <== NOT EXECUTED
400037f8:	9f c0 40 00 	call  %g1                                      
400037fc:	90 02 20 18 	add  %o0, 0x18, %o0                            
  rtems_filesystem_root = loc;                                        
40003800:	03 10 00 7e 	sethi  %hi(0x4001f800), %g1                    
40003804:	d0 00 63 50 	ld  [ %g1 + 0x350 ], %o0	! 4001fb50 <rtems_current_user_env>
40003808:	92 07 bf ec 	add  %fp, -20, %o1                             
4000380c:	94 10 20 14 	mov  0x14, %o2                                 
40003810:	90 02 20 18 	add  %o0, 0x18, %o0                            
40003814:	40 00 39 ed 	call  40011fc8 <memcpy>                        
40003818:	b0 10 20 00 	clr  %i0                                       
                                                                      
  return 0;                                                           
}                                                                     
4000381c:	81 c7 e0 08 	ret                                            
40003820:	81 e8 00 00 	restore                                        
                                                                      

4000642c <clock_gettime>: int clock_gettime( clockid_t clock_id, struct timespec *tp ) {
4000642c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if ( !tp )                                                          
40006430:	90 96 60 00 	orcc  %i1, 0, %o0                              
40006434:	12 80 00 06 	bne  4000644c <clock_gettime+0x20>             
40006438:	80 a6 20 01 	cmp  %i0, 1                                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
4000643c:	40 00 28 3d 	call  40010530 <__errno>                       
40006440:	01 00 00 00 	nop                                            
40006444:	10 80 00 14 	b  40006494 <clock_gettime+0x68>               
40006448:	82 10 20 16 	mov  0x16, %g1	! 16 <PROM_START+0x16>          
                                                                      
  if ( clock_id == CLOCK_REALTIME ) {                                 
4000644c:	12 80 00 05 	bne  40006460 <clock_gettime+0x34>             
40006450:	80 a6 20 04 	cmp  %i0, 4                                    
    _TOD_Get(tp);                                                     
40006454:	40 00 07 c7 	call  40008370 <_TOD_Get>                      
40006458:	b0 10 20 00 	clr  %i0                                       
4000645c:	30 80 00 15 	b,a   400064b0 <clock_gettime+0x84>            
    return 0;                                                         
  }                                                                   
#ifdef CLOCK_MONOTONIC                                                
  if ( clock_id == CLOCK_MONOTONIC ) {                                
40006460:	02 80 00 04 	be  40006470 <clock_gettime+0x44>              <== NEVER TAKEN
40006464:	80 a6 20 02 	cmp  %i0, 2                                    
    return 0;                                                         
  }                                                                   
#endif                                                                
                                                                      
#ifdef _POSIX_CPUTIME                                                 
  if ( clock_id == CLOCK_PROCESS_CPUTIME ) {                          
40006468:	12 80 00 06 	bne  40006480 <clock_gettime+0x54>             
4000646c:	80 a6 20 03 	cmp  %i0, 3                                    
    _TOD_Get_uptime_as_timespec( tp );                                
40006470:	40 00 07 df 	call  400083ec <_TOD_Get_uptime_as_timespec>   
40006474:	b0 10 20 00 	clr  %i0                                       
    return 0;                                                         
40006478:	81 c7 e0 08 	ret                                            
4000647c:	81 e8 00 00 	restore                                        
  }                                                                   
#endif                                                                
                                                                      
#ifdef _POSIX_THREAD_CPUTIME                                          
  if ( clock_id == CLOCK_THREAD_CPUTIME )                             
40006480:	12 80 00 08 	bne  400064a0 <clock_gettime+0x74>             
40006484:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
40006488:	40 00 28 2a 	call  40010530 <__errno>                       
4000648c:	01 00 00 00 	nop                                            
40006490:	82 10 20 58 	mov  0x58, %g1	! 58 <PROM_START+0x58>          
40006494:	c2 22 00 00 	st  %g1, [ %o0 ]                               
40006498:	81 c7 e0 08 	ret                                            
4000649c:	91 e8 3f ff 	restore  %g0, -1, %o0                          
#endif                                                                
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
400064a0:	40 00 28 24 	call  40010530 <__errno>                       
400064a4:	b0 10 3f ff 	mov  -1, %i0                                   
400064a8:	82 10 20 16 	mov  0x16, %g1                                 
400064ac:	c2 22 00 00 	st  %g1, [ %o0 ]                               
                                                                      
  return 0;                                                           
}                                                                     
400064b0:	81 c7 e0 08 	ret                                            
400064b4:	81 e8 00 00 	restore                                        
                                                                      

400064b8 <clock_settime>: int clock_settime( clockid_t clock_id, const struct timespec *tp ) {
400064b8:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if ( !tp )                                                          
400064bc:	90 96 60 00 	orcc  %i1, 0, %o0                              
400064c0:	02 80 00 0a 	be  400064e8 <clock_settime+0x30>              <== NEVER TAKEN
400064c4:	80 a6 20 01 	cmp  %i0, 1                                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( clock_id == CLOCK_REALTIME ) {                                 
400064c8:	12 80 00 15 	bne  4000651c <clock_settime+0x64>             
400064cc:	80 a6 20 02 	cmp  %i0, 2                                    
    if ( tp->tv_sec < TOD_SECONDS_1970_THROUGH_1988 )                 
400064d0:	c4 02 00 00 	ld  [ %o0 ], %g2                               
400064d4:	03 08 76 b9 	sethi  %hi(0x21dae400), %g1                    
400064d8:	82 10 60 ff 	or  %g1, 0xff, %g1	! 21dae4ff <RAM_SIZE+0x219ae4ff>
400064dc:	80 a0 80 01 	cmp  %g2, %g1                                  
400064e0:	38 80 00 06 	bgu,a   400064f8 <clock_settime+0x40>          
400064e4:	03 10 00 7f 	sethi  %hi(0x4001fc00), %g1                    
      rtems_set_errno_and_return_minus_one( EINVAL );                 
400064e8:	40 00 28 12 	call  40010530 <__errno>                       
400064ec:	01 00 00 00 	nop                                            
400064f0:	10 80 00 12 	b  40006538 <clock_settime+0x80>               
400064f4:	82 10 20 16 	mov  0x16, %g1	! 16 <PROM_START+0x16>          
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
400064f8:	c4 00 60 10 	ld  [ %g1 + 0x10 ], %g2                        
400064fc:	84 00 a0 01 	inc  %g2                                       
40006500:	c4 20 60 10 	st  %g2, [ %g1 + 0x10 ]                        
                                                                      
    _Thread_Disable_dispatch();                                       
      _TOD_Set( tp );                                                 
40006504:	40 00 07 d0 	call  40008444 <_TOD_Set>                      
40006508:	b0 10 20 00 	clr  %i0                                       
    _Thread_Enable_dispatch();                                        
4000650c:	40 00 0c 82 	call  40009714 <_Thread_Enable_dispatch>       
40006510:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
#endif                                                                
  else                                                                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  return 0;                                                           
40006514:	81 c7 e0 08 	ret                                            
40006518:	81 e8 00 00 	restore                                        
    _Thread_Disable_dispatch();                                       
      _TOD_Set( tp );                                                 
    _Thread_Enable_dispatch();                                        
  }                                                                   
#ifdef _POSIX_CPUTIME                                                 
  else if ( clock_id == CLOCK_PROCESS_CPUTIME )                       
4000651c:	02 80 00 04 	be  4000652c <clock_settime+0x74>              
40006520:	80 a6 20 03 	cmp  %i0, 3                                    
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
#endif                                                                
#ifdef _POSIX_THREAD_CPUTIME                                          
  else if ( clock_id == CLOCK_THREAD_CPUTIME )                        
40006524:	12 80 00 08 	bne  40006544 <clock_settime+0x8c>             
40006528:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
4000652c:	40 00 28 01 	call  40010530 <__errno>                       
40006530:	01 00 00 00 	nop                                            
40006534:	82 10 20 58 	mov  0x58, %g1	! 58 <PROM_START+0x58>          
40006538:	c2 22 00 00 	st  %g1, [ %o0 ]                               
4000653c:	81 c7 e0 08 	ret                                            
40006540:	91 e8 3f ff 	restore  %g0, -1, %o0                          
#endif                                                                
  else                                                                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
40006544:	40 00 27 fb 	call  40010530 <__errno>                       
40006548:	b0 10 3f ff 	mov  -1, %i0                                   
4000654c:	82 10 20 16 	mov  0x16, %g1                                 
40006550:	c2 22 00 00 	st  %g1, [ %o0 ]                               
                                                                      
  return 0;                                                           
}                                                                     
40006554:	81 c7 e0 08 	ret                                            
40006558:	81 e8 00 00 	restore                                        
                                                                      

4000b0c0 <close>: #include <rtems/libio_.h> int close( int fd ) {
4000b0c0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_libio_t      *iop;                                            
  rtems_status_code   rc;                                             
                                                                      
  rtems_libio_check_fd(fd);                                           
4000b0c4:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
4000b0c8:	c2 00 62 04 	ld  [ %g1 + 0x204 ], %g1	! 4001ce04 <rtems_libio_number_iops>
4000b0cc:	80 a6 00 01 	cmp  %i0, %g1                                  
4000b0d0:	1a 80 00 0b 	bcc  4000b0fc <close+0x3c>                     
4000b0d4:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
  iop = rtems_libio_iop(fd);                                          
4000b0d8:	e0 00 63 9c 	ld  [ %g1 + 0x39c ], %l0	! 4001d79c <rtems_libio_iops>
4000b0dc:	83 2e 20 06 	sll  %i0, 6, %g1                               
4000b0e0:	b1 2e 20 03 	sll  %i0, 3, %i0                               
4000b0e4:	b0 06 00 01 	add  %i0, %g1, %i0                             
4000b0e8:	a0 04 00 18 	add  %l0, %i0, %l0                             
  rtems_libio_check_is_open(iop);                                     
4000b0ec:	c2 04 20 18 	ld  [ %l0 + 0x18 ], %g1                        
4000b0f0:	80 88 61 00 	btst  0x100, %g1                               
4000b0f4:	32 80 00 08 	bne,a   4000b114 <close+0x54>                  
4000b0f8:	c2 04 20 40 	ld  [ %l0 + 0x40 ], %g1                        
4000b0fc:	40 00 10 f8 	call  4000f4dc <__errno>                       
4000b100:	b0 10 3f ff 	mov  -1, %i0                                   
4000b104:	82 10 20 09 	mov  9, %g1                                    
4000b108:	c2 22 00 00 	st  %g1, [ %o0 ]                               
4000b10c:	81 c7 e0 08 	ret                                            
4000b110:	81 e8 00 00 	restore                                        
                                                                      
  rc = RTEMS_SUCCESSFUL;                                              
  if ( iop->handlers->close_h )                                       
4000b114:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
4000b118:	80 a0 60 00 	cmp  %g1, 0                                    
4000b11c:	02 80 00 05 	be  4000b130 <close+0x70>                      <== NEVER TAKEN
4000b120:	b0 10 20 00 	clr  %i0                                       
    rc = (*iop->handlers->close_h)( iop );                            
4000b124:	9f c0 40 00 	call  %g1                                      
4000b128:	90 10 00 10 	mov  %l0, %o0                                  
4000b12c:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
  rtems_filesystem_freenode( &iop->pathinfo );                        
4000b130:	c2 04 20 28 	ld  [ %l0 + 0x28 ], %g1                        
4000b134:	80 a0 60 00 	cmp  %g1, 0                                    
4000b138:	02 80 00 08 	be  4000b158 <close+0x98>                      <== NEVER TAKEN
4000b13c:	01 00 00 00 	nop                                            
4000b140:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
4000b144:	80 a0 60 00 	cmp  %g1, 0                                    
4000b148:	02 80 00 04 	be  4000b158 <close+0x98>                      
4000b14c:	01 00 00 00 	nop                                            
4000b150:	9f c0 40 00 	call  %g1                                      
4000b154:	90 04 20 1c 	add  %l0, 0x1c, %o0                            
  rtems_libio_free( iop );                                            
4000b158:	40 00 00 ec 	call  4000b508 <rtems_libio_free>              
4000b15c:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
  return rc;                                                          
}                                                                     
4000b160:	81 c7 e0 08 	ret                                            
4000b164:	81 e8 00 00 	restore                                        
                                                                      

4000a3f8 <devFS_close>: #include "devfs.h" int devFS_close( rtems_libio_t *iop ) {
4000a3f8:	9d e3 bf 90 	save  %sp, -112, %sp                           
  rtems_libio_open_close_args_t  args;                                
  rtems_status_code              status;                              
  rtems_device_name_t           *np;                                  
                                                                      
  np         = (rtems_device_name_t *)iop->file_info;                 
4000a3fc:	c2 06 20 3c 	ld  [ %i0 + 0x3c ], %g1                        
                                                                      
  args.iop   = iop;                                                   
  args.flags = 0;                                                     
4000a400:	c0 27 bf f8 	clr  [ %fp + -8 ]                              
  args.mode  = 0;                                                     
4000a404:	c0 27 bf fc 	clr  [ %fp + -4 ]                              
                                                                      
  status = rtems_io_close(                                            
4000a408:	d2 00 60 0c 	ld  [ %g1 + 0xc ], %o1                         
4000a40c:	d0 00 60 08 	ld  [ %g1 + 8 ], %o0                           
  rtems_status_code              status;                              
  rtems_device_name_t           *np;                                  
                                                                      
  np         = (rtems_device_name_t *)iop->file_info;                 
                                                                      
  args.iop   = iop;                                                   
4000a410:	f0 27 bf f4 	st  %i0, [ %fp + -12 ]                         
  args.flags = 0;                                                     
  args.mode  = 0;                                                     
                                                                      
  status = rtems_io_close(                                            
4000a414:	94 07 bf f4 	add  %fp, -12, %o2                             
4000a418:	40 00 05 01 	call  4000b81c <rtems_io_close>                
4000a41c:	b0 10 20 00 	clr  %i0                                       
    np->major,                                                        
    np->minor,                                                        
    (void *) &args                                                    
  );                                                                  
  if ( status ) {                                                     
4000a420:	80 a2 20 00 	cmp  %o0, 0                                    
4000a424:	02 80 00 05 	be  4000a438 <devFS_close+0x40>                <== ALWAYS TAKEN
4000a428:	01 00 00 00 	nop                                            
    return rtems_deviceio_errno(status);                              
4000a42c:	40 00 00 3c 	call  4000a51c <rtems_deviceio_errno>          <== NOT EXECUTED
4000a430:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000a434:	b0 10 00 08 	mov  %o0, %i0                                  <== NOT EXECUTED
  }                                                                   
  return 0;                                                           
}                                                                     
4000a438:	81 c7 e0 08 	ret                                            
4000a43c:	81 e8 00 00 	restore                                        
                                                                      

4000a44c <devFS_evaluate_path>: const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) {
4000a44c:	9d e3 bf a0 	save  %sp, -96, %sp                            
     assert( 0 );                                                     
     rtems_set_errno_and_return_minus_one( EIO );                     
  }                                                                   
                                                                      
  /* get the device name table */                                     
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
4000a450:	e0 06 c0 00 	ld  [ %i3 ], %l0                               
  if (!device_name_table)                                             
4000a454:	80 a4 20 00 	cmp  %l0, 0                                    
4000a458:	02 80 00 05 	be  4000a46c <devFS_evaluate_path+0x20>        <== NEVER TAKEN
4000a45c:	27 10 00 42 	sethi  %hi(0x40010800), %l3                    
4000a460:	a2 10 20 00 	clr  %l1                                       
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  for (i = 0; i < rtems_device_table_size; i++) {                     
4000a464:	10 80 00 24 	b  4000a4f4 <devFS_evaluate_path+0xa8>         
4000a468:	a6 14 e0 88 	or  %l3, 0x88, %l3                             
  }                                                                   
                                                                      
  /* get the device name table */                                     
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
  if (!device_name_table)                                             
    rtems_set_errno_and_return_minus_one( EFAULT );                   
4000a46c:	40 00 0a 16 	call  4000ccc4 <__errno>                       <== NOT EXECUTED
4000a470:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
4000a474:	82 10 20 0e 	mov  0xe, %g1                                  <== NOT EXECUTED
4000a478:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
4000a47c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000a480:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      
  for (i = 0; i < rtems_device_table_size; i++) {                     
    if (!device_name_table[i].device_name)                            
4000a484:	e4 04 00 00 	ld  [ %l0 ], %l2                               
4000a488:	80 a4 a0 00 	cmp  %l2, 0                                    
4000a48c:	02 80 00 19 	be  4000a4f0 <devFS_evaluate_path+0xa4>        
4000a490:	a2 04 60 01 	inc  %l1                                       
      continue;                                                       
                                                                      
    if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0)
4000a494:	92 10 00 12 	mov  %l2, %o1                                  
4000a498:	40 00 0d ac 	call  4000db48 <strncmp>                       
4000a49c:	94 10 00 19 	mov  %i1, %o2                                  
4000a4a0:	80 a2 20 00 	cmp  %o0, 0                                    
4000a4a4:	32 80 00 14 	bne,a   4000a4f4 <devFS_evaluate_path+0xa8>    
4000a4a8:	a0 04 20 14 	add  %l0, 0x14, %l0                            
      continue;                                                       
                                                                      
    if (device_name_table[i].device_name[pathnamelen] != '\0')        
4000a4ac:	c2 4c 80 19 	ldsb  [ %l2 + %i1 ], %g1                       
4000a4b0:	80 a0 60 00 	cmp  %g1, 0                                    
4000a4b4:	32 80 00 10 	bne,a   4000a4f4 <devFS_evaluate_path+0xa8>    <== NEVER TAKEN
4000a4b8:	a0 04 20 14 	add  %l0, 0x14, %l0                            <== NOT EXECUTED
                                                                      
    /* find the device, set proper values */                          
    pathloc->node_access = (void *)&device_name_table[i];             
    pathloc->handlers = &devFS_file_handlers;                         
    pathloc->ops = &devFS_ops;                                        
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
4000a4bc:	03 10 00 42 	sethi  %hi(0x40010800), %g1                    
4000a4c0:	c2 00 62 04 	ld  [ %g1 + 0x204 ], %g1	! 40010a04 <rtems_current_user_env>
                                                                      
    if (device_name_table[i].device_name[pathnamelen] != '\0')        
      continue;                                                       
                                                                      
    /* find the device, set proper values */                          
    pathloc->node_access = (void *)&device_name_table[i];             
4000a4c4:	e0 26 c0 00 	st  %l0, [ %i3 ]                               
    pathloc->handlers = &devFS_file_handlers;                         
    pathloc->ops = &devFS_ops;                                        
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
4000a4c8:	c2 00 60 28 	ld  [ %g1 + 0x28 ], %g1                        
4000a4cc:	c2 26 e0 10 	st  %g1, [ %i3 + 0x10 ]                        
    if (device_name_table[i].device_name[pathnamelen] != '\0')        
      continue;                                                       
                                                                      
    /* find the device, set proper values */                          
    pathloc->node_access = (void *)&device_name_table[i];             
    pathloc->handlers = &devFS_file_handlers;                         
4000a4d0:	03 10 00 42 	sethi  %hi(0x40010800), %g1                    
4000a4d4:	82 10 61 b8 	or  %g1, 0x1b8, %g1	! 400109b8 <devFS_file_handlers>
4000a4d8:	c2 26 e0 08 	st  %g1, [ %i3 + 8 ]                           
    pathloc->ops = &devFS_ops;                                        
4000a4dc:	03 10 00 42 	sethi  %hi(0x40010800), %g1                    
4000a4e0:	82 10 61 70 	or  %g1, 0x170, %g1	! 40010970 <devFS_ops>     
4000a4e4:	c2 26 e0 0c 	st  %g1, [ %i3 + 0xc ]                         
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
    return 0;                                                         
4000a4e8:	81 c7 e0 08 	ret                                            
4000a4ec:	91 e8 20 00 	restore  %g0, 0, %o0                           
  /* get the device name table */                                     
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
  if (!device_name_table)                                             
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  for (i = 0; i < rtems_device_table_size; i++) {                     
4000a4f0:	a0 04 20 14 	add  %l0, 0x14, %l0                            
4000a4f4:	c2 04 c0 00 	ld  [ %l3 ], %g1                               
4000a4f8:	80 a4 40 01 	cmp  %l1, %g1                                  
4000a4fc:	0a bf ff e2 	bcs  4000a484 <devFS_evaluate_path+0x38>       
4000a500:	90 10 00 18 	mov  %i0, %o0                                  
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
    return 0;                                                         
  }                                                                   
                                                                      
  /* no such file or directory */                                     
  rtems_set_errno_and_return_minus_one( ENOENT );                     
4000a504:	40 00 09 f0 	call  4000ccc4 <__errno>                       
4000a508:	b0 10 3f ff 	mov  -1, %i0                                   
4000a50c:	82 10 20 02 	mov  2, %g1                                    
4000a510:	c2 22 00 00 	st  %g1, [ %o0 ]                               
}                                                                     
4000a514:	81 c7 e0 08 	ret                                            
4000a518:	81 e8 00 00 	restore                                        
                                                                      

40002bbc <devFS_initialize>: int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) {
40002bbc:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_device_name_t  *device_name_table;                            
                                                                      
  /* allocate device only filesystem name table */                    
  device_name_table = (rtems_device_name_t *)_Workspace_Allocate(     
40002bc0:	23 10 00 42 	sethi  %hi(0x40010800), %l1                    
40002bc4:	c2 04 60 88 	ld  [ %l1 + 0x88 ], %g1	! 40010888 <rtems_device_table_size>
40002bc8:	85 28 60 04 	sll  %g1, 4, %g2                               
40002bcc:	83 28 60 02 	sll  %g1, 2, %g1                               
40002bd0:	40 00 1c 8b 	call  40009dfc <_Workspace_Allocate>           
40002bd4:	90 00 40 02 	add  %g1, %g2, %o0                             
        sizeof( rtems_device_name_t ) * ( rtems_device_table_size )   
        );                                                            
                                                                      
  /* no memory for device filesystem */                               
  if (!device_name_table)                                             
40002bd8:	a0 92 20 00 	orcc  %o0, 0, %l0                              
40002bdc:	12 80 00 08 	bne  40002bfc <devFS_initialize+0x40>          <== ALWAYS TAKEN
40002be0:	c2 04 60 88 	ld  [ %l1 + 0x88 ], %g1                        
      rtems_set_errno_and_return_minus_one( ENOMEM );                 
40002be4:	40 00 28 38 	call  4000ccc4 <__errno>                       <== NOT EXECUTED
40002be8:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
40002bec:	82 10 20 0c 	mov  0xc, %g1                                  <== NOT EXECUTED
40002bf0:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
40002bf4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40002bf8:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      
  memset(                                                             
40002bfc:	92 10 20 00 	clr  %o1                                       
40002c00:	85 28 60 04 	sll  %g1, 4, %g2                               
40002c04:	83 28 60 02 	sll  %g1, 2, %g1                               
40002c08:	40 00 2a 90 	call  4000d648 <memset>                        
40002c0c:	94 00 40 02 	add  %g1, %g2, %o2                             
    device_name_table, 0,                                             
    sizeof( rtems_device_name_t ) * ( rtems_device_table_size )       
    );                                                                
                                                                      
  /* set file handlers */                                             
  temp_mt_entry->mt_fs_root.handlers     = &devFS_file_handlers;      
40002c10:	03 10 00 42 	sethi  %hi(0x40010800), %g1                    
40002c14:	82 10 61 b8 	or  %g1, 0x1b8, %g1	! 400109b8 <devFS_file_handlers>
  temp_mt_entry->mt_fs_root.ops          = &devFS_ops;                
                                                                      
  /* Set the node_access to device name table */                      
  temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table;  
40002c18:	e0 26 20 1c 	st  %l0, [ %i0 + 0x1c ]                        
    device_name_table, 0,                                             
    sizeof( rtems_device_name_t ) * ( rtems_device_table_size )       
    );                                                                
                                                                      
  /* set file handlers */                                             
  temp_mt_entry->mt_fs_root.handlers     = &devFS_file_handlers;      
40002c1c:	c2 26 20 24 	st  %g1, [ %i0 + 0x24 ]                        
  temp_mt_entry->mt_fs_root.ops          = &devFS_ops;                
40002c20:	03 10 00 42 	sethi  %hi(0x40010800), %g1                    
40002c24:	82 10 61 70 	or  %g1, 0x170, %g1	! 40010970 <devFS_ops>     
40002c28:	c2 26 20 28 	st  %g1, [ %i0 + 0x28 ]                        
                                                                      
  /* Set the node_access to device name table */                      
  temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table;  
                                                                      
  return 0;                                                           
}                                                                     
40002c2c:	81 c7 e0 08 	ret                                            
40002c30:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

40002da8 <devFS_ioctl>: int devFS_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) {
40002da8:	9d e3 bf 90 	save  %sp, -112, %sp                           
  rtems_libio_ioctl_args_t  args;                                     
  rtems_status_code         status;                                   
  rtems_device_name_t      *np;                                       
                                                                      
  np           = (rtems_device_name_t *)iop->file_info;               
40002dac:	c2 06 20 3c 	ld  [ %i0 + 0x3c ], %g1                        
                                                                      
  args.iop     = iop;                                                 
  args.command = command;                                             
40002db0:	f2 27 bf f4 	st  %i1, [ %fp + -12 ]                         
  args.buffer  = buffer;                                              
                                                                      
  status = rtems_io_control(                                          
40002db4:	d2 00 60 0c 	ld  [ %g1 + 0xc ], %o1                         
40002db8:	d0 00 60 08 	ld  [ %g1 + 8 ], %o0                           
  rtems_status_code         status;                                   
  rtems_device_name_t      *np;                                       
                                                                      
  np           = (rtems_device_name_t *)iop->file_info;               
                                                                      
  args.iop     = iop;                                                 
40002dbc:	f0 27 bf f0 	st  %i0, [ %fp + -16 ]                         
  args.command = command;                                             
  args.buffer  = buffer;                                              
40002dc0:	f4 27 bf f8 	st  %i2, [ %fp + -8 ]                          
                                                                      
  status = rtems_io_control(                                          
40002dc4:	40 00 10 27 	call  40006e60 <rtems_io_control>              
40002dc8:	94 07 bf f0 	add  %fp, -16, %o2                             
    np->major,                                                        
    np->minor,                                                        
    (void *) &args                                                    
  );                                                                  
                                                                      
  if ( status )                                                       
40002dcc:	80 a2 20 00 	cmp  %o0, 0                                    
40002dd0:	22 80 00 06 	be,a   40002de8 <devFS_ioctl+0x40>             <== ALWAYS TAKEN
40002dd4:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          
    return rtems_deviceio_errno(status);                              
40002dd8:	40 00 1d d1 	call  4000a51c <rtems_deviceio_errno>          <== NOT EXECUTED
40002ddc:	01 00 00 00 	nop                                            <== NOT EXECUTED
40002de0:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40002de4:	91 e8 00 08 	restore  %g0, %o0, %o0                         <== NOT EXECUTED
                                                                      
  return args.ioctl_return;                                           
}                                                                     
40002de8:	b0 10 00 08 	mov  %o0, %i0                                  
40002dec:	81 c7 e0 08 	ret                                            
40002df0:	81 e8 00 00 	restore                                        
                                                                      

40002c34 <devFS_mknod>: const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) {
40002c34:	9d e3 bf a0 	save  %sp, -96, %sp                            
   * condition and do not create the '/dev' and the 'path'            
   * actually passed in is 'dev', not '/dev'. Just return 0 to        
   * indicate we are OK.                                              
   */                                                                 
                                                                      
  if ((path[0] == 'd') && (path[1] == 'e') &&                         
40002c38:	c2 4e 00 00 	ldsb  [ %i0 ], %g1                             
40002c3c:	80 a0 60 64 	cmp  %g1, 0x64                                 
40002c40:	12 80 00 0e 	bne  40002c78 <devFS_mknod+0x44>               <== NEVER TAKEN
40002c44:	a0 10 00 18 	mov  %i0, %l0                                  
40002c48:	c2 4e 20 01 	ldsb  [ %i0 + 1 ], %g1                         
40002c4c:	80 a0 60 65 	cmp  %g1, 0x65                                 
40002c50:	12 80 00 0b 	bne  40002c7c <devFS_mknod+0x48>               <== NEVER TAKEN
40002c54:	03 00 00 3c 	sethi  %hi(0xf000), %g1                        
      (path[2] == 'v') && (path[3] == '\0'))                          
40002c58:	c2 4e 20 02 	ldsb  [ %i0 + 2 ], %g1                         
40002c5c:	80 a0 60 76 	cmp  %g1, 0x76                                 
40002c60:	12 80 00 07 	bne  40002c7c <devFS_mknod+0x48>               <== NEVER TAKEN
40002c64:	03 00 00 3c 	sethi  %hi(0xf000), %g1                        
40002c68:	c2 4e 20 03 	ldsb  [ %i0 + 3 ], %g1                         
40002c6c:	80 a0 60 00 	cmp  %g1, 0                                    
40002c70:	02 80 00 4a 	be  40002d98 <devFS_mknod+0x164>               
40002c74:	b0 10 20 00 	clr  %i0                                       
      return 0;                                                       
                                                                      
  /* must be a character device or a block device */                  
  if (!S_ISBLK(mode) && !S_ISCHR(mode))                               
40002c78:	03 00 00 3c 	sethi  %hi(0xf000), %g1                        
40002c7c:	05 00 00 08 	sethi  %hi(0x2000), %g2                        
40002c80:	82 0e 40 01 	and  %i1, %g1, %g1                             
40002c84:	80 a0 40 02 	cmp  %g1, %g2                                  
40002c88:	22 80 00 0a 	be,a   40002cb0 <devFS_mknod+0x7c>             <== ALWAYS TAKEN
40002c8c:	e2 07 00 00 	ld  [ %i4 ], %l1                               
40002c90:	05 00 00 18 	sethi  %hi(0x6000), %g2                        <== NOT EXECUTED
40002c94:	80 a0 40 02 	cmp  %g1, %g2                                  <== NOT EXECUTED
40002c98:	22 80 00 06 	be,a   40002cb0 <devFS_mknod+0x7c>             <== NOT EXECUTED
40002c9c:	e2 07 00 00 	ld  [ %i4 ], %l1                               <== NOT EXECUTED
    rtems_set_errno_and_return_minus_one( EINVAL );                   
40002ca0:	40 00 28 09 	call  4000ccc4 <__errno>                       <== NOT EXECUTED
40002ca4:	01 00 00 00 	nop                                            <== NOT EXECUTED
40002ca8:	10 80 00 28 	b  40002d48 <devFS_mknod+0x114>                <== NOT EXECUTED
40002cac:	82 10 20 16 	mov  0x16, %g1	! 16 <PROM_START+0x16>          <== NOT EXECUTED
  else                                                                
    rtems_filesystem_split_dev_t(dev, major, minor);                  
                                                                      
  /* Find an empty slot in device name table */                       
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
  if (!device_name_table)                                             
40002cb0:	80 a4 60 00 	cmp  %l1, 0                                    
40002cb4:	02 80 00 08 	be  40002cd4 <devFS_mknod+0xa0>                <== NEVER TAKEN
40002cb8:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  for (slot = -1, i = 0; i < rtems_device_table_size; i++){           
40002cbc:	2b 10 00 42 	sethi  %hi(0x40010800), %l5                    
  else                                                                
    rtems_filesystem_split_dev_t(dev, major, minor);                  
                                                                      
  /* Find an empty slot in device name table */                       
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
  if (!device_name_table)                                             
40002cc0:	a8 10 00 11 	mov  %l1, %l4                                  
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  for (slot = -1, i = 0; i < rtems_device_table_size; i++){           
40002cc4:	aa 15 60 88 	or  %l5, 0x88, %l5                             
  else                                                                
    rtems_filesystem_split_dev_t(dev, major, minor);                  
                                                                      
  /* Find an empty slot in device name table */                       
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
  if (!device_name_table)                                             
40002cc8:	a4 10 3f ff 	mov  -1, %l2                                   
40002ccc:	10 80 00 15 	b  40002d20 <devFS_mknod+0xec>                 
40002cd0:	a6 10 20 00 	clr  %l3                                       
    rtems_set_errno_and_return_minus_one( EFAULT );                   
40002cd4:	40 00 27 fc 	call  4000ccc4 <__errno>                       <== NOT EXECUTED
40002cd8:	01 00 00 00 	nop                                            <== NOT EXECUTED
40002cdc:	10 80 00 1b 	b  40002d48 <devFS_mknod+0x114>                <== NOT EXECUTED
40002ce0:	82 10 20 0e 	mov  0xe, %g1	! e <PROM_START+0xe>             <== NOT EXECUTED
                                                                      
  for (slot = -1, i = 0; i < rtems_device_table_size; i++){           
      if (device_name_table[i].device_name == NULL)                   
40002ce4:	d2 05 00 00 	ld  [ %l4 ], %o1                               
40002ce8:	80 a2 60 00 	cmp  %o1, 0                                    
40002cec:	02 80 00 0b 	be  40002d18 <devFS_mknod+0xe4>                
40002cf0:	a8 05 20 14 	add  %l4, 0x14, %l4                            
          slot = i;                                                   
      else                                                            
          if (strcmp(path, device_name_table[i].device_name) == 0)    
40002cf4:	40 00 2b 0f 	call  4000d930 <strcmp>                        
40002cf8:	01 00 00 00 	nop                                            
40002cfc:	80 a2 20 00 	cmp  %o0, 0                                    
40002d00:	32 80 00 08 	bne,a   40002d20 <devFS_mknod+0xec>            <== ALWAYS TAKEN
40002d04:	a6 04 e0 01 	inc  %l3                                       
              rtems_set_errno_and_return_minus_one( EEXIST );         
40002d08:	40 00 27 ef 	call  4000ccc4 <__errno>                       <== NOT EXECUTED
40002d0c:	01 00 00 00 	nop                                            <== NOT EXECUTED
40002d10:	10 80 00 0e 	b  40002d48 <devFS_mknod+0x114>                <== NOT EXECUTED
40002d14:	82 10 20 11 	mov  0x11, %g1	! 11 <PROM_START+0x11>          <== NOT EXECUTED
40002d18:	a4 10 00 13 	mov  %l3, %l2                                  
  /* Find an empty slot in device name table */                       
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
  if (!device_name_table)                                             
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  for (slot = -1, i = 0; i < rtems_device_table_size; i++){           
40002d1c:	a6 04 e0 01 	inc  %l3                                       
40002d20:	c2 05 40 00 	ld  [ %l5 ], %g1                               
40002d24:	80 a4 c0 01 	cmp  %l3, %g1                                  
40002d28:	0a bf ff ef 	bcs  40002ce4 <devFS_mknod+0xb0>               
40002d2c:	90 10 00 10 	mov  %l0, %o0                                  
      else                                                            
          if (strcmp(path, device_name_table[i].device_name) == 0)    
              rtems_set_errno_and_return_minus_one( EEXIST );         
  }                                                                   
                                                                      
  if (slot == -1)                                                     
40002d30:	80 a4 bf ff 	cmp  %l2, -1                                   
40002d34:	12 80 00 08 	bne  40002d54 <devFS_mknod+0x120>              <== ALWAYS TAKEN
40002d38:	01 00 00 00 	nop                                            
      rtems_set_errno_and_return_minus_one( ENOMEM );                 
40002d3c:	40 00 27 e2 	call  4000ccc4 <__errno>                       <== NOT EXECUTED
40002d40:	01 00 00 00 	nop                                            <== NOT EXECUTED
40002d44:	82 10 20 0c 	mov  0xc, %g1	! c <PROM_START+0xc>             <== NOT EXECUTED
40002d48:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
40002d4c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40002d50:	91 e8 3f ff 	restore  %g0, -1, %o0                          <== NOT EXECUTED
                                                                      
  _ISR_Disable(level);                                                
40002d54:	7f ff fb 5d 	call  40001ac8 <sparc_disable_interrupts>      
40002d58:	01 00 00 00 	nop                                            
40002d5c:	a6 10 00 08 	mov  %o0, %l3                                  
  device_name_table[slot].device_name  = (char *)path;                
40002d60:	83 2c a0 04 	sll  %l2, 4, %g1                               
  device_name_table[slot].device_name_length = strlen(path);          
40002d64:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
  if (slot == -1)                                                     
      rtems_set_errno_and_return_minus_one( ENOMEM );                 
                                                                      
  _ISR_Disable(level);                                                
  device_name_table[slot].device_name  = (char *)path;                
40002d68:	a5 2c a0 02 	sll  %l2, 2, %l2                               
40002d6c:	a4 04 80 01 	add  %l2, %g1, %l2                             
40002d70:	e0 24 40 12 	st  %l0, [ %l1 + %l2 ]                         
  device_name_table[slot].device_name_length = strlen(path);          
40002d74:	40 00 2b 40 	call  4000da74 <strlen>                        
40002d78:	a2 04 40 12 	add  %l1, %l2, %l1                             
  device_name_table[slot].major = major;                              
  device_name_table[slot].minor = minor;                              
  device_name_table[slot].mode  = mode;                               
40002d7c:	f2 24 60 10 	st  %i1, [ %l1 + 0x10 ]                        
  if (slot == -1)                                                     
      rtems_set_errno_and_return_minus_one( ENOMEM );                 
                                                                      
  _ISR_Disable(level);                                                
  device_name_table[slot].device_name  = (char *)path;                
  device_name_table[slot].device_name_length = strlen(path);          
40002d80:	d0 24 60 04 	st  %o0, [ %l1 + 4 ]                           
  device_name_table[slot].major = major;                              
40002d84:	f4 24 60 08 	st  %i2, [ %l1 + 8 ]                           
  device_name_table[slot].minor = minor;                              
40002d88:	f6 24 60 0c 	st  %i3, [ %l1 + 0xc ]                         
  device_name_table[slot].mode  = mode;                               
  _ISR_Enable(level);                                                 
40002d8c:	b0 10 20 00 	clr  %i0                                       
40002d90:	7f ff fb 52 	call  40001ad8 <sparc_enable_interrupts>       
40002d94:	90 10 00 13 	mov  %l3, %o0                                  
                                                                      
  return 0;                                                           
}                                                                     
40002d98:	81 c7 e0 08 	ret                                            
40002d9c:	81 e8 00 00 	restore                                        
                                                                      

40002df4 <devFS_open>: rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) {
40002df4:	9d e3 bf 90 	save  %sp, -112, %sp                           
  rtems_device_name_t           *np;                                  
                                                                      
  np         = (rtems_device_name_t *)iop->file_info;                 
                                                                      
  args.iop   = iop;                                                   
  args.flags = iop->flags;                                            
40002df8:	c4 06 20 18 	ld  [ %i0 + 0x18 ], %g2                        
{                                                                     
  rtems_libio_open_close_args_t  args;                                
  rtems_status_code              status;                              
  rtems_device_name_t           *np;                                  
                                                                      
  np         = (rtems_device_name_t *)iop->file_info;                 
40002dfc:	c2 06 20 3c 	ld  [ %i0 + 0x3c ], %g1                        
                                                                      
  args.iop   = iop;                                                   
  args.flags = iop->flags;                                            
40002e00:	c4 27 bf f8 	st  %g2, [ %fp + -8 ]                          
  args.mode  = mode;                                                  
40002e04:	f6 27 bf fc 	st  %i3, [ %fp + -4 ]                          
                                                                      
  status = rtems_io_open(                                             
40002e08:	d2 00 60 0c 	ld  [ %g1 + 0xc ], %o1                         
40002e0c:	d0 00 60 08 	ld  [ %g1 + 8 ], %o0                           
  rtems_status_code              status;                              
  rtems_device_name_t           *np;                                  
                                                                      
  np         = (rtems_device_name_t *)iop->file_info;                 
                                                                      
  args.iop   = iop;                                                   
40002e10:	f0 27 bf f4 	st  %i0, [ %fp + -12 ]                         
  args.flags = iop->flags;                                            
  args.mode  = mode;                                                  
                                                                      
  status = rtems_io_open(                                             
40002e14:	94 07 bf f4 	add  %fp, -12, %o2                             
40002e18:	40 00 10 5d 	call  40006f8c <rtems_io_open>                 
40002e1c:	b0 10 20 00 	clr  %i0                                       
    np->major,                                                        
    np->minor,                                                        
    (void *) &args                                                    
  );                                                                  
  if ( status )                                                       
40002e20:	80 a2 20 00 	cmp  %o0, 0                                    
40002e24:	02 80 00 05 	be  40002e38 <devFS_open+0x44>                 <== ALWAYS TAKEN
40002e28:	01 00 00 00 	nop                                            
    return rtems_deviceio_errno(status);                              
40002e2c:	40 00 1d bc 	call  4000a51c <rtems_deviceio_errno>          <== NOT EXECUTED
40002e30:	01 00 00 00 	nop                                            <== NOT EXECUTED
40002e34:	b0 10 00 08 	mov  %o0, %i0                                  <== NOT EXECUTED
                                                                      
  return 0;                                                           
}                                                                     
40002e38:	81 c7 e0 08 	ret                                            
40002e3c:	81 e8 00 00 	restore                                        
                                                                      

40002e40 <devFS_read>: ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) {
40002e40:	9d e3 bf 80 	save  %sp, -128, %sp                           <== NOT EXECUTED
                                                                      
  args.iop         = iop;                                             
  args.offset      = iop->offset;                                     
  args.buffer      = buffer;                                          
  args.count       = count;                                           
  args.flags       = iop->flags;                                      
40002e44:	c4 06 20 18 	ld  [ %i0 + 0x18 ], %g2                        <== NOT EXECUTED
{                                                                     
  rtems_libio_rw_args_t   args;                                       
  rtems_status_code       status;                                     
  rtems_device_name_t     *np;                                        
                                                                      
  np               = (rtems_device_name_t *)iop->file_info;           
40002e48:	c2 06 20 3c 	ld  [ %i0 + 0x3c ], %g1                        <== NOT EXECUTED
                                                                      
  args.iop         = iop;                                             
  args.offset      = iop->offset;                                     
  args.buffer      = buffer;                                          
  args.count       = count;                                           
  args.flags       = iop->flags;                                      
40002e4c:	c4 27 bf f8 	st  %g2, [ %fp + -8 ]                          <== NOT EXECUTED
  np               = (rtems_device_name_t *)iop->file_info;           
                                                                      
  args.iop         = iop;                                             
  args.offset      = iop->offset;                                     
  args.buffer      = buffer;                                          
  args.count       = count;                                           
40002e50:	f4 27 bf f4 	st  %i2, [ %fp + -12 ]                         <== NOT EXECUTED
  args.flags       = iop->flags;                                      
  args.bytes_moved = 0;                                               
40002e54:	c0 27 bf fc 	clr  [ %fp + -4 ]                              <== NOT EXECUTED
  rtems_device_name_t     *np;                                        
                                                                      
  np               = (rtems_device_name_t *)iop->file_info;           
                                                                      
  args.iop         = iop;                                             
  args.offset      = iop->offset;                                     
40002e58:	c4 1e 20 10 	ldd  [ %i0 + 0x10 ], %g2                       <== NOT EXECUTED
  args.buffer      = buffer;                                          
  args.count       = count;                                           
  args.flags       = iop->flags;                                      
  args.bytes_moved = 0;                                               
                                                                      
  status = rtems_io_read(                                             
40002e5c:	d2 00 60 0c 	ld  [ %g1 + 0xc ], %o1                         <== NOT EXECUTED
40002e60:	d0 00 60 08 	ld  [ %g1 + 8 ], %o0                           <== NOT EXECUTED
  rtems_device_name_t     *np;                                        
                                                                      
  np               = (rtems_device_name_t *)iop->file_info;           
                                                                      
  args.iop         = iop;                                             
  args.offset      = iop->offset;                                     
40002e64:	c4 3f bf e8 	std  %g2, [ %fp + -24 ]                        <== NOT EXECUTED
  args.buffer      = buffer;                                          
40002e68:	f2 27 bf f0 	st  %i1, [ %fp + -16 ]                         <== NOT EXECUTED
  rtems_status_code       status;                                     
  rtems_device_name_t     *np;                                        
                                                                      
  np               = (rtems_device_name_t *)iop->file_info;           
                                                                      
  args.iop         = iop;                                             
40002e6c:	f0 27 bf e0 	st  %i0, [ %fp + -32 ]                         <== NOT EXECUTED
  args.buffer      = buffer;                                          
  args.count       = count;                                           
  args.flags       = iop->flags;                                      
  args.bytes_moved = 0;                                               
                                                                      
  status = rtems_io_read(                                             
40002e70:	40 00 10 5d 	call  40006fe4 <rtems_io_read>                 <== NOT EXECUTED
40002e74:	94 07 bf e0 	add  %fp, -32, %o2                             <== NOT EXECUTED
    np->major,                                                        
    np->minor,                                                        
    (void *) &args                                                    
  );                                                                  
                                                                      
  if ( status )                                                       
40002e78:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
40002e7c:	22 80 00 06 	be,a   40002e94 <devFS_read+0x54>              <== NOT EXECUTED
40002e80:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          <== NOT EXECUTED
    return rtems_deviceio_errno(status);                              
40002e84:	40 00 1d a6 	call  4000a51c <rtems_deviceio_errno>          <== NOT EXECUTED
40002e88:	01 00 00 00 	nop                                            <== NOT EXECUTED
40002e8c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40002e90:	91 e8 00 08 	restore  %g0, %o0, %o0                         <== NOT EXECUTED
                                                                      
  return (ssize_t) args.bytes_moved;                                  
}                                                                     
40002e94:	b0 10 00 08 	mov  %o0, %i0                                  <== NOT EXECUTED
40002e98:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40002e9c:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

40002ea0 <devFS_stat>: int devFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) {
40002ea0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_device_name_t *the_dev;                                       
                                                                      
  the_dev = (rtems_device_name_t *)loc->node_access;                  
40002ea4:	c2 06 00 00 	ld  [ %i0 ], %g1                               
  if (!the_dev)                                                       
40002ea8:	80 a0 60 00 	cmp  %g1, 0                                    
40002eac:	32 80 00 08 	bne,a   40002ecc <devFS_stat+0x2c>             <== ALWAYS TAKEN
40002eb0:	c4 00 60 0c 	ld  [ %g1 + 0xc ], %g2                         
    rtems_set_errno_and_return_minus_one( EFAULT );                   
40002eb4:	40 00 27 84 	call  4000ccc4 <__errno>                       <== NOT EXECUTED
40002eb8:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
40002ebc:	82 10 20 0e 	mov  0xe, %g1                                  <== NOT EXECUTED
40002ec0:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
40002ec4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40002ec8:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      
  buf->st_rdev  = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor );
                                                                      
  buf->st_mode = the_dev->mode;                                       
40002ecc:	c6 00 60 10 	ld  [ %g1 + 0x10 ], %g3                        
  rtems_device_minor_number _minor                                    
)                                                                     
{                                                                     
  union __rtems_dev_t temp;                                           
                                                                      
  temp.__overlay.major = _major;                                      
40002ed0:	c2 00 60 08 	ld  [ %g1 + 8 ], %g1                           
                                                                      
  the_dev = (rtems_device_name_t *)loc->node_access;                  
  if (!the_dev)                                                       
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  buf->st_rdev  = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor );
40002ed4:	c4 26 60 1c 	st  %g2, [ %i1 + 0x1c ]                        
                                                                      
  buf->st_mode = the_dev->mode;                                       
40002ed8:	c6 26 60 0c 	st  %g3, [ %i1 + 0xc ]                         
                                                                      
  the_dev = (rtems_device_name_t *)loc->node_access;                  
  if (!the_dev)                                                       
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  buf->st_rdev  = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor );
40002edc:	c2 26 60 18 	st  %g1, [ %i1 + 0x18 ]                        
                                                                      
  buf->st_mode = the_dev->mode;                                       
                                                                      
  return 0;                                                           
}                                                                     
40002ee0:	81 c7 e0 08 	ret                                            
40002ee4:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

40002ee8 <devFS_write>: ssize_t devFS_write( rtems_libio_t *iop, const void *buffer, size_t count ) {
40002ee8:	9d e3 bf 80 	save  %sp, -128, %sp                           
                                                                      
  args.iop         = iop;                                             
  args.offset      = iop->offset;                                     
  args.buffer      = (void *) buffer;                                 
  args.count       = count;                                           
  args.flags       = iop->flags;                                      
40002eec:	c4 06 20 18 	ld  [ %i0 + 0x18 ], %g2                        
{                                                                     
  rtems_libio_rw_args_t   args;                                       
  rtems_status_code       status;                                     
  rtems_device_name_t    *np;                                         
                                                                      
  np           = (rtems_device_name_t *)iop->file_info;               
40002ef0:	c2 06 20 3c 	ld  [ %i0 + 0x3c ], %g1                        
                                                                      
  args.iop         = iop;                                             
  args.offset      = iop->offset;                                     
  args.buffer      = (void *) buffer;                                 
  args.count       = count;                                           
  args.flags       = iop->flags;                                      
40002ef4:	c4 27 bf f8 	st  %g2, [ %fp + -8 ]                          
  np           = (rtems_device_name_t *)iop->file_info;               
                                                                      
  args.iop         = iop;                                             
  args.offset      = iop->offset;                                     
  args.buffer      = (void *) buffer;                                 
  args.count       = count;                                           
40002ef8:	f4 27 bf f4 	st  %i2, [ %fp + -12 ]                         
  args.flags       = iop->flags;                                      
  args.bytes_moved = 0;                                               
40002efc:	c0 27 bf fc 	clr  [ %fp + -4 ]                              
  rtems_device_name_t    *np;                                         
                                                                      
  np           = (rtems_device_name_t *)iop->file_info;               
                                                                      
  args.iop         = iop;                                             
  args.offset      = iop->offset;                                     
40002f00:	c4 1e 20 10 	ldd  [ %i0 + 0x10 ], %g2                       
  args.buffer      = (void *) buffer;                                 
  args.count       = count;                                           
  args.flags       = iop->flags;                                      
  args.bytes_moved = 0;                                               
                                                                      
  status = rtems_io_write(                                            
40002f04:	d2 00 60 0c 	ld  [ %g1 + 0xc ], %o1                         
40002f08:	d0 00 60 08 	ld  [ %g1 + 8 ], %o0                           
  rtems_device_name_t    *np;                                         
                                                                      
  np           = (rtems_device_name_t *)iop->file_info;               
                                                                      
  args.iop         = iop;                                             
  args.offset      = iop->offset;                                     
40002f0c:	c4 3f bf e8 	std  %g2, [ %fp + -24 ]                        
  args.buffer      = (void *) buffer;                                 
40002f10:	f2 27 bf f0 	st  %i1, [ %fp + -16 ]                         
  rtems_status_code       status;                                     
  rtems_device_name_t    *np;                                         
                                                                      
  np           = (rtems_device_name_t *)iop->file_info;               
                                                                      
  args.iop         = iop;                                             
40002f14:	f0 27 bf e0 	st  %i0, [ %fp + -32 ]                         
  args.buffer      = (void *) buffer;                                 
  args.count       = count;                                           
  args.flags       = iop->flags;                                      
  args.bytes_moved = 0;                                               
                                                                      
  status = rtems_io_write(                                            
40002f18:	40 00 10 49 	call  4000703c <rtems_io_write>                
40002f1c:	94 07 bf e0 	add  %fp, -32, %o2                             
    np->major,                                                        
    np->minor,                                                        
    (void *) &args                                                    
  );                                                                  
                                                                      
  if ( status )                                                       
40002f20:	80 a2 20 00 	cmp  %o0, 0                                    
40002f24:	22 80 00 06 	be,a   40002f3c <devFS_write+0x54>             <== ALWAYS TAKEN
40002f28:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          
    return rtems_deviceio_errno(status);                              
40002f2c:	40 00 1d 7c 	call  4000a51c <rtems_deviceio_errno>          <== NOT EXECUTED
40002f30:	01 00 00 00 	nop                                            <== NOT EXECUTED
40002f34:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40002f38:	91 e8 00 08 	restore  %g0, %o0, %o0                         <== NOT EXECUTED
                                                                      
  return (ssize_t) args.bytes_moved;                                  
}                                                                     
40002f3c:	b0 10 00 08 	mov  %o0, %i0                                  
40002f40:	81 c7 e0 08 	ret                                            
40002f44:	81 e8 00 00 	restore                                        
                                                                      

4000d14c <device_close>: */ int device_close( rtems_libio_t *iop ) {
4000d14c:	9d e3 bf 90 	save  %sp, -112, %sp                           
  rtems_libio_open_close_args_t  args;                                
  rtems_status_code              status;                              
  IMFS_jnode_t                  *the_jnode;                           
                                                                      
  the_jnode = iop->file_info;                                         
4000d150:	c2 06 20 3c 	ld  [ %i0 + 0x3c ], %g1                        
                                                                      
  args.iop   = iop;                                                   
4000d154:	f0 27 bf f4 	st  %i0, [ %fp + -12 ]                         
  args.flags = 0;                                                     
4000d158:	c0 27 bf f8 	clr  [ %fp + -8 ]                              
  args.mode  = 0;                                                     
4000d15c:	c0 27 bf fc 	clr  [ %fp + -4 ]                              
                                                                      
  status = rtems_io_close(                                            
4000d160:	d0 18 60 50 	ldd  [ %g1 + 0x50 ], %o0                       
4000d164:	94 07 bf f4 	add  %fp, -12, %o2                             
4000d168:	40 00 04 f8 	call  4000e548 <rtems_io_close>                
4000d16c:	b0 10 20 00 	clr  %i0                                       
    the_jnode->info.device.major,                                     
    the_jnode->info.device.minor,                                     
    (void *) &args                                                    
  );                                                                  
  if ( status ) {                                                     
4000d170:	80 a2 20 00 	cmp  %o0, 0                                    
4000d174:	02 80 00 05 	be  4000d188 <device_close+0x3c>               <== ALWAYS TAKEN
4000d178:	01 00 00 00 	nop                                            
    return rtems_deviceio_errno(status);                              
4000d17c:	40 00 06 70 	call  4000eb3c <rtems_deviceio_errno>          <== NOT EXECUTED
4000d180:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000d184:	b0 10 00 08 	mov  %o0, %i0                                  <== NOT EXECUTED
  }                                                                   
  return 0;                                                           
}                                                                     
4000d188:	81 c7 e0 08 	ret                                            
4000d18c:	81 e8 00 00 	restore                                        
                                                                      

4000d04c <device_ioctl>: int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) {
4000d04c:	9d e3 bf 90 	save  %sp, -112, %sp                           
                                                                      
  args.iop     = iop;                                                 
  args.command = command;                                             
  args.buffer  = buffer;                                              
                                                                      
  the_jnode = iop->file_info;                                         
4000d050:	c2 06 20 3c 	ld  [ %i0 + 0x3c ], %g1                        
  rtems_libio_ioctl_args_t  args;                                     
  rtems_status_code         status;                                   
  IMFS_jnode_t             *the_jnode;                                
                                                                      
  args.iop     = iop;                                                 
  args.command = command;                                             
4000d054:	f2 27 bf f4 	st  %i1, [ %fp + -12 ]                         
  args.buffer  = buffer;                                              
4000d058:	f4 27 bf f8 	st  %i2, [ %fp + -8 ]                          
{                                                                     
  rtems_libio_ioctl_args_t  args;                                     
  rtems_status_code         status;                                   
  IMFS_jnode_t             *the_jnode;                                
                                                                      
  args.iop     = iop;                                                 
4000d05c:	f0 27 bf f0 	st  %i0, [ %fp + -16 ]                         
  args.command = command;                                             
  args.buffer  = buffer;                                              
                                                                      
  the_jnode = iop->file_info;                                         
                                                                      
  status = rtems_io_control(                                          
4000d060:	d0 18 60 50 	ldd  [ %g1 + 0x50 ], %o0                       
4000d064:	40 00 05 4f 	call  4000e5a0 <rtems_io_control>              
4000d068:	94 07 bf f0 	add  %fp, -16, %o2                             
    the_jnode->info.device.major,                                     
    the_jnode->info.device.minor,                                     
    (void *) &args                                                    
  );                                                                  
                                                                      
  if ( status )                                                       
4000d06c:	80 a2 20 00 	cmp  %o0, 0                                    
4000d070:	22 80 00 06 	be,a   4000d088 <device_ioctl+0x3c>            <== ALWAYS TAKEN
4000d074:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          
    return rtems_deviceio_errno(status);                              
4000d078:	40 00 06 b1 	call  4000eb3c <rtems_deviceio_errno>          <== NOT EXECUTED
4000d07c:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000d080:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000d084:	91 e8 00 08 	restore  %g0, %o0, %o0                         <== NOT EXECUTED
                                                                      
  return args.ioctl_return;                                           
}                                                                     
4000d088:	b0 10 00 08 	mov  %o0, %i0                                  
4000d08c:	81 c7 e0 08 	ret                                            
4000d090:	81 e8 00 00 	restore                                        
                                                                      

4000d190 <device_open>: rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) {
4000d190:	9d e3 bf 90 	save  %sp, -112, %sp                           
  IMFS_jnode_t                  *the_jnode;                           
                                                                      
  the_jnode  = iop->file_info;                                        
                                                                      
  args.iop   = iop;                                                   
  args.flags = iop->flags;                                            
4000d194:	c4 06 20 18 	ld  [ %i0 + 0x18 ], %g2                        
{                                                                     
  rtems_libio_open_close_args_t  args;                                
  rtems_status_code              status;                              
  IMFS_jnode_t                  *the_jnode;                           
                                                                      
  the_jnode  = iop->file_info;                                        
4000d198:	c2 06 20 3c 	ld  [ %i0 + 0x3c ], %g1                        
                                                                      
  args.iop   = iop;                                                   
4000d19c:	f0 27 bf f4 	st  %i0, [ %fp + -12 ]                         
  args.flags = iop->flags;                                            
4000d1a0:	c4 27 bf f8 	st  %g2, [ %fp + -8 ]                          
  args.mode  = mode;                                                  
4000d1a4:	f6 27 bf fc 	st  %i3, [ %fp + -4 ]                          
                                                                      
  status = rtems_io_open(                                             
4000d1a8:	d0 18 60 50 	ldd  [ %g1 + 0x50 ], %o0                       
4000d1ac:	94 07 bf f4 	add  %fp, -12, %o2                             
4000d1b0:	40 00 05 12 	call  4000e5f8 <rtems_io_open>                 
4000d1b4:	b0 10 20 00 	clr  %i0                                       
    the_jnode->info.device.major,                                     
    the_jnode->info.device.minor,                                     
    (void *) &args                                                    
  );                                                                  
  if ( status )                                                       
4000d1b8:	80 a2 20 00 	cmp  %o0, 0                                    
4000d1bc:	02 80 00 05 	be  4000d1d0 <device_open+0x40>                <== ALWAYS TAKEN
4000d1c0:	01 00 00 00 	nop                                            
    return rtems_deviceio_errno(status);                              
4000d1c4:	40 00 06 5e 	call  4000eb3c <rtems_deviceio_errno>          <== NOT EXECUTED
4000d1c8:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000d1cc:	b0 10 00 08 	mov  %o0, %i0                                  <== NOT EXECUTED
                                                                      
  return 0;                                                           
}                                                                     
4000d1d0:	81 c7 e0 08 	ret                                            
4000d1d4:	81 e8 00 00 	restore                                        
                                                                      

4000d0f0 <device_read>: ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) {
4000d0f0:	9d e3 bf 80 	save  %sp, -128, %sp                           <== NOT EXECUTED
                                                                      
  args.iop         = iop;                                             
  args.offset      = iop->offset;                                     
  args.buffer      = buffer;                                          
  args.count       = count;                                           
  args.flags       = iop->flags;                                      
4000d0f4:	c4 06 20 18 	ld  [ %i0 + 0x18 ], %g2                        <== NOT EXECUTED
{                                                                     
  rtems_libio_rw_args_t   args;                                       
  rtems_status_code       status;                                     
  IMFS_jnode_t           *the_jnode;                                  
                                                                      
  the_jnode = iop->file_info;                                         
4000d0f8:	c2 06 20 3c 	ld  [ %i0 + 0x3c ], %g1                        <== NOT EXECUTED
                                                                      
  args.iop         = iop;                                             
  args.offset      = iop->offset;                                     
4000d0fc:	d8 1e 20 10 	ldd  [ %i0 + 0x10 ], %o4                       <== NOT EXECUTED
  args.buffer      = buffer;                                          
4000d100:	f2 27 bf f0 	st  %i1, [ %fp + -16 ]                         <== NOT EXECUTED
  IMFS_jnode_t           *the_jnode;                                  
                                                                      
  the_jnode = iop->file_info;                                         
                                                                      
  args.iop         = iop;                                             
  args.offset      = iop->offset;                                     
4000d104:	d8 3f bf e8 	std  %o4, [ %fp + -24 ]                        <== NOT EXECUTED
  args.buffer      = buffer;                                          
  args.count       = count;                                           
4000d108:	f4 27 bf f4 	st  %i2, [ %fp + -12 ]                         <== NOT EXECUTED
  args.flags       = iop->flags;                                      
4000d10c:	c4 27 bf f8 	st  %g2, [ %fp + -8 ]                          <== NOT EXECUTED
  rtems_status_code       status;                                     
  IMFS_jnode_t           *the_jnode;                                  
                                                                      
  the_jnode = iop->file_info;                                         
                                                                      
  args.iop         = iop;                                             
4000d110:	f0 27 bf e0 	st  %i0, [ %fp + -32 ]                         <== NOT EXECUTED
  args.offset      = iop->offset;                                     
  args.buffer      = buffer;                                          
  args.count       = count;                                           
  args.flags       = iop->flags;                                      
  args.bytes_moved = 0;                                               
4000d114:	c0 27 bf fc 	clr  [ %fp + -4 ]                              <== NOT EXECUTED
                                                                      
  status = rtems_io_read(                                             
4000d118:	d0 18 60 50 	ldd  [ %g1 + 0x50 ], %o0                       <== NOT EXECUTED
4000d11c:	40 00 05 4d 	call  4000e650 <rtems_io_read>                 <== NOT EXECUTED
4000d120:	94 07 bf e0 	add  %fp, -32, %o2                             <== NOT EXECUTED
    the_jnode->info.device.major,                                     
    the_jnode->info.device.minor,                                     
    (void *) &args                                                    
  );                                                                  
                                                                      
  if ( status )                                                       
4000d124:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000d128:	22 80 00 06 	be,a   4000d140 <device_read+0x50>             <== NOT EXECUTED
4000d12c:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          <== NOT EXECUTED
    return rtems_deviceio_errno(status);                              
4000d130:	40 00 06 83 	call  4000eb3c <rtems_deviceio_errno>          <== NOT EXECUTED
4000d134:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000d138:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000d13c:	91 e8 00 08 	restore  %g0, %o0, %o0                         <== NOT EXECUTED
                                                                      
  return (ssize_t) args.bytes_moved;                                  
}                                                                     
4000d140:	b0 10 00 08 	mov  %o0, %i0                                  <== NOT EXECUTED
4000d144:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000d148:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

4000d094 <device_write>: ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) {
4000d094:	9d e3 bf 80 	save  %sp, -128, %sp                           
                                                                      
  args.iop         = iop;                                             
  args.offset      = iop->offset;                                     
  args.buffer      = (void *) buffer;                                 
  args.count       = count;                                           
  args.flags       = iop->flags;                                      
4000d098:	c4 06 20 18 	ld  [ %i0 + 0x18 ], %g2                        
{                                                                     
  rtems_libio_rw_args_t   args;                                       
  rtems_status_code       status;                                     
  IMFS_jnode_t           *the_jnode;                                  
                                                                      
  the_jnode = iop->file_info;                                         
4000d09c:	c2 06 20 3c 	ld  [ %i0 + 0x3c ], %g1                        
                                                                      
  args.iop         = iop;                                             
  args.offset      = iop->offset;                                     
4000d0a0:	d8 1e 20 10 	ldd  [ %i0 + 0x10 ], %o4                       
  args.buffer      = (void *) buffer;                                 
4000d0a4:	f2 27 bf f0 	st  %i1, [ %fp + -16 ]                         
  IMFS_jnode_t           *the_jnode;                                  
                                                                      
  the_jnode = iop->file_info;                                         
                                                                      
  args.iop         = iop;                                             
  args.offset      = iop->offset;                                     
4000d0a8:	d8 3f bf e8 	std  %o4, [ %fp + -24 ]                        
  args.buffer      = (void *) buffer;                                 
  args.count       = count;                                           
4000d0ac:	f4 27 bf f4 	st  %i2, [ %fp + -12 ]                         
  args.flags       = iop->flags;                                      
4000d0b0:	c4 27 bf f8 	st  %g2, [ %fp + -8 ]                          
  rtems_status_code       status;                                     
  IMFS_jnode_t           *the_jnode;                                  
                                                                      
  the_jnode = iop->file_info;                                         
                                                                      
  args.iop         = iop;                                             
4000d0b4:	f0 27 bf e0 	st  %i0, [ %fp + -32 ]                         
  args.offset      = iop->offset;                                     
  args.buffer      = (void *) buffer;                                 
  args.count       = count;                                           
  args.flags       = iop->flags;                                      
  args.bytes_moved = 0;                                               
4000d0b8:	c0 27 bf fc 	clr  [ %fp + -4 ]                              
                                                                      
  status = rtems_io_write(                                            
4000d0bc:	d0 18 60 50 	ldd  [ %g1 + 0x50 ], %o0                       
4000d0c0:	40 00 05 7a 	call  4000e6a8 <rtems_io_write>                
4000d0c4:	94 07 bf e0 	add  %fp, -32, %o2                             
    the_jnode->info.device.major,                                     
    the_jnode->info.device.minor,                                     
    (void *) &args                                                    
  );                                                                  
                                                                      
  if ( status )                                                       
4000d0c8:	80 a2 20 00 	cmp  %o0, 0                                    
4000d0cc:	22 80 00 06 	be,a   4000d0e4 <device_write+0x50>            <== ALWAYS TAKEN
4000d0d0:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          
    return rtems_deviceio_errno(status);                              
4000d0d4:	40 00 06 9a 	call  4000eb3c <rtems_deviceio_errno>          <== NOT EXECUTED
4000d0d8:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000d0dc:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000d0e0:	91 e8 00 08 	restore  %g0, %o0, %o0                         <== NOT EXECUTED
                                                                      
  return (ssize_t) args.bytes_moved;                                  
}                                                                     
4000d0e4:	b0 10 00 08 	mov  %o0, %i0                                  
4000d0e8:	81 c7 e0 08 	ret                                            
4000d0ec:	81 e8 00 00 	restore                                        
                                                                      

40004b44 <drainOutput>: /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) {
40004b44:	9d e3 bf a0 	save  %sp, -96, %sp                            
	rtems_interrupt_level level;                                         
	rtems_status_code sc;                                                
                                                                      
	if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {            
40004b48:	c2 06 20 b4 	ld  [ %i0 + 0xb4 ], %g1                        
40004b4c:	80 a0 60 00 	cmp  %g1, 0                                    
40004b50:	02 80 00 1a 	be  40004bb8 <drainOutput+0x74>                <== ALWAYS TAKEN
40004b54:	a0 10 00 18 	mov  %i0, %l0                                  
		rtems_interrupt_disable (level);                                    
40004b58:	7f ff f4 7d 	call  40001d4c <sparc_disable_interrupts>      <== NOT EXECUTED
40004b5c:	01 00 00 00 	nop                                            <== NOT EXECUTED
		while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {                
40004b60:	10 80 00 0f 	b  40004b9c <drainOutput+0x58>                 <== NOT EXECUTED
40004b64:	a2 10 20 02 	mov  2, %l1	! 2 <PROM_START+0x2>               <== NOT EXECUTED
			tty->rawOutBufState = rob_wait;                                    
			rtems_interrupt_enable (level);                                    
40004b68:	7f ff f4 7d 	call  40001d5c <sparc_enable_interrupts>       <== NOT EXECUTED
40004b6c:	01 00 00 00 	nop                                            <== NOT EXECUTED
			sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore,             
40004b70:	d0 04 20 8c 	ld  [ %l0 + 0x8c ], %o0                        <== NOT EXECUTED
40004b74:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
40004b78:	40 00 06 5d 	call  400064ec <rtems_semaphore_obtain>        <== NOT EXECUTED
40004b7c:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
							RTEMS_WAIT,                                                    
							RTEMS_NO_TIMEOUT);                                             
			if (sc != RTEMS_SUCCESSFUL)                                        
40004b80:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
40004b84:	02 80 00 04 	be  40004b94 <drainOutput+0x50>                <== NOT EXECUTED
40004b88:	01 00 00 00 	nop                                            <== NOT EXECUTED
				rtems_fatal_error_occurred (sc);                                  
40004b8c:	40 00 08 01 	call  40006b90 <rtems_fatal_error_occurred>    <== NOT EXECUTED
40004b90:	01 00 00 00 	nop                                            <== NOT EXECUTED
			rtems_interrupt_disable (level);                                   
40004b94:	7f ff f4 6e 	call  40001d4c <sparc_disable_interrupts>      <== NOT EXECUTED
40004b98:	01 00 00 00 	nop                                            <== NOT EXECUTED
	rtems_interrupt_level level;                                         
	rtems_status_code sc;                                                
                                                                      
	if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {            
		rtems_interrupt_disable (level);                                    
		while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {                
40004b9c:	c4 04 20 84 	ld  [ %l0 + 0x84 ], %g2                        <== NOT EXECUTED
40004ba0:	c2 04 20 80 	ld  [ %l0 + 0x80 ], %g1                        <== NOT EXECUTED
40004ba4:	80 a0 80 01 	cmp  %g2, %g1                                  <== NOT EXECUTED
40004ba8:	32 bf ff f0 	bne,a   40004b68 <drainOutput+0x24>            <== NOT EXECUTED
40004bac:	e2 24 20 94 	st  %l1, [ %l0 + 0x94 ]                        <== NOT EXECUTED
							RTEMS_NO_TIMEOUT);                                             
			if (sc != RTEMS_SUCCESSFUL)                                        
				rtems_fatal_error_occurred (sc);                                  
			rtems_interrupt_disable (level);                                   
		}                                                                   
		rtems_interrupt_enable (level);                                     
40004bb0:	7f ff f4 6b 	call  40001d5c <sparc_enable_interrupts>       <== NOT EXECUTED
40004bb4:	91 e8 00 08 	restore  %g0, %o0, %o0                         <== NOT EXECUTED
40004bb8:	81 c7 e0 08 	ret                                            
40004bbc:	81 e8 00 00 	restore                                        
                                                                      

40003e60 <dup2>: int dup2( int fildes, int fildes2 ) {
40003e60:	9d e3 bf 58 	save  %sp, -168, %sp                           
                                                                      
  /*                                                                  
   *  If fildes is not valid, then fildes2 should not be closed.      
   */                                                                 
                                                                      
  status = fstat( fildes, &buf );                                     
40003e64:	a0 07 bf b8 	add  %fp, -72, %l0                             
40003e68:	90 10 00 18 	mov  %i0, %o0                                  
40003e6c:	40 00 01 dc 	call  400045dc <fstat>                         
40003e70:	92 10 00 10 	mov  %l0, %o1                                  
  if ( status == -1 )                                                 
40003e74:	80 a2 3f ff 	cmp  %o0, -1                                   
40003e78:	02 80 00 0e 	be  40003eb0 <dup2+0x50>                       <== NEVER TAKEN
40003e7c:	90 10 3f ff 	mov  -1, %o0                                   
                                                                      
  /*                                                                  
   *  If fildes2 is not valid, then we should not do anything either. 
   */                                                                 
                                                                      
  status = fstat( fildes2, &buf );                                    
40003e80:	92 10 00 10 	mov  %l0, %o1                                  
40003e84:	40 00 01 d6 	call  400045dc <fstat>                         
40003e88:	90 10 00 19 	mov  %i1, %o0                                  
  if ( status == -1 )                                                 
40003e8c:	80 a2 3f ff 	cmp  %o0, -1                                   
40003e90:	02 80 00 07 	be  40003eac <dup2+0x4c>                       <== ALWAYS TAKEN
40003e94:	90 10 00 18 	mov  %i0, %o0                                  
                                                                      
  /*                                                                  
   *  This fcntl handles everything else.                             
   */                                                                 
                                                                      
  return fcntl( fildes, F_DUPFD, fildes2 );                           
40003e98:	94 10 00 19 	mov  %i1, %o2                                  <== NOT EXECUTED
40003e9c:	40 00 00 a1 	call  40004120 <fcntl>                         <== NOT EXECUTED
40003ea0:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
40003ea4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40003ea8:	91 e8 00 08 	restore  %g0, %o0, %o0                         <== NOT EXECUTED
40003eac:	90 10 3f ff 	mov  -1, %o0                                   
}                                                                     
40003eb0:	b0 10 00 08 	mov  %o0, %i0                                  
40003eb4:	81 c7 e0 08 	ret                                            
40003eb8:	81 e8 00 00 	restore                                        
                                                                      

40004590 <echo>: /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) {
40004590:	9d e3 bf 98 	save  %sp, -104, %sp                           <== NOT EXECUTED
	if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) {
40004594:	c2 06 60 3c 	ld  [ %i1 + 0x3c ], %g1                        <== NOT EXECUTED
40004598:	80 88 62 00 	btst  0x200, %g1                               <== NOT EXECUTED
4000459c:	02 80 00 1c 	be  4000460c <echo+0x7c>                       <== NOT EXECUTED
400045a0:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
400045a4:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    <== NOT EXECUTED
400045a8:	c4 00 63 b8 	ld  [ %g1 + 0x3b8 ], %g2	! 4001cfb8 <__ctype_ptr__><== NOT EXECUTED
400045ac:	82 0e 20 ff 	and  %i0, 0xff, %g1                            <== NOT EXECUTED
400045b0:	84 00 80 01 	add  %g2, %g1, %g2                             <== NOT EXECUTED
400045b4:	c4 08 a0 01 	ldub  [ %g2 + 1 ], %g2                         <== NOT EXECUTED
400045b8:	80 88 a0 20 	btst  0x20, %g2                                <== NOT EXECUTED
400045bc:	02 80 00 15 	be  40004610 <echo+0x80>                       <== NOT EXECUTED
400045c0:	90 0a 20 ff 	and  %o0, 0xff, %o0                            <== NOT EXECUTED
400045c4:	80 a0 60 09 	cmp  %g1, 9                                    <== NOT EXECUTED
400045c8:	02 80 00 12 	be  40004610 <echo+0x80>                       <== NOT EXECUTED
400045cc:	01 00 00 00 	nop                                            <== NOT EXECUTED
400045d0:	80 a0 60 0a 	cmp  %g1, 0xa                                  <== NOT EXECUTED
400045d4:	02 80 00 0f 	be  40004610 <echo+0x80>                       <== NOT EXECUTED
400045d8:	82 10 20 5e 	mov  0x5e, %g1                                 <== NOT EXECUTED
		char echobuf[2];                                                    
                                                                      
		echobuf[0] = '^';                                                   
		echobuf[1] = c ^ 0x40;                                              
400045dc:	b0 1e 20 40 	xor  %i0, 0x40, %i0                            <== NOT EXECUTED
echo (unsigned char c, struct rtems_termios_tty *tty)                 
{                                                                     
	if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) {
		char echobuf[2];                                                    
                                                                      
		echobuf[0] = '^';                                                   
400045e0:	c2 2f bf f8 	stb  %g1, [ %fp + -8 ]                         <== NOT EXECUTED
		echobuf[1] = c ^ 0x40;                                              
400045e4:	f0 2f bf f9 	stb  %i0, [ %fp + -7 ]                         <== NOT EXECUTED
		rtems_termios_puts (echobuf, 2, tty);                               
400045e8:	90 07 bf f8 	add  %fp, -8, %o0                              <== NOT EXECUTED
400045ec:	92 10 20 02 	mov  2, %o1                                    <== NOT EXECUTED
400045f0:	7f ff ff 39 	call  400042d4 <rtems_termios_puts>            <== NOT EXECUTED
400045f4:	94 10 00 19 	mov  %i1, %o2                                  <== NOT EXECUTED
		tty->column += 2;                                                   
400045f8:	c2 06 60 28 	ld  [ %i1 + 0x28 ], %g1                        <== NOT EXECUTED
400045fc:	82 00 60 02 	add  %g1, 2, %g1                               <== NOT EXECUTED
40004600:	c2 26 60 28 	st  %g1, [ %i1 + 0x28 ]                        <== NOT EXECUTED
 * Echo a typed character                                             
 */                                                                   
static void                                                           
echo (unsigned char c, struct rtems_termios_tty *tty)                 
{                                                                     
	if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) {
40004604:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40004608:	81 e8 00 00 	restore                                        <== NOT EXECUTED
		echobuf[1] = c ^ 0x40;                                              
		rtems_termios_puts (echobuf, 2, tty);                               
		tty->column += 2;                                                   
	}                                                                    
	else {                                                               
		oproc (c, tty);                                                     
4000460c:	90 0a 20 ff 	and  %o0, 0xff, %o0                            <== NOT EXECUTED
40004610:	7f ff ff 7d 	call  40004404 <oproc>                         <== NOT EXECUTED
40004614:	92 10 00 19 	mov  %i1, %o1                                  <== NOT EXECUTED
40004618:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000461c:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

400038d0 <endgrent>: group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL)
400038d0:	03 10 00 83 	sethi  %hi(0x40020c00), %g1                    <== NOT EXECUTED
400038d4:	d0 00 62 5c 	ld  [ %g1 + 0x25c ], %o0	! 40020e5c <group_fp> <== NOT EXECUTED
400038d8:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
400038dc:	02 80 00 05 	be  400038f0 <endgrent+0x20>                   <== NOT EXECUTED
400038e0:	01 00 00 00 	nop                                            <== NOT EXECUTED
    fclose(group_fp);                                                 
400038e4:	82 13 c0 00 	mov  %o7, %g1                                  <== NOT EXECUTED
400038e8:	40 00 37 e9 	call  4001188c <fclose>                        <== NOT EXECUTED
400038ec:	9e 10 40 00 	mov  %g1, %o7                                  <== NOT EXECUTED
400038f0:	81 c3 e0 08 	retl                                           <== NOT EXECUTED
                                                                      

400038f8 <endpwent>: passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL)
400038f8:	03 10 00 83 	sethi  %hi(0x40020c00), %g1                    <== NOT EXECUTED
400038fc:	d0 00 61 74 	ld  [ %g1 + 0x174 ], %o0	! 40020d74 <passwd_fp><== NOT EXECUTED
40003900:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
40003904:	02 80 00 05 	be  40003918 <endpwent+0x20>                   <== NOT EXECUTED
40003908:	01 00 00 00 	nop                                            <== NOT EXECUTED
    fclose(passwd_fp);                                                
4000390c:	82 13 c0 00 	mov  %o7, %g1                                  <== NOT EXECUTED
40003910:	40 00 37 df 	call  4001188c <fclose>                        <== NOT EXECUTED
40003914:	9e 10 40 00 	mov  %g1, %o7                                  <== NOT EXECUTED
40003918:	81 c3 e0 08 	retl                                           <== NOT EXECUTED
                                                                      

40004620 <erase>: * FIXME: Needs support for WERASE and ECHOPRT. * FIXME: Some of the tests should check for IEXTEN, too. */ static void erase (struct rtems_termios_tty *tty, int lineFlag) {
40004620:	9d e3 bf a0 	save  %sp, -96, %sp                            <== NOT EXECUTED
	if (tty->ccount == 0)                                                
40004624:	c2 06 20 20 	ld  [ %i0 + 0x20 ], %g1                        <== NOT EXECUTED
40004628:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000462c:	02 80 00 0a 	be  40004654 <erase+0x34>                      <== NOT EXECUTED
40004630:	a0 10 00 18 	mov  %i0, %l0                                  <== NOT EXECUTED
		return;                                                             
	if (lineFlag) {                                                      
40004634:	80 a6 60 00 	cmp  %i1, 0                                    <== NOT EXECUTED
40004638:	02 80 00 7a 	be  40004820 <erase+0x200>                     <== NOT EXECUTED
4000463c:	25 10 00 73 	sethi  %hi(0x4001cc00), %l2                    <== NOT EXECUTED
		if (!(tty->termios.c_lflag & ECHO)) {                               
40004640:	c2 06 20 3c 	ld  [ %i0 + 0x3c ], %g1                        <== NOT EXECUTED
40004644:	80 88 60 08 	btst  8, %g1                                   <== NOT EXECUTED
40004648:	32 80 00 05 	bne,a   4000465c <erase+0x3c>                  <== NOT EXECUTED
4000464c:	80 88 60 10 	btst  0x10, %g1                                <== NOT EXECUTED
			tty->ccount = 0;                                                   
40004650:	c0 26 20 20 	clr  [ %i0 + 0x20 ]                            <== NOT EXECUTED
			return;                                                            
40004654:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40004658:	81 e8 00 00 	restore                                        <== NOT EXECUTED
		}                                                                   
		if (!(tty->termios.c_lflag & ECHOE)) {                              
4000465c:	12 80 00 71 	bne  40004820 <erase+0x200>                    <== NOT EXECUTED
40004660:	25 10 00 73 	sethi  %hi(0x4001cc00), %l2                    <== NOT EXECUTED
			tty->ccount = 0;                                                   
			echo (tty->termios.c_cc[VKILL], tty);                              
40004664:	d0 0e 20 44 	ldub  [ %i0 + 0x44 ], %o0                      <== NOT EXECUTED
		if (!(tty->termios.c_lflag & ECHO)) {                               
			tty->ccount = 0;                                                   
			return;                                                            
		}                                                                   
		if (!(tty->termios.c_lflag & ECHOE)) {                              
			tty->ccount = 0;                                                   
40004668:	c0 26 20 20 	clr  [ %i0 + 0x20 ]                            <== NOT EXECUTED
			echo (tty->termios.c_cc[VKILL], tty);                              
4000466c:	7f ff ff c9 	call  40004590 <echo>                          <== NOT EXECUTED
40004670:	92 10 00 18 	mov  %i0, %o1                                  <== NOT EXECUTED
			if (tty->termios.c_lflag & ECHOK)                                  
40004674:	c2 06 20 3c 	ld  [ %i0 + 0x3c ], %g1                        <== NOT EXECUTED
				echo ('\n', tty);                                                 
40004678:	b2 10 00 18 	mov  %i0, %i1                                  <== NOT EXECUTED
			return;                                                            
		}                                                                   
		if (!(tty->termios.c_lflag & ECHOE)) {                              
			tty->ccount = 0;                                                   
			echo (tty->termios.c_cc[VKILL], tty);                              
			if (tty->termios.c_lflag & ECHOK)                                  
4000467c:	80 88 60 20 	btst  0x20, %g1                                <== NOT EXECUTED
40004680:	02 bf ff f5 	be  40004654 <erase+0x34>                      <== NOT EXECUTED
40004684:	b0 10 20 0a 	mov  0xa, %i0                                  <== NOT EXECUTED
40004688:	30 80 00 0f 	b,a   400046c4 <erase+0xa4>                    <== NOT EXECUTED
		}                                                                   
	}                                                                    
	while (tty->ccount) {                                                
		unsigned char c = tty->cbuf[--tty->ccount];                         
                                                                      
		if (tty->termios.c_lflag & ECHO) {                                  
4000468c:	c2 04 20 3c 	ld  [ %l0 + 0x3c ], %g1                        <== NOT EXECUTED
				echo ('\n', tty);                                                 
			return;                                                            
		}                                                                   
	}                                                                    
	while (tty->ccount) {                                                
		unsigned char c = tty->cbuf[--tty->ccount];                         
40004690:	86 00 ff ff 	add  %g3, -1, %g3                              <== NOT EXECUTED
40004694:	c6 24 20 20 	st  %g3, [ %l0 + 0x20 ]                        <== NOT EXECUTED
                                                                      
		if (tty->termios.c_lflag & ECHO) {                                  
40004698:	80 88 60 08 	btst  8, %g1                                   <== NOT EXECUTED
4000469c:	02 80 00 5c 	be  4000480c <erase+0x1ec>                     <== NOT EXECUTED
400046a0:	e2 08 80 03 	ldub  [ %g2 + %g3 ], %l1                       <== NOT EXECUTED
			if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {                
400046a4:	80 a6 60 00 	cmp  %i1, 0                                    <== NOT EXECUTED
400046a8:	32 80 00 09 	bne,a   400046cc <erase+0xac>                  <== NOT EXECUTED
400046ac:	a2 0c 60 ff 	and  %l1, 0xff, %l1                            <== NOT EXECUTED
400046b0:	80 88 60 10 	btst  0x10, %g1                                <== NOT EXECUTED
400046b4:	32 80 00 06 	bne,a   400046cc <erase+0xac>                  <== NOT EXECUTED
400046b8:	a2 0c 60 ff 	and  %l1, 0xff, %l1                            <== NOT EXECUTED
				echo (tty->termios.c_cc[VERASE], tty);                            
400046bc:	f0 0c 20 43 	ldub  [ %l0 + 0x43 ], %i0                      <== NOT EXECUTED
400046c0:	b2 10 00 10 	mov  %l0, %i1                                  <== NOT EXECUTED
400046c4:	7f ff ff b3 	call  40004590 <echo>                          <== NOT EXECUTED
400046c8:	81 e8 00 00 	restore                                        <== NOT EXECUTED
			}                                                                  
			else if (c == '\t') {                                              
400046cc:	80 a4 60 09 	cmp  %l1, 9                                    <== NOT EXECUTED
400046d0:	32 80 00 2a 	bne,a   40004778 <erase+0x158>                 <== NOT EXECUTED
400046d4:	c4 04 80 00 	ld  [ %l2 ], %g2                               <== NOT EXECUTED
					c = tty->cbuf[i++];                                              
					if (c == '\t') {                                                 
						col = (col | 7) + 1;                                            
					}                                                                
					else if (iscntrl (c)) {                                          
						if (tty->termios.c_lflag & ECHOCTL)                             
400046d8:	82 08 62 00 	and  %g1, 0x200, %g1                           <== NOT EXECUTED
		if (tty->termios.c_lflag & ECHO) {                                  
			if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {                
				echo (tty->termios.c_cc[VERASE], tty);                            
			}                                                                  
			else if (c == '\t') {                                              
				int col = tty->read_start_column;                                 
400046dc:	e2 04 20 2c 	ld  [ %l0 + 0x2c ], %l1                        <== NOT EXECUTED
				while (i != tty->ccount) {                                        
					c = tty->cbuf[i++];                                              
					if (c == '\t') {                                                 
						col = (col | 7) + 1;                                            
					}                                                                
					else if (iscntrl (c)) {                                          
400046e0:	da 04 80 00 	ld  [ %l2 ], %o5                               <== NOT EXECUTED
				int i = 0;                                                        
                                                                      
				/*                                                                
				 * Find the character before the tab                              
				 */                                                               
				while (i != tty->ccount) {                                        
400046e4:	10 80 00 13 	b  40004730 <erase+0x110>                      <== NOT EXECUTED
400046e8:	84 10 20 00 	clr  %g2                                       <== NOT EXECUTED
					c = tty->cbuf[i++];                                              
					if (c == '\t') {                                                 
400046ec:	c8 09 00 02 	ldub  [ %g4 + %g2 ], %g4                       <== NOT EXECUTED
400046f0:	80 a1 20 09 	cmp  %g4, 9                                    <== NOT EXECUTED
400046f4:	12 80 00 04 	bne  40004704 <erase+0xe4>                     <== NOT EXECUTED
400046f8:	98 03 40 04 	add  %o5, %g4, %o4                             <== NOT EXECUTED
						col = (col | 7) + 1;                                            
400046fc:	10 80 00 0b 	b  40004728 <erase+0x108>                      <== NOT EXECUTED
40004700:	a2 14 60 07 	or  %l1, 7, %l1                                <== NOT EXECUTED
					}                                                                
					else if (iscntrl (c)) {                                          
40004704:	c8 0b 20 01 	ldub  [ %o4 + 1 ], %g4                         <== NOT EXECUTED
40004708:	80 89 20 20 	btst  0x20, %g4                                <== NOT EXECUTED
4000470c:	22 80 00 08 	be,a   4000472c <erase+0x10c>                  <== NOT EXECUTED
40004710:	a2 04 60 01 	inc  %l1                                       <== NOT EXECUTED
						if (tty->termios.c_lflag & ECHOCTL)                             
40004714:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40004718:	32 80 00 05 	bne,a   4000472c <erase+0x10c>                 <== NOT EXECUTED
4000471c:	a2 04 60 02 	add  %l1, 2, %l1                               <== NOT EXECUTED
                                                                      
				/*                                                                
				 * Find the character before the tab                              
				 */                                                               
				while (i != tty->ccount) {                                        
					c = tty->cbuf[i++];                                              
40004720:	10 80 00 04 	b  40004730 <erase+0x110>                      <== NOT EXECUTED
40004724:	84 00 a0 01 	inc  %g2                                       <== NOT EXECUTED
					else if (iscntrl (c)) {                                          
						if (tty->termios.c_lflag & ECHOCTL)                             
							col += 2;                                                      
					}                                                                
					else {                                                           
						col++;                                                          
40004728:	a2 04 60 01 	inc  %l1                                       <== NOT EXECUTED
                                                                      
				/*                                                                
				 * Find the character before the tab                              
				 */                                                               
				while (i != tty->ccount) {                                        
					c = tty->cbuf[i++];                                              
4000472c:	84 00 a0 01 	inc  %g2                                       <== NOT EXECUTED
				int i = 0;                                                        
                                                                      
				/*                                                                
				 * Find the character before the tab                              
				 */                                                               
				while (i != tty->ccount) {                                        
40004730:	80 a0 80 03 	cmp  %g2, %g3                                  <== NOT EXECUTED
40004734:	32 bf ff ee 	bne,a   400046ec <erase+0xcc>                  <== NOT EXECUTED
40004738:	c8 04 20 1c 	ld  [ %l0 + 0x1c ], %g4                        <== NOT EXECUTED
				}                                                                 
                                                                      
				/*                                                                
				 * Back up over the tab                                           
				 */                                                               
				while (tty->column > col) {                                       
4000473c:	10 80 00 08 	b  4000475c <erase+0x13c>                      <== NOT EXECUTED
40004740:	c2 04 20 28 	ld  [ %l0 + 0x28 ], %g1                        <== NOT EXECUTED
					rtems_termios_puts ("\b", 1, tty);                               
40004744:	7f ff fe e4 	call  400042d4 <rtems_termios_puts>            <== NOT EXECUTED
40004748:	01 00 00 00 	nop                                            <== NOT EXECUTED
					tty->column--;                                                   
4000474c:	c2 04 20 28 	ld  [ %l0 + 0x28 ], %g1                        <== NOT EXECUTED
40004750:	82 00 7f ff 	add  %g1, -1, %g1                              <== NOT EXECUTED
40004754:	c2 24 20 28 	st  %g1, [ %l0 + 0x28 ]                        <== NOT EXECUTED
				}                                                                 
                                                                      
				/*                                                                
				 * Back up over the tab                                           
				 */                                                               
				while (tty->column > col) {                                       
40004758:	c2 04 20 28 	ld  [ %l0 + 0x28 ], %g1                        <== NOT EXECUTED
					rtems_termios_puts ("\b", 1, tty);                               
4000475c:	90 10 00 14 	mov  %l4, %o0                                  <== NOT EXECUTED
40004760:	92 10 20 01 	mov  1, %o1                                    <== NOT EXECUTED
				}                                                                 
                                                                      
				/*                                                                
				 * Back up over the tab                                           
				 */                                                               
				while (tty->column > col) {                                       
40004764:	80 a0 40 11 	cmp  %g1, %l1                                  <== NOT EXECUTED
40004768:	14 bf ff f7 	bg  40004744 <erase+0x124>                     <== NOT EXECUTED
4000476c:	94 10 00 10 	mov  %l0, %o2                                  <== NOT EXECUTED
					if (tty->column)                                                 
						tty->column--;                                                  
				}                                                                 
			}                                                                  
		}                                                                   
		if (!lineFlag)                                                      
40004770:	10 80 00 28 	b  40004810 <erase+0x1f0>                      <== NOT EXECUTED
40004774:	80 a6 60 00 	cmp  %i1, 0                                    <== NOT EXECUTED
					rtems_termios_puts ("\b", 1, tty);                               
					tty->column--;                                                   
				}                                                                 
			}                                                                  
			else {                                                             
				if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {            
40004778:	a2 04 60 01 	inc  %l1                                       <== NOT EXECUTED
4000477c:	c4 08 80 11 	ldub  [ %g2 + %l1 ], %g2                       <== NOT EXECUTED
40004780:	80 88 a0 20 	btst  0x20, %g2                                <== NOT EXECUTED
40004784:	22 80 00 10 	be,a   400047c4 <erase+0x1a4>                  <== NOT EXECUTED
40004788:	c2 04 80 00 	ld  [ %l2 ], %g1                               <== NOT EXECUTED
4000478c:	80 88 62 00 	btst  0x200, %g1                               <== NOT EXECUTED
40004790:	22 80 00 0d 	be,a   400047c4 <erase+0x1a4>                  <== NOT EXECUTED
40004794:	c2 04 80 00 	ld  [ %l2 ], %g1                               <== NOT EXECUTED
					rtems_termios_puts ("\b \b", 3, tty);                            
40004798:	90 10 00 13 	mov  %l3, %o0                                  <== NOT EXECUTED
4000479c:	92 10 20 03 	mov  3, %o1                                    <== NOT EXECUTED
400047a0:	7f ff fe cd 	call  400042d4 <rtems_termios_puts>            <== NOT EXECUTED
400047a4:	94 10 00 10 	mov  %l0, %o2                                  <== NOT EXECUTED
					if (tty->column)                                                 
400047a8:	c2 04 20 28 	ld  [ %l0 + 0x28 ], %g1                        <== NOT EXECUTED
400047ac:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
400047b0:	22 80 00 05 	be,a   400047c4 <erase+0x1a4>                  <== NOT EXECUTED
400047b4:	c2 04 80 00 	ld  [ %l2 ], %g1                               <== NOT EXECUTED
						tty->column--;                                                  
400047b8:	82 00 7f ff 	add  %g1, -1, %g1                              <== NOT EXECUTED
400047bc:	c2 24 20 28 	st  %g1, [ %l0 + 0x28 ]                        <== NOT EXECUTED
				}                                                                 
				if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) {           
400047c0:	c2 04 80 00 	ld  [ %l2 ], %g1                               <== NOT EXECUTED
400047c4:	c2 08 40 11 	ldub  [ %g1 + %l1 ], %g1                       <== NOT EXECUTED
400047c8:	80 88 60 20 	btst  0x20, %g1                                <== NOT EXECUTED
400047cc:	02 80 00 07 	be  400047e8 <erase+0x1c8>                     <== NOT EXECUTED
400047d0:	90 10 00 13 	mov  %l3, %o0                                  <== NOT EXECUTED
400047d4:	c2 04 20 3c 	ld  [ %l0 + 0x3c ], %g1                        <== NOT EXECUTED
400047d8:	80 88 62 00 	btst  0x200, %g1                               <== NOT EXECUTED
400047dc:	02 80 00 0d 	be  40004810 <erase+0x1f0>                     <== NOT EXECUTED
400047e0:	80 a6 60 00 	cmp  %i1, 0                                    <== NOT EXECUTED
					rtems_termios_puts ("\b \b", 3, tty);                            
400047e4:	90 10 00 13 	mov  %l3, %o0                                  <== NOT EXECUTED
400047e8:	92 10 20 03 	mov  3, %o1                                    <== NOT EXECUTED
400047ec:	7f ff fe ba 	call  400042d4 <rtems_termios_puts>            <== NOT EXECUTED
400047f0:	94 10 00 10 	mov  %l0, %o2                                  <== NOT EXECUTED
					if (tty->column)                                                 
400047f4:	c2 04 20 28 	ld  [ %l0 + 0x28 ], %g1                        <== NOT EXECUTED
400047f8:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
400047fc:	02 80 00 05 	be  40004810 <erase+0x1f0>                     <== NOT EXECUTED
40004800:	80 a6 60 00 	cmp  %i1, 0                                    <== NOT EXECUTED
						tty->column--;                                                  
40004804:	82 00 7f ff 	add  %g1, -1, %g1                              <== NOT EXECUTED
40004808:	c2 24 20 28 	st  %g1, [ %l0 + 0x28 ]                        <== NOT EXECUTED
				}                                                                 
			}                                                                  
		}                                                                   
		if (!lineFlag)                                                      
4000480c:	80 a6 60 00 	cmp  %i1, 0                                    <== NOT EXECUTED
40004810:	32 80 00 0a 	bne,a   40004838 <erase+0x218>                 <== NOT EXECUTED
40004814:	c6 04 20 20 	ld  [ %l0 + 0x20 ], %g3                        <== NOT EXECUTED
40004818:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000481c:	81 e8 00 00 	restore                                        <== NOT EXECUTED
					rtems_termios_puts ("\b \b", 3, tty);                            
					if (tty->column)                                                 
						tty->column--;                                                  
				}                                                                 
				if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) {           
					rtems_termios_puts ("\b \b", 3, tty);                            
40004820:	27 10 00 6f 	sethi  %hi(0x4001bc00), %l3                    <== NOT EXECUTED
                                                                      
				/*                                                                
				 * Back up over the tab                                           
				 */                                                               
				while (tty->column > col) {                                       
					rtems_termios_puts ("\b", 1, tty);                               
40004824:	29 10 00 6f 	sethi  %hi(0x4001bc00), %l4                    <== NOT EXECUTED
40004828:	a4 14 a3 b8 	or  %l2, 0x3b8, %l2                            <== NOT EXECUTED
					rtems_termios_puts ("\b \b", 3, tty);                            
					if (tty->column)                                                 
						tty->column--;                                                  
				}                                                                 
				if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) {           
					rtems_termios_puts ("\b \b", 3, tty);                            
4000482c:	a6 14 e2 38 	or  %l3, 0x238, %l3                            <== NOT EXECUTED
                                                                      
				/*                                                                
				 * Back up over the tab                                           
				 */                                                               
				while (tty->column > col) {                                       
					rtems_termios_puts ("\b", 1, tty);                               
40004830:	a8 15 22 30 	or  %l4, 0x230, %l4                            <== NOT EXECUTED
			if (tty->termios.c_lflag & ECHOK)                                  
				echo ('\n', tty);                                                 
			return;                                                            
		}                                                                   
	}                                                                    
	while (tty->ccount) {                                                
40004834:	c6 04 20 20 	ld  [ %l0 + 0x20 ], %g3                        <== NOT EXECUTED
40004838:	80 a0 e0 00 	cmp  %g3, 0                                    <== NOT EXECUTED
4000483c:	32 bf ff 94 	bne,a   4000468c <erase+0x6c>                  <== NOT EXECUTED
40004840:	c4 04 20 1c 	ld  [ %l0 + 0x1c ], %g2                        <== NOT EXECUTED
40004844:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40004848:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

40004120 <fcntl>: int fcntl( int fd, int cmd, ... ) {
40004120:	9d e3 bf 98 	save  %sp, -104, %sp                           
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
40004124:	03 10 00 83 	sethi  %hi(0x40020c00), %g1                    
40004128:	c2 00 62 74 	ld  [ %g1 + 0x274 ], %g1	! 40020e74 <rtems_libio_number_iops>
  ...                                                                 
)                                                                     
{                                                                     
  int            ret;                                                 
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
4000412c:	84 07 a0 4c 	add  %fp, 0x4c, %g2                            
40004130:	f4 27 a0 4c 	st  %i2, [ %fp + 0x4c ]                        
40004134:	f6 27 a0 50 	st  %i3, [ %fp + 0x50 ]                        
40004138:	f8 27 a0 54 	st  %i4, [ %fp + 0x54 ]                        
4000413c:	fa 27 a0 58 	st  %i5, [ %fp + 0x58 ]                        
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
40004140:	80 a6 00 01 	cmp  %i0, %g1                                  
40004144:	1a 80 00 0c 	bcc  40004174 <fcntl+0x54>                     <== NEVER TAKEN
40004148:	c4 27 bf fc 	st  %g2, [ %fp + -4 ]                          
  iop = rtems_libio_iop( fd );                                        
4000414c:	07 10 00 86 	sethi  %hi(0x40021800), %g3                    
40004150:	c6 00 e0 14 	ld  [ %g3 + 0x14 ], %g3	! 40021814 <rtems_libio_iops>
40004154:	89 2e 20 06 	sll  %i0, 6, %g4                               
40004158:	a1 2e 20 03 	sll  %i0, 3, %l0                               
4000415c:	a0 04 00 04 	add  %l0, %g4, %l0                             
40004160:	a0 00 c0 10 	add  %g3, %l0, %l0                             
  rtems_libio_check_is_open(iop);                                     
40004164:	d0 04 20 18 	ld  [ %l0 + 0x18 ], %o0                        
40004168:	80 8a 21 00 	btst  0x100, %o0                               
4000416c:	12 80 00 06 	bne  40004184 <fcntl+0x64>                     <== ALWAYS TAKEN
40004170:	80 a6 60 09 	cmp  %i1, 9                                    
40004174:	40 00 37 8a 	call  40011f9c <__errno>                       <== NOT EXECUTED
40004178:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
4000417c:	10 80 00 51 	b  400042c0 <fcntl+0x1a0>                      <== NOT EXECUTED
40004180:	82 10 20 09 	mov  9, %g1                                    <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  This switch should contain all the cases from POSIX.            
   */                                                                 
                                                                      
  switch ( cmd ) {                                                    
40004184:	18 80 00 4c 	bgu  400042b4 <fcntl+0x194>                    
40004188:	89 2e 60 02 	sll  %i1, 2, %g4                               
4000418c:	1b 10 00 10 	sethi  %hi(0x40004000), %o5                    
40004190:	9a 13 60 f8 	or  %o5, 0xf8, %o5	! 400040f8 <rtems_filesystem_evaluate_path+0xa8>
40004194:	c8 03 40 04 	ld  [ %o5 + %g4 ], %g4                         
40004198:	81 c1 00 00 	jmp  %g4                                       
4000419c:	01 00 00 00 	nop                                            
    case F_DUPFD:        /* dup */                                    
      fd2 = va_arg( ap, int );                                        
400041a0:	c4 00 80 00 	ld  [ %g2 ], %g2                               
      if ( fd2 )                                                      
400041a4:	80 a0 a0 00 	cmp  %g2, 0                                    
400041a8:	02 80 00 09 	be  400041cc <fcntl+0xac>                      <== ALWAYS TAKEN
400041ac:	80 a0 80 01 	cmp  %g2, %g1                                  
        diop = rtems_libio_iop( fd2 );                                
400041b0:	1a 80 00 0c 	bcc  400041e0 <fcntl+0xc0>                     <== NOT EXECUTED
400041b4:	a2 10 20 00 	clr  %l1                                       <== NOT EXECUTED
400041b8:	83 28 a0 06 	sll  %g2, 6, %g1                               <== NOT EXECUTED
400041bc:	a3 28 a0 03 	sll  %g2, 3, %l1                               <== NOT EXECUTED
400041c0:	a2 04 40 01 	add  %l1, %g1, %l1                             <== NOT EXECUTED
400041c4:	10 80 00 07 	b  400041e0 <fcntl+0xc0>                       <== NOT EXECUTED
400041c8:	a2 00 c0 11 	add  %g3, %l1, %l1                             <== NOT EXECUTED
      else {                                                          
        /* allocate a file control block */                           
        diop = rtems_libio_allocate();                                
400041cc:	40 00 02 22 	call  40004a54 <rtems_libio_allocate>          
400041d0:	b0 10 3f ff 	mov  -1, %i0                                   
        if ( diop == 0 ) {                                            
400041d4:	a2 92 20 00 	orcc  %o0, 0, %l1                              
400041d8:	02 80 00 4d 	be  4000430c <fcntl+0x1ec>                     <== NEVER TAKEN
400041dc:	01 00 00 00 	nop                                            
          break;                                                      
        }                                                             
      }                                                               
                                                                      
      diop->handlers   = iop->handlers;                               
      diop->file_info  = iop->file_info;                              
400041e0:	c4 04 20 3c 	ld  [ %l0 + 0x3c ], %g2                        
      diop->flags      = iop->flags;                                  
400041e4:	c2 04 20 18 	ld  [ %l0 + 0x18 ], %g1                        
          ret = -1;                                                   
          break;                                                      
        }                                                             
      }                                                               
                                                                      
      diop->handlers   = iop->handlers;                               
400041e8:	c6 04 20 40 	ld  [ %l0 + 0x40 ], %g3                        
      diop->file_info  = iop->file_info;                              
400041ec:	c4 24 60 3c 	st  %g2, [ %l1 + 0x3c ]                        
      diop->flags      = iop->flags;                                  
400041f0:	c2 24 60 18 	st  %g1, [ %l1 + 0x18 ]                        
          ret = -1;                                                   
          break;                                                      
        }                                                             
      }                                                               
                                                                      
      diop->handlers   = iop->handlers;                               
400041f4:	c6 24 60 40 	st  %g3, [ %l1 + 0x40 ]                        
      diop->file_info  = iop->file_info;                              
      diop->flags      = iop->flags;                                  
      diop->pathinfo   = iop->pathinfo;                               
400041f8:	90 04 60 1c 	add  %l1, 0x1c, %o0                            
400041fc:	92 04 20 1c 	add  %l0, 0x1c, %o1                            
40004200:	40 00 3c 10 	call  40013240 <memcpy>                        
40004204:	94 10 20 14 	mov  0x14, %o2                                 
      ret = (int) (diop - rtems_libio_iops);                          
40004208:	03 10 00 86 	sethi  %hi(0x40021800), %g1                    
4000420c:	f0 00 60 14 	ld  [ %g1 + 0x14 ], %i0	! 40021814 <rtems_libio_iops>
40004210:	a2 24 40 18 	sub  %l1, %i0, %l1                             
40004214:	a3 3c 60 03 	sra  %l1, 3, %l1                               
40004218:	85 2c 60 06 	sll  %l1, 6, %g2                               
4000421c:	83 2c 60 03 	sll  %l1, 3, %g1                               
40004220:	82 20 80 01 	sub  %g2, %g1, %g1                             
40004224:	85 28 60 06 	sll  %g1, 6, %g2                               
40004228:	82 00 40 02 	add  %g1, %g2, %g1                             
4000422c:	82 00 40 11 	add  %g1, %l1, %g1                             
40004230:	b1 28 60 0f 	sll  %g1, 0xf, %i0                             
40004234:	b0 26 00 01 	sub  %i0, %g1, %i0                             
40004238:	b1 2e 20 03 	sll  %i0, 3, %i0                               
4000423c:	10 80 00 24 	b  400042cc <fcntl+0x1ac>                      
40004240:	b0 06 00 11 	add  %i0, %l1, %i0                             
      break;                                                          
                                                                      
    case F_GETFD:        /* get f_flags */                            
      ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0);          
40004244:	b1 32 20 0b 	srl  %o0, 0xb, %i0                             
40004248:	10 80 00 24 	b  400042d8 <fcntl+0x1b8>                      
4000424c:	b0 0e 20 01 	and  %i0, 1, %i0                               
       *  if a new process is exec()'ed.  Since RTEMS does not support
       *  processes, then we can ignore this one except to make       
       *  F_GETFD work.                                               
       */                                                             
                                                                      
      if ( va_arg( ap, int ) )                                        
40004250:	c2 00 80 00 	ld  [ %g2 ], %g1                               
40004254:	80 a0 60 00 	cmp  %g1, 0                                    
40004258:	22 80 00 03 	be,a   40004264 <fcntl+0x144>                  <== NEVER TAKEN
4000425c:	90 0a 37 ff 	and  %o0, -2049, %o0                           <== NOT EXECUTED
40004260:	90 12 28 00 	or  %o0, 0x800, %o0                            
        iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;                      
      else                                                            
        iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;                     
40004264:	d0 24 20 18 	st  %o0, [ %l0 + 0x18 ]                        
40004268:	10 80 00 1c 	b  400042d8 <fcntl+0x1b8>                      
4000426c:	b0 10 20 00 	clr  %i0                                       
      break;                                                          
                                                                      
    case F_GETFL:        /* more flags (cloexec) */                   
      ret = rtems_libio_to_fcntl_flags( iop->flags );                 
40004270:	40 00 01 8e 	call  400048a8 <rtems_libio_to_fcntl_flags>    
40004274:	01 00 00 00 	nop                                            
40004278:	10 80 00 15 	b  400042cc <fcntl+0x1ac>                      
4000427c:	b0 10 00 08 	mov  %o0, %i0                                  
      break;                                                          
                                                                      
    case F_SETFL:                                                     
      flags = rtems_libio_fcntl_flags( va_arg( ap, int ) );           
40004280:	d0 00 80 00 	ld  [ %g2 ], %o0                               
40004284:	40 00 02 28 	call  40004b24 <rtems_libio_fcntl_flags>       
40004288:	b0 10 20 00 	clr  %i0                                       
                                                                      
      /*                                                              
       *  XXX If we are turning on append, should we seek to the end? 
       */                                                             
                                                                      
      iop->flags = (iop->flags & ~mask) | (flags & mask);             
4000428c:	c2 04 20 18 	ld  [ %l0 + 0x18 ], %g1                        
40004290:	90 0a 22 01 	and  %o0, 0x201, %o0                           
40004294:	82 08 7d fe 	and  %g1, -514, %g1                            
40004298:	82 12 00 01 	or  %o0, %g1, %g1                              
4000429c:	10 80 00 0f 	b  400042d8 <fcntl+0x1b8>                      
400042a0:	c2 24 20 18 	st  %g1, [ %l0 + 0x18 ]                        
      errno = ENOTSUP;                                                
      ret = -1;                                                       
      break;                                                          
                                                                      
    case F_GETOWN:       /*  for sockets. */                          
      errno = ENOTSUP;                                                
400042a4:	40 00 37 3e 	call  40011f9c <__errno>                       
400042a8:	b0 10 3f ff 	mov  -1, %i0                                   
400042ac:	10 80 00 05 	b  400042c0 <fcntl+0x1a0>                      
400042b0:	82 10 20 86 	mov  0x86, %g1                                 
      ret = -1;                                                       
      break;                                                          
                                                                      
    default:                                                          
      errno = EINVAL;                                                 
400042b4:	40 00 37 3a 	call  40011f9c <__errno>                       
400042b8:	b0 10 3f ff 	mov  -1, %i0                                   
400042bc:	82 10 20 16 	mov  0x16, %g1                                 
400042c0:	c2 22 00 00 	st  %g1, [ %o0 ]                               
400042c4:	81 c7 e0 08 	ret                                            
400042c8:	81 e8 00 00 	restore                                        
  /*                                                                  
   *  If we got this far successfully, then we give the optional      
   *  filesystem specific handler a chance to process this.           
   */                                                                 
                                                                      
  if (ret >= 0) {                                                     
400042cc:	80 a6 20 00 	cmp  %i0, 0                                    
400042d0:	06 80 00 0f 	bl  4000430c <fcntl+0x1ec>                     <== NEVER TAKEN
400042d4:	01 00 00 00 	nop                                            
    if (iop->handlers->fcntl_h) {                                     
400042d8:	c2 04 20 40 	ld  [ %l0 + 0x40 ], %g1                        
400042dc:	c2 00 60 30 	ld  [ %g1 + 0x30 ], %g1                        
400042e0:	80 a0 60 00 	cmp  %g1, 0                                    
400042e4:	02 bf ff f8 	be  400042c4 <fcntl+0x1a4>                     <== NEVER TAKEN
400042e8:	92 10 00 10 	mov  %l0, %o1                                  
      int err = (*iop->handlers->fcntl_h)( cmd, iop );                
400042ec:	9f c0 40 00 	call  %g1                                      
400042f0:	90 10 00 19 	mov  %i1, %o0                                  
      if (err) {                                                      
400042f4:	a0 92 20 00 	orcc  %o0, 0, %l0                              
400042f8:	02 80 00 05 	be  4000430c <fcntl+0x1ec>                     <== ALWAYS TAKEN
400042fc:	01 00 00 00 	nop                                            
        errno = err;                                                  
40004300:	40 00 37 27 	call  40011f9c <__errno>                       <== NOT EXECUTED
40004304:	b0 10 3f ff 	mov  -1, %i0	! ffffffff <LEON_REG+0x7fffffff>  <== NOT EXECUTED
40004308:	e0 22 00 00 	st  %l0, [ %o0 ]                               <== NOT EXECUTED
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
  ret = vfcntl(fd,cmd,ap);                                            
  va_end(ap);                                                         
  return ret;                                                         
}                                                                     
4000430c:	81 c7 e0 08 	ret                                            
40004310:	81 e8 00 00 	restore                                        
                                                                      

40004330 <fdatasync>: #include <rtems/seterr.h> int fdatasync( int fd ) {
40004330:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
40004334:	03 10 00 83 	sethi  %hi(0x40020c00), %g1                    
40004338:	c2 00 62 74 	ld  [ %g1 + 0x274 ], %g1	! 40020e74 <rtems_libio_number_iops>
4000433c:	80 a6 00 01 	cmp  %i0, %g1                                  
40004340:	1a 80 00 0c 	bcc  40004370 <fdatasync+0x40>                 
40004344:	01 00 00 00 	nop                                            
  iop = rtems_libio_iop( fd );                                        
40004348:	03 10 00 86 	sethi  %hi(0x40021800), %g1                    
4000434c:	d0 00 60 14 	ld  [ %g1 + 0x14 ], %o0	! 40021814 <rtems_libio_iops>
40004350:	83 2e 20 06 	sll  %i0, 6, %g1                               
40004354:	b1 2e 20 03 	sll  %i0, 3, %i0                               
40004358:	b0 06 00 01 	add  %i0, %g1, %i0                             
4000435c:	90 02 00 18 	add  %o0, %i0, %o0                             
  rtems_libio_check_is_open(iop);                                     
40004360:	c2 02 20 18 	ld  [ %o0 + 0x18 ], %g1                        
40004364:	80 88 61 00 	btst  0x100, %g1                               
40004368:	12 80 00 06 	bne  40004380 <fdatasync+0x50>                 <== ALWAYS TAKEN
4000436c:	80 88 60 04 	btst  4, %g1                                   
40004370:	40 00 37 0b 	call  40011f9c <__errno>                       
40004374:	01 00 00 00 	nop                                            
40004378:	10 80 00 0f 	b  400043b4 <fdatasync+0x84>                   
4000437c:	82 10 20 09 	mov  9, %g1	! 9 <PROM_START+0x9>               
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );            
40004380:	32 80 00 06 	bne,a   40004398 <fdatasync+0x68>              
40004384:	c2 02 20 40 	ld  [ %o0 + 0x40 ], %g1                        
40004388:	40 00 37 05 	call  40011f9c <__errno>                       
4000438c:	01 00 00 00 	nop                                            
40004390:	10 80 00 09 	b  400043b4 <fdatasync+0x84>                   
40004394:	82 10 20 16 	mov  0x16, %g1	! 16 <PROM_START+0x16>          
                                                                      
  /*                                                                  
   *  Now process the fdatasync().                                    
   */                                                                 
                                                                      
  if ( !iop->handlers->fdatasync_h )                                  
40004398:	c2 00 60 2c 	ld  [ %g1 + 0x2c ], %g1                        
4000439c:	80 a0 60 00 	cmp  %g1, 0                                    
400043a0:	12 80 00 08 	bne  400043c0 <fdatasync+0x90>                 
400043a4:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
400043a8:	40 00 36 fd 	call  40011f9c <__errno>                       
400043ac:	01 00 00 00 	nop                                            
400043b0:	82 10 20 86 	mov  0x86, %g1	! 86 <PROM_START+0x86>          
400043b4:	c2 22 00 00 	st  %g1, [ %o0 ]                               
400043b8:	10 80 00 04 	b  400043c8 <fdatasync+0x98>                   
400043bc:	90 10 3f ff 	mov  -1, %o0                                   
                                                                      
  return (*iop->handlers->fdatasync_h)( iop );                        
400043c0:	9f c0 40 00 	call  %g1                                      
400043c4:	01 00 00 00 	nop                                            
}                                                                     
400043c8:	81 c7 e0 08 	ret                                            
400043cc:	91 e8 00 08 	restore  %g0, %o0, %o0                         
400043d0:	40 00 44 8c 	call  40015600 <_svfprintf_r+0x1798>           <== NOT EXECUTED
400043d4:	40 00 44 98 	call  40015634 <_svfprintf_r+0x17cc>           <== NOT EXECUTED
400043d8:	40 00 44 a4 	call  40015668 <_svfprintf_r+0x1800>           <== NOT EXECUTED
400043dc:	40 00 44 b0 	call  4001569c <_svfprintf_r+0x1834>           <== NOT EXECUTED
400043e0:	40 00 44 bc 	call  400156d0 <_svfprintf_r+0x1868>           <== NOT EXECUTED
400043e4:	40 00 44 c8 	call  40015704 <_svfprintf_r+0x189c>           <== NOT EXECUTED
400043e8:	40 00 44 d4 	call  40015738 <_svfprintf_r+0x18d0>           <== NOT EXECUTED
400043ec:	40 00 44 e0 	call  4001576c <_svfprintf_r+0x1904>           <== NOT EXECUTED
400043f0:	40 00 44 ec 	call  400157a0 <_svfprintf_r+0x1938>           <== NOT EXECUTED
400043f4:	40 00 44 f8 	call  400157d4 <_svfprintf_r+0x196c>           <== NOT EXECUTED
400043f8:	40 00 45 04 	call  40015808 <_svfprintf_r+0x19a0>           <== NOT EXECUTED
400043fc:	40 00 45 10 	call  4001583c <_svfprintf_r+0x19d4>           <== NOT EXECUTED
                                                                      

4000d768 <fifo_open>: */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) {
4000d768:	9d e3 bf 98 	save  %sp, -104, %sp                           <== NOT EXECUTED
)                                                                     
{                                                                     
  pipe_control_t *pipe;                                               
  int err = 0;                                                        
                                                                      
  if (rtems_semaphore_obtain(rtems_pipe_semaphore,                    
4000d76c:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    <== NOT EXECUTED
4000d770:	d0 00 61 e4 	ld  [ %g1 + 0x1e4 ], %o0	! 4001d5e4 <rtems_pipe_semaphore><== NOT EXECUTED
 */                                                                   
int fifo_open(                                                        
  pipe_control_t **pipep,                                             
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
4000d774:	a0 10 00 18 	mov  %i0, %l0                                  <== NOT EXECUTED
)                                                                     
{                                                                     
  pipe_control_t *pipe;                                               
  int err = 0;                                                        
                                                                      
  if (rtems_semaphore_obtain(rtems_pipe_semaphore,                    
4000d778:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
4000d77c:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
4000d780:	7f ff e3 5b 	call  400064ec <rtems_semaphore_obtain>        <== NOT EXECUTED
4000d784:	b0 10 3f fc 	mov  -4, %i0                                   <== NOT EXECUTED
4000d788:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000d78c:	12 80 00 f0 	bne  4000db4c <fifo_open+0x3e4>                <== NOT EXECUTED
4000d790:	01 00 00 00 	nop                                            <== NOT EXECUTED
        RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL)            
    return -EINTR;                                                    
                                                                      
  pipe = *pipep;                                                      
4000d794:	e2 04 00 00 	ld  [ %l0 ], %l1                               <== NOT EXECUTED
  if (pipe == NULL) {                                                 
4000d798:	80 a4 60 00 	cmp  %l1, 0                                    <== NOT EXECUTED
4000d79c:	32 80 00 5b 	bne,a   4000d908 <fifo_open+0x1a0>             <== NOT EXECUTED
4000d7a0:	d0 04 60 28 	ld  [ %l1 + 0x28 ], %o0                        <== NOT EXECUTED
{                                                                     
  static char c = 'a';                                                
  pipe_control_t *pipe;                                               
  int err = -ENOMEM;                                                  
                                                                      
  pipe = malloc(sizeof(pipe_control_t));                              
4000d7a4:	90 10 20 34 	mov  0x34, %o0                                 <== NOT EXECUTED
4000d7a8:	7f ff f7 d7 	call  4000b704 <malloc>                        <== NOT EXECUTED
4000d7ac:	b0 10 3f f4 	mov  -12, %i0                                  <== NOT EXECUTED
  if (pipe == NULL)                                                   
4000d7b0:	a4 92 20 00 	orcc  %o0, 0, %l2                              <== NOT EXECUTED
4000d7b4:	02 80 00 66 	be  4000d94c <fifo_open+0x1e4>                 <== NOT EXECUTED
4000d7b8:	a2 10 00 12 	mov  %l2, %l1                                  <== NOT EXECUTED
    return err;                                                       
  memset(pipe, 0, sizeof(pipe_control_t));                            
4000d7bc:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
4000d7c0:	40 00 09 c2 	call  4000fec8 <memset>                        <== NOT EXECUTED
4000d7c4:	94 10 20 34 	mov  0x34, %o2                                 <== NOT EXECUTED
                                                                      
  pipe->Size = PIPE_BUF;                                              
4000d7c8:	82 10 22 00 	mov  0x200, %g1                                <== NOT EXECUTED
  pipe->Buffer = malloc(pipe->Size);                                  
4000d7cc:	90 10 22 00 	mov  0x200, %o0                                <== NOT EXECUTED
4000d7d0:	7f ff f7 cd 	call  4000b704 <malloc>                        <== NOT EXECUTED
4000d7d4:	c2 24 a0 04 	st  %g1, [ %l2 + 4 ]                           <== NOT EXECUTED
  if (! pipe->Buffer)                                                 
4000d7d8:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000d7dc:	02 80 00 46 	be  4000d8f4 <fifo_open+0x18c>                 <== NOT EXECUTED
4000d7e0:	d0 24 80 00 	st  %o0, [ %l2 ]                               <== NOT EXECUTED
    goto err_buf;                                                     
                                                                      
  err = -EINTR;                                                       
  if (rtems_barrier_create(                                           
4000d7e4:	27 10 00 73 	sethi  %hi(0x4001cc00), %l3                    <== NOT EXECUTED
4000d7e8:	d0 4c e3 a4 	ldsb  [ %l3 + 0x3a4 ], %o0	! 4001cfa4 <c.6850> <== NOT EXECUTED
4000d7ec:	29 14 12 5c 	sethi  %hi(0x50497000), %l4                    <== NOT EXECUTED
4000d7f0:	82 15 22 00 	or  %l4, 0x200, %g1	! 50497200 <RAM_END+0x10097200><== NOT EXECUTED
4000d7f4:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
4000d7f8:	90 12 00 01 	or  %o0, %g1, %o0                              <== NOT EXECUTED
4000d7fc:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
4000d800:	40 00 02 81 	call  4000e204 <rtems_barrier_create>          <== NOT EXECUTED
4000d804:	96 04 a0 2c 	add  %l2, 0x2c, %o3                            <== NOT EXECUTED
4000d808:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000d80c:	32 80 00 38 	bne,a   4000d8ec <fifo_open+0x184>             <== NOT EXECUTED
4000d810:	d0 04 80 00 	ld  [ %l2 ], %o0                               <== NOT EXECUTED
        rtems_build_name ('P', 'I', 'r', c),                          
        RTEMS_BARRIER_MANUAL_RELEASE, 0,                              
        &pipe->readBarrier) != RTEMS_SUCCESSFUL)                      
    goto err_rbar;                                                    
  if (rtems_barrier_create(                                           
4000d814:	d0 4c e3 a4 	ldsb  [ %l3 + 0x3a4 ], %o0                     <== NOT EXECUTED
4000d818:	03 14 12 5d 	sethi  %hi(0x50497400), %g1                    <== NOT EXECUTED
4000d81c:	82 10 63 00 	or  %g1, 0x300, %g1	! 50497700 <RAM_END+0x10097700><== NOT EXECUTED
4000d820:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
4000d824:	90 12 00 01 	or  %o0, %g1, %o0                              <== NOT EXECUTED
4000d828:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
4000d82c:	40 00 02 76 	call  4000e204 <rtems_barrier_create>          <== NOT EXECUTED
4000d830:	96 04 a0 30 	add  %l2, 0x30, %o3                            <== NOT EXECUTED
4000d834:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000d838:	12 80 00 2a 	bne  4000d8e0 <fifo_open+0x178>                <== NOT EXECUTED
4000d83c:	a8 15 23 00 	or  %l4, 0x300, %l4                            <== NOT EXECUTED
        rtems_build_name ('P', 'I', 'w', c),                          
        RTEMS_BARRIER_MANUAL_RELEASE, 0,                              
        &pipe->writeBarrier) != RTEMS_SUCCESSFUL)                     
    goto err_wbar;                                                    
  if (rtems_semaphore_create(                                         
4000d840:	d0 4c e3 a4 	ldsb  [ %l3 + 0x3a4 ], %o0                     <== NOT EXECUTED
4000d844:	92 10 20 01 	mov  1, %o1                                    <== NOT EXECUTED
4000d848:	90 12 00 14 	or  %o0, %l4, %o0                              <== NOT EXECUTED
4000d84c:	94 10 20 10 	mov  0x10, %o2                                 <== NOT EXECUTED
4000d850:	96 10 20 00 	clr  %o3                                       <== NOT EXECUTED
4000d854:	7f ff e2 84 	call  40006264 <rtems_semaphore_create>        <== NOT EXECUTED
4000d858:	98 04 a0 28 	add  %l2, 0x28, %o4                            <== NOT EXECUTED
4000d85c:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000d860:	12 80 00 1e 	bne  4000d8d8 <fifo_open+0x170>                <== NOT EXECUTED
4000d864:	29 10 00 78 	sethi  %hi(0x4001e000), %l4                    <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get (                  
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Barrier_Control *)                                          
4000d868:	d2 04 a0 2c 	ld  [ %l2 + 0x2c ], %o1                        <== NOT EXECUTED
4000d86c:	b0 07 bf f8 	add  %fp, -8, %i0                              <== NOT EXECUTED
4000d870:	94 10 00 18 	mov  %i0, %o2                                  <== NOT EXECUTED
4000d874:	7f ff e9 28 	call  40007d14 <_Objects_Get>                  <== NOT EXECUTED
4000d878:	90 15 22 f0 	or  %l4, 0x2f0, %o0                            <== NOT EXECUTED
/* Set barriers to be interruptible by signals. */                    
static void pipe_interruptible(pipe_control_t *pipe)                  
{                                                                     
  Objects_Locations location;                                         
                                                                      
  _Barrier_Get(pipe->readBarrier, &location)->Barrier.Wait_queue.state
4000d87c:	c2 02 20 4c 	ld  [ %o0 + 0x4c ], %g1                        <== NOT EXECUTED
4000d880:	25 04 00 00 	sethi  %hi(0x10000000), %l2                    <== NOT EXECUTED
4000d884:	82 10 40 12 	or  %g1, %l2, %g1                              <== NOT EXECUTED
    |= STATES_INTERRUPTIBLE_BY_SIGNAL;                                
  _Thread_Enable_dispatch();                                          
4000d888:	7f ff eb 71 	call  4000864c <_Thread_Enable_dispatch>       <== NOT EXECUTED
4000d88c:	c2 22 20 4c 	st  %g1, [ %o0 + 0x4c ]                        <== NOT EXECUTED
4000d890:	d2 04 60 30 	ld  [ %l1 + 0x30 ], %o1                        <== NOT EXECUTED
4000d894:	94 10 00 18 	mov  %i0, %o2                                  <== NOT EXECUTED
4000d898:	7f ff e9 1f 	call  40007d14 <_Objects_Get>                  <== NOT EXECUTED
4000d89c:	90 15 22 f0 	or  %l4, 0x2f0, %o0                            <== NOT EXECUTED
  _Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state
4000d8a0:	c2 02 20 4c 	ld  [ %o0 + 0x4c ], %g1                        <== NOT EXECUTED
4000d8a4:	a4 10 40 12 	or  %g1, %l2, %l2                              <== NOT EXECUTED
    |= STATES_INTERRUPTIBLE_BY_SIGNAL;                                
  _Thread_Enable_dispatch();                                          
4000d8a8:	7f ff eb 69 	call  4000864c <_Thread_Enable_dispatch>       <== NOT EXECUTED
4000d8ac:	e4 22 20 4c 	st  %l2, [ %o0 + 0x4c ]                        <== NOT EXECUTED
#ifdef RTEMS_POSIX_API                                                
  pipe_interruptible(pipe);                                           
#endif                                                                
                                                                      
  *pipep = pipe;                                                      
  if (c ++ == 'z')                                                    
4000d8b0:	c2 0c e3 a4 	ldub  [ %l3 + 0x3a4 ], %g1                     <== NOT EXECUTED
4000d8b4:	84 00 60 01 	add  %g1, 1, %g2                               <== NOT EXECUTED
4000d8b8:	83 28 60 18 	sll  %g1, 0x18, %g1                            <== NOT EXECUTED
4000d8bc:	83 38 60 18 	sra  %g1, 0x18, %g1                            <== NOT EXECUTED
4000d8c0:	80 a0 60 7a 	cmp  %g1, 0x7a                                 <== NOT EXECUTED
4000d8c4:	12 80 00 10 	bne  4000d904 <fifo_open+0x19c>                <== NOT EXECUTED
4000d8c8:	c4 2c e3 a4 	stb  %g2, [ %l3 + 0x3a4 ]                      <== NOT EXECUTED
    c = 'a';                                                          
4000d8cc:	82 10 20 61 	mov  0x61, %g1                                 <== NOT EXECUTED
4000d8d0:	10 80 00 0d 	b  4000d904 <fifo_open+0x19c>                  <== NOT EXECUTED
4000d8d4:	c2 2c e3 a4 	stb  %g1, [ %l3 + 0x3a4 ]                      <== NOT EXECUTED
  return 0;                                                           
                                                                      
err_sem:                                                              
  rtems_barrier_delete(pipe->writeBarrier);                           
4000d8d8:	40 00 02 79 	call  4000e2bc <rtems_barrier_delete>          <== NOT EXECUTED
4000d8dc:	d0 04 a0 30 	ld  [ %l2 + 0x30 ], %o0                        <== NOT EXECUTED
err_wbar:                                                             
  rtems_barrier_delete(pipe->readBarrier);                            
4000d8e0:	40 00 02 77 	call  4000e2bc <rtems_barrier_delete>          <== NOT EXECUTED
4000d8e4:	d0 04 a0 2c 	ld  [ %l2 + 0x2c ], %o0                        <== NOT EXECUTED
err_rbar:                                                             
  free(pipe->Buffer);                                                 
4000d8e8:	d0 04 80 00 	ld  [ %l2 ], %o0                               <== NOT EXECUTED
4000d8ec:	7f ff f6 24 	call  4000b17c <free>                          <== NOT EXECUTED
4000d8f0:	b0 10 3f fc 	mov  -4, %i0                                   <== NOT EXECUTED
err_buf:                                                              
  free(pipe);                                                         
4000d8f4:	7f ff f6 22 	call  4000b17c <free>                          <== NOT EXECUTED
4000d8f8:	90 10 00 12 	mov  %l2, %o0                                  <== NOT EXECUTED
    else                                                              
      *pipep = pipe;                                                  
  }                                                                   
                                                                      
out:                                                                  
  rtems_semaphore_release(rtems_pipe_semaphore);                      
4000d8fc:	10 80 00 15 	b  4000d950 <fifo_open+0x1e8>                  <== NOT EXECUTED
4000d900:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    <== NOT EXECUTED
    err = pipe_alloc(&pipe);                                          
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
4000d904:	d0 04 60 28 	ld  [ %l1 + 0x28 ], %o0                        <== NOT EXECUTED
4000d908:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
4000d90c:	7f ff e2 f8 	call  400064ec <rtems_semaphore_obtain>        <== NOT EXECUTED
4000d910:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
    err = -EINTR;                                                     
                                                                      
  if (*pipep == NULL) {                                               
4000d914:	c2 04 00 00 	ld  [ %l0 ], %g1                               <== NOT EXECUTED
    err = pipe_alloc(&pipe);                                          
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
4000d918:	80 a0 00 08 	cmp  %g0, %o0                                  <== NOT EXECUTED
4000d91c:	b0 40 3f ff 	addx  %g0, -1, %i0                             <== NOT EXECUTED
    err = -EINTR;                                                     
                                                                      
  if (*pipep == NULL) {                                               
4000d920:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
    err = pipe_alloc(&pipe);                                          
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
4000d924:	b0 0e 20 04 	and  %i0, 4, %i0                               <== NOT EXECUTED
    err = -EINTR;                                                     
                                                                      
  if (*pipep == NULL) {                                               
4000d928:	12 80 00 09 	bne  4000d94c <fifo_open+0x1e4>                <== NOT EXECUTED
4000d92c:	b0 06 3f fc 	add  %i0, -4, %i0                              <== NOT EXECUTED
    if (err)                                                          
4000d930:	80 a6 20 00 	cmp  %i0, 0                                    <== NOT EXECUTED
4000d934:	22 80 00 06 	be,a   4000d94c <fifo_open+0x1e4>              <== NOT EXECUTED
4000d938:	e2 24 00 00 	st  %l1, [ %l0 ]                               <== NOT EXECUTED
      pipe_free(pipe);                                                
4000d93c:	7f ff ff 3b 	call  4000d628 <pipe_free>                     <== NOT EXECUTED
4000d940:	90 10 00 11 	mov  %l1, %o0                                  <== NOT EXECUTED
    else                                                              
      *pipep = pipe;                                                  
  }                                                                   
                                                                      
out:                                                                  
  rtems_semaphore_release(rtems_pipe_semaphore);                      
4000d944:	10 80 00 03 	b  4000d950 <fifo_open+0x1e8>                  <== NOT EXECUTED
4000d948:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    <== NOT EXECUTED
4000d94c:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    <== NOT EXECUTED
4000d950:	7f ff e3 2e 	call  40006608 <rtems_semaphore_release>       <== NOT EXECUTED
4000d954:	d0 00 61 e4 	ld  [ %g1 + 0x1e4 ], %o0	! 4001d5e4 <rtems_pipe_semaphore><== NOT EXECUTED
  pipe_control_t *pipe;                                               
  uint prevCounter;                                                   
  int err;                                                            
                                                                      
  err = pipe_new(pipep);                                              
  if (err)                                                            
4000d958:	80 a6 20 00 	cmp  %i0, 0                                    <== NOT EXECUTED
4000d95c:	12 80 00 7c 	bne  4000db4c <fifo_open+0x3e4>                <== NOT EXECUTED
4000d960:	01 00 00 00 	nop                                            <== NOT EXECUTED
    return err;                                                       
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
4000d964:	c4 06 60 18 	ld  [ %i1 + 0x18 ], %g2                        <== NOT EXECUTED
4000d968:	82 08 a0 06 	and  %g2, 6, %g1                               <== NOT EXECUTED
4000d96c:	80 a0 60 04 	cmp  %g1, 4                                    <== NOT EXECUTED
4000d970:	02 80 00 2e 	be  4000da28 <fifo_open+0x2c0>                 <== NOT EXECUTED
4000d974:	e2 04 00 00 	ld  [ %l0 ], %l1                               <== NOT EXECUTED
4000d978:	80 a0 60 06 	cmp  %g1, 6                                    <== NOT EXECUTED
4000d97c:	02 80 00 56 	be  4000dad4 <fifo_open+0x36c>                 <== NOT EXECUTED
4000d980:	80 a0 60 02 	cmp  %g1, 2                                    <== NOT EXECUTED
4000d984:	12 80 00 6a 	bne  4000db2c <fifo_open+0x3c4>                <== NOT EXECUTED
4000d988:	01 00 00 00 	nop                                            <== NOT EXECUTED
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
4000d98c:	c2 04 60 10 	ld  [ %l1 + 0x10 ], %g1                        <== NOT EXECUTED
    return err;                                                       
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
4000d990:	c4 04 60 20 	ld  [ %l1 + 0x20 ], %g2                        <== NOT EXECUTED
      if (pipe->Readers ++ == 0)                                      
4000d994:	86 00 60 01 	add  %g1, 1, %g3                               <== NOT EXECUTED
    return err;                                                       
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
4000d998:	84 00 a0 01 	inc  %g2                                       <== NOT EXECUTED
      if (pipe->Readers ++ == 0)                                      
4000d99c:	c6 24 60 10 	st  %g3, [ %l1 + 0x10 ]                        <== NOT EXECUTED
4000d9a0:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000d9a4:	12 80 00 05 	bne  4000d9b8 <fifo_open+0x250>                <== NOT EXECUTED
4000d9a8:	c4 24 60 20 	st  %g2, [ %l1 + 0x20 ]                        <== NOT EXECUTED
        PIPE_WAKEUPWRITERS(pipe);                                     
4000d9ac:	d0 04 60 30 	ld  [ %l1 + 0x30 ], %o0                        <== NOT EXECUTED
4000d9b0:	40 00 02 5d 	call  4000e324 <rtems_barrier_release>         <== NOT EXECUTED
4000d9b4:	92 07 bf fc 	add  %fp, -4, %o1                              <== NOT EXECUTED
                                                                      
      if (pipe->Writers == 0) {                                       
4000d9b8:	c2 04 60 14 	ld  [ %l1 + 0x14 ], %g1                        <== NOT EXECUTED
4000d9bc:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000d9c0:	12 80 00 5b 	bne  4000db2c <fifo_open+0x3c4>                <== NOT EXECUTED
4000d9c4:	01 00 00 00 	nop                                            <== NOT EXECUTED
        /* Not an error */                                            
        if (LIBIO_NODELAY(iop))                                       
4000d9c8:	c2 06 60 18 	ld  [ %i1 + 0x18 ], %g1                        <== NOT EXECUTED
4000d9cc:	80 88 60 01 	btst  1, %g1                                   <== NOT EXECUTED
4000d9d0:	12 80 00 57 	bne  4000db2c <fifo_open+0x3c4>                <== NOT EXECUTED
4000d9d4:	01 00 00 00 	nop                                            <== NOT EXECUTED
          break;                                                      
                                                                      
        prevCounter = pipe->writerCounter;                            
4000d9d8:	e4 04 60 24 	ld  [ %l1 + 0x24 ], %l2                        <== NOT EXECUTED
        err = -EINTR;                                                 
        /* Wait until a writer opens the pipe */                      
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
4000d9dc:	7f ff e3 0b 	call  40006608 <rtems_semaphore_release>       <== NOT EXECUTED
4000d9e0:	d0 04 60 28 	ld  [ %l1 + 0x28 ], %o0                        <== NOT EXECUTED
          if (! PIPE_READWAIT(pipe))                                  
4000d9e4:	d0 04 60 2c 	ld  [ %l1 + 0x2c ], %o0                        <== NOT EXECUTED
4000d9e8:	40 00 02 66 	call  4000e380 <rtems_barrier_wait>            <== NOT EXECUTED
4000d9ec:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
4000d9f0:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000d9f4:	12 80 00 52 	bne  4000db3c <fifo_open+0x3d4>                <== NOT EXECUTED
4000d9f8:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
4000d9fc:	d0 04 60 28 	ld  [ %l1 + 0x28 ], %o0                        <== NOT EXECUTED
4000da00:	7f ff e2 bb 	call  400064ec <rtems_semaphore_obtain>        <== NOT EXECUTED
4000da04:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
4000da08:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000da0c:	32 80 00 4d 	bne,a   4000db40 <fifo_open+0x3d8>             <== NOT EXECUTED
4000da10:	b0 10 3f fc 	mov  -4, %i0                                   <== NOT EXECUTED
            goto out_error;                                           
        } while (prevCounter == pipe->writerCounter);                 
4000da14:	c2 04 60 24 	ld  [ %l1 + 0x24 ], %g1                        <== NOT EXECUTED
4000da18:	80 a4 80 01 	cmp  %l2, %g1                                  <== NOT EXECUTED
4000da1c:	02 bf ff f0 	be  4000d9dc <fifo_open+0x274>                 <== NOT EXECUTED
4000da20:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000da24:	30 80 00 42 	b,a   4000db2c <fifo_open+0x3c4>               <== NOT EXECUTED
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
4000da28:	c2 04 60 10 	ld  [ %l1 + 0x10 ], %g1                        <== NOT EXECUTED
4000da2c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000da30:	32 80 00 07 	bne,a   4000da4c <fifo_open+0x2e4>             <== NOT EXECUTED
4000da34:	c2 04 60 14 	ld  [ %l1 + 0x14 ], %g1                        <== NOT EXECUTED
4000da38:	80 88 a0 01 	btst  1, %g2                                   <== NOT EXECUTED
4000da3c:	22 80 00 04 	be,a   4000da4c <fifo_open+0x2e4>              <== NOT EXECUTED
4000da40:	c2 04 60 14 	ld  [ %l1 + 0x14 ], %g1                        <== NOT EXECUTED
4000da44:	10 80 00 3f 	b  4000db40 <fifo_open+0x3d8>                  <== NOT EXECUTED
4000da48:	b0 10 3f fa 	mov  -6, %i0                                   <== NOT EXECUTED
        err = -ENXIO;                                                 
        goto out_error;                                               
      }                                                               
                                                                      
      pipe->writerCounter ++;                                         
4000da4c:	c4 04 60 24 	ld  [ %l1 + 0x24 ], %g2                        <== NOT EXECUTED
      if (pipe->Writers ++ == 0)                                      
4000da50:	86 00 60 01 	add  %g1, 1, %g3                               <== NOT EXECUTED
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
        err = -ENXIO;                                                 
        goto out_error;                                               
      }                                                               
                                                                      
      pipe->writerCounter ++;                                         
4000da54:	84 00 a0 01 	inc  %g2                                       <== NOT EXECUTED
      if (pipe->Writers ++ == 0)                                      
4000da58:	c6 24 60 14 	st  %g3, [ %l1 + 0x14 ]                        <== NOT EXECUTED
4000da5c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000da60:	12 80 00 05 	bne  4000da74 <fifo_open+0x30c>                <== NOT EXECUTED
4000da64:	c4 24 60 24 	st  %g2, [ %l1 + 0x24 ]                        <== NOT EXECUTED
        PIPE_WAKEUPREADERS(pipe);                                     
4000da68:	d0 04 60 2c 	ld  [ %l1 + 0x2c ], %o0                        <== NOT EXECUTED
4000da6c:	40 00 02 2e 	call  4000e324 <rtems_barrier_release>         <== NOT EXECUTED
4000da70:	92 07 bf fc 	add  %fp, -4, %o1                              <== NOT EXECUTED
                                                                      
      if (pipe->Readers == 0) {                                       
4000da74:	c2 04 60 10 	ld  [ %l1 + 0x10 ], %g1                        <== NOT EXECUTED
4000da78:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000da7c:	12 80 00 2c 	bne  4000db2c <fifo_open+0x3c4>                <== NOT EXECUTED
4000da80:	01 00 00 00 	nop                                            <== NOT EXECUTED
        prevCounter = pipe->readerCounter;                            
4000da84:	e4 04 60 20 	ld  [ %l1 + 0x20 ], %l2                        <== NOT EXECUTED
        err = -EINTR;                                                 
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
4000da88:	7f ff e2 e0 	call  40006608 <rtems_semaphore_release>       <== NOT EXECUTED
4000da8c:	d0 04 60 28 	ld  [ %l1 + 0x28 ], %o0                        <== NOT EXECUTED
          if (! PIPE_WRITEWAIT(pipe))                                 
4000da90:	d0 04 60 30 	ld  [ %l1 + 0x30 ], %o0                        <== NOT EXECUTED
4000da94:	40 00 02 3b 	call  4000e380 <rtems_barrier_wait>            <== NOT EXECUTED
4000da98:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
4000da9c:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000daa0:	12 80 00 27 	bne  4000db3c <fifo_open+0x3d4>                <== NOT EXECUTED
4000daa4:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
4000daa8:	d0 04 60 28 	ld  [ %l1 + 0x28 ], %o0                        <== NOT EXECUTED
4000daac:	7f ff e2 90 	call  400064ec <rtems_semaphore_obtain>        <== NOT EXECUTED
4000dab0:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
4000dab4:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000dab8:	32 80 00 22 	bne,a   4000db40 <fifo_open+0x3d8>             <== NOT EXECUTED
4000dabc:	b0 10 3f fc 	mov  -4, %i0                                   <== NOT EXECUTED
            goto out_error;                                           
        } while (prevCounter == pipe->readerCounter);                 
4000dac0:	c2 04 60 20 	ld  [ %l1 + 0x20 ], %g1                        <== NOT EXECUTED
4000dac4:	80 a4 80 01 	cmp  %l2, %g1                                  <== NOT EXECUTED
4000dac8:	02 bf ff f0 	be  4000da88 <fifo_open+0x320>                 <== NOT EXECUTED
4000dacc:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000dad0:	30 80 00 17 	b,a   4000db2c <fifo_open+0x3c4>               <== NOT EXECUTED
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
4000dad4:	c2 04 60 10 	ld  [ %l1 + 0x10 ], %g1                        <== NOT EXECUTED
        } while (prevCounter == pipe->readerCounter);                 
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
4000dad8:	c4 04 60 20 	ld  [ %l1 + 0x20 ], %g2                        <== NOT EXECUTED
      if (pipe->Readers ++ == 0)                                      
4000dadc:	86 00 60 01 	add  %g1, 1, %g3                               <== NOT EXECUTED
        } while (prevCounter == pipe->readerCounter);                 
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
4000dae0:	84 00 a0 01 	inc  %g2                                       <== NOT EXECUTED
      if (pipe->Readers ++ == 0)                                      
4000dae4:	c6 24 60 10 	st  %g3, [ %l1 + 0x10 ]                        <== NOT EXECUTED
4000dae8:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000daec:	12 80 00 05 	bne  4000db00 <fifo_open+0x398>                <== NOT EXECUTED
4000daf0:	c4 24 60 20 	st  %g2, [ %l1 + 0x20 ]                        <== NOT EXECUTED
        PIPE_WAKEUPWRITERS(pipe);                                     
4000daf4:	d0 04 60 30 	ld  [ %l1 + 0x30 ], %o0                        <== NOT EXECUTED
4000daf8:	40 00 02 0b 	call  4000e324 <rtems_barrier_release>         <== NOT EXECUTED
4000dafc:	92 07 bf fc 	add  %fp, -4, %o1                              <== NOT EXECUTED
      pipe->writerCounter ++;                                         
      if (pipe->Writers ++ == 0)                                      
4000db00:	c2 04 60 14 	ld  [ %l1 + 0x14 ], %g1                        <== NOT EXECUTED
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
        PIPE_WAKEUPWRITERS(pipe);                                     
      pipe->writerCounter ++;                                         
4000db04:	c4 04 60 24 	ld  [ %l1 + 0x24 ], %g2                        <== NOT EXECUTED
      if (pipe->Writers ++ == 0)                                      
4000db08:	86 00 60 01 	add  %g1, 1, %g3                               <== NOT EXECUTED
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
        PIPE_WAKEUPWRITERS(pipe);                                     
      pipe->writerCounter ++;                                         
4000db0c:	84 00 a0 01 	inc  %g2                                       <== NOT EXECUTED
      if (pipe->Writers ++ == 0)                                      
4000db10:	c6 24 60 14 	st  %g3, [ %l1 + 0x14 ]                        <== NOT EXECUTED
4000db14:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000db18:	12 80 00 05 	bne  4000db2c <fifo_open+0x3c4>                <== NOT EXECUTED
4000db1c:	c4 24 60 24 	st  %g2, [ %l1 + 0x24 ]                        <== NOT EXECUTED
        PIPE_WAKEUPREADERS(pipe);                                     
4000db20:	d0 04 60 2c 	ld  [ %l1 + 0x2c ], %o0                        <== NOT EXECUTED
4000db24:	40 00 02 00 	call  4000e324 <rtems_barrier_release>         <== NOT EXECUTED
4000db28:	92 07 bf fc 	add  %fp, -4, %o1                              <== NOT EXECUTED
      break;                                                          
  }                                                                   
                                                                      
  PIPE_UNLOCK(pipe);                                                  
4000db2c:	7f ff e2 b7 	call  40006608 <rtems_semaphore_release>       <== NOT EXECUTED
4000db30:	d0 04 60 28 	ld  [ %l1 + 0x28 ], %o0                        <== NOT EXECUTED
  return 0;                                                           
4000db34:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000db38:	81 e8 00 00 	restore                                        <== NOT EXECUTED
4000db3c:	b0 10 3f fc 	mov  -4, %i0                                   <== NOT EXECUTED
                                                                      
out_error:                                                            
  pipe_release(pipep, iop);                                           
4000db40:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
4000db44:	7f ff fe c5 	call  4000d658 <pipe_release>                  <== NOT EXECUTED
4000db48:	92 10 00 19 	mov  %i1, %o1                                  <== NOT EXECUTED
  return err;                                                         
}                                                                     
4000db4c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000db50:	81 e8 00 00 	restore                                        <== NOT EXECUTED
4000db54:	40 00 dc 80 	call  40044d54 <__end+0x26894>                 <== NOT EXECUTED
4000db58:	40 00 dc a0 	call  40044dd8 <__end+0x26918>                 <== NOT EXECUTED
4000db5c:	40 00 dc 98 	call  40044dbc <__end+0x268fc>                 <== NOT EXECUTED
4000db60:	40 00 dc 98 	call  40044dc0 <__end+0x26900>                 <== NOT EXECUTED
4000db64:	40 00 dc c0 	call  40044e64 <__end+0x269a4>                 <== NOT EXECUTED
4000db68:	40 00 dc b4 	call  40044e38 <__end+0x26978>                 <== NOT EXECUTED
4000db6c:	40 00 dc d8 	call  40044ecc <__end+0x26a0c>                 <== NOT EXECUTED
                                                                      

40009fb8 <file_systems_below_this_mountpoint>: /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first;
40009fb8:	03 10 00 a6 	sethi  %hi(0x40029800), %g1                    <== NOT EXECUTED
40009fbc:	05 10 00 a6 	sethi  %hi(0x40029800), %g2                    <== NOT EXECUTED
40009fc0:	c2 00 61 c8 	ld  [ %g1 + 0x1c8 ], %g1                       <== NOT EXECUTED
40009fc4:	10 80 00 08 	b  40009fe4 <file_systems_below_this_mountpoint+0x2c><== NOT EXECUTED
40009fc8:	84 10 a1 cc 	or  %g2, 0x1cc, %g2                            <== NOT EXECUTED
        !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node );
        the_node = the_node->next ) {                                 
     the_mount_entry = ( rtems_filesystem_mount_table_entry_t * )the_node;
     if (the_mount_entry->mt_point_node.mt_entry  == fs_root_loc->mt_entry ) {
40009fcc:	c6 02 60 10 	ld  [ %o1 + 0x10 ], %g3                        <== NOT EXECUTED
40009fd0:	80 a1 00 03 	cmp  %g4, %g3                                  <== NOT EXECUTED
40009fd4:	32 80 00 04 	bne,a   40009fe4 <file_systems_below_this_mountpoint+0x2c><== NOT EXECUTED
40009fd8:	c2 00 40 00 	ld  [ %g1 ], %g1                               <== NOT EXECUTED
40009fdc:	81 c3 e0 08 	retl                                           <== NOT EXECUTED
40009fe0:	90 10 20 01 	mov  1, %o0                                    <== NOT EXECUTED
40009fe4:	80 a0 40 02 	cmp  %g1, %g2                                  <== NOT EXECUTED
40009fe8:	32 bf ff f9 	bne,a   40009fcc <file_systems_below_this_mountpoint+0x14><== NOT EXECUTED
40009fec:	c8 00 60 18 	ld  [ %g1 + 0x18 ], %g4                        <== NOT EXECUTED
        return true;                                                  
     }                                                                
  }                                                                   
                                                                      
  return false;                                                       
}                                                                     
40009ff0:	81 c3 e0 08 	retl                                           <== NOT EXECUTED
40009ff4:	90 10 20 00 	clr  %o0                                       <== NOT EXECUTED
                                                                      

40004400 <fpathconf>: long fpathconf( int fd, int name ) {
40004400:	9d e3 bf a0 	save  %sp, -96, %sp                            
  long                                    return_value;               
  rtems_libio_t                          *iop;                        
  rtems_filesystem_limits_and_options_t  *the_limits;                 
                                                                      
  rtems_libio_check_fd(fd);                                           
40004404:	03 10 00 83 	sethi  %hi(0x40020c00), %g1                    
40004408:	c2 00 62 74 	ld  [ %g1 + 0x274 ], %g1	! 40020e74 <rtems_libio_number_iops>
4000440c:	80 a6 00 01 	cmp  %i0, %g1                                  
40004410:	1a 80 00 0b 	bcc  4000443c <fpathconf+0x3c>                 
40004414:	85 2e 20 06 	sll  %i0, 6, %g2                               
  iop = rtems_libio_iop(fd);                                          
40004418:	03 10 00 86 	sethi  %hi(0x40021800), %g1                    
4000441c:	c2 00 60 14 	ld  [ %g1 + 0x14 ], %g1	! 40021814 <rtems_libio_iops>
40004420:	b1 2e 20 03 	sll  %i0, 3, %i0                               
40004424:	b0 06 00 02 	add  %i0, %g2, %i0                             
40004428:	b0 00 40 18 	add  %g1, %i0, %i0                             
  rtems_libio_check_is_open(iop);                                     
4000442c:	c2 06 20 18 	ld  [ %i0 + 0x18 ], %g1                        
40004430:	80 88 61 00 	btst  0x100, %g1                               
40004434:	12 80 00 06 	bne  4000444c <fpathconf+0x4c>                 <== ALWAYS TAKEN
40004438:	80 88 60 02 	btst  2, %g1                                   
4000443c:	40 00 36 d8 	call  40011f9c <__errno>                       
40004440:	01 00 00 00 	nop                                            
40004444:	10 80 00 07 	b  40004460 <fpathconf+0x60>                   
40004448:	82 10 20 09 	mov  9, %g1	! 9 <PROM_START+0x9>               
  rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ);               
4000444c:	12 80 00 08 	bne  4000446c <fpathconf+0x6c>                 <== ALWAYS TAKEN
40004450:	80 a6 60 0b 	cmp  %i1, 0xb                                  
40004454:	40 00 36 d2 	call  40011f9c <__errno>                       <== NOT EXECUTED
40004458:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000445c:	82 10 20 16 	mov  0x16, %g1	! 16 <PROM_START+0x16>          <== NOT EXECUTED
40004460:	c2 22 00 00 	st  %g1, [ %o0 ]                               
40004464:	81 c7 e0 08 	ret                                            
40004468:	91 e8 3f ff 	restore  %g0, -1, %o0                          
   *  Now process the information request.                            
   */                                                                 
                                                                      
  the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options;  
                                                                      
  switch ( name ) {                                                   
4000446c:	18 80 00 2c 	bgu  4000451c <fpathconf+0x11c>                
40004470:	c2 06 20 2c 	ld  [ %i0 + 0x2c ], %g1                        
40004474:	b3 2e 60 02 	sll  %i1, 2, %i1                               
40004478:	05 10 00 10 	sethi  %hi(0x40004000), %g2                    
4000447c:	84 10 a3 d0 	or  %g2, 0x3d0, %g2	! 400043d0 <fdatasync+0xa0>
40004480:	c4 00 80 19 	ld  [ %g2 + %i1 ], %g2                         
40004484:	81 c0 80 00 	jmp  %g2                                       
40004488:	01 00 00 00 	nop                                            
    case _PC_LINK_MAX:                                                
      return_value = the_limits->link_max;                            
4000448c:	f0 00 60 38 	ld  [ %g1 + 0x38 ], %i0                        
      break;                                                          
40004490:	81 c7 e0 08 	ret                                            
40004494:	81 e8 00 00 	restore                                        
    case _PC_MAX_CANON:                                               
      return_value = the_limits->max_canon;                           
40004498:	f0 00 60 3c 	ld  [ %g1 + 0x3c ], %i0                        
      break;                                                          
4000449c:	81 c7 e0 08 	ret                                            
400044a0:	81 e8 00 00 	restore                                        
    case _PC_MAX_INPUT:                                               
      return_value = the_limits->max_input;                           
400044a4:	f0 00 60 40 	ld  [ %g1 + 0x40 ], %i0                        
      break;                                                          
400044a8:	81 c7 e0 08 	ret                                            
400044ac:	81 e8 00 00 	restore                                        
    case _PC_NAME_MAX:                                                
      return_value = the_limits->name_max;                            
400044b0:	f0 00 60 44 	ld  [ %g1 + 0x44 ], %i0                        
      break;                                                          
400044b4:	81 c7 e0 08 	ret                                            
400044b8:	81 e8 00 00 	restore                                        
    case _PC_PATH_MAX:                                                
      return_value = the_limits->path_max;                            
400044bc:	f0 00 60 48 	ld  [ %g1 + 0x48 ], %i0                        
      break;                                                          
400044c0:	81 c7 e0 08 	ret                                            
400044c4:	81 e8 00 00 	restore                                        
    case _PC_PIPE_BUF:                                                
      return_value = the_limits->pipe_buf;                            
400044c8:	f0 00 60 4c 	ld  [ %g1 + 0x4c ], %i0                        
      break;                                                          
400044cc:	81 c7 e0 08 	ret                                            
400044d0:	81 e8 00 00 	restore                                        
    case _PC_CHOWN_RESTRICTED:                                        
      return_value = the_limits->posix_chown_restrictions;            
400044d4:	f0 00 60 54 	ld  [ %g1 + 0x54 ], %i0                        
      break;                                                          
400044d8:	81 c7 e0 08 	ret                                            
400044dc:	81 e8 00 00 	restore                                        
    case _PC_NO_TRUNC:                                                
      return_value = the_limits->posix_no_trunc;                      
400044e0:	f0 00 60 58 	ld  [ %g1 + 0x58 ], %i0                        
      break;                                                          
400044e4:	81 c7 e0 08 	ret                                            
400044e8:	81 e8 00 00 	restore                                        
    case _PC_VDISABLE:                                                
      return_value = the_limits->posix_vdisable;                      
400044ec:	f0 00 60 64 	ld  [ %g1 + 0x64 ], %i0                        
      break;                                                          
400044f0:	81 c7 e0 08 	ret                                            
400044f4:	81 e8 00 00 	restore                                        
    case _PC_ASYNC_IO:                                                
      return_value = the_limits->posix_async_io;                      
400044f8:	f0 00 60 50 	ld  [ %g1 + 0x50 ], %i0                        
      break;                                                          
400044fc:	81 c7 e0 08 	ret                                            
40004500:	81 e8 00 00 	restore                                        
    case _PC_PRIO_IO:                                                 
      return_value = the_limits->posix_prio_io;                       
40004504:	f0 00 60 5c 	ld  [ %g1 + 0x5c ], %i0                        
      break;                                                          
40004508:	81 c7 e0 08 	ret                                            
4000450c:	81 e8 00 00 	restore                                        
    case _PC_SYNC_IO:                                                 
      return_value = the_limits->posix_sync_io;                       
40004510:	f0 00 60 60 	ld  [ %g1 + 0x60 ], %i0                        
      break;                                                          
40004514:	81 c7 e0 08 	ret                                            
40004518:	81 e8 00 00 	restore                                        
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
4000451c:	40 00 36 a0 	call  40011f9c <__errno>                       
40004520:	b0 10 3f ff 	mov  -1, %i0                                   
40004524:	82 10 20 16 	mov  0x16, %g1                                 
40004528:	c2 22 00 00 	st  %g1, [ %o0 ]                               
      break;                                                          
  }                                                                   
                                                                      
  return return_value;                                                
}                                                                     
4000452c:	81 c7 e0 08 	ret                                            
40004530:	81 e8 00 00 	restore                                        
                                                                      

4000b17c <free>: void free( void *ptr ) { MSBUMP(free_calls, 1);
4000b17c:	9d e3 bf a0 	save  %sp, -96, %sp                            
4000b180:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
4000b184:	82 10 63 a8 	or  %g1, 0x3a8, %g1	! 4001d7a8 <rtems_malloc_statistics>
4000b188:	c4 00 60 0c 	ld  [ %g1 + 0xc ], %g2                         
4000b18c:	b2 10 00 18 	mov  %i0, %i1                                  
4000b190:	84 00 a0 01 	inc  %g2                                       
                                                                      
  if ( !ptr )                                                         
4000b194:	80 a6 20 00 	cmp  %i0, 0                                    
4000b198:	02 80 00 21 	be  4000b21c <free+0xa0>                       
4000b19c:	c4 20 60 0c 	st  %g2, [ %g1 + 0xc ]                         
                                                                      
  /*                                                                  
   *  Do not attempt to free memory if in a critical section or ISR.  
   */                                                                 
                                                                      
  if ( _System_state_Is_up(_System_state_Get()) &&                    
4000b1a0:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
4000b1a4:	c2 00 63 10 	ld  [ %g1 + 0x310 ], %g1	! 4001db10 <_System_state_Current>
4000b1a8:	80 a0 60 03 	cmp  %g1, 3                                    
4000b1ac:	12 80 00 09 	bne  4000b1d0 <free+0x54>                      <== NEVER TAKEN
4000b1b0:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
4000b1b4:	40 00 01 2e 	call  4000b66c <malloc_is_system_state_OK>     
4000b1b8:	01 00 00 00 	nop                                            
4000b1bc:	80 8a 20 ff 	btst  0xff, %o0                                
4000b1c0:	12 80 00 04 	bne  4000b1d0 <free+0x54>                      <== ALWAYS TAKEN
4000b1c4:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
       !malloc_is_system_state_OK() ) {                               
      malloc_deferred_free(ptr);                                      
4000b1c8:	40 00 01 3b 	call  4000b6b4 <malloc_deferred_free>          <== NOT EXECUTED
4000b1cc:	81 e8 00 00 	restore                                        <== NOT EXECUTED
  #endif                                                              
                                                                      
  /*                                                                  
   *  If configured, update the statistics                            
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
4000b1d0:	c2 00 60 78 	ld  [ %g1 + 0x78 ], %g1                        
4000b1d4:	80 a0 60 00 	cmp  %g1, 0                                    
4000b1d8:	02 80 00 06 	be  4000b1f0 <free+0x74>                       <== ALWAYS TAKEN
4000b1dc:	21 10 00 73 	sethi  %hi(0x4001cc00), %l0                    
    (*rtems_malloc_statistics_helpers->at_free)(ptr);                 
4000b1e0:	c2 00 60 08 	ld  [ %g1 + 8 ], %g1                           <== NOT EXECUTED
4000b1e4:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
4000b1e8:	90 10 00 19 	mov  %i1, %o0                                  <== NOT EXECUTED
                                                                      
  if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) {            
4000b1ec:	21 10 00 73 	sethi  %hi(0x4001cc00), %l0                    <== NOT EXECUTED
4000b1f0:	d0 04 22 10 	ld  [ %l0 + 0x210 ], %o0	! 4001ce10 <RTEMS_Malloc_Heap>
4000b1f4:	40 00 06 3d 	call  4000cae8 <_Protected_heap_Free>          
4000b1f8:	92 10 00 19 	mov  %i1, %o1                                  
4000b1fc:	80 8a 20 ff 	btst  0xff, %o0                                
4000b200:	12 80 00 07 	bne  4000b21c <free+0xa0>                      <== ALWAYS TAKEN
4000b204:	c2 04 22 10 	ld  [ %l0 + 0x210 ], %g1                       
    printk( "Program heap: free of bad pointer %p -- range %p - %p \n",
4000b208:	31 10 00 70 	sethi  %hi(0x4001c000), %i0                    <== NOT EXECUTED
4000b20c:	f6 00 60 1c 	ld  [ %g1 + 0x1c ], %i3                        <== NOT EXECUTED
4000b210:	f4 00 60 18 	ld  [ %g1 + 0x18 ], %i2                        <== NOT EXECUTED
4000b214:	7f ff e2 a3 	call  40003ca0 <printk>                        <== NOT EXECUTED
4000b218:	91 ee 21 a0 	restore  %i0, 0x1a0, %o0                       <== NOT EXECUTED
4000b21c:	81 c7 e0 08 	ret                                            
4000b220:	81 e8 00 00 	restore                                        
                                                                      

40004c58 <free_user_env>: * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) {
40004c58:	9d e3 bf a0 	save  %sp, -96, %sp                            <== NOT EXECUTED
  rtems_user_env_t *env = (rtems_user_env_t*) venv ;                  
                                                                      
	if (env != &rtems_global_user_env                                    
40004c5c:	03 10 00 81 	sethi  %hi(0x40020400), %g1                    <== NOT EXECUTED
40004c60:	82 10 60 40 	or  %g1, 0x40, %g1	! 40020440 <rtems_global_user_env><== NOT EXECUTED
40004c64:	80 a6 00 01 	cmp  %i0, %g1                                  <== NOT EXECUTED
40004c68:	02 80 00 18 	be  40004cc8 <free_user_env+0x70>              <== NOT EXECUTED
40004c6c:	01 00 00 00 	nop                                            <== NOT EXECUTED
#ifdef HAVE_USERENV_REFCNT                                            
		&& --env->refcnt <= 0                                               
#endif                                                                
		) {                                                                 
		rtems_filesystem_freenode( &env->current_directory);                
40004c70:	c2 06 20 10 	ld  [ %i0 + 0x10 ], %g1                        <== NOT EXECUTED
40004c74:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40004c78:	22 80 00 09 	be,a   40004c9c <free_user_env+0x44>           <== NOT EXECUTED
40004c7c:	c2 06 20 24 	ld  [ %i0 + 0x24 ], %g1                        <== NOT EXECUTED
40004c80:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        <== NOT EXECUTED
40004c84:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40004c88:	22 80 00 05 	be,a   40004c9c <free_user_env+0x44>           <== NOT EXECUTED
40004c8c:	c2 06 20 24 	ld  [ %i0 + 0x24 ], %g1                        <== NOT EXECUTED
40004c90:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40004c94:	90 06 20 04 	add  %i0, 4, %o0                               <== NOT EXECUTED
		rtems_filesystem_freenode( &env->root_directory);                   
40004c98:	c2 06 20 24 	ld  [ %i0 + 0x24 ], %g1                        <== NOT EXECUTED
40004c9c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40004ca0:	02 80 00 08 	be  40004cc0 <free_user_env+0x68>              <== NOT EXECUTED
40004ca4:	01 00 00 00 	nop                                            <== NOT EXECUTED
40004ca8:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        <== NOT EXECUTED
40004cac:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40004cb0:	02 80 00 04 	be  40004cc0 <free_user_env+0x68>              <== NOT EXECUTED
40004cb4:	01 00 00 00 	nop                                            <== NOT EXECUTED
40004cb8:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40004cbc:	90 06 20 18 	add  %i0, 0x18, %o0                            <== NOT EXECUTED
		free(env);                                                          
40004cc0:	7f ff fb 91 	call  40003b04 <free>                          <== NOT EXECUTED
40004cc4:	81 e8 00 00 	restore                                        <== NOT EXECUTED
40004cc8:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40004ccc:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

4001ae18 <fstat>: int fstat( int fd, struct stat *sbuf ) {
4001ae18:	9d e3 bf a0 	save  %sp, -96, %sp                            
                                                                      
  /*                                                                  
   *  Check to see if we were passed a valid pointer.                 
   */                                                                 
                                                                      
  if ( !sbuf )                                                        
4001ae1c:	80 a6 60 00 	cmp  %i1, 0                                    
4001ae20:	32 80 00 06 	bne,a   4001ae38 <fstat+0x20>                  
4001ae24:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
    rtems_set_errno_and_return_minus_one( EFAULT );                   
4001ae28:	7f ff d1 ad 	call  4000f4dc <__errno>                       
4001ae2c:	01 00 00 00 	nop                                            
4001ae30:	10 80 00 12 	b  4001ae78 <fstat+0x60>                       
4001ae34:	82 10 20 0e 	mov  0xe, %g1	! e <PROM_START+0xe>             
                                                                      
  /*                                                                  
   *  Now process the stat() request.                                 
   */                                                                 
                                                                      
  iop = rtems_libio_iop( fd );                                        
4001ae38:	c2 00 62 04 	ld  [ %g1 + 0x204 ], %g1                       
4001ae3c:	80 a6 00 01 	cmp  %i0, %g1                                  
4001ae40:	1a 80 00 0b 	bcc  4001ae6c <fstat+0x54>                     
4001ae44:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
4001ae48:	c2 00 63 9c 	ld  [ %g1 + 0x39c ], %g1	! 4001d79c <rtems_libio_iops>
4001ae4c:	85 2e 20 06 	sll  %i0, 6, %g2                               
4001ae50:	b1 2e 20 03 	sll  %i0, 3, %i0                               
4001ae54:	b0 06 00 02 	add  %i0, %g2, %i0                             
4001ae58:	b0 00 40 18 	add  %g1, %i0, %i0                             
  rtems_libio_check_fd( fd );                                         
  rtems_libio_check_is_open(iop);                                     
4001ae5c:	c2 06 20 18 	ld  [ %i0 + 0x18 ], %g1                        
4001ae60:	80 88 61 00 	btst  0x100, %g1                               
4001ae64:	32 80 00 08 	bne,a   4001ae84 <fstat+0x6c>                  <== ALWAYS TAKEN
4001ae68:	c2 06 20 40 	ld  [ %i0 + 0x40 ], %g1                        
  /*                                                                  
   *  Now process the stat() request.                                 
   */                                                                 
                                                                      
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_fd( fd );                                         
4001ae6c:	7f ff d1 9c 	call  4000f4dc <__errno>                       
4001ae70:	01 00 00 00 	nop                                            
4001ae74:	82 10 20 09 	mov  9, %g1	! 9 <PROM_START+0x9>               
4001ae78:	c2 22 00 00 	st  %g1, [ %o0 ]                               
4001ae7c:	10 80 00 15 	b  4001aed0 <fstat+0xb8>                       
4001ae80:	90 10 3f ff 	mov  -1, %o0                                   
  rtems_libio_check_is_open(iop);                                     
                                                                      
  if ( !iop->handlers )                                               
4001ae84:	80 a0 60 00 	cmp  %g1, 0                                    
4001ae88:	02 bf ff f9 	be  4001ae6c <fstat+0x54>                      <== NEVER TAKEN
4001ae8c:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EBADF );                    
                                                                      
  if ( !iop->handlers->fstat_h )                                      
4001ae90:	c2 00 60 18 	ld  [ %g1 + 0x18 ], %g1                        
4001ae94:	80 a0 60 00 	cmp  %g1, 0                                    
4001ae98:	12 80 00 06 	bne  4001aeb0 <fstat+0x98>                     <== ALWAYS TAKEN
4001ae9c:	92 10 20 00 	clr  %o1                                       
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
4001aea0:	7f ff d1 8f 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4001aea4:	01 00 00 00 	nop                                            <== NOT EXECUTED
4001aea8:	10 bf ff f4 	b  4001ae78 <fstat+0x60>                       <== NOT EXECUTED
4001aeac:	82 10 20 86 	mov  0x86, %g1	! 86 <PROM_START+0x86>          <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Zero out the stat structure so the various support              
   *  versions of stat don't have to.                                 
   */                                                                 
  memset( sbuf, 0, sizeof(struct stat) );                             
4001aeb0:	94 10 20 48 	mov  0x48, %o2                                 
4001aeb4:	7f ff d4 05 	call  4000fec8 <memset>                        
4001aeb8:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
  return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf );           
4001aebc:	c2 06 20 40 	ld  [ %i0 + 0x40 ], %g1                        
4001aec0:	90 06 20 1c 	add  %i0, 0x1c, %o0                            
4001aec4:	c2 00 60 18 	ld  [ %g1 + 0x18 ], %g1                        
4001aec8:	9f c0 40 00 	call  %g1                                      
4001aecc:	92 10 00 19 	mov  %i1, %o1                                  
}                                                                     
4001aed0:	81 c7 e0 08 	ret                                            
4001aed4:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      

400046b4 <fsync>: #include <rtems/seterr.h> int fsync( int fd ) {
400046b4:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
400046b8:	03 10 00 83 	sethi  %hi(0x40020c00), %g1                    
400046bc:	c2 00 62 74 	ld  [ %g1 + 0x274 ], %g1	! 40020e74 <rtems_libio_number_iops>
400046c0:	80 a6 00 01 	cmp  %i0, %g1                                  
400046c4:	1a 80 00 15 	bcc  40004718 <fsync+0x64>                     <== NEVER TAKEN
400046c8:	01 00 00 00 	nop                                            
  iop = rtems_libio_iop( fd );                                        
400046cc:	03 10 00 86 	sethi  %hi(0x40021800), %g1                    
400046d0:	d0 00 60 14 	ld  [ %g1 + 0x14 ], %o0	! 40021814 <rtems_libio_iops>
400046d4:	83 2e 20 06 	sll  %i0, 6, %g1                               
400046d8:	b1 2e 20 03 	sll  %i0, 3, %i0                               
400046dc:	b0 06 00 01 	add  %i0, %g1, %i0                             
400046e0:	90 02 00 18 	add  %o0, %i0, %o0                             
  rtems_libio_check_is_open(iop);                                     
400046e4:	c2 02 20 18 	ld  [ %o0 + 0x18 ], %g1                        
400046e8:	80 88 61 00 	btst  0x100, %g1                               
400046ec:	02 80 00 0b 	be  40004718 <fsync+0x64>                      <== NEVER TAKEN
400046f0:	80 88 60 04 	btst  4, %g1                                   
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );            
400046f4:	32 80 00 06 	bne,a   4000470c <fsync+0x58>                  
400046f8:	c2 02 20 40 	ld  [ %o0 + 0x40 ], %g1                        
400046fc:	40 00 36 28 	call  40011f9c <__errno>                       
40004700:	01 00 00 00 	nop                                            
40004704:	10 80 00 0f 	b  40004740 <fsync+0x8c>                       
40004708:	82 10 20 16 	mov  0x16, %g1	! 16 <PROM_START+0x16>          
                                                                      
  /*                                                                  
   *  Now process the fsync().                                        
   */                                                                 
                                                                      
  if ( !iop->handlers )                                               
4000470c:	80 a0 60 00 	cmp  %g1, 0                                    
40004710:	32 80 00 06 	bne,a   40004728 <fsync+0x74>                  <== ALWAYS TAKEN
40004714:	c2 00 60 28 	ld  [ %g1 + 0x28 ], %g1                        
    rtems_set_errno_and_return_minus_one( EBADF );                    
40004718:	40 00 36 21 	call  40011f9c <__errno>                       <== NOT EXECUTED
4000471c:	01 00 00 00 	nop                                            <== NOT EXECUTED
40004720:	10 80 00 08 	b  40004740 <fsync+0x8c>                       <== NOT EXECUTED
40004724:	82 10 20 09 	mov  9, %g1	! 9 <PROM_START+0x9>               <== NOT EXECUTED
                                                                      
  if ( !iop->handlers->fsync_h )                                      
40004728:	80 a0 60 00 	cmp  %g1, 0                                    
4000472c:	12 80 00 08 	bne  4000474c <fsync+0x98>                     
40004730:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
40004734:	40 00 36 1a 	call  40011f9c <__errno>                       
40004738:	01 00 00 00 	nop                                            
4000473c:	82 10 20 86 	mov  0x86, %g1	! 86 <PROM_START+0x86>          
40004740:	c2 22 00 00 	st  %g1, [ %o0 ]                               
40004744:	10 80 00 04 	b  40004754 <fsync+0xa0>                       
40004748:	90 10 3f ff 	mov  -1, %o0                                   
                                                                      
  return (*iop->handlers->fsync_h)( iop );                            
4000474c:	9f c0 40 00 	call  %g1                                      
40004750:	01 00 00 00 	nop                                            
}                                                                     
40004754:	81 c7 e0 08 	ret                                            
40004758:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      

4000b224 <ftruncate>: int ftruncate( int fd, off_t length ) {
4000b224:	9d e3 bf 88 	save  %sp, -120, %sp                           
  rtems_libio_t                    *iop;                              
  rtems_filesystem_location_info_t  loc;                              
                                                                      
  rtems_libio_check_fd( fd );                                         
4000b228:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
4000b22c:	c2 00 62 04 	ld  [ %g1 + 0x204 ], %g1	! 4001ce04 <rtems_libio_number_iops>
4000b230:	80 a6 00 01 	cmp  %i0, %g1                                  
4000b234:	1a 80 00 0b 	bcc  4000b260 <ftruncate+0x3c>                 <== NEVER TAKEN
4000b238:	85 2e 20 06 	sll  %i0, 6, %g2                               
  iop = rtems_libio_iop( fd );                                        
4000b23c:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
4000b240:	c2 00 63 9c 	ld  [ %g1 + 0x39c ], %g1	! 4001d79c <rtems_libio_iops>
4000b244:	b1 2e 20 03 	sll  %i0, 3, %i0                               
4000b248:	b0 06 00 02 	add  %i0, %g2, %i0                             
4000b24c:	b0 00 40 18 	add  %g1, %i0, %i0                             
  rtems_libio_check_is_open(iop);                                     
4000b250:	c2 06 20 18 	ld  [ %i0 + 0x18 ], %g1                        
4000b254:	80 88 61 00 	btst  0x100, %g1                               
4000b258:	12 80 00 06 	bne  4000b270 <ftruncate+0x4c>                 <== ALWAYS TAKEN
4000b25c:	a0 07 bf ec 	add  %fp, -20, %l0                             
4000b260:	40 00 10 9f 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4000b264:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000b268:	10 80 00 22 	b  4000b2f0 <ftruncate+0xcc>                   <== NOT EXECUTED
4000b26c:	82 10 20 09 	mov  9, %g1	! 9 <PROM_START+0x9>               <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Make sure we are not working on a directory                     
   */                                                                 
                                                                      
  loc = iop->pathinfo;                                                
4000b270:	92 06 20 1c 	add  %i0, 0x1c, %o1                            
4000b274:	90 10 00 10 	mov  %l0, %o0                                  
4000b278:	40 00 12 d5 	call  4000fdcc <memcpy>                        
4000b27c:	94 10 20 14 	mov  0x14, %o2                                 
  if ( !loc.ops->node_type_h )                                        
4000b280:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
4000b284:	c2 00 60 10 	ld  [ %g1 + 0x10 ], %g1                        
4000b288:	80 a0 60 00 	cmp  %g1, 0                                    
4000b28c:	02 80 00 16 	be  4000b2e4 <ftruncate+0xc0>                  <== NEVER TAKEN
4000b290:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
                                                                      
  if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY )
4000b294:	9f c0 40 00 	call  %g1                                      
4000b298:	90 10 00 10 	mov  %l0, %o0                                  
4000b29c:	80 a2 20 01 	cmp  %o0, 1                                    
4000b2a0:	32 80 00 06 	bne,a   4000b2b8 <ftruncate+0x94>              
4000b2a4:	c2 06 20 18 	ld  [ %i0 + 0x18 ], %g1                        
    rtems_set_errno_and_return_minus_one( EISDIR );                   
4000b2a8:	40 00 10 8d 	call  4000f4dc <__errno>                       
4000b2ac:	01 00 00 00 	nop                                            
4000b2b0:	10 80 00 10 	b  4000b2f0 <ftruncate+0xcc>                   
4000b2b4:	82 10 20 15 	mov  0x15, %g1	! 15 <PROM_START+0x15>          
                                                                      
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );            
4000b2b8:	80 88 60 04 	btst  4, %g1                                   
4000b2bc:	32 80 00 06 	bne,a   4000b2d4 <ftruncate+0xb0>              <== ALWAYS TAKEN
4000b2c0:	c2 06 20 40 	ld  [ %i0 + 0x40 ], %g1                        
4000b2c4:	40 00 10 86 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4000b2c8:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000b2cc:	10 80 00 09 	b  4000b2f0 <ftruncate+0xcc>                   <== NOT EXECUTED
4000b2d0:	82 10 20 16 	mov  0x16, %g1	! 16 <PROM_START+0x16>          <== NOT EXECUTED
                                                                      
  if ( !iop->handlers->ftruncate_h )                                  
4000b2d4:	c2 00 60 20 	ld  [ %g1 + 0x20 ], %g1                        
4000b2d8:	80 a0 60 00 	cmp  %g1, 0                                    
4000b2dc:	32 80 00 08 	bne,a   4000b2fc <ftruncate+0xd8>              <== ALWAYS TAKEN
4000b2e0:	90 10 00 18 	mov  %i0, %o0                                  
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
4000b2e4:	40 00 10 7e 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4000b2e8:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000b2ec:	82 10 20 86 	mov  0x86, %g1	! 86 <PROM_START+0x86>          <== NOT EXECUTED
4000b2f0:	c2 22 00 00 	st  %g1, [ %o0 ]                               
4000b2f4:	10 80 00 05 	b  4000b308 <ftruncate+0xe4>                   
4000b2f8:	90 10 3f ff 	mov  -1, %o0                                   
                                                                      
  return (*iop->handlers->ftruncate_h)( iop, length );                
4000b2fc:	92 10 00 19 	mov  %i1, %o1                                  
4000b300:	9f c0 40 00 	call  %g1                                      
4000b304:	94 10 00 1a 	mov  %i2, %o2                                  
}                                                                     
4000b308:	81 c7 e0 08 	ret                                            
4000b30c:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      

4001f32c <getdents>: int getdents( int dd_fd, char *dd_buf, int dd_len ) {
4001f32c:	9d e3 bf 88 	save  %sp, -120, %sp                           
                                                                      
  /*                                                                  
   *  Get the file control block structure associated with the file descriptor
   */                                                                 
                                                                      
  iop = rtems_libio_iop( dd_fd );                                     
4001f330:	03 10 00 89 	sethi  %hi(0x40022400), %g1                    
4001f334:	c2 00 62 e4 	ld  [ %g1 + 0x2e4 ], %g1	! 400226e4 <rtems_libio_number_iops>
4001f338:	80 a6 00 01 	cmp  %i0, %g1                                  
4001f33c:	1a 80 00 08 	bcc  4001f35c <getdents+0x30>                  <== NEVER TAKEN
4001f340:	a0 10 20 00 	clr  %l0                                       
4001f344:	03 10 00 8c 	sethi  %hi(0x40023000), %g1                    
4001f348:	e0 00 61 a0 	ld  [ %g1 + 0x1a0 ], %l0	! 400231a0 <rtems_libio_iops>
4001f34c:	83 2e 20 06 	sll  %i0, 6, %g1                               
4001f350:	b1 2e 20 03 	sll  %i0, 3, %i0                               
4001f354:	b0 06 00 01 	add  %i0, %g1, %i0                             
4001f358:	a0 04 00 18 	add  %l0, %i0, %l0                             
                                                                      
  /*                                                                  
   *  Make sure we are working on a directory                         
   */                                                                 
  loc = iop->pathinfo;                                                
4001f35c:	a2 07 bf ec 	add  %fp, -20, %l1                             
4001f360:	92 04 20 1c 	add  %l0, 0x1c, %o1                            
4001f364:	90 10 00 11 	mov  %l1, %o0                                  
4001f368:	7f ff ce 43 	call  40012c74 <memcpy>                        
4001f36c:	94 10 20 14 	mov  0x14, %o2                                 
  if ( !loc.ops->node_type_h )                                        
4001f370:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
4001f374:	c2 00 60 10 	ld  [ %g1 + 0x10 ], %g1                        
4001f378:	80 a0 60 00 	cmp  %g1, 0                                    
4001f37c:	02 80 00 11 	be  4001f3c0 <getdents+0x94>                   <== NEVER TAKEN
4001f380:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
                                                                      
  if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY )
4001f384:	9f c0 40 00 	call  %g1                                      
4001f388:	90 10 00 11 	mov  %l1, %o0                                  
4001f38c:	80 a2 20 01 	cmp  %o0, 1                                    
4001f390:	22 80 00 08 	be,a   4001f3b0 <getdents+0x84>                
4001f394:	c2 04 20 40 	ld  [ %l0 + 0x40 ], %g1                        
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
4001f398:	7f ff cb fb 	call  40012384 <__errno>                       
4001f39c:	01 00 00 00 	nop                                            
4001f3a0:	82 10 20 14 	mov  0x14, %g1	! 14 <PROM_START+0x14>          
4001f3a4:	c2 22 00 00 	st  %g1, [ %o0 ]                               
4001f3a8:	10 80 00 0d 	b  4001f3dc <getdents+0xb0>                    
4001f3ac:	90 10 3f ff 	mov  -1, %o0                                   
  /*                                                                  
   *  Return the number of bytes that were actually transfered as a result
   *  of the read attempt.                                            
   */                                                                 
                                                                      
  if ( !iop->handlers->read_h )                                       
4001f3b0:	c2 00 60 08 	ld  [ %g1 + 8 ], %g1                           
4001f3b4:	80 a0 60 00 	cmp  %g1, 0                                    
4001f3b8:	32 80 00 06 	bne,a   4001f3d0 <getdents+0xa4>               <== ALWAYS TAKEN
4001f3bc:	90 10 00 10 	mov  %l0, %o0                                  
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
4001f3c0:	7f ff cb f1 	call  40012384 <__errno>                       <== NOT EXECUTED
4001f3c4:	01 00 00 00 	nop                                            <== NOT EXECUTED
4001f3c8:	10 bf ff f7 	b  4001f3a4 <getdents+0x78>                    <== NOT EXECUTED
4001f3cc:	82 10 20 86 	mov  0x86, %g1	! 86 <PROM_START+0x86>          <== NOT EXECUTED
                                                                      
  return (*iop->handlers->read_h)( iop, dd_buf, dd_len  );            
4001f3d0:	92 10 00 19 	mov  %i1, %o1                                  
4001f3d4:	9f c0 40 00 	call  %g1                                      
4001f3d8:	94 10 00 1a 	mov  %i2, %o2                                  
}                                                                     
4001f3dc:	81 c7 e0 08 	ret                                            
4001f3e0:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      

40003f28 <getgr_r>: struct group *grp, char *buffer, size_t bufsize, struct group **result ) {
40003f28:	9d e3 bf a0 	save  %sp, -96, %sp                            
  FILE *fp;                                                           
  int match;                                                          
                                                                      
  init_etc_passwd_group();                                            
40003f2c:	7f ff ff b6 	call  40003e04 <init_etc_passwd_group>         
40003f30:	01 00 00 00 	nop                                            
                                                                      
  if ((fp = fopen("/etc/group", "r")) == NULL) {                      
40003f34:	11 10 00 7d 	sethi  %hi(0x4001f400), %o0                    
40003f38:	13 10 00 7d 	sethi  %hi(0x4001f400), %o1                    
40003f3c:	90 12 20 98 	or  %o0, 0x98, %o0                             
40003f40:	40 00 38 29 	call  40011fe4 <fopen>                         
40003f44:	92 12 60 20 	or  %o1, 0x20, %o1                             
40003f48:	a0 92 20 00 	orcc  %o0, 0, %l0                              
40003f4c:	12 80 00 08 	bne  40003f6c <getgr_r+0x44>                   <== ALWAYS TAKEN
40003f50:	92 10 00 1a 	mov  %i2, %o1                                  
    errno = EINVAL;                                                   
40003f54:	40 00 35 f6 	call  4001172c <__errno>                       <== NOT EXECUTED
40003f58:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
40003f5c:	82 10 20 16 	mov  0x16, %g1                                 <== NOT EXECUTED
40003f60:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
40003f64:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40003f68:	81 e8 00 00 	restore                                        <== NOT EXECUTED
    return -1;                                                        
  }                                                                   
  for(;;) {                                                           
    if (!scangr(fp, grp, buffer, bufsize)) {                          
40003f6c:	94 10 00 1b 	mov  %i3, %o2                                  
40003f70:	96 10 00 1c 	mov  %i4, %o3                                  
40003f74:	7f ff fe ea 	call  40003b1c <scangr>                        
40003f78:	90 10 00 10 	mov  %l0, %o0                                  
40003f7c:	80 a2 20 00 	cmp  %o0, 0                                    
40003f80:	12 80 00 0a 	bne  40003fa8 <getgr_r+0x80>                   <== ALWAYS TAKEN
40003f84:	80 a6 20 00 	cmp  %i0, 0                                    
      errno = EINVAL;                                                 
40003f88:	40 00 35 e9 	call  4001172c <__errno>                       <== NOT EXECUTED
40003f8c:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
40003f90:	82 10 20 16 	mov  0x16, %g1                                 <== NOT EXECUTED
40003f94:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
      fclose(fp);                                                     
40003f98:	40 00 36 3d 	call  4001188c <fclose>                        <== NOT EXECUTED
40003f9c:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
      return -1;                                                      
40003fa0:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40003fa4:	81 e8 00 00 	restore                                        <== NOT EXECUTED
    }                                                                 
    if (name) {                                                       
40003fa8:	22 80 00 07 	be,a   40003fc4 <getgr_r+0x9c>                 <== NEVER TAKEN
40003fac:	c2 16 a0 08 	lduh  [ %i2 + 8 ], %g1                         <== NOT EXECUTED
      match = (strcmp(grp->gr_name, name) == 0);                      
40003fb0:	d0 06 80 00 	ld  [ %i2 ], %o0                               
40003fb4:	40 00 3d bc 	call  400136a4 <strcmp>                        
40003fb8:	92 10 00 18 	mov  %i0, %o1                                  
40003fbc:	10 80 00 04 	b  40003fcc <getgr_r+0xa4>                     
40003fc0:	80 a0 00 08 	cmp  %g0, %o0                                  
    }                                                                 
    else {                                                            
      match = (grp->gr_gid == gid);                                   
40003fc4:	82 18 40 19 	xor  %g1, %i1, %g1                             <== NOT EXECUTED
40003fc8:	80 a0 00 01 	cmp  %g0, %g1                                  <== NOT EXECUTED
40003fcc:	82 60 3f ff 	subx  %g0, -1, %g1                             
    }                                                                 
    if (match) {                                                      
40003fd0:	80 a0 60 00 	cmp  %g1, 0                                    
40003fd4:	02 bf ff e6 	be  40003f6c <getgr_r+0x44>                    
40003fd8:	92 10 00 1a 	mov  %i2, %o1                                  
      fclose(fp);                                                     
40003fdc:	90 10 00 10 	mov  %l0, %o0                                  
40003fe0:	40 00 36 2b 	call  4001188c <fclose>                        
40003fe4:	b0 10 20 00 	clr  %i0                                       
      *result = grp;                                                  
40003fe8:	f4 27 40 00 	st  %i2, [ %i5 ]                               
    }                                                                 
  }                                                                   
  fclose(fp);                                                         
  errno = EINVAL;                                                     
  return -1;                                                          
}                                                                     
40003fec:	81 c7 e0 08 	ret                                            
40003ff0:	81 e8 00 00 	restore                                        
                                                                      

40003c58 <getgrent>: return NULL; return p; } struct group *getgrent(void) {
40003c58:	9d e3 bf a0 	save  %sp, -96, %sp                            <== NOT EXECUTED
  if (group_fp == NULL)                                               
40003c5c:	03 10 00 83 	sethi  %hi(0x40020c00), %g1                    <== NOT EXECUTED
40003c60:	d0 00 62 5c 	ld  [ %g1 + 0x25c ], %o0	! 40020e5c <group_fp> <== NOT EXECUTED
40003c64:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
40003c68:	22 80 00 0c 	be,a   40003c98 <getgrent+0x40>                <== NOT EXECUTED
40003c6c:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
    return NULL;                                                      
  if (!scangr(group_fp, &grent, grbuf, sizeof grbuf))                 
40003c70:	31 10 00 83 	sethi  %hi(0x40020c00), %i0                    <== NOT EXECUTED
40003c74:	15 10 00 83 	sethi  %hi(0x40020c00), %o2                    <== NOT EXECUTED
40003c78:	92 16 23 28 	or  %i0, 0x328, %o1                            <== NOT EXECUTED
40003c7c:	94 12 a2 60 	or  %o2, 0x260, %o2                            <== NOT EXECUTED
40003c80:	96 10 20 c8 	mov  0xc8, %o3                                 <== NOT EXECUTED
40003c84:	7f ff ff a6 	call  40003b1c <scangr>                        <== NOT EXECUTED
40003c88:	b0 16 23 28 	or  %i0, 0x328, %i0                            <== NOT EXECUTED
40003c8c:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
40003c90:	22 80 00 02 	be,a   40003c98 <getgrent+0x40>                <== NOT EXECUTED
40003c94:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
    return NULL;                                                      
  return &grent;                                                      
}                                                                     
40003c98:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40003c9c:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

40004028 <getgrgid>: } struct group *getgrgid( gid_t gid ) {
40004028:	9d e3 bf 98 	save  %sp, -104, %sp                           <== NOT EXECUTED
  struct group *p;                                                    
                                                                      
  if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p))                
4000402c:	13 10 00 83 	sethi  %hi(0x40020c00), %o1                    <== NOT EXECUTED
40004030:	91 2e 20 10 	sll  %i0, 0x10, %o0                            <== NOT EXECUTED
40004034:	92 12 63 28 	or  %o1, 0x328, %o1                            <== NOT EXECUTED
40004038:	91 32 20 10 	srl  %o0, 0x10, %o0                            <== NOT EXECUTED
4000403c:	15 10 00 83 	sethi  %hi(0x40020c00), %o2                    <== NOT EXECUTED
40004040:	96 10 20 c8 	mov  0xc8, %o3                                 <== NOT EXECUTED
40004044:	94 12 a2 60 	or  %o2, 0x260, %o2                            <== NOT EXECUTED
40004048:	98 07 bf fc 	add  %fp, -4, %o4                              <== NOT EXECUTED
4000404c:	7f ff ff ea 	call  40003ff4 <getgrgid_r>                    <== NOT EXECUTED
40004050:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
40004054:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
40004058:	22 80 00 02 	be,a   40004060 <getgrgid+0x38>                <== NOT EXECUTED
4000405c:	f0 07 bf fc 	ld  [ %fp + -4 ], %i0                          <== NOT EXECUTED
    return NULL;                                                      
  return p;                                                           
}                                                                     
40004060:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40004064:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

40003ff4 <getgrgid_r>: struct group *grp, char *buffer, size_t bufsize, struct group **result ) {
40003ff4:	84 10 00 0a 	mov  %o2, %g2                                  <== NOT EXECUTED
40003ff8:	82 10 00 0b 	mov  %o3, %g1                                  <== NOT EXECUTED
  return getgr_r(NULL, gid, grp, buffer, bufsize, result);            
40003ffc:	91 2a 20 10 	sll  %o0, 0x10, %o0                            <== NOT EXECUTED
  struct group   *grp,                                                
  char           *buffer,                                             
  size_t          bufsize,                                            
  struct group  **result                                              
)                                                                     
{                                                                     
40004000:	9a 10 00 0c 	mov  %o4, %o5                                  <== NOT EXECUTED
  return getgr_r(NULL, gid, grp, buffer, bufsize, result);            
40004004:	94 10 00 09 	mov  %o1, %o2                                  <== NOT EXECUTED
40004008:	96 10 00 02 	mov  %g2, %o3                                  <== NOT EXECUTED
4000400c:	93 32 20 10 	srl  %o0, 0x10, %o1                            <== NOT EXECUTED
40004010:	98 10 00 01 	mov  %g1, %o4                                  <== NOT EXECUTED
40004014:	90 10 20 00 	clr  %o0                                       <== NOT EXECUTED
40004018:	82 13 c0 00 	mov  %o7, %g1                                  <== NOT EXECUTED
4000401c:	7f ff ff c3 	call  40003f28 <getgr_r>                       <== NOT EXECUTED
40004020:	9e 10 40 00 	mov  %g1, %o7                                  <== NOT EXECUTED
                                                                      

40004094 <getgrnam>: } struct group *getgrnam( const char *name ) {
40004094:	9d e3 bf 98 	save  %sp, -104, %sp                           
  struct group *p;                                                    
                                                                      
  if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p))               
40004098:	13 10 00 83 	sethi  %hi(0x40020c00), %o1                    
4000409c:	90 10 00 18 	mov  %i0, %o0                                  
400040a0:	92 12 63 28 	or  %o1, 0x328, %o1                            
400040a4:	15 10 00 83 	sethi  %hi(0x40020c00), %o2                    
400040a8:	96 10 20 c8 	mov  0xc8, %o3                                 
400040ac:	94 12 a2 60 	or  %o2, 0x260, %o2                            
400040b0:	98 07 bf fc 	add  %fp, -4, %o4                              
400040b4:	7f ff ff ed 	call  40004068 <getgrnam_r>                    
400040b8:	b0 10 20 00 	clr  %i0                                       
400040bc:	80 a2 20 00 	cmp  %o0, 0                                    
400040c0:	22 80 00 02 	be,a   400040c8 <getgrnam+0x34>                <== ALWAYS TAKEN
400040c4:	f0 07 bf fc 	ld  [ %fp + -4 ], %i0                          
    return NULL;                                                      
  return p;                                                           
}                                                                     
400040c8:	81 c7 e0 08 	ret                                            
400040cc:	81 e8 00 00 	restore                                        
                                                                      

4000411c <getpw_r>: struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) {
4000411c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  FILE *fp;                                                           
  int match;                                                          
                                                                      
  init_etc_passwd_group();                                            
40004120:	7f ff ff 39 	call  40003e04 <init_etc_passwd_group>         
40004124:	01 00 00 00 	nop                                            
                                                                      
  if ((fp = fopen("/etc/passwd", "r")) == NULL) {                     
40004128:	11 10 00 7d 	sethi  %hi(0x4001f400), %o0                    
4000412c:	13 10 00 7d 	sethi  %hi(0x4001f400), %o1                    
40004130:	90 12 20 10 	or  %o0, 0x10, %o0                             
40004134:	40 00 37 ac 	call  40011fe4 <fopen>                         
40004138:	92 12 60 20 	or  %o1, 0x20, %o1                             
4000413c:	a0 92 20 00 	orcc  %o0, 0, %l0                              
40004140:	12 80 00 08 	bne  40004160 <getpw_r+0x44>                   <== ALWAYS TAKEN
40004144:	92 10 00 1a 	mov  %i2, %o1                                  
    errno = EINVAL;                                                   
40004148:	40 00 35 79 	call  4001172c <__errno>                       <== NOT EXECUTED
4000414c:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
40004150:	82 10 20 16 	mov  0x16, %g1                                 <== NOT EXECUTED
40004154:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
40004158:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000415c:	81 e8 00 00 	restore                                        <== NOT EXECUTED
    return -1;                                                        
  }                                                                   
  for(;;) {                                                           
    if (!scanpw(fp, pwd, buffer, bufsize)) {                          
40004160:	94 10 00 1b 	mov  %i3, %o2                                  
40004164:	96 10 00 1c 	mov  %i4, %o3                                  
40004168:	7f ff fe ce 	call  40003ca0 <scanpw>                        
4000416c:	90 10 00 10 	mov  %l0, %o0                                  
40004170:	80 a2 20 00 	cmp  %o0, 0                                    
40004174:	12 80 00 0a 	bne  4000419c <getpw_r+0x80>                   <== ALWAYS TAKEN
40004178:	80 a6 20 00 	cmp  %i0, 0                                    
      errno = EINVAL;                                                 
4000417c:	40 00 35 6c 	call  4001172c <__errno>                       <== NOT EXECUTED
40004180:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
40004184:	82 10 20 16 	mov  0x16, %g1                                 <== NOT EXECUTED
40004188:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
      fclose(fp);                                                     
4000418c:	40 00 35 c0 	call  4001188c <fclose>                        <== NOT EXECUTED
40004190:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
      return -1;                                                      
40004194:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40004198:	81 e8 00 00 	restore                                        <== NOT EXECUTED
    }                                                                 
    if (name) {                                                       
4000419c:	22 80 00 07 	be,a   400041b8 <getpw_r+0x9c>                 <== NEVER TAKEN
400041a0:	c2 16 a0 08 	lduh  [ %i2 + 8 ], %g1                         <== NOT EXECUTED
      match = (strcmp(pwd->pw_name, name) == 0);                      
400041a4:	d0 06 80 00 	ld  [ %i2 ], %o0                               
400041a8:	40 00 3d 3f 	call  400136a4 <strcmp>                        
400041ac:	92 10 00 18 	mov  %i0, %o1                                  
400041b0:	10 80 00 04 	b  400041c0 <getpw_r+0xa4>                     
400041b4:	80 a0 00 08 	cmp  %g0, %o0                                  
    }                                                                 
    else {                                                            
      match = (pwd->pw_uid == uid);                                   
400041b8:	82 18 40 19 	xor  %g1, %i1, %g1                             <== NOT EXECUTED
400041bc:	80 a0 00 01 	cmp  %g0, %g1                                  <== NOT EXECUTED
400041c0:	82 60 3f ff 	subx  %g0, -1, %g1                             
    }                                                                 
    if (match) {                                                      
400041c4:	80 a0 60 00 	cmp  %g1, 0                                    
400041c8:	02 bf ff e6 	be  40004160 <getpw_r+0x44>                    
400041cc:	92 10 00 1a 	mov  %i2, %o1                                  
      fclose(fp);                                                     
400041d0:	90 10 00 10 	mov  %l0, %o0                                  
400041d4:	40 00 35 ae 	call  4001188c <fclose>                        
400041d8:	b0 10 20 00 	clr  %i0                                       
      *result = pwd;                                                  
400041dc:	f4 27 40 00 	st  %i2, [ %i5 ]                               
    }                                                                 
  }                                                                   
  fclose(fp);                                                         
  errno = EINVAL;                                                     
  return -1;                                                          
}                                                                     
400041e0:	81 c7 e0 08 	ret                                            
400041e4:	81 e8 00 00 	restore                                        
                                                                      

40003dbc <getpwent>: return NULL; return p; } struct passwd *getpwent(void) {
40003dbc:	9d e3 bf a0 	save  %sp, -96, %sp                            <== NOT EXECUTED
  if (passwd_fp == NULL)                                              
40003dc0:	03 10 00 83 	sethi  %hi(0x40020c00), %g1                    <== NOT EXECUTED
40003dc4:	d0 00 61 74 	ld  [ %g1 + 0x174 ], %o0	! 40020d74 <passwd_fp><== NOT EXECUTED
40003dc8:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
40003dcc:	22 80 00 0c 	be,a   40003dfc <getpwent+0x40>                <== NOT EXECUTED
40003dd0:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
    return NULL;                                                      
  if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf))                
40003dd4:	31 10 00 83 	sethi  %hi(0x40020c00), %i0                    <== NOT EXECUTED
40003dd8:	15 10 00 83 	sethi  %hi(0x40020c00), %o2                    <== NOT EXECUTED
40003ddc:	92 16 22 40 	or  %i0, 0x240, %o1                            <== NOT EXECUTED
40003de0:	94 12 a1 78 	or  %o2, 0x178, %o2                            <== NOT EXECUTED
40003de4:	96 10 20 c8 	mov  0xc8, %o3                                 <== NOT EXECUTED
40003de8:	7f ff ff ae 	call  40003ca0 <scanpw>                        <== NOT EXECUTED
40003dec:	b0 16 22 40 	or  %i0, 0x240, %i0                            <== NOT EXECUTED
40003df0:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
40003df4:	22 80 00 02 	be,a   40003dfc <getpwent+0x40>                <== NOT EXECUTED
40003df8:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
    return NULL;                                                      
  return &pwent;                                                      
}                                                                     
40003dfc:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40003e00:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

40004288 <getpwnam>: } struct passwd *getpwnam( const char *name ) {
40004288:	9d e3 bf 98 	save  %sp, -104, %sp                           
  struct passwd *p;                                                   
                                                                      
  if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p))               
4000428c:	13 10 00 83 	sethi  %hi(0x40020c00), %o1                    
40004290:	90 10 00 18 	mov  %i0, %o0                                  
40004294:	92 12 62 40 	or  %o1, 0x240, %o1                            
40004298:	15 10 00 83 	sethi  %hi(0x40020c00), %o2                    
4000429c:	96 10 20 c8 	mov  0xc8, %o3                                 
400042a0:	94 12 a1 78 	or  %o2, 0x178, %o2                            
400042a4:	98 07 bf fc 	add  %fp, -4, %o4                              
400042a8:	7f ff ff ed 	call  4000425c <getpwnam_r>                    
400042ac:	b0 10 20 00 	clr  %i0                                       
400042b0:	80 a2 20 00 	cmp  %o0, 0                                    
400042b4:	22 80 00 02 	be,a   400042bc <getpwnam+0x34>                <== ALWAYS TAKEN
400042b8:	f0 07 bf fc 	ld  [ %fp + -4 ], %i0                          
    return NULL;                                                      
  return p;                                                           
}                                                                     
400042bc:	81 c7 e0 08 	ret                                            
400042c0:	81 e8 00 00 	restore                                        
                                                                      

4000421c <getpwuid>: } struct passwd *getpwuid( uid_t uid ) {
4000421c:	9d e3 bf 98 	save  %sp, -104, %sp                           <== NOT EXECUTED
  struct passwd *p;                                                   
                                                                      
  if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p))                
40004220:	13 10 00 83 	sethi  %hi(0x40020c00), %o1                    <== NOT EXECUTED
40004224:	91 2e 20 10 	sll  %i0, 0x10, %o0                            <== NOT EXECUTED
40004228:	92 12 62 40 	or  %o1, 0x240, %o1                            <== NOT EXECUTED
4000422c:	91 32 20 10 	srl  %o0, 0x10, %o0                            <== NOT EXECUTED
40004230:	15 10 00 83 	sethi  %hi(0x40020c00), %o2                    <== NOT EXECUTED
40004234:	96 10 20 c8 	mov  0xc8, %o3                                 <== NOT EXECUTED
40004238:	94 12 a1 78 	or  %o2, 0x178, %o2                            <== NOT EXECUTED
4000423c:	98 07 bf fc 	add  %fp, -4, %o4                              <== NOT EXECUTED
40004240:	7f ff ff ea 	call  400041e8 <getpwuid_r>                    <== NOT EXECUTED
40004244:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
40004248:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000424c:	22 80 00 02 	be,a   40004254 <getpwuid+0x38>                <== NOT EXECUTED
40004250:	f0 07 bf fc 	ld  [ %fp + -4 ], %i0                          <== NOT EXECUTED
    return NULL;                                                      
  return p;                                                           
}                                                                     
40004254:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40004258:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

400041e8 <getpwuid_r>: struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) {
400041e8:	84 10 00 0a 	mov  %o2, %g2                                  <== NOT EXECUTED
400041ec:	82 10 00 0b 	mov  %o3, %g1                                  <== NOT EXECUTED
  return getpw_r(NULL, uid, pwd, buffer, bufsize, result);            
400041f0:	91 2a 20 10 	sll  %o0, 0x10, %o0                            <== NOT EXECUTED
  struct passwd  *pwd,                                                
  char           *buffer,                                             
  size_t          bufsize,                                            
  struct passwd **result                                              
)                                                                     
{                                                                     
400041f4:	9a 10 00 0c 	mov  %o4, %o5                                  <== NOT EXECUTED
  return getpw_r(NULL, uid, pwd, buffer, bufsize, result);            
400041f8:	94 10 00 09 	mov  %o1, %o2                                  <== NOT EXECUTED
400041fc:	96 10 00 02 	mov  %g2, %o3                                  <== NOT EXECUTED
40004200:	93 32 20 10 	srl  %o0, 0x10, %o1                            <== NOT EXECUTED
40004204:	98 10 00 01 	mov  %g1, %o4                                  <== NOT EXECUTED
40004208:	90 10 20 00 	clr  %o0                                       <== NOT EXECUTED
4000420c:	82 13 c0 00 	mov  %o7, %g1                                  <== NOT EXECUTED
40004210:	7f ff ff c3 	call  4000411c <getpw_r>                       <== NOT EXECUTED
40004214:	9e 10 40 00 	mov  %g1, %o7                                  <== NOT EXECUTED
                                                                      

4000b330 <gettimeofday>: */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) {
4000b330:	9d e3 bf 98 	save  %sp, -104, %sp                           
  /* struct timezone* tzp = (struct timezone*) __tz; */               
  if ( !tp ) {                                                        
4000b334:	80 a6 20 00 	cmp  %i0, 0                                    
4000b338:	12 80 00 08 	bne  4000b358 <gettimeofday+0x28>              <== ALWAYS TAKEN
4000b33c:	01 00 00 00 	nop                                            
    errno = EFAULT;                                                   
4000b340:	40 00 10 67 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4000b344:	b0 10 3f ff 	mov  -1, %i0	! ffffffff <LEON_REG+0x7fffffff>  <== NOT EXECUTED
4000b348:	82 10 20 0e 	mov  0xe, %g1                                  <== NOT EXECUTED
4000b34c:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
    return -1;                                                        
4000b350:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000b354:	81 e8 00 00 	restore                                        <== NOT EXECUTED
{                                                                     
  ISR_Level       level;                                              
  struct timespec now;                                                
  suseconds_t     useconds;                                           
                                                                      
  _ISR_Disable(level);                                                
4000b358:	7f ff da 7d 	call  40001d4c <sparc_disable_interrupts>      
4000b35c:	01 00 00 00 	nop                                            
4000b360:	a0 10 00 08 	mov  %o0, %l0                                  
    _TOD_Get( &now );                                                 
4000b364:	40 00 04 9e 	call  4000c5dc <_TOD_Get>                      
4000b368:	90 07 bf f8 	add  %fp, -8, %o0                              
  _ISR_Enable(level);                                                 
4000b36c:	7f ff da 7c 	call  40001d5c <sparc_enable_interrupts>       
4000b370:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
  useconds = (suseconds_t)now.tv_nsec;                                
  useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;           
                                                                      
  time->tv_sec  = now.tv_sec;                                         
  time->tv_usec = useconds;                                           
4000b374:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          
  _ISR_Enable(level);                                                 
                                                                      
  useconds = (suseconds_t)now.tv_nsec;                                
  useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;           
                                                                      
  time->tv_sec  = now.tv_sec;                                         
4000b378:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
  time->tv_usec = useconds;                                           
4000b37c:	92 10 23 e8 	mov  0x3e8, %o1                                
4000b380:	40 00 35 f1 	call  40018b44 <.div>                          
4000b384:	c2 26 00 00 	st  %g1, [ %i0 ]                               
4000b388:	d0 26 20 04 	st  %o0, [ %i0 + 4 ]                           
   *  with Eric Norum, this is how GNU/Linux, Solaris, and MacOS X    
   *  do it.  This puts us in good company.                           
   */                                                                 
                                                                      
  return 0;                                                           
}                                                                     
4000b38c:	81 c7 e0 08 	ret                                            
4000b390:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

40013f54 <imfs_dir_open>: ) { IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info;
40013f54:	c4 02 20 3c 	ld  [ %o0 + 0x3c ], %g2                        
40013f58:	c4 00 a0 4c 	ld  [ %g2 + 0x4c ], %g2                        
40013f5c:	80 a0 a0 01 	cmp  %g2, 1                                    
40013f60:	12 80 00 05 	bne  40013f74 <imfs_dir_open+0x20>             <== NEVER TAKEN
40013f64:	82 10 3f ff 	mov  -1, %g1                                   
                                                                      
  if ( the_jnode->type != IMFS_DIRECTORY )                            
     return -1;      /* It wasn't a directory --> return error */     
                                                                      
  iop->offset = 0;                                                    
40013f68:	c0 22 20 10 	clr  [ %o0 + 0x10 ]                            
40013f6c:	c0 22 20 14 	clr  [ %o0 + 0x14 ]                            
40013f70:	82 10 20 00 	clr  %g1                                       
  return 0;                                                           
}                                                                     
40013f74:	81 c3 e0 08 	retl                                           
40013f78:	90 10 00 01 	mov  %g1, %o0                                  
                                                                      

400141a4 <imfs_dir_read>: ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) {
400141a4:	9d e3 be 88 	save  %sp, -376, %sp                           <== NOT EXECUTED
   int                  current_entry;                                
   int                  first_entry;                                  
   int                  last_entry;                                   
   struct dirent        tmp_dirent;                                   
                                                                      
   the_jnode = (IMFS_jnode_t *)iop->file_info;                        
400141a8:	e4 06 20 3c 	ld  [ %i0 + 0x3c ], %l2                        <== NOT EXECUTED
ssize_t imfs_dir_read(                                                
  rtems_libio_t  *iop,                                                
  void           *buffer,                                             
  size_t          count                                               
)                                                                     
{                                                                     
400141ac:	a0 10 00 18 	mov  %i0, %l0                                  <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
400141b0:	e2 04 a0 50 	ld  [ %l2 + 0x50 ], %l1                        <== NOT EXECUTED
400141b4:	90 10 00 1a 	mov  %i2, %o0                                  <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
400141b8:	a4 04 a0 54 	add  %l2, 0x54, %l2                            <== NOT EXECUTED
   struct dirent        tmp_dirent;                                   
                                                                      
   the_jnode = (IMFS_jnode_t *)iop->file_info;                        
   the_chain = &the_jnode->info.directory.Entries;                    
                                                                      
   if ( rtems_chain_is_empty( the_chain ) )                           
400141bc:	80 a4 40 12 	cmp  %l1, %l2                                  <== NOT EXECUTED
400141c0:	02 80 00 2f 	be  4001427c <imfs_dir_read+0xd8>              <== NOT EXECUTED
400141c4:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
                                                                      
   /* Move to the first of the desired directory entries */           
   the_node = the_chain->first;                                       
                                                                      
   bytes_transferred = 0;                                             
   first_entry = iop->offset;                                         
400141c8:	e8 04 20 14 	ld  [ %l0 + 0x14 ], %l4                        <== NOT EXECUTED
   /* protect against using sizes that are not exact multiples of the */
   /* -dirent- size. These could result in unexpected results          */
   last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent);
400141cc:	40 00 29 59 	call  4001e730 <.udiv>                         <== NOT EXECUTED
400141d0:	92 10 21 18 	mov  0x118, %o1                                <== NOT EXECUTED
400141d4:	83 2a 20 05 	sll  %o0, 5, %g1                               <== NOT EXECUTED
400141d8:	bb 2a 20 03 	sll  %o0, 3, %i5                               <== NOT EXECUTED
400141dc:	a6 10 20 00 	clr  %l3                                       <== NOT EXECUTED
400141e0:	ba 07 40 01 	add  %i5, %g1, %i5                             <== NOT EXECUTED
      }                                                               
                                                                      
      if( current_entry >= first_entry ) {                            
         /* Move the entry to the return buffer */                    
         tmp_dirent.d_off = current_entry;                            
         tmp_dirent.d_reclen = sizeof( struct dirent );               
400141e4:	ae 10 21 18 	mov  0x118, %l7                                <== NOT EXECUTED
                                                                      
   bytes_transferred = 0;                                             
   first_entry = iop->offset;                                         
   /* protect against using sizes that are not exact multiples of the */
   /* -dirent- size. These could result in unexpected results          */
   last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent);
400141e8:	83 2f 60 03 	sll  %i5, 3, %g1                               <== NOT EXECUTED
         tmp_dirent.d_off = current_entry;                            
         tmp_dirent.d_reclen = sizeof( struct dirent );               
         the_jnode = (IMFS_jnode_t *) the_node;                       
         tmp_dirent.d_ino = the_jnode->st_ino;                        
         tmp_dirent.d_namlen = strlen( the_jnode->name );             
         strcpy( tmp_dirent.d_name, the_jnode->name );                
400141ec:	ac 07 be e8 	add  %fp, -280, %l6                            <== NOT EXECUTED
                                                                      
   bytes_transferred = 0;                                             
   first_entry = iop->offset;                                         
   /* protect against using sizes that are not exact multiples of the */
   /* -dirent- size. These could result in unexpected results          */
   last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent);
400141f0:	ba 20 40 1d 	sub  %g1, %i5, %i5                             <== NOT EXECUTED
         tmp_dirent.d_off = current_entry;                            
         tmp_dirent.d_reclen = sizeof( struct dirent );               
         the_jnode = (IMFS_jnode_t *) the_node;                       
         tmp_dirent.d_ino = the_jnode->st_ino;                        
         tmp_dirent.d_namlen = strlen( the_jnode->name );             
         strcpy( tmp_dirent.d_name, the_jnode->name );                
400141f4:	aa 07 be fc 	add  %fp, -260, %l5                            <== NOT EXECUTED
   /* protect against using sizes that are not exact multiples of the */
   /* -dirent- size. These could result in unexpected results          */
   last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent);
                                                                      
   /* The directory was not empty so try to move to the desired entry in chain*/
   for (                                                              
400141f8:	10 80 00 1e 	b  40014270 <imfs_dir_read+0xcc>               <== NOT EXECUTED
400141fc:	ba 07 40 14 	add  %i5, %l4, %i5                             <== NOT EXECUTED
      current_entry = 0;                                              
      current_entry < last_entry;                                     
      current_entry = current_entry + sizeof(struct dirent) ){        
                                                                      
      if ( rtems_chain_is_tail( the_chain, the_node ) ){              
40014200:	02 80 00 1f 	be  4001427c <imfs_dir_read+0xd8>              <== NOT EXECUTED
40014204:	80 a4 c0 14 	cmp  %l3, %l4                                  <== NOT EXECUTED
         /* entry in the read */                                      
         return bytes_transferred;  /* Indicate that there are no more */
                                    /* entries to return */           
      }                                                               
                                                                      
      if( current_entry >= first_entry ) {                            
40014208:	26 80 00 19 	bl,a   4001426c <imfs_dir_read+0xc8>           <== NOT EXECUTED
4001420c:	e2 04 40 00 	ld  [ %l1 ], %l1                               <== NOT EXECUTED
         /* Move the entry to the return buffer */                    
         tmp_dirent.d_off = current_entry;                            
         tmp_dirent.d_reclen = sizeof( struct dirent );               
         the_jnode = (IMFS_jnode_t *) the_node;                       
         tmp_dirent.d_ino = the_jnode->st_ino;                        
40014210:	c2 04 60 38 	ld  [ %l1 + 0x38 ], %g1                        <== NOT EXECUTED
         tmp_dirent.d_namlen = strlen( the_jnode->name );             
40014214:	b8 04 60 0c 	add  %l1, 0xc, %i4                             <== NOT EXECUTED
      if( current_entry >= first_entry ) {                            
         /* Move the entry to the return buffer */                    
         tmp_dirent.d_off = current_entry;                            
         tmp_dirent.d_reclen = sizeof( struct dirent );               
         the_jnode = (IMFS_jnode_t *) the_node;                       
         tmp_dirent.d_ino = the_jnode->st_ino;                        
40014218:	c2 27 be e8 	st  %g1, [ %fp + -280 ]                        <== NOT EXECUTED
                                    /* entries to return */           
      }                                                               
                                                                      
      if( current_entry >= first_entry ) {                            
         /* Move the entry to the return buffer */                    
         tmp_dirent.d_off = current_entry;                            
4001421c:	83 3c e0 1f 	sra  %l3, 0x1f, %g1                            <== NOT EXECUTED
40014220:	e6 27 be f4 	st  %l3, [ %fp + -268 ]                        <== NOT EXECUTED
40014224:	c2 27 be f0 	st  %g1, [ %fp + -272 ]                        <== NOT EXECUTED
         tmp_dirent.d_reclen = sizeof( struct dirent );               
40014228:	ee 37 be f8 	sth  %l7, [ %fp + -264 ]                       <== NOT EXECUTED
         the_jnode = (IMFS_jnode_t *) the_node;                       
         tmp_dirent.d_ino = the_jnode->st_ino;                        
         tmp_dirent.d_namlen = strlen( the_jnode->name );             
4001422c:	40 00 07 61 	call  40015fb0 <strlen>                        <== NOT EXECUTED
40014230:	90 10 00 1c 	mov  %i4, %o0                                  <== NOT EXECUTED
         strcpy( tmp_dirent.d_name, the_jnode->name );                
40014234:	92 10 00 1c 	mov  %i4, %o1                                  <== NOT EXECUTED
         /* Move the entry to the return buffer */                    
         tmp_dirent.d_off = current_entry;                            
         tmp_dirent.d_reclen = sizeof( struct dirent );               
         the_jnode = (IMFS_jnode_t *) the_node;                       
         tmp_dirent.d_ino = the_jnode->st_ino;                        
         tmp_dirent.d_namlen = strlen( the_jnode->name );             
40014238:	d0 37 be fa 	sth  %o0, [ %fp + -262 ]                       <== NOT EXECUTED
         strcpy( tmp_dirent.d_name, the_jnode->name );                
4001423c:	40 00 07 25 	call  40015ed0 <strcpy>                        <== NOT EXECUTED
40014240:	90 10 00 15 	mov  %l5, %o0                                  <== NOT EXECUTED
         memcpy(                                                      
40014244:	90 06 40 18 	add  %i1, %i0, %o0                             <== NOT EXECUTED
40014248:	92 10 00 16 	mov  %l6, %o1                                  <== NOT EXECUTED
4001424c:	40 00 05 f6 	call  40015a24 <memcpy>                        <== NOT EXECUTED
40014250:	94 10 21 18 	mov  0x118, %o2                                <== NOT EXECUTED
            buffer + bytes_transferred,                               
            (void *)&tmp_dirent,                                      
            sizeof( struct dirent )                                   
         );                                                           
         iop->offset = iop->offset + sizeof(struct dirent);           
40014254:	c4 1c 20 10 	ldd  [ %l0 + 0x10 ], %g2                       <== NOT EXECUTED
         bytes_transferred = bytes_transferred + sizeof( struct dirent );
40014258:	b0 06 21 18 	add  %i0, 0x118, %i0                           <== NOT EXECUTED
         memcpy(                                                      
            buffer + bytes_transferred,                               
            (void *)&tmp_dirent,                                      
            sizeof( struct dirent )                                   
         );                                                           
         iop->offset = iop->offset + sizeof(struct dirent);           
4001425c:	86 80 e1 18 	addcc  %g3, 0x118, %g3                         <== NOT EXECUTED
40014260:	84 40 a0 00 	addx  %g2, 0, %g2                              <== NOT EXECUTED
40014264:	c4 3c 20 10 	std  %g2, [ %l0 + 0x10 ]                       <== NOT EXECUTED
         bytes_transferred = bytes_transferred + sizeof( struct dirent );
      }                                                               
                                                                      
      the_node = the_node->next;                                      
40014268:	e2 04 40 00 	ld  [ %l1 ], %l1                               <== NOT EXECUTED
 *  to the end of the exisiting file, the remaining entries will be placed in
 *  the buffer and the returned value will be equal to -m actual- times the
 *  size of a directory entry.                                        
 */                                                                   
                                                                      
ssize_t imfs_dir_read(                                                
4001426c:	a6 04 e1 18 	add  %l3, 0x118, %l3                           <== NOT EXECUTED
   /* protect against using sizes that are not exact multiples of the */
   /* -dirent- size. These could result in unexpected results          */
   last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent);
                                                                      
   /* The directory was not empty so try to move to the desired entry in chain*/
   for (                                                              
40014270:	80 a4 c0 1d 	cmp  %l3, %i5                                  <== NOT EXECUTED
40014274:	06 bf ff e3 	bl  40014200 <imfs_dir_read+0x5c>              <== NOT EXECUTED
40014278:	80 a4 40 12 	cmp  %l1, %l2                                  <== NOT EXECUTED
      the_node = the_node->next;                                      
   }                                                                  
                                                                      
   /* Success */                                                      
   return bytes_transferred;                                          
}                                                                     
4001427c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40014280:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

400140b0 <imfs_dir_rmnod>: int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) {
400140b0:	9d e3 bf 98 	save  %sp, -104, %sp                           
  IMFS_jnode_t *the_jnode;                                            
                                                                      
  the_jnode = (IMFS_jnode_t *) pathloc->node_access;                  
400140b4:	e0 06 40 00 	ld  [ %i1 ], %l0                               
400140b8:	c4 04 20 50 	ld  [ %l0 + 0x50 ], %g2                        
400140bc:	82 04 20 54 	add  %l0, 0x54, %g1                            
400140c0:	80 a0 80 01 	cmp  %g2, %g1                                  
400140c4:	22 80 00 06 	be,a   400140dc <imfs_dir_rmnod+0x2c>          
400140c8:	c2 06 60 10 	ld  [ %i1 + 0x10 ], %g1                        
  /*                                                                  
   * You cannot remove a node that still has children                 
   */                                                                 
                                                                      
  if ( ! rtems_chain_is_empty( &the_jnode->info.directory.Entries ) ) 
     rtems_set_errno_and_return_minus_one( ENOTEMPTY );               
400140cc:	40 00 04 1a 	call  40015134 <__errno>                       
400140d0:	01 00 00 00 	nop                                            
400140d4:	10 80 00 0d 	b  40014108 <imfs_dir_rmnod+0x58>              
400140d8:	82 10 20 5a 	mov  0x5a, %g1	! 5a <PROM_START+0x5a>          
                                                                      
  /*                                                                  
   * You cannot remove the file system root node.                     
   */                                                                 
                                                                      
  if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access )
400140dc:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
400140e0:	80 a0 40 10 	cmp  %g1, %l0                                  
400140e4:	02 80 00 06 	be  400140fc <imfs_dir_rmnod+0x4c>             
400140e8:	01 00 00 00 	nop                                            
                                                                      
  /*                                                                  
   * You cannot remove a mountpoint.                                  
   */                                                                 
                                                                      
   if ( the_jnode->info.directory.mt_fs != NULL )                     
400140ec:	c2 04 20 5c 	ld  [ %l0 + 0x5c ], %g1                        
400140f0:	80 a0 60 00 	cmp  %g1, 0                                    
400140f4:	22 80 00 08 	be,a   40014114 <imfs_dir_rmnod+0x64>          <== ALWAYS TAKEN
400140f8:	c2 04 20 08 	ld  [ %l0 + 8 ], %g1                           
     rtems_set_errno_and_return_minus_one( EBUSY );                   
400140fc:	40 00 04 0e 	call  40015134 <__errno>                       
40014100:	01 00 00 00 	nop                                            
40014104:	82 10 20 10 	mov  0x10, %g1	! 10 <PROM_START+0x10>          
40014108:	c2 22 00 00 	st  %g1, [ %o0 ]                               
4001410c:	81 c7 e0 08 	ret                                            
40014110:	91 e8 3f ff 	restore  %g0, -1, %o0                          
                                                                      
  /*                                                                  
   * Take the node out of the parent's chain that contains this node  
   */                                                                 
                                                                      
  if ( the_jnode->Parent != NULL ) {                                  
40014114:	80 a0 60 00 	cmp  %g1, 0                                    
40014118:	22 80 00 06 	be,a   40014130 <imfs_dir_rmnod+0x80>          
4001411c:	c2 14 20 34 	lduh  [ %l0 + 0x34 ], %g1                      
40014120:	7f ff d3 8a 	call  40008f48 <_Chain_Extract>                
40014124:	90 10 00 10 	mov  %l0, %o0                                  
    rtems_chain_extract( (rtems_chain_node *) the_jnode );            
    the_jnode->Parent = NULL;                                         
40014128:	c0 24 20 08 	clr  [ %l0 + 8 ]                               
                                                                      
  /*                                                                  
   * Decrement the link counter and see if we can free the space.     
   */                                                                 
                                                                      
  the_jnode->st_nlink--;                                              
4001412c:	c2 14 20 34 	lduh  [ %l0 + 0x34 ], %g1                      
  IMFS_update_ctime( the_jnode );                                     
40014130:	92 10 20 00 	clr  %o1                                       
                                                                      
  /*                                                                  
   * Decrement the link counter and see if we can free the space.     
   */                                                                 
                                                                      
  the_jnode->st_nlink--;                                              
40014134:	82 00 7f ff 	add  %g1, -1, %g1                              
  IMFS_update_ctime( the_jnode );                                     
40014138:	90 07 bf f8 	add  %fp, -8, %o0                              
4001413c:	7f ff c2 0e 	call  40004974 <gettimeofday>                  
40014140:	c2 34 20 34 	sth  %g1, [ %l0 + 0x34 ]                       
40014144:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
                                                                      
  /*                                                                  
   * The file cannot be open and the link must be less than 1 to free.
   */                                                                 
                                                                      
  if ( !rtems_libio_is_file_open( the_jnode ) && (the_jnode->st_nlink < 1) ) {
40014148:	90 10 00 10 	mov  %l0, %o0                                  
4001414c:	7f ff f2 77 	call  40010b28 <rtems_libio_is_file_open>      
40014150:	c2 24 20 48 	st  %g1, [ %l0 + 0x48 ]                        
40014154:	80 a2 20 00 	cmp  %o0, 0                                    
40014158:	12 80 00 11 	bne  4001419c <imfs_dir_rmnod+0xec>            
4001415c:	01 00 00 00 	nop                                            
40014160:	c2 14 20 34 	lduh  [ %l0 + 0x34 ], %g1                      
40014164:	80 a0 60 00 	cmp  %g1, 0                                    
40014168:	12 80 00 0d 	bne  4001419c <imfs_dir_rmnod+0xec>            
4001416c:	03 10 00 8c 	sethi  %hi(0x40023000), %g1                    
                                                                      
    /*                                                                
     * Is the rtems_filesystem_current is this node?                  
     */                                                               
                                                                      
    if ( rtems_filesystem_current.node_access == pathloc->node_access )
40014170:	c2 00 62 d0 	ld  [ %g1 + 0x2d0 ], %g1	! 400232d0 <rtems_current_user_env>
40014174:	c4 06 40 00 	ld  [ %i1 ], %g2                               
40014178:	c6 00 60 04 	ld  [ %g1 + 4 ], %g3                           
4001417c:	80 a0 c0 02 	cmp  %g3, %g2                                  
40014180:	22 80 00 02 	be,a   40014188 <imfs_dir_rmnod+0xd8>          <== NEVER TAKEN
40014184:	c0 20 60 04 	clr  [ %g1 + 4 ]                               <== NOT EXECUTED
                                                                      
    /*                                                                
     * Free memory associated with a memory file.                     
     */                                                               
                                                                      
    free( the_jnode );                                                
40014188:	90 10 00 10 	mov  %l0, %o0                                  
4001418c:	7f ff c1 d0 	call  400048cc <free>                          
40014190:	b0 10 20 00 	clr  %i0                                       
40014194:	81 c7 e0 08 	ret                                            
40014198:	81 e8 00 00 	restore                                        
  }                                                                   
                                                                      
  return 0;                                                           
                                                                      
}                                                                     
4001419c:	81 c7 e0 08 	ret                                            
400141a0:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

40003e04 <init_etc_passwd_group>: /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) {
40003e04:	9d e3 bf a0 	save  %sp, -96, %sp                            
  FILE *fp;                                                           
  static char etc_passwd_initted = 0;                                 
                                                                      
  if (etc_passwd_initted)                                             
40003e08:	03 10 00 83 	sethi  %hi(0x40020c00), %g1                    
40003e0c:	c4 48 61 70 	ldsb  [ %g1 + 0x170 ], %g2	! 40020d70 <etc_passwd_initted.6393>
40003e10:	80 a0 a0 00 	cmp  %g2, 0                                    
40003e14:	12 80 00 30 	bne  40003ed4 <init_etc_passwd_group+0xd0>     
40003e18:	84 10 20 01 	mov  1, %g2                                    
    return;                                                           
  etc_passwd_initted = 1;                                             
  mkdir("/etc", 0777);                                                
40003e1c:	92 10 21 ff 	mov  0x1ff, %o1                                
  FILE *fp;                                                           
  static char etc_passwd_initted = 0;                                 
                                                                      
  if (etc_passwd_initted)                                             
    return;                                                           
  etc_passwd_initted = 1;                                             
40003e20:	c4 28 61 70 	stb  %g2, [ %g1 + 0x170 ]                      
  mkdir("/etc", 0777);                                                
40003e24:	11 10 00 7d 	sethi  %hi(0x4001f400), %o0                    
40003e28:	40 00 02 1e 	call  400046a0 <mkdir>                         
40003e2c:	90 12 20 08 	or  %o0, 8, %o0	! 4001f408 <IMFS_ops+0xd8>     
                                                                      
  /*                                                                  
   *  Initialize /etc/passwd                                          
   */                                                                 
  if ((fp = fopen("/etc/passwd", "r")) != NULL) {                     
40003e30:	21 10 00 7d 	sethi  %hi(0x4001f400), %l0                    
40003e34:	13 10 00 7d 	sethi  %hi(0x4001f400), %o1                    
40003e38:	90 14 20 10 	or  %l0, 0x10, %o0                             
40003e3c:	40 00 38 6a 	call  40011fe4 <fopen>                         
40003e40:	92 12 60 20 	or  %o1, 0x20, %o1                             
40003e44:	80 a2 20 00 	cmp  %o0, 0                                    
40003e48:	12 80 00 0d 	bne  40003e7c <init_etc_passwd_group+0x78>     <== NEVER TAKEN
40003e4c:	01 00 00 00 	nop                                            
    fclose(fp);                                                       
  }                                                                   
  else if ((fp = fopen("/etc/passwd", "w")) != NULL) {                
40003e50:	90 14 20 10 	or  %l0, 0x10, %o0                             
40003e54:	13 10 00 7d 	sethi  %hi(0x4001f400), %o1                    
40003e58:	40 00 38 63 	call  40011fe4 <fopen>                         
40003e5c:	92 12 60 28 	or  %o1, 0x28, %o1	! 4001f428 <IMFS_ops+0xf8>  
40003e60:	b0 92 20 00 	orcc  %o0, 0, %i0                              
40003e64:	02 80 00 08 	be  40003e84 <init_etc_passwd_group+0x80>      <== NEVER TAKEN
40003e68:	11 10 00 7d 	sethi  %hi(0x4001f400), %o0                    
    fprintf(fp, "root:*:0:0:root::/:/bin/sh\n"                        
40003e6c:	92 10 00 18 	mov  %i0, %o1                                  
40003e70:	40 00 38 89 	call  40012094 <fputs>                         
40003e74:	90 12 20 30 	or  %o0, 0x30, %o0                             
                 "rtems:*:1:1:RTEMS Application::/:/bin/sh\n"         
                 "tty:!:2:2:tty owner::/:/bin/false\n" );             
    fclose(fp);                                                       
40003e78:	90 10 00 18 	mov  %i0, %o0                                  
40003e7c:	40 00 36 84 	call  4001188c <fclose>                        
40003e80:	01 00 00 00 	nop                                            
  }                                                                   
                                                                      
  /*                                                                  
   *  Initialize /etc/group                                           
   */                                                                 
  if ((fp = fopen("/etc/group", "r")) != NULL) {                      
40003e84:	21 10 00 7d 	sethi  %hi(0x4001f400), %l0                    
40003e88:	13 10 00 7d 	sethi  %hi(0x4001f400), %o1                    
40003e8c:	90 14 20 98 	or  %l0, 0x98, %o0                             
40003e90:	40 00 38 55 	call  40011fe4 <fopen>                         
40003e94:	92 12 60 20 	or  %o1, 0x20, %o1                             
40003e98:	80 a2 20 00 	cmp  %o0, 0                                    
40003e9c:	12 80 00 0c 	bne  40003ecc <init_etc_passwd_group+0xc8>     <== NEVER TAKEN
40003ea0:	b0 10 00 08 	mov  %o0, %i0                                  
    fclose(fp);                                                       
  }                                                                   
  else if ((fp = fopen("/etc/group", "w")) != NULL) {                 
40003ea4:	90 14 20 98 	or  %l0, 0x98, %o0                             
40003ea8:	13 10 00 7d 	sethi  %hi(0x4001f400), %o1                    
40003eac:	40 00 38 4e 	call  40011fe4 <fopen>                         
40003eb0:	92 12 60 28 	or  %o1, 0x28, %o1	! 4001f428 <IMFS_ops+0xf8>  
40003eb4:	b0 92 20 00 	orcc  %o0, 0, %i0                              
40003eb8:	02 80 00 07 	be  40003ed4 <init_etc_passwd_group+0xd0>      <== NEVER TAKEN
40003ebc:	11 10 00 7d 	sethi  %hi(0x4001f400), %o0                    
    fprintf( fp, "root:x:0:root\n"                                    
40003ec0:	92 10 00 18 	mov  %i0, %o1                                  
40003ec4:	40 00 38 74 	call  40012094 <fputs>                         
40003ec8:	90 12 20 a8 	or  %o0, 0xa8, %o0                             
                 "rtems:x:1:rtems\n"                                  
                 "tty:x:2:tty\n" );                                   
    fclose(fp);                                                       
40003ecc:	40 00 36 70 	call  4001188c <fclose>                        
40003ed0:	81 e8 00 00 	restore                                        
40003ed4:	81 c7 e0 08 	ret                                            
40003ed8:	81 e8 00 00 	restore                                        
                                                                      

400070b0 <ioctl>: int ioctl( int fd, ioctl_command_t command, ... ) {
400070b0:	9d e3 bf 98 	save  %sp, -104, %sp                           
  va_list            ap;                                              
  rtems_status_code  rc;                                              
  rtems_libio_t     *iop;                                             
  void              *buffer;                                          
                                                                      
  rtems_libio_check_fd( fd );                                         
400070b4:	03 10 00 8d 	sethi  %hi(0x40023400), %g1                    
400070b8:	c2 00 62 14 	ld  [ %g1 + 0x214 ], %g1	! 40023614 <rtems_libio_number_iops>
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open(iop);                                     
                                                                      
  va_start(ap, command);                                              
400070bc:	f6 27 a0 50 	st  %i3, [ %fp + 0x50 ]                        
400070c0:	f8 27 a0 54 	st  %i4, [ %fp + 0x54 ]                        
400070c4:	fa 27 a0 58 	st  %i5, [ %fp + 0x58 ]                        
400070c8:	f4 27 a0 4c 	st  %i2, [ %fp + 0x4c ]                        
  va_list            ap;                                              
  rtems_status_code  rc;                                              
  rtems_libio_t     *iop;                                             
  void              *buffer;                                          
                                                                      
  rtems_libio_check_fd( fd );                                         
400070cc:	80 a6 00 01 	cmp  %i0, %g1                                  
400070d0:	1a 80 00 11 	bcc  40007114 <ioctl+0x64>                     
400070d4:	92 10 00 19 	mov  %i1, %o1                                  
  iop = rtems_libio_iop( fd );                                        
400070d8:	03 10 00 90 	sethi  %hi(0x40024000), %g1                    
400070dc:	d0 00 60 8c 	ld  [ %g1 + 0x8c ], %o0	! 4002408c <rtems_libio_iops>
400070e0:	83 2e 20 06 	sll  %i0, 6, %g1                               
400070e4:	b1 2e 20 03 	sll  %i0, 3, %i0                               
400070e8:	b0 06 00 01 	add  %i0, %g1, %i0                             
400070ec:	90 02 00 18 	add  %o0, %i0, %o0                             
  rtems_libio_check_is_open(iop);                                     
400070f0:	c2 02 20 18 	ld  [ %o0 + 0x18 ], %g1                        
400070f4:	80 88 61 00 	btst  0x100, %g1                               
400070f8:	02 80 00 07 	be  40007114 <ioctl+0x64>                      <== NEVER TAKEN
400070fc:	84 07 a0 50 	add  %fp, 0x50, %g2                            
                                                                      
  /*                                                                  
   *  Now process the ioctl().                                        
   */                                                                 
                                                                      
  if ( !iop->handlers )                                               
40007100:	c2 02 20 40 	ld  [ %o0 + 0x40 ], %g1                        
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open(iop);                                     
                                                                      
  va_start(ap, command);                                              
                                                                      
  buffer = va_arg(ap, void *);                                        
40007104:	c4 27 bf fc 	st  %g2, [ %fp + -4 ]                          
                                                                      
  /*                                                                  
   *  Now process the ioctl().                                        
   */                                                                 
                                                                      
  if ( !iop->handlers )                                               
40007108:	80 a0 60 00 	cmp  %g1, 0                                    
4000710c:	12 80 00 06 	bne  40007124 <ioctl+0x74>                     <== ALWAYS TAKEN
40007110:	94 10 00 1a 	mov  %i2, %o2                                  
    rtems_set_errno_and_return_minus_one( EBADF );                    
40007114:	40 00 38 fe 	call  4001550c <__errno>                       
40007118:	01 00 00 00 	nop                                            
4000711c:	10 80 00 09 	b  40007140 <ioctl+0x90>                       
40007120:	82 10 20 09 	mov  9, %g1	! 9 <PROM_START+0x9>               
                                                                      
  if ( !iop->handlers->ioctl_h )                                      
40007124:	c2 00 60 10 	ld  [ %g1 + 0x10 ], %g1                        
40007128:	80 a0 60 00 	cmp  %g1, 0                                    
4000712c:	12 80 00 08 	bne  4000714c <ioctl+0x9c>                     <== ALWAYS TAKEN
40007130:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
40007134:	40 00 38 f6 	call  4001550c <__errno>                       <== NOT EXECUTED
40007138:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000713c:	82 10 20 86 	mov  0x86, %g1	! 86 <PROM_START+0x86>          <== NOT EXECUTED
40007140:	c2 22 00 00 	st  %g1, [ %o0 ]                               
40007144:	10 80 00 04 	b  40007154 <ioctl+0xa4>                       
40007148:	90 10 3f ff 	mov  -1, %o0                                   
                                                                      
  rc = (*iop->handlers->ioctl_h)( iop, command, buffer );             
4000714c:	9f c0 40 00 	call  %g1                                      
40007150:	01 00 00 00 	nop                                            
                                                                      
  return rc;                                                          
}                                                                     
40007154:	81 c7 e0 08 	ret                                            
40007158:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      

4000484c <iproc>: /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) {
4000484c:	9d e3 bf a0 	save  %sp, -96, %sp                            <== NOT EXECUTED
	if (tty->termios.c_iflag & ISTRIP)                                   
40004850:	c2 06 60 30 	ld  [ %i1 + 0x30 ], %g1                        <== NOT EXECUTED
40004854:	80 88 60 20 	btst  0x20, %g1                                <== NOT EXECUTED
40004858:	02 80 00 03 	be  40004864 <iproc+0x18>                      <== NOT EXECUTED
4000485c:	a0 10 00 18 	mov  %i0, %l0                                  <== NOT EXECUTED
		c &= 0x7f;                                                          
40004860:	a0 0e 20 7f 	and  %i0, 0x7f, %l0                            <== NOT EXECUTED
	if (tty->termios.c_iflag & IUCLC)                                    
40004864:	80 88 62 00 	btst  0x200, %g1                               <== NOT EXECUTED
40004868:	02 80 00 0c 	be  40004898 <iproc+0x4c>                      <== NOT EXECUTED
4000486c:	84 0c 20 ff 	and  %l0, 0xff, %g2                            <== NOT EXECUTED
		c = tolower (c);                                                    
40004870:	05 10 00 73 	sethi  %hi(0x4001cc00), %g2                    <== NOT EXECUTED
40004874:	c4 00 a3 b8 	ld  [ %g2 + 0x3b8 ], %g2	! 4001cfb8 <__ctype_ptr__><== NOT EXECUTED
40004878:	a0 0c 20 ff 	and  %l0, 0xff, %l0                            <== NOT EXECUTED
4000487c:	84 00 80 10 	add  %g2, %l0, %g2                             <== NOT EXECUTED
40004880:	c4 08 a0 01 	ldub  [ %g2 + 1 ], %g2                         <== NOT EXECUTED
40004884:	84 08 a0 03 	and  %g2, 3, %g2                               <== NOT EXECUTED
40004888:	80 a0 a0 01 	cmp  %g2, 1                                    <== NOT EXECUTED
4000488c:	22 80 00 02 	be,a   40004894 <iproc+0x48>                   <== NOT EXECUTED
40004890:	a0 04 20 20 	add  %l0, 0x20, %l0                            <== NOT EXECUTED
	if (c == '\r') {                                                     
40004894:	84 0c 20 ff 	and  %l0, 0xff, %g2                            <== NOT EXECUTED
40004898:	80 a0 a0 0d 	cmp  %g2, 0xd                                  <== NOT EXECUTED
4000489c:	12 80 00 09 	bne  400048c0 <iproc+0x74>                     <== NOT EXECUTED
400048a0:	80 a0 a0 0a 	cmp  %g2, 0xa                                  <== NOT EXECUTED
		if (tty->termios.c_iflag & IGNCR)                                   
400048a4:	80 88 60 80 	btst  0x80, %g1                                <== NOT EXECUTED
400048a8:	12 80 00 5d 	bne  40004a1c <iproc+0x1d0>                    <== NOT EXECUTED
400048ac:	80 88 61 00 	btst  0x100, %g1                               <== NOT EXECUTED
			return 0;                                                          
		if (tty->termios.c_iflag & ICRNL)                                   
400048b0:	32 80 00 0d 	bne,a   400048e4 <iproc+0x98>                  <== NOT EXECUTED
400048b4:	a0 10 20 0a 	mov  0xa, %l0                                  <== NOT EXECUTED
			c = '\n';                                                          
	}                                                                    
	else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {            
		c = '\r';                                                           
	}                                                                    
	if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {                
400048b8:	10 80 00 0c 	b  400048e8 <iproc+0x9c>                       <== NOT EXECUTED
400048bc:	c4 06 60 3c 	ld  [ %i1 + 0x3c ], %g2                        <== NOT EXECUTED
		if (tty->termios.c_iflag & IGNCR)                                   
			return 0;                                                          
		if (tty->termios.c_iflag & ICRNL)                                   
			c = '\n';                                                          
	}                                                                    
	else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {            
400048c0:	12 80 00 07 	bne  400048dc <iproc+0x90>                     <== NOT EXECUTED
400048c4:	80 a0 a0 00 	cmp  %g2, 0                                    <== NOT EXECUTED
400048c8:	80 88 60 40 	btst  0x40, %g1                                <== NOT EXECUTED
400048cc:	32 80 00 06 	bne,a   400048e4 <iproc+0x98>                  <== NOT EXECUTED
400048d0:	a0 10 20 0d 	mov  0xd, %l0                                  <== NOT EXECUTED
		c = '\r';                                                           
	}                                                                    
	if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {                
400048d4:	10 80 00 05 	b  400048e8 <iproc+0x9c>                       <== NOT EXECUTED
400048d8:	c4 06 60 3c 	ld  [ %i1 + 0x3c ], %g2                        <== NOT EXECUTED
400048dc:	02 80 00 3c 	be  400049cc <iproc+0x180>                     <== NOT EXECUTED
400048e0:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    <== NOT EXECUTED
400048e4:	c4 06 60 3c 	ld  [ %i1 + 0x3c ], %g2                        <== NOT EXECUTED
400048e8:	80 88 a0 02 	btst  2, %g2                                   <== NOT EXECUTED
400048ec:	02 80 00 38 	be  400049cc <iproc+0x180>                     <== NOT EXECUTED
400048f0:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    <== NOT EXECUTED
		if (c == tty->termios.c_cc[VERASE]) {                               
400048f4:	c6 0e 60 43 	ldub  [ %i1 + 0x43 ], %g3                      <== NOT EXECUTED
400048f8:	82 0c 20 ff 	and  %l0, 0xff, %g1                            <== NOT EXECUTED
			erase (tty, 0);                                                    
400048fc:	90 10 00 19 	mov  %i1, %o0                                  <== NOT EXECUTED
	}                                                                    
	else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {            
		c = '\r';                                                           
	}                                                                    
	if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {                
		if (c == tty->termios.c_cc[VERASE]) {                               
40004900:	80 a0 40 03 	cmp  %g1, %g3                                  <== NOT EXECUTED
40004904:	02 80 00 08 	be  40004924 <iproc+0xd8>                      <== NOT EXECUTED
40004908:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
			erase (tty, 0);                                                    
			return 0;                                                          
		}                                                                   
		else if (c == tty->termios.c_cc[VKILL]) {                           
4000490c:	c6 0e 60 44 	ldub  [ %i1 + 0x44 ], %g3                      <== NOT EXECUTED
40004910:	80 a0 40 03 	cmp  %g1, %g3                                  <== NOT EXECUTED
40004914:	32 80 00 07 	bne,a   40004930 <iproc+0xe4>                  <== NOT EXECUTED
40004918:	c6 0e 60 45 	ldub  [ %i1 + 0x45 ], %g3                      <== NOT EXECUTED
			erase (tty, 1);                                                    
4000491c:	90 10 00 19 	mov  %i1, %o0                                  <== NOT EXECUTED
40004920:	92 10 20 01 	mov  1, %o1                                    <== NOT EXECUTED
40004924:	7f ff ff 3f 	call  40004620 <erase>                         <== NOT EXECUTED
40004928:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
4000492c:	30 80 00 3d 	b,a   40004a20 <iproc+0x1d4>                   <== NOT EXECUTED
			return 0;                                                          
		}                                                                   
		else if (c == tty->termios.c_cc[VEOF]) {                            
40004930:	80 a0 40 03 	cmp  %g1, %g3                                  <== NOT EXECUTED
40004934:	02 80 00 3b 	be  40004a20 <iproc+0x1d4>                     <== NOT EXECUTED
40004938:	b0 10 20 01 	mov  1, %i0                                    <== NOT EXECUTED
			return 1;                                                          
		}                                                                   
		else if (c == '\n') {                                               
4000493c:	80 a0 60 0a 	cmp  %g1, 0xa                                  <== NOT EXECUTED
40004940:	32 80 00 0f 	bne,a   4000497c <iproc+0x130>                 <== NOT EXECUTED
40004944:	c6 0e 60 4c 	ldub  [ %i1 + 0x4c ], %g3                      <== NOT EXECUTED
			if (tty->termios.c_lflag & (ECHO | ECHONL))                        
40004948:	80 88 a0 48 	btst  0x48, %g2                                <== NOT EXECUTED
4000494c:	22 80 00 06 	be,a   40004964 <iproc+0x118>                  <== NOT EXECUTED
40004950:	c2 06 60 20 	ld  [ %i1 + 0x20 ], %g1                        <== NOT EXECUTED
				echo (c, tty);                                                    
40004954:	90 10 20 0a 	mov  0xa, %o0                                  <== NOT EXECUTED
40004958:	7f ff ff 0e 	call  40004590 <echo>                          <== NOT EXECUTED
4000495c:	92 10 00 19 	mov  %i1, %o1                                  <== NOT EXECUTED
			tty->cbuf[tty->ccount++] = c;                                      
40004960:	c2 06 60 20 	ld  [ %i1 + 0x20 ], %g1                        <== NOT EXECUTED
40004964:	c4 06 60 1c 	ld  [ %i1 + 0x1c ], %g2                        <== NOT EXECUTED
40004968:	86 10 20 0a 	mov  0xa, %g3                                  <== NOT EXECUTED
4000496c:	c6 28 80 01 	stb  %g3, [ %g2 + %g1 ]                        <== NOT EXECUTED
40004970:	82 00 60 01 	inc  %g1                                       <== NOT EXECUTED
40004974:	10 80 00 14 	b  400049c4 <iproc+0x178>                      <== NOT EXECUTED
40004978:	c2 26 60 20 	st  %g1, [ %i1 + 0x20 ]                        <== NOT EXECUTED
			return 1;                                                          
		}                                                                   
		else if ((c == tty->termios.c_cc[VEOL])                             
4000497c:	80 a0 40 03 	cmp  %g1, %g3                                  <== NOT EXECUTED
40004980:	02 80 00 07 	be  4000499c <iproc+0x150>                     <== NOT EXECUTED
40004984:	80 88 a0 08 	btst  8, %g2                                   <== NOT EXECUTED
		      || (c == tty->termios.c_cc[VEOL2])) {                         
40004988:	c6 0e 60 51 	ldub  [ %i1 + 0x51 ], %g3                      <== NOT EXECUTED
4000498c:	80 a0 40 03 	cmp  %g1, %g3                                  <== NOT EXECUTED
40004990:	12 80 00 0f 	bne  400049cc <iproc+0x180>                    <== NOT EXECUTED
40004994:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    <== NOT EXECUTED
			if (tty->termios.c_lflag & ECHO)                                   
40004998:	80 88 a0 08 	btst  8, %g2                                   <== NOT EXECUTED
4000499c:	22 80 00 06 	be,a   400049b4 <iproc+0x168>                  <== NOT EXECUTED
400049a0:	c2 06 60 20 	ld  [ %i1 + 0x20 ], %g1                        <== NOT EXECUTED
				echo (c, tty);                                                    
400049a4:	90 0c 20 ff 	and  %l0, 0xff, %o0                            <== NOT EXECUTED
400049a8:	7f ff fe fa 	call  40004590 <echo>                          <== NOT EXECUTED
400049ac:	92 10 00 19 	mov  %i1, %o1                                  <== NOT EXECUTED
			tty->cbuf[tty->ccount++] = c;                                      
400049b0:	c2 06 60 20 	ld  [ %i1 + 0x20 ], %g1                        <== NOT EXECUTED
400049b4:	c6 06 60 1c 	ld  [ %i1 + 0x1c ], %g3                        <== NOT EXECUTED
400049b8:	84 00 60 01 	add  %g1, 1, %g2                               <== NOT EXECUTED
400049bc:	e0 28 c0 01 	stb  %l0, [ %g3 + %g1 ]                        <== NOT EXECUTED
400049c0:	c4 26 60 20 	st  %g2, [ %i1 + 0x20 ]                        <== NOT EXECUTED
			return 1;                                                          
400049c4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
400049c8:	91 e8 20 01 	restore  %g0, 1, %o0                           <== NOT EXECUTED
	}                                                                    
                                                                      
	/*                                                                   
	 * FIXME: Should do IMAXBEL handling somehow                         
	 */                                                                  
	if (tty->ccount < (CBUFSIZE-1)) {                                    
400049cc:	c4 06 60 20 	ld  [ %i1 + 0x20 ], %g2                        <== NOT EXECUTED
400049d0:	c2 00 63 08 	ld  [ %g1 + 0x308 ], %g1                       <== NOT EXECUTED
400049d4:	82 00 7f ff 	add  %g1, -1, %g1                              <== NOT EXECUTED
400049d8:	80 a0 80 01 	cmp  %g2, %g1                                  <== NOT EXECUTED
400049dc:	16 80 00 11 	bge  40004a20 <iproc+0x1d4>                    <== NOT EXECUTED
400049e0:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
		if (tty->termios.c_lflag & ECHO)                                    
400049e4:	c2 06 60 3c 	ld  [ %i1 + 0x3c ], %g1                        <== NOT EXECUTED
400049e8:	80 88 60 08 	btst  8, %g1                                   <== NOT EXECUTED
400049ec:	22 80 00 06 	be,a   40004a04 <iproc+0x1b8>                  <== NOT EXECUTED
400049f0:	c2 06 60 20 	ld  [ %i1 + 0x20 ], %g1                        <== NOT EXECUTED
			echo (c, tty);                                                     
400049f4:	90 0c 20 ff 	and  %l0, 0xff, %o0                            <== NOT EXECUTED
400049f8:	7f ff fe e6 	call  40004590 <echo>                          <== NOT EXECUTED
400049fc:	92 10 00 19 	mov  %i1, %o1                                  <== NOT EXECUTED
		tty->cbuf[tty->ccount++] = c;                                       
40004a00:	c2 06 60 20 	ld  [ %i1 + 0x20 ], %g1                        <== NOT EXECUTED
40004a04:	c6 06 60 1c 	ld  [ %i1 + 0x1c ], %g3                        <== NOT EXECUTED
40004a08:	84 00 60 01 	add  %g1, 1, %g2                               <== NOT EXECUTED
40004a0c:	e0 28 c0 01 	stb  %l0, [ %g3 + %g1 ]                        <== NOT EXECUTED
40004a10:	c4 26 60 20 	st  %g2, [ %i1 + 0x20 ]                        <== NOT EXECUTED
40004a14:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40004a18:	91 e8 20 00 	restore  %g0, 0, %o0                           <== NOT EXECUTED
40004a1c:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
	}                                                                    
	return 0;                                                            
}                                                                     
40004a20:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40004a24:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

4000ee68 <killinfo>: int killinfo( pid_t pid, int sig, const union sigval *value ) {
4000ee68:	9d e3 bf 90 	save  %sp, -112, %sp                           
  POSIX_signals_Siginfo_node  *psiginfo;                              
                                                                      
  /*                                                                  
   *  Only supported for the "calling process" (i.e. this node).      
   */                                                                 
  if ( pid != getpid() )                                              
4000ee6c:	7f ff fc 04 	call  4000de7c <getpid>                        
4000ee70:	01 00 00 00 	nop                                            
4000ee74:	80 a6 00 08 	cmp  %i0, %o0                                  
4000ee78:	02 80 00 06 	be  4000ee90 <killinfo+0x28>                   
4000ee7c:	80 a6 60 00 	cmp  %i1, 0                                    
    rtems_set_errno_and_return_minus_one( ESRCH );                    
4000ee80:	40 00 01 97 	call  4000f4dc <__errno>                       
4000ee84:	01 00 00 00 	nop                                            
4000ee88:	10 80 00 07 	b  4000eea4 <killinfo+0x3c>                    
4000ee8c:	82 10 20 03 	mov  3, %g1	! 3 <PROM_START+0x3>               
                                                                      
  /*                                                                  
   *  Validate the signal passed.                                     
   */                                                                 
  if ( !sig )                                                         
4000ee90:	12 80 00 08 	bne  4000eeb0 <killinfo+0x48>                  
4000ee94:	82 06 7f ff 	add  %i1, -1, %g1                              
    rtems_set_errno_and_return_minus_one( EINVAL );                   
4000ee98:	40 00 01 91 	call  4000f4dc <__errno>                       
4000ee9c:	01 00 00 00 	nop                                            
4000eea0:	82 10 20 16 	mov  0x16, %g1	! 16 <PROM_START+0x16>          
4000eea4:	c2 22 00 00 	st  %g1, [ %o0 ]                               
4000eea8:	10 80 00 a5 	b  4000f13c <killinfo+0x2d4>                   
4000eeac:	90 10 3f ff 	mov  -1, %o0                                   
                                                                      
  if ( !is_valid_signo(sig) )                                         
4000eeb0:	80 a0 60 1f 	cmp  %g1, 0x1f                                 
4000eeb4:	18 bf ff f9 	bgu  4000ee98 <killinfo+0x30>                  
4000eeb8:	85 2e 60 02 	sll  %i1, 2, %g2                               
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  /*                                                                  
   *  If the signal is being ignored, then we are out of here.        
   */                                                                 
  if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN )          
4000eebc:	87 2e 60 04 	sll  %i1, 4, %g3                               
4000eec0:	86 20 c0 02 	sub  %g3, %g2, %g3                             
4000eec4:	05 10 00 77 	sethi  %hi(0x4001dc00), %g2                    
4000eec8:	84 10 a3 04 	or  %g2, 0x304, %g2	! 4001df04 <_POSIX_signals_Vectors>
4000eecc:	84 00 80 03 	add  %g2, %g3, %g2                             
4000eed0:	c4 00 a0 08 	ld  [ %g2 + 8 ], %g2                           
4000eed4:	80 a0 a0 01 	cmp  %g2, 1                                    
4000eed8:	02 80 00 99 	be  4000f13c <killinfo+0x2d4>                  
4000eedc:	90 10 20 00 	clr  %o0                                       
  /*                                                                  
   *  P1003.1c/Draft 10, p. 33 says that certain signals should always
   *  be directed to the executing thread such as those caused by hardware
   *  faults.                                                         
   */                                                                 
  if ( (sig == SIGFPE) || (sig == SIGILL) || (sig == SIGSEGV ) )      
4000eee0:	80 a6 60 04 	cmp  %i1, 4                                    
4000eee4:	02 80 00 06 	be  4000eefc <killinfo+0x94>                   
4000eee8:	80 a6 60 08 	cmp  %i1, 8                                    
4000eeec:	02 80 00 04 	be  4000eefc <killinfo+0x94>                   
4000eef0:	80 a6 60 0b 	cmp  %i1, 0xb                                  
4000eef4:	12 80 00 08 	bne  4000ef14 <killinfo+0xac>                  
4000eef8:	a0 10 20 01 	mov  1, %l0                                    
      return pthread_kill( pthread_self(), sig );                     
4000eefc:	40 00 01 4f 	call  4000f438 <pthread_self>                  
4000ef00:	01 00 00 00 	nop                                            
4000ef04:	40 00 01 11 	call  4000f348 <pthread_kill>                  
4000ef08:	92 10 00 19 	mov  %i1, %o1                                  
4000ef0c:	81 c7 e0 08 	ret                                            
4000ef10:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      
  /*                                                                  
   *  Build up a siginfo structure                                    
   */                                                                 
  siginfo = &siginfo_struct;                                          
  siginfo->si_signo = sig;                                            
4000ef14:	f2 27 bf f4 	st  %i1, [ %fp + -12 ]                         
  siginfo->si_code = SI_USER;                                         
4000ef18:	e0 27 bf f8 	st  %l0, [ %fp + -8 ]                          
  if ( !value ) {                                                     
4000ef1c:	80 a6 a0 00 	cmp  %i2, 0                                    
4000ef20:	12 80 00 04 	bne  4000ef30 <killinfo+0xc8>                  
4000ef24:	a1 2c 00 01 	sll  %l0, %g1, %l0                             
    siginfo->si_value.sival_int = 0;                                  
4000ef28:	10 80 00 04 	b  4000ef38 <killinfo+0xd0>                    
4000ef2c:	c0 27 bf fc 	clr  [ %fp + -4 ]                              
  } else {                                                            
    siginfo->si_value = *value;                                       
4000ef30:	c2 06 80 00 	ld  [ %i2 ], %g1                               
4000ef34:	c2 27 bf fc 	st  %g1, [ %fp + -4 ]                          
4000ef38:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
4000ef3c:	c4 00 61 70 	ld  [ %g1 + 0x170 ], %g2	! 4001d970 <_Thread_Dispatch_disable_level>
4000ef40:	84 00 a0 01 	inc  %g2                                       
4000ef44:	c4 20 61 70 	st  %g2, [ %g1 + 0x170 ]                       
                                                                      
  /*                                                                  
   *  Is the currently executing thread interested?  If so then it will
   *  get it an execute it as soon as the dispatcher executes.        
   */                                                                 
  the_thread = _Thread_Executing;                                     
4000ef48:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
4000ef4c:	c2 00 62 2c 	ld  [ %g1 + 0x22c ], %g1	! 4001da2c <_Thread_Executing>
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
4000ef50:	c4 00 61 60 	ld  [ %g1 + 0x160 ], %g2                       
4000ef54:	c4 00 a0 cc 	ld  [ %g2 + 0xcc ], %g2                        
4000ef58:	80 ac 00 02 	andncc  %l0, %g2, %g0                          
4000ef5c:	12 80 00 4e 	bne  4000f094 <killinfo+0x22c>                 
4000ef60:	07 10 00 78 	sethi  %hi(0x4001e000), %g3                    
                                                                      
  /* XXX violation of visibility -- need to define thread queue support */
                                                                      
  the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo;                 
                                                                      
  for ( the_node = the_chain->first ;                                 
4000ef64:	03 10 00 78 	sethi  %hi(0x4001e000), %g1                    
4000ef68:	c4 00 60 90 	ld  [ %g1 + 0x90 ], %g2	! 4001e090 <_POSIX_signals_Wait_queue>
4000ef6c:	10 80 00 0b 	b  4000ef98 <killinfo+0x130>                   
4000ef70:	86 10 e0 94 	or  %g3, 0x94, %g3                             
        !_Chain_Is_tail( the_chain, the_node ) ;                      
        the_node = the_node->next ) {                                 
                                                                      
    the_thread = (Thread_Control *)the_node;                          
    api = the_thread->API_Extensions[ THREAD_API_POSIX ];             
4000ef74:	c8 00 a1 60 	ld  [ %g2 + 0x160 ], %g4                       
    #endif                                                            
                                                                      
    /*                                                                
     * Is this thread is actually blocked waiting for the signal?     
     */                                                               
    if (the_thread->Wait.option & mask)                               
4000ef78:	80 8c 00 01 	btst  %l0, %g1                                 
4000ef7c:	12 80 00 46 	bne  4000f094 <killinfo+0x22c>                 
4000ef80:	82 10 00 02 	mov  %g2, %g1                                  
                                                                      
    /*                                                                
     * Is this thread is blocked waiting for another signal but has   
     * not blocked this one?                                          
     */                                                               
    if (~api->signals_blocked & mask)                                 
4000ef84:	c8 01 20 cc 	ld  [ %g4 + 0xcc ], %g4                        
4000ef88:	80 ac 00 04 	andncc  %l0, %g4, %g0                          
4000ef8c:	32 80 00 43 	bne,a   4000f098 <killinfo+0x230>              
4000ef90:	84 10 20 01 	mov  1, %g2                                    
                                                                      
  the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo;                 
                                                                      
  for ( the_node = the_chain->first ;                                 
        !_Chain_Is_tail( the_chain, the_node ) ;                      
        the_node = the_node->next ) {                                 
4000ef94:	c4 00 80 00 	ld  [ %g2 ], %g2                               
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
4000ef98:	80 a0 80 03 	cmp  %g2, %g3                                  
4000ef9c:	32 bf ff f6 	bne,a   4000ef74 <killinfo+0x10c>              
4000efa0:	c2 00 a0 30 	ld  [ %g2 + 0x30 ], %g1                        
   *  NOTES:                                                          
   *                                                                  
   *    + rtems internal threads do not receive signals.              
   */                                                                 
  interested = NULL;                                                  
  interested_priority = PRIORITY_MAXIMUM + 1;                         
4000efa4:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
4000efa8:	c8 08 62 b4 	ldub  [ %g1 + 0x2b4 ], %g4	! 4001ceb4 <rtems_maximum_priority>
4000efac:	05 10 00 76 	sethi  %hi(0x4001d800), %g2                    
4000efb0:	88 01 20 01 	inc  %g4                                       
4000efb4:	84 10 a0 d8 	or  %g2, 0xd8, %g2                             
 */                                                                   
                                                                      
#define _POSIX_signals_Is_interested( _api, _mask ) \                 
  ( ~(_api)->signals_blocked & (_mask) )                              
                                                                      
int killinfo(                                                         
4000efb8:	82 10 20 00 	clr  %g1                                       
4000efbc:	90 00 a0 0c 	add  %g2, 0xc, %o0                             
          continue;                                                   
        }                                                             
                                                                      
        DEBUG_STEP("6");                                              
        /* prefer blocked/interruptible over blocked/not interruptible */
        if ( !_States_Is_interruptible_by_signal(interested->current_state) ) {
4000efc0:	17 04 00 00 	sethi  %hi(0x10000000), %o3                    
  for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) {
                                                                      
    /*                                                                
     *  This can occur when no one is interested and ITRON is not configured.
     */                                                               
    if ( !_Objects_Information_table[ the_api ] )                     
4000efc4:	c6 00 80 00 	ld  [ %g2 ], %g3                               
4000efc8:	80 a0 e0 00 	cmp  %g3, 0                                    
4000efcc:	22 80 00 2c 	be,a   4000f07c <killinfo+0x214>               
4000efd0:	84 00 a0 04 	add  %g2, 4, %g2                               
      continue;                                                       
                                                                      
    the_info = _Objects_Information_table[ the_api ][ 1 ];            
4000efd4:	c6 00 e0 04 	ld  [ %g3 + 4 ], %g3                           
      if ( !the_info )                                                
        continue;                                                     
    #endif                                                            
                                                                      
    maximum = the_info->maximum;                                      
    object_table = the_info->local_table;                             
4000efd8:	9a 10 20 01 	mov  1, %o5                                    
4000efdc:	f4 00 e0 1c 	ld  [ %g3 + 0x1c ], %i2                        
                                                                      
    for ( index = 1 ; index <= maximum ; index++ ) {                  
4000efe0:	10 80 00 23 	b  4000f06c <killinfo+0x204>                   
4000efe4:	de 10 e0 10 	lduh  [ %g3 + 0x10 ], %o7                      
      the_thread = (Thread_Control *) object_table[ index ];          
4000efe8:	c6 06 80 03 	ld  [ %i2 + %g3 ], %g3                         
                                                                      
      if ( !the_thread )                                              
4000efec:	80 a0 e0 00 	cmp  %g3, 0                                    
4000eff0:	02 80 00 1d 	be  4000f064 <killinfo+0x1fc>                  
4000eff4:	98 10 00 04 	mov  %g4, %o4                                  
                                                                      
      /*                                                              
       *  If this thread is of lower priority than the interested thread,
       *  go on to the next thread.                                   
       */                                                             
      if ( the_thread->current_priority > interested_priority )       
4000eff8:	d8 00 e0 14 	ld  [ %g3 + 0x14 ], %o4                        
4000effc:	80 a3 00 04 	cmp  %o4, %g4                                  
4000f000:	38 80 00 19 	bgu,a   4000f064 <killinfo+0x1fc>              
4000f004:	98 10 00 04 	mov  %g4, %o4                                  
      DEBUG_STEP("2");                                                
                                                                      
      /*                                                              
       *  If this thread is not interested, then go on to the next thread.
       */                                                             
      api = the_thread->API_Extensions[ THREAD_API_POSIX ];           
4000f008:	d4 00 e1 60 	ld  [ %g3 + 0x160 ], %o2                       
4000f00c:	d4 02 a0 cc 	ld  [ %o2 + 0xcc ], %o2                        
4000f010:	80 ac 00 0a 	andncc  %l0, %o2, %g0                          
4000f014:	22 80 00 14 	be,a   4000f064 <killinfo+0x1fc>               
4000f018:	98 10 00 04 	mov  %g4, %o4                                  
       *                                                              
       *  NOTE: We initialized interested_priority to PRIORITY_MAXIMUM + 1
       *        so we never have to worry about deferencing a NULL    
       *        interested thread.                                    
       */                                                             
      if ( the_thread->current_priority < interested_priority ) {     
4000f01c:	80 a3 00 04 	cmp  %o4, %g4                                  
4000f020:	2a 80 00 11 	bcs,a   4000f064 <killinfo+0x1fc>              
4000f024:	82 10 00 03 	mov  %g3, %g1                                  
       *  and blocking interruptibutable by signal.                   
       *                                                              
       *  If the interested thread is ready, don't think about changing.
       */                                                             
                                                                      
      if ( !_States_Is_ready( interested->current_state ) ) {         
4000f028:	d2 00 60 10 	ld  [ %g1 + 0x10 ], %o1                        
4000f02c:	80 a2 60 00 	cmp  %o1, 0                                    
4000f030:	22 80 00 0d 	be,a   4000f064 <killinfo+0x1fc>               <== NEVER TAKEN
4000f034:	98 10 00 04 	mov  %g4, %o4                                  <== NOT EXECUTED
        /* preferred ready over blocked */                            
        DEBUG_STEP("5");                                              
        if ( _States_Is_ready( the_thread->current_state ) ) {        
4000f038:	d4 00 e0 10 	ld  [ %g3 + 0x10 ], %o2                        
4000f03c:	80 a2 a0 00 	cmp  %o2, 0                                    
4000f040:	22 80 00 09 	be,a   4000f064 <killinfo+0x1fc>               
4000f044:	82 10 00 03 	mov  %g3, %g1                                  
          continue;                                                   
        }                                                             
                                                                      
        DEBUG_STEP("6");                                              
        /* prefer blocked/interruptible over blocked/not interruptible */
        if ( !_States_Is_interruptible_by_signal(interested->current_state) ) {
4000f048:	80 8a 40 0b 	btst  %o1, %o3                                 
4000f04c:	32 80 00 06 	bne,a   4000f064 <killinfo+0x1fc>              
4000f050:	98 10 00 04 	mov  %g4, %o4                                  
          DEBUG_STEP("7");                                            
          if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) {
4000f054:	80 8a 80 0b 	btst  %o2, %o3                                 
4000f058:	32 80 00 03 	bne,a   4000f064 <killinfo+0x1fc>              
4000f05c:	82 10 00 03 	mov  %g3, %g1                                  
4000f060:	98 10 00 04 	mov  %g4, %o4                                  
    #endif                                                            
                                                                      
    maximum = the_info->maximum;                                      
    object_table = the_info->local_table;                             
                                                                      
    for ( index = 1 ; index <= maximum ; index++ ) {                  
4000f064:	9a 03 60 01 	inc  %o5                                       
4000f068:	88 10 00 0c 	mov  %o4, %g4                                  
4000f06c:	80 a3 40 0f 	cmp  %o5, %o7                                  
4000f070:	28 bf ff de 	bleu,a   4000efe8 <killinfo+0x180>             
4000f074:	87 2b 60 02 	sll  %o5, 2, %g3                               
4000f078:	84 00 a0 04 	add  %g2, 4, %g2                               
   *    + rtems internal threads do not receive signals.              
   */                                                                 
  interested = NULL;                                                  
  interested_priority = PRIORITY_MAXIMUM + 1;                         
                                                                      
  for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) {
4000f07c:	80 a0 80 08 	cmp  %g2, %o0                                  
4000f080:	32 bf ff d2 	bne,a   4000efc8 <killinfo+0x160>              
4000f084:	c6 00 80 00 	ld  [ %g2 ], %g3                               
        }                                                             
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( interested ) {                                                 
4000f088:	80 a0 60 00 	cmp  %g1, 0                                    
4000f08c:	02 80 00 0b 	be  4000f0b8 <killinfo+0x250>                  
4000f090:	01 00 00 00 	nop                                            
   *  thread needs to do the post context switch extension so it can  
   *  evaluate the signals pending.                                   
   */                                                                 
process_it:                                                           
                                                                      
  the_thread->do_post_task_switch_extension = true;                   
4000f094:	84 10 20 01 	mov  1, %g2	! 1 <PROM_START+0x1>               
                                                                      
  /*                                                                  
   *  Returns true if the signal was synchronously given to a thread  
   *  blocked waiting for the signal.                                 
   */                                                                 
  if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) {  
4000f098:	90 10 00 01 	mov  %g1, %o0                                  
   *  thread needs to do the post context switch extension so it can  
   *  evaluate the signals pending.                                   
   */                                                                 
process_it:                                                           
                                                                      
  the_thread->do_post_task_switch_extension = true;                   
4000f09c:	c4 28 60 74 	stb  %g2, [ %g1 + 0x74 ]                       
                                                                      
  /*                                                                  
   *  Returns true if the signal was synchronously given to a thread  
   *  blocked waiting for the signal.                                 
   */                                                                 
  if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) {  
4000f0a0:	92 10 00 19 	mov  %i1, %o1                                  
4000f0a4:	40 00 00 5d 	call  4000f218 <_POSIX_signals_Unblock_thread> 
4000f0a8:	94 07 bf f4 	add  %fp, -12, %o2                             
4000f0ac:	80 8a 20 ff 	btst  0xff, %o0                                
4000f0b0:	12 80 00 20 	bne  4000f130 <killinfo+0x2c8>                 
4000f0b4:	01 00 00 00 	nop                                            
                                                                      
  /*                                                                  
   *  We may have woken up a thread but we definitely need to post the
   *  signal to the process wide information set.                     
   */                                                                 
  _POSIX_signals_Set_process_signals( mask );                         
4000f0b8:	40 00 00 47 	call  4000f1d4 <_POSIX_signals_Set_process_signals>
4000f0bc:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
  if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) {       
4000f0c0:	83 2e 60 04 	sll  %i1, 4, %g1                               
4000f0c4:	b3 2e 60 02 	sll  %i1, 2, %i1                               
4000f0c8:	b2 20 40 19 	sub  %g1, %i1, %i1                             
4000f0cc:	03 10 00 77 	sethi  %hi(0x4001dc00), %g1                    
4000f0d0:	82 10 63 04 	or  %g1, 0x304, %g1	! 4001df04 <_POSIX_signals_Vectors>
4000f0d4:	c2 00 40 19 	ld  [ %g1 + %i1 ], %g1                         
4000f0d8:	80 a0 60 02 	cmp  %g1, 2                                    
4000f0dc:	12 80 00 15 	bne  4000f130 <killinfo+0x2c8>                 
4000f0e0:	11 10 00 78 	sethi  %hi(0x4001e000), %o0                    
                                                                      
    psiginfo = (POSIX_signals_Siginfo_node *)                         
4000f0e4:	7f ff f4 d3 	call  4000c430 <_Chain_Get>                    
4000f0e8:	90 12 20 84 	or  %o0, 0x84, %o0	! 4001e084 <_POSIX_signals_Inactive_siginfo>
               _Chain_Get( &_POSIX_signals_Inactive_siginfo );        
    if ( !psiginfo ) {                                                
4000f0ec:	a0 92 20 00 	orcc  %o0, 0, %l0                              
4000f0f0:	12 80 00 08 	bne  4000f110 <killinfo+0x2a8>                 
4000f0f4:	92 07 bf f4 	add  %fp, -12, %o1                             
      _Thread_Enable_dispatch();                                      
4000f0f8:	7f ff e5 55 	call  4000864c <_Thread_Enable_dispatch>       
4000f0fc:	01 00 00 00 	nop                                            
      rtems_set_errno_and_return_minus_one( EAGAIN );                 
4000f100:	40 00 00 f7 	call  4000f4dc <__errno>                       
4000f104:	01 00 00 00 	nop                                            
4000f108:	10 bf ff 67 	b  4000eea4 <killinfo+0x3c>                    
4000f10c:	82 10 20 0b 	mov  0xb, %g1	! b <PROM_START+0xb>             
    }                                                                 
                                                                      
    psiginfo->Info = *siginfo;                                        
4000f110:	90 04 20 08 	add  %l0, 8, %o0                               
4000f114:	40 00 03 2e 	call  4000fdcc <memcpy>                        
4000f118:	94 10 20 0c 	mov  0xc, %o2                                  
                                                                      
    _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 
4000f11c:	11 10 00 78 	sethi  %hi(0x4001e000), %o0                    
4000f120:	92 10 00 10 	mov  %l0, %o1                                  
4000f124:	90 12 20 fc 	or  %o0, 0xfc, %o0                             
4000f128:	7f ff df 75 	call  40006efc <_Chain_Append>                 
4000f12c:	90 02 00 19 	add  %o0, %i1, %o0                             
  }                                                                   
                                                                      
  DEBUG_STEP("\n");                                                   
  _Thread_Enable_dispatch();                                          
4000f130:	7f ff e5 47 	call  4000864c <_Thread_Enable_dispatch>       
4000f134:	01 00 00 00 	nop                                            
4000f138:	90 10 20 00 	clr  %o0	! 0 <PROM_START>                      
  return 0;                                                           
}                                                                     
4000f13c:	b0 10 00 08 	mov  %o0, %i0                                  
4000f140:	81 c7 e0 08 	ret                                            
4000f144:	81 e8 00 00 	restore                                        
                                                                      

4001b054 <libc_wrapup>: extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) {
4001b054:	9d e3 bf a0 	save  %sp, -96, %sp                            
  /*                                                                  
   *  In case RTEMS is already down, don't do this.  It could be      
   *  dangerous.                                                      
   */                                                                 
                                                                      
  if (!_System_state_Is_up(_System_state_Get()))                      
4001b058:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
4001b05c:	c2 00 63 10 	ld  [ %g1 + 0x310 ], %g1	! 4001db10 <_System_state_Current>
4001b060:	80 a0 60 03 	cmp  %g1, 3                                    
4001b064:	12 80 00 16 	bne  4001b0bc <libc_wrapup+0x68>               <== NEVER TAKEN
4001b068:	03 10 00 72 	sethi  %hi(0x4001c800), %g1                    
  /*                                                                  
   *  This was already done if the user called exit() directly .      
  _wrapup_reent(0);                                                   
   */                                                                 
                                                                      
  if (_REENT != _global_impure_ptr) {                                 
4001b06c:	23 10 00 73 	sethi  %hi(0x4001cc00), %l1                    
4001b070:	e0 00 60 f8 	ld  [ %g1 + 0xf8 ], %l0                        
4001b074:	c2 04 63 c0 	ld  [ %l1 + 0x3c0 ], %g1                       
4001b078:	80 a0 40 10 	cmp  %g1, %l0                                  
4001b07c:	22 80 00 06 	be,a   4001b094 <libc_wrapup+0x40>             
4001b080:	21 10 00 73 	sethi  %hi(0x4001cc00), %l0                    
      _wrapup_reent(_global_impure_ptr);                              
4001b084:	40 00 01 83 	call  4001b690 <_wrapup_reent>                 
4001b088:	90 10 00 10 	mov  %l0, %o0                                  
      /*  Don't reclaim this one, just in case we do printfs          
       *  on the way out to ROM.                                      
       */                                                             
      _reclaim_reent(&libc_global_reent);                             
#endif                                                                
      _REENT = _global_impure_ptr;                                    
4001b08c:	e0 24 63 c0 	st  %l0, [ %l1 + 0x3c0 ]                       
   *                                                                  
   * Should this be changed to do *all* file streams?                 
   *    _fwalk (_REENT, fclose);                                      
   */                                                                 
                                                                      
  fclose (stdin);                                                     
4001b090:	21 10 00 73 	sethi  %hi(0x4001cc00), %l0                    
4001b094:	c2 04 23 c0 	ld  [ %l0 + 0x3c0 ], %g1	! 4001cfc0 <_impure_ptr>
4001b098:	7f ff d1 69 	call  4000f63c <fclose>                        
4001b09c:	d0 00 60 04 	ld  [ %g1 + 4 ], %o0                           
  fclose (stdout);                                                    
4001b0a0:	c2 04 23 c0 	ld  [ %l0 + 0x3c0 ], %g1                       
4001b0a4:	7f ff d1 66 	call  4000f63c <fclose>                        
4001b0a8:	d0 00 60 08 	ld  [ %g1 + 8 ], %o0                           
  fclose (stderr);                                                    
4001b0ac:	c2 04 23 c0 	ld  [ %l0 + 0x3c0 ], %g1                       
4001b0b0:	f0 00 60 0c 	ld  [ %g1 + 0xc ], %i0                         
4001b0b4:	7f ff d1 62 	call  4000f63c <fclose>                        
4001b0b8:	81 e8 00 00 	restore                                        
4001b0bc:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4001b0c0:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

40004c90 <link>: int link( const char *existing, const char *new ) {
40004c90:	9d e3 bf 70 	save  %sp, -144, %sp                           
                                                                      
  /*                                                                  
   * Get the node we are linking to.                                  
   */                                                                 
                                                                      
  result = rtems_filesystem_evaluate_path( existing, strlen( existing ),
40004c94:	40 00 3b 1b 	call  40013900 <strlen>                        
40004c98:	90 10 00 18 	mov  %i0, %o0                                  
40004c9c:	94 10 20 00 	clr  %o2                                       
40004ca0:	92 10 00 08 	mov  %o0, %o1                                  
40004ca4:	96 07 bf e8 	add  %fp, -24, %o3                             
40004ca8:	90 10 00 18 	mov  %i0, %o0                                  
40004cac:	98 10 20 01 	mov  1, %o4                                    
40004cb0:	7f ff fe a5 	call  40004744 <rtems_filesystem_evaluate_path>
40004cb4:	b0 10 3f ff 	mov  -1, %i0                                   
                                           0, &existing_loc, true );  
  if ( result != 0 )                                                  
40004cb8:	80 a2 20 00 	cmp  %o0, 0                                    
40004cbc:	12 80 00 8f 	bne  40004ef8 <link+0x268>                     
40004cc0:	01 00 00 00 	nop                                            
                                                                      
  /*                                                                  
   * Get the parent of the node we are creating.                      
   */                                                                 
                                                                      
  rtems_filesystem_get_start_loc( new, &i, &parent_loc );             
40004cc4:	c2 4e 40 00 	ldsb  [ %i1 ], %g1                             
40004cc8:	80 a0 60 5c 	cmp  %g1, 0x5c                                 
40004ccc:	22 80 00 08 	be,a   40004cec <link+0x5c>                    <== NEVER TAKEN
40004cd0:	03 10 00 8a 	sethi  %hi(0x40022800), %g1                    <== NOT EXECUTED
40004cd4:	80 a0 60 2f 	cmp  %g1, 0x2f                                 
40004cd8:	22 80 00 05 	be,a   40004cec <link+0x5c>                    
40004cdc:	03 10 00 8a 	sethi  %hi(0x40022800), %g1                    
40004ce0:	80 a0 60 00 	cmp  %g1, 0                                    
40004ce4:	12 80 00 09 	bne  40004d08 <link+0x78>                      <== ALWAYS TAKEN
40004ce8:	03 10 00 8a 	sethi  %hi(0x40022800), %g1                    
40004cec:	d2 00 60 84 	ld  [ %g1 + 0x84 ], %o1	! 40022884 <rtems_current_user_env>
40004cf0:	90 07 bf d4 	add  %fp, -44, %o0                             
40004cf4:	92 02 60 18 	add  %o1, 0x18, %o1                            
40004cf8:	40 00 37 df 	call  40012c74 <memcpy>                        
40004cfc:	94 10 20 14 	mov  0x14, %o2                                 
40004d00:	10 80 00 08 	b  40004d20 <link+0x90>                        
40004d04:	90 10 20 01 	mov  1, %o0                                    
40004d08:	d2 00 60 84 	ld  [ %g1 + 0x84 ], %o1                        
40004d0c:	90 07 bf d4 	add  %fp, -44, %o0                             
40004d10:	92 02 60 04 	add  %o1, 4, %o1                               
40004d14:	40 00 37 d8 	call  40012c74 <memcpy>                        
40004d18:	94 10 20 14 	mov  0x14, %o2                                 
40004d1c:	90 10 20 00 	clr  %o0                                       
                                                                      
  if ( !parent_loc.ops->evalformake_h ) {                             
40004d20:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         
40004d24:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
40004d28:	80 a0 60 00 	cmp  %g1, 0                                    
40004d2c:	32 80 00 0b 	bne,a   40004d58 <link+0xc8>                   <== ALWAYS TAKEN
40004d30:	90 06 40 08 	add  %i1, %o0, %o0                             
    rtems_filesystem_freenode( &existing_loc );                       
40004d34:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         <== NOT EXECUTED
40004d38:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40004d3c:	02 80 00 51 	be  40004e80 <link+0x1f0>                      <== NOT EXECUTED
40004d40:	01 00 00 00 	nop                                            <== NOT EXECUTED
40004d44:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        <== NOT EXECUTED
40004d48:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40004d4c:	12 80 00 4b 	bne  40004e78 <link+0x1e8>                     <== NOT EXECUTED
40004d50:	90 07 bf e8 	add  %fp, -24, %o0                             <== NOT EXECUTED
40004d54:	30 80 00 4b 	b,a   40004e80 <link+0x1f0>                    <== NOT EXECUTED
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
  }                                                                   
                                                                      
  result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start );
40004d58:	94 07 bf fc 	add  %fp, -4, %o2                              
40004d5c:	b2 07 bf d4 	add  %fp, -44, %i1                             
40004d60:	9f c0 40 00 	call  %g1                                      
40004d64:	92 10 00 19 	mov  %i1, %o1                                  
  if ( result != 0 ) {                                                
40004d68:	a0 92 20 00 	orcc  %o0, 0, %l0                              
40004d6c:	02 80 00 11 	be  40004db0 <link+0x120>                      
40004d70:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
    rtems_filesystem_freenode( &existing_loc );                       
40004d74:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
40004d78:	80 a0 60 00 	cmp  %g1, 0                                    
40004d7c:	02 80 00 08 	be  40004d9c <link+0x10c>                      <== NEVER TAKEN
40004d80:	01 00 00 00 	nop                                            
40004d84:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
40004d88:	80 a0 60 00 	cmp  %g1, 0                                    
40004d8c:	02 80 00 04 	be  40004d9c <link+0x10c>                      <== NEVER TAKEN
40004d90:	01 00 00 00 	nop                                            
40004d94:	9f c0 40 00 	call  %g1                                      
40004d98:	90 07 bf e8 	add  %fp, -24, %o0                             
    rtems_set_errno_and_return_minus_one( result );                   
40004d9c:	40 00 35 7a 	call  40012384 <__errno>                       
40004da0:	b0 10 3f ff 	mov  -1, %i0                                   
40004da4:	e0 22 00 00 	st  %l0, [ %o0 ]                               
40004da8:	81 c7 e0 08 	ret                                            
40004dac:	81 e8 00 00 	restore                                        
  /*                                                                  
   *  Check to see if the caller is trying to link across file system 
   *  boundaries.                                                     
   */                                                                 
                                                                      
  if ( parent_loc.mt_entry != existing_loc.mt_entry ) {               
40004db0:	c4 07 bf e4 	ld  [ %fp + -28 ], %g2                         
40004db4:	80 a0 80 01 	cmp  %g2, %g1                                  
40004db8:	02 80 00 1a 	be  40004e20 <link+0x190>                      
40004dbc:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         
    rtems_filesystem_freenode( &existing_loc );                       
40004dc0:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
40004dc4:	80 a0 60 00 	cmp  %g1, 0                                    
40004dc8:	22 80 00 09 	be,a   40004dec <link+0x15c>                   <== NEVER TAKEN
40004dcc:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         <== NOT EXECUTED
40004dd0:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
40004dd4:	80 a0 60 00 	cmp  %g1, 0                                    
40004dd8:	22 80 00 05 	be,a   40004dec <link+0x15c>                   <== NEVER TAKEN
40004ddc:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         <== NOT EXECUTED
40004de0:	9f c0 40 00 	call  %g1                                      
40004de4:	90 07 bf e8 	add  %fp, -24, %o0                             
    rtems_filesystem_freenode( &parent_loc );                         
40004de8:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         
40004dec:	80 a0 60 00 	cmp  %g1, 0                                    
40004df0:	02 80 00 08 	be  40004e10 <link+0x180>                      <== NEVER TAKEN
40004df4:	01 00 00 00 	nop                                            
40004df8:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
40004dfc:	80 a0 60 00 	cmp  %g1, 0                                    
40004e00:	02 80 00 04 	be  40004e10 <link+0x180>                      <== NEVER TAKEN
40004e04:	01 00 00 00 	nop                                            
40004e08:	9f c0 40 00 	call  %g1                                      
40004e0c:	90 07 bf d4 	add  %fp, -44, %o0                             
    rtems_set_errno_and_return_minus_one( EXDEV );                    
40004e10:	40 00 35 5d 	call  40012384 <__errno>                       
40004e14:	b0 10 3f ff 	mov  -1, %i0                                   
40004e18:	10 80 00 1d 	b  40004e8c <link+0x1fc>                       
40004e1c:	82 10 20 12 	mov  0x12, %g1                                 
  }                                                                   
                                                                      
  if ( !parent_loc.ops->link_h ) {                                    
40004e20:	c2 00 60 08 	ld  [ %g1 + 8 ], %g1                           
40004e24:	80 a0 60 00 	cmp  %g1, 0                                    
40004e28:	12 80 00 1c 	bne  40004e98 <link+0x208>                     <== ALWAYS TAKEN
40004e2c:	d4 07 bf fc 	ld  [ %fp + -4 ], %o2                          
    rtems_filesystem_freenode( &existing_loc );                       
40004e30:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         <== NOT EXECUTED
40004e34:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40004e38:	22 80 00 09 	be,a   40004e5c <link+0x1cc>                   <== NOT EXECUTED
40004e3c:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         <== NOT EXECUTED
40004e40:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        <== NOT EXECUTED
40004e44:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40004e48:	22 80 00 05 	be,a   40004e5c <link+0x1cc>                   <== NOT EXECUTED
40004e4c:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         <== NOT EXECUTED
40004e50:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40004e54:	90 07 bf e8 	add  %fp, -24, %o0                             <== NOT EXECUTED
    rtems_filesystem_freenode( &parent_loc );                         
40004e58:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         <== NOT EXECUTED
40004e5c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40004e60:	02 80 00 08 	be  40004e80 <link+0x1f0>                      <== NOT EXECUTED
40004e64:	01 00 00 00 	nop                                            <== NOT EXECUTED
40004e68:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        <== NOT EXECUTED
40004e6c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40004e70:	02 80 00 04 	be  40004e80 <link+0x1f0>                      <== NOT EXECUTED
40004e74:	90 07 bf d4 	add  %fp, -44, %o0                             <== NOT EXECUTED
40004e78:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40004e7c:	01 00 00 00 	nop                                            <== NOT EXECUTED
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
40004e80:	40 00 35 41 	call  40012384 <__errno>                       <== NOT EXECUTED
40004e84:	b0 10 3f ff 	mov  -1, %i0	! ffffffff <LEON_REG+0x7fffffff>  <== NOT EXECUTED
40004e88:	82 10 20 86 	mov  0x86, %g1                                 <== NOT EXECUTED
40004e8c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
40004e90:	81 c7 e0 08 	ret                                            
40004e94:	81 e8 00 00 	restore                                        
  }                                                                   
                                                                      
  result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start );
40004e98:	92 10 00 19 	mov  %i1, %o1                                  
40004e9c:	b2 07 bf e8 	add  %fp, -24, %i1                             
40004ea0:	9f c0 40 00 	call  %g1                                      
40004ea4:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
  rtems_filesystem_freenode( &existing_loc );                         
40004ea8:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
40004eac:	80 a0 60 00 	cmp  %g1, 0                                    
40004eb0:	02 80 00 08 	be  40004ed0 <link+0x240>                      <== NEVER TAKEN
40004eb4:	b0 10 00 08 	mov  %o0, %i0                                  
40004eb8:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
40004ebc:	80 a0 60 00 	cmp  %g1, 0                                    
40004ec0:	22 80 00 05 	be,a   40004ed4 <link+0x244>                   <== NEVER TAKEN
40004ec4:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         <== NOT EXECUTED
40004ec8:	9f c0 40 00 	call  %g1                                      
40004ecc:	90 10 00 19 	mov  %i1, %o0                                  
  rtems_filesystem_freenode( &parent_loc );                           
40004ed0:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         
40004ed4:	80 a0 60 00 	cmp  %g1, 0                                    
40004ed8:	02 80 00 08 	be  40004ef8 <link+0x268>                      <== NEVER TAKEN
40004edc:	01 00 00 00 	nop                                            
40004ee0:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
40004ee4:	80 a0 60 00 	cmp  %g1, 0                                    
40004ee8:	02 80 00 04 	be  40004ef8 <link+0x268>                      <== NEVER TAKEN
40004eec:	01 00 00 00 	nop                                            
40004ef0:	9f c0 40 00 	call  %g1                                      
40004ef4:	90 07 bf d4 	add  %fp, -44, %o0                             
                                                                      
  return result;                                                      
}                                                                     
40004ef8:	81 c7 e0 08 	ret                                            
40004efc:	81 e8 00 00 	restore                                        
                                                                      

4001af04 <lseek>: off_t lseek( int fd, off_t offset, int whence ) {
4001af04:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_libio_t *iop;                                                 
  off_t          old_offset;                                          
  off_t          status;                                              
                                                                      
  rtems_libio_check_fd( fd );                                         
4001af08:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
4001af0c:	c2 00 62 04 	ld  [ %g1 + 0x204 ], %g1	! 4001ce04 <rtems_libio_number_iops>
off_t lseek(                                                          
  int     fd,                                                         
  off_t   offset,                                                     
  int     whence                                                      
)                                                                     
{                                                                     
4001af10:	96 10 00 1b 	mov  %i3, %o3                                  
  rtems_libio_t *iop;                                                 
  off_t          old_offset;                                          
  off_t          status;                                              
                                                                      
  rtems_libio_check_fd( fd );                                         
4001af14:	80 a6 00 01 	cmp  %i0, %g1                                  
off_t lseek(                                                          
  int     fd,                                                         
  off_t   offset,                                                     
  int     whence                                                      
)                                                                     
{                                                                     
4001af18:	84 10 00 19 	mov  %i1, %g2                                  
  rtems_libio_t *iop;                                                 
  off_t          old_offset;                                          
  off_t          status;                                              
                                                                      
  rtems_libio_check_fd( fd );                                         
4001af1c:	1a 80 00 0c 	bcc  4001af4c <lseek+0x48>                     <== NEVER TAKEN
4001af20:	86 10 00 1a 	mov  %i2, %g3                                  
  iop = rtems_libio_iop( fd );                                        
4001af24:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
4001af28:	e0 00 63 9c 	ld  [ %g1 + 0x39c ], %l0	! 4001d79c <rtems_libio_iops>
4001af2c:	83 2e 20 06 	sll  %i0, 6, %g1                               
4001af30:	b1 2e 20 03 	sll  %i0, 3, %i0                               
4001af34:	b0 06 00 01 	add  %i0, %g1, %i0                             
4001af38:	a0 04 00 18 	add  %l0, %i0, %l0                             
  rtems_libio_check_is_open(iop);                                     
4001af3c:	c2 04 20 18 	ld  [ %l0 + 0x18 ], %g1                        
4001af40:	80 88 61 00 	btst  0x100, %g1                               
4001af44:	32 80 00 06 	bne,a   4001af5c <lseek+0x58>                  <== ALWAYS TAKEN
4001af48:	c2 04 20 40 	ld  [ %l0 + 0x40 ], %g1                        
4001af4c:	7f ff d1 64 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4001af50:	01 00 00 00 	nop                                            <== NOT EXECUTED
4001af54:	10 80 00 1e 	b  4001afcc <lseek+0xc8>                       <== NOT EXECUTED
4001af58:	82 10 20 09 	mov  9, %g1	! 9 <PROM_START+0x9>               <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Check as many errors as possible before touching iop->offset.   
   */                                                                 
                                                                      
  if ( !iop->handlers->lseek_h )                                      
4001af5c:	c2 00 60 14 	ld  [ %g1 + 0x14 ], %g1                        
4001af60:	80 a0 60 00 	cmp  %g1, 0                                    
4001af64:	12 80 00 06 	bne  4001af7c <lseek+0x78>                     <== ALWAYS TAKEN
4001af68:	80 a6 e0 01 	cmp  %i3, 1                                    
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
4001af6c:	7f ff d1 5c 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4001af70:	01 00 00 00 	nop                                            <== NOT EXECUTED
4001af74:	10 80 00 16 	b  4001afcc <lseek+0xc8>                       <== NOT EXECUTED
4001af78:	82 10 20 86 	mov  0x86, %g1	! 86 <PROM_START+0x86>          <== NOT EXECUTED
  /*                                                                  
   *  Now process the lseek().                                        
   */                                                                 
                                                                      
  old_offset = iop->offset;                                           
  switch ( whence ) {                                                 
4001af7c:	02 80 00 09 	be  4001afa0 <lseek+0x9c>                      
4001af80:	e4 1c 20 10 	ldd  [ %l0 + 0x10 ], %l2                       
4001af84:	80 a6 e0 02 	cmp  %i3, 2                                    
4001af88:	02 80 00 09 	be  4001afac <lseek+0xa8>                      
4001af8c:	80 a6 e0 00 	cmp  %i3, 0                                    
4001af90:	12 80 00 0c 	bne  4001afc0 <lseek+0xbc>                     
4001af94:	01 00 00 00 	nop                                            
    case SEEK_SET:                                                    
      iop->offset = offset;                                           
      break;                                                          
4001af98:	10 80 00 12 	b  4001afe0 <lseek+0xdc>                       
4001af9c:	c4 3c 20 10 	std  %g2, [ %l0 + 0x10 ]                       
                                                                      
    case SEEK_CUR:                                                    
      iop->offset += offset;                                          
4001afa0:	9a 86 80 13 	addcc  %i2, %l3, %o5                           
4001afa4:	10 80 00 05 	b  4001afb8 <lseek+0xb4>                       
4001afa8:	98 46 40 12 	addx  %i1, %l2, %o4                            
      break;                                                          
                                                                      
    case SEEK_END:                                                    
      iop->offset = iop->size + offset;                               
4001afac:	d8 1c 20 08 	ldd  [ %l0 + 8 ], %o4                          
4001afb0:	9a 86 80 0d 	addcc  %i2, %o5, %o5                           
4001afb4:	98 46 40 0c 	addx  %i1, %o4, %o4                            
      break;                                                          
4001afb8:	10 80 00 0a 	b  4001afe0 <lseek+0xdc>                       
4001afbc:	d8 3c 20 10 	std  %o4, [ %l0 + 0x10 ]                       
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
4001afc0:	7f ff d1 47 	call  4000f4dc <__errno>                       
4001afc4:	01 00 00 00 	nop                                            
4001afc8:	82 10 20 16 	mov  0x16, %g1	! 16 <PROM_START+0x16>          
4001afcc:	c2 22 00 00 	st  %g1, [ %o0 ]                               
4001afd0:	11 3f ff ff 	sethi  %hi(0xfffffc00), %o0                    
4001afd4:	90 12 23 ff 	or  %o0, 0x3ff, %o0	! ffffffff <LEON_REG+0x7fffffff>
4001afd8:	10 80 00 0e 	b  4001b010 <lseek+0x10c>                      
4001afdc:	92 10 00 08 	mov  %o0, %o1                                  
  /*                                                                  
   *  At this time, handlers assume iop->offset has the desired       
   *  new offset.                                                     
   */                                                                 
                                                                      
  status = (*iop->handlers->lseek_h)( iop, offset, whence );          
4001afe0:	c2 04 20 40 	ld  [ %l0 + 0x40 ], %g1                        
4001afe4:	92 10 00 02 	mov  %g2, %o1                                  
4001afe8:	c2 00 60 14 	ld  [ %g1 + 0x14 ], %g1                        
4001afec:	94 10 00 03 	mov  %g3, %o2                                  
4001aff0:	9f c0 40 00 	call  %g1                                      
4001aff4:	90 10 00 10 	mov  %l0, %o0                                  
  if ( status == (off_t) -1 )                                         
4001aff8:	80 a2 3f ff 	cmp  %o0, -1                                   
4001affc:	12 80 00 06 	bne  4001b014 <lseek+0x110>                    
4001b000:	b2 10 00 09 	mov  %o1, %i1                                  
4001b004:	80 a2 7f ff 	cmp  %o1, -1                                   
4001b008:	22 80 00 03 	be,a   4001b014 <lseek+0x110>                  <== ALWAYS TAKEN
4001b00c:	e4 3c 20 10 	std  %l2, [ %l0 + 0x10 ]                       
  /*                                                                  
   *  So if the operation failed, we have to restore iop->offset.     
   */                                                                 
                                                                      
  return status;                                                      
}                                                                     
4001b010:	b2 10 00 09 	mov  %o1, %i1                                  
4001b014:	81 c7 e0 08 	ret                                            
4001b018:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      

4000b704 <malloc>: size_t size ) { void *return_this; MSBUMP(malloc_calls, 1);
4000b704:	9d e3 bf a0 	save  %sp, -96, %sp                            
4000b708:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
4000b70c:	82 10 63 a8 	or  %g1, 0x3a8, %g1	! 4001d7a8 <rtems_malloc_statistics>
4000b710:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           
4000b714:	a0 10 00 18 	mov  %i0, %l0                                  
4000b718:	84 00 a0 01 	inc  %g2                                       
                                                                      
  /*                                                                  
   *  If some free's have been deferred, then do them now.            
   */                                                                 
  malloc_deferred_frees_process();                                    
4000b71c:	7f ff ff ed 	call  4000b6d0 <malloc_deferred_frees_process> 
4000b720:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
                                                                      
  /*                                                                  
   * Validate the parameters                                          
   */                                                                 
  if ( !size )                                                        
4000b724:	80 a6 20 00 	cmp  %i0, 0                                    
4000b728:	02 80 00 36 	be  4000b800 <malloc+0xfc>                     <== NEVER TAKEN
4000b72c:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
    return (void *) 0;                                                
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
4000b730:	c2 00 63 10 	ld  [ %g1 + 0x310 ], %g1	! 4001db10 <_System_state_Current>
4000b734:	80 a0 60 03 	cmp  %g1, 3                                    
4000b738:	12 80 00 07 	bne  4000b754 <malloc+0x50>                    
4000b73c:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
4000b740:	7f ff ff cb 	call  4000b66c <malloc_is_system_state_OK>     
4000b744:	01 00 00 00 	nop                                            
4000b748:	80 8a 20 ff 	btst  0xff, %o0                                
4000b74c:	02 80 00 2d 	be  4000b800 <malloc+0xfc>                     <== NEVER TAKEN
4000b750:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate(                  
  Heap_Control *heap,                                                 
  uintptr_t size                                                      
)                                                                     
{                                                                     
  return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 );
4000b754:	d0 00 62 10 	ld  [ %g1 + 0x210 ], %o0	! 4001ce10 <RTEMS_Malloc_Heap>
4000b758:	92 10 00 10 	mov  %l0, %o1                                  
4000b75c:	94 10 20 00 	clr  %o2                                       
4000b760:	40 00 04 d4 	call  4000cab0 <_Protected_heap_Allocate_aligned_with_boundary>
4000b764:	96 10 20 00 	clr  %o3                                       
   * If this fails then return a NULL pointer.                        
   */                                                                 
                                                                      
  return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size );  
                                                                      
  if ( !return_this ) {                                               
4000b768:	b0 92 20 00 	orcc  %o0, 0, %i0                              
4000b76c:	12 80 00 13 	bne  4000b7b8 <malloc+0xb4>                    
4000b770:	a2 10 00 18 	mov  %i0, %l1                                  
    if (rtems_malloc_sbrk_helpers)                                    
4000b774:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
4000b778:	c2 00 60 7c 	ld  [ %g1 + 0x7c ], %g1	! 4001d47c <rtems_malloc_sbrk_helpers>
4000b77c:	80 a0 60 00 	cmp  %g1, 0                                    
4000b780:	02 80 00 08 	be  4000b7a0 <malloc+0x9c>                     <== ALWAYS TAKEN
4000b784:	01 00 00 00 	nop                                            
      return_this = (*rtems_malloc_sbrk_helpers->extend)( size );     
4000b788:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           <== NOT EXECUTED
4000b78c:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
4000b790:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
    if ( !return_this ) {                                             
4000b794:	a2 92 20 00 	orcc  %o0, 0, %l1                              <== NOT EXECUTED
4000b798:	12 80 00 09 	bne  4000b7bc <malloc+0xb8>                    <== NOT EXECUTED
4000b79c:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    <== NOT EXECUTED
      errno = ENOMEM;                                                 
4000b7a0:	40 00 0f 4f 	call  4000f4dc <__errno>                       
4000b7a4:	01 00 00 00 	nop                                            
4000b7a8:	82 10 20 0c 	mov  0xc, %g1	! c <PROM_START+0xc>             
4000b7ac:	c2 22 00 00 	st  %g1, [ %o0 ]                               
      return (void *) 0;                                              
4000b7b0:	81 c7 e0 08 	ret                                            
4000b7b4:	81 e8 00 00 	restore                                        
  }                                                                   
                                                                      
  /*                                                                  
   *  If the user wants us to dirty the allocated memory, then do it. 
   */                                                                 
  if ( rtems_malloc_dirty_helper )                                    
4000b7b8:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
4000b7bc:	c2 00 60 80 	ld  [ %g1 + 0x80 ], %g1	! 4001d480 <rtems_malloc_dirty_helper>
4000b7c0:	80 a0 60 00 	cmp  %g1, 0                                    
4000b7c4:	02 80 00 05 	be  4000b7d8 <malloc+0xd4>                     <== ALWAYS TAKEN
4000b7c8:	92 10 00 10 	mov  %l0, %o1                                  
    (*rtems_malloc_dirty_helper)( return_this, size );                
4000b7cc:	c2 00 40 00 	ld  [ %g1 ], %g1                               <== NOT EXECUTED
4000b7d0:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
4000b7d4:	90 10 00 11 	mov  %l1, %o0                                  <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  If configured, update the statistics                            
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
4000b7d8:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
4000b7dc:	c2 00 60 78 	ld  [ %g1 + 0x78 ], %g1	! 4001d478 <rtems_malloc_statistics_helpers>
4000b7e0:	80 a0 60 00 	cmp  %g1, 0                                    
4000b7e4:	02 bf ff f3 	be  4000b7b0 <malloc+0xac>                     <== ALWAYS TAKEN
4000b7e8:	b0 10 00 11 	mov  %l1, %i0                                  
    (*rtems_malloc_statistics_helpers->at_malloc)(return_this);       
4000b7ec:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           <== NOT EXECUTED
4000b7f0:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
4000b7f4:	90 10 00 11 	mov  %l1, %o0                                  <== NOT EXECUTED
4000b7f8:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000b7fc:	81 e8 00 00 	restore                                        <== NOT EXECUTED
4000b800:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
    if (rtems_malloc_boundary_helpers)                                
      (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); 
  #endif                                                              
                                                                      
  return return_this;                                                 
}                                                                     
4000b804:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000b808:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

4000b6b4 <malloc_deferred_free>:
4000b6b4:	92 10 00 08 	mov  %o0, %o1                                  <== NOT EXECUTED
4000b6b8:	11 10 00 77 	sethi  %hi(0x4001dc00), %o0                    <== NOT EXECUTED
4000b6bc:	90 12 22 f8 	or  %o0, 0x2f8, %o0	! 4001def8 <RTEMS_Malloc_GC_list><== NOT EXECUTED
4000b6c0:	82 13 c0 00 	mov  %o7, %g1                                  <== NOT EXECUTED
4000b6c4:	7f ff ee 0e 	call  40006efc <_Chain_Append>                 <== NOT EXECUTED
4000b6c8:	9e 10 40 00 	mov  %g1, %o7                                  <== NOT EXECUTED
                                                                      

4000b6d0 <malloc_deferred_frees_process>: void malloc_deferred_frees_process(void) {
4000b6d0:	9d e3 bf a0 	save  %sp, -96, %sp                            
 */                                                                   
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(               
  rtems_chain_control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Get( the_chain );                                     
4000b6d4:	21 10 00 77 	sethi  %hi(0x4001dc00), %l0                    
  rtems_chain_node  *to_be_freed;                                     
                                                                      
  /*                                                                  
   *  If some free's have been deferred, then do them now.            
   */                                                                 
  while ((to_be_freed = rtems_chain_get(&RTEMS_Malloc_GC_list)) != NULL)
4000b6d8:	10 80 00 04 	b  4000b6e8 <malloc_deferred_frees_process+0x18>
4000b6dc:	a0 14 22 f8 	or  %l0, 0x2f8, %l0	! 4001def8 <RTEMS_Malloc_GC_list>
    free(to_be_freed);                                                
4000b6e0:	7f ff fe a7 	call  4000b17c <free>                          <== NOT EXECUTED
4000b6e4:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000b6e8:	40 00 03 52 	call  4000c430 <_Chain_Get>                    
4000b6ec:	90 10 00 10 	mov  %l0, %o0                                  
  rtems_chain_node  *to_be_freed;                                     
                                                                      
  /*                                                                  
   *  If some free's have been deferred, then do them now.            
   */                                                                 
  while ((to_be_freed = rtems_chain_get(&RTEMS_Malloc_GC_list)) != NULL)
4000b6f0:	80 a2 20 00 	cmp  %o0, 0                                    
4000b6f4:	12 bf ff fb 	bne  4000b6e0 <malloc_deferred_frees_process+0x10><== NEVER TAKEN
4000b6f8:	01 00 00 00 	nop                                            
    free(to_be_freed);                                                
}                                                                     
4000b6fc:	81 c7 e0 08 	ret                                            
4000b700:	81 e8 00 00 	restore                                        
                                                                      

4000b66c <malloc_is_system_state_OK>: rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) { if ( _Thread_Dispatch_disable_level > 0 )
4000b66c:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
4000b670:	c2 00 61 70 	ld  [ %g1 + 0x170 ], %g1	! 4001d970 <_Thread_Dispatch_disable_level>
4000b674:	80 a0 60 00 	cmp  %g1, 0                                    
4000b678:	12 80 00 06 	bne  4000b690 <malloc_is_system_state_OK+0x24> <== NEVER TAKEN
4000b67c:	90 10 20 00 	clr  %o0                                       
    return false;                                                     
                                                                      
  if ( _ISR_Nest_level > 0 )                                          
4000b680:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
4000b684:	c2 00 62 08 	ld  [ %g1 + 0x208 ], %g1	! 4001da08 <_ISR_Nest_level>
                                                                      
#include "malloc_p.h"                                                 
                                                                      
rtems_chain_control RTEMS_Malloc_GC_list;                             
                                                                      
bool malloc_is_system_state_OK(void)                                  
4000b688:	80 a0 00 01 	cmp  %g0, %g1                                  
4000b68c:	90 60 3f ff 	subx  %g0, -1, %o0                             
                                                                      
  if ( _ISR_Nest_level > 0 )                                          
    return false;                                                     
                                                                      
  return true;                                                        
}                                                                     
4000b690:	81 c3 e0 08 	retl                                           
                                                                      

40012c18 <memfile_alloc_block>: */ int memfile_blocks_allocated = 0; void *memfile_alloc_block(void) {
40012c18:	9d e3 bf a0 	save  %sp, -96, %sp                            
  void *memory;                                                       
                                                                      
  memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK);           
40012c1c:	03 10 00 8e 	sethi  %hi(0x40023800), %g1                    
40012c20:	d2 00 60 d4 	ld  [ %g1 + 0xd4 ], %o1	! 400238d4 <imfs_memfile_bytes_per_block>
40012c24:	7f ff c6 8a 	call  4000464c <calloc>                        
40012c28:	90 10 20 01 	mov  1, %o0                                    
  if ( memory )                                                       
40012c2c:	80 a2 20 00 	cmp  %o0, 0                                    
40012c30:	02 80 00 05 	be  40012c44 <memfile_alloc_block+0x2c>        <== NEVER TAKEN
40012c34:	03 10 00 8e 	sethi  %hi(0x40023800), %g1                    
    memfile_blocks_allocated++;                                       
40012c38:	c4 00 62 7c 	ld  [ %g1 + 0x27c ], %g2	! 40023a7c <memfile_blocks_allocated>
40012c3c:	84 00 a0 01 	inc  %g2                                       
40012c40:	c4 20 62 7c 	st  %g2, [ %g1 + 0x27c ]                       
                                                                      
  return memory;                                                      
}                                                                     
40012c44:	81 c7 e0 08 	ret                                            
40012c48:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      

40013154 <memfile_check_rmnod>: return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){
40013154:	9d e3 bf a0 	save  %sp, -96, %sp                            
                                                                      
  /*                                                                  
   * The file cannot be open and the link must be less than 1 to free.
   */                                                                 
                                                                      
  if ( !rtems_libio_is_file_open( the_jnode ) && (the_jnode->st_nlink < 1) ) {
40013158:	7f ff f6 74 	call  40010b28 <rtems_libio_is_file_open>      
4001315c:	90 10 00 18 	mov  %i0, %o0                                  
40013160:	80 a2 20 00 	cmp  %o0, 0                                    
40013164:	12 80 00 13 	bne  400131b0 <memfile_check_rmnod+0x5c>       
40013168:	01 00 00 00 	nop                                            
4001316c:	c2 16 20 34 	lduh  [ %i0 + 0x34 ], %g1                      
40013170:	80 a0 60 00 	cmp  %g1, 0                                    
40013174:	12 80 00 0f 	bne  400131b0 <memfile_check_rmnod+0x5c>       <== NEVER TAKEN
40013178:	03 10 00 8c 	sethi  %hi(0x40023000), %g1                    
                                                                      
    /*                                                                
     * Is the rtems_filesystem_current is this node?                  
     */                                                               
                                                                      
    if ( rtems_filesystem_current.node_access == the_jnode )          
4001317c:	c2 00 62 d0 	ld  [ %g1 + 0x2d0 ], %g1	! 400232d0 <rtems_current_user_env>
40013180:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           
40013184:	80 a0 80 18 	cmp  %g2, %i0                                  
40013188:	22 80 00 02 	be,a   40013190 <memfile_check_rmnod+0x3c>     <== NEVER TAKEN
4001318c:	c0 20 60 04 	clr  [ %g1 + 4 ]                               <== NOT EXECUTED
       rtems_filesystem_current.node_access = NULL;                   
                                                                      
    /*                                                                
     * Free memory associated with a memory file.                     
     */                                                               
    if (the_jnode->type != IMFS_LINEAR_FILE)                          
40013190:	c2 06 20 4c 	ld  [ %i0 + 0x4c ], %g1                        
40013194:	80 a0 60 06 	cmp  %g1, 6                                    
40013198:	02 80 00 04 	be  400131a8 <memfile_check_rmnod+0x54>        <== NEVER TAKEN
4001319c:	01 00 00 00 	nop                                            
      IMFS_memfile_remove( the_jnode );                               
400131a0:	7f ff ff 8c 	call  40012fd0 <IMFS_memfile_remove>           
400131a4:	90 10 00 18 	mov  %i0, %o0                                  
                                                                      
    free( the_jnode );                                                
400131a8:	7f ff c5 c9 	call  400048cc <free>                          
400131ac:	90 10 00 18 	mov  %i0, %o0                                  
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
400131b0:	81 c7 e0 08 	ret                                            
400131b4:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

40012f08 <memfile_free_blocks_in_table>: void memfile_free_blocks_in_table( block_p **block_table, int entries ) {
40012f08:	9d e3 bf a0 	save  %sp, -96, %sp                            
                                                                      
  /*                                                                  
   *  Perform internal consistency checks                             
   */                                                                 
                                                                      
  assert( block_table );                                              
40012f0c:	80 a6 20 00 	cmp  %i0, 0                                    
40012f10:	32 80 00 0a 	bne,a   40012f38 <memfile_free_blocks_in_table+0x30><== ALWAYS TAKEN
40012f14:	e0 06 00 00 	ld  [ %i0 ], %l0                               
40012f18:	11 10 00 89 	sethi  %hi(0x40022400), %o0                    <== NOT EXECUTED
40012f1c:	15 10 00 8a 	sethi  %hi(0x40022800), %o2                    <== NOT EXECUTED
40012f20:	17 10 00 89 	sethi  %hi(0x40022400), %o3                    <== NOT EXECUTED
40012f24:	90 12 23 00 	or  %o0, 0x300, %o0                            <== NOT EXECUTED
40012f28:	94 12 a0 98 	or  %o2, 0x98, %o2                             <== NOT EXECUTED
40012f2c:	96 12 e3 80 	or  %o3, 0x380, %o3                            <== NOT EXECUTED
40012f30:	7f ff c5 71 	call  400044f4 <__assert_func>                 <== NOT EXECUTED
40012f34:	92 10 21 b3 	mov  0x1b3, %o1                                <== NOT EXECUTED
   *  Now go through all the slots in the table and free the memory.  
   */                                                                 
                                                                      
  b = *block_table;                                                   
                                                                      
  for ( i=0 ; i<entries ; i++ ) {                                     
40012f38:	10 80 00 09 	b  40012f5c <memfile_free_blocks_in_table+0x54>
40012f3c:	a2 10 20 00 	clr  %l1                                       
    if ( b[i] ) {                                                     
40012f40:	80 a2 20 00 	cmp  %o0, 0                                    
40012f44:	02 80 00 05 	be  40012f58 <memfile_free_blocks_in_table+0x50>
40012f48:	a2 04 60 01 	inc  %l1                                       
      memfile_free_block( b[i] );                                     
40012f4c:	7f ff ff 2a 	call  40012bf4 <memfile_free_block>            
40012f50:	01 00 00 00 	nop                                            
      b[i] = 0;                                                       
40012f54:	c0 24 00 00 	clr  [ %l0 ]                                   
   *  Now go through all the slots in the table and free the memory.  
   */                                                                 
                                                                      
  b = *block_table;                                                   
                                                                      
  for ( i=0 ; i<entries ; i++ ) {                                     
40012f58:	a0 04 20 04 	add  %l0, 4, %l0                               
40012f5c:	80 a4 40 19 	cmp  %l1, %i1                                  
40012f60:	26 bf ff f8 	bl,a   40012f40 <memfile_free_blocks_in_table+0x38>
40012f64:	d0 04 00 00 	ld  [ %l0 ], %o0                               
  /*                                                                  
   *  Now that all the blocks in the block table are free, we can     
   *  free the block table itself.                                    
   */                                                                 
                                                                      
  memfile_free_block( *block_table );                                 
40012f68:	7f ff ff 23 	call  40012bf4 <memfile_free_block>            
40012f6c:	d0 06 00 00 	ld  [ %i0 ], %o0                               
  *block_table = 0;                                                   
40012f70:	c0 26 00 00 	clr  [ %i0 ]                                   
}                                                                     
40012f74:	81 c7 e0 08 	ret                                            
40012f78:	81 e8 00 00 	restore                                        
                                                                      

40013468 <memfile_ftruncate>: int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) {
40013468:	9d e3 bf 98 	save  %sp, -104, %sp                           
  IMFS_jnode_t   *the_jnode;                                          
                                                                      
  the_jnode = iop->file_info;                                         
4001346c:	e0 06 20 3c 	ld  [ %i0 + 0x3c ], %l0                        
                                                                      
int memfile_ftruncate(                                                
  rtems_libio_t        *iop,                                          
  rtems_off64_t         length                                        
)                                                                     
{                                                                     
40013470:	92 10 00 19 	mov  %i1, %o1                                  
   *  POSIX 1003.1b does not specify what happens if you truncate a file
   *  and the new length is greater than the current size.  We treat this
   *  as an extend operation.                                         
   */                                                                 
                                                                      
  if ( length > the_jnode->info.file.size )                           
40013474:	c2 04 20 50 	ld  [ %l0 + 0x50 ], %g1                        
40013478:	80 a0 40 19 	cmp  %g1, %i1                                  
4001347c:	06 80 00 09 	bl  400134a0 <memfile_ftruncate+0x38>          <== NEVER TAKEN
40013480:	94 10 00 1a 	mov  %i2, %o2                                  
40013484:	80 a0 40 19 	cmp  %g1, %i1                                  
40013488:	32 80 00 0a 	bne,a   400134b0 <memfile_ftruncate+0x48>      <== NEVER TAKEN
4001348c:	d2 24 20 50 	st  %o1, [ %l0 + 0x50 ]                        <== NOT EXECUTED
40013490:	c2 04 20 54 	ld  [ %l0 + 0x54 ], %g1                        
40013494:	80 a0 40 1a 	cmp  %g1, %i2                                  
40013498:	3a 80 00 06 	bcc,a   400134b0 <memfile_ftruncate+0x48>      <== ALWAYS TAKEN
4001349c:	d2 24 20 50 	st  %o1, [ %l0 + 0x50 ]                        
    return IMFS_memfile_extend( the_jnode, length );                  
400134a0:	7f ff ff 8f 	call  400132dc <IMFS_memfile_extend>           <== NOT EXECUTED
400134a4:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
400134a8:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
400134ac:	91 e8 00 08 	restore  %g0, %o0, %o0                         <== NOT EXECUTED
   *  The in-memory files do not currently reclaim memory until the file is
   *  deleted.  So we leave the previously allocated blocks in place for
   *  future use and just set the length.                             
   */                                                                 
                                                                      
  the_jnode->info.file.size = length;                                 
400134b0:	d4 24 20 54 	st  %o2, [ %l0 + 0x54 ]                        
  iop->size = the_jnode->info.file.size;                              
400134b4:	d2 26 20 08 	st  %o1, [ %i0 + 8 ]                           
400134b8:	d4 26 20 0c 	st  %o2, [ %i0 + 0xc ]                         
                                                                      
  IMFS_update_atime( the_jnode );                                     
400134bc:	90 07 bf f8 	add  %fp, -8, %o0                              
400134c0:	7f ff c5 2d 	call  40004974 <gettimeofday>                  
400134c4:	92 10 20 00 	clr  %o1                                       
400134c8:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
400134cc:	90 10 20 00 	clr  %o0                                       
400134d0:	c2 24 20 40 	st  %g1, [ %l0 + 0x40 ]                        
                                                                      
  return 0;                                                           
}                                                                     
400134d4:	b0 10 00 08 	mov  %o0, %i0                                  
400134d8:	81 c7 e0 08 	ret                                            
400134dc:	81 e8 00 00 	restore                                        
                                                                      

400134e0 <memfile_lseek>: rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) {
400134e0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  IMFS_jnode_t   *the_jnode;                                          
                                                                      
  the_jnode = iop->file_info;                                         
400134e4:	e0 06 20 3c 	ld  [ %i0 + 0x3c ], %l0                        
                                                                      
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
400134e8:	c2 04 20 4c 	ld  [ %l0 + 0x4c ], %g1                        
400134ec:	80 a0 60 06 	cmp  %g1, 6                                    
400134f0:	32 80 00 11 	bne,a   40013534 <memfile_lseek+0x54>          <== ALWAYS TAKEN
400134f4:	c4 1e 20 10 	ldd  [ %i0 + 0x10 ], %g2                       
    if (iop->offset > the_jnode->info.linearfile.size)                
400134f8:	c2 04 20 50 	ld  [ %l0 + 0x50 ], %g1                        <== NOT EXECUTED
400134fc:	c6 06 20 10 	ld  [ %i0 + 0x10 ], %g3                        <== NOT EXECUTED
40013500:	80 a0 c0 01 	cmp  %g3, %g1                                  <== NOT EXECUTED
40013504:	14 80 00 09 	bg  40013528 <memfile_lseek+0x48>              <== NOT EXECUTED
40013508:	c4 04 20 54 	ld  [ %l0 + 0x54 ], %g2                        <== NOT EXECUTED
4001350c:	80 a0 c0 01 	cmp  %g3, %g1                                  <== NOT EXECUTED
40013510:	32 80 00 1a 	bne,a   40013578 <memfile_lseek+0x98>          <== NOT EXECUTED
40013514:	c4 1e 20 10 	ldd  [ %i0 + 0x10 ], %g2                       <== NOT EXECUTED
40013518:	c6 06 20 14 	ld  [ %i0 + 0x14 ], %g3                        <== NOT EXECUTED
4001351c:	80 a0 c0 02 	cmp  %g3, %g2                                  <== NOT EXECUTED
40013520:	28 80 00 16 	bleu,a   40013578 <memfile_lseek+0x98>         <== NOT EXECUTED
40013524:	c4 1e 20 10 	ldd  [ %i0 + 0x10 ], %g2                       <== NOT EXECUTED
      iop->offset = the_jnode->info.linearfile.size;                  
40013528:	c2 26 20 10 	st  %g1, [ %i0 + 0x10 ]                        <== NOT EXECUTED
4001352c:	10 80 00 12 	b  40013574 <memfile_lseek+0x94>               <== NOT EXECUTED
40013530:	c4 26 20 14 	st  %g2, [ %i0 + 0x14 ]                        <== NOT EXECUTED
  }                                                                   
  else {  /* Must be a block file (IMFS_MEMORY_FILE). */              
    if (IMFS_memfile_extend( the_jnode, iop->offset ))                
40013534:	90 10 00 10 	mov  %l0, %o0                                  
40013538:	92 10 00 02 	mov  %g2, %o1                                  
4001353c:	7f ff ff 68 	call  400132dc <IMFS_memfile_extend>           
40013540:	94 10 00 03 	mov  %g3, %o2                                  
40013544:	80 a2 20 00 	cmp  %o0, 0                                    
40013548:	22 80 00 0a 	be,a   40013570 <memfile_lseek+0x90>           <== ALWAYS TAKEN
4001354c:	c4 1c 20 50 	ldd  [ %l0 + 0x50 ], %g2                       
      rtems_set_errno_and_return_minus_one( ENOSPC );                 
40013550:	40 00 06 f9 	call  40015134 <__errno>                       <== NOT EXECUTED
40013554:	01 00 00 00 	nop                                            <== NOT EXECUTED
40013558:	82 10 20 1c 	mov  0x1c, %g1	! 1c <PROM_START+0x1c>          <== NOT EXECUTED
4001355c:	05 3f ff ff 	sethi  %hi(0xfffffc00), %g2                    <== NOT EXECUTED
40013560:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
40013564:	84 10 a3 ff 	or  %g2, 0x3ff, %g2                            <== NOT EXECUTED
40013568:	10 80 00 04 	b  40013578 <memfile_lseek+0x98>               <== NOT EXECUTED
4001356c:	86 10 00 02 	mov  %g2, %g3                                  <== NOT EXECUTED
                                                                      
    iop->size = the_jnode->info.file.size;                            
40013570:	c4 3e 20 08 	std  %g2, [ %i0 + 8 ]                          
  }                                                                   
  return iop->offset;                                                 
40013574:	c4 1e 20 10 	ldd  [ %i0 + 0x10 ], %g2                       
}                                                                     
40013578:	b2 10 00 03 	mov  %g3, %i1                                  
4001357c:	81 c7 e0 08 	ret                                            
40013580:	91 e8 00 02 	restore  %g0, %g2, %o0                         
                                                                      

4001384c <memfile_open>: rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) {
4001384c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  the_jnode = iop->file_info;                                         
                                                                      
  /*                                                                  
   * Perform 'copy on write' for linear files                         
   */                                                                 
  if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))         
40013850:	c2 06 20 18 	ld  [ %i0 + 0x18 ], %g1                        
  rtems_libio_t *iop,                                                 
  const char    *pathname,                                            
  uint32_t       flag,                                                
  uint32_t       mode                                                 
)                                                                     
{                                                                     
40013854:	a2 10 00 18 	mov  %i0, %l1                                  
  the_jnode = iop->file_info;                                         
                                                                      
  /*                                                                  
   * Perform 'copy on write' for linear files                         
   */                                                                 
  if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))         
40013858:	80 88 62 04 	btst  0x204, %g1                               
4001385c:	02 80 00 19 	be  400138c0 <memfile_open+0x74>               
40013860:	e0 06 20 3c 	ld  [ %i0 + 0x3c ], %l0                        
   && (the_jnode->type == IMFS_LINEAR_FILE)) {                        
40013864:	c2 04 20 4c 	ld  [ %l0 + 0x4c ], %g1                        
40013868:	80 a0 60 06 	cmp  %g1, 6                                    
4001386c:	32 80 00 16 	bne,a   400138c4 <memfile_open+0x78>           <== ALWAYS TAKEN
40013870:	c2 04 60 18 	ld  [ %l1 + 0x18 ], %g1                        
    uint32_t   count = the_jnode->info.linearfile.size;               
40013874:	d8 04 20 54 	ld  [ %l0 + 0x54 ], %o4                        <== NOT EXECUTED
    const unsigned char *buffer = the_jnode->info.linearfile.direct;  
40013878:	d6 04 20 58 	ld  [ %l0 + 0x58 ], %o3                        <== NOT EXECUTED
                                                                      
    the_jnode->type = IMFS_MEMORY_FILE;                               
4001387c:	82 10 20 05 	mov  5, %g1                                    <== NOT EXECUTED
    the_jnode->info.file.size            = 0;                         
    the_jnode->info.file.indirect        = 0;                         
    the_jnode->info.file.doubly_indirect = 0;                         
40013880:	c0 24 20 5c 	clr  [ %l0 + 0x5c ]                            <== NOT EXECUTED
   && (the_jnode->type == IMFS_LINEAR_FILE)) {                        
    uint32_t   count = the_jnode->info.linearfile.size;               
    const unsigned char *buffer = the_jnode->info.linearfile.direct;  
                                                                      
    the_jnode->type = IMFS_MEMORY_FILE;                               
    the_jnode->info.file.size            = 0;                         
40013884:	c0 24 20 50 	clr  [ %l0 + 0x50 ]                            <== NOT EXECUTED
40013888:	c0 24 20 54 	clr  [ %l0 + 0x54 ]                            <== NOT EXECUTED
    the_jnode->info.file.indirect        = 0;                         
    the_jnode->info.file.doubly_indirect = 0;                         
    the_jnode->info.file.triply_indirect = 0;                         
4001388c:	c0 24 20 60 	clr  [ %l0 + 0x60 ]                            <== NOT EXECUTED
    uint32_t   count = the_jnode->info.linearfile.size;               
    const unsigned char *buffer = the_jnode->info.linearfile.direct;  
                                                                      
    the_jnode->type = IMFS_MEMORY_FILE;                               
    the_jnode->info.file.size            = 0;                         
    the_jnode->info.file.indirect        = 0;                         
40013890:	c0 24 20 58 	clr  [ %l0 + 0x58 ]                            <== NOT EXECUTED
    the_jnode->info.file.doubly_indirect = 0;                         
    the_jnode->info.file.triply_indirect = 0;                         
    if ((count != 0)                                                  
40013894:	80 a3 20 00 	cmp  %o4, 0                                    <== NOT EXECUTED
40013898:	02 80 00 0a 	be  400138c0 <memfile_open+0x74>               <== NOT EXECUTED
4001389c:	c2 24 20 4c 	st  %g1, [ %l0 + 0x4c ]                        <== NOT EXECUTED
     && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))      
400138a0:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
400138a4:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
400138a8:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
400138ac:	7f ff ff 36 	call  40013584 <IMFS_memfile_write>            <== NOT EXECUTED
400138b0:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
    the_jnode->type = IMFS_MEMORY_FILE;                               
    the_jnode->info.file.size            = 0;                         
    the_jnode->info.file.indirect        = 0;                         
    the_jnode->info.file.doubly_indirect = 0;                         
    the_jnode->info.file.triply_indirect = 0;                         
    if ((count != 0)                                                  
400138b4:	80 a2 3f ff 	cmp  %o0, -1                                   <== NOT EXECUTED
400138b8:	02 80 00 0a 	be  400138e0 <memfile_open+0x94>               <== NOT EXECUTED
400138bc:	01 00 00 00 	nop                                            <== NOT EXECUTED
     && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))      
        return -1;                                                    
  }                                                                   
  if (iop->flags & LIBIO_FLAGS_APPEND)                                
400138c0:	c2 04 60 18 	ld  [ %l1 + 0x18 ], %g1                        
400138c4:	80 88 62 00 	btst  0x200, %g1                               
400138c8:	02 80 00 04 	be  400138d8 <memfile_open+0x8c>               
400138cc:	c4 1c 20 50 	ldd  [ %l0 + 0x50 ], %g2                       
    iop->offset = the_jnode->info.file.size;                          
400138d0:	c4 3c 60 10 	std  %g2, [ %l1 + 0x10 ]                       
                                                                      
  iop->size = the_jnode->info.file.size;                              
400138d4:	c4 1c 20 50 	ldd  [ %l0 + 0x50 ], %g2                       
400138d8:	b0 10 20 00 	clr  %i0                                       
400138dc:	c4 3c 60 08 	std  %g2, [ %l1 + 8 ]                          
  return 0;                                                           
}                                                                     
400138e0:	81 c7 e0 08 	ret                                            
400138e4:	81 e8 00 00 	restore                                        
                                                                      

400131b8 <memfile_rmnod>: int memfile_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) {
400131b8:	9d e3 bf 98 	save  %sp, -104, %sp                           
  IMFS_jnode_t *the_jnode;                                            
                                                                      
  the_jnode = (IMFS_jnode_t *) pathloc->node_access;                  
400131bc:	e0 06 40 00 	ld  [ %i1 ], %l0                               
                                                                      
  /*                                                                  
   * Take the node out of the parent's chain that contains this node  
   */                                                                 
                                                                      
  if ( the_jnode->Parent != NULL ) {                                  
400131c0:	c2 04 20 08 	ld  [ %l0 + 8 ], %g1                           
400131c4:	80 a0 60 00 	cmp  %g1, 0                                    
400131c8:	22 80 00 06 	be,a   400131e0 <memfile_rmnod+0x28>           <== NEVER TAKEN
400131cc:	c2 14 20 34 	lduh  [ %l0 + 0x34 ], %g1                      <== NOT EXECUTED
400131d0:	7f ff d7 5e 	call  40008f48 <_Chain_Extract>                
400131d4:	90 10 00 10 	mov  %l0, %o0                                  
    rtems_chain_extract( (rtems_chain_node *) the_jnode );            
    the_jnode->Parent = NULL;                                         
400131d8:	c0 24 20 08 	clr  [ %l0 + 8 ]                               
                                                                      
  /*                                                                  
   * Decrement the link counter and see if we can free the space.     
   */                                                                 
                                                                      
  the_jnode->st_nlink--;                                              
400131dc:	c2 14 20 34 	lduh  [ %l0 + 0x34 ], %g1                      
  IMFS_update_ctime( the_jnode );                                     
400131e0:	92 10 20 00 	clr  %o1                                       
                                                                      
  /*                                                                  
   * Decrement the link counter and see if we can free the space.     
   */                                                                 
                                                                      
  the_jnode->st_nlink--;                                              
400131e4:	82 00 7f ff 	add  %g1, -1, %g1                              
  IMFS_update_ctime( the_jnode );                                     
400131e8:	90 07 bf f8 	add  %fp, -8, %o0                              
400131ec:	7f ff c5 e2 	call  40004974 <gettimeofday>                  
400131f0:	c2 34 20 34 	sth  %g1, [ %l0 + 0x34 ]                       
400131f4:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
                                                                      
  return memfile_check_rmnod( the_jnode );                            
400131f8:	90 10 00 10 	mov  %l0, %o0                                  
400131fc:	7f ff ff d6 	call  40013154 <memfile_check_rmnod>           
40013200:	c2 24 20 48 	st  %g1, [ %l0 + 0x48 ]                        
}                                                                     
40013204:	81 c7 e0 08 	ret                                            
40013208:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      

4000a0a4 <miniIMFS_initialize>: int miniIMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { return IMFS_initialize_support(
4000a0a4:	13 10 00 70 	sethi  %hi(0x4001c000), %o1                    
4000a0a8:	15 10 00 70 	sethi  %hi(0x4001c000), %o2                    
4000a0ac:	92 12 60 14 	or  %o1, 0x14, %o1                             
4000a0b0:	94 12 a1 d8 	or  %o2, 0x1d8, %o2                            
4000a0b4:	96 10 00 0a 	mov  %o2, %o3                                  
4000a0b8:	82 13 c0 00 	mov  %o7, %g1                                  
4000a0bc:	40 00 03 16 	call  4000ad14 <IMFS_initialize_support>       
4000a0c0:	9e 10 40 00 	mov  %g1, %o7                                  
4000a0c4:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000a0c8:	40 00 a1 18 	call  40032528 <__end+0x14068>                 <== NOT EXECUTED
4000a0cc:	40 00 a1 20 	call  4003254c <__end+0x1408c>                 <== NOT EXECUTED
4000a0d0:	40 00 a1 2c 	call  40032580 <__end+0x140c0>                 <== NOT EXECUTED
4000a0d4:	40 00 a1 2c 	call  40032584 <__end+0x140c4>                 <== NOT EXECUTED
4000a0d8:	40 00 a1 38 	call  400325b8 <__end+0x140f8>                 <== NOT EXECUTED
4000a0dc:	40 00 a1 38 	call  400325bc <__end+0x140fc>                 <== NOT EXECUTED
4000a0e0:	40 00 a1 40 	call  400325e0 <__end+0x14120>                 <== NOT EXECUTED
                                                                      

400032d0 <mknod>: int mknod( const char *pathname, mode_t mode, dev_t dev ) {
400032d0:	9d e3 bf 88 	save  %sp, -120, %sp                           
  rtems_filesystem_location_info_t    temp_loc;                       
  int                                 i;                              
  const char                         *name_start;                     
  int                                 result;                         
                                                                      
  if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) )                 
400032d4:	03 00 00 3c 	sethi  %hi(0xf000), %g1                        
400032d8:	80 8e 40 01 	btst  %i1, %g1                                 
400032dc:	32 80 00 06 	bne,a   400032f4 <mknod+0x24>                  <== ALWAYS TAKEN
400032e0:	c2 4e 00 00 	ldsb  [ %i0 ], %g1                             
    rtems_set_errno_and_return_minus_one( EINVAL );                   
400032e4:	40 00 30 7e 	call  4000f4dc <__errno>                       <== NOT EXECUTED
400032e8:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
400032ec:	10 80 00 32 	b  400033b4 <mknod+0xe4>                       <== NOT EXECUTED
400032f0:	82 10 20 16 	mov  0x16, %g1                                 <== NOT EXECUTED
                                                                      
  rtems_filesystem_get_start_loc( pathname, &i, &temp_loc );          
400032f4:	80 a0 60 5c 	cmp  %g1, 0x5c                                 
400032f8:	22 80 00 08 	be,a   40003318 <mknod+0x48>                   <== NEVER TAKEN
400032fc:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    <== NOT EXECUTED
40003300:	80 a0 60 2f 	cmp  %g1, 0x2f                                 
40003304:	22 80 00 05 	be,a   40003318 <mknod+0x48>                   
40003308:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
4000330c:	80 a0 60 00 	cmp  %g1, 0                                    
40003310:	12 80 00 09 	bne  40003334 <mknod+0x64>                     <== ALWAYS TAKEN
40003314:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
40003318:	d2 00 63 18 	ld  [ %g1 + 0x318 ], %o1	! 4001cf18 <rtems_current_user_env>
4000331c:	90 07 bf e8 	add  %fp, -24, %o0                             
40003320:	92 02 60 18 	add  %o1, 0x18, %o1                            
40003324:	40 00 32 aa 	call  4000fdcc <memcpy>                        
40003328:	94 10 20 14 	mov  0x14, %o2                                 
4000332c:	10 80 00 08 	b  4000334c <mknod+0x7c>                       
40003330:	90 10 20 01 	mov  1, %o0                                    
40003334:	d2 00 63 18 	ld  [ %g1 + 0x318 ], %o1                       
40003338:	90 07 bf e8 	add  %fp, -24, %o0                             
4000333c:	92 02 60 04 	add  %o1, 4, %o1                               
40003340:	40 00 32 a3 	call  4000fdcc <memcpy>                        
40003344:	94 10 20 14 	mov  0x14, %o2                                 
40003348:	90 10 20 00 	clr  %o0                                       
                                                                      
  if ( !temp_loc.ops->evalformake_h ) {                               
4000334c:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
40003350:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
40003354:	80 a0 60 00 	cmp  %g1, 0                                    
40003358:	02 80 00 14 	be  400033a8 <mknod+0xd8>                      <== NEVER TAKEN
4000335c:	90 06 00 08 	add  %i0, %o0, %o0                             
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
  }                                                                   
                                                                      
  result = (*temp_loc.ops->evalformake_h)(                            
40003360:	a0 07 bf e8 	add  %fp, -24, %l0                             
40003364:	94 07 bf fc 	add  %fp, -4, %o2                              
40003368:	92 10 00 10 	mov  %l0, %o1                                  
4000336c:	9f c0 40 00 	call  %g1                                      
40003370:	b0 10 3f ff 	mov  -1, %i0                                   
    &pathname[i],                                                     
    &temp_loc,                                                        
    &name_start                                                       
  );                                                                  
  if ( result != 0 )                                                  
40003374:	80 a2 20 00 	cmp  %o0, 0                                    
40003378:	12 80 00 10 	bne  400033b8 <mknod+0xe8>                     
4000337c:	c4 07 bf f4 	ld  [ %fp + -12 ], %g2                         
    return -1;                                                        
                                                                      
  if ( !temp_loc.ops->mknod_h ) {                                     
40003380:	c2 00 a0 14 	ld  [ %g2 + 0x14 ], %g1                        
40003384:	80 a0 60 00 	cmp  %g1, 0                                    
40003388:	12 80 00 0e 	bne  400033c0 <mknod+0xf0>                     <== ALWAYS TAKEN
4000338c:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          
    rtems_filesystem_freenode( &temp_loc );                           
40003390:	c2 00 a0 1c 	ld  [ %g2 + 0x1c ], %g1                        <== NOT EXECUTED
40003394:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40003398:	02 80 00 04 	be  400033a8 <mknod+0xd8>                      <== NOT EXECUTED
4000339c:	01 00 00 00 	nop                                            <== NOT EXECUTED
400033a0:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
400033a4:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
400033a8:	40 00 30 4d 	call  4000f4dc <__errno>                       <== NOT EXECUTED
400033ac:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
400033b0:	82 10 20 86 	mov  0x86, %g1                                 <== NOT EXECUTED
400033b4:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
400033b8:	81 c7 e0 08 	ret                                            
400033bc:	81 e8 00 00 	restore                                        
  }                                                                   
                                                                      
  result =  (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc );
400033c0:	92 10 00 19 	mov  %i1, %o1                                  
400033c4:	94 10 00 1a 	mov  %i2, %o2                                  
400033c8:	96 10 00 1b 	mov  %i3, %o3                                  
400033cc:	9f c0 40 00 	call  %g1                                      
400033d0:	98 10 00 10 	mov  %l0, %o4                                  
                                                                      
  rtems_filesystem_freenode( &temp_loc );                             
400033d4:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
400033d8:	80 a0 60 00 	cmp  %g1, 0                                    
400033dc:	02 bf ff f7 	be  400033b8 <mknod+0xe8>                      <== NEVER TAKEN
400033e0:	b0 10 00 08 	mov  %o0, %i0                                  
400033e4:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
400033e8:	80 a0 60 00 	cmp  %g1, 0                                    
400033ec:	02 80 00 04 	be  400033fc <mknod+0x12c>                     
400033f0:	01 00 00 00 	nop                                            
400033f4:	9f c0 40 00 	call  %g1                                      
400033f8:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
  return result;                                                      
}                                                                     
400033fc:	81 c7 e0 08 	ret                                            
40003400:	81 e8 00 00 	restore                                        
                                                                      

40003424 <mount>: const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) {
40003424:	9d e3 bf 88 	save  %sp, -120, %sp                           
                                                                      
  /*                                                                  
   *  Is there a file system operations table?                        
   */                                                                 
                                                                      
  if ( fs_ops == NULL ) {                                             
40003428:	80 a6 60 00 	cmp  %i1, 0                                    
4000342c:	02 80 00 05 	be  40003440 <mount+0x1c>                      
40003430:	a0 10 00 18 	mov  %i0, %l0                                  
                                                                      
  /*                                                                  
   *  Are the file system options valid?                              
   */                                                                 
                                                                      
  if ( options != RTEMS_FILESYSTEM_READ_ONLY &&                       
40003434:	80 a6 a0 01 	cmp  %i2, 1                                    
40003438:	28 80 00 06 	bleu,a   40003450 <mount+0x2c>                 
4000343c:	c2 06 60 24 	ld  [ %i1 + 0x24 ], %g1                        
       options != RTEMS_FILESYSTEM_READ_WRITE ) {                     
    errno = EINVAL;                                                   
40003440:	40 00 30 27 	call  4000f4dc <__errno>                       
40003444:	01 00 00 00 	nop                                            
40003448:	10 80 00 14 	b  40003498 <mount+0x74>                       
4000344c:	82 10 20 16 	mov  0x16, %g1	! 16 <PROM_START+0x16>          
    return -1;                                                        
  }                                                                   
                                                                      
  /* Do they support being mounted at all ? */                        
  if ( !fs_ops->fsmount_me_h ) {                                      
    errno = ENOTSUP;                                                  
40003450:	a4 10 20 00 	clr  %l2                                       
    errno = EINVAL;                                                   
    return -1;                                                        
  }                                                                   
                                                                      
  /* Do they support being mounted at all ? */                        
  if ( !fs_ops->fsmount_me_h ) {                                      
40003454:	80 a0 60 00 	cmp  %g1, 0                                    
40003458:	02 80 00 4c 	be  40003588 <mount+0x164>                     <== NEVER TAKEN
4000345c:	a6 10 20 00 	clr  %l3                                       
  /*                                                                  
   * Allocate a mount table entry                                     
   */                                                                 
                                                                      
   size = sizeof(rtems_filesystem_mount_table_entry_t);               
   if ( device )                                                      
40003460:	80 a6 e0 00 	cmp  %i3, 0                                    
40003464:	02 80 00 05 	be  40003478 <mount+0x54>                      <== ALWAYS TAKEN
40003468:	90 10 20 6c 	mov  0x6c, %o0                                 
     size += strlen( device ) + 1;                                    
4000346c:	40 00 33 d4 	call  400103bc <strlen>                        <== NOT EXECUTED
40003470:	90 10 00 1b 	mov  %i3, %o0                                  <== NOT EXECUTED
40003474:	90 02 20 6d 	add  %o0, 0x6d, %o0                            <== NOT EXECUTED
   temp_mt_entry = malloc( size );                                    
40003478:	40 00 20 a3 	call  4000b704 <malloc>                        
4000347c:	01 00 00 00 	nop                                            
                                                                      
   if ( !temp_mt_entry ) {                                            
40003480:	a2 92 20 00 	orcc  %o0, 0, %l1                              
40003484:	12 80 00 07 	bne  400034a0 <mount+0x7c>                     <== ALWAYS TAKEN
40003488:	a6 10 00 11 	mov  %l1, %l3                                  
     errno = ENOMEM;                                                  
4000348c:	40 00 30 14 	call  4000f4dc <__errno>                       <== NOT EXECUTED
40003490:	01 00 00 00 	nop                                            <== NOT EXECUTED
40003494:	82 10 20 0c 	mov  0xc, %g1	! c <PROM_START+0xc>             <== NOT EXECUTED
40003498:	10 80 00 75 	b  4000366c <mount+0x248>                      
4000349c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
     return -1;                                                       
   }                                                                  
                                                                      
   temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry;                
   temp_mt_entry->options = options;                                  
400034a0:	f4 24 60 30 	st  %i2, [ %l1 + 0x30 ]                        
   if ( device ) {                                                    
400034a4:	80 a6 e0 00 	cmp  %i3, 0                                    
400034a8:	02 80 00 08 	be  400034c8 <mount+0xa4>                      <== ALWAYS TAKEN
400034ac:	e2 24 60 2c 	st  %l1, [ %l1 + 0x2c ]                        
     temp_mt_entry->dev =                                             
       (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t );
400034b0:	90 04 60 6c 	add  %l1, 0x6c, %o0                            <== NOT EXECUTED
     strcpy( temp_mt_entry->dev, device );                            
400034b4:	92 10 00 1b 	mov  %i3, %o1                                  <== NOT EXECUTED
400034b8:	40 00 33 9e 	call  40010330 <strcpy>                        <== NOT EXECUTED
400034bc:	d0 24 60 68 	st  %o0, [ %l1 + 0x68 ]                        <== NOT EXECUTED
  /*                                                                  
   *  The mount_point should be a directory with read/write/execute   
   *  permissions in the existing tree.                               
   */                                                                 
                                                                      
  if ( mount_point ) {                                                
400034c0:	10 80 00 04 	b  400034d0 <mount+0xac>                       <== NOT EXECUTED
400034c4:	80 a7 20 00 	cmp  %i4, 0                                    <== NOT EXECUTED
   if ( device ) {                                                    
     temp_mt_entry->dev =                                             
       (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t );
     strcpy( temp_mt_entry->dev, device );                            
   } else                                                             
     temp_mt_entry->dev = 0;                                          
400034c8:	c0 24 60 68 	clr  [ %l1 + 0x68 ]                            
  /*                                                                  
   *  The mount_point should be a directory with read/write/execute   
   *  permissions in the existing tree.                               
   */                                                                 
                                                                      
  if ( mount_point ) {                                                
400034cc:	80 a7 20 00 	cmp  %i4, 0                                    
400034d0:	22 80 00 39 	be,a   400035b4 <mount+0x190>                  
400034d4:	c0 24 60 1c 	clr  [ %l1 + 0x1c ]                            
                                                                      
    if ( rtems_filesystem_evaluate_path(                              
           mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 )
400034d8:	40 00 33 b9 	call  400103bc <strlen>                        
400034dc:	90 10 00 1c 	mov  %i4, %o0                                  
   *  permissions in the existing tree.                               
   */                                                                 
                                                                      
  if ( mount_point ) {                                                
                                                                      
    if ( rtems_filesystem_evaluate_path(                              
400034e0:	a4 07 bf ec 	add  %fp, -20, %l2                             
           mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 )
400034e4:	92 10 00 08 	mov  %o0, %o1                                  
   *  permissions in the existing tree.                               
   */                                                                 
                                                                      
  if ( mount_point ) {                                                
                                                                      
    if ( rtems_filesystem_evaluate_path(                              
400034e8:	94 10 20 07 	mov  7, %o2                                    
400034ec:	90 10 00 1c 	mov  %i4, %o0                                  
400034f0:	96 10 00 12 	mov  %l2, %o3                                  
400034f4:	7f ff fe d9 	call  40003058 <rtems_filesystem_evaluate_path>
400034f8:	98 10 20 01 	mov  1, %o4                                    
400034fc:	80 a2 3f ff 	cmp  %o0, -1                                   
40003500:	02 80 00 4b 	be  4000362c <mount+0x208>                     <== NEVER TAKEN
40003504:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
                                                                      
    /*                                                                
     * Test for node_type_h                                           
     */                                                               
                                                                      
    if (!loc.ops->node_type_h) {                                      
40003508:	c2 00 60 10 	ld  [ %g1 + 0x10 ], %g1                        
4000350c:	80 a0 60 00 	cmp  %g1, 0                                    
40003510:	02 80 00 1e 	be  40003588 <mount+0x164>                     <== NEVER TAKEN
40003514:	01 00 00 00 	nop                                            
                                                                      
    /*                                                                
     *  Test to see if it is a directory                              
     */                                                               
                                                                      
    if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
40003518:	9f c0 40 00 	call  %g1                                      
4000351c:	90 10 00 12 	mov  %l2, %o0                                  
40003520:	80 a2 20 01 	cmp  %o0, 1                                    
40003524:	02 80 00 07 	be  40003540 <mount+0x11c>                     
40003528:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
      errno = ENOTDIR;                                                
4000352c:	40 00 2f ec 	call  4000f4dc <__errno>                       
40003530:	01 00 00 00 	nop                                            
40003534:	82 10 20 14 	mov  0x14, %g1	! 14 <PROM_START+0x14>          
      goto cleanup_and_bail;                                          
40003538:	10 80 00 3e 	b  40003630 <mount+0x20c>                      
4000353c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
40003540:	05 10 00 75 	sethi  %hi(0x4001d400), %g2                    
                                                                      
  /*                                                                  
   * For each mount table entry                                       
   */                                                                 
                                                                      
  for ( the_node = rtems_filesystem_mount_table_control.first;        
40003544:	c2 00 63 d8 	ld  [ %g1 + 0x3d8 ], %g1                       
40003548:	84 10 a3 dc 	or  %g2, 0x3dc, %g2                            
        !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node );
        the_node = the_node->next ) {                                 
     the_mount_entry = (rtems_filesystem_mount_table_entry_t *) the_node;
     if ( the_mount_entry->mt_fs_root.node_access  == loc->node_access )
4000354c:	10 80 00 06 	b  40003564 <mount+0x140>                      
40003550:	c6 07 bf ec 	ld  [ %fp + -20 ], %g3                         
40003554:	80 a1 00 03 	cmp  %g4, %g3                                  
40003558:	02 80 00 08 	be  40003578 <mount+0x154>                     
4000355c:	01 00 00 00 	nop                                            
   * For each mount table entry                                       
   */                                                                 
                                                                      
  for ( the_node = rtems_filesystem_mount_table_control.first;        
        !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node );
        the_node = the_node->next ) {                                 
40003560:	c2 00 40 00 	ld  [ %g1 ], %g1                               
40003564:	80 a0 40 02 	cmp  %g1, %g2                                  
40003568:	32 bf ff fb 	bne,a   40003554 <mount+0x130>                 
4000356c:	c8 00 60 1c 	ld  [ %g1 + 0x1c ], %g4                        
     *  may have been allocated in loc should not be sent to freenode 
     *  until the system is unmounted.  It may be needed to correctly 
     *  traverse the tree.                                            
     */                                                               
                                                                      
    temp_mt_entry->mt_point_node.node_access = loc.node_access;       
40003570:	10 80 00 42 	b  40003678 <mount+0x254>                      
40003574:	c6 24 60 08 	st  %g3, [ %l1 + 8 ]                           
    /*                                                                
     *  You can only mount one file system onto a single mount point. 
     */                                                               
                                                                      
    if ( Is_node_fs_root(  &loc ) ){                                  
      errno = EBUSY;                                                  
40003578:	40 00 2f d9 	call  4000f4dc <__errno>                       
4000357c:	a4 07 bf ec 	add  %fp, -20, %l2                             
40003580:	10 bf ff ee 	b  40003538 <mount+0x114>                      
40003584:	82 10 20 10 	mov  0x10, %g1                                 
     *  This link to the parent is only done when we are dealing with system
     *  below the base file system                                    
     */                                                               
                                                                      
    if ( !loc.ops->mount_h ){                                         
      errno = ENOTSUP;                                                
40003588:	40 00 2f d5 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4000358c:	01 00 00 00 	nop                                            <== NOT EXECUTED
40003590:	10 bf ff ea 	b  40003538 <mount+0x114>                      <== NOT EXECUTED
40003594:	82 10 20 86 	mov  0x86, %g1	! 86 <PROM_START+0x86>          <== NOT EXECUTED
      goto cleanup_and_bail;                                          
    }                                                                 
                                                                      
    if ( loc.ops->mount_h( temp_mt_entry ) ) {                        
40003598:	90 10 00 11 	mov  %l1, %o0                                  
4000359c:	9f c0 40 00 	call  %g1                                      
400035a0:	a4 07 bf ec 	add  %fp, -20, %l2                             
400035a4:	80 a2 20 00 	cmp  %o0, 0                                    
400035a8:	22 80 00 0b 	be,a   400035d4 <mount+0x1b0>                  <== ALWAYS TAKEN
400035ac:	c2 06 60 24 	ld  [ %i1 + 0x24 ], %g1                        
400035b0:	30 80 00 20 	b,a   40003630 <mount+0x20c>                   <== NOT EXECUTED
     *  mt_point_node.node_access will be set to null to indicate that this
     *  is the root of the entire file system.                        
     */                                                               
                                                                      
    temp_mt_entry->mt_fs_root.node_access = NULL;                     
    temp_mt_entry->mt_fs_root.handlers = NULL;                        
400035b4:	c0 24 60 24 	clr  [ %l1 + 0x24 ]                            
    temp_mt_entry->mt_fs_root.ops = NULL;                             
400035b8:	c0 24 60 28 	clr  [ %l1 + 0x28 ]                            
                                                                      
    temp_mt_entry->mt_point_node.node_access = NULL;                  
400035bc:	c0 24 60 08 	clr  [ %l1 + 8 ]                               
    temp_mt_entry->mt_point_node.handlers = NULL;                     
400035c0:	c0 24 60 10 	clr  [ %l1 + 0x10 ]                            
    temp_mt_entry->mt_point_node.ops = NULL;                          
400035c4:	c0 24 60 14 	clr  [ %l1 + 0x14 ]                            
    temp_mt_entry->mt_point_node.mt_entry = NULL;                     
400035c8:	c0 24 60 18 	clr  [ %l1 + 0x18 ]                            
400035cc:	a4 10 20 00 	clr  %l2                                       
  }                                                                   
                                                                      
  if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) {                      
400035d0:	c2 06 60 24 	ld  [ %i1 + 0x24 ], %g1                        
400035d4:	9f c0 40 00 	call  %g1                                      
400035d8:	90 10 00 11 	mov  %l1, %o0                                  
400035dc:	80 a2 20 00 	cmp  %o0, 0                                    
400035e0:	02 80 00 0a 	be  40003608 <mount+0x1e4>                     <== ALWAYS TAKEN
400035e4:	11 10 00 75 	sethi  %hi(0x4001d400), %o0                    
	/* try to undo the mount operation */                                
	if ( loc.ops->unmount_h ) {                                          
400035e8:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          <== NOT EXECUTED
400035ec:	c2 00 60 28 	ld  [ %g1 + 0x28 ], %g1                        <== NOT EXECUTED
400035f0:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
400035f4:	02 80 00 0f 	be  40003630 <mount+0x20c>                     <== NOT EXECUTED
400035f8:	01 00 00 00 	nop                                            <== NOT EXECUTED
		loc.ops->unmount_h( temp_mt_entry );                                
400035fc:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40003600:	90 10 00 11 	mov  %l1, %o0                                  <== NOT EXECUTED
40003604:	30 80 00 0b 	b,a   40003630 <mount+0x20c>                   <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void rtems_chain_append(                         
  rtems_chain_control *the_chain,                                     
  rtems_chain_node    *the_node                                       
)                                                                     
{                                                                     
  _Chain_Append( the_chain, the_node );                               
40003608:	92 10 00 11 	mov  %l1, %o1                                  
4000360c:	40 00 0e 3c 	call  40006efc <_Chain_Append>                 
40003610:	90 12 23 d8 	or  %o0, 0x3d8, %o0                            
   */                                                                 
                                                                      
  rtems_chain_append( &rtems_filesystem_mount_table_control,          
                      &temp_mt_entry->Node );                         
                                                                      
  if ( mt_entry )                                                     
40003614:	80 a4 20 00 	cmp  %l0, 0                                    
40003618:	02 80 00 03 	be  40003624 <mount+0x200>                     <== NEVER TAKEN
4000361c:	b0 10 20 00 	clr  %i0                                       
    *mt_entry = temp_mt_entry;                                        
40003620:	e2 24 00 00 	st  %l1, [ %l0 ]                               
40003624:	81 c7 e0 08 	ret                                            
40003628:	81 e8 00 00 	restore                                        
4000362c:	a4 10 20 00 	clr  %l2                                       <== NOT EXECUTED
                                                                      
  return 0;                                                           
                                                                      
cleanup_and_bail:                                                     
                                                                      
  free( temp_mt_entry );                                              
40003630:	40 00 1e d3 	call  4000b17c <free>                          
40003634:	90 10 00 13 	mov  %l3, %o0                                  
                                                                      
  if ( loc_to_free )                                                  
40003638:	80 a4 a0 00 	cmp  %l2, 0                                    
4000363c:	02 bf ff fa 	be  40003624 <mount+0x200>                     <== NEVER TAKEN
40003640:	b0 10 3f ff 	mov  -1, %i0                                   
    rtems_filesystem_freenode( loc_to_free );                         
40003644:	c2 04 a0 0c 	ld  [ %l2 + 0xc ], %g1                         
40003648:	80 a0 60 00 	cmp  %g1, 0                                    
4000364c:	02 80 00 09 	be  40003670 <mount+0x24c>                     <== NEVER TAKEN
40003650:	01 00 00 00 	nop                                            
40003654:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
40003658:	80 a0 60 00 	cmp  %g1, 0                                    
4000365c:	02 80 00 05 	be  40003670 <mount+0x24c>                     <== NEVER TAKEN
40003660:	01 00 00 00 	nop                                            
40003664:	9f c0 40 00 	call  %g1                                      
40003668:	90 10 00 12 	mov  %l2, %o0                                  
4000366c:	b0 10 3f ff 	mov  -1, %i0                                   
                                                                      
  return -1;                                                          
}                                                                     
40003670:	81 c7 e0 08 	ret                                            
40003674:	81 e8 00 00 	restore                                        
     *  until the system is unmounted.  It may be needed to correctly 
     *  traverse the tree.                                            
     */                                                               
                                                                      
    temp_mt_entry->mt_point_node.node_access = loc.node_access;       
    temp_mt_entry->mt_point_node.handlers = loc.handlers;             
40003678:	c6 07 bf f4 	ld  [ %fp + -12 ], %g3                         
    temp_mt_entry->mt_point_node.ops = loc.ops;                       
4000367c:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          
     *  until the system is unmounted.  It may be needed to correctly 
     *  traverse the tree.                                            
     */                                                               
                                                                      
    temp_mt_entry->mt_point_node.node_access = loc.node_access;       
    temp_mt_entry->mt_point_node.handlers = loc.handlers;             
40003680:	c6 24 60 10 	st  %g3, [ %l1 + 0x10 ]                        
    temp_mt_entry->mt_point_node.ops = loc.ops;                       
    temp_mt_entry->mt_point_node.mt_entry = loc.mt_entry;             
40003684:	c6 07 bf fc 	ld  [ %fp + -4 ], %g3                          
    /*                                                                
     *  This link to the parent is only done when we are dealing with system
     *  below the base file system                                    
     */                                                               
                                                                      
    if ( !loc.ops->mount_h ){                                         
40003688:	c2 00 a0 20 	ld  [ %g2 + 0x20 ], %g1                        
     */                                                               
                                                                      
    temp_mt_entry->mt_point_node.node_access = loc.node_access;       
    temp_mt_entry->mt_point_node.handlers = loc.handlers;             
    temp_mt_entry->mt_point_node.ops = loc.ops;                       
    temp_mt_entry->mt_point_node.mt_entry = loc.mt_entry;             
4000368c:	c6 24 60 18 	st  %g3, [ %l1 + 0x18 ]                        
    /*                                                                
     *  This link to the parent is only done when we are dealing with system
     *  below the base file system                                    
     */                                                               
                                                                      
    if ( !loc.ops->mount_h ){                                         
40003690:	80 a0 60 00 	cmp  %g1, 0                                    
40003694:	12 bf ff c1 	bne  40003598 <mount+0x174>                    <== ALWAYS TAKEN
40003698:	c4 24 60 14 	st  %g2, [ %l1 + 0x14 ]                        
      errno = ENOTSUP;                                                
4000369c:	10 bf ff bb 	b  40003588 <mount+0x164>                      <== NOT EXECUTED
400036a0:	a4 07 bf ec 	add  %fp, -20, %l2                             <== NOT EXECUTED
                                                                      

4001be50 <nanosleep>: int nanosleep( const struct timespec *rqtp, struct timespec *rmtp ) {
4001be50:	9d e3 bf a0 	save  %sp, -96, %sp                            
  Watchdog_Interval  ticks;                                           
                                                                      
  if ( !_Timespec_Is_valid( rqtp ) )                                  
4001be54:	40 00 00 72 	call  4001c01c <_Timespec_Is_valid>            
4001be58:	90 10 00 18 	mov  %i0, %o0                                  
4001be5c:	80 8a 20 ff 	btst  0xff, %o0                                
4001be60:	02 80 00 0a 	be  4001be88 <nanosleep+0x38>                  
4001be64:	01 00 00 00 	nop                                            
   *  Return EINVAL if the delay interval is negative.                
   *                                                                  
   *  NOTE:  This behavior is beyond the POSIX specification.         
   *         FSU and GNU/Linux pthreads shares this behavior.         
   */                                                                 
  if ( rqtp->tv_sec < 0 || rqtp->tv_nsec < 0 )                        
4001be68:	c2 06 00 00 	ld  [ %i0 ], %g1                               
4001be6c:	80 a0 60 00 	cmp  %g1, 0                                    
4001be70:	06 80 00 06 	bl  4001be88 <nanosleep+0x38>                  <== NEVER TAKEN
4001be74:	01 00 00 00 	nop                                            
4001be78:	c2 06 20 04 	ld  [ %i0 + 4 ], %g1                           
4001be7c:	80 a0 60 00 	cmp  %g1, 0                                    
4001be80:	16 80 00 06 	bge  4001be98 <nanosleep+0x48>                 <== ALWAYS TAKEN
4001be84:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EINVAL );                   
4001be88:	7f ff ce be 	call  4000f980 <__errno>                       
4001be8c:	01 00 00 00 	nop                                            
4001be90:	10 80 00 3c 	b  4001bf80 <nanosleep+0x130>                  
4001be94:	82 10 20 16 	mov  0x16, %g1	! 16 <PROM_START+0x16>          
                                                                      
  ticks = _Timespec_To_ticks( rqtp );                                 
4001be98:	7f ff c5 5e 	call  4000d410 <_Timespec_To_ticks>            
4001be9c:	90 10 00 18 	mov  %i0, %o0                                  
   *  A nanosleep for zero time is implemented as a yield.            
   *  This behavior is also beyond the POSIX specification but is     
   *  consistent with the RTEMS API and yields desirable behavior.    
   */                                                                 
                                                                      
  if ( !ticks ) {                                                     
4001bea0:	b0 92 20 00 	orcc  %o0, 0, %i0                              
4001bea4:	12 80 00 10 	bne  4001bee4 <nanosleep+0x94>                 
4001bea8:	03 10 00 7a 	sethi  %hi(0x4001e800), %g1                    
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
4001beac:	c4 00 61 f0 	ld  [ %g1 + 0x1f0 ], %g2	! 4001e9f0 <_Thread_Dispatch_disable_level>
4001beb0:	84 00 a0 01 	inc  %g2                                       
4001beb4:	c4 20 61 f0 	st  %g2, [ %g1 + 0x1f0 ]                       
    _Thread_Disable_dispatch();                                       
      _Thread_Yield_processor();                                      
4001beb8:	7f ff b6 4f 	call  400097f4 <_Thread_Yield_processor>       
4001bebc:	01 00 00 00 	nop                                            
    _Thread_Enable_dispatch();                                        
4001bec0:	7f ff b2 fc 	call  40008ab0 <_Thread_Enable_dispatch>       
4001bec4:	01 00 00 00 	nop                                            
    if ( rmtp ) {                                                     
4001bec8:	80 a6 60 00 	cmp  %i1, 0                                    
4001becc:	02 80 00 30 	be  4001bf8c <nanosleep+0x13c>                 
4001bed0:	01 00 00 00 	nop                                            
       rmtp->tv_sec = 0;                                              
       rmtp->tv_nsec = 0;                                             
4001bed4:	c0 26 60 04 	clr  [ %i1 + 4 ]                               
  if ( !ticks ) {                                                     
    _Thread_Disable_dispatch();                                       
      _Thread_Yield_processor();                                      
    _Thread_Enable_dispatch();                                        
    if ( rmtp ) {                                                     
       rmtp->tv_sec = 0;                                              
4001bed8:	c0 26 40 00 	clr  [ %i1 ]                                   
4001bedc:	81 c7 e0 08 	ret                                            
4001bee0:	81 e8 00 00 	restore                                        
4001bee4:	c4 00 61 f0 	ld  [ %g1 + 0x1f0 ], %g2                       
4001bee8:	84 00 a0 01 	inc  %g2                                       
4001beec:	c4 20 61 f0 	st  %g2, [ %g1 + 0x1f0 ]                       
                                                                      
  /*                                                                  
   *  Block for the desired amount of time                            
   */                                                                 
  _Thread_Disable_dispatch();                                         
    _Thread_Set_state(                                                
4001bef0:	21 10 00 7a 	sethi  %hi(0x4001e800), %l0                    
4001bef4:	d0 04 22 ac 	ld  [ %l0 + 0x2ac ], %o0	! 4001eaac <_Thread_Executing>
4001bef8:	13 04 00 00 	sethi  %hi(0x10000000), %o1                    
4001befc:	7f ff b5 42 	call  40009404 <_Thread_Set_state>             
4001bf00:	92 12 60 08 	or  %o1, 8, %o1	! 10000008 <RAM_SIZE+0xfc00008>
      _Thread_Executing,                                              
      STATES_DELAYING | STATES_INTERRUPTIBLE_BY_SIGNAL                
    );                                                                
    _Watchdog_Initialize(                                             
      &_Thread_Executing->Timer,                                      
4001bf04:	c2 04 22 ac 	ld  [ %l0 + 0x2ac ], %g1                       
4001bf08:	11 10 00 7a 	sethi  %hi(0x4001e800), %o0                    
  _Thread_Disable_dispatch();                                         
    _Thread_Set_state(                                                
      _Thread_Executing,                                              
      STATES_DELAYING | STATES_INTERRUPTIBLE_BY_SIGNAL                
    );                                                                
    _Watchdog_Initialize(                                             
4001bf0c:	c4 00 60 08 	ld  [ %g1 + 8 ], %g2                           
4001bf10:	90 12 22 cc 	or  %o0, 0x2cc, %o0                            
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
  the_watchdog->id        = id;                                       
4001bf14:	c4 20 60 68 	st  %g2, [ %g1 + 0x68 ]                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
4001bf18:	92 00 60 48 	add  %g1, 0x48, %o1                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
4001bf1c:	05 10 00 22 	sethi  %hi(0x40008800), %g2                    
4001bf20:	84 10 a1 2c 	or  %g2, 0x12c, %g2	! 4000892c <_Thread_Delay_ended>
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
4001bf24:	c0 20 60 50 	clr  [ %g1 + 0x50 ]                            
  the_watchdog->routine   = routine;                                  
  the_watchdog->id        = id;                                       
  the_watchdog->user_data = user_data;                                
4001bf28:	c0 20 60 6c 	clr  [ %g1 + 0x6c ]                            
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
4001bf2c:	f0 20 60 54 	st  %i0, [ %g1 + 0x54 ]                        
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
4001bf30:	7f ff b7 60 	call  40009cb0 <_Watchdog_Insert>              
4001bf34:	c4 20 60 64 	st  %g2, [ %g1 + 0x64 ]                        
      _Thread_Delay_ended,                                            
      _Thread_Executing->Object.id,                                   
      NULL                                                            
    );                                                                
    _Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks );       
  _Thread_Enable_dispatch();                                          
4001bf38:	7f ff b2 de 	call  40008ab0 <_Thread_Enable_dispatch>       
4001bf3c:	01 00 00 00 	nop                                            
                                                                      
  /* calculate time remaining */                                      
                                                                      
  if ( rmtp ) {                                                       
4001bf40:	80 a6 60 00 	cmp  %i1, 0                                    
4001bf44:	02 80 00 12 	be  4001bf8c <nanosleep+0x13c>                 
4001bf48:	c2 04 22 ac 	ld  [ %l0 + 0x2ac ], %g1                       
    ticks -=                                                          
      _Thread_Executing->Timer.stop_time - _Thread_Executing->Timer.start_time;
                                                                      
    _Timespec_From_ticks( ticks, rmtp );                              
4001bf4c:	92 10 00 19 	mov  %i1, %o1                                  
  _Thread_Enable_dispatch();                                          
                                                                      
  /* calculate time remaining */                                      
                                                                      
  if ( rmtp ) {                                                       
    ticks -=                                                          
4001bf50:	c4 00 60 60 	ld  [ %g1 + 0x60 ], %g2                        
4001bf54:	c2 00 60 5c 	ld  [ %g1 + 0x5c ], %g1                        
4001bf58:	82 20 40 02 	sub  %g1, %g2, %g1                             
4001bf5c:	b0 00 40 18 	add  %g1, %i0, %i0                             
      _Thread_Executing->Timer.stop_time - _Thread_Executing->Timer.start_time;
                                                                      
    _Timespec_From_ticks( ticks, rmtp );                              
4001bf60:	40 00 00 1a 	call  4001bfc8 <_Timespec_From_ticks>          
4001bf64:	90 10 00 18 	mov  %i0, %o0                                  
     */                                                               
    #if defined(RTEMS_POSIX_API)                                      
        /*                                                            
         *  If there is time remaining, then we were interrupted by a signal.
         */                                                           
        if ( ticks )                                                  
4001bf68:	80 a6 20 00 	cmp  %i0, 0                                    
4001bf6c:	02 80 00 08 	be  4001bf8c <nanosleep+0x13c>                 
4001bf70:	01 00 00 00 	nop                                            
          rtems_set_errno_and_return_minus_one( EINTR );              
4001bf74:	7f ff ce 83 	call  4000f980 <__errno>                       
4001bf78:	01 00 00 00 	nop                                            
4001bf7c:	82 10 20 04 	mov  4, %g1	! 4 <PROM_START+0x4>               
4001bf80:	c2 22 00 00 	st  %g1, [ %o0 ]                               
4001bf84:	81 c7 e0 08 	ret                                            
4001bf88:	91 e8 3f ff 	restore  %g0, -1, %o0                          
    #endif                                                            
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
4001bf8c:	81 c7 e0 08 	ret                                            
4001bf90:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

400036ac <newlib_delete_hook>: void newlib_delete_hook( rtems_tcb *current_task, rtems_tcb *deleted_task ) {
400036ac:	9d e3 bf a0 	save  %sp, -96, %sp                            
                                                                      
  /*                                                                  
   * The reentrancy structure was allocated by newlib using malloc()  
   */                                                                 
                                                                      
  if (current_task == deleted_task) {                                 
400036b0:	80 a6 00 19 	cmp  %i0, %i1                                  
400036b4:	32 80 00 04 	bne,a   400036c4 <newlib_delete_hook+0x18>     
400036b8:	e0 06 61 58 	ld  [ %i1 + 0x158 ], %l0                       
    ptr = _REENT;                                                     
400036bc:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
400036c0:	e0 00 63 c0 	ld  [ %g1 + 0x3c0 ], %l0	! 4001cfc0 <_impure_ptr>
  } else {                                                            
    ptr = deleted_task->libc_reent;                                   
  }                                                                   
                                                                      
  if (ptr && ptr != _global_impure_ptr) {                             
400036c4:	80 a4 20 00 	cmp  %l0, 0                                    
400036c8:	02 80 00 0b 	be  400036f4 <newlib_delete_hook+0x48>         <== NEVER TAKEN
400036cc:	03 10 00 72 	sethi  %hi(0x4001c800), %g1                    
400036d0:	c2 00 60 f8 	ld  [ %g1 + 0xf8 ], %g1	! 4001c8f8 <_global_impure_ptr>
400036d4:	80 a4 00 01 	cmp  %l0, %g1                                  
400036d8:	02 80 00 07 	be  400036f4 <newlib_delete_hook+0x48>         
400036dc:	13 10 00 0d 	sethi  %hi(0x40003400), %o1                    
    _reclaim_reent(ptr);                                              
*/                                                                    
    /*                                                                
     *  Just in case there are some buffers lying around.             
     */                                                               
    _fwalk(ptr, newlib_free_buffers);                                 
400036e0:	90 10 00 10 	mov  %l0, %o0                                  
400036e4:	40 00 31 98 	call  4000fd44 <_fwalk>                        
400036e8:	92 12 63 10 	or  %o1, 0x310, %o1                            
#if REENT_MALLOCED                                                    
    free(ptr);                                                        
#else                                                                 
    _Workspace_Free(ptr);                                             
400036ec:	40 00 18 f8 	call  40009acc <_Workspace_Free>               
400036f0:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
  /*                                                                  
   * Require the switch back to another task to install its own       
   */                                                                 
                                                                      
  if ( current_task == deleted_task ) {                               
400036f4:	80 a6 00 19 	cmp  %i0, %i1                                  
400036f8:	12 80 00 04 	bne  40003708 <newlib_delete_hook+0x5c>        
400036fc:	c0 26 61 58 	clr  [ %i1 + 0x158 ]                           
    _REENT = 0;                                                       
40003700:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
40003704:	c0 20 63 c0 	clr  [ %g1 + 0x3c0 ]	! 4001cfc0 <_impure_ptr>  
40003708:	81 c7 e0 08 	ret                                            
4000370c:	81 e8 00 00 	restore                                        
                                                                      

40003710 <newlib_free_buffers>: */ int newlib_free_buffers( FILE *fp ) {
40003710:	9d e3 bf a0 	save  %sp, -96, %sp                            
  switch ( fileno(fp) ) {                                             
40003714:	40 00 30 8c 	call  4000f944 <fileno>                        
40003718:	90 10 00 18 	mov  %i0, %o0                                  
4000371c:	80 a2 20 02 	cmp  %o0, 2                                    
40003720:	18 80 00 0e 	bgu  40003758 <newlib_free_buffers+0x48>       <== NEVER TAKEN
40003724:	01 00 00 00 	nop                                            
    case 0:                                                           
    case 1:                                                           
    case 2:                                                           
      if (fp->_flags & __SMBF) {                                      
40003728:	c2 16 20 0c 	lduh  [ %i0 + 0xc ], %g1                       
4000372c:	80 88 60 80 	btst  0x80, %g1                                
40003730:	02 80 00 0c 	be  40003760 <newlib_free_buffers+0x50>        <== ALWAYS TAKEN
40003734:	01 00 00 00 	nop                                            
        free( fp->_bf._base );                                        
40003738:	40 00 1e 91 	call  4000b17c <free>                          <== NOT EXECUTED
4000373c:	d0 06 20 10 	ld  [ %i0 + 0x10 ], %o0                        <== NOT EXECUTED
        fp->_flags &= ~__SMBF;                                        
40003740:	c2 16 20 0c 	lduh  [ %i0 + 0xc ], %g1                       <== NOT EXECUTED
        fp->_bf._base = fp->_p = (unsigned char *) NULL;              
40003744:	c0 26 20 10 	clr  [ %i0 + 0x10 ]                            <== NOT EXECUTED
    case 0:                                                           
    case 1:                                                           
    case 2:                                                           
      if (fp->_flags & __SMBF) {                                      
        free( fp->_bf._base );                                        
        fp->_flags &= ~__SMBF;                                        
40003748:	82 08 7f 7f 	and  %g1, -129, %g1                            <== NOT EXECUTED
        fp->_bf._base = fp->_p = (unsigned char *) NULL;              
4000374c:	c0 26 00 00 	clr  [ %i0 ]                                   <== NOT EXECUTED
    case 0:                                                           
    case 1:                                                           
    case 2:                                                           
      if (fp->_flags & __SMBF) {                                      
        free( fp->_bf._base );                                        
        fp->_flags &= ~__SMBF;                                        
40003750:	10 80 00 04 	b  40003760 <newlib_free_buffers+0x50>         <== NOT EXECUTED
40003754:	c2 36 20 0c 	sth  %g1, [ %i0 + 0xc ]                        <== NOT EXECUTED
        fp->_bf._base = fp->_p = (unsigned char *) NULL;              
      }                                                               
      break;                                                          
    default:                                                          
     fclose(fp);                                                      
40003758:	40 00 2f b9 	call  4000f63c <fclose>                        <== NOT EXECUTED
4000375c:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
  }                                                                   
  return 0;                                                           
}                                                                     
40003760:	81 c7 e0 08 	ret                                            
40003764:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

40003844 <null_initialize>: rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) {
40003844:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_device_driver status;                                         
                                                                      
  if ( !initialized ) {                                               
40003848:	03 10 00 89 	sethi  %hi(0x40022400), %g1                    
4000384c:	c4 48 60 ec 	ldsb  [ %g1 + 0xec ], %g2	! 400224ec <initialized>
40003850:	80 a0 a0 00 	cmp  %g2, 0                                    
40003854:	12 80 00 0e 	bne  4000388c <null_initialize+0x48>           
40003858:	84 10 20 01 	mov  1, %g2                                    
    initialized = 1;                                                  
                                                                      
    status = rtems_io_register_name(                                  
4000385c:	11 10 00 80 	sethi  %hi(0x40020000), %o0                    
)                                                                     
{                                                                     
  rtems_device_driver status;                                         
                                                                      
  if ( !initialized ) {                                               
    initialized = 1;                                                  
40003860:	c4 28 60 ec 	stb  %g2, [ %g1 + 0xec ]                       
                                                                      
    status = rtems_io_register_name(                                  
40003864:	90 12 20 d8 	or  %o0, 0xd8, %o0                             
40003868:	92 10 00 18 	mov  %i0, %o1                                  
4000386c:	40 00 00 50 	call  400039ac <rtems_io_register_name>        
40003870:	94 10 20 00 	clr  %o2                                       
      "/dev/null",                                                    
      major,                                                          
      (rtems_device_minor_number) 0                                   
    );                                                                
                                                                      
    if (status != RTEMS_SUCCESSFUL)                                   
40003874:	80 a2 20 00 	cmp  %o0, 0                                    
40003878:	02 80 00 04 	be  40003888 <null_initialize+0x44>            <== ALWAYS TAKEN
4000387c:	03 10 00 89 	sethi  %hi(0x40022400), %g1                    
      rtems_fatal_error_occurred(status);                             
40003880:	40 00 10 81 	call  40007a84 <rtems_fatal_error_occurred>    <== NOT EXECUTED
40003884:	01 00 00 00 	nop                                            <== NOT EXECUTED
                                                                      
    NULL_major = major;                                               
40003888:	f0 20 63 d8 	st  %i0, [ %g1 + 0x3d8 ]                       
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
4000388c:	81 c7 e0 08 	ret                                            
40003890:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

40003820 <null_write>: void *pargp ) { rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp; if ( rw_args )
40003820:	80 a2 a0 00 	cmp  %o2, 0                                    
40003824:	02 80 00 04 	be  40003834 <null_write+0x14>                 <== ALWAYS TAKEN
40003828:	01 00 00 00 	nop                                            
    rw_args->bytes_moved = rw_args->count;                            
4000382c:	c2 02 a0 14 	ld  [ %o2 + 0x14 ], %g1                        <== NOT EXECUTED
40003830:	c2 22 a0 1c 	st  %g1, [ %o2 + 0x1c ]                        <== NOT EXECUTED
                                                                      
  return NULL_SUCCESSFUL;                                             
}                                                                     
40003834:	81 c3 e0 08 	retl                                           
40003838:	90 10 20 00 	clr  %o0                                       
                                                                      

40003988 <open>: int open( const char *pathname, int flags, ... ) {
40003988:	9d e3 bf 88 	save  %sp, -120, %sp                           
    eval_flags |= RTEMS_LIBIO_PERMS_READ;                             
  if ( ( status & _FWRITE ) == _FWRITE )                              
    eval_flags |= RTEMS_LIBIO_PERMS_WRITE;                            
                                                                      
                                                                      
  va_start(ap, flags);                                                
4000398c:	f4 27 a0 4c 	st  %i2, [ %fp + 0x4c ]                        
40003990:	f6 27 a0 50 	st  %i3, [ %fp + 0x50 ]                        
40003994:	f8 27 a0 54 	st  %i4, [ %fp + 0x54 ]                        
40003998:	fa 27 a0 58 	st  %i5, [ %fp + 0x58 ]                        
  /*                                                                  
   * Set the Evaluation flags                                         
   */                                                                 
                                                                      
  eval_flags = 0;                                                     
  status = flags + 1;                                                 
4000399c:	a2 06 60 01 	add  %i1, 1, %l1                               
  if ( ( status & _FREAD ) == _FREAD )                                
    eval_flags |= RTEMS_LIBIO_PERMS_READ;                             
  if ( ( status & _FWRITE ) == _FWRITE )                              
400039a0:	80 8c 60 02 	btst  2, %l1                                   
   * Set the Evaluation flags                                         
   */                                                                 
                                                                      
  eval_flags = 0;                                                     
  status = flags + 1;                                                 
  if ( ( status & _FREAD ) == _FREAD )                                
400039a4:	a2 0c 60 01 	and  %l1, 1, %l1                               
    eval_flags |= RTEMS_LIBIO_PERMS_READ;                             
  if ( ( status & _FWRITE ) == _FWRITE )                              
400039a8:	02 80 00 03 	be  400039b4 <open+0x2c>                       
400039ac:	a3 2c 60 02 	sll  %l1, 2, %l1                               
    eval_flags |= RTEMS_LIBIO_PERMS_WRITE;                            
400039b0:	a2 14 60 02 	or  %l1, 2, %l1                                
                                                                      
                                                                      
  va_start(ap, flags);                                                
                                                                      
  mode = va_arg( ap, int );                                           
400039b4:	82 07 a0 50 	add  %fp, 0x50, %g1                            
400039b8:	e4 07 a0 4c 	ld  [ %fp + 0x4c ], %l2                        
400039bc:	c2 27 bf fc 	st  %g1, [ %fp + -4 ]                          
   *             code does not require changes here since network file
   *             descriptors are obtained using socket(), not open(). 
   */                                                                 
                                                                      
  /* allocate a file control block */                                 
  iop = rtems_libio_allocate();                                       
400039c0:	40 00 1e ea 	call  4000b568 <rtems_libio_allocate>          
400039c4:	a6 10 20 17 	mov  0x17, %l3                                 
  if ( iop == 0 ) {                                                   
400039c8:	a0 92 20 00 	orcc  %o0, 0, %l0                              
400039cc:	02 80 00 98 	be  40003c2c <open+0x2a4>                      
400039d0:	01 00 00 00 	nop                                            
  /*                                                                  
   *  See if the file exists.                                         
   */                                                                 
                                                                      
  status = rtems_filesystem_evaluate_path(                            
    pathname, strlen( pathname ), eval_flags, &loc, true );           
400039d4:	40 00 32 7a 	call  400103bc <strlen>                        
400039d8:	90 10 00 18 	mov  %i0, %o0                                  
                                                                      
  /*                                                                  
   *  See if the file exists.                                         
   */                                                                 
                                                                      
  status = rtems_filesystem_evaluate_path(                            
400039dc:	94 10 00 11 	mov  %l1, %o2                                  
    pathname, strlen( pathname ), eval_flags, &loc, true );           
400039e0:	92 10 00 08 	mov  %o0, %o1                                  
                                                                      
  /*                                                                  
   *  See if the file exists.                                         
   */                                                                 
                                                                      
  status = rtems_filesystem_evaluate_path(                            
400039e4:	a2 07 bf e8 	add  %fp, -24, %l1                             
400039e8:	90 10 00 18 	mov  %i0, %o0                                  
400039ec:	96 10 00 11 	mov  %l1, %o3                                  
400039f0:	7f ff fd 9a 	call  40003058 <rtems_filesystem_evaluate_path>
400039f4:	98 10 20 01 	mov  1, %o4                                    
    pathname, strlen( pathname ), eval_flags, &loc, true );           
                                                                      
  if ( status == -1 ) {                                               
400039f8:	80 a2 3f ff 	cmp  %o0, -1                                   
400039fc:	12 80 00 22 	bne  40003a84 <open+0xfc>                      
40003a00:	82 0e 6a 00 	and  %i1, 0xa00, %g1                           
    if ( errno != ENOENT ) {                                          
40003a04:	40 00 2e b6 	call  4000f4dc <__errno>                       
40003a08:	a8 10 20 00 	clr  %l4                                       
40003a0c:	c2 02 00 00 	ld  [ %o0 ], %g1                               
40003a10:	80 a0 60 02 	cmp  %g1, 2                                    
40003a14:	12 80 00 3e 	bne  40003b0c <open+0x184>                     
40003a18:	80 8e 62 00 	btst  0x200, %i1                               
      rc = errno;                                                     
      goto done;                                                      
    }                                                                 
                                                                      
    /* If the file does not exist and we are not trying to create it--> error */
    if ( !(flags & O_CREAT) ) {                                       
40003a1c:	a8 10 20 00 	clr  %l4                                       
40003a20:	02 80 00 71 	be  40003be4 <open+0x25c>                      
40003a24:	a6 10 20 02 	mov  2, %l3                                    
      rc = ENOENT;                                                    
      goto done;                                                      
    }                                                                 
                                                                      
    /* Create the node for the new regular file */                    
    rc = mknod( pathname, S_IFREG | mode, 0LL );                      
40003a28:	13 00 00 20 	sethi  %hi(0x8000), %o1                        
40003a2c:	90 10 00 18 	mov  %i0, %o0                                  
40003a30:	92 14 80 09 	or  %l2, %o1, %o1                              
40003a34:	94 10 20 00 	clr  %o2                                       
40003a38:	7f ff fe 26 	call  400032d0 <mknod>                         
40003a3c:	96 10 20 00 	clr  %o3                                       
    if ( rc ) {                                                       
40003a40:	80 a2 20 00 	cmp  %o0, 0                                    
40003a44:	12 80 00 32 	bne  40003b0c <open+0x184>                     <== NEVER TAKEN
40003a48:	01 00 00 00 	nop                                            
      rc = errno;                                                     
      goto done;                                                      
    }                                                                 
                                                                      
    /* Sanity check to see if the file name exists after the mknod() */
    status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 0x0, &loc, true );
40003a4c:	40 00 32 5c 	call  400103bc <strlen>                        
40003a50:	90 10 00 18 	mov  %i0, %o0                                  
40003a54:	96 10 00 11 	mov  %l1, %o3                                  
40003a58:	92 10 00 08 	mov  %o0, %o1                                  
40003a5c:	94 10 20 00 	clr  %o2                                       
40003a60:	90 10 00 18 	mov  %i0, %o0                                  
40003a64:	98 10 20 01 	mov  1, %o4                                    
40003a68:	7f ff fd 7c 	call  40003058 <rtems_filesystem_evaluate_path>
40003a6c:	a8 10 20 00 	clr  %l4                                       
    if ( status != 0 ) {   /* The file did not exist */               
40003a70:	80 a2 20 00 	cmp  %o0, 0                                    
40003a74:	12 80 00 5c 	bne  40003be4 <open+0x25c>                     <== NEVER TAKEN
40003a78:	a6 10 20 0d 	mov  0xd, %l3                                  
  /*                                                                  
   *  Fill in the file control block based on the loc structure       
   *  returned by successful path evaluation.                         
   */                                                                 
                                                                      
  iop->handlers   = loc.handlers;                                     
40003a7c:	10 80 00 07 	b  40003a98 <open+0x110>                       
40003a80:	c2 07 bf f0 	ld  [ %fp + -16 ], %g1                         
    if ( status != 0 ) {   /* The file did not exist */               
      rc = EACCES;                                                    
      goto done;                                                      
    }                                                                 
                                                                      
  } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) {        
40003a84:	a8 10 00 11 	mov  %l1, %l4                                  
40003a88:	80 a0 6a 00 	cmp  %g1, 0xa00                                
40003a8c:	02 80 00 56 	be  40003be4 <open+0x25c>                      
40003a90:	a6 10 20 11 	mov  0x11, %l3                                 
  /*                                                                  
   *  Fill in the file control block based on the loc structure       
   *  returned by successful path evaluation.                         
   */                                                                 
                                                                      
  iop->handlers   = loc.handlers;                                     
40003a94:	c2 07 bf f0 	ld  [ %fp + -16 ], %g1                         
  iop->file_info  = loc.node_access;                                  
  iop->flags     |= rtems_libio_fcntl_flags( flags );                 
40003a98:	e2 04 20 18 	ld  [ %l0 + 0x18 ], %l1                        
  /*                                                                  
   *  Fill in the file control block based on the loc structure       
   *  returned by successful path evaluation.                         
   */                                                                 
                                                                      
  iop->handlers   = loc.handlers;                                     
40003a9c:	c2 24 20 40 	st  %g1, [ %l0 + 0x40 ]                        
  iop->file_info  = loc.node_access;                                  
40003aa0:	c2 07 bf e8 	ld  [ %fp + -24 ], %g1                         
  iop->flags     |= rtems_libio_fcntl_flags( flags );                 
40003aa4:	90 10 00 19 	mov  %i1, %o0                                  
40003aa8:	40 00 1e e4 	call  4000b638 <rtems_libio_fcntl_flags>       
40003aac:	c2 24 20 3c 	st  %g1, [ %l0 + 0x3c ]                        
40003ab0:	90 12 00 11 	or  %o0, %l1, %o0                              
  iop->pathinfo   = loc;                                              
40003ab4:	94 10 20 14 	mov  0x14, %o2                                 
   *  returned by successful path evaluation.                         
   */                                                                 
                                                                      
  iop->handlers   = loc.handlers;                                     
  iop->file_info  = loc.node_access;                                  
  iop->flags     |= rtems_libio_fcntl_flags( flags );                 
40003ab8:	d0 24 20 18 	st  %o0, [ %l0 + 0x18 ]                        
  iop->pathinfo   = loc;                                              
40003abc:	a2 07 bf e8 	add  %fp, -24, %l1                             
40003ac0:	90 04 20 1c 	add  %l0, 0x1c, %o0                            
40003ac4:	40 00 30 c2 	call  4000fdcc <memcpy>                        
40003ac8:	92 10 00 11 	mov  %l1, %o1                                  
                                                                      
  if ( !iop->handlers || !iop->handlers->open_h ) {                   
40003acc:	c2 04 20 40 	ld  [ %l0 + 0x40 ], %g1                        
40003ad0:	80 a0 60 00 	cmp  %g1, 0                                    
40003ad4:	22 80 00 6a 	be,a   40003c7c <open+0x2f4>                   <== NEVER TAKEN
40003ad8:	a8 07 bf e8 	add  %fp, -24, %l4                             <== NOT EXECUTED
40003adc:	c2 00 40 00 	ld  [ %g1 ], %g1                               
40003ae0:	80 a0 60 00 	cmp  %g1, 0                                    
40003ae4:	02 80 00 65 	be  40003c78 <open+0x2f0>                      <== NEVER TAKEN
40003ae8:	92 10 00 18 	mov  %i0, %o1                                  
    rc = ENOTSUP;                                                     
    goto done;                                                        
  }                                                                   
                                                                      
  rc = (*iop->handlers->open_h)( iop, pathname, flags, mode );        
40003aec:	96 10 00 12 	mov  %l2, %o3                                  
40003af0:	90 10 00 10 	mov  %l0, %o0                                  
40003af4:	9f c0 40 00 	call  %g1                                      
40003af8:	94 10 00 19 	mov  %i1, %o2                                  
  if ( rc ) {                                                         
40003afc:	80 a2 20 00 	cmp  %o0, 0                                    
40003b00:	02 80 00 07 	be  40003b1c <open+0x194>                      
40003b04:	80 8e 64 00 	btst  0x400, %i1                               
    rc = errno;                                                       
40003b08:	a8 10 00 11 	mov  %l1, %l4                                  
40003b0c:	40 00 2e 74 	call  4000f4dc <__errno>                       
40003b10:	01 00 00 00 	nop                                            
    goto done;                                                        
40003b14:	10 80 00 31 	b  40003bd8 <open+0x250>                       
40003b18:	e6 02 00 00 	ld  [ %o0 ], %l3                               
                                                                      
  /*                                                                  
   *  Optionally truncate the file.                                   
   */                                                                 
                                                                      
  if ( (flags & O_TRUNC) == O_TRUNC ) {                               
40003b1c:	02 80 00 49 	be  40003c40 <open+0x2b8>                      
40003b20:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
    rc = ftruncate( iop - rtems_libio_iops, 0 );                      
40003b24:	c2 00 63 9c 	ld  [ %g1 + 0x39c ], %g1	! 4001d79c <rtems_libio_iops>
40003b28:	92 10 20 00 	clr  %o1                                       
40003b2c:	82 24 00 01 	sub  %l0, %g1, %g1                             
40003b30:	83 38 60 03 	sra  %g1, 3, %g1                               
40003b34:	87 28 60 06 	sll  %g1, 6, %g3                               
40003b38:	85 28 60 03 	sll  %g1, 3, %g2                               
40003b3c:	84 20 c0 02 	sub  %g3, %g2, %g2                             
40003b40:	87 28 a0 06 	sll  %g2, 6, %g3                               
40003b44:	84 00 80 03 	add  %g2, %g3, %g2                             
40003b48:	84 00 80 01 	add  %g2, %g1, %g2                             
40003b4c:	91 28 a0 0f 	sll  %g2, 0xf, %o0                             
40003b50:	84 22 00 02 	sub  %o0, %g2, %g2                             
40003b54:	94 10 20 00 	clr  %o2                                       
40003b58:	91 28 a0 03 	sll  %g2, 3, %o0                               
40003b5c:	40 00 1d b2 	call  4000b224 <ftruncate>                     
40003b60:	90 02 00 01 	add  %o0, %g1, %o0                             
    if ( rc ) {                                                       
40003b64:	a6 92 20 00 	orcc  %o0, 0, %l3                              
40003b68:	02 80 00 36 	be  40003c40 <open+0x2b8>                      <== ALWAYS TAKEN
40003b6c:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
      if(errno) rc = errno;                                           
40003b70:	40 00 2e 5b 	call  4000f4dc <__errno>                       <== NOT EXECUTED
40003b74:	01 00 00 00 	nop                                            <== NOT EXECUTED
40003b78:	c2 02 00 00 	ld  [ %o0 ], %g1                               <== NOT EXECUTED
40003b7c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40003b80:	02 80 00 06 	be  40003b98 <open+0x210>                      <== NOT EXECUTED
40003b84:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    <== NOT EXECUTED
40003b88:	40 00 2e 55 	call  4000f4dc <__errno>                       <== NOT EXECUTED
40003b8c:	01 00 00 00 	nop                                            <== NOT EXECUTED
40003b90:	e6 02 00 00 	ld  [ %o0 ], %l3                               <== NOT EXECUTED
      close( iop - rtems_libio_iops );                                
40003b94:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    <== NOT EXECUTED
40003b98:	c2 00 63 9c 	ld  [ %g1 + 0x39c ], %g1	! 4001d79c <rtems_libio_iops><== NOT EXECUTED
40003b9c:	a8 10 20 00 	clr  %l4                                       <== NOT EXECUTED
40003ba0:	a0 24 00 01 	sub  %l0, %g1, %l0                             <== NOT EXECUTED
40003ba4:	83 3c 20 03 	sra  %l0, 3, %g1                               <== NOT EXECUTED
40003ba8:	87 28 60 06 	sll  %g1, 6, %g3                               <== NOT EXECUTED
40003bac:	85 28 60 03 	sll  %g1, 3, %g2                               <== NOT EXECUTED
40003bb0:	84 20 c0 02 	sub  %g3, %g2, %g2                             <== NOT EXECUTED
40003bb4:	87 28 a0 06 	sll  %g2, 6, %g3                               <== NOT EXECUTED
40003bb8:	84 00 80 03 	add  %g2, %g3, %g2                             <== NOT EXECUTED
40003bbc:	84 00 80 01 	add  %g2, %g1, %g2                             <== NOT EXECUTED
40003bc0:	91 28 a0 0f 	sll  %g2, 0xf, %o0                             <== NOT EXECUTED
40003bc4:	84 22 00 02 	sub  %o0, %g2, %g2                             <== NOT EXECUTED
40003bc8:	a0 10 20 00 	clr  %l0                                       <== NOT EXECUTED
40003bcc:	91 28 a0 03 	sll  %g2, 3, %o0                               <== NOT EXECUTED
40003bd0:	40 00 1d 3c 	call  4000b0c0 <close>                         <== NOT EXECUTED
40003bd4:	90 02 00 01 	add  %o0, %g1, %o0                             <== NOT EXECUTED
   */                                                                 
                                                                      
done:                                                                 
  va_end(ap);                                                         
                                                                      
  if ( rc ) {                                                         
40003bd8:	80 a4 e0 00 	cmp  %l3, 0                                    
40003bdc:	02 80 00 19 	be  40003c40 <open+0x2b8>                      <== NEVER TAKEN
40003be0:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
    if ( iop )                                                        
40003be4:	80 a4 20 00 	cmp  %l0, 0                                    
40003be8:	02 80 00 05 	be  40003bfc <open+0x274>                      <== NEVER TAKEN
40003bec:	80 a5 20 00 	cmp  %l4, 0                                    
      rtems_libio_free( iop );                                        
40003bf0:	40 00 1e 46 	call  4000b508 <rtems_libio_free>              
40003bf4:	90 10 00 10 	mov  %l0, %o0                                  
    if ( loc_to_free )                                                
40003bf8:	80 a5 20 00 	cmp  %l4, 0                                    
40003bfc:	02 80 00 0c 	be  40003c2c <open+0x2a4>                      
40003c00:	01 00 00 00 	nop                                            
      rtems_filesystem_freenode( loc_to_free );                       
40003c04:	c2 05 20 0c 	ld  [ %l4 + 0xc ], %g1                         
40003c08:	80 a0 60 00 	cmp  %g1, 0                                    
40003c0c:	02 80 00 08 	be  40003c2c <open+0x2a4>                      <== NEVER TAKEN
40003c10:	01 00 00 00 	nop                                            
40003c14:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
40003c18:	80 a0 60 00 	cmp  %g1, 0                                    
40003c1c:	02 80 00 04 	be  40003c2c <open+0x2a4>                      <== NEVER TAKEN
40003c20:	01 00 00 00 	nop                                            
40003c24:	9f c0 40 00 	call  %g1                                      
40003c28:	90 10 00 14 	mov  %l4, %o0                                  
    rtems_set_errno_and_return_minus_one( rc );                       
40003c2c:	40 00 2e 2c 	call  4000f4dc <__errno>                       
40003c30:	b0 10 3f ff 	mov  -1, %i0                                   
40003c34:	e6 22 00 00 	st  %l3, [ %o0 ]                               
40003c38:	81 c7 e0 08 	ret                                            
40003c3c:	81 e8 00 00 	restore                                        
  }                                                                   
                                                                      
  return iop - rtems_libio_iops;                                      
40003c40:	c2 00 63 9c 	ld  [ %g1 + 0x39c ], %g1                       
40003c44:	a0 24 00 01 	sub  %l0, %g1, %l0                             
40003c48:	a1 3c 20 03 	sra  %l0, 3, %l0                               
40003c4c:	85 2c 20 06 	sll  %l0, 6, %g2                               
40003c50:	83 2c 20 03 	sll  %l0, 3, %g1                               
40003c54:	82 20 80 01 	sub  %g2, %g1, %g1                             
40003c58:	85 28 60 06 	sll  %g1, 6, %g2                               
40003c5c:	82 00 40 02 	add  %g1, %g2, %g1                             
40003c60:	82 00 40 10 	add  %g1, %l0, %g1                             
40003c64:	b1 28 60 0f 	sll  %g1, 0xf, %i0                             
40003c68:	b0 26 00 01 	sub  %i0, %g1, %i0                             
40003c6c:	b1 2e 20 03 	sll  %i0, 3, %i0                               
}                                                                     
40003c70:	81 c7 e0 08 	ret                                            
40003c74:	91 ee 00 10 	restore  %i0, %l0, %o0                         
    if ( loc_to_free )                                                
      rtems_filesystem_freenode( loc_to_free );                       
    rtems_set_errno_and_return_minus_one( rc );                       
  }                                                                   
                                                                      
  return iop - rtems_libio_iops;                                      
40003c78:	a8 07 bf e8 	add  %fp, -24, %l4                             <== NOT EXECUTED
40003c7c:	10 bf ff da 	b  40003be4 <open+0x25c>                       <== NOT EXECUTED
40003c80:	a6 10 20 86 	mov  0x86, %l3                                 <== NOT EXECUTED
                                                                      

40003914 <open_dev_console>: /* * This is a replaceable stub which opens the console, if present. */ void open_dev_console(void) {
40003914:	9d e3 bf a0 	save  %sp, -96, %sp                            
  int      stderr_fd;                                                 
                                                                      
  /*                                                                  
   * Attempt to open /dev/console.                                    
   */                                                                 
  if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) {         
40003918:	21 10 00 6f 	sethi  %hi(0x4001bc00), %l0                    
4000391c:	92 10 20 00 	clr  %o1                                       
40003920:	90 14 22 08 	or  %l0, 0x208, %o0                            
40003924:	40 00 00 19 	call  40003988 <open>                          
40003928:	94 10 20 00 	clr  %o2                                       
4000392c:	80 a2 3f ff 	cmp  %o0, -1                                   
40003930:	02 80 00 14 	be  40003980 <open_dev_console+0x6c>           
40003934:	90 14 22 08 	or  %l0, 0x208, %o0                            
                                                                      
  /*                                                                  
   *  But if we find /dev/console once, we better find it twice more  
   *  or something is REALLY wrong.                                   
   */                                                                 
  if ((stdout_fd = open("/dev/console", O_WRONLY, 0)) == -1)          
40003938:	92 10 20 01 	mov  1, %o1                                    
4000393c:	40 00 00 13 	call  40003988 <open>                          
40003940:	94 10 20 00 	clr  %o2                                       
40003944:	80 a2 3f ff 	cmp  %o0, -1                                   
40003948:	32 80 00 05 	bne,a   4000395c <open_dev_console+0x48>       <== ALWAYS TAKEN
4000394c:	90 14 22 08 	or  %l0, 0x208, %o0                            
    rtems_fatal_error_occurred( 0x55544431 );  /* error STD1 */       
40003950:	11 15 55 11 	sethi  %hi(0x55544400), %o0                    <== NOT EXECUTED
40003954:	10 80 00 09 	b  40003978 <open_dev_console+0x64>            <== NOT EXECUTED
40003958:	90 12 20 31 	or  %o0, 0x31, %o0	! 55544431 <RAM_END+0x15144431><== NOT EXECUTED
                                                                      
  if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1)          
4000395c:	92 10 20 01 	mov  1, %o1                                    
40003960:	40 00 00 0a 	call  40003988 <open>                          
40003964:	94 10 20 00 	clr  %o2                                       
40003968:	80 a2 3f ff 	cmp  %o0, -1                                   
4000396c:	12 80 00 05 	bne  40003980 <open_dev_console+0x6c>          <== ALWAYS TAKEN
40003970:	11 15 55 11 	sethi  %hi(0x55544400), %o0                    
    rtems_fatal_error_occurred( 0x55544432 );  /* error STD2 */       
40003974:	90 12 20 32 	or  %o0, 0x32, %o0	! 55544432 <RAM_END+0x15144432><== NOT EXECUTED
40003978:	40 00 0c 86 	call  40006b90 <rtems_fatal_error_occurred>    <== NOT EXECUTED
4000397c:	01 00 00 00 	nop                                            <== NOT EXECUTED
40003980:	81 c7 e0 08 	ret                                            
40003984:	81 e8 00 00 	restore                                        
                                                                      

40004404 <oproc>: /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) {
40004404:	9d e3 bf a0 	save  %sp, -96, %sp                            
	int	i;                                                               
                                                                      
	if (tty->termios.c_oflag & OPOST) {                                  
40004408:	c2 06 60 34 	ld  [ %i1 + 0x34 ], %g1                        
4000440c:	80 88 60 01 	btst  1, %g1                                   
40004410:	02 80 00 5a 	be  40004578 <oproc+0x174>                     <== NEVER TAKEN
40004414:	f0 2f a0 44 	stb  %i0, [ %fp + 0x44 ]                       
		switch (c) {                                                        
40004418:	84 0e 20 ff 	and  %i0, 0xff, %g2                            
4000441c:	80 a0 a0 09 	cmp  %g2, 9                                    
40004420:	22 80 00 2b 	be,a   400044cc <oproc+0xc8>                   
40004424:	c4 06 60 28 	ld  [ %i1 + 0x28 ], %g2                        
40004428:	18 80 00 07 	bgu  40004444 <oproc+0x40>                     <== ALWAYS TAKEN
4000442c:	80 a0 a0 0a 	cmp  %g2, 0xa                                  
40004430:	80 a0 a0 08 	cmp  %g2, 8                                    <== NOT EXECUTED
40004434:	12 80 00 3a 	bne  4000451c <oproc+0x118>                    <== NOT EXECUTED
40004438:	80 88 60 02 	btst  2, %g1                                   <== NOT EXECUTED
			}                                                                  
			tty->column += i;                                                  
			break;                                                             
                                                                      
		case '\b':                                                          
			if (tty->column > 0)                                               
4000443c:	10 80 00 33 	b  40004508 <oproc+0x104>                      <== NOT EXECUTED
40004440:	c2 06 60 28 	ld  [ %i1 + 0x28 ], %g1                        <== NOT EXECUTED
oproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
	int	i;                                                               
                                                                      
	if (tty->termios.c_oflag & OPOST) {                                  
		switch (c) {                                                        
40004444:	02 80 00 06 	be  4000445c <oproc+0x58>                      
40004448:	80 a0 a0 0d 	cmp  %g2, 0xd                                  
4000444c:	32 80 00 34 	bne,a   4000451c <oproc+0x118>                 <== ALWAYS TAKEN
40004450:	80 88 60 02 	btst  2, %g1                                   
				tty->column = 0;                                                  
			}                                                                  
			break;                                                             
                                                                      
		case '\r':                                                          
			if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))          
40004454:	10 80 00 10 	b  40004494 <oproc+0x90>                       <== NOT EXECUTED
40004458:	80 88 60 10 	btst  0x10, %g1                                <== NOT EXECUTED
	int	i;                                                               
                                                                      
	if (tty->termios.c_oflag & OPOST) {                                  
		switch (c) {                                                        
		case '\n':                                                          
			if (tty->termios.c_oflag & ONLRET)                                 
4000445c:	80 88 60 20 	btst  0x20, %g1                                
40004460:	32 80 00 02 	bne,a   40004468 <oproc+0x64>                  <== NEVER TAKEN
40004464:	c0 26 60 28 	clr  [ %i1 + 0x28 ]                            <== NOT EXECUTED
				tty->column = 0;                                                  
			if (tty->termios.c_oflag & ONLCR) {                                
40004468:	c2 06 60 34 	ld  [ %i1 + 0x34 ], %g1                        
4000446c:	80 88 60 04 	btst  4, %g1                                   
40004470:	02 80 00 43 	be  4000457c <oproc+0x178>                     <== NEVER TAKEN
40004474:	94 10 00 19 	mov  %i1, %o2                                  
				rtems_termios_puts ("\r", 1, tty);                                
40004478:	11 10 00 6f 	sethi  %hi(0x4001bc00), %o0                    
4000447c:	92 10 20 01 	mov  1, %o1                                    
40004480:	90 12 22 18 	or  %o0, 0x218, %o0                            
40004484:	7f ff ff 94 	call  400042d4 <rtems_termios_puts>            
40004488:	94 10 00 19 	mov  %i1, %o2                                  
				c = '\n';                                                         
				if (tty->termios.c_oflag & ONLRET)                                
					tty->column = 0;                                                 
				break;                                                            
			}                                                                  
			tty->column = 0;                                                   
4000448c:	10 80 00 3b 	b  40004578 <oproc+0x174>                      
40004490:	c0 26 60 28 	clr  [ %i1 + 0x28 ]                            
				tty->column = 0;                                                  
			}                                                                  
			break;                                                             
                                                                      
		case '\r':                                                          
			if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))          
40004494:	02 80 00 06 	be  400044ac <oproc+0xa8>                      <== NOT EXECUTED
40004498:	80 88 60 08 	btst  8, %g1                                   <== NOT EXECUTED
4000449c:	c4 06 60 28 	ld  [ %i1 + 0x28 ], %g2                        <== NOT EXECUTED
400044a0:	80 a0 a0 00 	cmp  %g2, 0                                    <== NOT EXECUTED
400044a4:	02 80 00 17 	be  40004500 <oproc+0xfc>                      <== NOT EXECUTED
400044a8:	80 88 60 08 	btst  8, %g1                                   <== NOT EXECUTED
				return;                                                           
			if (tty->termios.c_oflag & OCRNL) {                                
400044ac:	22 80 00 33 	be,a   40004578 <oproc+0x174>                  <== NOT EXECUTED
400044b0:	c0 26 60 28 	clr  [ %i1 + 0x28 ]                            <== NOT EXECUTED
				c = '\n';                                                         
400044b4:	84 10 20 0a 	mov  0xa, %g2                                  <== NOT EXECUTED
				if (tty->termios.c_oflag & ONLRET)                                
400044b8:	80 88 60 20 	btst  0x20, %g1                                <== NOT EXECUTED
400044bc:	02 80 00 2f 	be  40004578 <oproc+0x174>                     <== NOT EXECUTED
400044c0:	c4 2f a0 44 	stb  %g2, [ %fp + 0x44 ]                       <== NOT EXECUTED
					tty->column = 0;                                                 
				break;                                                            
			}                                                                  
			tty->column = 0;                                                   
			break;                                                             
400044c4:	10 80 00 2d 	b  40004578 <oproc+0x174>                      <== NOT EXECUTED
400044c8:	c0 26 60 28 	clr  [ %i1 + 0x28 ]                            <== NOT EXECUTED
                                                                      
		case '\t':                                                          
			i = 8 - (tty->column & 7);                                         
			if ((tty->termios.c_oflag & TABDLY) == XTABS) {                    
400044cc:	07 00 00 06 	sethi  %hi(0x1800), %g3                        
400044d0:	82 08 40 03 	and  %g1, %g3, %g1                             
400044d4:	80 a0 40 03 	cmp  %g1, %g3                                  
			}                                                                  
			tty->column = 0;                                                   
			break;                                                             
                                                                      
		case '\t':                                                          
			i = 8 - (tty->column & 7);                                         
400044d8:	82 08 a0 07 	and  %g2, 7, %g1                               
400044dc:	92 10 20 08 	mov  8, %o1                                    
400044e0:	92 22 40 01 	sub  %o1, %g1, %o1                             
			if ((tty->termios.c_oflag & TABDLY) == XTABS) {                    
400044e4:	12 80 00 24 	bne  40004574 <oproc+0x170>                    <== NEVER TAKEN
400044e8:	82 02 40 02 	add  %o1, %g2, %g1                             
				tty->column += i;                                                 
400044ec:	c2 26 60 28 	st  %g1, [ %i1 + 0x28 ]                        
				rtems_termios_puts ( "        ",  i, tty);                        
400044f0:	94 10 00 19 	mov  %i1, %o2                                  
400044f4:	11 10 00 6f 	sethi  %hi(0x4001bc00), %o0                    
400044f8:	7f ff ff 77 	call  400042d4 <rtems_termios_puts>            
400044fc:	90 12 22 20 	or  %o0, 0x220, %o0	! 4001be20 <__FUNCTION__.5779+0x270>
				return;                                                           
40004500:	81 c7 e0 08 	ret                                            
40004504:	81 e8 00 00 	restore                                        
			}                                                                  
			tty->column += i;                                                  
			break;                                                             
                                                                      
		case '\b':                                                          
			if (tty->column > 0)                                               
40004508:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000450c:	04 80 00 1b 	ble  40004578 <oproc+0x174>                    <== NOT EXECUTED
40004510:	82 00 7f ff 	add  %g1, -1, %g1                              <== NOT EXECUTED
                                                                      
		default:                                                            
			if (tty->termios.c_oflag & OLCUC)                                  
				c = toupper(c);                                                   
			if (!iscntrl(c))                                                   
				tty->column++;                                                    
40004514:	10 80 00 19 	b  40004578 <oproc+0x174>                      <== NOT EXECUTED
40004518:	c2 26 60 28 	st  %g1, [ %i1 + 0x28 ]                        <== NOT EXECUTED
			if (tty->column > 0)                                               
				tty->column--;                                                    
			break;                                                             
                                                                      
		default:                                                            
			if (tty->termios.c_oflag & OLCUC)                                  
4000451c:	02 80 00 0d 	be  40004550 <oproc+0x14c>                     <== ALWAYS TAKEN
40004520:	c2 0f a0 44 	ldub  [ %fp + 0x44 ], %g1                      
				c = toupper(c);                                                   
40004524:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    <== NOT EXECUTED
40004528:	c2 00 63 b8 	ld  [ %g1 + 0x3b8 ], %g1	! 4001cfb8 <__ctype_ptr__><== NOT EXECUTED
4000452c:	b0 0e 20 ff 	and  %i0, 0xff, %i0                            <== NOT EXECUTED
40004530:	82 00 40 18 	add  %g1, %i0, %g1                             <== NOT EXECUTED
40004534:	c2 08 60 01 	ldub  [ %g1 + 1 ], %g1                         <== NOT EXECUTED
40004538:	82 08 60 03 	and  %g1, 3, %g1                               <== NOT EXECUTED
4000453c:	80 a0 60 02 	cmp  %g1, 2                                    <== NOT EXECUTED
40004540:	22 80 00 02 	be,a   40004548 <oproc+0x144>                  <== NOT EXECUTED
40004544:	b0 06 3f e0 	add  %i0, -32, %i0                             <== NOT EXECUTED
40004548:	f0 2f a0 44 	stb  %i0, [ %fp + 0x44 ]                       <== NOT EXECUTED
			if (!iscntrl(c))                                                   
4000454c:	c2 0f a0 44 	ldub  [ %fp + 0x44 ], %g1                      <== NOT EXECUTED
40004550:	05 10 00 73 	sethi  %hi(0x4001cc00), %g2                    
40004554:	c4 00 a3 b8 	ld  [ %g2 + 0x3b8 ], %g2	! 4001cfb8 <__ctype_ptr__>
40004558:	82 00 80 01 	add  %g2, %g1, %g1                             
4000455c:	c2 08 60 01 	ldub  [ %g1 + 1 ], %g1                         
40004560:	80 88 60 20 	btst  0x20, %g1                                
40004564:	12 80 00 06 	bne  4000457c <oproc+0x178>                    <== NEVER TAKEN
40004568:	94 10 00 19 	mov  %i1, %o2                                  
				tty->column++;                                                    
4000456c:	c2 06 60 28 	ld  [ %i1 + 0x28 ], %g1                        
40004570:	82 00 60 01 	inc  %g1                                       
40004574:	c2 26 60 28 	st  %g1, [ %i1 + 0x28 ]                        
			break;                                                             
		}                                                                   
	}                                                                    
	rtems_termios_puts (&c, 1, tty);                                     
40004578:	94 10 00 19 	mov  %i1, %o2                                  
4000457c:	90 07 a0 44 	add  %fp, 0x44, %o0                            
40004580:	7f ff ff 55 	call  400042d4 <rtems_termios_puts>            
40004584:	92 10 20 01 	mov  1, %o1                                    
40004588:	81 c7 e0 08 	ret                                            
4000458c:	81 e8 00 00 	restore                                        
                                                                      

4000e990 <pipe_create>: * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) {
4000e990:	9d e3 bf 78 	save  %sp, -136, %sp                           
  rtems_filesystem_location_info_t loc;                               
  rtems_libio_t *iop;                                                 
  int err = 0;                                                        
  /* Create /tmp if not exists */                                     
  if (rtems_filesystem_evaluate_path("/tmp", 3, RTEMS_LIBIO_PERMS_RWX, &loc, TRUE)
4000e994:	23 10 00 71 	sethi  %hi(0x4001c400), %l1                    
4000e998:	a0 07 bf dc 	add  %fp, -36, %l0                             
4000e99c:	92 10 20 03 	mov  3, %o1                                    
4000e9a0:	90 14 61 38 	or  %l1, 0x138, %o0                            
4000e9a4:	94 10 20 07 	mov  7, %o2                                    
4000e9a8:	96 10 00 10 	mov  %l0, %o3                                  
4000e9ac:	7f ff d1 ab 	call  40003058 <rtems_filesystem_evaluate_path>
4000e9b0:	98 10 20 01 	mov  1, %o4                                    
4000e9b4:	80 a2 20 00 	cmp  %o0, 0                                    
4000e9b8:	02 80 00 10 	be  4000e9f8 <pipe_create+0x68>                <== NEVER TAKEN
4000e9bc:	c2 07 bf e8 	ld  [ %fp + -24 ], %g1                         
      != 0) {                                                         
    if (errno != ENOENT)                                              
4000e9c0:	40 00 02 c7 	call  4000f4dc <__errno>                       
4000e9c4:	01 00 00 00 	nop                                            
4000e9c8:	c2 02 00 00 	ld  [ %o0 ], %g1                               
4000e9cc:	80 a0 60 02 	cmp  %g1, 2                                    
4000e9d0:	32 80 00 59 	bne,a   4000eb34 <pipe_create+0x1a4>           <== NEVER TAKEN
4000e9d4:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
      return -1;                                                      
    if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0)          
4000e9d8:	90 14 61 38 	or  %l1, 0x138, %o0                            
4000e9dc:	7f ff d2 35 	call  400032b0 <mkdir>                         
4000e9e0:	92 10 23 ff 	mov  0x3ff, %o1                                
4000e9e4:	80 a2 20 00 	cmp  %o0, 0                                    
4000e9e8:	02 80 00 0e 	be  4000ea20 <pipe_create+0x90>                <== ALWAYS TAKEN
4000e9ec:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
    }                                                                 
  unlink(fifopath);                                                   
  }                                                                   
                                                                      
  rtems_set_errno_and_return_minus_one(err);                          
}                                                                     
4000e9f0:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000e9f4:	91 e8 3f ff 	restore  %g0, -1, %o0                          <== NOT EXECUTED
      return -1;                                                      
    if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0)          
      return -1;                                                      
  }                                                                   
  else                                                                
    rtems_filesystem_freenode(&loc);                                  
4000e9f8:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000e9fc:	22 80 00 09 	be,a   4000ea20 <pipe_create+0x90>             <== NOT EXECUTED
4000ea00:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    <== NOT EXECUTED
4000ea04:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1	! 4001d41c <lc_ctype_charset+0x4><== NOT EXECUTED
4000ea08:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000ea0c:	22 80 00 05 	be,a   4000ea20 <pipe_create+0x90>             <== NOT EXECUTED
4000ea10:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    <== NOT EXECUTED
4000ea14:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
4000ea18:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
                                                                      
  /* /tmp/.fifoXXXX */                                                
  char fifopath[15];                                                  
  memcpy(fifopath, "/tmp/.fifo", 10);                                 
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
4000ea1c:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    <== NOT EXECUTED
4000ea20:	c4 10 61 ea 	lduh  [ %g1 + 0x1ea ], %g2	! 4001d5ea <rtems_pipe_no>
  else                                                                
    rtems_filesystem_freenode(&loc);                                  
                                                                      
  /* /tmp/.fifoXXXX */                                                
  char fifopath[15];                                                  
  memcpy(fifopath, "/tmp/.fifo", 10);                                 
4000ea24:	07 0b cb 99 	sethi  %hi(0x2f2e6400), %g3                    
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
4000ea28:	95 28 a0 10 	sll  %g2, 0x10, %o2                            
4000ea2c:	84 00 a0 01 	inc  %g2                                       
  else                                                                
    rtems_filesystem_freenode(&loc);                                  
                                                                      
  /* /tmp/.fifoXXXX */                                                
  char fifopath[15];                                                  
  memcpy(fifopath, "/tmp/.fifo", 10);                                 
4000ea30:	86 10 e2 69 	or  %g3, 0x269, %g3                            
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
4000ea34:	c4 30 61 ea 	sth  %g2, [ %g1 + 0x1ea ]                      
  else                                                                
    rtems_filesystem_freenode(&loc);                                  
                                                                      
  /* /tmp/.fifoXXXX */                                                
  char fifopath[15];                                                  
  memcpy(fifopath, "/tmp/.fifo", 10);                                 
4000ea38:	05 0b dd 1b 	sethi  %hi(0x2f746c00), %g2                    
4000ea3c:	03 00 00 19 	sethi  %hi(0x6400), %g1                        
4000ea40:	84 10 a1 70 	or  %g2, 0x170, %g2                            
4000ea44:	82 10 62 6f 	or  %g1, 0x26f, %g1                            
4000ea48:	a0 07 bf f0 	add  %fp, -16, %l0                             
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
4000ea4c:	95 32 a0 10 	srl  %o2, 0x10, %o2                            
  else                                                                
    rtems_filesystem_freenode(&loc);                                  
                                                                      
  /* /tmp/.fifoXXXX */                                                
  char fifopath[15];                                                  
  memcpy(fifopath, "/tmp/.fifo", 10);                                 
4000ea50:	c4 3f bf f0 	std  %g2, [ %fp + -16 ]                        
4000ea54:	c2 34 20 08 	sth  %g1, [ %l0 + 8 ]                          
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
4000ea58:	90 07 bf fa 	add  %fp, -6, %o0                              
4000ea5c:	13 10 00 71 	sethi  %hi(0x4001c400), %o1                    
4000ea60:	40 00 05 8b 	call  4001008c <sprintf>                       
4000ea64:	92 12 61 40 	or  %o1, 0x140, %o1	! 4001c540 <__FUNCTION__.5937+0x30>
                                                                      
  /* Try creating FIFO file until find an available file name */      
  while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) {                    
4000ea68:	90 10 00 10 	mov  %l0, %o0                                  
4000ea6c:	40 00 00 4b 	call  4000eb98 <mkfifo>                        
4000ea70:	92 10 21 80 	mov  0x180, %o1                                
4000ea74:	80 a2 20 00 	cmp  %o0, 0                                    
4000ea78:	02 80 00 05 	be  4000ea8c <pipe_create+0xfc>                <== ALWAYS TAKEN
4000ea7c:	90 10 00 10 	mov  %l0, %o0                                  
    if (errno != EEXIST){                                             
4000ea80:	40 00 02 97 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4000ea84:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
4000ea88:	30 80 00 2b 	b,a   4000eb34 <pipe_create+0x1a4>             <== NOT EXECUTED
    return -1;                                                        
    sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                 
  }                                                                   
                                                                      
  /* Non-blocking open to avoid waiting for writers */                
  filsdes[0] = open(fifopath, O_RDONLY | O_NONBLOCK);                 
4000ea8c:	7f ff d3 bf 	call  40003988 <open>                          
4000ea90:	13 00 00 10 	sethi  %hi(0x4000), %o1                        
  if (filsdes[0] < 0) {                                               
4000ea94:	80 a2 20 00 	cmp  %o0, 0                                    
4000ea98:	16 80 00 07 	bge  4000eab4 <pipe_create+0x124>              <== NEVER TAKEN
4000ea9c:	d0 26 00 00 	st  %o0, [ %i0 ]                               
    err = errno;                                                      
4000eaa0:	40 00 02 8f 	call  4000f4dc <__errno>                       
4000eaa4:	01 00 00 00 	nop                                            
4000eaa8:	e2 02 00 00 	ld  [ %o0 ], %l1                               
    /* Delete file at errors, or else if pipe is successfully created 
     the file node will be deleted after it is closed by all. */      
    unlink(fifopath);                                                 
4000eaac:	10 80 00 1d 	b  4000eb20 <pipe_create+0x190>                
4000eab0:	90 10 00 10 	mov  %l0, %o0                                  
  }                                                                   
  else {                                                              
  /* Reset open file to blocking mode */                              
    iop = rtems_libio_iop(filsdes[0]);                                
4000eab4:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    <== NOT EXECUTED
4000eab8:	c4 00 62 04 	ld  [ %g1 + 0x204 ], %g2	! 4001ce04 <rtems_libio_number_iops><== NOT EXECUTED
4000eabc:	80 a2 00 02 	cmp  %o0, %g2                                  <== NOT EXECUTED
4000eac0:	1a 80 00 08 	bcc  4000eae0 <pipe_create+0x150>              <== NOT EXECUTED
4000eac4:	82 10 20 00 	clr  %g1                                       <== NOT EXECUTED
4000eac8:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    <== NOT EXECUTED
4000eacc:	c2 00 63 9c 	ld  [ %g1 + 0x39c ], %g1	! 4001d79c <rtems_libio_iops><== NOT EXECUTED
4000ead0:	85 2a 20 06 	sll  %o0, 6, %g2                               <== NOT EXECUTED
4000ead4:	91 2a 20 03 	sll  %o0, 3, %o0                               <== NOT EXECUTED
4000ead8:	90 02 00 02 	add  %o0, %g2, %o0                             <== NOT EXECUTED
4000eadc:	82 00 40 08 	add  %g1, %o0, %g1                             <== NOT EXECUTED
    iop->flags &= ~LIBIO_FLAGS_NO_DELAY;                              
4000eae0:	c4 00 60 18 	ld  [ %g1 + 0x18 ], %g2                        <== NOT EXECUTED
                                                                      
    filsdes[1] = open(fifopath, O_WRONLY);                            
4000eae4:	90 07 bf f0 	add  %fp, -16, %o0                             <== NOT EXECUTED
    unlink(fifopath);                                                 
  }                                                                   
  else {                                                              
  /* Reset open file to blocking mode */                              
    iop = rtems_libio_iop(filsdes[0]);                                
    iop->flags &= ~LIBIO_FLAGS_NO_DELAY;                              
4000eae8:	84 08 bf fe 	and  %g2, -2, %g2                              <== NOT EXECUTED
                                                                      
    filsdes[1] = open(fifopath, O_WRONLY);                            
4000eaec:	92 10 20 01 	mov  1, %o1                                    <== NOT EXECUTED
4000eaf0:	7f ff d3 a6 	call  40003988 <open>                          <== NOT EXECUTED
4000eaf4:	c4 20 60 18 	st  %g2, [ %g1 + 0x18 ]                        <== NOT EXECUTED
4000eaf8:	d0 26 20 04 	st  %o0, [ %i0 + 4 ]                           <== NOT EXECUTED
                                                                      
    if (filsdes[1] < 0) {                                             
4000eafc:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000eb00:	16 80 00 07 	bge  4000eb1c <pipe_create+0x18c>              <== NOT EXECUTED
4000eb04:	a2 10 20 00 	clr  %l1                                       <== NOT EXECUTED
    err = errno;                                                      
4000eb08:	40 00 02 75 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4000eb0c:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000eb10:	e2 02 00 00 	ld  [ %o0 ], %l1                               <== NOT EXECUTED
    close(filsdes[0]);                                                
4000eb14:	7f ff f1 6b 	call  4000b0c0 <close>                         <== NOT EXECUTED
4000eb18:	d0 06 00 00 	ld  [ %i0 ], %o0                               <== NOT EXECUTED
    }                                                                 
  unlink(fifopath);                                                   
4000eb1c:	90 07 bf f0 	add  %fp, -16, %o0                             <== NOT EXECUTED
4000eb20:	40 00 00 26 	call  4000ebb8 <unlink>                        
4000eb24:	b0 10 3f ff 	mov  -1, %i0                                   
  }                                                                   
                                                                      
  rtems_set_errno_and_return_minus_one(err);                          
4000eb28:	40 00 02 6d 	call  4000f4dc <__errno>                       
4000eb2c:	01 00 00 00 	nop                                            
4000eb30:	e2 22 00 00 	st  %l1, [ %o0 ]                               
}                                                                     
4000eb34:	81 c7 e0 08 	ret                                            
4000eb38:	81 e8 00 00 	restore                                        
                                                                      

4000d628 <pipe_free>: /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) {
4000d628:	9d e3 bf a0 	save  %sp, -96, %sp                            <== NOT EXECUTED
  rtems_barrier_delete(pipe->readBarrier);                            
4000d62c:	40 00 03 24 	call  4000e2bc <rtems_barrier_delete>          <== NOT EXECUTED
4000d630:	d0 06 20 2c 	ld  [ %i0 + 0x2c ], %o0                        <== NOT EXECUTED
  rtems_barrier_delete(pipe->writeBarrier);                           
4000d634:	40 00 03 22 	call  4000e2bc <rtems_barrier_delete>          <== NOT EXECUTED
4000d638:	d0 06 20 30 	ld  [ %i0 + 0x30 ], %o0                        <== NOT EXECUTED
  rtems_semaphore_delete(pipe->Semaphore);                            
4000d63c:	7f ff e3 7e 	call  40006434 <rtems_semaphore_delete>        <== NOT EXECUTED
4000d640:	d0 06 20 28 	ld  [ %i0 + 0x28 ], %o0                        <== NOT EXECUTED
  free(pipe->Buffer);                                                 
4000d644:	7f ff f6 ce 	call  4000b17c <free>                          <== NOT EXECUTED
4000d648:	d0 06 00 00 	ld  [ %i0 ], %o0                               <== NOT EXECUTED
  free(pipe);                                                         
4000d64c:	7f ff f6 cc 	call  4000b17c <free>                          <== NOT EXECUTED
4000d650:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

4000d24c <pipe_ioctl>: pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) {
4000d24c:	9d e3 bf a0 	save  %sp, -96, %sp                            <== NOT EXECUTED
  if (cmd == FIONREAD) {                                              
4000d250:	03 10 01 19 	sethi  %hi(0x40046400), %g1                    <== NOT EXECUTED
  pipe_control_t *pipe,                                               
  uint32_t        cmd,                                                
  void           *buffer,                                             
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
4000d254:	a0 10 00 18 	mov  %i0, %l0                                  <== NOT EXECUTED
  if (cmd == FIONREAD) {                                              
4000d258:	82 10 62 7f 	or  %g1, 0x27f, %g1                            <== NOT EXECUTED
4000d25c:	80 a6 40 01 	cmp  %i1, %g1                                  <== NOT EXECUTED
4000d260:	12 80 00 12 	bne  4000d2a8 <pipe_ioctl+0x5c>                <== NOT EXECUTED
4000d264:	b0 10 3f ea 	mov  -22, %i0                                  <== NOT EXECUTED
    if (buffer == NULL)                                               
4000d268:	80 a6 a0 00 	cmp  %i2, 0                                    <== NOT EXECUTED
4000d26c:	02 80 00 0f 	be  4000d2a8 <pipe_ioctl+0x5c>                 <== NOT EXECUTED
4000d270:	b0 10 3f f2 	mov  -14, %i0                                  <== NOT EXECUTED
      return -EFAULT;                                                 
                                                                      
    if (! PIPE_LOCK(pipe))                                            
4000d274:	d0 04 20 28 	ld  [ %l0 + 0x28 ], %o0                        <== NOT EXECUTED
4000d278:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
4000d27c:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
4000d280:	7f ff e4 9b 	call  400064ec <rtems_semaphore_obtain>        <== NOT EXECUTED
4000d284:	b0 10 3f fc 	mov  -4, %i0                                   <== NOT EXECUTED
4000d288:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000d28c:	12 80 00 07 	bne  4000d2a8 <pipe_ioctl+0x5c>                <== NOT EXECUTED
4000d290:	01 00 00 00 	nop                                            <== NOT EXECUTED
      return -EINTR;                                                  
                                                                      
    /* Return length of pipe */                                       
    *(uint *)buffer = pipe->Length;                                   
4000d294:	c2 04 20 0c 	ld  [ %l0 + 0xc ], %g1                         <== NOT EXECUTED
    PIPE_UNLOCK(pipe);                                                
4000d298:	d0 04 20 28 	ld  [ %l0 + 0x28 ], %o0                        <== NOT EXECUTED
                                                                      
    if (! PIPE_LOCK(pipe))                                            
      return -EINTR;                                                  
                                                                      
    /* Return length of pipe */                                       
    *(uint *)buffer = pipe->Length;                                   
4000d29c:	c2 26 80 00 	st  %g1, [ %i2 ]                               <== NOT EXECUTED
    PIPE_UNLOCK(pipe);                                                
4000d2a0:	7f ff e4 da 	call  40006608 <rtems_semaphore_release>       <== NOT EXECUTED
4000d2a4:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
    return 0;                                                         
  }                                                                   
                                                                      
  return -EINVAL;                                                     
}                                                                     
4000d2a8:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000d2ac:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

4000d1d8 <pipe_lseek>: rtems_libio_t *iop ) { /* Seek on pipe is not supported */ return -ESPIPE; }
4000d1d8:	81 c3 e0 08 	retl                                           <== NOT EXECUTED
4000d1dc:	90 10 3f e3 	mov  -29, %o0                                  <== NOT EXECUTED
                                                                      

4000d2b0 <pipe_read>: pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) {
4000d2b0:	9d e3 bf 98 	save  %sp, -104, %sp                           <== NOT EXECUTED
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
4000d2b4:	d0 06 20 28 	ld  [ %i0 + 0x28 ], %o0                        <== NOT EXECUTED
  pipe_control_t *pipe,                                               
  void           *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
4000d2b8:	a0 10 00 18 	mov  %i0, %l0                                  <== NOT EXECUTED
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
4000d2bc:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
4000d2c0:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
4000d2c4:	7f ff e4 8a 	call  400064ec <rtems_semaphore_obtain>        <== NOT EXECUTED
4000d2c8:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
4000d2cc:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000d2d0:	02 80 00 54 	be  4000d420 <pipe_read+0x170>                 <== NOT EXECUTED
4000d2d4:	a6 07 bf fc 	add  %fp, -4, %l3                              <== NOT EXECUTED
4000d2d8:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000d2dc:	91 e8 3f fc 	restore  %g0, -4, %o0                          <== NOT EXECUTED
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
    while (PIPE_EMPTY(pipe)) {                                        
      /* Not an error */                                              
      if (pipe->Writers == 0)                                         
4000d2e0:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000d2e4:	02 80 00 53 	be  4000d430 <pipe_read+0x180>                 <== NOT EXECUTED
4000d2e8:	a2 10 20 00 	clr  %l1                                       <== NOT EXECUTED
        goto out_locked;                                              
                                                                      
      if (LIBIO_NODELAY(iop)) {                                       
4000d2ec:	c2 06 e0 18 	ld  [ %i3 + 0x18 ], %g1                        <== NOT EXECUTED
4000d2f0:	80 88 60 01 	btst  1, %g1                                   <== NOT EXECUTED
4000d2f4:	22 80 00 04 	be,a   4000d304 <pipe_read+0x54>               <== NOT EXECUTED
4000d2f8:	c2 04 20 18 	ld  [ %l0 + 0x18 ], %g1                        <== NOT EXECUTED
4000d2fc:	10 80 00 4d 	b  4000d430 <pipe_read+0x180>                  <== NOT EXECUTED
4000d300:	a2 10 3f f5 	mov  -11, %l1                                  <== NOT EXECUTED
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until pipe is no more empty or no writer exists */      
      pipe->waitingReaders ++;                                        
      PIPE_UNLOCK(pipe);                                              
4000d304:	d0 04 20 28 	ld  [ %l0 + 0x28 ], %o0                        <== NOT EXECUTED
        ret = -EAGAIN;                                                
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until pipe is no more empty or no writer exists */      
      pipe->waitingReaders ++;                                        
4000d308:	82 00 60 01 	inc  %g1                                       <== NOT EXECUTED
      PIPE_UNLOCK(pipe);                                              
4000d30c:	7f ff e4 bf 	call  40006608 <rtems_semaphore_release>       <== NOT EXECUTED
4000d310:	c2 24 20 18 	st  %g1, [ %l0 + 0x18 ]                        <== NOT EXECUTED
      if (! PIPE_READWAIT(pipe))                                      
4000d314:	d0 04 20 2c 	ld  [ %l0 + 0x2c ], %o0                        <== NOT EXECUTED
4000d318:	40 00 04 1a 	call  4000e380 <rtems_barrier_wait>            <== NOT EXECUTED
4000d31c:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
4000d320:	80 a0 00 08 	cmp  %g0, %o0                                  <== NOT EXECUTED
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
4000d324:	d0 04 20 28 	ld  [ %l0 + 0x28 ], %o0                        <== NOT EXECUTED
      }                                                               
                                                                      
      /* Wait until pipe is no more empty or no writer exists */      
      pipe->waitingReaders ++;                                        
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_READWAIT(pipe))                                      
4000d328:	a2 40 3f ff 	addx  %g0, -1, %l1                             <== NOT EXECUTED
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
4000d32c:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
      }                                                               
                                                                      
      /* Wait until pipe is no more empty or no writer exists */      
      pipe->waitingReaders ++;                                        
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_READWAIT(pipe))                                      
4000d330:	a2 0c 60 04 	and  %l1, 4, %l1                               <== NOT EXECUTED
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
4000d334:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
4000d338:	7f ff e4 6d 	call  400064ec <rtems_semaphore_obtain>        <== NOT EXECUTED
4000d33c:	a2 04 7f fc 	add  %l1, -4, %l1                              <== NOT EXECUTED
4000d340:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000d344:	22 80 00 04 	be,a   4000d354 <pipe_read+0xa4>               <== NOT EXECUTED
4000d348:	c2 04 20 18 	ld  [ %l0 + 0x18 ], %g1                        <== NOT EXECUTED
4000d34c:	10 80 00 3b 	b  4000d438 <pipe_read+0x188>                  <== NOT EXECUTED
4000d350:	a2 10 3f fc 	mov  -4, %l1                                   <== NOT EXECUTED
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingReaders --;                                        
      if (ret != 0)                                                   
4000d354:	80 a4 60 00 	cmp  %l1, 0                                    <== NOT EXECUTED
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingReaders --;                                        
4000d358:	82 00 7f ff 	add  %g1, -1, %g1                              <== NOT EXECUTED
      if (ret != 0)                                                   
4000d35c:	12 80 00 35 	bne  4000d430 <pipe_read+0x180>                <== NOT EXECUTED
4000d360:	c2 24 20 18 	st  %g1, [ %l0 + 0x18 ]                        <== NOT EXECUTED
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
    while (PIPE_EMPTY(pipe)) {                                        
4000d364:	e2 04 20 0c 	ld  [ %l0 + 0xc ], %l1                         <== NOT EXECUTED
4000d368:	80 a4 60 00 	cmp  %l1, 0                                    <== NOT EXECUTED
4000d36c:	22 bf ff dd 	be,a   4000d2e0 <pipe_read+0x30>               <== NOT EXECUTED
4000d370:	c2 04 20 14 	ld  [ %l0 + 0x14 ], %g1                        <== NOT EXECUTED
      if (ret != 0)                                                   
        goto out_locked;                                              
    }                                                                 
                                                                      
    /* Read chunk bytes */                                            
    chunk = MIN(count - read,  pipe->Length);                         
4000d374:	82 26 80 18 	sub  %i2, %i0, %g1                             <== NOT EXECUTED
4000d378:	80 a4 40 01 	cmp  %l1, %g1                                  <== NOT EXECUTED
4000d37c:	38 80 00 02 	bgu,a   4000d384 <pipe_read+0xd4>              <== NOT EXECUTED
4000d380:	a2 10 00 01 	mov  %g1, %l1                                  <== NOT EXECUTED
    chunk1 = pipe->Size - pipe->Start;                                
4000d384:	c2 04 20 08 	ld  [ %l0 + 8 ], %g1                           <== NOT EXECUTED
4000d388:	e4 04 20 04 	ld  [ %l0 + 4 ], %l2                           <== NOT EXECUTED
4000d38c:	90 06 40 18 	add  %i1, %i0, %o0                             <== NOT EXECUTED
4000d390:	a4 24 80 01 	sub  %l2, %g1, %l2                             <== NOT EXECUTED
    if (chunk > chunk1) {                                             
4000d394:	80 a4 40 12 	cmp  %l1, %l2                                  <== NOT EXECUTED
4000d398:	04 80 00 0a 	ble  4000d3c0 <pipe_read+0x110>                <== NOT EXECUTED
4000d39c:	d2 04 00 00 	ld  [ %l0 ], %o1                               <== NOT EXECUTED
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);      
4000d3a0:	92 02 40 01 	add  %o1, %g1, %o1                             <== NOT EXECUTED
4000d3a4:	40 00 0a 8a 	call  4000fdcc <memcpy>                        <== NOT EXECUTED
4000d3a8:	94 10 00 12 	mov  %l2, %o2                                  <== NOT EXECUTED
      memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);   
4000d3ac:	90 06 00 12 	add  %i0, %l2, %o0                             <== NOT EXECUTED
4000d3b0:	d2 04 00 00 	ld  [ %l0 ], %o1                               <== NOT EXECUTED
4000d3b4:	94 24 40 12 	sub  %l1, %l2, %o2                             <== NOT EXECUTED
4000d3b8:	10 80 00 04 	b  4000d3c8 <pipe_read+0x118>                  <== NOT EXECUTED
4000d3bc:	90 06 40 08 	add  %i1, %o0, %o0                             <== NOT EXECUTED
    }                                                                 
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
4000d3c0:	92 02 40 01 	add  %o1, %g1, %o1                             <== NOT EXECUTED
4000d3c4:	94 10 00 11 	mov  %l1, %o2                                  <== NOT EXECUTED
4000d3c8:	40 00 0a 81 	call  4000fdcc <memcpy>                        <== NOT EXECUTED
4000d3cc:	01 00 00 00 	nop                                            <== NOT EXECUTED
                                                                      
    pipe->Start += chunk;                                             
4000d3d0:	d0 04 20 08 	ld  [ %l0 + 8 ], %o0                           <== NOT EXECUTED
    pipe->Start %= pipe->Size;                                        
4000d3d4:	d2 04 20 04 	ld  [ %l0 + 4 ], %o1                           <== NOT EXECUTED
      memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);   
    }                                                                 
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
                                                                      
    pipe->Start += chunk;                                             
4000d3d8:	90 04 40 08 	add  %l1, %o0, %o0                             <== NOT EXECUTED
    pipe->Start %= pipe->Size;                                        
4000d3dc:	40 00 2e 84 	call  40018dec <.urem>                         <== NOT EXECUTED
4000d3e0:	d0 24 20 08 	st  %o0, [ %l0 + 8 ]                           <== NOT EXECUTED
    pipe->Length -= chunk;                                            
4000d3e4:	c2 04 20 0c 	ld  [ %l0 + 0xc ], %g1                         <== NOT EXECUTED
    }                                                                 
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
                                                                      
    pipe->Start += chunk;                                             
    pipe->Start %= pipe->Size;                                        
4000d3e8:	d0 24 20 08 	st  %o0, [ %l0 + 8 ]                           <== NOT EXECUTED
    pipe->Length -= chunk;                                            
4000d3ec:	82 20 40 11 	sub  %g1, %l1, %g1                             <== NOT EXECUTED
    /* For buffering optimization */                                  
    if (PIPE_EMPTY(pipe))                                             
4000d3f0:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000d3f4:	12 80 00 03 	bne  4000d400 <pipe_read+0x150>                <== NOT EXECUTED
4000d3f8:	c2 24 20 0c 	st  %g1, [ %l0 + 0xc ]                         <== NOT EXECUTED
      pipe->Start = 0;                                                
4000d3fc:	c0 24 20 08 	clr  [ %l0 + 8 ]                               <== NOT EXECUTED
                                                                      
    if (pipe->waitingWriters > 0)                                     
4000d400:	c2 04 20 1c 	ld  [ %l0 + 0x1c ], %g1                        <== NOT EXECUTED
4000d404:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000d408:	22 80 00 06 	be,a   4000d420 <pipe_read+0x170>              <== NOT EXECUTED
4000d40c:	b0 06 00 11 	add  %i0, %l1, %i0                             <== NOT EXECUTED
      PIPE_WAKEUPWRITERS(pipe);                                       
4000d410:	d0 04 20 30 	ld  [ %l0 + 0x30 ], %o0                        <== NOT EXECUTED
4000d414:	40 00 03 c4 	call  4000e324 <rtems_barrier_release>         <== NOT EXECUTED
4000d418:	92 10 00 13 	mov  %l3, %o1                                  <== NOT EXECUTED
    read += chunk;                                                    
4000d41c:	b0 06 00 11 	add  %i0, %l1, %i0                             <== NOT EXECUTED
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
4000d420:	80 a6 00 1a 	cmp  %i0, %i2                                  <== NOT EXECUTED
4000d424:	2a bf ff d1 	bcs,a   4000d368 <pipe_read+0xb8>              <== NOT EXECUTED
4000d428:	e2 04 20 0c 	ld  [ %l0 + 0xc ], %l1                         <== NOT EXECUTED
4000d42c:	a2 10 20 00 	clr  %l1                                       <== NOT EXECUTED
      PIPE_WAKEUPWRITERS(pipe);                                       
    read += chunk;                                                    
  }                                                                   
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
4000d430:	7f ff e4 76 	call  40006608 <rtems_semaphore_release>       <== NOT EXECUTED
4000d434:	d0 04 20 28 	ld  [ %l0 + 0x28 ], %o0                        <== NOT EXECUTED
                                                                      
out_nolock:                                                           
  if (read > 0)                                                       
4000d438:	80 a6 20 00 	cmp  %i0, 0                                    <== NOT EXECUTED
4000d43c:	24 80 00 02 	ble,a   4000d444 <pipe_read+0x194>             <== NOT EXECUTED
4000d440:	b0 10 00 11 	mov  %l1, %i0                                  <== NOT EXECUTED
    return read;                                                      
  return ret;                                                         
}                                                                     
4000d444:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000d448:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

4000d658 <pipe_release>: */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) {
4000d658:	9d e3 bf 98 	save  %sp, -104, %sp                           <== NOT EXECUTED
  pipe_control_t *pipe = *pipep;                                      
4000d65c:	e0 06 00 00 	ld  [ %i0 ], %l0                               <== NOT EXECUTED
  uint32_t mode;                                                      
                                                                      
  rtems_status_code sc;                                               
  sc = rtems_semaphore_obtain(pipe->Semaphore,                        
4000d660:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
4000d664:	d0 04 20 28 	ld  [ %l0 + 0x28 ], %o0                        <== NOT EXECUTED
4000d668:	7f ff e3 a1 	call  400064ec <rtems_semaphore_obtain>        <== NOT EXECUTED
4000d66c:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
                              RTEMS_WAIT, RTEMS_NO_TIMEOUT);          
  /* WARN pipe not released! */                                       
  if(sc != RTEMS_SUCCESSFUL)                                          
4000d670:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000d674:	12 80 00 17 	bne  4000d6d0 <pipe_release+0x78>              <== NOT EXECUTED
4000d678:	01 00 00 00 	nop                                            <== NOT EXECUTED
    rtems_fatal_error_occurred(sc);                                   
                                                                      
  mode = LIBIO_ACCMODE(iop);                                          
4000d67c:	e2 06 60 18 	ld  [ %i1 + 0x18 ], %l1                        <== NOT EXECUTED
  if (mode & LIBIO_FLAGS_READ)                                        
4000d680:	80 8c 60 02 	btst  2, %l1                                   <== NOT EXECUTED
4000d684:	02 80 00 05 	be  4000d698 <pipe_release+0x40>               <== NOT EXECUTED
4000d688:	a2 0c 60 06 	and  %l1, 6, %l1                               <== NOT EXECUTED
     pipe->Readers --;                                                
4000d68c:	c2 04 20 10 	ld  [ %l0 + 0x10 ], %g1                        <== NOT EXECUTED
4000d690:	82 00 7f ff 	add  %g1, -1, %g1                              <== NOT EXECUTED
4000d694:	c2 24 20 10 	st  %g1, [ %l0 + 0x10 ]                        <== NOT EXECUTED
  if (mode & LIBIO_FLAGS_WRITE)                                       
4000d698:	80 8c 60 04 	btst  4, %l1                                   <== NOT EXECUTED
4000d69c:	02 80 00 06 	be  4000d6b4 <pipe_release+0x5c>               <== NOT EXECUTED
4000d6a0:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    <== NOT EXECUTED
     pipe->Writers --;                                                
4000d6a4:	c2 04 20 14 	ld  [ %l0 + 0x14 ], %g1                        <== NOT EXECUTED
4000d6a8:	82 00 7f ff 	add  %g1, -1, %g1                              <== NOT EXECUTED
4000d6ac:	c2 24 20 14 	st  %g1, [ %l0 + 0x14 ]                        <== NOT EXECUTED
                                                                      
  sc = rtems_semaphore_obtain(rtems_pipe_semaphore,                   
4000d6b0:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    <== NOT EXECUTED
4000d6b4:	d0 00 61 e4 	ld  [ %g1 + 0x1e4 ], %o0	! 4001d5e4 <rtems_pipe_semaphore><== NOT EXECUTED
4000d6b8:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
4000d6bc:	7f ff e3 8c 	call  400064ec <rtems_semaphore_obtain>        <== NOT EXECUTED
4000d6c0:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
                              RTEMS_WAIT, RTEMS_NO_TIMEOUT);          
  /* WARN pipe not freed and pipep not set to NULL! */                
  if(sc != RTEMS_SUCCESSFUL)                                          
4000d6c4:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000d6c8:	02 80 00 04 	be  4000d6d8 <pipe_release+0x80>               <== NOT EXECUTED
4000d6cc:	01 00 00 00 	nop                                            <== NOT EXECUTED
    rtems_fatal_error_occurred(sc);                                   
4000d6d0:	7f ff e5 30 	call  40006b90 <rtems_fatal_error_occurred>    <== NOT EXECUTED
4000d6d4:	01 00 00 00 	nop                                            <== NOT EXECUTED
                                                                      
  PIPE_UNLOCK(pipe);                                                  
4000d6d8:	7f ff e3 cc 	call  40006608 <rtems_semaphore_release>       <== NOT EXECUTED
4000d6dc:	d0 04 20 28 	ld  [ %l0 + 0x28 ], %o0                        <== NOT EXECUTED
                                                                      
  if (pipe->Readers == 0 && pipe->Writers == 0) {                     
4000d6e0:	c2 04 20 10 	ld  [ %l0 + 0x10 ], %g1                        <== NOT EXECUTED
4000d6e4:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000d6e8:	12 80 00 0a 	bne  4000d710 <pipe_release+0xb8>              <== NOT EXECUTED
4000d6ec:	80 a4 60 04 	cmp  %l1, 4                                    <== NOT EXECUTED
4000d6f0:	c4 04 20 14 	ld  [ %l0 + 0x14 ], %g2                        <== NOT EXECUTED
4000d6f4:	80 a0 a0 00 	cmp  %g2, 0                                    <== NOT EXECUTED
4000d6f8:	12 80 00 06 	bne  4000d710 <pipe_release+0xb8>              <== NOT EXECUTED
4000d6fc:	80 a4 60 04 	cmp  %l1, 4                                    <== NOT EXECUTED
#if 0                                                                 
    /* To delete an anonymous pipe file when all users closed it */   
    if (pipe->Anonymous)                                              
      delfile = TRUE;                                                 
#endif                                                                
    pipe_free(pipe);                                                  
4000d700:	7f ff ff ca 	call  4000d628 <pipe_free>                     <== NOT EXECUTED
4000d704:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
  if(sc != RTEMS_SUCCESSFUL)                                          
    rtems_fatal_error_occurred(sc);                                   
                                                                      
  PIPE_UNLOCK(pipe);                                                  
                                                                      
  if (pipe->Readers == 0 && pipe->Writers == 0) {                     
4000d708:	10 80 00 12 	b  4000d750 <pipe_release+0xf8>                <== NOT EXECUTED
4000d70c:	c0 26 00 00 	clr  [ %i0 ]                                   <== NOT EXECUTED
      delfile = TRUE;                                                 
#endif                                                                
    pipe_free(pipe);                                                  
    *pipep = NULL;                                                    
  }                                                                   
  else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)           
4000d710:	02 80 00 07 	be  4000d72c <pipe_release+0xd4>               <== NOT EXECUTED
4000d714:	80 a4 60 02 	cmp  %l1, 2                                    <== NOT EXECUTED
4000d718:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000d71c:	12 80 00 04 	bne  4000d72c <pipe_release+0xd4>              <== NOT EXECUTED
4000d720:	80 a4 60 02 	cmp  %l1, 2                                    <== NOT EXECUTED
    /* Notify waiting Writers that all their partners left */         
    PIPE_WAKEUPWRITERS(pipe);                                         
4000d724:	10 80 00 09 	b  4000d748 <pipe_release+0xf0>                <== NOT EXECUTED
4000d728:	d0 04 20 30 	ld  [ %l0 + 0x30 ], %o0                        <== NOT EXECUTED
  else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ)            
4000d72c:	02 80 00 0a 	be  4000d754 <pipe_release+0xfc>               <== NOT EXECUTED
4000d730:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    <== NOT EXECUTED
4000d734:	c2 04 20 14 	ld  [ %l0 + 0x14 ], %g1                        <== NOT EXECUTED
4000d738:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000d73c:	12 80 00 06 	bne  4000d754 <pipe_release+0xfc>              <== NOT EXECUTED
4000d740:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    <== NOT EXECUTED
    PIPE_WAKEUPREADERS(pipe);                                         
4000d744:	d0 04 20 2c 	ld  [ %l0 + 0x2c ], %o0                        <== NOT EXECUTED
4000d748:	40 00 02 f7 	call  4000e324 <rtems_barrier_release>         <== NOT EXECUTED
4000d74c:	92 07 bf fc 	add  %fp, -4, %o1                              <== NOT EXECUTED
                                                                      
  rtems_semaphore_release(rtems_pipe_semaphore);                      
4000d750:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    <== NOT EXECUTED
4000d754:	d0 00 61 e4 	ld  [ %g1 + 0x1e4 ], %o0	! 4001d5e4 <rtems_pipe_semaphore><== NOT EXECUTED
4000d758:	7f ff e3 ac 	call  40006608 <rtems_semaphore_release>       <== NOT EXECUTED
4000d75c:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
  if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))                     
    return -errno;                                                    
#endif                                                                
                                                                      
  return 0;                                                           
}                                                                     
4000d760:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000d764:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

4000d44c <pipe_write>: pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) {
4000d44c:	9d e3 bf 98 	save  %sp, -104, %sp                           <== NOT EXECUTED
4000d450:	a0 10 00 18 	mov  %i0, %l0                                  <== NOT EXECUTED
  int chunk, chunk1, written = 0, ret = 0;                            
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
4000d454:	80 a6 a0 00 	cmp  %i2, 0                                    <== NOT EXECUTED
4000d458:	02 80 00 72 	be  4000d620 <pipe_write+0x1d4>                <== NOT EXECUTED
4000d45c:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
    return 0;                                                         
                                                                      
  if (! PIPE_LOCK(pipe))                                              
4000d460:	d0 04 20 28 	ld  [ %l0 + 0x28 ], %o0                        <== NOT EXECUTED
4000d464:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
4000d468:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
4000d46c:	7f ff e4 20 	call  400064ec <rtems_semaphore_obtain>        <== NOT EXECUTED
4000d470:	b0 10 3f fc 	mov  -4, %i0                                   <== NOT EXECUTED
4000d474:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000d478:	12 80 00 6a 	bne  4000d620 <pipe_write+0x1d4>               <== NOT EXECUTED
4000d47c:	a2 10 3f e0 	mov  -32, %l1                                  <== NOT EXECUTED
    return -EINTR;                                                    
                                                                      
  if (pipe->Readers == 0) {                                           
4000d480:	c2 04 20 10 	ld  [ %l0 + 0x10 ], %g1                        <== NOT EXECUTED
4000d484:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000d488:	02 80 00 5a 	be  4000d5f0 <pipe_write+0x1a4>                <== NOT EXECUTED
4000d48c:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
    ret = -EPIPE;                                                     
    goto out_locked;                                                  
  }                                                                   
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
4000d490:	c2 04 20 04 	ld  [ %l0 + 4 ], %g1                           <== NOT EXECUTED
4000d494:	80 a6 80 01 	cmp  %i2, %g1                                  <== NOT EXECUTED
4000d498:	08 80 00 04 	bleu  4000d4a8 <pipe_write+0x5c>               <== NOT EXECUTED
4000d49c:	a6 10 00 1a 	mov  %i2, %l3                                  <== NOT EXECUTED
4000d4a0:	a6 10 20 01 	mov  1, %l3                                    <== NOT EXECUTED
4000d4a4:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
    else                                                              
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
                                                                      
    pipe->Length += chunk;                                            
    if (pipe->waitingReaders > 0)                                     
      PIPE_WAKEUPREADERS(pipe);                                       
4000d4a8:	10 80 00 4e 	b  4000d5e0 <pipe_write+0x194>                 <== NOT EXECUTED
4000d4ac:	a8 07 bf fc 	add  %fp, -4, %l4                              <== NOT EXECUTED
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
                                                                      
  while (written < count) {                                           
    while (PIPE_SPACE(pipe) < chunk) {                                
      if (LIBIO_NODELAY(iop)) {                                       
4000d4b0:	80 88 60 01 	btst  1, %g1                                   <== NOT EXECUTED
4000d4b4:	22 80 00 04 	be,a   4000d4c4 <pipe_write+0x78>              <== NOT EXECUTED
4000d4b8:	c2 04 20 1c 	ld  [ %l0 + 0x1c ], %g1                        <== NOT EXECUTED
4000d4bc:	10 80 00 4d 	b  4000d5f0 <pipe_write+0x1a4>                 <== NOT EXECUTED
4000d4c0:	a2 10 3f f5 	mov  -11, %l1                                  <== NOT EXECUTED
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
      PIPE_UNLOCK(pipe);                                              
4000d4c4:	d0 04 20 28 	ld  [ %l0 + 0x28 ], %o0                        <== NOT EXECUTED
        ret = -EAGAIN;                                                
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
4000d4c8:	82 00 60 01 	inc  %g1                                       <== NOT EXECUTED
      PIPE_UNLOCK(pipe);                                              
4000d4cc:	7f ff e4 4f 	call  40006608 <rtems_semaphore_release>       <== NOT EXECUTED
4000d4d0:	c2 24 20 1c 	st  %g1, [ %l0 + 0x1c ]                        <== NOT EXECUTED
      if (! PIPE_WRITEWAIT(pipe))                                     
4000d4d4:	d0 04 20 30 	ld  [ %l0 + 0x30 ], %o0                        <== NOT EXECUTED
4000d4d8:	40 00 03 aa 	call  4000e380 <rtems_barrier_wait>            <== NOT EXECUTED
4000d4dc:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
4000d4e0:	80 a0 00 08 	cmp  %g0, %o0                                  <== NOT EXECUTED
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
4000d4e4:	d0 04 20 28 	ld  [ %l0 + 0x28 ], %o0                        <== NOT EXECUTED
      }                                                               
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
4000d4e8:	a2 40 3f ff 	addx  %g0, -1, %l1                             <== NOT EXECUTED
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
4000d4ec:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
      }                                                               
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
4000d4f0:	a2 0c 60 04 	and  %l1, 4, %l1                               <== NOT EXECUTED
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
4000d4f4:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
4000d4f8:	7f ff e3 fd 	call  400064ec <rtems_semaphore_obtain>        <== NOT EXECUTED
4000d4fc:	a2 04 7f fc 	add  %l1, -4, %l1                              <== NOT EXECUTED
4000d500:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000d504:	22 80 00 04 	be,a   4000d514 <pipe_write+0xc8>              <== NOT EXECUTED
4000d508:	c2 04 20 1c 	ld  [ %l0 + 0x1c ], %g1                        <== NOT EXECUTED
4000d50c:	10 80 00 42 	b  4000d614 <pipe_write+0x1c8>                 <== NOT EXECUTED
4000d510:	a2 10 3f fc 	mov  -4, %l1                                   <== NOT EXECUTED
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingWriters --;                                        
      if (ret != 0)                                                   
4000d514:	80 a4 60 00 	cmp  %l1, 0                                    <== NOT EXECUTED
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingWriters --;                                        
4000d518:	82 00 7f ff 	add  %g1, -1, %g1                              <== NOT EXECUTED
      if (ret != 0)                                                   
4000d51c:	12 80 00 35 	bne  4000d5f0 <pipe_write+0x1a4>               <== NOT EXECUTED
4000d520:	c2 24 20 1c 	st  %g1, [ %l0 + 0x1c ]                        <== NOT EXECUTED
        goto out_locked;                                              
                                                                      
      if (pipe->Readers == 0) {                                       
4000d524:	c2 04 20 10 	ld  [ %l0 + 0x10 ], %g1                        <== NOT EXECUTED
4000d528:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000d52c:	32 80 00 04 	bne,a   4000d53c <pipe_write+0xf0>             <== NOT EXECUTED
4000d530:	e4 04 20 04 	ld  [ %l0 + 4 ], %l2                           <== NOT EXECUTED
4000d534:	10 80 00 2f 	b  4000d5f0 <pipe_write+0x1a4>                 <== NOT EXECUTED
4000d538:	a2 10 3f e0 	mov  -32, %l1                                  <== NOT EXECUTED
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
                                                                      
  while (written < count) {                                           
    while (PIPE_SPACE(pipe) < chunk) {                                
4000d53c:	c2 04 20 0c 	ld  [ %l0 + 0xc ], %g1                         <== NOT EXECUTED
4000d540:	a2 24 80 01 	sub  %l2, %g1, %l1                             <== NOT EXECUTED
4000d544:	80 a4 40 13 	cmp  %l1, %l3                                  <== NOT EXECUTED
4000d548:	2a bf ff da 	bcs,a   4000d4b0 <pipe_write+0x64>             <== NOT EXECUTED
4000d54c:	c2 06 e0 18 	ld  [ %i3 + 0x18 ], %g1                        <== NOT EXECUTED
        ret = -EPIPE;                                                 
        goto out_locked;                                              
      }                                                               
    }                                                                 
                                                                      
    chunk = MIN(count - written, PIPE_SPACE(pipe));                   
4000d550:	84 26 80 18 	sub  %i2, %i0, %g2                             <== NOT EXECUTED
4000d554:	80 a4 40 02 	cmp  %l1, %g2                                  <== NOT EXECUTED
4000d558:	38 80 00 02 	bgu,a   4000d560 <pipe_write+0x114>            <== NOT EXECUTED
4000d55c:	a2 10 00 02 	mov  %g2, %l1                                  <== NOT EXECUTED
    chunk1 = pipe->Size - PIPE_WSTART(pipe);                          
4000d560:	d0 04 20 08 	ld  [ %l0 + 8 ], %o0                           <== NOT EXECUTED
4000d564:	92 10 00 12 	mov  %l2, %o1                                  <== NOT EXECUTED
4000d568:	40 00 2e 21 	call  40018dec <.urem>                         <== NOT EXECUTED
4000d56c:	90 00 40 08 	add  %g1, %o0, %o0                             <== NOT EXECUTED
4000d570:	c2 04 00 00 	ld  [ %l0 ], %g1                               <== NOT EXECUTED
4000d574:	a4 24 80 08 	sub  %l2, %o0, %l2                             <== NOT EXECUTED
    if (chunk > chunk1) {                                             
4000d578:	80 a4 40 12 	cmp  %l1, %l2                                  <== NOT EXECUTED
4000d57c:	04 80 00 0a 	ble  4000d5a4 <pipe_write+0x158>               <== NOT EXECUTED
4000d580:	92 06 40 18 	add  %i1, %i0, %o1                             <== NOT EXECUTED
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
4000d584:	94 10 00 12 	mov  %l2, %o2                                  <== NOT EXECUTED
4000d588:	40 00 0a 11 	call  4000fdcc <memcpy>                        <== NOT EXECUTED
4000d58c:	90 00 40 08 	add  %g1, %o0, %o0                             <== NOT EXECUTED
      memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
4000d590:	92 04 80 18 	add  %l2, %i0, %o1                             <== NOT EXECUTED
4000d594:	d0 04 00 00 	ld  [ %l0 ], %o0                               <== NOT EXECUTED
4000d598:	94 24 40 12 	sub  %l1, %l2, %o2                             <== NOT EXECUTED
4000d59c:	10 80 00 04 	b  4000d5ac <pipe_write+0x160>                 <== NOT EXECUTED
4000d5a0:	92 06 40 09 	add  %i1, %o1, %o1                             <== NOT EXECUTED
    }                                                                 
    else                                                              
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
4000d5a4:	90 00 40 08 	add  %g1, %o0, %o0                             <== NOT EXECUTED
4000d5a8:	94 10 00 11 	mov  %l1, %o2                                  <== NOT EXECUTED
4000d5ac:	40 00 0a 08 	call  4000fdcc <memcpy>                        <== NOT EXECUTED
4000d5b0:	01 00 00 00 	nop                                            <== NOT EXECUTED
                                                                      
    pipe->Length += chunk;                                            
4000d5b4:	c4 04 20 0c 	ld  [ %l0 + 0xc ], %g2                         <== NOT EXECUTED
    if (pipe->waitingReaders > 0)                                     
4000d5b8:	c2 04 20 18 	ld  [ %l0 + 0x18 ], %g1                        <== NOT EXECUTED
      memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
    }                                                                 
    else                                                              
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
                                                                      
    pipe->Length += chunk;                                            
4000d5bc:	84 00 80 11 	add  %g2, %l1, %g2                             <== NOT EXECUTED
    if (pipe->waitingReaders > 0)                                     
4000d5c0:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000d5c4:	02 80 00 05 	be  4000d5d8 <pipe_write+0x18c>                <== NOT EXECUTED
4000d5c8:	c4 24 20 0c 	st  %g2, [ %l0 + 0xc ]                         <== NOT EXECUTED
      PIPE_WAKEUPREADERS(pipe);                                       
4000d5cc:	d0 04 20 2c 	ld  [ %l0 + 0x2c ], %o0                        <== NOT EXECUTED
4000d5d0:	40 00 03 55 	call  4000e324 <rtems_barrier_release>         <== NOT EXECUTED
4000d5d4:	92 10 00 14 	mov  %l4, %o1                                  <== NOT EXECUTED
    written += chunk;                                                 
4000d5d8:	b0 06 00 11 	add  %i0, %l1, %i0                             <== NOT EXECUTED
4000d5dc:	a6 10 20 01 	mov  1, %l3                                    <== NOT EXECUTED
  }                                                                   
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
                                                                      
  while (written < count) {                                           
4000d5e0:	80 a6 00 1a 	cmp  %i0, %i2                                  <== NOT EXECUTED
4000d5e4:	2a bf ff d6 	bcs,a   4000d53c <pipe_write+0xf0>             <== NOT EXECUTED
4000d5e8:	e4 04 20 04 	ld  [ %l0 + 4 ], %l2                           <== NOT EXECUTED
4000d5ec:	a2 10 20 00 	clr  %l1                                       <== NOT EXECUTED
    /* Write of more than PIPE_BUF bytes can be interleaved */        
    chunk = 1;                                                        
  }                                                                   
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
4000d5f0:	7f ff e4 06 	call  40006608 <rtems_semaphore_release>       <== NOT EXECUTED
4000d5f4:	d0 04 20 28 	ld  [ %l0 + 0x28 ], %o0                        <== NOT EXECUTED
                                                                      
out_nolock:                                                           
#ifdef RTEMS_POSIX_API                                                
  /* Signal SIGPIPE */                                                
  if (ret == -EPIPE)                                                  
4000d5f8:	80 a4 7f e0 	cmp  %l1, -32                                  <== NOT EXECUTED
4000d5fc:	12 80 00 07 	bne  4000d618 <pipe_write+0x1cc>               <== NOT EXECUTED
4000d600:	80 a6 20 00 	cmp  %i0, 0                                    <== NOT EXECUTED
    kill(getpid(), SIGPIPE);                                          
4000d604:	40 00 02 1e 	call  4000de7c <getpid>                        <== NOT EXECUTED
4000d608:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000d60c:	40 00 02 6a 	call  4000dfb4 <kill>                          <== NOT EXECUTED
4000d610:	92 10 20 0d 	mov  0xd, %o1	! d <PROM_START+0xd>             <== NOT EXECUTED
#endif                                                                
                                                                      
  if (written > 0)                                                    
4000d614:	80 a6 20 00 	cmp  %i0, 0                                    <== NOT EXECUTED
4000d618:	24 80 00 02 	ble,a   4000d620 <pipe_write+0x1d4>            <== NOT EXECUTED
4000d61c:	b0 10 00 11 	mov  %l1, %i0                                  <== NOT EXECUTED
    return written;                                                   
  return ret;                                                         
}                                                                     
4000d620:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000d624:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

400081ec <posix_memalign>: ) { /* * Update call statistics */ MSBUMP(memalign_calls, 1);
400081ec:	05 10 00 9e 	sethi  %hi(0x40027800), %g2                    
400081f0:	84 10 a1 08 	or  %g2, 0x108, %g2	! 40027908 <rtems_malloc_statistics>
400081f4:	c6 00 a0 08 	ld  [ %g2 + 8 ], %g3                           
400081f8:	86 00 e0 01 	inc  %g3                                       
400081fc:	c6 20 a0 08 	st  %g3, [ %g2 + 8 ]                           
                                                                      
  if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *)))
40008200:	84 02 7f ff 	add  %o1, -1, %g2                              
40008204:	80 88 80 09 	btst  %g2, %o1                                 
40008208:	12 80 00 04 	bne  40008218 <posix_memalign+0x2c>            <== NEVER TAKEN
4000820c:	80 a2 60 03 	cmp  %o1, 3                                    
40008210:	18 80 00 04 	bgu  40008220 <posix_memalign+0x34>            
40008214:	01 00 00 00 	nop                                            
  /*                                                                  
   *  rtems_memalign does all of the error checking work EXCEPT       
   *  for adding restrictionso on the alignment.                      
   */                                                                 
  return rtems_memalign( pointer, alignment, size );                  
}                                                                     
40008218:	81 c3 e0 08 	retl                                           
4000821c:	90 10 20 16 	mov  0x16, %o0	! 16 <PROM_START+0x16>          
                                                                      
  /*                                                                  
   *  rtems_memalign does all of the error checking work EXCEPT       
   *  for adding restrictionso on the alignment.                      
   */                                                                 
  return rtems_memalign( pointer, alignment, size );                  
40008220:	82 13 c0 00 	mov  %o7, %g1                                  
40008224:	40 00 00 6a 	call  400083cc <rtems_memalign>                
40008228:	9e 10 40 00 	mov  %g1, %o7                                  
                                                                      

4000af78 <pthread_attr_setschedpolicy>: int pthread_attr_setschedpolicy( pthread_attr_t *attr, int policy ) { if ( !attr || !attr->is_initialized )
4000af78:	80 a2 20 00 	cmp  %o0, 0                                    
4000af7c:	02 80 00 10 	be  4000afbc <pthread_attr_setschedpolicy+0x44>
4000af80:	01 00 00 00 	nop                                            
4000af84:	c2 02 00 00 	ld  [ %o0 ], %g1                               
4000af88:	80 a0 60 00 	cmp  %g1, 0                                    
4000af8c:	02 80 00 0c 	be  4000afbc <pthread_attr_setschedpolicy+0x44>
4000af90:	80 a2 60 04 	cmp  %o1, 4                                    
    return EINVAL;                                                    
                                                                      
  switch ( policy ) {                                                 
4000af94:	18 80 00 06 	bgu  4000afac <pthread_attr_setschedpolicy+0x34>
4000af98:	82 10 20 01 	mov  1, %g1                                    
4000af9c:	83 28 40 09 	sll  %g1, %o1, %g1                             
4000afa0:	80 88 60 17 	btst  0x17, %g1                                
4000afa4:	32 80 00 04 	bne,a   4000afb4 <pthread_attr_setschedpolicy+0x3c><== ALWAYS TAKEN
4000afa8:	d2 22 20 14 	st  %o1, [ %o0 + 0x14 ]                        
4000afac:	81 c3 e0 08 	retl                                           
4000afb0:	90 10 20 86 	mov  0x86, %o0                                 
    case SCHED_OTHER:                                                 
    case SCHED_FIFO:                                                  
    case SCHED_RR:                                                    
    case SCHED_SPORADIC:                                              
      attr->schedpolicy = policy;                                     
      return 0;                                                       
4000afb4:	81 c3 e0 08 	retl                                           
4000afb8:	90 10 20 00 	clr  %o0                                       
                                                                      
    default:                                                          
      return ENOTSUP;                                                 
  }                                                                   
}                                                                     
4000afbc:	81 c3 e0 08 	retl                                           
4000afc0:	90 10 20 16 	mov  0x16, %o0                                 
                                                                      

40006a44 <pthread_barrier_init>: int pthread_barrier_init( pthread_barrier_t *barrier, const pthread_barrierattr_t *attr, unsigned int count ) {
40006a44:	9d e3 bf 90 	save  %sp, -112, %sp                           
  const pthread_barrierattr_t   *the_attr;                            
                                                                      
  /*                                                                  
   *  Error check parameters                                          
   */                                                                 
  if ( !barrier )                                                     
40006a48:	80 a6 20 00 	cmp  %i0, 0                                    
40006a4c:	02 80 00 2e 	be  40006b04 <pthread_barrier_init+0xc0>       
40006a50:	80 a6 a0 00 	cmp  %i2, 0                                    
    return EINVAL;                                                    
                                                                      
  if ( count == 0 )                                                   
40006a54:	02 80 00 2c 	be  40006b04 <pthread_barrier_init+0xc0>       
40006a58:	80 a6 60 00 	cmp  %i1, 0                                    
    return EINVAL;                                                    
                                                                      
  /*                                                                  
   * If the user passed in NULL, use the default attributes           
   */                                                                 
  if ( attr ) {                                                       
40006a5c:	32 80 00 06 	bne,a   40006a74 <pthread_barrier_init+0x30>   
40006a60:	c2 06 40 00 	ld  [ %i1 ], %g1                               
    the_attr = attr;                                                  
  } else {                                                            
    (void) pthread_barrierattr_init( &my_attr );                      
40006a64:	b2 07 bf f0 	add  %fp, -16, %i1                             
40006a68:	7f ff ff c0 	call  40006968 <pthread_barrierattr_init>      
40006a6c:	90 10 00 19 	mov  %i1, %o0                                  
  }                                                                   
                                                                      
  /*                                                                  
   * Now start error checking the attributes that we are going to use 
   */                                                                 
  if ( !the_attr->is_initialized )                                    
40006a70:	c2 06 40 00 	ld  [ %i1 ], %g1                               
40006a74:	80 a0 60 00 	cmp  %g1, 0                                    
40006a78:	02 80 00 23 	be  40006b04 <pthread_barrier_init+0xc0>       
40006a7c:	01 00 00 00 	nop                                            
    return EINVAL;                                                    
                                                                      
  switch ( the_attr->process_shared ) {                               
40006a80:	c2 06 60 04 	ld  [ %i1 + 4 ], %g1                           
40006a84:	80 a0 60 00 	cmp  %g1, 0                                    
40006a88:	12 80 00 1f 	bne  40006b04 <pthread_barrier_init+0xc0>      <== NEVER TAKEN
40006a8c:	03 10 00 7c 	sethi  %hi(0x4001f000), %g1                    
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
40006a90:	c4 00 62 50 	ld  [ %g1 + 0x250 ], %g2	! 4001f250 <_Thread_Dispatch_disable_level>
                                                                      
  /*                                                                  
   * Convert from POSIX attributes to Core Barrier attributes         
   */                                                                 
  the_attributes.discipline    = CORE_BARRIER_AUTOMATIC_RELEASE;      
  the_attributes.maximum_count = count;                               
40006a94:	f4 27 bf fc 	st  %i2, [ %fp + -4 ]                          
40006a98:	84 00 a0 01 	inc  %g2                                       
  }                                                                   
                                                                      
  /*                                                                  
   * Convert from POSIX attributes to Core Barrier attributes         
   */                                                                 
  the_attributes.discipline    = CORE_BARRIER_AUTOMATIC_RELEASE;      
40006a9c:	c0 27 bf f8 	clr  [ %fp + -8 ]                              
40006aa0:	c4 20 62 50 	st  %g2, [ %g1 + 0x250 ]                       
 *  This function allocates a barrier control block from              
 *  the inactive chain of free barrier control blocks.                
 */                                                                   
RTEMS_INLINE_ROUTINE POSIX_Barrier_Control *_POSIX_Barrier_Allocate( void )
{                                                                     
  return (POSIX_Barrier_Control *)                                    
40006aa4:	23 10 00 7d 	sethi  %hi(0x4001f400), %l1                    
40006aa8:	40 00 08 28 	call  40008b48 <_Objects_Allocate>             
40006aac:	90 14 62 60 	or  %l1, 0x260, %o0	! 4001f660 <_POSIX_Barrier_Information>
   */                                                                 
  _Thread_Disable_dispatch();             /* prevents deletion */     
                                                                      
  the_barrier = _POSIX_Barrier_Allocate();                            
                                                                      
  if ( !the_barrier ) {                                               
40006ab0:	a0 92 20 00 	orcc  %o0, 0, %l0                              
40006ab4:	12 80 00 06 	bne  40006acc <pthread_barrier_init+0x88>      
40006ab8:	90 04 20 10 	add  %l0, 0x10, %o0                            
    _Thread_Enable_dispatch();                                        
40006abc:	40 00 0b 82 	call  400098c4 <_Thread_Enable_dispatch>       
40006ac0:	b0 10 20 0b 	mov  0xb, %i0                                  
    return EAGAIN;                                                    
40006ac4:	81 c7 e0 08 	ret                                            
40006ac8:	81 e8 00 00 	restore                                        
  }                                                                   
                                                                      
  _CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes ); 
40006acc:	40 00 05 b4 	call  4000819c <_CORE_barrier_Initialize>      
40006ad0:	92 07 bf f8 	add  %fp, -8, %o1                              
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
40006ad4:	c4 14 20 0a 	lduh  [ %l0 + 0xa ], %g2                       
40006ad8:	a2 14 62 60 	or  %l1, 0x260, %l1                            
40006adc:	c6 04 60 1c 	ld  [ %l1 + 0x1c ], %g3                        
40006ae0:	c2 04 20 08 	ld  [ %l0 + 8 ], %g1                           
40006ae4:	85 28 a0 02 	sll  %g2, 2, %g2                               
40006ae8:	e0 20 c0 02 	st  %l0, [ %g3 + %g2 ]                         
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  /* ASSERT: information->is_string == false */                       
  the_object->name.name_u32 = name;                                   
40006aec:	c0 24 20 0c 	clr  [ %l0 + 0xc ]                             
  );                                                                  
                                                                      
  /*                                                                  
   * Exit the critical section and return the user an operational barrier
   */                                                                 
  *barrier = the_barrier->Object.id;                                  
40006af0:	c2 26 00 00 	st  %g1, [ %i0 ]                               
  _Thread_Enable_dispatch();                                          
40006af4:	40 00 0b 74 	call  400098c4 <_Thread_Enable_dispatch>       
40006af8:	b0 10 20 00 	clr  %i0                                       
  return 0;                                                           
40006afc:	81 c7 e0 08 	ret                                            
40006b00:	81 e8 00 00 	restore                                        
}                                                                     
40006b04:	81 c7 e0 08 	ret                                            
40006b08:	91 e8 20 16 	restore  %g0, 0x16, %o0                        
                                                                      

40006200 <pthread_cleanup_push>: void pthread_cleanup_push( void (*routine)( void * ), void *arg ) {
40006200:	9d e3 bf a0 	save  %sp, -96, %sp                            
  /*                                                                  
   *  The POSIX standard does not address what to do when the routine 
   *  is NULL.  It also does not address what happens when we cannot  
   *  allocate memory or anything else bad happens.                   
   */                                                                 
  if ( !routine )                                                     
40006204:	80 a6 20 00 	cmp  %i0, 0                                    
40006208:	02 80 00 12 	be  40006250 <pthread_cleanup_push+0x50>       
4000620c:	03 10 00 7d 	sethi  %hi(0x4001f400), %g1                    
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
40006210:	c4 00 62 f0 	ld  [ %g1 + 0x2f0 ], %g2	! 4001f6f0 <_Thread_Dispatch_disable_level>
40006214:	84 00 a0 01 	inc  %g2                                       
40006218:	c4 20 62 f0 	st  %g2, [ %g1 + 0x2f0 ]                       
    return;                                                           
                                                                      
  _Thread_Disable_dispatch();                                         
  handler = _Workspace_Allocate( sizeof( POSIX_Cancel_Handler_control ) );
4000621c:	40 00 10 f7 	call  4000a5f8 <_Workspace_Allocate>           
40006220:	90 10 20 10 	mov  0x10, %o0                                 
                                                                      
  if ( handler ) {                                                    
40006224:	92 92 20 00 	orcc  %o0, 0, %o1                              
40006228:	02 80 00 08 	be  40006248 <pthread_cleanup_push+0x48>       <== NEVER TAKEN
4000622c:	03 10 00 7d 	sethi  %hi(0x4001f400), %g1                    
    thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
                                                                      
    handler_stack = &thread_support->Cancellation_Handlers;           
40006230:	c2 00 63 ac 	ld  [ %g1 + 0x3ac ], %g1	! 4001f7ac <_Thread_Executing>
                                                                      
    handler->routine = routine;                                       
40006234:	f0 22 60 08 	st  %i0, [ %o1 + 8 ]                           
  handler = _Workspace_Allocate( sizeof( POSIX_Cancel_Handler_control ) );
                                                                      
  if ( handler ) {                                                    
    thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
                                                                      
    handler_stack = &thread_support->Cancellation_Handlers;           
40006238:	d0 00 61 60 	ld  [ %g1 + 0x160 ], %o0                       
                                                                      
    handler->routine = routine;                                       
    handler->arg = arg;                                               
4000623c:	f2 22 60 0c 	st  %i1, [ %o1 + 0xc ]                         
                                                                      
    _Chain_Append( handler_stack, &handler->Node );                   
40006240:	40 00 06 06 	call  40007a58 <_Chain_Append>                 
40006244:	90 02 20 e0 	add  %o0, 0xe0, %o0                            
  }                                                                   
  _Thread_Enable_dispatch();                                          
40006248:	40 00 0b aa 	call  400090f0 <_Thread_Enable_dispatch>       
4000624c:	81 e8 00 00 	restore                                        
40006250:	81 c7 e0 08 	ret                                            
40006254:	81 e8 00 00 	restore                                        
                                                                      

40007300 <pthread_cond_init>: int pthread_cond_init( pthread_cond_t *cond, const pthread_condattr_t *attr ) {
40007300:	9d e3 bf a0 	save  %sp, -96, %sp                            
  POSIX_Condition_variables_Control   *the_cond;                      
  const pthread_condattr_t            *the_attr;                      
                                                                      
  if ( attr ) the_attr = attr;                                        
40007304:	25 10 00 7a 	sethi  %hi(0x4001e800), %l2                    
40007308:	80 a6 60 00 	cmp  %i1, 0                                    
4000730c:	02 80 00 03 	be  40007318 <pthread_cond_init+0x18>          
40007310:	a4 14 a2 50 	or  %l2, 0x250, %l2                            
40007314:	a4 10 00 19 	mov  %i1, %l2                                  
                                                                      
  /*                                                                  
   *  Be careful about attributes when global!!!                      
   */                                                                 
                                                                      
  if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED )           
40007318:	c2 04 a0 04 	ld  [ %l2 + 4 ], %g1                           
4000731c:	80 a0 60 01 	cmp  %g1, 1                                    
40007320:	02 80 00 26 	be  400073b8 <pthread_cond_init+0xb8>          <== NEVER TAKEN
40007324:	01 00 00 00 	nop                                            
    return EINVAL;                                                    
                                                                      
  if ( !the_attr->is_initialized )                                    
40007328:	c2 04 80 00 	ld  [ %l2 ], %g1                               
4000732c:	80 a0 60 00 	cmp  %g1, 0                                    
40007330:	02 80 00 22 	be  400073b8 <pthread_cond_init+0xb8>          
40007334:	03 10 00 81 	sethi  %hi(0x40020400), %g1                    
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
40007338:	c4 00 61 70 	ld  [ %g1 + 0x170 ], %g2	! 40020570 <_Thread_Dispatch_disable_level>
4000733c:	84 00 a0 01 	inc  %g2                                       
40007340:	c4 20 61 70 	st  %g2, [ %g1 + 0x170 ]                       
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE POSIX_Condition_variables_Control                
  *_POSIX_Condition_variables_Allocate( void )                        
{                                                                     
  return (POSIX_Condition_variables_Control *)                        
40007344:	23 10 00 82 	sethi  %hi(0x40020800), %l1                    
40007348:	40 00 09 b2 	call  40009a10 <_Objects_Allocate>             
4000734c:	90 14 62 18 	or  %l1, 0x218, %o0	! 40020a18 <_POSIX_Condition_variables_Information>
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  the_cond = _POSIX_Condition_variables_Allocate();                   
                                                                      
  if ( !the_cond ) {                                                  
40007350:	a0 92 20 00 	orcc  %o0, 0, %l0                              
40007354:	32 80 00 06 	bne,a   4000736c <pthread_cond_init+0x6c>      
40007358:	c2 04 a0 04 	ld  [ %l2 + 4 ], %g1                           
    _Thread_Enable_dispatch();                                        
4000735c:	40 00 0d 0c 	call  4000a78c <_Thread_Enable_dispatch>       
40007360:	b0 10 20 0c 	mov  0xc, %i0                                  
    return ENOMEM;                                                    
40007364:	81 c7 e0 08 	ret                                            
40007368:	81 e8 00 00 	restore                                        
  the_cond->process_shared  = the_attr->process_shared;               
                                                                      
  the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX;               
                                                                      
/* XXX some more initialization might need to go here */              
  _Thread_queue_Initialize(                                           
4000736c:	90 04 20 18 	add  %l0, 0x18, %o0                            
  if ( !the_cond ) {                                                  
    _Thread_Enable_dispatch();                                        
    return ENOMEM;                                                    
  }                                                                   
                                                                      
  the_cond->process_shared  = the_attr->process_shared;               
40007370:	c2 24 20 10 	st  %g1, [ %l0 + 0x10 ]                        
                                                                      
  the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX;               
                                                                      
/* XXX some more initialization might need to go here */              
  _Thread_queue_Initialize(                                           
40007374:	92 10 20 00 	clr  %o1                                       
40007378:	94 10 28 00 	mov  0x800, %o2                                
4000737c:	96 10 20 74 	mov  0x74, %o3                                 
40007380:	40 00 0f 19 	call  4000afe4 <_Thread_queue_Initialize>      
40007384:	c0 24 20 14 	clr  [ %l0 + 0x14 ]                            
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
40007388:	c4 14 20 0a 	lduh  [ %l0 + 0xa ], %g2                       
4000738c:	a2 14 62 18 	or  %l1, 0x218, %l1                            
40007390:	c6 04 60 1c 	ld  [ %l1 + 0x1c ], %g3                        
40007394:	c2 04 20 08 	ld  [ %l0 + 8 ], %g1                           
40007398:	85 28 a0 02 	sll  %g2, 2, %g2                               
4000739c:	e0 20 c0 02 	st  %l0, [ %g3 + %g2 ]                         
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  /* ASSERT: information->is_string == false */                       
  the_object->name.name_u32 = name;                                   
400073a0:	c0 24 20 0c 	clr  [ %l0 + 0xc ]                             
    &_POSIX_Condition_variables_Information,                          
    &the_cond->Object,                                                
    0                                                                 
  );                                                                  
                                                                      
  *cond = the_cond->Object.id;                                        
400073a4:	c2 26 00 00 	st  %g1, [ %i0 ]                               
                                                                      
  _Thread_Enable_dispatch();                                          
400073a8:	40 00 0c f9 	call  4000a78c <_Thread_Enable_dispatch>       
400073ac:	b0 10 20 00 	clr  %i0                                       
                                                                      
  return 0;                                                           
400073b0:	81 c7 e0 08 	ret                                            
400073b4:	81 e8 00 00 	restore                                        
}                                                                     
400073b8:	81 c7 e0 08 	ret                                            
400073bc:	91 e8 20 16 	restore  %g0, 0x16, %o0                        
                                                                      

40007178 <pthread_condattr_destroy>: int pthread_condattr_destroy( pthread_condattr_t *attr ) { if ( !attr || attr->is_initialized == false )
40007178:	80 a2 20 00 	cmp  %o0, 0                                    
4000717c:	02 80 00 09 	be  400071a0 <pthread_condattr_destroy+0x28>   
40007180:	01 00 00 00 	nop                                            
40007184:	c2 02 00 00 	ld  [ %o0 ], %g1                               
40007188:	80 a0 60 00 	cmp  %g1, 0                                    
4000718c:	02 80 00 05 	be  400071a0 <pthread_condattr_destroy+0x28>   <== NEVER TAKEN
40007190:	01 00 00 00 	nop                                            
    return EINVAL;                                                    
                                                                      
  attr->is_initialized = false;                                       
40007194:	c0 22 00 00 	clr  [ %o0 ]                                   
  return 0;                                                           
40007198:	81 c3 e0 08 	retl                                           
4000719c:	90 10 20 00 	clr  %o0                                       
}                                                                     
400071a0:	81 c3 e0 08 	retl                                           
400071a4:	90 10 20 16 	mov  0x16, %o0                                 
                                                                      

400066e0 <pthread_create>: pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)( void * ), void *arg ) {
400066e0:	9d e3 bf 58 	save  %sp, -168, %sp                           
400066e4:	a0 10 00 18 	mov  %i0, %l0                                  
  int                                 schedpolicy = SCHED_RR;         
  struct sched_param                  schedparam;                     
  Objects_Name                        name;                           
  int                                 rc;                             
                                                                      
  if ( !start_routine )                                               
400066e8:	80 a6 a0 00 	cmp  %i2, 0                                    
400066ec:	02 80 00 8b 	be  40006918 <pthread_create+0x238>            
400066f0:	b0 10 20 0e 	mov  0xe, %i0                                  
    return EFAULT;                                                    
                                                                      
  the_attr = (attr) ? attr : &_POSIX_Threads_Default_attributes;      
400066f4:	23 10 00 74 	sethi  %hi(0x4001d000), %l1                    
400066f8:	80 a6 60 00 	cmp  %i1, 0                                    
400066fc:	02 80 00 03 	be  40006708 <pthread_create+0x28>             
40006700:	a2 14 61 c8 	or  %l1, 0x1c8, %l1                            
40006704:	a2 10 00 19 	mov  %i1, %l1                                  
                                                                      
  if ( !the_attr->is_initialized )                                    
40006708:	c2 04 40 00 	ld  [ %l1 ], %g1                               
4000670c:	80 a0 60 00 	cmp  %g1, 0                                    
40006710:	22 80 00 82 	be,a   40006918 <pthread_create+0x238>         
40006714:	b0 10 20 16 	mov  0x16, %i0                                 
   *  stack space if it is allowed to allocate it itself.             
   *                                                                  
   *  NOTE: If the user provides the stack we will let it drop below  
   *        twice the minimum.                                        
   */                                                                 
  if ( the_attr->stackaddr && !_Stack_Is_enough(the_attr->stacksize) )
40006718:	c2 04 60 04 	ld  [ %l1 + 4 ], %g1                           
4000671c:	80 a0 60 00 	cmp  %g1, 0                                    
40006720:	02 80 00 07 	be  4000673c <pthread_create+0x5c>             
40006724:	03 10 00 78 	sethi  %hi(0x4001e000), %g1                    
40006728:	c4 04 60 08 	ld  [ %l1 + 8 ], %g2                           
4000672c:	c2 00 62 34 	ld  [ %g1 + 0x234 ], %g1                       
40006730:	80 a0 80 01 	cmp  %g2, %g1                                  
40006734:	2a 80 00 79 	bcs,a   40006918 <pthread_create+0x238>        
40006738:	b0 10 20 16 	mov  0x16, %i0                                 
   *  If inheritsched is set to PTHREAD_INHERIT_SCHED, then this thread
   *  inherits scheduling attributes from the creating thread.   If it is
   *  PTHREAD_EXPLICIT_SCHED, then scheduling parameters come from the
   *  attributes structure.                                           
   */                                                                 
  switch ( the_attr->inheritsched ) {                                 
4000673c:	c2 04 60 10 	ld  [ %l1 + 0x10 ], %g1                        
40006740:	80 a0 60 01 	cmp  %g1, 1                                    
40006744:	02 80 00 06 	be  4000675c <pthread_create+0x7c>             
40006748:	80 a0 60 02 	cmp  %g1, 2                                    
4000674c:	12 80 00 73 	bne  40006918 <pthread_create+0x238>           
40006750:	b0 10 20 16 	mov  0x16, %i0                                 
      schedpolicy = api->schedpolicy;                                 
      schedparam  = api->schedparam;                                  
      break;                                                          
                                                                      
    case PTHREAD_EXPLICIT_SCHED:                                      
      schedpolicy = the_attr->schedpolicy;                            
40006754:	10 80 00 0a 	b  4000677c <pthread_create+0x9c>              
40006758:	e6 04 60 14 	ld  [ %l1 + 0x14 ], %l3                        
   *  PTHREAD_EXPLICIT_SCHED, then scheduling parameters come from the
   *  attributes structure.                                           
   */                                                                 
  switch ( the_attr->inheritsched ) {                                 
    case PTHREAD_INHERIT_SCHED:                                       
      api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];    
4000675c:	03 10 00 7b 	sethi  %hi(0x4001ec00), %g1                    
40006760:	c2 00 61 7c 	ld  [ %g1 + 0x17c ], %g1	! 4001ed7c <_Thread_Executing>
      schedpolicy = api->schedpolicy;                                 
      schedparam  = api->schedparam;                                  
40006764:	90 07 bf dc 	add  %fp, -36, %o0                             
   *  PTHREAD_EXPLICIT_SCHED, then scheduling parameters come from the
   *  attributes structure.                                           
   */                                                                 
  switch ( the_attr->inheritsched ) {                                 
    case PTHREAD_INHERIT_SCHED:                                       
      api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];    
40006768:	c2 00 61 60 	ld  [ %g1 + 0x160 ], %g1                       
      schedpolicy = api->schedpolicy;                                 
      schedparam  = api->schedparam;                                  
4000676c:	94 10 20 1c 	mov  0x1c, %o2                                 
40006770:	92 00 60 84 	add  %g1, 0x84, %o1                            
   *  attributes structure.                                           
   */                                                                 
  switch ( the_attr->inheritsched ) {                                 
    case PTHREAD_INHERIT_SCHED:                                       
      api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];    
      schedpolicy = api->schedpolicy;                                 
40006774:	10 80 00 05 	b  40006788 <pthread_create+0xa8>              
40006778:	e6 00 60 80 	ld  [ %g1 + 0x80 ], %l3                        
      schedparam  = api->schedparam;                                  
      break;                                                          
                                                                      
    case PTHREAD_EXPLICIT_SCHED:                                      
      schedpolicy = the_attr->schedpolicy;                            
      schedparam  = the_attr->schedparam;                             
4000677c:	90 07 bf dc 	add  %fp, -36, %o0                             
40006780:	92 04 60 18 	add  %l1, 0x18, %o1                            
40006784:	94 10 20 1c 	mov  0x1c, %o2                                 
40006788:	40 00 29 13 	call  40010bd4 <memcpy>                        
4000678c:	b0 10 20 86 	mov  0x86, %i0                                 
                                                                      
  /*                                                                  
   *  Check the contentionscope since rtems only supports PROCESS wide
   *  contention (i.e. no system wide contention).                    
   */                                                                 
  if ( the_attr->contentionscope != PTHREAD_SCOPE_PROCESS )           
40006790:	c2 04 60 0c 	ld  [ %l1 + 0xc ], %g1                         
40006794:	80 a0 60 00 	cmp  %g1, 0                                    
40006798:	12 80 00 62 	bne  40006920 <pthread_create+0x240>           
4000679c:	01 00 00 00 	nop                                            
    return ENOTSUP;                                                   
                                                                      
  /*                                                                  
   *  Interpret the scheduling parameters.                            
   */                                                                 
  if ( !_POSIX_Priority_Is_valid( schedparam.sched_priority ) )       
400067a0:	40 00 19 cc 	call  4000ced0 <_POSIX_Priority_Is_valid>      
400067a4:	d0 07 bf dc 	ld  [ %fp + -36 ], %o0                         
400067a8:	80 8a 20 ff 	btst  0xff, %o0                                
400067ac:	02 80 00 5b 	be  40006918 <pthread_create+0x238>            <== NEVER TAKEN
400067b0:	b0 10 20 16 	mov  0x16, %i0                                 
                                                                      
RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(        
  int priority                                                        
)                                                                     
{                                                                     
  return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
400067b4:	03 10 00 78 	sethi  %hi(0x4001e000), %g1                    
    return EINVAL;                                                    
                                                                      
  core_priority = _POSIX_Priority_To_core( schedparam.sched_priority );
400067b8:	e8 07 bf dc 	ld  [ %fp + -36 ], %l4                         
400067bc:	ea 08 62 38 	ldub  [ %g1 + 0x238 ], %l5                     
                                                                      
  /*                                                                  
   *  Set the core scheduling policy information.                     
   */                                                                 
  rc = _POSIX_Thread_Translate_sched_param(                           
400067c0:	90 10 00 13 	mov  %l3, %o0                                  
400067c4:	92 07 bf dc 	add  %fp, -36, %o1                             
400067c8:	94 07 bf fc 	add  %fp, -4, %o2                              
400067cc:	40 00 19 cc 	call  4000cefc <_POSIX_Thread_Translate_sched_param>
400067d0:	96 07 bf f8 	add  %fp, -8, %o3                              
    schedpolicy,                                                      
    &schedparam,                                                      
    &budget_algorithm,                                                
    &budget_callout                                                   
  );                                                                  
  if ( rc )                                                           
400067d4:	b0 92 20 00 	orcc  %o0, 0, %i0                              
400067d8:	12 80 00 50 	bne  40006918 <pthread_create+0x238>           
400067dc:	2d 10 00 7b 	sethi  %hi(0x4001ec00), %l6                    
  #endif                                                              
                                                                      
  /*                                                                  
   *  Lock the allocator mutex for protection                         
   */                                                                 
  _RTEMS_Lock_allocator();                                            
400067e0:	40 00 05 fd 	call  40007fd4 <_API_Mutex_Lock>               
400067e4:	d0 05 a1 74 	ld  [ %l6 + 0x174 ], %o0	! 4001ed74 <_RTEMS_Allocator_Mutex>
 *  _POSIX_Threads_Allocate                                           
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Allocate( void )  
{                                                                     
  return (Thread_Control *) _Objects_Allocate( &_POSIX_Threads_Information );
400067e8:	11 10 00 7b 	sethi  %hi(0x4001ec00), %o0                    
400067ec:	40 00 08 63 	call  40008978 <_Objects_Allocate>             
400067f0:	90 12 23 50 	or  %o0, 0x350, %o0	! 4001ef50 <_POSIX_Threads_Information>
   *  Allocate the thread control block.                              
   *                                                                  
   *  NOTE:  Global threads are not currently supported.              
   */                                                                 
  the_thread = _POSIX_Threads_Allocate();                             
  if ( !the_thread ) {                                                
400067f4:	a4 92 20 00 	orcc  %o0, 0, %l2                              
400067f8:	32 80 00 04 	bne,a   40006808 <pthread_create+0x128>        
400067fc:	c2 04 60 08 	ld  [ %l1 + 8 ], %g1                           
    _RTEMS_Unlock_allocator();                                        
40006800:	10 80 00 21 	b  40006884 <pthread_create+0x1a4>             
40006804:	d0 05 a1 74 	ld  [ %l6 + 0x174 ], %o0                       
                                                                      
  /*                                                                  
   *  Initialize the core thread for this task.                       
   */                                                                 
  name.name_p = NULL;   /* posix threads don't have a name by default */
  status = _Thread_Initialize(                                        
40006808:	05 10 00 78 	sethi  %hi(0x4001e000), %g2                    
4000680c:	d6 00 a2 34 	ld  [ %g2 + 0x234 ], %o3	! 4001e234 <rtems_minimum_stack_size>
40006810:	c0 27 bf d4 	clr  [ %fp + -44 ]                             
40006814:	97 2a e0 01 	sll  %o3, 1, %o3                               
40006818:	80 a2 c0 01 	cmp  %o3, %g1                                  
4000681c:	1a 80 00 03 	bcc  40006828 <pthread_create+0x148>           
40006820:	d4 04 60 04 	ld  [ %l1 + 4 ], %o2                           
40006824:	96 10 00 01 	mov  %g1, %o3                                  
40006828:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
4000682c:	9a 0d 60 ff 	and  %l5, 0xff, %o5                            
40006830:	c2 23 a0 60 	st  %g1, [ %sp + 0x60 ]                        
40006834:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
40006838:	9a 23 40 14 	sub  %o5, %l4, %o5                             
4000683c:	c2 23 a0 64 	st  %g1, [ %sp + 0x64 ]                        
40006840:	82 07 bf d4 	add  %fp, -44, %g1                             
40006844:	c0 23 a0 68 	clr  [ %sp + 0x68 ]                            
40006848:	a8 10 20 01 	mov  1, %l4                                    
4000684c:	c2 23 a0 6c 	st  %g1, [ %sp + 0x6c ]                        
40006850:	e8 23 a0 5c 	st  %l4, [ %sp + 0x5c ]                        
40006854:	2b 10 00 7b 	sethi  %hi(0x4001ec00), %l5                    
40006858:	92 10 00 12 	mov  %l2, %o1                                  
4000685c:	90 15 63 50 	or  %l5, 0x350, %o0                            
40006860:	40 00 0b f3 	call  4000982c <_Thread_Initialize>            
40006864:	98 10 20 00 	clr  %o4                                       
    budget_callout,                                                   
    0,                    /* isr level */                             
    name                  /* posix threads don't have a name */       
  );                                                                  
                                                                      
  if ( !status ) {                                                    
40006868:	80 8a 20 ff 	btst  0xff, %o0                                
4000686c:	12 80 00 08 	bne  4000688c <pthread_create+0x1ac>           
40006870:	90 15 63 50 	or  %l5, 0x350, %o0                            
                                                                      
RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free (                       
  Thread_Control *the_pthread                                         
)                                                                     
{                                                                     
  _Objects_Free( &_POSIX_Threads_Information, &the_pthread->Object ); 
40006874:	40 00 09 1b 	call  40008ce0 <_Objects_Free>                 
40006878:	92 10 00 12 	mov  %l2, %o1                                  
    _POSIX_Threads_Free( the_thread );                                
    _RTEMS_Unlock_allocator();                                        
4000687c:	03 10 00 7b 	sethi  %hi(0x4001ec00), %g1                    
40006880:	d0 00 61 74 	ld  [ %g1 + 0x174 ], %o0	! 4001ed74 <_RTEMS_Allocator_Mutex>
40006884:	10 80 00 23 	b  40006910 <pthread_create+0x230>             
40006888:	b0 10 20 0b 	mov  0xb, %i0                                  
  }                                                                   
                                                                      
  /*                                                                  
   *  finish initializing the per API structure                       
   */                                                                 
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
4000688c:	ea 04 a1 60 	ld  [ %l2 + 0x160 ], %l5                       
                                                                      
  api->Attributes  = *the_attr;                                       
40006890:	92 10 00 11 	mov  %l1, %o1                                  
40006894:	94 10 20 3c 	mov  0x3c, %o2                                 
40006898:	40 00 28 cf 	call  40010bd4 <memcpy>                        
4000689c:	90 10 00 15 	mov  %l5, %o0                                  
  api->detachstate = the_attr->detachstate;                           
400068a0:	c2 04 60 38 	ld  [ %l1 + 0x38 ], %g1                        
  api->schedpolicy = schedpolicy;                                     
  api->schedparam  = schedparam;                                      
400068a4:	92 07 bf dc 	add  %fp, -36, %o1                             
   *  finish initializing the per API structure                       
   */                                                                 
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
                                                                      
  api->Attributes  = *the_attr;                                       
  api->detachstate = the_attr->detachstate;                           
400068a8:	c2 25 60 3c 	st  %g1, [ %l5 + 0x3c ]                        
  api->schedpolicy = schedpolicy;                                     
  api->schedparam  = schedparam;                                      
400068ac:	94 10 20 1c 	mov  0x1c, %o2                                 
   */                                                                 
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
                                                                      
  api->Attributes  = *the_attr;                                       
  api->detachstate = the_attr->detachstate;                           
  api->schedpolicy = schedpolicy;                                     
400068b0:	e6 25 60 80 	st  %l3, [ %l5 + 0x80 ]                        
  api->schedparam  = schedparam;                                      
400068b4:	40 00 28 c8 	call  40010bd4 <memcpy>                        
400068b8:	90 05 60 84 	add  %l5, 0x84, %o0                            
  the_thread->do_post_task_switch_extension = true;                   
                                                                      
  /*                                                                  
   *  POSIX threads are allocated and started in one operation.       
   */                                                                 
  status = _Thread_Start(                                             
400068bc:	94 10 00 1a 	mov  %i2, %o2                                  
   *  This insures we evaluate the process-wide signals pending when we
   *  first run.                                                      
   *                                                                  
   *  NOTE:  Since the thread starts with all unblocked, this is necessary.
   */                                                                 
  the_thread->do_post_task_switch_extension = true;                   
400068c0:	e8 2c a0 74 	stb  %l4, [ %l2 + 0x74 ]                       
                                                                      
  /*                                                                  
   *  POSIX threads are allocated and started in one operation.       
   */                                                                 
  status = _Thread_Start(                                             
400068c4:	96 10 00 1b 	mov  %i3, %o3                                  
400068c8:	90 10 00 12 	mov  %l2, %o0                                  
400068cc:	92 10 20 01 	mov  1, %o1                                    
400068d0:	40 00 0e b3 	call  4000a39c <_Thread_Start>                 
400068d4:	98 10 20 00 	clr  %o4                                       
      _RTEMS_Unlock_allocator();                                      
      return EINVAL;                                                  
    }                                                                 
  #endif                                                              
                                                                      
  if ( schedpolicy == SCHED_SPORADIC ) {                              
400068d8:	80 a4 e0 04 	cmp  %l3, 4                                    
400068dc:	32 80 00 0a 	bne,a   40006904 <pthread_create+0x224>        
400068e0:	c2 04 a0 08 	ld  [ %l2 + 8 ], %g1                           
    _Watchdog_Insert_ticks(                                           
400068e4:	40 00 0f 57 	call  4000a640 <_Timespec_To_ticks>            
400068e8:	90 05 60 8c 	add  %l5, 0x8c, %o0                            
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
400068ec:	92 05 60 a4 	add  %l5, 0xa4, %o1                            
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
400068f0:	d0 25 60 b0 	st  %o0, [ %l5 + 0xb0 ]                        
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
400068f4:	11 10 00 7b 	sethi  %hi(0x4001ec00), %o0                    
400068f8:	40 00 10 2e 	call  4000a9b0 <_Watchdog_Insert>              
400068fc:	90 12 21 9c 	or  %o0, 0x19c, %o0	! 4001ed9c <_Watchdog_Ticks_chain>
  }                                                                   
                                                                      
  /*                                                                  
   *  Return the id and indicate we successfully created the thread   
   */                                                                 
  *thread = the_thread->Object.id;                                    
40006900:	c2 04 a0 08 	ld  [ %l2 + 8 ], %g1                           
                                                                      
  _RTEMS_Unlock_allocator();                                          
40006904:	05 10 00 7b 	sethi  %hi(0x4001ec00), %g2                    
40006908:	d0 00 a1 74 	ld  [ %g2 + 0x174 ], %o0	! 4001ed74 <_RTEMS_Allocator_Mutex>
  }                                                                   
                                                                      
  /*                                                                  
   *  Return the id and indicate we successfully created the thread   
   */                                                                 
  *thread = the_thread->Object.id;                                    
4000690c:	c2 24 00 00 	st  %g1, [ %l0 ]                               
                                                                      
  _RTEMS_Unlock_allocator();                                          
40006910:	40 00 05 c7 	call  4000802c <_API_Mutex_Unlock>             
40006914:	01 00 00 00 	nop                                            
  return 0;                                                           
40006918:	81 c7 e0 08 	ret                                            
4000691c:	81 e8 00 00 	restore                                        
}                                                                     
40006920:	81 c7 e0 08 	ret                                            
40006924:	81 e8 00 00 	restore                                        
                                                                      

400060fc <pthread_mutexattr_gettype>: int pthread_mutexattr_gettype( const pthread_mutexattr_t *attr, int *type ) { if ( !attr )
400060fc:	80 a2 20 00 	cmp  %o0, 0                                    
40006100:	02 80 00 0c 	be  40006130 <pthread_mutexattr_gettype+0x34>  
40006104:	01 00 00 00 	nop                                            
    return EINVAL;                                                    
                                                                      
  if ( !attr->is_initialized )                                        
40006108:	c2 02 00 00 	ld  [ %o0 ], %g1                               
4000610c:	80 a0 60 00 	cmp  %g1, 0                                    
40006110:	02 80 00 08 	be  40006130 <pthread_mutexattr_gettype+0x34>  
40006114:	80 a2 60 00 	cmp  %o1, 0                                    
    return EINVAL;                                                    
                                                                      
  if ( !type )                                                        
40006118:	02 80 00 06 	be  40006130 <pthread_mutexattr_gettype+0x34>  <== NEVER TAKEN
4000611c:	01 00 00 00 	nop                                            
    return EINVAL;                                                    
                                                                      
  *type = attr->type;                                                 
40006120:	c2 02 20 10 	ld  [ %o0 + 0x10 ], %g1                        
40006124:	90 10 20 00 	clr  %o0                                       
  return 0;                                                           
40006128:	81 c3 e0 08 	retl                                           
4000612c:	c2 22 40 00 	st  %g1, [ %o1 ]                               
}                                                                     
40006130:	81 c3 e0 08 	retl                                           
40006134:	90 10 20 16 	mov  0x16, %o0                                 
                                                                      

40008564 <pthread_mutexattr_setpshared>: int pthread_mutexattr_setpshared( pthread_mutexattr_t *attr, int pshared ) { if ( !attr || !attr->is_initialized )
40008564:	80 a2 20 00 	cmp  %o0, 0                                    
40008568:	02 80 00 0b 	be  40008594 <pthread_mutexattr_setpshared+0x30>
4000856c:	01 00 00 00 	nop                                            
40008570:	c2 02 00 00 	ld  [ %o0 ], %g1                               
40008574:	80 a0 60 00 	cmp  %g1, 0                                    
40008578:	02 80 00 07 	be  40008594 <pthread_mutexattr_setpshared+0x30>
4000857c:	80 a2 60 01 	cmp  %o1, 1                                    
    return EINVAL;                                                    
                                                                      
  switch ( pshared ) {                                                
40008580:	18 80 00 05 	bgu  40008594 <pthread_mutexattr_setpshared+0x30><== NEVER TAKEN
40008584:	01 00 00 00 	nop                                            
    case PTHREAD_PROCESS_SHARED:                                      
    case PTHREAD_PROCESS_PRIVATE:                                     
      attr->process_shared = pshared;                                 
40008588:	d2 22 20 04 	st  %o1, [ %o0 + 4 ]                           
      return 0;                                                       
4000858c:	81 c3 e0 08 	retl                                           
40008590:	90 10 20 00 	clr  %o0                                       
                                                                      
    default:                                                          
      return EINVAL;                                                  
  }                                                                   
}                                                                     
40008594:	81 c3 e0 08 	retl                                           
40008598:	90 10 20 16 	mov  0x16, %o0                                 
                                                                      

40006164 <pthread_mutexattr_settype>: int pthread_mutexattr_settype( pthread_mutexattr_t *attr, int type ) { if ( !attr || !attr->is_initialized )
40006164:	80 a2 20 00 	cmp  %o0, 0                                    
40006168:	02 80 00 0b 	be  40006194 <pthread_mutexattr_settype+0x30>  
4000616c:	01 00 00 00 	nop                                            
40006170:	c2 02 00 00 	ld  [ %o0 ], %g1                               
40006174:	80 a0 60 00 	cmp  %g1, 0                                    
40006178:	02 80 00 07 	be  40006194 <pthread_mutexattr_settype+0x30>  <== NEVER TAKEN
4000617c:	80 a2 60 03 	cmp  %o1, 3                                    
    return EINVAL;                                                    
                                                                      
  switch ( type ) {                                                   
40006180:	18 80 00 05 	bgu  40006194 <pthread_mutexattr_settype+0x30> 
40006184:	01 00 00 00 	nop                                            
    case PTHREAD_MUTEX_NORMAL:                                        
    case PTHREAD_MUTEX_RECURSIVE:                                     
    case PTHREAD_MUTEX_ERRORCHECK:                                    
    case PTHREAD_MUTEX_DEFAULT:                                       
      attr->type = type;                                              
40006188:	d2 22 20 10 	st  %o1, [ %o0 + 0x10 ]                        
      return 0;                                                       
4000618c:	81 c3 e0 08 	retl                                           
40006190:	90 10 20 00 	clr  %o0                                       
                                                                      
    default:                                                          
      return EINVAL;                                                  
  }                                                                   
}                                                                     
40006194:	81 c3 e0 08 	retl                                           
40006198:	90 10 20 16 	mov  0x16, %o0                                 
                                                                      

40006d0c <pthread_once>: int pthread_once( pthread_once_t *once_control, void (*init_routine)(void) ) {
40006d0c:	9d e3 bf 98 	save  %sp, -104, %sp                           
  if ( !once_control || !init_routine )                               
40006d10:	80 a6 60 00 	cmp  %i1, 0                                    
40006d14:	02 80 00 05 	be  40006d28 <pthread_once+0x1c>               
40006d18:	a0 10 00 18 	mov  %i0, %l0                                  
40006d1c:	80 a6 20 00 	cmp  %i0, 0                                    
40006d20:	32 80 00 04 	bne,a   40006d30 <pthread_once+0x24>           
40006d24:	c2 06 20 04 	ld  [ %i0 + 4 ], %g1                           
40006d28:	81 c7 e0 08 	ret                                            
40006d2c:	91 e8 20 16 	restore  %g0, 0x16, %o0                        
    return EINVAL;                                                    
                                                                      
  if ( !once_control->init_executed ) {                               
40006d30:	80 a0 60 00 	cmp  %g1, 0                                    
40006d34:	12 80 00 13 	bne  40006d80 <pthread_once+0x74>              
40006d38:	b0 10 20 00 	clr  %i0                                       
    rtems_mode saveMode;                                              
    rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 
40006d3c:	90 10 21 00 	mov  0x100, %o0                                
40006d40:	92 10 21 00 	mov  0x100, %o1                                
40006d44:	40 00 03 03 	call  40007950 <rtems_task_mode>               
40006d48:	94 07 bf fc 	add  %fp, -4, %o2                              
    if ( !once_control->init_executed ) {                             
40006d4c:	c2 04 20 04 	ld  [ %l0 + 4 ], %g1                           
40006d50:	80 a0 60 00 	cmp  %g1, 0                                    
40006d54:	12 80 00 07 	bne  40006d70 <pthread_once+0x64>              <== NEVER TAKEN
40006d58:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          
      once_control->is_initialized = true;                            
40006d5c:	82 10 20 01 	mov  1, %g1                                    
      once_control->init_executed = true;                             
40006d60:	c2 24 20 04 	st  %g1, [ %l0 + 4 ]                           
      (*init_routine)();                                              
40006d64:	9f c6 40 00 	call  %i1                                      
40006d68:	c2 24 00 00 	st  %g1, [ %l0 ]                               
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
40006d6c:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          
40006d70:	92 10 21 00 	mov  0x100, %o1                                
40006d74:	94 07 bf fc 	add  %fp, -4, %o2                              
40006d78:	40 00 02 f6 	call  40007950 <rtems_task_mode>               
40006d7c:	b0 10 20 00 	clr  %i0                                       
  }                                                                   
  return 0;                                                           
}                                                                     
40006d80:	81 c7 e0 08 	ret                                            
40006d84:	81 e8 00 00 	restore                                        
                                                                      

40007534 <pthread_rwlock_init>: int pthread_rwlock_init( pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr ) {
40007534:	9d e3 bf 90 	save  %sp, -112, %sp                           
  const pthread_rwlockattr_t  *the_attr;                              
                                                                      
  /*                                                                  
   *  Error check parameters                                          
   */                                                                 
  if ( !rwlock )                                                      
40007538:	80 a6 20 00 	cmp  %i0, 0                                    
4000753c:	02 80 00 2a 	be  400075e4 <pthread_rwlock_init+0xb0>        
40007540:	80 a6 60 00 	cmp  %i1, 0                                    
    return EINVAL;                                                    
                                                                      
  /*                                                                  
   * If the user passed in NULL, use the default attributes           
   */                                                                 
  if ( attr ) {                                                       
40007544:	32 80 00 06 	bne,a   4000755c <pthread_rwlock_init+0x28>    
40007548:	c2 06 40 00 	ld  [ %i1 ], %g1                               
    the_attr = attr;                                                  
  } else {                                                            
    (void) pthread_rwlockattr_init( &default_attr );                  
4000754c:	b2 07 bf f4 	add  %fp, -12, %i1                             
40007550:	40 00 02 7f 	call  40007f4c <pthread_rwlockattr_init>       
40007554:	90 10 00 19 	mov  %i1, %o0                                  
  }                                                                   
                                                                      
  /*                                                                  
   * Now start error checking the attributes that we are going to use 
   */                                                                 
  if ( !the_attr->is_initialized )                                    
40007558:	c2 06 40 00 	ld  [ %i1 ], %g1                               
4000755c:	80 a0 60 00 	cmp  %g1, 0                                    
40007560:	02 80 00 21 	be  400075e4 <pthread_rwlock_init+0xb0>        <== NEVER TAKEN
40007564:	01 00 00 00 	nop                                            
    return EINVAL;                                                    
                                                                      
  switch ( the_attr->process_shared ) {                               
40007568:	c2 06 60 04 	ld  [ %i1 + 4 ], %g1                           
4000756c:	80 a0 60 00 	cmp  %g1, 0                                    
40007570:	12 80 00 1d 	bne  400075e4 <pthread_rwlock_init+0xb0>       <== NEVER TAKEN
40007574:	03 10 00 82 	sethi  %hi(0x40020800), %g1                    
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
40007578:	c4 00 62 a0 	ld  [ %g1 + 0x2a0 ], %g2	! 40020aa0 <_Thread_Dispatch_disable_level>
4000757c:	84 00 a0 01 	inc  %g2                                       
40007580:	c4 20 62 a0 	st  %g2, [ %g1 + 0x2a0 ]                       
 *  This function allocates a RWLock control block from               
 *  the inactive chain of free RWLock control blocks.                 
 */                                                                   
RTEMS_INLINE_ROUTINE POSIX_RWLock_Control *_POSIX_RWLock_Allocate( void )
{                                                                     
  return (POSIX_RWLock_Control *)                                     
40007584:	23 10 00 83 	sethi  %hi(0x40020c00), %l1                    
40007588:	40 00 09 dc 	call  40009cf8 <_Objects_Allocate>             
4000758c:	90 14 60 f0 	or  %l1, 0xf0, %o0	! 40020cf0 <_POSIX_RWLock_Information>
   */                                                                 
  _Thread_Disable_dispatch();             /* prevents deletion */     
                                                                      
  the_rwlock = _POSIX_RWLock_Allocate();                              
                                                                      
  if ( !the_rwlock ) {                                                
40007590:	a0 92 20 00 	orcc  %o0, 0, %l0                              
40007594:	12 80 00 06 	bne  400075ac <pthread_rwlock_init+0x78>       
40007598:	90 04 20 10 	add  %l0, 0x10, %o0                            
    _Thread_Enable_dispatch();                                        
4000759c:	40 00 0d 36 	call  4000aa74 <_Thread_Enable_dispatch>       
400075a0:	b0 10 20 0b 	mov  0xb, %i0                                  
    return EAGAIN;                                                    
400075a4:	81 c7 e0 08 	ret                                            
400075a8:	81 e8 00 00 	restore                                        
  }                                                                   
                                                                      
  _CORE_RWLock_Initialize( &the_rwlock->RWLock, &the_attributes );    
400075ac:	40 00 07 91 	call  400093f0 <_CORE_RWLock_Initialize>       
400075b0:	92 07 bf fc 	add  %fp, -4, %o1                              
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
400075b4:	c4 14 20 0a 	lduh  [ %l0 + 0xa ], %g2                       
400075b8:	a2 14 60 f0 	or  %l1, 0xf0, %l1                             
400075bc:	c6 04 60 1c 	ld  [ %l1 + 0x1c ], %g3                        
400075c0:	c2 04 20 08 	ld  [ %l0 + 8 ], %g1                           
400075c4:	85 28 a0 02 	sll  %g2, 2, %g2                               
400075c8:	e0 20 c0 02 	st  %l0, [ %g3 + %g2 ]                         
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  /* ASSERT: information->is_string == false */                       
  the_object->name.name_u32 = name;                                   
400075cc:	c0 24 20 0c 	clr  [ %l0 + 0xc ]                             
    &_POSIX_RWLock_Information,                                       
    &the_rwlock->Object,                                              
    0                                                                 
  );                                                                  
                                                                      
  *rwlock = the_rwlock->Object.id;                                    
400075d0:	c2 26 00 00 	st  %g1, [ %i0 ]                               
                                                                      
  _Thread_Enable_dispatch();                                          
400075d4:	40 00 0d 28 	call  4000aa74 <_Thread_Enable_dispatch>       
400075d8:	b0 10 20 00 	clr  %i0                                       
  return 0;                                                           
400075dc:	81 c7 e0 08 	ret                                            
400075e0:	81 e8 00 00 	restore                                        
}                                                                     
400075e4:	81 c7 e0 08 	ret                                            
400075e8:	91 e8 20 16 	restore  %g0, 0x16, %o0                        
                                                                      

40007664 <pthread_rwlock_timedrdlock>: int pthread_rwlock_timedrdlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) {
40007664:	9d e3 bf 98 	save  %sp, -104, %sp                           
  Objects_Locations                            location;              
  Watchdog_Interval                            ticks;                 
  bool                                         do_wait = true;        
  POSIX_Absolute_timeout_conversion_results_t  status;                
                                                                      
  if ( !rwlock )                                                      
40007668:	80 a6 20 00 	cmp  %i0, 0                                    
4000766c:	02 80 00 2d 	be  40007720 <pthread_rwlock_timedrdlock+0xbc> 
40007670:	90 10 00 19 	mov  %i1, %o0                                  
   *                                                                  
   *  If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,                
   *  POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
   *  then we should not wait.                                        
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
40007674:	40 00 1a bd 	call  4000e168 <_POSIX_Absolute_timeout_to_ticks>
40007678:	92 07 bf f8 	add  %fp, -8, %o1                              
4000767c:	d2 06 00 00 	ld  [ %i0 ], %o1                               
40007680:	a0 10 00 08 	mov  %o0, %l0                                  
40007684:	94 07 bf fc 	add  %fp, -4, %o2                              
40007688:	11 10 00 83 	sethi  %hi(0x40020c00), %o0                    
4000768c:	40 00 0a da 	call  4000a1f4 <_Objects_Get>                  
40007690:	90 12 20 f0 	or  %o0, 0xf0, %o0	! 40020cf0 <_POSIX_RWLock_Information>
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
    do_wait = false;                                                  
                                                                      
  the_rwlock = _POSIX_RWLock_Get( rwlock, &location );                
  switch ( location ) {                                               
40007694:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
40007698:	80 a0 60 00 	cmp  %g1, 0                                    
4000769c:	32 80 00 22 	bne,a   40007724 <pthread_rwlock_timedrdlock+0xc0>
400076a0:	90 10 20 16 	mov  0x16, %o0                                 
                                                                      
    case OBJECTS_LOCAL:                                               
                                                                      
      _CORE_RWLock_Obtain_for_reading(                                
400076a4:	d2 06 00 00 	ld  [ %i0 ], %o1                               
400076a8:	d6 07 bf f8 	ld  [ %fp + -8 ], %o3                          
int	_EXFUN(pthread_rwlock_init,                                       
	(pthread_rwlock_t *__rwlock, _CONST pthread_rwlockattr_t *__attr));  
int	_EXFUN(pthread_rwlock_destroy, (pthread_rwlock_t *__rwlock));     
int	_EXFUN(pthread_rwlock_rdlock,(pthread_rwlock_t *__rwlock));       
int	_EXFUN(pthread_rwlock_tryrdlock,(pthread_rwlock_t *__rwlock));    
int	_EXFUN(pthread_rwlock_timedrdlock,                                
400076ac:	82 1c 20 03 	xor  %l0, 3, %g1                               
400076b0:	90 02 20 10 	add  %o0, 0x10, %o0                            
400076b4:	80 a0 00 01 	cmp  %g0, %g1                                  
400076b8:	98 10 20 00 	clr  %o4                                       
400076bc:	a2 60 3f ff 	subx  %g0, -1, %l1                             
400076c0:	40 00 07 57 	call  4000941c <_CORE_RWLock_Obtain_for_reading>
400076c4:	94 10 00 11 	mov  %l1, %o2                                  
	do_wait,                                                             
	ticks,                                                               
	NULL                                                                 
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
400076c8:	40 00 0c eb 	call  4000aa74 <_Thread_Enable_dispatch>       
400076cc:	01 00 00 00 	nop                                            
      if ( !do_wait ) {                                               
400076d0:	80 a4 60 00 	cmp  %l1, 0                                    
400076d4:	12 80 00 0d 	bne  40007708 <pthread_rwlock_timedrdlock+0xa4>
400076d8:	03 10 00 82 	sethi  %hi(0x40020800), %g1                    
        if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) {
400076dc:	c2 00 63 5c 	ld  [ %g1 + 0x35c ], %g1	! 40020b5c <_Thread_Executing>
400076e0:	c2 00 60 34 	ld  [ %g1 + 0x34 ], %g1                        
400076e4:	80 a0 60 02 	cmp  %g1, 2                                    
400076e8:	32 80 00 09 	bne,a   4000770c <pthread_rwlock_timedrdlock+0xa8>
400076ec:	03 10 00 82 	sethi  %hi(0x40020800), %g1                    
	  switch (status) {                                                  
400076f0:	80 a4 20 00 	cmp  %l0, 0                                    
400076f4:	02 80 00 0c 	be  40007724 <pthread_rwlock_timedrdlock+0xc0> <== NEVER TAKEN
400076f8:	90 10 20 16 	mov  0x16, %o0                                 
400076fc:	80 a4 20 02 	cmp  %l0, 2                                    
40007700:	08 80 00 09 	bleu  40007724 <pthread_rwlock_timedrdlock+0xc0><== ALWAYS TAKEN
40007704:	90 10 20 74 	mov  0x74, %o0                                 
	      break;                                                         
	  }                                                                  
        }                                                             
      }                                                               
                                                                      
      return _POSIX_RWLock_Translate_core_RWLock_return_code(         
40007708:	03 10 00 82 	sethi  %hi(0x40020800), %g1                    
4000770c:	c2 00 63 5c 	ld  [ %g1 + 0x35c ], %g1	! 40020b5c <_Thread_Executing>
40007710:	40 00 00 3b 	call  400077fc <_POSIX_RWLock_Translate_core_RWLock_return_code>
40007714:	d0 00 60 34 	ld  [ %g1 + 0x34 ], %o0                        
40007718:	81 c7 e0 08 	ret                                            
4000771c:	91 e8 00 08 	restore  %g0, %o0, %o0                         
40007720:	90 10 20 16 	mov  0x16, %o0                                 
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return EINVAL;                                                      
}                                                                     
40007724:	b0 10 00 08 	mov  %o0, %i0                                  
40007728:	81 c7 e0 08 	ret                                            
4000772c:	81 e8 00 00 	restore                                        
                                                                      

40007730 <pthread_rwlock_timedwrlock>: int pthread_rwlock_timedwrlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) {
40007730:	9d e3 bf 98 	save  %sp, -104, %sp                           
  Objects_Locations                            location;              
  Watchdog_Interval                            ticks;                 
  bool                                         do_wait = true;        
  POSIX_Absolute_timeout_conversion_results_t  status;                
                                                                      
  if ( !rwlock )                                                      
40007734:	80 a6 20 00 	cmp  %i0, 0                                    
40007738:	02 80 00 2d 	be  400077ec <pthread_rwlock_timedwrlock+0xbc> 
4000773c:	90 10 00 19 	mov  %i1, %o0                                  
   *                                                                  
   *  If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,                
   *  POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
   *  then we should not wait.                                        
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
40007740:	40 00 1a 8a 	call  4000e168 <_POSIX_Absolute_timeout_to_ticks>
40007744:	92 07 bf f8 	add  %fp, -8, %o1                              
40007748:	d2 06 00 00 	ld  [ %i0 ], %o1                               
4000774c:	a0 10 00 08 	mov  %o0, %l0                                  
40007750:	94 07 bf fc 	add  %fp, -4, %o2                              
40007754:	11 10 00 83 	sethi  %hi(0x40020c00), %o0                    
40007758:	40 00 0a a7 	call  4000a1f4 <_Objects_Get>                  
4000775c:	90 12 20 f0 	or  %o0, 0xf0, %o0	! 40020cf0 <_POSIX_RWLock_Information>
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
    do_wait = false;                                                  
                                                                      
  the_rwlock = _POSIX_RWLock_Get( rwlock, &location );                
  switch ( location ) {                                               
40007760:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
40007764:	80 a0 60 00 	cmp  %g1, 0                                    
40007768:	32 80 00 22 	bne,a   400077f0 <pthread_rwlock_timedwrlock+0xc0>
4000776c:	90 10 20 16 	mov  0x16, %o0                                 
                                                                      
    case OBJECTS_LOCAL:                                               
                                                                      
      _CORE_RWLock_Obtain_for_writing(                                
40007770:	d2 06 00 00 	ld  [ %i0 ], %o1                               
40007774:	d6 07 bf f8 	ld  [ %fp + -8 ], %o3                          
        (pthread_rwlock_t *__rwlock, _CONST struct timespec *__abstime));
int	_EXFUN(pthread_rwlock_unlock,(pthread_rwlock_t *__rwlock));       
int	_EXFUN(pthread_rwlock_wrlock,(pthread_rwlock_t *__rwlock));       
int	_EXFUN(pthread_rwlock_trywrlock,(pthread_rwlock_t *__rwlock));    
int	_EXFUN(pthread_rwlock_timedwrlock,                                
40007778:	82 1c 20 03 	xor  %l0, 3, %g1                               
4000777c:	90 02 20 10 	add  %o0, 0x10, %o0                            
40007780:	80 a0 00 01 	cmp  %g0, %g1                                  
40007784:	98 10 20 00 	clr  %o4                                       
40007788:	a2 60 3f ff 	subx  %g0, -1, %l1                             
4000778c:	40 00 07 58 	call  400094ec <_CORE_RWLock_Obtain_for_writing>
40007790:	94 10 00 11 	mov  %l1, %o2                                  
	do_wait,                                                             
	ticks,                                                               
	NULL                                                                 
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
40007794:	40 00 0c b8 	call  4000aa74 <_Thread_Enable_dispatch>       
40007798:	01 00 00 00 	nop                                            
      if ( !do_wait &&                                                
4000779c:	80 a4 60 00 	cmp  %l1, 0                                    
400077a0:	12 80 00 0d 	bne  400077d4 <pthread_rwlock_timedwrlock+0xa4>
400077a4:	03 10 00 82 	sethi  %hi(0x40020800), %g1                    
           (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) {
400077a8:	c2 00 63 5c 	ld  [ %g1 + 0x35c ], %g1	! 40020b5c <_Thread_Executing>
400077ac:	c2 00 60 34 	ld  [ %g1 + 0x34 ], %g1                        
400077b0:	80 a0 60 02 	cmp  %g1, 2                                    
400077b4:	32 80 00 09 	bne,a   400077d8 <pthread_rwlock_timedwrlock+0xa8>
400077b8:	03 10 00 82 	sethi  %hi(0x40020800), %g1                    
	switch (status) {                                                    
400077bc:	80 a4 20 00 	cmp  %l0, 0                                    
400077c0:	02 80 00 0c 	be  400077f0 <pthread_rwlock_timedwrlock+0xc0> <== NEVER TAKEN
400077c4:	90 10 20 16 	mov  0x16, %o0                                 
400077c8:	80 a4 20 02 	cmp  %l0, 2                                    
400077cc:	08 80 00 09 	bleu  400077f0 <pthread_rwlock_timedwrlock+0xc0><== ALWAYS TAKEN
400077d0:	90 10 20 74 	mov  0x74, %o0                                 
	  case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE:                          
	    break;                                                           
	}                                                                    
      }                                                               
                                                                      
      return _POSIX_RWLock_Translate_core_RWLock_return_code(         
400077d4:	03 10 00 82 	sethi  %hi(0x40020800), %g1                    
400077d8:	c2 00 63 5c 	ld  [ %g1 + 0x35c ], %g1	! 40020b5c <_Thread_Executing>
400077dc:	40 00 00 08 	call  400077fc <_POSIX_RWLock_Translate_core_RWLock_return_code>
400077e0:	d0 00 60 34 	ld  [ %g1 + 0x34 ], %o0                        
400077e4:	81 c7 e0 08 	ret                                            
400077e8:	91 e8 00 08 	restore  %g0, %o0, %o0                         
400077ec:	90 10 20 16 	mov  0x16, %o0                                 
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return EINVAL;                                                      
}                                                                     
400077f0:	b0 10 00 08 	mov  %o0, %i0                                  
400077f4:	81 c7 e0 08 	ret                                            
400077f8:	81 e8 00 00 	restore                                        
                                                                      

40007f70 <pthread_rwlockattr_setpshared>: int pthread_rwlockattr_setpshared( pthread_rwlockattr_t *attr, int pshared ) { if ( !attr )
40007f70:	80 a2 20 00 	cmp  %o0, 0                                    
40007f74:	02 80 00 0b 	be  40007fa0 <pthread_rwlockattr_setpshared+0x30>
40007f78:	01 00 00 00 	nop                                            
    return EINVAL;                                                    
                                                                      
  if ( !attr->is_initialized )                                        
40007f7c:	c2 02 00 00 	ld  [ %o0 ], %g1                               
40007f80:	80 a0 60 00 	cmp  %g1, 0                                    
40007f84:	02 80 00 07 	be  40007fa0 <pthread_rwlockattr_setpshared+0x30>
40007f88:	80 a2 60 01 	cmp  %o1, 1                                    
    return EINVAL;                                                    
                                                                      
  switch ( pshared ) {                                                
40007f8c:	18 80 00 05 	bgu  40007fa0 <pthread_rwlockattr_setpshared+0x30><== NEVER TAKEN
40007f90:	01 00 00 00 	nop                                            
    case PTHREAD_PROCESS_SHARED:                                      
    case PTHREAD_PROCESS_PRIVATE:                                     
      attr->process_shared = pshared;                                 
40007f94:	d2 22 20 04 	st  %o1, [ %o0 + 4 ]                           
      return 0;                                                       
40007f98:	81 c3 e0 08 	retl                                           
40007f9c:	90 10 20 00 	clr  %o0                                       
                                                                      
    default:                                                          
      return EINVAL;                                                  
  }                                                                   
}                                                                     
40007fa0:	81 c3 e0 08 	retl                                           
40007fa4:	90 10 20 16 	mov  0x16, %o0                                 
                                                                      

40009184 <pthread_setschedparam>: int pthread_setschedparam( pthread_t thread, int policy, struct sched_param *param ) {
40009184:	9d e3 bf 90 	save  %sp, -112, %sp                           
40009188:	a0 10 00 18 	mov  %i0, %l0                                  
  int                                  rc;                            
                                                                      
  /*                                                                  
   *  Check all the parameters                                        
   */                                                                 
  if ( !param )                                                       
4000918c:	80 a6 a0 00 	cmp  %i2, 0                                    
40009190:	02 80 00 42 	be  40009298 <pthread_setschedparam+0x114>     
40009194:	b0 10 20 16 	mov  0x16, %i0                                 
    return EINVAL;                                                    
                                                                      
  rc = _POSIX_Thread_Translate_sched_param(                           
40009198:	90 10 00 19 	mov  %i1, %o0                                  
4000919c:	92 10 00 1a 	mov  %i2, %o1                                  
400091a0:	94 07 bf fc 	add  %fp, -4, %o2                              
400091a4:	40 00 18 3b 	call  4000f290 <_POSIX_Thread_Translate_sched_param>
400091a8:	96 07 bf f8 	add  %fp, -8, %o3                              
    policy,                                                           
    param,                                                            
    &budget_algorithm,                                                
    &budget_callout                                                   
  );                                                                  
  if ( rc )                                                           
400091ac:	b0 92 20 00 	orcc  %o0, 0, %i0                              
400091b0:	12 80 00 3a 	bne  40009298 <pthread_setschedparam+0x114>    
400091b4:	92 10 00 10 	mov  %l0, %o1                                  
400091b8:	11 10 00 8d 	sethi  %hi(0x40023400), %o0                    
400091bc:	94 07 bf f4 	add  %fp, -12, %o2                             
400091c0:	40 00 08 22 	call  4000b248 <_Objects_Get>                  
400091c4:	90 12 20 30 	or  %o0, 0x30, %o0                             
                                                                      
  /*                                                                  
   *  Actually change the scheduling policy and parameters            
   */                                                                 
  the_thread = _POSIX_Threads_Get( thread, &location );               
  switch ( location ) {                                               
400091c8:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
400091cc:	80 a0 60 00 	cmp  %g1, 0                                    
400091d0:	02 80 00 04 	be  400091e0 <pthread_setschedparam+0x5c>      
400091d4:	a2 10 00 08 	mov  %o0, %l1                                  
400091d8:	81 c7 e0 08 	ret                                            
400091dc:	91 e8 20 03 	restore  %g0, 3, %o0                           
                                                                      
    case OBJECTS_LOCAL:                                               
      api = the_thread->API_Extensions[ THREAD_API_POSIX ];           
400091e0:	e0 02 21 60 	ld  [ %o0 + 0x160 ], %l0                       
                                                                      
      if ( api->schedpolicy == SCHED_SPORADIC )                       
400091e4:	c2 04 20 80 	ld  [ %l0 + 0x80 ], %g1                        
400091e8:	80 a0 60 04 	cmp  %g1, 4                                    
400091ec:	32 80 00 05 	bne,a   40009200 <pthread_setschedparam+0x7c>  
400091f0:	f2 24 20 80 	st  %i1, [ %l0 + 0x80 ]                        
        (void) _Watchdog_Remove( &api->Sporadic_timer );              
400091f4:	40 00 0f 5f 	call  4000cf70 <_Watchdog_Remove>              
400091f8:	90 04 20 a4 	add  %l0, 0xa4, %o0                            
                                                                      
      api->schedpolicy = policy;                                      
400091fc:	f2 24 20 80 	st  %i1, [ %l0 + 0x80 ]                        
      api->schedparam  = *param;                                      
40009200:	92 10 00 1a 	mov  %i2, %o1                                  
40009204:	90 04 20 84 	add  %l0, 0x84, %o0                            
40009208:	40 00 27 ab 	call  400130b4 <memcpy>                        
4000920c:	94 10 20 1c 	mov  0x1c, %o2                                 
      the_thread->budget_algorithm = budget_algorithm;                
40009210:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          
      the_thread->budget_callout   = budget_callout;                  
                                                                      
      switch ( api->schedpolicy ) {                                   
40009214:	c2 04 20 80 	ld  [ %l0 + 0x80 ], %g1                        
      if ( api->schedpolicy == SCHED_SPORADIC )                       
        (void) _Watchdog_Remove( &api->Sporadic_timer );              
                                                                      
      api->schedpolicy = policy;                                      
      api->schedparam  = *param;                                      
      the_thread->budget_algorithm = budget_algorithm;                
40009218:	c4 24 60 7c 	st  %g2, [ %l1 + 0x7c ]                        
      the_thread->budget_callout   = budget_callout;                  
4000921c:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          
                                                                      
      switch ( api->schedpolicy ) {                                   
40009220:	80 a0 60 00 	cmp  %g1, 0                                    
40009224:	06 80 00 1b 	bl  40009290 <pthread_setschedparam+0x10c>     <== NEVER TAKEN
40009228:	c4 24 60 80 	st  %g2, [ %l1 + 0x80 ]                        
4000922c:	80 a0 60 02 	cmp  %g1, 2                                    
40009230:	24 80 00 07 	ble,a   4000924c <pthread_setschedparam+0xc8>  
40009234:	c2 04 20 84 	ld  [ %l0 + 0x84 ], %g1                        
40009238:	80 a0 60 04 	cmp  %g1, 4                                    
4000923c:	12 80 00 15 	bne  40009290 <pthread_setschedparam+0x10c>    <== NEVER TAKEN
40009240:	01 00 00 00 	nop                                            
             true                                                     
          );                                                          
          break;                                                      
                                                                      
        case SCHED_SPORADIC:                                          
          api->ss_high_priority = api->schedparam.sched_priority;     
40009244:	10 80 00 0d 	b  40009278 <pthread_setschedparam+0xf4>       
40009248:	c2 04 20 84 	ld  [ %l0 + 0x84 ], %g1                        
4000924c:	07 10 00 89 	sethi  %hi(0x40022400), %g3                    
                                                                      
      switch ( api->schedpolicy ) {                                   
        case SCHED_OTHER:                                             
        case SCHED_FIFO:                                              
        case SCHED_RR:                                                
          the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;  
40009250:	05 10 00 8c 	sethi  %hi(0x40023000), %g2                    
40009254:	d2 08 e2 a8 	ldub  [ %g3 + 0x2a8 ], %o1                     
40009258:	c4 00 a0 f8 	ld  [ %g2 + 0xf8 ], %g2                        
4000925c:	92 22 40 01 	sub  %o1, %g1, %o1                             
40009260:	c4 24 60 78 	st  %g2, [ %l1 + 0x78 ]                        
                                                                      
          the_thread->real_priority =                                 
            _POSIX_Priority_To_core( api->schedparam.sched_priority );
                                                                      
          _Thread_Change_priority(                                    
40009264:	90 10 00 11 	mov  %l1, %o0                                  
        case SCHED_OTHER:                                             
        case SCHED_FIFO:                                              
        case SCHED_RR:                                                
          the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;  
                                                                      
          the_thread->real_priority =                                 
40009268:	d2 24 60 18 	st  %o1, [ %l1 + 0x18 ]                        
            _POSIX_Priority_To_core( api->schedparam.sched_priority );
                                                                      
          _Thread_Change_priority(                                    
4000926c:	40 00 08 a7 	call  4000b508 <_Thread_Change_priority>       
40009270:	94 10 20 01 	mov  1, %o2                                    
             the_thread,                                              
             the_thread->real_priority,                               
             true                                                     
          );                                                          
          break;                                                      
40009274:	30 80 00 07 	b,a   40009290 <pthread_setschedparam+0x10c>   
                                                                      
        case SCHED_SPORADIC:                                          
          api->ss_high_priority = api->schedparam.sched_priority;     
          _Watchdog_Remove( &api->Sporadic_timer );                   
40009278:	90 04 20 a4 	add  %l0, 0xa4, %o0                            
4000927c:	40 00 0f 3d 	call  4000cf70 <_Watchdog_Remove>              
40009280:	c2 24 20 a0 	st  %g1, [ %l0 + 0xa0 ]                        
          _POSIX_Threads_Sporadic_budget_TSR( 0, the_thread );        
40009284:	92 10 00 11 	mov  %l1, %o1                                  
40009288:	7f ff ff a0 	call  40009108 <_POSIX_Threads_Sporadic_budget_TSR>
4000928c:	90 10 20 00 	clr  %o0                                       
          break;                                                      
      }                                                               
                                                                      
      _Thread_Enable_dispatch();                                      
40009290:	40 00 0a 0e 	call  4000bac8 <_Thread_Enable_dispatch>       
40009294:	01 00 00 00 	nop                                            
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return ESRCH;                                                       
}                                                                     
40009298:	81 c7 e0 08 	ret                                            
4000929c:	81 e8 00 00 	restore                                        
                                                                      

40006994 <pthread_testcancel>: * * 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ void pthread_testcancel( void ) {
40006994:	9d e3 bf a0 	save  %sp, -96, %sp                            
   *  Don't even think about deleting a resource from an ISR.         
   *  Besides this request is supposed to be for _Thread_Executing    
   *  and the ISR context is not a thread.                            
   */                                                                 
                                                                      
  if ( _ISR_Is_in_progress() )                                        
40006998:	03 10 00 7d 	sethi  %hi(0x4001f400), %g1                    
4000699c:	c2 00 63 88 	ld  [ %g1 + 0x388 ], %g1	! 4001f788 <_ISR_Nest_level>
400069a0:	80 a0 60 00 	cmp  %g1, 0                                    
400069a4:	12 80 00 17 	bne  40006a00 <pthread_testcancel+0x6c>        <== NEVER TAKEN
400069a8:	05 10 00 7d 	sethi  %hi(0x4001f400), %g2                    
    return;                                                           
                                                                      
  thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
400069ac:	03 10 00 7d 	sethi  %hi(0x4001f400), %g1                    
400069b0:	c6 00 a2 f0 	ld  [ %g2 + 0x2f0 ], %g3                       
400069b4:	c2 00 63 ac 	ld  [ %g1 + 0x3ac ], %g1                       
400069b8:	86 00 e0 01 	inc  %g3                                       
400069bc:	c2 00 61 60 	ld  [ %g1 + 0x160 ], %g1                       
400069c0:	c6 20 a2 f0 	st  %g3, [ %g2 + 0x2f0 ]                       
                                                                      
  _Thread_Disable_dispatch();                                         
    if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
400069c4:	c4 00 60 d4 	ld  [ %g1 + 0xd4 ], %g2                        
400069c8:	80 a0 a0 00 	cmp  %g2, 0                                    
400069cc:	12 80 00 05 	bne  400069e0 <pthread_testcancel+0x4c>        <== NEVER TAKEN
400069d0:	a0 10 20 00 	clr  %l0                                       
                                                                      
/* Setting Cancelability State, P1003.1c/Draft 10, p. 183 */          
                                                                      
int	_EXFUN(pthread_setcancelstate, (int __state, int *__oldstate));   
int	_EXFUN(pthread_setcanceltype, (int __type, int *__oldtype));      
void 	_EXFUN(pthread_testcancel, (void));                             
400069d4:	c2 00 60 dc 	ld  [ %g1 + 0xdc ], %g1                        
400069d8:	80 a0 00 01 	cmp  %g0, %g1                                  
400069dc:	a0 40 20 00 	addx  %g0, 0, %l0                              
         thread_support->cancelation_requested )                      
      cancel = true;                                                  
  _Thread_Enable_dispatch();                                          
400069e0:	40 00 09 c4 	call  400090f0 <_Thread_Enable_dispatch>       
400069e4:	01 00 00 00 	nop                                            
                                                                      
  if ( cancel )                                                       
400069e8:	80 8c 20 ff 	btst  0xff, %l0                                
400069ec:	02 80 00 05 	be  40006a00 <pthread_testcancel+0x6c>         
400069f0:	03 10 00 7d 	sethi  %hi(0x4001f400), %g1                    
    _POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED );        
400069f4:	f0 00 63 ac 	ld  [ %g1 + 0x3ac ], %i0	! 4001f7ac <_Thread_Executing>
400069f8:	40 00 18 17 	call  4000ca54 <_POSIX_Thread_Exit>            
400069fc:	93 e8 3f ff 	restore  %g0, -1, %o1                          
40006a00:	81 c7 e0 08 	ret                                            
40006a04:	81 e8 00 00 	restore                                        
                                                                      

4001b0e4 <read>: ssize_t read( int fd, void *buffer, size_t count ) {
4001b0e4:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ssize_t      rc;                                                    
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
4001b0e8:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
4001b0ec:	c2 00 62 04 	ld  [ %g1 + 0x204 ], %g1	! 4001ce04 <rtems_libio_number_iops>
ssize_t read(                                                         
  int         fd,                                                     
  void       *buffer,                                                 
  size_t      count                                                   
)                                                                     
{                                                                     
4001b0f0:	92 10 00 19 	mov  %i1, %o1                                  
  ssize_t      rc;                                                    
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
4001b0f4:	80 a6 00 01 	cmp  %i0, %g1                                  
4001b0f8:	1a 80 00 0c 	bcc  4001b128 <read+0x44>                      <== NEVER TAKEN
4001b0fc:	94 10 00 1a 	mov  %i2, %o2                                  
  iop = rtems_libio_iop( fd );                                        
4001b100:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
4001b104:	e0 00 63 9c 	ld  [ %g1 + 0x39c ], %l0	! 4001d79c <rtems_libio_iops>
4001b108:	83 2e 20 06 	sll  %i0, 6, %g1                               
4001b10c:	b1 2e 20 03 	sll  %i0, 3, %i0                               
4001b110:	b0 06 00 01 	add  %i0, %g1, %i0                             
4001b114:	a0 04 00 18 	add  %l0, %i0, %l0                             
  rtems_libio_check_is_open( iop );                                   
4001b118:	c2 04 20 18 	ld  [ %l0 + 0x18 ], %g1                        
4001b11c:	80 88 61 00 	btst  0x100, %g1                               
4001b120:	12 80 00 06 	bne  4001b138 <read+0x54>                      
4001b124:	80 a6 60 00 	cmp  %i1, 0                                    
4001b128:	7f ff d0 ed 	call  4000f4dc <__errno>                       
4001b12c:	01 00 00 00 	nop                                            
4001b130:	10 80 00 14 	b  4001b180 <read+0x9c>                        
4001b134:	82 10 20 09 	mov  9, %g1	! 9 <PROM_START+0x9>               
  rtems_libio_check_buffer( buffer );                                 
4001b138:	02 80 00 07 	be  4001b154 <read+0x70>                       <== NEVER TAKEN
4001b13c:	80 a6 a0 00 	cmp  %i2, 0                                    
  rtems_libio_check_count( count );                                   
4001b140:	02 80 00 1c 	be  4001b1b0 <read+0xcc>                       <== NEVER TAKEN
4001b144:	90 10 20 00 	clr  %o0                                       
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );             
4001b148:	80 88 60 02 	btst  2, %g1                                   
4001b14c:	32 80 00 06 	bne,a   4001b164 <read+0x80>                   <== ALWAYS TAKEN
4001b150:	c2 04 20 40 	ld  [ %l0 + 0x40 ], %g1                        
4001b154:	7f ff d0 e2 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4001b158:	01 00 00 00 	nop                                            <== NOT EXECUTED
4001b15c:	10 80 00 09 	b  4001b180 <read+0x9c>                        <== NOT EXECUTED
4001b160:	82 10 20 16 	mov  0x16, %g1	! 16 <PROM_START+0x16>          <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Now process the read().                                         
   */                                                                 
                                                                      
  if ( !iop->handlers->read_h )                                       
4001b164:	c2 00 60 08 	ld  [ %g1 + 8 ], %g1                           
4001b168:	80 a0 60 00 	cmp  %g1, 0                                    
4001b16c:	12 80 00 08 	bne  4001b18c <read+0xa8>                      <== ALWAYS TAKEN
4001b170:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
4001b174:	7f ff d0 da 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4001b178:	01 00 00 00 	nop                                            <== NOT EXECUTED
4001b17c:	82 10 20 86 	mov  0x86, %g1	! 86 <PROM_START+0x86>          <== NOT EXECUTED
4001b180:	c2 22 00 00 	st  %g1, [ %o0 ]                               
4001b184:	10 80 00 0b 	b  4001b1b0 <read+0xcc>                        
4001b188:	90 10 3f ff 	mov  -1, %o0                                   
                                                                      
  rc = (*iop->handlers->read_h)( iop, buffer, count );                
4001b18c:	9f c0 40 00 	call  %g1                                      
4001b190:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
  if ( rc > 0 )                                                       
4001b194:	80 a2 20 00 	cmp  %o0, 0                                    
4001b198:	04 80 00 06 	ble  4001b1b0 <read+0xcc>                      
4001b19c:	85 3a 20 1f 	sra  %o0, 0x1f, %g2                            
    iop->offset += rc;                                                
4001b1a0:	d8 1c 20 10 	ldd  [ %l0 + 0x10 ], %o4                       
4001b1a4:	86 83 40 08 	addcc  %o5, %o0, %g3                           
4001b1a8:	84 43 00 02 	addx  %o4, %g2, %g2                            
4001b1ac:	c4 3c 20 10 	std  %g2, [ %l0 + 0x10 ]                       
                                                                      
  return rc;                                                          
}                                                                     
4001b1b0:	81 c7 e0 08 	ret                                            
4001b1b4:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      

40006988 <readlink>: ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) {
40006988:	9d e3 bf 88 	save  %sp, -120, %sp                           
  rtems_filesystem_location_info_t  loc;                              
  int                               result;                           
                                                                      
  if (!buf)                                                           
4000698c:	80 a6 60 00 	cmp  %i1, 0                                    
40006990:	12 80 00 06 	bne  400069a8 <readlink+0x20>                  <== ALWAYS TAKEN
40006994:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EFAULT );                   
40006998:	40 00 34 a6 	call  40013c30 <__errno>                       <== NOT EXECUTED
4000699c:	b0 10 3f ff 	mov  -1, %i0	! ffffffff <LEON_REG+0x7fffffff>  <== NOT EXECUTED
400069a0:	10 80 00 32 	b  40006a68 <readlink+0xe0>                    <== NOT EXECUTED
400069a4:	82 10 20 0e 	mov  0xe, %g1                                  <== NOT EXECUTED
                                                                      
  result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ),
400069a8:	40 00 3b cf 	call  400158e4 <strlen>                        
400069ac:	90 10 00 18 	mov  %i0, %o0                                  
400069b0:	a0 07 bf ec 	add  %fp, -20, %l0                             
400069b4:	92 10 00 08 	mov  %o0, %o1                                  
400069b8:	94 10 20 00 	clr  %o2                                       
400069bc:	90 10 00 18 	mov  %i0, %o0                                  
400069c0:	96 10 00 10 	mov  %l0, %o3                                  
400069c4:	98 10 20 00 	clr  %o4                                       
400069c8:	7f ff fb 3d 	call  400056bc <rtems_filesystem_evaluate_path>
400069cc:	b0 10 3f ff 	mov  -1, %i0                                   
                                           0, &loc, false );          
  if ( result != 0 )                                                  
400069d0:	80 a2 20 00 	cmp  %o0, 0                                    
400069d4:	12 80 00 26 	bne  40006a6c <readlink+0xe4>                  <== NEVER TAKEN
400069d8:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          
     return -1;                                                       
                                                                      
  if ( !loc.ops->node_type_h ){                                       
400069dc:	c2 00 a0 10 	ld  [ %g2 + 0x10 ], %g1                        
400069e0:	80 a0 60 00 	cmp  %g1, 0                                    
400069e4:	22 80 00 19 	be,a   40006a48 <readlink+0xc0>                <== NEVER TAKEN
400069e8:	c2 00 a0 1c 	ld  [ %g2 + 0x1c ], %g1                        <== NOT EXECUTED
    rtems_filesystem_freenode( &loc );                                
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
  }                                                                   
                                                                      
  if (  (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){
400069ec:	9f c0 40 00 	call  %g1                                      
400069f0:	90 10 00 10 	mov  %l0, %o0                                  
400069f4:	80 a2 20 04 	cmp  %o0, 4                                    
400069f8:	02 80 00 0f 	be  40006a34 <readlink+0xac>                   
400069fc:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          
    rtems_filesystem_freenode( &loc );                                
40006a00:	80 a0 a0 00 	cmp  %g2, 0                                    
40006a04:	02 80 00 08 	be  40006a24 <readlink+0x9c>                   <== NEVER TAKEN
40006a08:	01 00 00 00 	nop                                            
40006a0c:	c2 00 a0 1c 	ld  [ %g2 + 0x1c ], %g1                        
40006a10:	80 a0 60 00 	cmp  %g1, 0                                    
40006a14:	02 80 00 04 	be  40006a24 <readlink+0x9c>                   <== NEVER TAKEN
40006a18:	01 00 00 00 	nop                                            
40006a1c:	9f c0 40 00 	call  %g1                                      
40006a20:	90 10 00 10 	mov  %l0, %o0                                  
    rtems_set_errno_and_return_minus_one( EINVAL );                   
40006a24:	40 00 34 83 	call  40013c30 <__errno>                       
40006a28:	b0 10 3f ff 	mov  -1, %i0                                   
40006a2c:	10 80 00 0f 	b  40006a68 <readlink+0xe0>                    
40006a30:	82 10 20 16 	mov  0x16, %g1                                 
  }                                                                   
                                                                      
  if ( !loc.ops->readlink_h ){                                        
40006a34:	c2 00 a0 3c 	ld  [ %g2 + 0x3c ], %g1                        
40006a38:	80 a0 60 00 	cmp  %g1, 0                                    
40006a3c:	12 80 00 0e 	bne  40006a74 <readlink+0xec>                  <== ALWAYS TAKEN
40006a40:	92 10 00 19 	mov  %i1, %o1                                  
    rtems_filesystem_freenode( &loc );                                
40006a44:	c2 00 a0 1c 	ld  [ %g2 + 0x1c ], %g1                        <== NOT EXECUTED
40006a48:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40006a4c:	02 80 00 04 	be  40006a5c <readlink+0xd4>                   <== NOT EXECUTED
40006a50:	01 00 00 00 	nop                                            <== NOT EXECUTED
40006a54:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40006a58:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
40006a5c:	40 00 34 75 	call  40013c30 <__errno>                       <== NOT EXECUTED
40006a60:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
40006a64:	82 10 20 86 	mov  0x86, %g1                                 <== NOT EXECUTED
40006a68:	c2 22 00 00 	st  %g1, [ %o0 ]                               
40006a6c:	81 c7 e0 08 	ret                                            
40006a70:	81 e8 00 00 	restore                                        
  }                                                                   
                                                                      
  result =  (*loc.ops->readlink_h)( &loc, buf, bufsize );             
40006a74:	94 10 00 1a 	mov  %i2, %o2                                  
40006a78:	9f c0 40 00 	call  %g1                                      
40006a7c:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
  rtems_filesystem_freenode( &loc );                                  
40006a80:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
40006a84:	80 a0 60 00 	cmp  %g1, 0                                    
40006a88:	02 bf ff f9 	be  40006a6c <readlink+0xe4>                   <== NEVER TAKEN
40006a8c:	b0 10 00 08 	mov  %o0, %i0                                  
40006a90:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
40006a94:	80 a0 60 00 	cmp  %g1, 0                                    
40006a98:	02 80 00 04 	be  40006aa8 <readlink+0x120>                  <== NEVER TAKEN
40006a9c:	01 00 00 00 	nop                                            
40006aa0:	9f c0 40 00 	call  %g1                                      
40006aa4:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
  return result;                                                      
}                                                                     
40006aa8:	81 c7 e0 08 	ret                                            
40006aac:	81 e8 00 00 	restore                                        
                                                                      

400052c4 <readv>: ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) {
400052c4:	9d e3 bf a0 	save  %sp, -96, %sp                            
  int            v;                                                   
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
400052c8:	03 10 00 86 	sethi  %hi(0x40021800), %g1                    
400052cc:	c2 00 61 d4 	ld  [ %g1 + 0x1d4 ], %g1	! 400219d4 <rtems_libio_number_iops>
400052d0:	80 a6 00 01 	cmp  %i0, %g1                                  
400052d4:	1a 80 00 0c 	bcc  40005304 <readv+0x40>                     <== NEVER TAKEN
400052d8:	01 00 00 00 	nop                                            
  iop = rtems_libio_iop( fd );                                        
400052dc:	03 10 00 8a 	sethi  %hi(0x40022800), %g1                    
400052e0:	e4 00 63 44 	ld  [ %g1 + 0x344 ], %l2	! 40022b44 <rtems_libio_iops>
400052e4:	83 2e 20 06 	sll  %i0, 6, %g1                               
400052e8:	b1 2e 20 03 	sll  %i0, 3, %i0                               
400052ec:	b0 06 00 01 	add  %i0, %g1, %i0                             
400052f0:	a4 04 80 18 	add  %l2, %i0, %l2                             
  rtems_libio_check_is_open( iop );                                   
400052f4:	c2 04 a0 18 	ld  [ %l2 + 0x18 ], %g1                        
400052f8:	80 88 61 00 	btst  0x100, %g1                               
400052fc:	12 80 00 06 	bne  40005314 <readv+0x50>                     <== ALWAYS TAKEN
40005300:	80 88 60 02 	btst  2, %g1                                   
40005304:	40 00 32 4b 	call  40011c30 <__errno>                       <== NOT EXECUTED
40005308:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
4000530c:	10 80 00 1d 	b  40005380 <readv+0xbc>                       <== NOT EXECUTED
40005310:	82 10 20 09 	mov  9, %g1                                    <== NOT EXECUTED
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );             
40005314:	02 80 00 18 	be  40005374 <readv+0xb0>                      <== NEVER TAKEN
40005318:	80 a6 60 00 	cmp  %i1, 0                                    
                                                                      
  /*                                                                  
   *  Argument validation on IO vector                                
   */                                                                 
  if ( !iov )                                                         
4000531c:	02 80 00 16 	be  40005374 <readv+0xb0>                      
40005320:	80 a6 a0 00 	cmp  %i2, 0                                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt <= 0 )                                                  
40005324:	04 80 00 14 	ble  40005374 <readv+0xb0>                     
40005328:	80 a6 a4 00 	cmp  %i2, 0x400                                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt > IOV_MAX )                                             
4000532c:	14 80 00 12 	bg  40005374 <readv+0xb0>                      <== NEVER TAKEN
40005330:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !iop->handlers->read_h )                                       
40005334:	c2 04 a0 40 	ld  [ %l2 + 0x40 ], %g1                        
40005338:	c2 00 60 08 	ld  [ %g1 + 8 ], %g1                           
4000533c:	80 a0 60 00 	cmp  %g1, 0                                    
40005340:	12 80 00 06 	bne  40005358 <readv+0x94>                     <== ALWAYS TAKEN
40005344:	84 10 20 01 	mov  1, %g2                                    
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
40005348:	40 00 32 3a 	call  40011c30 <__errno>                       <== NOT EXECUTED
4000534c:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
40005350:	10 80 00 0c 	b  40005380 <readv+0xbc>                       <== NOT EXECUTED
40005354:	82 10 20 86 	mov  0x86, %g1                                 <== NOT EXECUTED
40005358:	82 10 00 19 	mov  %i1, %g1                                  
4000535c:	88 10 20 00 	clr  %g4                                       
40005360:	86 10 20 00 	clr  %g3                                       
                                                                      
  all_zeros = true;                                                   
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
    ssize_t old;                                                      
                                                                      
    if ( !iov[v].iov_base )                                           
40005364:	da 00 40 00 	ld  [ %g1 ], %o5                               
40005368:	80 a3 60 00 	cmp  %o5, 0                                    
4000536c:	12 80 00 08 	bne  4000538c <readv+0xc8>                     
40005370:	88 01 20 01 	inc  %g4                                       
      rtems_set_errno_and_return_minus_one( EINVAL );                 
40005374:	40 00 32 2f 	call  40011c30 <__errno>                       
40005378:	b0 10 3f ff 	mov  -1, %i0                                   
4000537c:	82 10 20 16 	mov  0x16, %g1                                 
40005380:	c2 22 00 00 	st  %g1, [ %o0 ]                               
40005384:	81 c7 e0 08 	ret                                            
40005388:	81 e8 00 00 	restore                                        
    if ( iov[v].iov_len < 0 )                                         
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
4000538c:	d8 00 60 04 	ld  [ %g1 + 4 ], %o4                           
40005390:	9a 00 c0 0c 	add  %g3, %o4, %o5                             
    if ( total < old )                                                
40005394:	80 a3 40 03 	cmp  %o5, %g3                                  
40005398:	06 bf ff f7 	bl  40005374 <readv+0xb0>                      
4000539c:	82 00 60 08 	add  %g1, 8, %g1                               
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
400053a0:	80 a0 00 0c 	cmp  %g0, %o4                                  
400053a4:	86 40 3f ff 	addx  %g0, -1, %g3                             
   *  are obvious errors in the iovec.  So this extra loop ensures    
   *  that we do not do anything if there is an argument error.       
   */                                                                 
                                                                      
  all_zeros = true;                                                   
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
400053a8:	80 a1 00 1a 	cmp  %g4, %i2                                  
400053ac:	16 80 00 04 	bge  400053bc <readv+0xf8>                     
400053b0:	84 08 80 03 	and  %g2, %g3, %g2                             
400053b4:	10 bf ff ec 	b  40005364 <readv+0xa0>                       
400053b8:	86 10 00 0d 	mov  %o5, %g3                                  
  /*                                                                  
   *  A readv with all zeros logically has no effect.  Even though    
   *  OpenGroup didn't address this case as they did with writev(),   
   *  we will handle it the same way for symmetry.                    
   */                                                                 
  if ( all_zeros == true ) {                                          
400053bc:	80 88 a0 ff 	btst  0xff, %g2                                
400053c0:	a6 10 20 00 	clr  %l3                                       
400053c4:	12 bf ff f0 	bne  40005384 <readv+0xc0>                     
400053c8:	b0 10 20 00 	clr  %i0                                       
                                                                      
  /*                                                                  
   *  Now process the readv().                                        
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
    bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len );
400053cc:	c2 04 a0 40 	ld  [ %l2 + 0x40 ], %g1                        
400053d0:	d2 06 40 00 	ld  [ %i1 ], %o1                               
400053d4:	c2 00 60 08 	ld  [ %g1 + 8 ], %g1                           
400053d8:	d4 06 60 04 	ld  [ %i1 + 4 ], %o2                           
400053dc:	9f c0 40 00 	call  %g1                                      
400053e0:	90 10 00 12 	mov  %l2, %o0                                  
                                                                      
    if ( bytes < 0 )                                                  
400053e4:	80 a2 20 00 	cmp  %o0, 0                                    
400053e8:	16 80 00 04 	bge  400053f8 <readv+0x134>                    <== ALWAYS TAKEN
400053ec:	01 00 00 00 	nop                                            
400053f0:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
400053f4:	91 e8 3f ff 	restore  %g0, -1, %o0                          <== NOT EXECUTED
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
400053f8:	02 80 00 07 	be  40005414 <readv+0x150>                     <== NEVER TAKEN
400053fc:	a1 3a 20 1f 	sra  %o0, 0x1f, %l0                            
      iop->offset += bytes;                                           
40005400:	c4 1c a0 10 	ldd  [ %l2 + 0x10 ], %g2                       
40005404:	86 80 c0 08 	addcc  %g3, %o0, %g3                           
      total       += bytes;                                           
40005408:	b0 06 00 08 	add  %i0, %o0, %i0                             
                                                                      
    if ( bytes < 0 )                                                  
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
      iop->offset += bytes;                                           
4000540c:	84 40 80 10 	addx  %g2, %l0, %g2                            
40005410:	c4 3c a0 10 	std  %g2, [ %l2 + 0x10 ]                       
      total       += bytes;                                           
    }                                                                 
                                                                      
    if (bytes != iov[ v ].iov_len)                                    
40005414:	c2 06 60 04 	ld  [ %i1 + 4 ], %g1                           
40005418:	80 a2 00 01 	cmp  %o0, %g1                                  
4000541c:	12 bf ff da 	bne  40005384 <readv+0xc0>                     <== NEVER TAKEN
40005420:	a6 04 e0 01 	inc  %l3                                       
  }                                                                   
                                                                      
  /*                                                                  
   *  Now process the readv().                                        
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
40005424:	80 a4 c0 1a 	cmp  %l3, %i2                                  
40005428:	06 bf ff e9 	bl  400053cc <readv+0x108>                     
4000542c:	b2 06 60 08 	add  %i1, 8, %i1                               
    if (bytes != iov[ v ].iov_len)                                    
      break;                                                          
  }                                                                   
                                                                      
  return total;                                                       
}                                                                     
40005430:	81 c7 e0 08 	ret                                            
40005434:	81 e8 00 00 	restore                                        
                                                                      

4001b23c <realloc>: { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1);
4001b23c:	9d e3 bf 98 	save  %sp, -104, %sp                           
4001b240:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
4001b244:	82 10 63 a8 	or  %g1, 0x3a8, %g1	! 4001d7a8 <rtems_malloc_statistics>
4001b248:	c6 00 60 10 	ld  [ %g1 + 0x10 ], %g3                        
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if in a critical section or ISR.
   */                                                                 
                                                                      
  if (_System_state_Is_up(_System_state_Get())) {                     
4001b24c:	05 10 00 76 	sethi  %hi(0x4001d800), %g2                    
4001b250:	c4 00 a3 10 	ld  [ %g2 + 0x310 ], %g2	! 4001db10 <_System_state_Current>
{                                                                     
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
  uintptr_t resize;                                                   
                                                                      
  MSBUMP(realloc_calls, 1);                                           
4001b254:	86 00 e0 01 	inc  %g3                                       
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if in a critical section or ISR.
   */                                                                 
                                                                      
  if (_System_state_Is_up(_System_state_Get())) {                     
4001b258:	80 a0 a0 03 	cmp  %g2, 3                                    
4001b25c:	12 80 00 0c 	bne  4001b28c <realloc+0x50>                   <== NEVER TAKEN
4001b260:	c6 20 60 10 	st  %g3, [ %g1 + 0x10 ]                        
    if (_Thread_Dispatch_disable_level > 0)                           
4001b264:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
4001b268:	c2 00 61 70 	ld  [ %g1 + 0x170 ], %g1	! 4001d970 <_Thread_Dispatch_disable_level>
4001b26c:	80 a0 60 00 	cmp  %g1, 0                                    
4001b270:	32 80 00 13 	bne,a   4001b2bc <realloc+0x80>                <== NEVER TAKEN
4001b274:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
      return (void *) 0;                                              
                                                                      
    if (_ISR_Nest_level > 0)                                          
4001b278:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
4001b27c:	c2 00 62 08 	ld  [ %g1 + 0x208 ], %g1	! 4001da08 <_ISR_Nest_level>
4001b280:	80 a0 60 00 	cmp  %g1, 0                                    
4001b284:	32 80 00 0e 	bne,a   4001b2bc <realloc+0x80>                <== NEVER TAKEN
4001b288:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
  }                                                                   
                                                                      
  /*                                                                  
   * Continue with realloc().                                         
   */                                                                 
  if ( !ptr )                                                         
4001b28c:	80 a6 20 00 	cmp  %i0, 0                                    
4001b290:	12 80 00 06 	bne  4001b2a8 <realloc+0x6c>                   
4001b294:	80 a6 60 00 	cmp  %i1, 0                                    
    return malloc( size );                                            
4001b298:	7f ff c1 1b 	call  4000b704 <malloc>                        
4001b29c:	90 10 00 19 	mov  %i1, %o0                                  
4001b2a0:	81 c7 e0 08 	ret                                            
4001b2a4:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      
  if ( !size ) {                                                      
4001b2a8:	12 80 00 07 	bne  4001b2c4 <realloc+0x88>                   <== ALWAYS TAKEN
4001b2ac:	21 10 00 73 	sethi  %hi(0x4001cc00), %l0                    
    free( ptr );                                                      
4001b2b0:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
4001b2b4:	7f ff bf b2 	call  4000b17c <free>                          <== NOT EXECUTED
4001b2b8:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
    return (void *) 0;                                                
4001b2bc:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4001b2c0:	81 e8 00 00 	restore                                        <== NOT EXECUTED
  }                                                                   
                                                                      
  if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
4001b2c4:	d0 04 22 10 	ld  [ %l0 + 0x210 ], %o0                       
4001b2c8:	92 10 00 18 	mov  %i0, %o1                                  
4001b2cc:	40 00 00 60 	call  4001b44c <_Protected_heap_Get_block_size>
4001b2d0:	94 07 bf fc 	add  %fp, -4, %o2                              
4001b2d4:	80 8a 20 ff 	btst  0xff, %o0                                
4001b2d8:	12 80 00 08 	bne  4001b2f8 <realloc+0xbc>                   
4001b2dc:	d0 04 22 10 	ld  [ %l0 + 0x210 ], %o0                       
    errno = EINVAL;                                                   
4001b2e0:	7f ff d0 7f 	call  4000f4dc <__errno>                       
4001b2e4:	b0 10 20 00 	clr  %i0                                       
4001b2e8:	82 10 20 16 	mov  0x16, %g1                                 
4001b2ec:	c2 22 00 00 	st  %g1, [ %o0 ]                               
    return (void *) 0;                                                
4001b2f0:	81 c7 e0 08 	ret                                            
4001b2f4:	81 e8 00 00 	restore                                        
  #if defined(RTEMS_MALLOC_BOUNDARY_HELPERS)                          
    if (rtems_malloc_boundary_helpers)                                
      resize += (*rtems_malloc_boundary_helpers->overhead)();         
  #endif                                                              
                                                                      
  if ( _Protected_heap_Resize_block( RTEMS_Malloc_Heap, ptr, resize ) ) {
4001b2f8:	92 10 00 18 	mov  %i0, %o1                                  
4001b2fc:	40 00 00 61 	call  4001b480 <_Protected_heap_Resize_block>  
4001b300:	94 10 00 19 	mov  %i1, %o2                                  
4001b304:	80 8a 20 ff 	btst  0xff, %o0                                
4001b308:	12 80 00 1a 	bne  4001b370 <realloc+0x134>                  
4001b30c:	01 00 00 00 	nop                                            
   *  There used to be a free on this error case but it is wrong to   
   *  free the memory per OpenGroup Single UNIX Specification V2      
   *  and the C Standard.                                             
   */                                                                 
                                                                      
  new_area = malloc( size );                                          
4001b310:	7f ff c0 fd 	call  4000b704 <malloc>                        
4001b314:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
4001b318:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
4001b31c:	82 10 63 a8 	or  %g1, 0x3a8, %g1	! 4001d7a8 <rtems_malloc_statistics>
4001b320:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           
   *  There used to be a free on this error case but it is wrong to   
   *  free the memory per OpenGroup Single UNIX Specification V2      
   *  and the C Standard.                                             
   */                                                                 
                                                                      
  new_area = malloc( size );                                          
4001b324:	a0 10 00 08 	mov  %o0, %l0                                  
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
4001b328:	84 00 bf ff 	add  %g2, -1, %g2                              
                                                                      
  if ( !new_area ) {                                                  
4001b32c:	80 a2 20 00 	cmp  %o0, 0                                    
4001b330:	02 80 00 0f 	be  4001b36c <realloc+0x130>                   
4001b334:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
    return (void *) 0;                                                
  }                                                                   
                                                                      
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
4001b338:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
4001b33c:	80 a6 40 01 	cmp  %i1, %g1                                  
4001b340:	08 80 00 03 	bleu  4001b34c <realloc+0x110>                 <== NEVER TAKEN
4001b344:	94 10 00 19 	mov  %i1, %o2                                  
4001b348:	94 10 00 01 	mov  %g1, %o2                                  
4001b34c:	92 10 00 18 	mov  %i0, %o1                                  
4001b350:	7f ff d2 9f 	call  4000fdcc <memcpy>                        
4001b354:	90 10 00 10 	mov  %l0, %o0                                  
  free( ptr );                                                        
4001b358:	90 10 00 18 	mov  %i0, %o0                                  
4001b35c:	7f ff bf 88 	call  4000b17c <free>                          
4001b360:	b0 10 00 10 	mov  %l0, %i0                                  
                                                                      
  return new_area;                                                    
4001b364:	81 c7 e0 08 	ret                                            
4001b368:	81 e8 00 00 	restore                                        
4001b36c:	b0 10 20 00 	clr  %i0                                       
                                                                      
}                                                                     
4001b370:	81 c7 e0 08 	ret                                            
4001b374:	81 e8 00 00 	restore                                        
                                                                      

40007b24 <rmdir>: #include <rtems/seterr.h> int rmdir( const char *pathname ) {
40007b24:	9d e3 bf 78 	save  %sp, -136, %sp                           
                                                                      
  /*                                                                  
   *  Get the parent node of the node we wish to remove. Find the parent path.
   */                                                                 
                                                                      
  parentpathlen = rtems_filesystem_dirname ( pathname );              
40007b28:	7f ff f9 97 	call  40006184 <rtems_filesystem_dirname>      
40007b2c:	90 10 00 18 	mov  %i0, %o0                                  
                                                                      
  if ( parentpathlen == 0 )                                           
40007b30:	a6 92 20 00 	orcc  %o0, 0, %l3                              
40007b34:	32 80 00 18 	bne,a   40007b94 <rmdir+0x70>                  
40007b38:	90 10 00 18 	mov  %i0, %o0                                  
    rtems_filesystem_get_start_loc( pathname, &i, &parentloc );       
40007b3c:	c2 4e 00 00 	ldsb  [ %i0 ], %g1                             
40007b40:	80 a0 60 5c 	cmp  %g1, 0x5c                                 
40007b44:	22 80 00 08 	be,a   40007b64 <rmdir+0x40>                   <== NEVER TAKEN
40007b48:	03 10 00 a2 	sethi  %hi(0x40028800), %g1                    <== NOT EXECUTED
40007b4c:	80 a0 60 2f 	cmp  %g1, 0x2f                                 
40007b50:	22 80 00 05 	be,a   40007b64 <rmdir+0x40>                   <== ALWAYS TAKEN
40007b54:	03 10 00 a2 	sethi  %hi(0x40028800), %g1                    
40007b58:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40007b5c:	12 80 00 06 	bne  40007b74 <rmdir+0x50>                     <== NOT EXECUTED
40007b60:	03 10 00 a2 	sethi  %hi(0x40028800), %g1                    <== NOT EXECUTED
40007b64:	d2 00 60 08 	ld  [ %g1 + 8 ], %o1	! 40028808 <rtems_current_user_env>
40007b68:	90 07 bf ec 	add  %fp, -20, %o0                             
40007b6c:	10 80 00 05 	b  40007b80 <rmdir+0x5c>                       
40007b70:	92 02 60 18 	add  %o1, 0x18, %o1                            
40007b74:	d2 00 60 08 	ld  [ %g1 + 8 ], %o1                           <== NOT EXECUTED
40007b78:	90 07 bf ec 	add  %fp, -20, %o0                             <== NOT EXECUTED
40007b7c:	92 02 60 04 	add  %o1, 4, %o1                               <== NOT EXECUTED
40007b80:	94 10 20 14 	mov  0x14, %o2                                 
40007b84:	40 00 39 bf 	call  40016280 <memcpy>                        
40007b88:	a2 10 20 00 	clr  %l1                                       
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
40007b8c:	10 80 00 0b 	b  40007bb8 <rmdir+0x94>                       
40007b90:	94 10 20 14 	mov  0x14, %o2                                 
  parentpathlen = rtems_filesystem_dirname ( pathname );              
                                                                      
  if ( parentpathlen == 0 )                                           
    rtems_filesystem_get_start_loc( pathname, &i, &parentloc );       
  else {                                                              
    result = rtems_filesystem_evaluate_path(pathname, parentpathlen,  
40007b94:	92 10 00 13 	mov  %l3, %o1                                  
40007b98:	94 10 20 02 	mov  2, %o2                                    
40007b9c:	96 07 bf ec 	add  %fp, -20, %o3                             
40007ba0:	7f ff f9 c7 	call  400062bc <rtems_filesystem_evaluate_path>
40007ba4:	98 10 20 00 	clr  %o4                                       
                                            RTEMS_LIBIO_PERMS_WRITE,  
                                            &parentloc,               
                                            false );                  
    if ( result != 0 )                                                
40007ba8:	80 a2 20 00 	cmp  %o0, 0                                    
40007bac:	12 80 00 89 	bne  40007dd0 <rmdir+0x2ac>                    <== NEVER TAKEN
40007bb0:	a2 10 20 01 	mov  1, %l1                                    
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
40007bb4:	94 10 20 14 	mov  0x14, %o2                                 
40007bb8:	a0 07 bf d8 	add  %fp, -40, %l0                             
40007bbc:	a4 07 bf ec 	add  %fp, -20, %l2                             
40007bc0:	90 10 00 10 	mov  %l0, %o0                                  
40007bc4:	40 00 39 af 	call  40016280 <memcpy>                        
40007bc8:	92 10 00 12 	mov  %l2, %o1                                  
  name = pathname + parentpathlen;                                    
40007bcc:	b0 06 00 13 	add  %i0, %l3, %i0                             
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
40007bd0:	40 00 3f f5 	call  40017ba4 <strlen>                        
40007bd4:	90 10 00 18 	mov  %i0, %o0                                  
40007bd8:	92 10 00 08 	mov  %o0, %o1                                  
40007bdc:	7f ff f9 59 	call  40006140 <rtems_filesystem_prefix_separators>
40007be0:	90 10 00 18 	mov  %i0, %o0                                  
40007be4:	b0 06 00 08 	add  %i0, %o0, %i0                             
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
40007be8:	40 00 3f ef 	call  40017ba4 <strlen>                        
40007bec:	90 10 00 18 	mov  %i0, %o0                                  
40007bf0:	94 10 20 00 	clr  %o2                                       
40007bf4:	92 10 00 08 	mov  %o0, %o1                                  
40007bf8:	96 10 00 10 	mov  %l0, %o3                                  
40007bfc:	90 10 00 18 	mov  %i0, %o0                                  
40007c00:	7f ff f9 73 	call  400061cc <rtems_filesystem_evaluate_relative_path>
40007c04:	98 10 20 00 	clr  %o4                                       
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
40007c08:	80 a2 20 00 	cmp  %o0, 0                                    
40007c0c:	02 80 00 11 	be  40007c50 <rmdir+0x12c>                     
40007c10:	c4 07 bf e4 	ld  [ %fp + -28 ], %g2                         
    if ( free_parentloc )                                             
40007c14:	80 8c 60 ff 	btst  0xff, %l1                                
40007c18:	02 80 00 0c 	be  40007c48 <rmdir+0x124>                     <== ALWAYS TAKEN
40007c1c:	b0 10 3f ff 	mov  -1, %i0                                   
      rtems_filesystem_freenode( &parentloc );                        
40007c20:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          <== NOT EXECUTED
40007c24:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40007c28:	02 80 00 6b 	be  40007dd4 <rmdir+0x2b0>                     <== NOT EXECUTED
40007c2c:	01 00 00 00 	nop                                            <== NOT EXECUTED
40007c30:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        <== NOT EXECUTED
40007c34:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40007c38:	02 80 00 04 	be  40007c48 <rmdir+0x124>                     <== NOT EXECUTED
40007c3c:	90 10 00 12 	mov  %l2, %o0                                  <== NOT EXECUTED
40007c40:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40007c44:	01 00 00 00 	nop                                            <== NOT EXECUTED
40007c48:	81 c7 e0 08 	ret                                            
40007c4c:	81 e8 00 00 	restore                                        
                                                                      
  /*                                                                  
   * Verify you can remove this node as a directory.                  
   */                                                                 
                                                                      
  if ( !loc.ops->node_type_h ){                                       
40007c50:	c2 00 a0 10 	ld  [ %g2 + 0x10 ], %g1                        
40007c54:	80 a0 60 00 	cmp  %g1, 0                                    
40007c58:	12 80 00 04 	bne  40007c68 <rmdir+0x144>                    <== ALWAYS TAKEN
40007c5c:	01 00 00 00 	nop                                            
    rtems_filesystem_freenode( &loc );                                
40007c60:	10 80 00 2b 	b  40007d0c <rmdir+0x1e8>                      <== NOT EXECUTED
40007c64:	c2 00 a0 1c 	ld  [ %g2 + 0x1c ], %g1                        <== NOT EXECUTED
    if ( free_parentloc )                                             
      rtems_filesystem_freenode( &parentloc );                        
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
  }                                                                   
                                                                      
  if (  (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ){
40007c68:	9f c0 40 00 	call  %g1                                      
40007c6c:	90 10 00 10 	mov  %l0, %o0                                  
40007c70:	80 a2 20 01 	cmp  %o0, 1                                    
40007c74:	02 80 00 1d 	be  40007ce8 <rmdir+0x1c4>                     
40007c78:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         
    rtems_filesystem_freenode( &loc );                                
40007c7c:	c2 07 bf e4 	ld  [ %fp + -28 ], %g1                         
40007c80:	80 a0 60 00 	cmp  %g1, 0                                    
40007c84:	02 80 00 09 	be  40007ca8 <rmdir+0x184>                     <== NEVER TAKEN
40007c88:	80 8c 60 ff 	btst  0xff, %l1                                
40007c8c:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
40007c90:	80 a0 60 00 	cmp  %g1, 0                                    
40007c94:	02 80 00 05 	be  40007ca8 <rmdir+0x184>                     <== NEVER TAKEN
40007c98:	80 8c 60 ff 	btst  0xff, %l1                                
40007c9c:	9f c0 40 00 	call  %g1                                      
40007ca0:	90 10 00 10 	mov  %l0, %o0                                  
    if ( free_parentloc )                                             
40007ca4:	80 8c 60 ff 	btst  0xff, %l1                                
40007ca8:	02 80 00 0c 	be  40007cd8 <rmdir+0x1b4>                     <== NEVER TAKEN
40007cac:	01 00 00 00 	nop                                            
      rtems_filesystem_freenode( &parentloc );                        
40007cb0:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
40007cb4:	80 a0 60 00 	cmp  %g1, 0                                    
40007cb8:	02 80 00 08 	be  40007cd8 <rmdir+0x1b4>                     <== NEVER TAKEN
40007cbc:	01 00 00 00 	nop                                            
40007cc0:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
40007cc4:	80 a0 60 00 	cmp  %g1, 0                                    
40007cc8:	02 80 00 04 	be  40007cd8 <rmdir+0x1b4>                     <== NEVER TAKEN
40007ccc:	01 00 00 00 	nop                                            
40007cd0:	9f c0 40 00 	call  %g1                                      
40007cd4:	90 07 bf ec 	add  %fp, -20, %o0                             
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
40007cd8:	40 00 32 e0 	call  40014858 <__errno>                       
40007cdc:	b0 10 3f ff 	mov  -1, %i0                                   
40007ce0:	10 80 00 1f 	b  40007d5c <rmdir+0x238>                      
40007ce4:	82 10 20 14 	mov  0x14, %g1                                 
                                                                      
  /*                                                                  
   * Use the filesystems rmnod to remove the node.                    
   */                                                                 
                                                                      
  if ( !loc.handlers->rmnod_h ){                                      
40007ce8:	c2 00 60 34 	ld  [ %g1 + 0x34 ], %g1                        
40007cec:	80 a0 60 00 	cmp  %g1, 0                                    
40007cf0:	12 80 00 1e 	bne  40007d68 <rmdir+0x244>                    <== ALWAYS TAKEN
40007cf4:	90 10 00 12 	mov  %l2, %o0                                  
    rtems_filesystem_freenode( &loc );                                
40007cf8:	c2 07 bf e4 	ld  [ %fp + -28 ], %g1                         <== NOT EXECUTED
40007cfc:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40007d00:	02 80 00 09 	be  40007d24 <rmdir+0x200>                     <== NOT EXECUTED
40007d04:	80 8c 60 ff 	btst  0xff, %l1                                <== NOT EXECUTED
40007d08:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        <== NOT EXECUTED
40007d0c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40007d10:	02 80 00 05 	be  40007d24 <rmdir+0x200>                     <== NOT EXECUTED
40007d14:	80 8c 60 ff 	btst  0xff, %l1                                <== NOT EXECUTED
40007d18:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40007d1c:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
    if ( free_parentloc )                                             
40007d20:	80 8c 60 ff 	btst  0xff, %l1                                <== NOT EXECUTED
40007d24:	02 80 00 0b 	be  40007d50 <rmdir+0x22c>                     <== NOT EXECUTED
40007d28:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          <== NOT EXECUTED
      rtems_filesystem_freenode( &parentloc );                        
40007d2c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40007d30:	02 80 00 08 	be  40007d50 <rmdir+0x22c>                     <== NOT EXECUTED
40007d34:	01 00 00 00 	nop                                            <== NOT EXECUTED
40007d38:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        <== NOT EXECUTED
40007d3c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40007d40:	02 80 00 04 	be  40007d50 <rmdir+0x22c>                     <== NOT EXECUTED
40007d44:	01 00 00 00 	nop                                            <== NOT EXECUTED
40007d48:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40007d4c:	90 07 bf ec 	add  %fp, -20, %o0                             <== NOT EXECUTED
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
40007d50:	40 00 32 c2 	call  40014858 <__errno>                       <== NOT EXECUTED
40007d54:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
40007d58:	82 10 20 86 	mov  0x86, %g1                                 <== NOT EXECUTED
40007d5c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
40007d60:	81 c7 e0 08 	ret                                            
40007d64:	81 e8 00 00 	restore                                        
  }                                                                   
                                                                      
  result =  (*loc.handlers->rmnod_h)( &parentloc, &loc );             
40007d68:	9f c0 40 00 	call  %g1                                      
40007d6c:	92 10 00 10 	mov  %l0, %o1                                  
                                                                      
  rtems_filesystem_freenode( &loc );                                  
40007d70:	c2 07 bf e4 	ld  [ %fp + -28 ], %g1                         
40007d74:	80 a0 60 00 	cmp  %g1, 0                                    
40007d78:	02 80 00 08 	be  40007d98 <rmdir+0x274>                     <== NEVER TAKEN
40007d7c:	b0 10 00 08 	mov  %o0, %i0                                  
40007d80:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
40007d84:	80 a0 60 00 	cmp  %g1, 0                                    
40007d88:	02 80 00 05 	be  40007d9c <rmdir+0x278>                     <== NEVER TAKEN
40007d8c:	80 8c 60 ff 	btst  0xff, %l1                                
40007d90:	9f c0 40 00 	call  %g1                                      
40007d94:	90 10 00 10 	mov  %l0, %o0                                  
  if ( free_parentloc )                                               
40007d98:	80 8c 60 ff 	btst  0xff, %l1                                
40007d9c:	02 bf ff ab 	be  40007c48 <rmdir+0x124>                     
40007da0:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
    rtems_filesystem_freenode( &parentloc );                          
40007da4:	80 a0 60 00 	cmp  %g1, 0                                    
40007da8:	02 80 00 0b 	be  40007dd4 <rmdir+0x2b0>                     <== NEVER TAKEN
40007dac:	01 00 00 00 	nop                                            
40007db0:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
40007db4:	80 a0 60 00 	cmp  %g1, 0                                    
40007db8:	02 80 00 07 	be  40007dd4 <rmdir+0x2b0>                     <== NEVER TAKEN
40007dbc:	01 00 00 00 	nop                                            
40007dc0:	9f c0 40 00 	call  %g1                                      
40007dc4:	90 07 bf ec 	add  %fp, -20, %o0                             
40007dc8:	81 c7 e0 08 	ret                                            
40007dcc:	81 e8 00 00 	restore                                        
40007dd0:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
                                                                      
  return result;                                                      
}                                                                     
40007dd4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40007dd8:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

40015688 <rtems_assoc_name_bad>: uint32_t bad_value #else uint32_t bad_value __attribute((unused)) #endif ) {
40015688:	11 10 00 a1 	sethi  %hi(0x40028400), %o0                    <== NOT EXECUTED
    sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value);
#else                                                                 
    static char bad_buffer[40] = "<assocnamebad.c: : BAD NAME>";      
#endif                                                                
    return bad_buffer;                                                
}                                                                     
4001568c:	81 c3 e0 08 	retl                                           <== NOT EXECUTED
40015690:	90 12 23 10 	or  %o0, 0x310, %o0	! 40028710 <bad_buffer.4953><== NOT EXECUTED
                                                                      

40011e64 <rtems_assoc_name_by_local>: const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) {
40011e64:	9d e3 bf a0 	save  %sp, -96, %sp                            
  const rtems_assoc_t *nap;                                           
                                                                      
  nap = rtems_assoc_ptr_by_local(ap, local_value);                    
40011e68:	90 10 00 18 	mov  %i0, %o0                                  
40011e6c:	40 00 00 0b 	call  40011e98 <rtems_assoc_ptr_by_local>      
40011e70:	92 10 00 19 	mov  %i1, %o1                                  
  if (nap)                                                            
40011e74:	80 a2 20 00 	cmp  %o0, 0                                    
40011e78:	02 80 00 05 	be  40011e8c <rtems_assoc_name_by_local+0x28>  <== NEVER TAKEN
40011e7c:	01 00 00 00 	nop                                            
    return nap->name;                                                 
                                                                      
  return rtems_assoc_name_bad(local_value);                           
}                                                                     
40011e80:	f0 02 00 00 	ld  [ %o0 ], %i0                               
40011e84:	81 c7 e0 08 	ret                                            
40011e88:	81 e8 00 00 	restore                                        
                                                                      
  nap = rtems_assoc_ptr_by_local(ap, local_value);                    
  if (nap)                                                            
    return nap->name;                                                 
                                                                      
  return rtems_assoc_name_bad(local_value);                           
40011e8c:	40 00 0d ff 	call  40015688 <rtems_assoc_name_bad>          <== NOT EXECUTED
40011e90:	91 e8 00 19 	restore  %g0, %i1, %o0                         <== NOT EXECUTED
                                                                      

4000f45c <rtems_assoc_ptr_by_local>: const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) {
4000f45c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
4000f460:	d0 06 00 00 	ld  [ %i0 ], %o0                               
4000f464:	80 a2 20 00 	cmp  %o0, 0                                    
4000f468:	02 80 00 0e 	be  4000f4a0 <rtems_assoc_ptr_by_local+0x44>   <== NEVER TAKEN
4000f46c:	82 10 20 00 	clr  %g1                                       
4000f470:	13 10 00 71 	sethi  %hi(0x4001c400), %o1                    
4000f474:	40 00 03 81 	call  40010278 <strcmp>                        
4000f478:	92 12 62 60 	or  %o1, 0x260, %o1	! 4001c660 <errno_assoc+0x88>
4000f47c:	80 a2 20 00 	cmp  %o0, 0                                    
4000f480:	02 80 00 07 	be  4000f49c <rtems_assoc_ptr_by_local+0x40>   <== NEVER TAKEN
4000f484:	82 10 00 18 	mov  %i0, %g1                                  
    default_ap = ap++;                                                
4000f488:	10 80 00 06 	b  4000f4a0 <rtems_assoc_ptr_by_local+0x44>    
4000f48c:	82 10 20 00 	clr  %g1                                       
                                                                      
  for ( ; ap->name; ap++)                                             
    if (ap->local_value == local_value)                               
4000f490:	80 a0 80 19 	cmp  %g2, %i1                                  
4000f494:	02 80 00 08 	be  4000f4b4 <rtems_assoc_ptr_by_local+0x58>   
4000f498:	01 00 00 00 	nop                                            
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
4000f49c:	b0 06 20 0c 	add  %i0, 0xc, %i0                             
4000f4a0:	c4 06 00 00 	ld  [ %i0 ], %g2                               
4000f4a4:	80 a0 a0 00 	cmp  %g2, 0                                    
4000f4a8:	32 bf ff fa 	bne,a   4000f490 <rtems_assoc_ptr_by_local+0x34>
4000f4ac:	c4 06 20 04 	ld  [ %i0 + 4 ], %g2                           
4000f4b0:	b0 10 00 01 	mov  %g1, %i0                                  
    if (ap->local_value == local_value)                               
      return ap;                                                      
                                                                      
  return default_ap;                                                  
}                                                                     
4000f4b4:	81 c7 e0 08 	ret                                            
4000f4b8:	81 e8 00 00 	restore                                        
                                                                      

4000de1c <rtems_assoc_ptr_by_remote>: const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) {
4000de1c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
4000de20:	d0 06 00 00 	ld  [ %i0 ], %o0                               
4000de24:	80 a2 20 00 	cmp  %o0, 0                                    
4000de28:	02 80 00 0e 	be  4000de60 <rtems_assoc_ptr_by_remote+0x44>  <== NEVER TAKEN
4000de2c:	82 10 20 00 	clr  %g1                                       
4000de30:	13 10 00 71 	sethi  %hi(0x4001c400), %o1                    
4000de34:	40 00 09 11 	call  40010278 <strcmp>                        
4000de38:	92 12 61 28 	or  %o1, 0x128, %o1	! 4001c528 <__FUNCTION__.5937+0x18>
4000de3c:	80 a2 20 00 	cmp  %o0, 0                                    
4000de40:	02 80 00 07 	be  4000de5c <rtems_assoc_ptr_by_remote+0x40>  <== NEVER TAKEN
4000de44:	82 10 00 18 	mov  %i0, %g1                                  
    default_ap = ap++;                                                
4000de48:	10 80 00 06 	b  4000de60 <rtems_assoc_ptr_by_remote+0x44>   
4000de4c:	82 10 20 00 	clr  %g1                                       
                                                                      
  for ( ; ap->name; ap++)                                             
    if (ap->remote_value == remote_value)                             
4000de50:	80 a0 80 19 	cmp  %g2, %i1                                  
4000de54:	02 80 00 08 	be  4000de74 <rtems_assoc_ptr_by_remote+0x58>  
4000de58:	01 00 00 00 	nop                                            
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
4000de5c:	b0 06 20 0c 	add  %i0, 0xc, %i0                             
4000de60:	c4 06 00 00 	ld  [ %i0 ], %g2                               
4000de64:	80 a0 a0 00 	cmp  %g2, 0                                    
4000de68:	32 bf ff fa 	bne,a   4000de50 <rtems_assoc_ptr_by_remote+0x34>
4000de6c:	c4 06 20 08 	ld  [ %i0 + 8 ], %g2                           
4000de70:	b0 10 00 01 	mov  %g1, %i0                                  
    if (ap->remote_value == remote_value)                             
      return ap;                                                      
                                                                      
  return default_ap;                                                  
}                                                                     
4000de74:	81 c7 e0 08 	ret                                            
4000de78:	81 e8 00 00 	restore                                        
                                                                      

4000eb70 <rtems_assoc_remote_by_local>: uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) {
4000eb70:	9d e3 bf a0 	save  %sp, -96, %sp                            <== NOT EXECUTED
  const rtems_assoc_t *nap;                                           
                                                                      
  nap = rtems_assoc_ptr_by_local(ap, local_value);                    
4000eb74:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
4000eb78:	92 10 00 19 	mov  %i1, %o1                                  <== NOT EXECUTED
4000eb7c:	40 00 02 38 	call  4000f45c <rtems_assoc_ptr_by_local>      <== NOT EXECUTED
4000eb80:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
  if (nap)                                                            
4000eb84:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000eb88:	32 80 00 02 	bne,a   4000eb90 <rtems_assoc_remote_by_local+0x20><== NOT EXECUTED
4000eb8c:	f0 02 20 08 	ld  [ %o0 + 8 ], %i0                           <== NOT EXECUTED
    return nap->remote_value;                                         
                                                                      
  return 0;                                                           
}                                                                     
4000eb90:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000eb94:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

4000316c <rtems_bsp_cmdline_get_param>: const char *rtems_bsp_cmdline_get_param( const char *name, char *value, size_t length ) {
4000316c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  const char *p;                                                      
                                                                      
  if ( !name )                                                        
40003170:	90 96 20 00 	orcc  %i0, 0, %o0                              
40003174:	22 80 00 26 	be,a   4000320c <rtems_bsp_cmdline_get_param+0xa0>
40003178:	b2 10 20 00 	clr  %i1                                       
    return NULL;                                                      
                                                                      
  if ( !value )                                                       
4000317c:	80 a6 60 00 	cmp  %i1, 0                                    
40003180:	22 80 00 24 	be,a   40003210 <rtems_bsp_cmdline_get_param+0xa4>
40003184:	b0 10 00 19 	mov  %i1, %i0                                  
    return NULL;                                                      
                                                                      
  if ( !length )                                                      
40003188:	80 a6 a0 00 	cmp  %i2, 0                                    
4000318c:	22 80 00 20 	be,a   4000320c <rtems_bsp_cmdline_get_param+0xa0>
40003190:	b2 10 20 00 	clr  %i1                                       
    return NULL;                                                      
                                                                      
  value[0] = '\0';                                                    
                                                                      
  p = rtems_bsp_cmdline_get_param_raw( name );                        
40003194:	40 00 00 21 	call  40003218 <rtems_bsp_cmdline_get_param_raw>
40003198:	c0 2e 40 00 	clrb  [ %i1 ]                                  
                                                                      
  if ( !p )                                                           
4000319c:	80 a2 20 00 	cmp  %o0, 0                                    
400031a0:	02 80 00 1a 	be  40003208 <rtems_bsp_cmdline_get_param+0x9c>
400031a4:	b4 06 bf ff 	add  %i2, -1, %i2                              
400031a8:	84 10 20 00 	clr  %g2                                       
400031ac:	10 80 00 0e 	b  400031e4 <rtems_bsp_cmdline_get_param+0x78> 
400031b0:	82 10 20 00 	clr  %g1                                       
  int         quotes;                                                 
  const char *p = start;                                              
                                                                      
  quotes=0;                                                           
  for (i=0 ; *p && i<length-1; ) {                                    
    if ( *p == '\"' ) {                                               
400031b4:	12 80 00 04 	bne  400031c4 <rtems_bsp_cmdline_get_param+0x58>
400031b8:	80 88 a0 01 	btst  1, %g2                                   
      quotes++;                                                       
400031bc:	10 80 00 07 	b  400031d8 <rtems_bsp_cmdline_get_param+0x6c> 
400031c0:	84 00 a0 01 	inc  %g2                                       
    } else if ( ((quotes % 2) == 0) && *p == ' ' )                    
400031c4:	32 80 00 06 	bne,a   400031dc <rtems_bsp_cmdline_get_param+0x70>
400031c8:	c8 2e 40 01 	stb  %g4, [ %i1 + %g1 ]                        
400031cc:	80 a0 e0 20 	cmp  %g3, 0x20                                 
400031d0:	02 80 00 10 	be  40003210 <rtems_bsp_cmdline_get_param+0xa4>
400031d4:	b0 10 00 19 	mov  %i1, %i0                                  
      break;                                                          
    value[i++] = *p++;                                                
400031d8:	c8 2e 40 01 	stb  %g4, [ %i1 + %g1 ]                        
400031dc:	82 00 60 01 	inc  %g1                                       
    value[i] = '\0';                                                  
400031e0:	c0 2e 40 01 	clrb  [ %i1 + %g1 ]                            
  int         i;                                                      
  int         quotes;                                                 
  const char *p = start;                                              
                                                                      
  quotes=0;                                                           
  for (i=0 ; *p && i<length-1; ) {                                    
400031e4:	c6 4a 00 01 	ldsb  [ %o0 + %g1 ], %g3                       
400031e8:	80 a0 e0 00 	cmp  %g3, 0                                    
400031ec:	02 80 00 08 	be  4000320c <rtems_bsp_cmdline_get_param+0xa0>
400031f0:	c8 0a 00 01 	ldub  [ %o0 + %g1 ], %g4                       
400031f4:	80 a0 40 1a 	cmp  %g1, %i2                                  
400031f8:	0a bf ff ef 	bcs  400031b4 <rtems_bsp_cmdline_get_param+0x48><== ALWAYS TAKEN
400031fc:	80 a0 e0 22 	cmp  %g3, 0x22                                 
    return NULL;                                                      
                                                                      
  copy_string( p, value, length );                                    
                                                                      
  return value;                                                       
}                                                                     
40003200:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40003204:	91 e8 00 19 	restore  %g0, %i1, %o0                         <== NOT EXECUTED
  int         i;                                                      
  int         quotes;                                                 
  const char *p = start;                                              
                                                                      
  quotes=0;                                                           
  for (i=0 ; *p && i<length-1; ) {                                    
40003208:	b2 10 20 00 	clr  %i1                                       
    return NULL;                                                      
                                                                      
  copy_string( p, value, length );                                    
                                                                      
  return value;                                                       
}                                                                     
4000320c:	b0 10 00 19 	mov  %i1, %i0                                  
40003210:	81 c7 e0 08 	ret                                            
40003214:	81 e8 00 00 	restore                                        
                                                                      

40003248 <rtems_bsp_cmdline_get_param_rhs>: const char *rtems_bsp_cmdline_get_param_rhs( const char *name, char *value, size_t length ) {
40003248:	9d e3 bf a0 	save  %sp, -96, %sp                            
  const char *p;                                                      
  const char *rhs;                                                    
  char       *d;                                                      
                                                                      
  p = rtems_bsp_cmdline_get_param( name, value, length );             
4000324c:	94 10 00 1a 	mov  %i2, %o2                                  
40003250:	90 10 00 18 	mov  %i0, %o0                                  
40003254:	7f ff ff c6 	call  4000316c <rtems_bsp_cmdline_get_param>   
40003258:	92 10 00 19 	mov  %i1, %o1                                  
  if ( !p )                                                           
4000325c:	a2 92 20 00 	orcc  %o0, 0, %l1                              
40003260:	22 80 00 1e 	be,a   400032d8 <rtems_bsp_cmdline_get_param_rhs+0x90>
40003264:	b2 10 20 00 	clr  %i1                                       
    return NULL;                                                      
                                                                      
  rhs = &p[strlen(name)];                                             
40003268:	40 00 35 8a 	call  40010890 <strlen>                        
4000326c:	90 10 00 18 	mov  %i0, %o0                                  
  if ( *rhs != '=' )                                                  
40003270:	c2 4c 40 08 	ldsb  [ %l1 + %o0 ], %g1                       
40003274:	80 a0 60 3d 	cmp  %g1, 0x3d                                 
40003278:	12 80 00 17 	bne  400032d4 <rtems_bsp_cmdline_get_param_rhs+0x8c><== NEVER TAKEN
4000327c:	a2 04 40 08 	add  %l1, %o0, %l1                             
    return NULL;                                                      
                                                                      
  rhs++;                                                              
  if ( *rhs == '\"' )                                                 
40003280:	c2 4c 60 01 	ldsb  [ %l1 + 1 ], %g1                         
40003284:	80 a0 60 22 	cmp  %g1, 0x22                                 
40003288:	12 80 00 03 	bne  40003294 <rtems_bsp_cmdline_get_param_rhs+0x4c>
4000328c:	84 04 60 01 	add  %l1, 1, %g2                               
    rhs++;                                                            
40003290:	84 04 60 02 	add  %l1, 2, %g2                               
40003294:	10 80 00 05 	b  400032a8 <rtems_bsp_cmdline_get_param_rhs+0x60>
40003298:	82 10 00 19 	mov  %i1, %g1                                  
  for ( d=value ; *rhs ; )                                            
    *d++ = *rhs++;                                                    
4000329c:	c8 28 40 00 	stb  %g4, [ %g1 ]                              
400032a0:	84 00 a0 01 	inc  %g2                                       
400032a4:	82 00 60 01 	inc  %g1                                       
    return NULL;                                                      
                                                                      
  rhs++;                                                              
  if ( *rhs == '\"' )                                                 
    rhs++;                                                            
  for ( d=value ; *rhs ; )                                            
400032a8:	c6 48 80 00 	ldsb  [ %g2 ], %g3                             
400032ac:	80 a0 e0 00 	cmp  %g3, 0                                    
400032b0:	12 bf ff fb 	bne  4000329c <rtems_bsp_cmdline_get_param_rhs+0x54>
400032b4:	c8 08 80 00 	ldub  [ %g2 ], %g4                             
    *d++ = *rhs++;                                                    
  if ( *(d-1) == '\"' )                                               
400032b8:	c6 48 7f ff 	ldsb  [ %g1 + -1 ], %g3                        
400032bc:	80 a0 e0 22 	cmp  %g3, 0x22                                 
400032c0:	12 80 00 03 	bne  400032cc <rtems_bsp_cmdline_get_param_rhs+0x84>
400032c4:	84 00 7f ff 	add  %g1, -1, %g2                              
400032c8:	82 10 00 02 	mov  %g2, %g1                                  
    d--;                                                              
  *d = '\0';                                                          
                                                                      
  return value;                                                       
400032cc:	10 80 00 03 	b  400032d8 <rtems_bsp_cmdline_get_param_rhs+0x90>
400032d0:	c0 28 40 00 	clrb  [ %g1 ]                                  
400032d4:	b2 10 20 00 	clr  %i1                                       <== NOT EXECUTED
}                                                                     
400032d8:	81 c7 e0 08 	ret                                            
400032dc:	91 e8 00 19 	restore  %g0, %i1, %o0                         
                                                                      

40003be4 <rtems_cpu_usage_report_with_plugin>: void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) {
40003be4:	9d e3 bf 60 	save  %sp, -160, %sp                           
    Timestamp_Control  uptime, total, ran;                            
  #else                                                               
    uint32_t           total_units = 0;                               
  #endif                                                              
                                                                      
  if ( !print )                                                       
40003be8:	80 a6 60 00 	cmp  %i1, 0                                    
40003bec:	02 80 00 69 	be  40003d90 <rtems_cpu_usage_report_with_plugin+0x1ac><== NEVER TAKEN
40003bf0:	ae 07 bf f0 	add  %fp, -16, %l7                             
   *  When not using nanosecond CPU usage resolution, we have to count
   *  the number of "ticks" we gave credit for to give the user a rough
   *  guideline as to what each number means proportionally.          
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _TOD_Get_uptime( &uptime );                                       
40003bf4:	40 00 14 7d 	call  40008de8 <_TOD_Get_uptime>               
40003bf8:	90 10 00 17 	mov  %l7, %o0                                  
    _Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total );
40003bfc:	92 10 00 17 	mov  %l7, %o1                                  
40003c00:	ba 07 bf e8 	add  %fp, -24, %i5                             
40003c04:	11 10 00 b1 	sethi  %hi(0x4002c400), %o0                    
40003c08:	94 10 00 1d 	mov  %i5, %o2                                  
40003c0c:	40 00 1e 95 	call  4000b660 <_Timespec_Subtract>            
40003c10:	90 12 20 a8 	or  %o0, 0xa8, %o0                             
        }                                                             
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  (*print)(                                                           
40003c14:	90 10 00 18 	mov  %i0, %o0                                  
40003c18:	13 10 00 85 	sethi  %hi(0x40021400), %o1                    
40003c1c:	21 10 00 af 	sethi  %hi(0x4002bc00), %l0                    
40003c20:	92 12 61 20 	or  %o1, 0x120, %o1                            
        if ( !the_thread )                                            
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
                                                                      
        (*print)(                                                     
40003c24:	39 10 00 85 	sethi  %hi(0x40021400), %i4                    
          /*                                                          
           * If this is the currently executing thread, account for time
           * since the last context switch.                           
           */                                                         
          ran = the_thread->cpu_time_used;                            
          if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
40003c28:	2d 10 00 af 	sethi  %hi(0x4002bc00), %l6                    
                                                                      
          /*                                                          
           * Print the information                                    
           */                                                         
                                                                      
          (*print)( context,                                          
40003c2c:	37 10 00 85 	sethi  %hi(0x40021400), %i3                    
        }                                                             
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  (*print)(                                                           
40003c30:	9f c6 40 00 	call  %i1                                      
40003c34:	35 10 00 af 	sethi  %hi(0x4002bc00), %i2                    
        the_thread = (Thread_Control *)information->local_table[ i ]; 
                                                                      
        if ( !the_thread )                                            
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
40003c38:	a8 07 bf c8 	add  %fp, -56, %l4                             
        }                                                             
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  (*print)(                                                           
40003c3c:	a0 14 22 44 	or  %l0, 0x244, %l0                            
        if ( !the_thread )                                            
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
                                                                      
        (*print)(                                                     
40003c40:	b8 17 22 98 	or  %i4, 0x298, %i4                            
          /*                                                          
           * If this is the currently executing thread, account for time
           * since the last context switch.                           
           */                                                         
          ran = the_thread->cpu_time_used;                            
          if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
40003c44:	ac 15 a3 9c 	or  %l6, 0x39c, %l6                            
                                                                      
          /*                                                          
           * Print the information                                    
           */                                                         
                                                                      
          (*print)( context,                                          
40003c48:	b6 16 e2 b0 	or  %i3, 0x2b0, %i3                            
           * since the last context switch.                           
           */                                                         
          ran = the_thread->cpu_time_used;                            
          if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
            Timestamp_Control used;                                   
            _Timestamp_Subtract(                                      
40003c4c:	b4 16 a3 a4 	or  %i2, 0x3a4, %i2                            
              &_Thread_Time_of_last_context_switch, &uptime, &used    
            );                                                        
            _Timestamp_Add_to( &ran, &used );                         
          };                                                          
          _Timestamp_Divide( &ran, &total, &ival, &fval );            
40003c50:	a6 07 bf e0 	add  %fp, -32, %l3                             
  );                                                                  
                                                                      
  for ( api_index = 1 ;                                               
        api_index <= OBJECTS_APIS_LAST ;                              
        api_index++ ) {                                               
    if ( !_Objects_Information_table[ api_index ] )                   
40003c54:	c2 04 00 00 	ld  [ %l0 ], %g1                               
40003c58:	80 a0 60 00 	cmp  %g1, 0                                    
40003c5c:	22 80 00 3f 	be,a   40003d58 <rtems_cpu_usage_report_with_plugin+0x174>
40003c60:	a0 04 20 04 	add  %l0, 4, %l0                               
      continue;                                                       
    information = _Objects_Information_table[ api_index ][ 1 ];       
40003c64:	e4 00 60 04 	ld  [ %g1 + 4 ], %l2                           
    if ( information ) {                                              
40003c68:	a2 10 20 01 	mov  1, %l1                                    
40003c6c:	80 a4 a0 00 	cmp  %l2, 0                                    
40003c70:	12 80 00 33 	bne  40003d3c <rtems_cpu_usage_report_with_plugin+0x158><== ALWAYS TAKEN
40003c74:	aa 07 bf d8 	add  %fp, -40, %l5                             
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
40003c78:	10 80 00 38 	b  40003d58 <rtems_cpu_usage_report_with_plugin+0x174><== NOT EXECUTED
40003c7c:	a0 04 20 04 	add  %l0, 4, %l0                               <== NOT EXECUTED
        the_thread = (Thread_Control *)information->local_table[ i ]; 
40003c80:	c2 04 a0 1c 	ld  [ %l2 + 0x1c ], %g1                        
40003c84:	c2 00 40 02 	ld  [ %g1 + %g2 ], %g1                         
                                                                      
        if ( !the_thread )                                            
40003c88:	80 a0 60 00 	cmp  %g1, 0                                    
40003c8c:	02 80 00 2c 	be  40003d3c <rtems_cpu_usage_report_with_plugin+0x158><== NEVER TAKEN
40003c90:	a2 04 60 01 	inc  %l1                                       
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
40003c94:	d0 00 60 08 	ld  [ %g1 + 8 ], %o0                           
40003c98:	40 00 0f 66 	call  40007a30 <rtems_object_get_name>         
40003c9c:	c2 27 bf c4 	st  %g1, [ %fp + -60 ]                         
                                                                      
        (*print)(                                                     
40003ca0:	c2 07 bf c4 	ld  [ %fp + -60 ], %g1                         
40003ca4:	90 10 00 18 	mov  %i0, %o0                                  
40003ca8:	d4 00 60 08 	ld  [ %g1 + 8 ], %o2                           
40003cac:	92 10 00 1c 	mov  %i4, %o1                                  
40003cb0:	9f c6 40 00 	call  %i1                                      
40003cb4:	96 10 00 14 	mov  %l4, %o3                                  
        #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                    
          /*                                                          
           * If this is the currently executing thread, account for time
           * since the last context switch.                           
           */                                                         
          ran = the_thread->cpu_time_used;                            
40003cb8:	c2 07 bf c4 	ld  [ %fp + -60 ], %g1                         
          if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
40003cbc:	c4 05 80 00 	ld  [ %l6 ], %g2                               
        #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                    
          /*                                                          
           * If this is the currently executing thread, account for time
           * since the last context switch.                           
           */                                                         
          ran = the_thread->cpu_time_used;                            
40003cc0:	c6 00 60 84 	ld  [ %g1 + 0x84 ], %g3                        
40003cc4:	c6 27 bf e0 	st  %g3, [ %fp + -32 ]                         
40003cc8:	c6 00 60 88 	ld  [ %g1 + 0x88 ], %g3                        
40003ccc:	c6 27 bf e4 	st  %g3, [ %fp + -28 ]                         
          if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
40003cd0:	c4 00 a0 08 	ld  [ %g2 + 8 ], %g2                           
40003cd4:	c2 00 60 08 	ld  [ %g1 + 8 ], %g1                           
40003cd8:	80 a0 80 01 	cmp  %g2, %g1                                  
40003cdc:	12 80 00 0a 	bne  40003d04 <rtems_cpu_usage_report_with_plugin+0x120>
40003ce0:	94 07 bf fc 	add  %fp, -4, %o2                              
            Timestamp_Control used;                                   
            _Timestamp_Subtract(                                      
40003ce4:	90 10 00 1a 	mov  %i2, %o0                                  
40003ce8:	92 10 00 17 	mov  %l7, %o1                                  
40003cec:	40 00 1e 5d 	call  4000b660 <_Timespec_Subtract>            
40003cf0:	94 10 00 15 	mov  %l5, %o2                                  
              &_Thread_Time_of_last_context_switch, &uptime, &used    
            );                                                        
            _Timestamp_Add_to( &ran, &used );                         
40003cf4:	90 10 00 13 	mov  %l3, %o0                                  
40003cf8:	40 00 1d ae 	call  4000b3b0 <_Timespec_Add_to>              
40003cfc:	92 10 00 15 	mov  %l5, %o1                                  
          };                                                          
          _Timestamp_Divide( &ran, &total, &ival, &fval );            
40003d00:	94 07 bf fc 	add  %fp, -4, %o2                              
40003d04:	96 07 bf f8 	add  %fp, -8, %o3                              
40003d08:	90 10 00 13 	mov  %l3, %o0                                  
40003d0c:	40 00 1d c3 	call  4000b418 <_Timespec_Divide>              
40003d10:	92 10 00 1d 	mov  %i5, %o1                                  
                                                                      
          /*                                                          
           * Print the information                                    
           */                                                         
                                                                      
          (*print)( context,                                          
40003d14:	d0 07 bf e4 	ld  [ %fp + -28 ], %o0                         
40003d18:	40 00 68 a5 	call  4001dfac <.udiv>                         
40003d1c:	92 10 23 e8 	mov  0x3e8, %o1                                
40003d20:	d4 07 bf e0 	ld  [ %fp + -32 ], %o2                         
40003d24:	d8 07 bf fc 	ld  [ %fp + -4 ], %o4                          
40003d28:	da 07 bf f8 	ld  [ %fp + -8 ], %o5                          
40003d2c:	96 10 00 08 	mov  %o0, %o3                                  
40003d30:	92 10 00 1b 	mov  %i3, %o1                                  
40003d34:	9f c6 40 00 	call  %i1                                      
40003d38:	90 10 00 18 	mov  %i0, %o0                                  
        api_index++ ) {                                               
    if ( !_Objects_Information_table[ api_index ] )                   
      continue;                                                       
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( information ) {                                              
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
40003d3c:	c2 14 a0 10 	lduh  [ %l2 + 0x10 ], %g1                      
        the_thread = (Thread_Control *)information->local_table[ i ]; 
                                                                      
        if ( !the_thread )                                            
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
40003d40:	94 10 00 14 	mov  %l4, %o2                                  
40003d44:	92 10 20 0d 	mov  0xd, %o1                                  
        api_index++ ) {                                               
    if ( !_Objects_Information_table[ api_index ] )                   
      continue;                                                       
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( information ) {                                              
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
40003d48:	80 a4 40 01 	cmp  %l1, %g1                                  
40003d4c:	08 bf ff cd 	bleu  40003c80 <rtems_cpu_usage_report_with_plugin+0x9c>
40003d50:	85 2c 60 02 	sll  %l1, 2, %g2                               
40003d54:	a0 04 20 04 	add  %l0, 4, %l0                               
       " ID         | NAME                                   | TICKS         | PERCENT\n"
     #endif                                                           
     "------------+----------------------------------------+---------------+---------\n"
  );                                                                  
                                                                      
  for ( api_index = 1 ;                                               
40003d58:	03 10 00 af 	sethi  %hi(0x4002bc00), %g1                    
40003d5c:	82 10 62 54 	or  %g1, 0x254, %g1	! 4002be54 <_Objects_Information_table+0x14>
40003d60:	80 a4 00 01 	cmp  %l0, %g1                                  
40003d64:	32 bf ff bd 	bne,a   40003c58 <rtems_cpu_usage_report_with_plugin+0x74>
40003d68:	c2 04 00 00 	ld  [ %l0 ], %g1                               
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    (*print)(                                                         
40003d6c:	d0 07 bf ec 	ld  [ %fp + -20 ], %o0                         
40003d70:	40 00 68 8f 	call  4001dfac <.udiv>                         
40003d74:	92 10 23 e8 	mov  0x3e8, %o1                                
40003d78:	d4 07 bf e8 	ld  [ %fp + -24 ], %o2                         
40003d7c:	96 10 00 08 	mov  %o0, %o3                                  
40003d80:	13 10 00 85 	sethi  %hi(0x40021400), %o1                    
40003d84:	90 10 00 18 	mov  %i0, %o0                                  
40003d88:	9f c6 40 00 	call  %i1                                      
40003d8c:	92 12 62 c8 	or  %o1, 0x2c8, %o1                            
40003d90:	81 c7 e0 08 	ret                                            
40003d94:	81 e8 00 00 	restore                                        
                                                                      

4000eb3c <rtems_deviceio_errno>: { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) {
4000eb3c:	9d e3 bf a0 	save  %sp, -96, %sp                            <== NOT EXECUTED
    int rc;                                                           
                                                                      
    if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t  ) code)))
4000eb40:	11 10 00 71 	sethi  %hi(0x4001c400), %o0                    <== NOT EXECUTED
4000eb44:	92 10 00 18 	mov  %i0, %o1                                  <== NOT EXECUTED
4000eb48:	40 00 00 0a 	call  4000eb70 <rtems_assoc_remote_by_local>   <== NOT EXECUTED
4000eb4c:	90 12 21 d8 	or  %o0, 0x1d8, %o0                            <== NOT EXECUTED
4000eb50:	a0 92 20 00 	orcc  %o0, 0, %l0                              <== NOT EXECUTED
4000eb54:	02 80 00 05 	be  4000eb68 <rtems_deviceio_errno+0x2c>       <== NOT EXECUTED
4000eb58:	01 00 00 00 	nop                                            <== NOT EXECUTED
    {                                                                 
        errno = rc;                                                   
4000eb5c:	40 00 02 60 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4000eb60:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000eb64:	e0 22 00 00 	st  %l0, [ %o0 ]                               <== NOT EXECUTED
        return -1;                                                    
    }                                                                 
    return -1;                                                        
}                                                                     
4000eb68:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000eb6c:	91 e8 3f ff 	restore  %g0, -1, %o0                          <== NOT EXECUTED
                                                                      

400084b8 <rtems_error>: int rtems_error( rtems_error_code_t error_flag, const char *printf_format, ... ) {
400084b8:	9d e3 bf 98 	save  %sp, -104, %sp                           <== NOT EXECUTED
    va_list arglist;                                                  
    int chars_written;                                                
                                                                      
    va_start(arglist, printf_format);                                 
400084bc:	94 07 a0 4c 	add  %fp, 0x4c, %o2                            <== NOT EXECUTED
400084c0:	f4 27 a0 4c 	st  %i2, [ %fp + 0x4c ]                        <== NOT EXECUTED
400084c4:	f6 27 a0 50 	st  %i3, [ %fp + 0x50 ]                        <== NOT EXECUTED
400084c8:	f8 27 a0 54 	st  %i4, [ %fp + 0x54 ]                        <== NOT EXECUTED
400084cc:	fa 27 a0 58 	st  %i5, [ %fp + 0x58 ]                        <== NOT EXECUTED
    chars_written = rtems_verror(error_flag, printf_format, arglist); 
400084d0:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
400084d4:	92 10 00 19 	mov  %i1, %o1                                  <== NOT EXECUTED
400084d8:	7f ff ff 7d 	call  400082cc <rtems_verror>                  <== NOT EXECUTED
400084dc:	d4 27 bf fc 	st  %o2, [ %fp + -4 ]                          <== NOT EXECUTED
    va_end(arglist);                                                  
                                                                      
    return chars_written;                                             
}                                                                     
400084e0:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
400084e4:	91 e8 00 08 	restore  %g0, %o0, %o0                         <== NOT EXECUTED
                                                                      

40002f20 <rtems_filesystem_dirname>: } int rtems_filesystem_dirname( const char *pathname ) {
40002f20:	9d e3 bf a0 	save  %sp, -96, %sp                            
  int len = strlen( pathname );                                       
40002f24:	40 00 35 26 	call  400103bc <strlen>                        
40002f28:	90 10 00 18 	mov  %i0, %o0                                  
                                                                      
  while ( len ) {                                                     
40002f2c:	10 80 00 0a 	b  40002f54 <rtems_filesystem_dirname+0x34>    
40002f30:	b0 06 00 08 	add  %i0, %o0, %i0                             
    len--;                                                            
    if ( rtems_filesystem_is_separator( pathname[len] ) )             
40002f34:	80 a0 60 5c 	cmp  %g1, 0x5c                                 
40002f38:	02 80 00 0a 	be  40002f60 <rtems_filesystem_dirname+0x40>   <== NEVER TAKEN
40002f3c:	90 02 3f ff 	add  %o0, -1, %o0                              
40002f40:	80 a0 60 2f 	cmp  %g1, 0x2f                                 
40002f44:	02 80 00 07 	be  40002f60 <rtems_filesystem_dirname+0x40>   
40002f48:	80 a0 60 00 	cmp  %g1, 0                                    
40002f4c:	02 80 00 05 	be  40002f60 <rtems_filesystem_dirname+0x40>   <== NEVER TAKEN
40002f50:	b0 06 3f ff 	add  %i0, -1, %i0                              
  const char  *pathname                                               
)                                                                     
{                                                                     
  int len = strlen( pathname );                                       
                                                                      
  while ( len ) {                                                     
40002f54:	80 a2 20 00 	cmp  %o0, 0                                    
40002f58:	32 bf ff f7 	bne,a   40002f34 <rtems_filesystem_dirname+0x14>
40002f5c:	c2 4e 3f ff 	ldsb  [ %i0 + -1 ], %g1                        
    if ( rtems_filesystem_is_separator( pathname[len] ) )             
      break;                                                          
  }                                                                   
                                                                      
  return len;                                                         
}                                                                     
40002f60:	81 c7 e0 08 	ret                                            
40002f64:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      

40003058 <rtems_filesystem_evaluate_path>: int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) {
40003058:	9d e3 bf a0 	save  %sp, -96, %sp                            
                                                                      
  /*                                                                  
   * Verify Input parameters.                                         
   */                                                                 
                                                                      
  if ( !pathname )                                                    
4000305c:	80 a6 20 00 	cmp  %i0, 0                                    
40003060:	12 80 00 06 	bne  40003078 <rtems_filesystem_evaluate_path+0x20><== ALWAYS TAKEN
40003064:	80 a6 e0 00 	cmp  %i3, 0                                    
    rtems_set_errno_and_return_minus_one( EFAULT );                   
40003068:	40 00 31 1d 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4000306c:	01 00 00 00 	nop                                            <== NOT EXECUTED
40003070:	10 80 00 07 	b  4000308c <rtems_filesystem_evaluate_path+0x34><== NOT EXECUTED
40003074:	82 10 20 0e 	mov  0xe, %g1	! e <PROM_START+0xe>             <== NOT EXECUTED
                                                                      
  if ( !pathloc )                                                     
40003078:	32 80 00 08 	bne,a   40003098 <rtems_filesystem_evaluate_path+0x40><== ALWAYS TAKEN
4000307c:	c2 4e 00 00 	ldsb  [ %i0 ], %g1                             
    rtems_set_errno_and_return_minus_one( EIO );       /* should never happen */
40003080:	40 00 31 17 	call  4000f4dc <__errno>                       <== NOT EXECUTED
40003084:	01 00 00 00 	nop                                            <== NOT EXECUTED
40003088:	82 10 20 05 	mov  5, %g1	! 5 <PROM_START+0x5>               <== NOT EXECUTED
4000308c:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
  return rtems_filesystem_evaluate_relative_path( &pathname[i],       
                                                  pathnamelen - i,    
                                                  flags,              
                                                  pathloc,            
                                                  follow_link );      
}                                                                     
40003090:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40003094:	91 e8 3f ff 	restore  %g0, -1, %o0                          <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Evaluate the path using the optable evalpath.                    
   */                                                                 
                                                                      
  rtems_filesystem_get_start_loc( pathname, &i, pathloc );            
40003098:	80 a0 60 5c 	cmp  %g1, 0x5c                                 
4000309c:	22 80 00 08 	be,a   400030bc <rtems_filesystem_evaluate_path+0x64><== NEVER TAKEN
400030a0:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    <== NOT EXECUTED
400030a4:	80 a0 60 2f 	cmp  %g1, 0x2f                                 
400030a8:	22 80 00 05 	be,a   400030bc <rtems_filesystem_evaluate_path+0x64>
400030ac:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
400030b0:	80 a0 60 00 	cmp  %g1, 0                                    
400030b4:	12 80 00 09 	bne  400030d8 <rtems_filesystem_evaluate_path+0x80><== ALWAYS TAKEN
400030b8:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
400030bc:	d2 00 63 18 	ld  [ %g1 + 0x318 ], %o1	! 4001cf18 <rtems_current_user_env>
400030c0:	90 10 00 1b 	mov  %i3, %o0                                  
400030c4:	92 02 60 18 	add  %o1, 0x18, %o1                            
400030c8:	40 00 33 41 	call  4000fdcc <memcpy>                        
400030cc:	94 10 20 14 	mov  0x14, %o2                                 
400030d0:	10 80 00 08 	b  400030f0 <rtems_filesystem_evaluate_path+0x98>
400030d4:	82 10 20 01 	mov  1, %g1                                    
400030d8:	d2 00 63 18 	ld  [ %g1 + 0x318 ], %o1                       
400030dc:	90 10 00 1b 	mov  %i3, %o0                                  
400030e0:	92 02 60 04 	add  %o1, 4, %o1                               
400030e4:	40 00 33 3a 	call  4000fdcc <memcpy>                        
400030e8:	94 10 20 14 	mov  0x14, %o2                                 
400030ec:	82 10 20 00 	clr  %g1                                       
                                                                      
  /*                                                                  
   * We evaluation the path relative to the start location we get got.
   */                                                                 
  return rtems_filesystem_evaluate_relative_path( &pathname[i],       
400030f0:	b2 26 40 01 	sub  %i1, %g1, %i1                             
400030f4:	7f ff ff 9d 	call  40002f68 <rtems_filesystem_evaluate_relative_path>
400030f8:	91 ee 00 01 	restore  %i0, %g1, %o0                         
                                                                      

40002f68 <rtems_filesystem_evaluate_relative_path>: int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) {
40002f68:	9d e3 bf a0 	save  %sp, -96, %sp                            
40002f6c:	90 10 00 18 	mov  %i0, %o0                                  
                                                                      
  /*                                                                  
   * Verify Input parameters.                                         
   */                                                                 
                                                                      
  if ( !pathname )                                                    
40002f70:	80 a6 20 00 	cmp  %i0, 0                                    
40002f74:	12 80 00 06 	bne  40002f8c <rtems_filesystem_evaluate_relative_path+0x24><== ALWAYS TAKEN
40002f78:	92 10 00 19 	mov  %i1, %o1                                  
    rtems_set_errno_and_return_minus_one( EFAULT );                   
40002f7c:	40 00 31 58 	call  4000f4dc <__errno>                       <== NOT EXECUTED
40002f80:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
40002f84:	10 80 00 2d 	b  40003038 <rtems_filesystem_evaluate_relative_path+0xd0><== NOT EXECUTED
40002f88:	82 10 20 0e 	mov  0xe, %g1                                  <== NOT EXECUTED
                                                                      
  if ( !pathloc )                                                     
40002f8c:	80 a6 e0 00 	cmp  %i3, 0                                    
40002f90:	32 80 00 06 	bne,a   40002fa8 <rtems_filesystem_evaluate_relative_path+0x40><== ALWAYS TAKEN
40002f94:	c2 06 e0 0c 	ld  [ %i3 + 0xc ], %g1                         
    rtems_set_errno_and_return_minus_one( EIO );       /* should never happen */
40002f98:	40 00 31 51 	call  4000f4dc <__errno>                       <== NOT EXECUTED
40002f9c:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
40002fa0:	10 80 00 26 	b  40003038 <rtems_filesystem_evaluate_relative_path+0xd0><== NOT EXECUTED
40002fa4:	82 10 20 05 	mov  5, %g1                                    <== NOT EXECUTED
                                                                      
  if ( !pathloc->ops->evalpath_h )                                    
40002fa8:	c2 00 40 00 	ld  [ %g1 ], %g1                               
40002fac:	80 a0 60 00 	cmp  %g1, 0                                    
40002fb0:	02 80 00 1f 	be  4000302c <rtems_filesystem_evaluate_relative_path+0xc4><== NEVER TAKEN
40002fb4:	94 10 00 1a 	mov  %i2, %o2                                  
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
                                                                      
  result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc );
40002fb8:	9f c0 40 00 	call  %g1                                      
40002fbc:	96 10 00 1b 	mov  %i3, %o3                                  
  /*                                                                  
   * Get the Node type and determine if you need to follow the link or
   * not.                                                             
   */                                                                 
                                                                      
  if ( (result == 0) && follow_link ) {                               
40002fc0:	b0 92 20 00 	orcc  %o0, 0, %i0                              
40002fc4:	12 80 00 1e 	bne  4000303c <rtems_filesystem_evaluate_relative_path+0xd4>
40002fc8:	80 a7 20 00 	cmp  %i4, 0                                    
40002fcc:	02 80 00 21 	be  40003050 <rtems_filesystem_evaluate_relative_path+0xe8>
40002fd0:	01 00 00 00 	nop                                            
                                                                      
    if ( !pathloc->ops->node_type_h ){                                
40002fd4:	c4 06 e0 0c 	ld  [ %i3 + 0xc ], %g2                         
40002fd8:	c2 00 a0 10 	ld  [ %g2 + 0x10 ], %g1                        
40002fdc:	80 a0 60 00 	cmp  %g1, 0                                    
40002fe0:	22 80 00 0e 	be,a   40003018 <rtems_filesystem_evaluate_relative_path+0xb0><== NEVER TAKEN
40002fe4:	c2 00 a0 1c 	ld  [ %g2 + 0x1c ], %g1                        <== NOT EXECUTED
      rtems_filesystem_freenode( pathloc );                           
      rtems_set_errno_and_return_minus_one( ENOTSUP );                
    }                                                                 
                                                                      
    type = (*pathloc->ops->node_type_h)( pathloc );                   
40002fe8:	9f c0 40 00 	call  %g1                                      
40002fec:	90 10 00 1b 	mov  %i3, %o0                                  
                                                                      
    if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) ||                    
40002ff0:	90 02 3f fd 	add  %o0, -3, %o0                              
40002ff4:	80 a2 20 01 	cmp  %o0, 1                                    
40002ff8:	18 80 00 16 	bgu  40003050 <rtems_filesystem_evaluate_relative_path+0xe8>
40002ffc:	01 00 00 00 	nop                                            
         ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) {                    
                                                                      
        if ( !pathloc->ops->eval_link_h ){                            
40003000:	c4 06 e0 0c 	ld  [ %i3 + 0xc ], %g2                         
40003004:	c2 00 a0 34 	ld  [ %g2 + 0x34 ], %g1                        
40003008:	80 a0 60 00 	cmp  %g1, 0                                    
4000300c:	12 80 00 0e 	bne  40003044 <rtems_filesystem_evaluate_relative_path+0xdc><== ALWAYS TAKEN
40003010:	90 10 00 1b 	mov  %i3, %o0                                  
          rtems_filesystem_freenode( pathloc );                       
40003014:	c2 00 a0 1c 	ld  [ %g2 + 0x1c ], %g1                        <== NOT EXECUTED
40003018:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000301c:	02 80 00 04 	be  4000302c <rtems_filesystem_evaluate_relative_path+0xc4><== NOT EXECUTED
40003020:	01 00 00 00 	nop                                            <== NOT EXECUTED
40003024:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40003028:	90 10 00 1b 	mov  %i3, %o0                                  <== NOT EXECUTED
          rtems_set_errno_and_return_minus_one( ENOTSUP );            
4000302c:	40 00 31 2c 	call  4000f4dc <__errno>                       <== NOT EXECUTED
40003030:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
40003034:	82 10 20 86 	mov  0x86, %g1                                 <== NOT EXECUTED
40003038:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
4000303c:	81 c7 e0 08 	ret                                            
40003040:	81 e8 00 00 	restore                                        
         *    pathloc will be passed up (and eventually released).    
         *    Hence, the (valid) originial node that we submit to     
         *    eval_link_h() should be released by the handler.        
         */                                                           
                                                                      
        result =  (*pathloc->ops->eval_link_h)( pathloc, flags );     
40003044:	9f c0 40 00 	call  %g1                                      
40003048:	92 10 00 1a 	mov  %i2, %o1                                  
4000304c:	b0 10 00 08 	mov  %o0, %i0                                  
    }                                                                 
  }                                                                   
                                                                      
  return result;                                                      
}                                                                     
40003050:	81 c7 e0 08 	ret                                            
40003054:	81 e8 00 00 	restore                                        
                                                                      

40002dcc <rtems_filesystem_initialize>: * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) {
40002dcc:	9d e3 bf 88 	save  %sp, -120, %sp                           
                                                                      
  /*                                                                  
   *  Set the default umask to "022".                                 
   */                                                                 
                                                                      
  rtems_filesystem_umask = 022;                                       
40002dd0:	23 10 00 73 	sethi  %hi(0x4001cc00), %l1                    
40002dd4:	c2 04 63 18 	ld  [ %l1 + 0x318 ], %g1	! 4001cf18 <rtems_current_user_env>
40002dd8:	84 10 20 12 	mov  0x12, %g2                                 
                                                                      
                                                                      
  init_fs_mount_table();                                              
40002ddc:	40 00 01 8a 	call  40003404 <init_fs_mount_table>           
40002de0:	c4 20 60 2c 	st  %g2, [ %g1 + 0x2c ]                        
                                                                      
  /*                                                                  
   *  mount the first filesystem.                                     
   */                                                                 
                                                                      
  if ( rtems_filesystem_mount_table_size == 0 )                       
40002de4:	03 10 00 6e 	sethi  %hi(0x4001b800), %g1                    
40002de8:	c2 00 61 e0 	ld  [ %g1 + 0x1e0 ], %g1	! 4001b9e0 <rtems_filesystem_mount_table_size>
    rtems_fatal_error_occurred( 0xABCD0001 );                         
40002dec:	11 2a f3 40 	sethi  %hi(0xabcd0000), %o0                    
                                                                      
  /*                                                                  
   *  mount the first filesystem.                                     
   */                                                                 
                                                                      
  if ( rtems_filesystem_mount_table_size == 0 )                       
40002df0:	80 a0 60 00 	cmp  %g1, 0                                    
40002df4:	02 80 00 0f 	be  40002e30 <rtems_filesystem_initialize+0x64><== NEVER TAKEN
40002df8:	90 12 20 01 	or  %o0, 1, %o0                                
    rtems_fatal_error_occurred( 0xABCD0001 );                         
                                                                      
  mt = &rtems_filesystem_mount_table[0];                              
40002dfc:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
40002e00:	c2 00 62 0c 	ld  [ %g1 + 0x20c ], %g1	! 4001ce0c <rtems_filesystem_mount_table>
                                                                      
  status = mount(                                                     
40002e04:	90 07 bf fc 	add  %fp, -4, %o0                              
40002e08:	d8 00 60 0c 	ld  [ %g1 + 0xc ], %o4                         
40002e0c:	d2 00 40 00 	ld  [ %g1 ], %o1                               
40002e10:	d4 00 60 04 	ld  [ %g1 + 4 ], %o2                           
40002e14:	40 00 01 84 	call  40003424 <mount>                         
40002e18:	d6 00 60 08 	ld  [ %g1 + 8 ], %o3                           
     &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point );
                                                                      
  if ( status == -1 )                                                 
40002e1c:	80 a2 3f ff 	cmp  %o0, -1                                   
40002e20:	32 80 00 06 	bne,a   40002e38 <rtems_filesystem_initialize+0x6c><== ALWAYS TAKEN
40002e24:	d0 04 63 18 	ld  [ %l1 + 0x318 ], %o0                       
    rtems_fatal_error_occurred( 0xABCD0002 );                         
40002e28:	11 2a f3 40 	sethi  %hi(0xabcd0000), %o0                    <== NOT EXECUTED
40002e2c:	90 12 20 02 	or  %o0, 2, %o0	! abcd0002 <LEON_REG+0x2bcd0002><== NOT EXECUTED
40002e30:	40 00 0f 58 	call  40006b90 <rtems_fatal_error_occurred>    <== NOT EXECUTED
40002e34:	01 00 00 00 	nop                                            <== NOT EXECUTED
   *       set_private_env() - but then: that's                       
   *       gonna hit performance.                                     
   *                                                                  
   *       Till Straumann, 10/25/2002                                 
   */                                                                 
  rtems_filesystem_root        = entry->mt_fs_root;                   
40002e38:	d2 07 bf fc 	ld  [ %fp + -4 ], %o1                          
     &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point );
                                                                      
  if ( status == -1 )                                                 
    rtems_fatal_error_occurred( 0xABCD0002 );                         
                                                                      
  rtems_filesystem_link_counts = 0;                                   
40002e3c:	c0 32 20 30 	clrh  [ %o0 + 0x30 ]                           
   *       set_private_env() - but then: that's                       
   *       gonna hit performance.                                     
   *                                                                  
   *       Till Straumann, 10/25/2002                                 
   */                                                                 
  rtems_filesystem_root        = entry->mt_fs_root;                   
40002e40:	92 02 60 1c 	add  %o1, 0x1c, %o1                            
40002e44:	94 10 20 14 	mov  0x14, %o2                                 
40002e48:	40 00 33 e1 	call  4000fdcc <memcpy>                        
40002e4c:	90 02 20 18 	add  %o0, 0x18, %o0                            
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
40002e50:	a0 07 bf e8 	add  %fp, -24, %l0                             
40002e54:	98 10 20 00 	clr  %o4                                       
40002e58:	96 10 00 10 	mov  %l0, %o3                                  
40002e5c:	25 10 00 6f 	sethi  %hi(0x4001bc00), %l2                    
40002e60:	92 10 20 01 	mov  1, %o1                                    
40002e64:	94 10 20 00 	clr  %o2                                       
40002e68:	40 00 00 7c 	call  40003058 <rtems_filesystem_evaluate_path>
40002e6c:	90 14 a1 f0 	or  %l2, 0x1f0, %o0                            
  rtems_filesystem_root        = loc;                                 
40002e70:	d0 04 63 18 	ld  [ %l1 + 0x318 ], %o0                       
40002e74:	92 10 00 10 	mov  %l0, %o1                                  
40002e78:	94 10 20 14 	mov  0x14, %o2                                 
40002e7c:	40 00 33 d4 	call  4000fdcc <memcpy>                        
40002e80:	90 02 20 18 	add  %o0, 0x18, %o0                            
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
40002e84:	96 10 00 10 	mov  %l0, %o3                                  
40002e88:	98 10 20 00 	clr  %o4                                       
40002e8c:	92 10 20 01 	mov  1, %o1                                    
40002e90:	94 10 20 00 	clr  %o2                                       
40002e94:	40 00 00 71 	call  40003058 <rtems_filesystem_evaluate_path>
40002e98:	90 14 a1 f0 	or  %l2, 0x1f0, %o0                            
  rtems_filesystem_current     = loc;                                 
40002e9c:	d0 04 63 18 	ld  [ %l1 + 0x318 ], %o0                       
40002ea0:	92 10 00 10 	mov  %l0, %o1                                  
40002ea4:	94 10 20 14 	mov  0x14, %o2                                 
40002ea8:	40 00 33 c9 	call  4000fdcc <memcpy>                        
40002eac:	90 02 20 04 	add  %o0, 4, %o0                               
   *                                                                  
   *  NOTE: UNIX root is 755 and owned by root/root (0/0).  It is actually
   *        created that way by the IMFS.                             
   */                                                                 
                                                                      
  status = mkdir( "/dev", 0777);                                      
40002eb0:	92 10 21 ff 	mov  0x1ff, %o1                                
40002eb4:	11 10 00 6f 	sethi  %hi(0x4001bc00), %o0                    
40002eb8:	40 00 00 fe 	call  400032b0 <mkdir>                         
40002ebc:	90 12 21 f8 	or  %o0, 0x1f8, %o0	! 4001bdf8 <__FUNCTION__.5779+0x248>
  if ( status != 0 )                                                  
40002ec0:	80 a2 20 00 	cmp  %o0, 0                                    
40002ec4:	02 80 00 04 	be  40002ed4 <rtems_filesystem_initialize+0x108><== ALWAYS TAKEN
40002ec8:	11 2a f3 40 	sethi  %hi(0xabcd0000), %o0                    
    rtems_fatal_error_occurred( 0xABCD0003 );                         
40002ecc:	10 bf ff d9 	b  40002e30 <rtems_filesystem_initialize+0x64> <== NOT EXECUTED
40002ed0:	90 12 20 03 	or  %o0, 3, %o0	! abcd0003 <LEON_REG+0x2bcd0003><== NOT EXECUTED
40002ed4:	81 c7 e0 08 	ret                                            
40002ed8:	81 e8 00 00 	restore                                        
                                                                      

40009fa0 <rtems_filesystem_nodes_equal>: ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){
40009fa0:	c2 02 00 00 	ld  [ %o0 ], %g1                               <== NOT EXECUTED
40009fa4:	c4 02 40 00 	ld  [ %o1 ], %g2                               <== NOT EXECUTED
40009fa8:	82 18 40 02 	xor  %g1, %g2, %g1                             <== NOT EXECUTED
40009fac:	80 a0 00 01 	cmp  %g0, %g1                                  <== NOT EXECUTED
  return ( loc1->node_access == loc2->node_access );                  
}                                                                     
40009fb0:	81 c3 e0 08 	retl                                           <== NOT EXECUTED
40009fb4:	90 60 3f ff 	subx  %g0, -1, %o0                             <== NOT EXECUTED
                                                                      

40002edc <rtems_filesystem_prefix_separators>: int rtems_filesystem_prefix_separators( const char *pathname, int pathnamelen ) {
40002edc:	82 10 00 08 	mov  %o0, %g1                                  
40002ee0:	90 10 20 00 	clr  %o0                                       
  /*                                                                  
   * Eat any separators at start of the path.                         
   */                                                                 
  int stripped = 0;                                                   
  while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
40002ee4:	80 a2 40 08 	cmp  %o1, %o0                                  
40002ee8:	02 80 00 0c 	be  40002f18 <rtems_filesystem_prefix_separators+0x3c><== NEVER TAKEN
40002eec:	c4 08 40 08 	ldub  [ %g1 + %o0 ], %g2                       
40002ef0:	85 28 a0 18 	sll  %g2, 0x18, %g2                            
40002ef4:	85 38 a0 18 	sra  %g2, 0x18, %g2                            
40002ef8:	80 a0 a0 00 	cmp  %g2, 0                                    
40002efc:	02 80 00 07 	be  40002f18 <rtems_filesystem_prefix_separators+0x3c><== NEVER TAKEN
40002f00:	80 a0 a0 5c 	cmp  %g2, 0x5c                                 
40002f04:	22 bf ff f8 	be,a   40002ee4 <rtems_filesystem_prefix_separators+0x8><== NEVER TAKEN
40002f08:	90 02 20 01 	inc  %o0                                       <== NOT EXECUTED
40002f0c:	80 a0 a0 2f 	cmp  %g2, 0x2f                                 
40002f10:	22 bf ff f5 	be,a   40002ee4 <rtems_filesystem_prefix_separators+0x8>
40002f14:	90 02 20 01 	inc  %o0                                       
    pathname++;                                                       
    pathnamelen--;                                                    
    stripped++;                                                       
  }                                                                   
  return stripped;                                                    
}                                                                     
40002f18:	81 c3 e0 08 	retl                                           
                                                                      

40002c3c <rtems_io_lookup_name>: rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) {
40002c3c:	9d e3 bf 88 	save  %sp, -120, %sp                           <== NOT EXECUTED
  IMFS_jnode_t                      *the_jnode;                       
  rtems_filesystem_location_info_t   loc;                             
  int                                result;                          
  rtems_filesystem_node_types_t      node_type;                       
                                                                      
  result = rtems_filesystem_evaluate_path( name, strlen( name ), 0x00, &loc, true );
40002c40:	40 00 35 df 	call  400103bc <strlen>                        <== NOT EXECUTED
40002c44:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
40002c48:	a0 07 bf ec 	add  %fp, -20, %l0                             <== NOT EXECUTED
40002c4c:	92 10 00 08 	mov  %o0, %o1                                  <== NOT EXECUTED
40002c50:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
40002c54:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
40002c58:	96 10 00 10 	mov  %l0, %o3                                  <== NOT EXECUTED
40002c5c:	40 00 00 ff 	call  40003058 <rtems_filesystem_evaluate_path><== NOT EXECUTED
40002c60:	98 10 20 01 	mov  1, %o4                                    <== NOT EXECUTED
  the_jnode = loc.node_access;                                        
                                                                      
  if ( !loc.ops->node_type_h ) {                                      
40002c64:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          <== NOT EXECUTED
  IMFS_jnode_t                      *the_jnode;                       
  rtems_filesystem_location_info_t   loc;                             
  int                                result;                          
  rtems_filesystem_node_types_t      node_type;                       
                                                                      
  result = rtems_filesystem_evaluate_path( name, strlen( name ), 0x00, &loc, true );
40002c68:	a2 10 00 08 	mov  %o0, %l1                                  <== NOT EXECUTED
  the_jnode = loc.node_access;                                        
                                                                      
  if ( !loc.ops->node_type_h ) {                                      
40002c6c:	c2 00 a0 10 	ld  [ %g2 + 0x10 ], %g1                        <== NOT EXECUTED
40002c70:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40002c74:	12 80 00 0e 	bne  40002cac <rtems_io_lookup_name+0x70>      <== NOT EXECUTED
40002c78:	e4 07 bf ec 	ld  [ %fp + -20 ], %l2                         <== NOT EXECUTED
    rtems_filesystem_freenode( &loc );                                
40002c7c:	c2 00 a0 1c 	ld  [ %g2 + 0x1c ], %g1                        <== NOT EXECUTED
40002c80:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40002c84:	02 80 00 04 	be  40002c94 <rtems_io_lookup_name+0x58>       <== NOT EXECUTED
40002c88:	01 00 00 00 	nop                                            <== NOT EXECUTED
40002c8c:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40002c90:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
40002c94:	40 00 32 12 	call  4000f4dc <__errno>                       <== NOT EXECUTED
40002c98:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
40002c9c:	82 10 20 86 	mov  0x86, %g1                                 <== NOT EXECUTED
40002ca0:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
40002ca4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40002ca8:	81 e8 00 00 	restore                                        <== NOT EXECUTED
  }                                                                   
                                                                      
  node_type = (*loc.ops->node_type_h)( &loc );                        
40002cac:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40002cb0:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
                                                                      
  if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) {      
40002cb4:	80 a2 20 02 	cmp  %o0, 2                                    <== NOT EXECUTED
40002cb8:	12 80 00 05 	bne  40002ccc <rtems_io_lookup_name+0x90>      <== NOT EXECUTED
40002cbc:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          <== NOT EXECUTED
40002cc0:	80 a4 60 00 	cmp  %l1, 0                                    <== NOT EXECUTED
40002cc4:	22 80 00 0d 	be,a   40002cf8 <rtems_io_lookup_name+0xbc>    <== NOT EXECUTED
40002cc8:	f0 26 40 00 	st  %i0, [ %i1 ]                               <== NOT EXECUTED
    rtems_filesystem_freenode( &loc );                                
40002ccc:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40002cd0:	02 80 00 1c 	be  40002d40 <rtems_io_lookup_name+0x104>      <== NOT EXECUTED
40002cd4:	01 00 00 00 	nop                                            <== NOT EXECUTED
40002cd8:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        <== NOT EXECUTED
40002cdc:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40002ce0:	02 80 00 18 	be  40002d40 <rtems_io_lookup_name+0x104>      <== NOT EXECUTED
40002ce4:	01 00 00 00 	nop                                            <== NOT EXECUTED
40002ce8:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40002cec:	90 07 bf ec 	add  %fp, -20, %o0                             <== NOT EXECUTED
  device_info->device_name        = (char *) name;                    
  device_info->device_name_length = strlen( name );                   
  device_info->major              = the_jnode->info.device.major;     
  device_info->minor              = the_jnode->info.device.minor;     
                                                                      
  rtems_filesystem_freenode( &loc );                                  
40002cf0:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40002cf4:	91 e8 20 0d 	restore  %g0, 0xd, %o0                         <== NOT EXECUTED
    rtems_filesystem_freenode( &loc );                                
    return RTEMS_UNSATISFIED;                                         
  }                                                                   
                                                                      
  device_info->device_name        = (char *) name;                    
  device_info->device_name_length = strlen( name );                   
40002cf8:	40 00 35 b1 	call  400103bc <strlen>                        <== NOT EXECUTED
40002cfc:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
40002d00:	d0 26 60 04 	st  %o0, [ %i1 + 4 ]                           <== NOT EXECUTED
  device_info->major              = the_jnode->info.device.major;     
40002d04:	c4 04 a0 50 	ld  [ %l2 + 0x50 ], %g2                        <== NOT EXECUTED
  device_info->minor              = the_jnode->info.device.minor;     
                                                                      
  rtems_filesystem_freenode( &loc );                                  
40002d08:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          <== NOT EXECUTED
    return RTEMS_UNSATISFIED;                                         
  }                                                                   
                                                                      
  device_info->device_name        = (char *) name;                    
  device_info->device_name_length = strlen( name );                   
  device_info->major              = the_jnode->info.device.major;     
40002d0c:	c4 26 60 08 	st  %g2, [ %i1 + 8 ]                           <== NOT EXECUTED
  device_info->minor              = the_jnode->info.device.minor;     
40002d10:	c4 04 a0 54 	ld  [ %l2 + 0x54 ], %g2                        <== NOT EXECUTED
                                                                      
  rtems_filesystem_freenode( &loc );                                  
40002d14:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40002d18:	02 80 00 0c 	be  40002d48 <rtems_io_lookup_name+0x10c>      <== NOT EXECUTED
40002d1c:	c4 26 60 0c 	st  %g2, [ %i1 + 0xc ]                         <== NOT EXECUTED
40002d20:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        <== NOT EXECUTED
40002d24:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40002d28:	02 80 00 08 	be  40002d48 <rtems_io_lookup_name+0x10c>      <== NOT EXECUTED
40002d2c:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
40002d30:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40002d34:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
40002d38:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40002d3c:	81 e8 00 00 	restore                                        <== NOT EXECUTED
40002d40:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40002d44:	91 e8 20 0d 	restore  %g0, 0xd, %o0                         <== NOT EXECUTED
40002d48:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
40002d4c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40002d50:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

400093ec <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) {
400093ec:	9d e3 bf a0 	save  %sp, -96, %sp                            
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
400093f0:	80 a6 20 00 	cmp  %i0, 0                                    
400093f4:	02 80 00 1d 	be  40009468 <rtems_iterate_over_all_threads+0x7c><== NEVER TAKEN
400093f8:	21 10 00 af 	sethi  %hi(0x4002bc00), %l0                    
400093fc:	a0 14 22 44 	or  %l0, 0x244, %l0	! 4002be44 <_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) 
40009400:	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 ] )                   
40009404:	c2 04 00 00 	ld  [ %l0 ], %g1                               
40009408:	80 a0 60 00 	cmp  %g1, 0                                    
4000940c:	22 80 00 14 	be,a   4000945c <rtems_iterate_over_all_threads+0x70>
40009410:	a0 04 20 04 	add  %l0, 4, %l0                               
      continue;                                                       
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
40009414:	e4 00 60 04 	ld  [ %g1 + 4 ], %l2                           
    if ( !information )                                               
40009418:	80 a4 a0 00 	cmp  %l2, 0                                    
4000941c:	12 80 00 0b 	bne  40009448 <rtems_iterate_over_all_threads+0x5c>
40009420:	a2 10 20 01 	mov  1, %l1                                    
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
40009424:	10 80 00 0e 	b  4000945c <rtems_iterate_over_all_threads+0x70>
40009428:	a0 04 20 04 	add  %l0, 4, %l0                               
      the_thread = (Thread_Control *)information->local_table[ i ];   
4000942c:	c2 04 a0 1c 	ld  [ %l2 + 0x1c ], %g1                        
40009430:	d0 00 40 02 	ld  [ %g1 + %g2 ], %o0                         
                                                                      
      if ( !the_thread )                                              
40009434:	80 a2 20 00 	cmp  %o0, 0                                    
40009438:	02 80 00 04 	be  40009448 <rtems_iterate_over_all_threads+0x5c><== NEVER TAKEN
4000943c:	a2 04 60 01 	inc  %l1                                       
	continue;                                                            
                                                                      
      (*routine)(the_thread);                                         
40009440:	9f c6 00 00 	call  %i0                                      
40009444:	01 00 00 00 	nop                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( !information )                                               
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
40009448:	c2 14 a0 10 	lduh  [ %l2 + 0x10 ], %g1                      
4000944c:	80 a4 40 01 	cmp  %l1, %g1                                  
40009450:	08 bf ff f7 	bleu  4000942c <rtems_iterate_over_all_threads+0x40>
40009454:	85 2c 60 02 	sll  %l1, 2, %g2                               
40009458:	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++ ) {
4000945c:	80 a4 00 13 	cmp  %l0, %l3                                  
40009460:	32 bf ff ea 	bne,a   40009408 <rtems_iterate_over_all_threads+0x1c>
40009464:	c2 04 00 00 	ld  [ %l0 ], %g1                               
40009468:	81 c7 e0 08 	ret                                            
4000946c:	81 e8 00 00 	restore                                        
                                                                      

4000b568 <rtems_libio_allocate>: * This routine searches the IOP Table for an unused entry. If it * finds one, it returns it. Otherwise, it returns NULL. */ rtems_libio_t *rtems_libio_allocate( void ) {
4000b568:	9d e3 bf 98 	save  %sp, -104, %sp                           
rtems_status_code rtems_libio_set_private_env(void);                  
rtems_status_code rtems_libio_share_private_env(rtems_id task_id) ;   
                                                                      
static inline void rtems_libio_lock( void )                           
{                                                                     
  rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
4000b56c:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
4000b570:	d0 00 63 a4 	ld  [ %g1 + 0x3a4 ], %o0	! 4001d7a4 <rtems_libio_semaphore>
4000b574:	92 10 20 00 	clr  %o1                                       
4000b578:	7f ff eb dd 	call  400064ec <rtems_semaphore_obtain>        
4000b57c:	94 10 20 00 	clr  %o2                                       
  rtems_status_code rc;                                               
  rtems_id sema;                                                      
                                                                      
  rtems_libio_lock();                                                 
                                                                      
  if (rtems_libio_iop_freelist) {                                     
4000b580:	21 10 00 75 	sethi  %hi(0x4001d400), %l0                    
4000b584:	c2 04 23 a0 	ld  [ %l0 + 0x3a0 ], %g1	! 4001d7a0 <rtems_libio_iop_freelist>
4000b588:	80 a0 60 00 	cmp  %g1, 0                                    
4000b58c:	02 80 00 26 	be  4000b624 <rtems_libio_allocate+0xbc>       
4000b590:	b0 10 20 00 	clr  %i0                                       
    rc = rtems_semaphore_create(                                      
4000b594:	05 10 00 75 	sethi  %hi(0x4001d400), %g2                    
4000b598:	c4 00 a3 9c 	ld  [ %g2 + 0x39c ], %g2	! 4001d79c <rtems_libio_iops>
4000b59c:	92 10 20 01 	mov  1, %o1                                    
4000b5a0:	82 20 40 02 	sub  %g1, %g2, %g1                             
4000b5a4:	83 38 60 03 	sra  %g1, 3, %g1                               
4000b5a8:	87 28 60 06 	sll  %g1, 6, %g3                               
4000b5ac:	85 28 60 03 	sll  %g1, 3, %g2                               
4000b5b0:	84 20 c0 02 	sub  %g3, %g2, %g2                             
4000b5b4:	87 28 a0 06 	sll  %g2, 6, %g3                               
4000b5b8:	84 00 80 03 	add  %g2, %g3, %g2                             
4000b5bc:	84 00 80 01 	add  %g2, %g1, %g2                             
4000b5c0:	87 28 a0 0f 	sll  %g2, 0xf, %g3                             
4000b5c4:	84 20 c0 02 	sub  %g3, %g2, %g2                             
4000b5c8:	07 13 10 92 	sethi  %hi(0x4c424800), %g3                    
4000b5cc:	85 28 a0 03 	sll  %g2, 3, %g2                               
4000b5d0:	86 10 e1 00 	or  %g3, 0x100, %g3                            
4000b5d4:	82 00 80 01 	add  %g2, %g1, %g1                             
4000b5d8:	94 10 20 54 	mov  0x54, %o2                                 
4000b5dc:	96 10 20 00 	clr  %o3                                       
4000b5e0:	90 10 40 03 	or  %g1, %g3, %o0                              
4000b5e4:	7f ff eb 20 	call  40006264 <rtems_semaphore_create>        
4000b5e8:	98 07 bf fc 	add  %fp, -4, %o4                              
      1,                                                              
      RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
      0,                                                              
      &sema                                                           
    );                                                                
    if (rc != RTEMS_SUCCESSFUL)                                       
4000b5ec:	80 a2 20 00 	cmp  %o0, 0                                    
4000b5f0:	32 80 00 0d 	bne,a   4000b624 <rtems_libio_allocate+0xbc>   <== NEVER TAKEN
4000b5f4:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
      goto failed;                                                    
    iop = rtems_libio_iop_freelist;                                   
4000b5f8:	f0 04 23 a0 	ld  [ %l0 + 0x3a0 ], %i0                       
    next = iop->data1;                                                
    (void) memset( iop, 0, sizeof(rtems_libio_t) );                   
4000b5fc:	92 10 20 00 	clr  %o1                                       
      &sema                                                           
    );                                                                
    if (rc != RTEMS_SUCCESSFUL)                                       
      goto failed;                                                    
    iop = rtems_libio_iop_freelist;                                   
    next = iop->data1;                                                
4000b600:	e2 06 20 38 	ld  [ %i0 + 0x38 ], %l1                        
    (void) memset( iop, 0, sizeof(rtems_libio_t) );                   
4000b604:	90 10 00 18 	mov  %i0, %o0                                  
4000b608:	40 00 12 30 	call  4000fec8 <memset>                        
4000b60c:	94 10 20 48 	mov  0x48, %o2                                 
    iop->flags = LIBIO_FLAGS_OPEN;                                    
    iop->sem = sema;                                                  
4000b610:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
    rtems_libio_iop_freelist = next;                                  
4000b614:	e2 24 23 a0 	st  %l1, [ %l0 + 0x3a0 ]                       
      goto failed;                                                    
    iop = rtems_libio_iop_freelist;                                   
    next = iop->data1;                                                
    (void) memset( iop, 0, sizeof(rtems_libio_t) );                   
    iop->flags = LIBIO_FLAGS_OPEN;                                    
    iop->sem = sema;                                                  
4000b618:	c2 26 20 30 	st  %g1, [ %i0 + 0x30 ]                        
    if (rc != RTEMS_SUCCESSFUL)                                       
      goto failed;                                                    
    iop = rtems_libio_iop_freelist;                                   
    next = iop->data1;                                                
    (void) memset( iop, 0, sizeof(rtems_libio_t) );                   
    iop->flags = LIBIO_FLAGS_OPEN;                                    
4000b61c:	82 10 21 00 	mov  0x100, %g1                                
4000b620:	c2 26 20 18 	st  %g1, [ %i0 + 0x18 ]                        
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
4000b624:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
4000b628:	7f ff eb f8 	call  40006608 <rtems_semaphore_release>       
4000b62c:	d0 00 63 a4 	ld  [ %g1 + 0x3a4 ], %o0	! 4001d7a4 <rtems_libio_semaphore>
  iop = 0;                                                            
                                                                      
done:                                                                 
  rtems_libio_unlock();                                               
  return iop;                                                         
}                                                                     
4000b630:	81 c7 e0 08 	ret                                            
4000b634:	81 e8 00 00 	restore                                        
                                                                      

4000b508 <rtems_libio_free>: */ void rtems_libio_free( rtems_libio_t *iop ) {
4000b508:	9d e3 bf a0 	save  %sp, -96, %sp                            
rtems_status_code rtems_libio_set_private_env(void);                  
rtems_status_code rtems_libio_share_private_env(rtems_id task_id) ;   
                                                                      
static inline void rtems_libio_lock( void )                           
{                                                                     
  rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
4000b50c:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
4000b510:	d0 00 63 a4 	ld  [ %g1 + 0x3a4 ], %o0	! 4001d7a4 <rtems_libio_semaphore>
4000b514:	92 10 20 00 	clr  %o1                                       
4000b518:	7f ff eb f5 	call  400064ec <rtems_semaphore_obtain>        
4000b51c:	94 10 20 00 	clr  %o2                                       
  rtems_libio_lock();                                                 
                                                                      
    if (iop->sem)                                                     
4000b520:	d0 06 20 30 	ld  [ %i0 + 0x30 ], %o0                        
4000b524:	80 a2 20 00 	cmp  %o0, 0                                    
4000b528:	02 80 00 04 	be  4000b538 <rtems_libio_free+0x30>           <== NEVER TAKEN
4000b52c:	a0 10 00 18 	mov  %i0, %l0                                  
      rtems_semaphore_delete(iop->sem);                               
4000b530:	7f ff eb c1 	call  40006434 <rtems_semaphore_delete>        
4000b534:	01 00 00 00 	nop                                            
                                                                      
    iop->flags &= ~LIBIO_FLAGS_OPEN;                                  
4000b538:	c4 04 20 18 	ld  [ %l0 + 0x18 ], %g2                        
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
4000b53c:	07 10 00 75 	sethi  %hi(0x4001d400), %g3                    
    iop->data1 = rtems_libio_iop_freelist;                            
4000b540:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
4000b544:	f0 00 e3 a4 	ld  [ %g3 + 0x3a4 ], %i0                       
4000b548:	c6 00 63 a0 	ld  [ %g1 + 0x3a0 ], %g3                       
    rtems_libio_iop_freelist = iop;                                   
4000b54c:	e0 20 63 a0 	st  %l0, [ %g1 + 0x3a0 ]                       
  rtems_libio_lock();                                                 
                                                                      
    if (iop->sem)                                                     
      rtems_semaphore_delete(iop->sem);                               
                                                                      
    iop->flags &= ~LIBIO_FLAGS_OPEN;                                  
4000b550:	82 08 be ff 	and  %g2, -257, %g1                            
    iop->data1 = rtems_libio_iop_freelist;                            
4000b554:	c6 24 20 38 	st  %g3, [ %l0 + 0x38 ]                        
  rtems_libio_lock();                                                 
                                                                      
    if (iop->sem)                                                     
      rtems_semaphore_delete(iop->sem);                               
                                                                      
    iop->flags &= ~LIBIO_FLAGS_OPEN;                                  
4000b558:	c2 24 20 18 	st  %g1, [ %l0 + 0x18 ]                        
4000b55c:	7f ff ec 2b 	call  40006608 <rtems_semaphore_release>       
4000b560:	81 e8 00 00 	restore                                        
                                                                      

40003100 <rtems_libio_init>: * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) {
40003100:	9d e3 bf a0 	save  %sp, -96, %sp                            
    rtems_status_code rc;                                             
    uint32_t i;                                                       
    rtems_libio_t *iop;                                               
                                                                      
    if (rtems_libio_number_iops > 0)                                  
40003104:	21 10 00 73 	sethi  %hi(0x4001cc00), %l0                    
40003108:	d0 04 22 04 	ld  [ %l0 + 0x204 ], %o0	! 4001ce04 <rtems_libio_number_iops>
4000310c:	80 a2 20 00 	cmp  %o0, 0                                    
40003110:	22 80 00 18 	be,a   40003170 <rtems_libio_init+0x70>        <== NEVER TAKEN
40003114:	11 13 10 92 	sethi  %hi(0x4c424800), %o0                    <== NOT EXECUTED
    {                                                                 
        rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
40003118:	40 00 1f d3 	call  4000b064 <calloc>                        
4000311c:	92 10 20 48 	mov  0x48, %o1                                 
40003120:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
                                                    sizeof(rtems_libio_t));
        if (rtems_libio_iops == NULL)                                 
40003124:	80 a2 20 00 	cmp  %o0, 0                                    
40003128:	12 80 00 04 	bne  40003138 <rtems_libio_init+0x38>          <== ALWAYS TAKEN
4000312c:	d0 20 63 9c 	st  %o0, [ %g1 + 0x39c ]                       
            rtems_fatal_error_occurred(RTEMS_NO_MEMORY);              
40003130:	10 80 00 1a 	b  40003198 <rtems_libio_init+0x98>            <== NOT EXECUTED
40003134:	90 10 20 1a 	mov  0x1a, %o0                                 <== NOT EXECUTED
                                                                      
        iop = rtems_libio_iop_freelist = rtems_libio_iops;            
40003138:	05 10 00 75 	sethi  %hi(0x4001d400), %g2                    
        for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)  
4000313c:	c8 04 22 04 	ld  [ %l0 + 0x204 ], %g4                       
        rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
                                                    sizeof(rtems_libio_t));
        if (rtems_libio_iops == NULL)                                 
            rtems_fatal_error_occurred(RTEMS_NO_MEMORY);              
                                                                      
        iop = rtems_libio_iop_freelist = rtems_libio_iops;            
40003140:	d0 20 a3 a0 	st  %o0, [ %g2 + 0x3a0 ]                       
        for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)  
40003144:	82 10 00 08 	mov  %o0, %g1                                  
40003148:	10 80 00 03 	b  40003154 <rtems_libio_init+0x54>            
4000314c:	84 10 20 00 	clr  %g2                                       
          iop->data1 = iop + 1;                                       
40003150:	c2 20 7f f0 	st  %g1, [ %g1 + -16 ]                         
                                                    sizeof(rtems_libio_t));
        if (rtems_libio_iops == NULL)                                 
            rtems_fatal_error_occurred(RTEMS_NO_MEMORY);              
                                                                      
        iop = rtems_libio_iop_freelist = rtems_libio_iops;            
        for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)  
40003154:	84 00 a0 01 	inc  %g2                                       
          iop->data1 = iop + 1;                                       
40003158:	86 10 00 01 	mov  %g1, %g3                                  
                                                    sizeof(rtems_libio_t));
        if (rtems_libio_iops == NULL)                                 
            rtems_fatal_error_occurred(RTEMS_NO_MEMORY);              
                                                                      
        iop = rtems_libio_iop_freelist = rtems_libio_iops;            
        for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)  
4000315c:	80 a0 80 04 	cmp  %g2, %g4                                  
40003160:	0a bf ff fc 	bcs  40003150 <rtems_libio_init+0x50>          
40003164:	82 00 60 48 	add  %g1, 0x48, %g1                            
          iop->data1 = iop + 1;                                       
        iop->data1 = NULL;                                            
40003168:	c0 20 e0 38 	clr  [ %g3 + 0x38 ]                            
  /*                                                                  
   *  Create the binary semaphore used to provide mutual exclusion    
   *  on the IOP Table.                                               
   */                                                                 
                                                                      
  rc = rtems_semaphore_create(                                        
4000316c:	11 13 10 92 	sethi  %hi(0x4c424800), %o0                    
40003170:	92 10 20 01 	mov  1, %o1                                    
40003174:	90 12 21 4f 	or  %o0, 0x14f, %o0                            
40003178:	94 10 20 54 	mov  0x54, %o2                                 
4000317c:	96 10 20 00 	clr  %o3                                       
40003180:	19 10 00 75 	sethi  %hi(0x4001d400), %o4                    
40003184:	40 00 0c 38 	call  40006264 <rtems_semaphore_create>        
40003188:	98 13 23 a4 	or  %o4, 0x3a4, %o4	! 4001d7a4 <rtems_libio_semaphore>
    1,                                                                
    RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, 
    RTEMS_NO_PRIORITY,                                                
    &rtems_libio_semaphore                                            
  );                                                                  
  if ( rc != RTEMS_SUCCESSFUL )                                       
4000318c:	80 a2 20 00 	cmp  %o0, 0                                    
40003190:	02 80 00 04 	be  400031a0 <rtems_libio_init+0xa0>           <== ALWAYS TAKEN
40003194:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
    rtems_fatal_error_occurred( rc );                                 
40003198:	40 00 0e 7e 	call  40006b90 <rtems_fatal_error_occurred>    <== NOT EXECUTED
4000319c:	01 00 00 00 	nop                                            <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Initialize the base file system infrastructure.                 
   */                                                                 
                                                                      
  if (rtems_fs_init_helper)                                           
400031a0:	c2 00 62 00 	ld  [ %g1 + 0x200 ], %g1                       
400031a4:	80 a0 60 00 	cmp  %g1, 0                                    
400031a8:	02 80 00 04 	be  400031b8 <rtems_libio_init+0xb8>           <== NEVER TAKEN
400031ac:	01 00 00 00 	nop                                            
     (* rtems_fs_init_helper)();                                      
400031b0:	9f c0 40 00 	call  %g1                                      
400031b4:	01 00 00 00 	nop                                            
400031b8:	81 c7 e0 08 	ret                                            
400031bc:	81 e8 00 00 	restore                                        
                                                                      

40004d8c <rtems_libio_set_private_env>: rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) {
40004d8c:	9d e3 bf 88 	save  %sp, -120, %sp                           
  rtems_status_code 					sc;                                          
  rtems_id          					task_id;                                     
  rtems_filesystem_location_info_t		loc;                              
                                                                      
  sc=rtems_task_ident(RTEMS_SELF,0,&task_id);                         
40004d90:	90 10 20 00 	clr  %o0                                       
40004d94:	92 10 20 00 	clr  %o1                                       
40004d98:	40 00 0b 70 	call  40007b58 <rtems_task_ident>              
40004d9c:	94 07 bf fc 	add  %fp, -4, %o2                              
  if (sc != RTEMS_SUCCESSFUL) return sc;                              
40004da0:	b0 92 20 00 	orcc  %o0, 0, %i0                              
40004da4:	12 80 00 19 	bne  40004e08 <rtems_libio_set_private_env+0x7c><== NEVER TAKEN
40004da8:	21 10 00 7e 	sethi  %hi(0x4001f800), %l0                    
                                                                      
  /* Only for the first time a malloc is necesary */                  
  if (rtems_current_user_env==&rtems_global_user_env) {               
40004dac:	c4 04 23 50 	ld  [ %l0 + 0x350 ], %g2	! 4001fb50 <rtems_current_user_env>
40004db0:	03 10 00 81 	sethi  %hi(0x40020400), %g1                    
40004db4:	82 10 60 40 	or  %g1, 0x40, %g1	! 40020440 <rtems_global_user_env>
40004db8:	80 a0 80 01 	cmp  %g2, %g1                                  
40004dbc:	12 80 00 15 	bne  40004e10 <rtems_libio_set_private_env+0x84>
40004dc0:	a4 14 23 50 	or  %l0, 0x350, %l2                            
   rtems_user_env_t	*tmp = malloc(sizeof(rtems_user_env_t));          
40004dc4:	7f ff fc db 	call  40004130 <malloc>                        
40004dc8:	90 10 20 48 	mov  0x48, %o0                                 
   if (!tmp)                                                          
40004dcc:	a2 92 20 00 	orcc  %o0, 0, %l1                              
40004dd0:	12 80 00 04 	bne  40004de0 <rtems_libio_set_private_env+0x54><== ALWAYS TAKEN
40004dd4:	92 10 00 12 	mov  %l2, %o1                                  
40004dd8:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40004ddc:	91 e8 20 1a 	restore  %g0, 0x1a, %o0                        <== NOT EXECUTED
                                                                      
#ifdef HAVE_USERENV_REFCNT                                            
   tmp->refcnt = 1;                                                   
#endif                                                                
                                                                      
   sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,(void(*)(void *))free_user_env);
40004de0:	90 10 20 00 	clr  %o0                                       
40004de4:	15 10 00 13 	sethi  %hi(0x40004c00), %o2                    
40004de8:	40 00 0b b2 	call  40007cb0 <rtems_task_variable_add>       
40004dec:	94 12 a0 58 	or  %o2, 0x58, %o2	! 40004c58 <free_user_env>  
   if (sc != RTEMS_SUCCESSFUL) {                                      
40004df0:	82 92 20 00 	orcc  %o0, 0, %g1                              
40004df4:	22 80 00 07 	be,a   40004e10 <rtems_libio_set_private_env+0x84><== ALWAYS TAKEN
40004df8:	e2 24 23 50 	st  %l1, [ %l0 + 0x350 ]                       
	 /* don't use free_user_env because the pathlocs are                 
	  * not initialized yet                                              
	  */                                                                 
     free(tmp);                                                       
40004dfc:	90 10 00 11 	mov  %l1, %o0                                  <== NOT EXECUTED
40004e00:	7f ff fb 41 	call  40003b04 <free>                          <== NOT EXECUTED
40004e04:	b0 10 00 01 	mov  %g1, %i0                                  <== NOT EXECUTED
     return sc;                                                       
40004e08:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40004e0c:	81 e8 00 00 	restore                                        <== NOT EXECUTED
   }                                                                  
   rtems_current_user_env = tmp;                                      
  };                                                                  
                                                                      
  *rtems_current_user_env = rtems_global_user_env; /* get the global values*/
40004e10:	23 10 00 7e 	sethi  %hi(0x4001f800), %l1                    
40004e14:	e0 04 63 50 	ld  [ %l1 + 0x350 ], %l0	! 4001fb50 <rtems_current_user_env>
40004e18:	94 10 20 48 	mov  0x48, %o2                                 
40004e1c:	90 10 00 10 	mov  %l0, %o0                                  
40004e20:	13 10 00 81 	sethi  %hi(0x40020400), %o1                    
40004e24:	40 00 34 69 	call  40011fc8 <memcpy>                        
40004e28:	92 12 60 40 	or  %o1, 0x40, %o1	! 40020440 <rtems_global_user_env>
  rtems_current_user_env->task_id=task_id;         /* mark the local values*/
                                                                      
  /* get a clean root */                                              
  rtems_filesystem_root    = THE_ROOT_FS_LOC;                         
40004e2c:	03 10 00 81 	sethi  %hi(0x40020400), %g1                    
40004e30:	d2 00 60 28 	ld  [ %g1 + 0x28 ], %o1	! 40020428 <rtems_filesystem_mount_table_control>
   }                                                                  
   rtems_current_user_env = tmp;                                      
  };                                                                  
                                                                      
  *rtems_current_user_env = rtems_global_user_env; /* get the global values*/
  rtems_current_user_env->task_id=task_id;         /* mark the local values*/
40004e34:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
                                                                      
  /* get a clean root */                                              
  rtems_filesystem_root    = THE_ROOT_FS_LOC;                         
40004e38:	92 02 60 1c 	add  %o1, 0x1c, %o1                            
   }                                                                  
   rtems_current_user_env = tmp;                                      
  };                                                                  
                                                                      
  *rtems_current_user_env = rtems_global_user_env; /* get the global values*/
  rtems_current_user_env->task_id=task_id;         /* mark the local values*/
40004e3c:	c2 24 00 00 	st  %g1, [ %l0 ]                               
                                                                      
  /* get a clean root */                                              
  rtems_filesystem_root    = THE_ROOT_FS_LOC;                         
40004e40:	90 04 20 18 	add  %l0, 0x18, %o0                            
40004e44:	40 00 34 61 	call  40011fc8 <memcpy>                        
40004e48:	94 10 20 14 	mov  0x14, %o2                                 
   * code we must _not_ free the original locs because                
   * what we are trying to do here is forking off                     
   * clones.                                                          
   */                                                                 
                                                                      
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
40004e4c:	a0 07 bf e8 	add  %fp, -24, %l0                             
40004e50:	98 10 20 00 	clr  %o4                                       
40004e54:	96 10 00 10 	mov  %l0, %o3                                  
40004e58:	25 10 00 7a 	sethi  %hi(0x4001e800), %l2                    
40004e5c:	92 10 20 01 	mov  1, %o1                                    
40004e60:	94 10 20 00 	clr  %o2                                       
40004e64:	7f ff fa fe 	call  40003a5c <rtems_filesystem_evaluate_path>
40004e68:	90 14 a1 50 	or  %l2, 0x150, %o0                            
  rtems_filesystem_root    = loc;                                     
40004e6c:	d0 04 63 50 	ld  [ %l1 + 0x350 ], %o0                       
40004e70:	92 10 00 10 	mov  %l0, %o1                                  
40004e74:	94 10 20 14 	mov  0x14, %o2                                 
40004e78:	40 00 34 54 	call  40011fc8 <memcpy>                        
40004e7c:	90 02 20 18 	add  %o0, 0x18, %o0                            
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
40004e80:	92 10 20 01 	mov  1, %o1                                    
40004e84:	94 10 20 00 	clr  %o2                                       
40004e88:	90 14 a1 50 	or  %l2, 0x150, %o0                            
40004e8c:	96 10 00 10 	mov  %l0, %o3                                  
40004e90:	7f ff fa f3 	call  40003a5c <rtems_filesystem_evaluate_path>
40004e94:	98 10 20 00 	clr  %o4                                       
  rtems_filesystem_current = loc;                                     
40004e98:	d0 04 63 50 	ld  [ %l1 + 0x350 ], %o0                       
40004e9c:	92 10 00 10 	mov  %l0, %o1                                  
40004ea0:	90 02 20 04 	add  %o0, 4, %o0                               
40004ea4:	40 00 34 49 	call  40011fc8 <memcpy>                        
40004ea8:	94 10 20 14 	mov  0x14, %o2                                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
40004eac:	81 c7 e0 08 	ret                                            
40004eb0:	81 e8 00 00 	restore                                        
                                                                      

40004cd0 <rtems_libio_share_private_env>: * b) mutex access to rtems_filesystem_current, rtems_filesytem_root * while changing any of those (chdir(), chroot()). */ #ifndef HAVE_USERENV_REFCNT rtems_status_code rtems_libio_share_private_env(rtems_id task_id) {
40004cd0:	9d e3 bf 98 	save  %sp, -104, %sp                           <== NOT EXECUTED
  rtems_status_code  sc;                                              
  rtems_user_env_t * shared_user_env;                                 
  rtems_id           current_task_id;                                 
                                                                      
  sc=rtems_task_ident(RTEMS_SELF,0,¤t_task_id);                 
40004cd4:	90 10 20 00 	clr  %o0                                       <== NOT EXECUTED
40004cd8:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
40004cdc:	94 07 bf f8 	add  %fp, -8, %o2                              <== NOT EXECUTED
40004ce0:	40 00 0b 9e 	call  40007b58 <rtems_task_ident>              <== NOT EXECUTED
40004ce4:	a2 10 00 18 	mov  %i0, %l1                                  <== NOT EXECUTED
  if (sc != RTEMS_SUCCESSFUL) return sc;                              
40004ce8:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
40004cec:	12 80 00 26 	bne  40004d84 <rtems_libio_share_private_env+0xb4><== NOT EXECUTED
40004cf0:	82 10 00 08 	mov  %o0, %g1                                  <== NOT EXECUTED
                                                                      
  if (rtems_current_user_env->task_id==current_task_id) {             
40004cf4:	13 10 00 7e 	sethi  %hi(0x4001f800), %o1                    <== NOT EXECUTED
40004cf8:	e0 02 63 50 	ld  [ %o1 + 0x350 ], %l0	! 4001fb50 <rtems_current_user_env><== NOT EXECUTED
40004cfc:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          <== NOT EXECUTED
40004d00:	c4 04 00 00 	ld  [ %l0 ], %g2                               <== NOT EXECUTED
40004d04:	80 a0 80 01 	cmp  %g2, %g1                                  <== NOT EXECUTED
40004d08:	12 80 00 09 	bne  40004d2c <rtems_libio_share_private_env+0x5c><== NOT EXECUTED
40004d0c:	92 12 63 50 	or  %o1, 0x350, %o1                            <== NOT EXECUTED
   /* kill the current user env & task_var*/                          
	rtems_user_env_t 	*tmp = rtems_current_user_env;                     
   sc = rtems_task_variable_delete(RTEMS_SELF,(void*)&rtems_current_user_env);
40004d10:	40 00 0c 14 	call  40007d60 <rtems_task_variable_delete>    <== NOT EXECUTED
40004d14:	01 00 00 00 	nop                                            <== NOT EXECUTED
   if (sc != RTEMS_SUCCESSFUL) return sc;                             
40004d18:	82 92 20 00 	orcc  %o0, 0, %g1                              <== NOT EXECUTED
40004d1c:	12 80 00 1a 	bne  40004d84 <rtems_libio_share_private_env+0xb4><== NOT EXECUTED
40004d20:	01 00 00 00 	nop                                            <== NOT EXECUTED
   free_user_env(tmp);                                                
40004d24:	7f ff ff cd 	call  40004c58 <free_user_env>                 <== NOT EXECUTED
40004d28:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
  };                                                                  
                                                                      
  /* AT THIS POINT, rtems_current_user_env is DANGLING */             
                                                                      
  sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env,
40004d2c:	90 10 00 11 	mov  %l1, %o0                                  <== NOT EXECUTED
40004d30:	21 10 00 7e 	sethi  %hi(0x4001f800), %l0                    <== NOT EXECUTED
40004d34:	94 07 bf fc 	add  %fp, -4, %o2                              <== NOT EXECUTED
40004d38:	a2 14 23 50 	or  %l0, 0x350, %l1                            <== NOT EXECUTED
40004d3c:	40 00 0c 2f 	call  40007df8 <rtems_task_variable_get>       <== NOT EXECUTED
40004d40:	92 10 00 11 	mov  %l1, %o1                                  <== NOT EXECUTED
		                       (void*)&shared_user_env       );             
  if (sc != RTEMS_SUCCESSFUL)                                         
40004d44:	82 92 20 00 	orcc  %o0, 0, %g1                              <== NOT EXECUTED
40004d48:	12 80 00 0c 	bne  40004d78 <rtems_libio_share_private_env+0xa8><== NOT EXECUTED
40004d4c:	07 10 00 81 	sethi  %hi(0x40020400), %g3                    <== NOT EXECUTED
    goto bailout;                                                     
                                                                      
  sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env);
40004d50:	92 10 00 11 	mov  %l1, %o1                                  <== NOT EXECUTED
40004d54:	15 10 00 13 	sethi  %hi(0x40004c00), %o2                    <== NOT EXECUTED
40004d58:	40 00 0b d6 	call  40007cb0 <rtems_task_variable_add>       <== NOT EXECUTED
40004d5c:	94 12 a0 58 	or  %o2, 0x58, %o2	! 40004c58 <free_user_env>  <== NOT EXECUTED
  if (sc != RTEMS_SUCCESSFUL)                                         
40004d60:	82 92 20 00 	orcc  %o0, 0, %g1                              <== NOT EXECUTED
40004d64:	12 80 00 05 	bne  40004d78 <rtems_libio_share_private_env+0xa8><== NOT EXECUTED
40004d68:	07 10 00 81 	sethi  %hi(0x40020400), %g3                    <== NOT EXECUTED
    goto bailout;                                                     
                                                                      
  /* the current_user_env is the same pointer that remote env */      
  rtems_current_user_env = shared_user_env;                           
40004d6c:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          <== NOT EXECUTED
  /* increase the reference count */                                  
#ifdef HAVE_USERENV_REFCNT                                            
  rtems_current_user_env->refcnt++;                                   
#endif                                                                
                                                                      
  return RTEMS_SUCCESSFUL;                                            
40004d70:	10 80 00 05 	b  40004d84 <rtems_libio_share_private_env+0xb4><== NOT EXECUTED
40004d74:	c4 24 23 50 	st  %g2, [ %l0 + 0x350 ]                       <== NOT EXECUTED
                                                                      
bailout:                                                              
  /* fallback to the global env */                                    
  rtems_current_user_env = &rtems_global_user_env;                    
40004d78:	05 10 00 7e 	sethi  %hi(0x4001f800), %g2                    <== NOT EXECUTED
40004d7c:	86 10 e0 40 	or  %g3, 0x40, %g3                             <== NOT EXECUTED
40004d80:	c6 20 a3 50 	st  %g3, [ %g2 + 0x350 ]                       <== NOT EXECUTED
  return sc;                                                          
}                                                                     
40004d84:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40004d88:	91 e8 00 01 	restore  %g0, %g1, %o0                         <== NOT EXECUTED
                                                                      

4000b3bc <rtems_libio_to_fcntl_flags>: uint32_t flags ) { uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) {
4000b3bc:	84 0a 20 06 	and  %o0, 6, %g2                               
4000b3c0:	80 a0 a0 06 	cmp  %g2, 6                                    
4000b3c4:	02 80 00 07 	be  4000b3e0 <rtems_libio_to_fcntl_flags+0x24> <== NEVER TAKEN
4000b3c8:	82 10 20 02 	mov  2, %g1                                    
    fcntl_flags |= O_RDWR;                                            
  } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) {       
4000b3cc:	82 0a 20 02 	and  %o0, 2, %g1                               
4000b3d0:	80 a0 00 01 	cmp  %g0, %g1                                  
4000b3d4:	83 32 20 02 	srl  %o0, 2, %g1                               
4000b3d8:	84 60 3f ff 	subx  %g0, -1, %g2                             
4000b3dc:	82 08 80 01 	and  %g2, %g1, %g1                             
    fcntl_flags |= O_RDONLY;                                          
  } else if ( (flags & LIBIO_FLAGS_WRITE) == LIBIO_FLAGS_WRITE) {     
    fcntl_flags |= O_WRONLY;                                          
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_NO_DELAY) == LIBIO_FLAGS_NO_DELAY ) {     
4000b3e0:	80 8a 20 01 	btst  1, %o0                                   
4000b3e4:	02 80 00 04 	be  4000b3f4 <rtems_libio_to_fcntl_flags+0x38> 
4000b3e8:	80 8a 22 00 	btst  0x200, %o0                               
    fcntl_flags |= O_NONBLOCK;                                        
4000b3ec:	05 00 00 10 	sethi  %hi(0x4000), %g2                        
4000b3f0:	82 10 40 02 	or  %g1, %g2, %g1                              
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) {         
4000b3f4:	32 80 00 02 	bne,a   4000b3fc <rtems_libio_to_fcntl_flags+0x40>
4000b3f8:	82 10 60 08 	or  %g1, 8, %g1                                
    fcntl_flags |= O_APPEND;                                          
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) {         
4000b3fc:	80 8a 24 00 	btst  0x400, %o0                               
4000b400:	32 80 00 02 	bne,a   4000b408 <rtems_libio_to_fcntl_flags+0x4c>
4000b404:	82 10 62 00 	or  %g1, 0x200, %g1                            
    fcntl_flags |= O_CREAT;                                           
  }                                                                   
                                                                      
  return fcntl_flags;                                                 
}                                                                     
4000b408:	81 c3 e0 08 	retl                                           
4000b40c:	90 10 00 01 	mov  %g1, %o0                                  
                                                                      

40010d84 <rtems_memalign>: int rtems_memalign( void **pointer, size_t alignment, size_t size ) {
40010d84:	9d e3 bf a0 	save  %sp, -96, %sp                            
  void *return_this;                                                  
                                                                      
  /*                                                                  
   *  Parameter error checks                                          
   */                                                                 
  if ( !pointer )                                                     
40010d88:	a0 96 20 00 	orcc  %i0, 0, %l0                              
40010d8c:	02 80 00 20 	be  40010e0c <rtems_memalign+0x88>             
40010d90:	03 10 00 8f 	sethi  %hi(0x40023c00), %g1                    
  *pointer = NULL;                                                    
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
40010d94:	c2 00 63 b0 	ld  [ %g1 + 0x3b0 ], %g1	! 40023fb0 <_System_state_Current>
40010d98:	80 a0 60 03 	cmp  %g1, 3                                    
40010d9c:	12 80 00 07 	bne  40010db8 <rtems_memalign+0x34>            <== NEVER TAKEN
40010da0:	c0 24 00 00 	clr  [ %l0 ]                                   
40010da4:	7f ff cf 47 	call  40004ac0 <malloc_is_system_state_OK>     
40010da8:	01 00 00 00 	nop                                            
40010dac:	80 8a 20 ff 	btst  0xff, %o0                                
40010db0:	02 80 00 18 	be  40010e10 <rtems_memalign+0x8c>             <== NEVER TAKEN
40010db4:	b0 10 20 16 	mov  0x16, %i0                                 
                                                                      
  /*                                                                  
   *                                                                  
   *  If some free's have been deferred, then do them now.            
   */                                                                 
  malloc_deferred_frees_process();                                    
40010db8:	7f ff cf 5b 	call  40004b24 <malloc_deferred_frees_process> 
40010dbc:	b0 10 20 0c 	mov  0xc, %i0                                  
  uintptr_t size,                                                     
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return                                                              
    _Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 );
40010dc0:	03 10 00 8c 	sethi  %hi(0x40023000), %g1                    
40010dc4:	d0 00 61 e0 	ld  [ %g1 + 0x1e0 ], %o0	! 400231e0 <RTEMS_Malloc_Heap>
40010dc8:	94 10 00 19 	mov  %i1, %o2                                  
40010dcc:	92 10 00 1a 	mov  %i2, %o1                                  
40010dd0:	7f ff e4 aa 	call  4000a078 <_Protected_heap_Allocate_aligned_with_boundary>
40010dd4:	96 10 20 00 	clr  %o3                                       
  return_this = _Protected_heap_Allocate_aligned(                     
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment                                                         
  );                                                                  
  if ( !return_this )                                                 
40010dd8:	b2 92 20 00 	orcc  %o0, 0, %i1                              
40010ddc:	02 80 00 0d 	be  40010e10 <rtems_memalign+0x8c>             
40010de0:	03 10 00 8e 	sethi  %hi(0x40023800), %g1                    
    return ENOMEM;                                                    
                                                                      
  /*                                                                  
   *  If configured, update the more involved statistics              
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
40010de4:	c2 00 60 68 	ld  [ %g1 + 0x68 ], %g1	! 40023868 <rtems_malloc_statistics_helpers>
40010de8:	80 a0 60 00 	cmp  %g1, 0                                    
40010dec:	22 80 00 06 	be,a   40010e04 <rtems_memalign+0x80>          <== ALWAYS TAKEN
40010df0:	f2 24 00 00 	st  %i1, [ %l0 ]                               
    (*rtems_malloc_statistics_helpers->at_malloc)(pointer);           
40010df4:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           <== NOT EXECUTED
40010df8:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40010dfc:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
     */                                                               
    if (rtems_malloc_boundary_helpers)                                
      (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); 
  #endif                                                              
                                                                      
  *pointer = return_this;                                             
40010e00:	f2 24 00 00 	st  %i1, [ %l0 ]                               <== NOT EXECUTED
  return 0;                                                           
40010e04:	81 c7 e0 08 	ret                                            
40010e08:	91 e8 20 00 	restore  %g0, 0, %o0                           
40010e0c:	b0 10 20 16 	mov  0x16, %i0                                 
}                                                                     
40010e10:	81 c7 e0 08 	ret                                            
40010e14:	81 e8 00 00 	restore                                        
                                                                      

40008484 <rtems_panic>: void rtems_panic( const char *printf_format, ... ) {
40008484:	9d e3 bf 98 	save  %sp, -104, %sp                           <== NOT EXECUTED
    va_list arglist;                                                  
                                                                      
    va_start(arglist, printf_format);                                 
    (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist);   
40008488:	11 08 00 00 	sethi  %hi(0x20000000), %o0                    <== NOT EXECUTED
    ...                                                               
  )                                                                   
{                                                                     
    va_list arglist;                                                  
                                                                      
    va_start(arglist, printf_format);                                 
4000848c:	94 07 a0 48 	add  %fp, 0x48, %o2                            <== NOT EXECUTED
40008490:	f2 27 a0 48 	st  %i1, [ %fp + 0x48 ]                        <== NOT EXECUTED
40008494:	f4 27 a0 4c 	st  %i2, [ %fp + 0x4c ]                        <== NOT EXECUTED
40008498:	f6 27 a0 50 	st  %i3, [ %fp + 0x50 ]                        <== NOT EXECUTED
4000849c:	f8 27 a0 54 	st  %i4, [ %fp + 0x54 ]                        <== NOT EXECUTED
400084a0:	fa 27 a0 58 	st  %i5, [ %fp + 0x58 ]                        <== NOT EXECUTED
    (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist);   
400084a4:	92 10 00 18 	mov  %i0, %o1                                  <== NOT EXECUTED
400084a8:	7f ff ff 89 	call  400082cc <rtems_verror>                  <== NOT EXECUTED
400084ac:	d4 27 bf fc 	st  %o2, [ %fp + -4 ]                          <== NOT EXECUTED
    va_end(arglist);                                                  
}                                                                     
400084b0:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
400084b4:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

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 f9 	sethi  %hi(0x4003e400), %g1                    
40013890:	c4 00 61 40 	ld  [ %g1 + 0x140 ], %g2	! 4003e540 <_Thread_Dispatch_disable_level>
40013894:	84 00 a0 01 	inc  %g2                                       
40013898:	c4 20 61 40 	st  %g2, [ %g1 + 0x140 ]                       
 *  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 f8 	sethi  %hi(0x4003e000), %l2                    
400138a0:	40 00 12 07 	call  400180bc <_Objects_Allocate>             
400138a4:	90 14 a3 48 	or  %l2, 0x348, %o0	! 4003e348 <_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 cc 	call  40018fe4 <_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 64 21 	call  4002c95c <.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 73 	call  40016abc <_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 a3 48 	or  %l2, 0x348, %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 b3 	call  40018fe4 <_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                                        
                                                                      

4000d1e0 <rtems_pipe_initialize>: /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) {
4000d1e0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if (!rtems_pipe_configured)                                         
4000d1e4:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
4000d1e8:	c2 08 60 74 	ldub  [ %g1 + 0x74 ], %g1	! 4001d474 <rtems_pipe_configured>
4000d1ec:	80 a0 60 00 	cmp  %g1, 0                                    
4000d1f0:	02 80 00 15 	be  4000d244 <rtems_pipe_initialize+0x64>      <== ALWAYS TAKEN
4000d1f4:	19 10 00 75 	sethi  %hi(0x4001d400), %o4                    
    return;                                                           
                                                                      
  if (rtems_pipe_semaphore)                                           
4000d1f8:	c2 03 21 e4 	ld  [ %o4 + 0x1e4 ], %g1	! 4001d5e4 <rtems_pipe_semaphore><== NOT EXECUTED
4000d1fc:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000d200:	12 80 00 11 	bne  4000d244 <rtems_pipe_initialize+0x64>     <== NOT EXECUTED
4000d204:	98 13 21 e4 	or  %o4, 0x1e4, %o4                            <== NOT EXECUTED
    return;                                                           
                                                                      
  rtems_status_code sc;                                               
  sc = rtems_semaphore_create(                                        
4000d208:	11 14 12 54 	sethi  %hi(0x50495000), %o0                    <== NOT EXECUTED
4000d20c:	92 10 20 01 	mov  1, %o1                                    <== NOT EXECUTED
4000d210:	90 12 20 45 	or  %o0, 0x45, %o0                             <== NOT EXECUTED
4000d214:	94 10 20 54 	mov  0x54, %o2                                 <== NOT EXECUTED
4000d218:	7f ff e4 13 	call  40006264 <rtems_semaphore_create>        <== NOT EXECUTED
4000d21c:	96 10 20 00 	clr  %o3                                       <== NOT EXECUTED
        rtems_build_name ('P', 'I', 'P', 'E'), 1,                     
        RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
        RTEMS_NO_PRIORITY, &rtems_pipe_semaphore);                    
  if (sc != RTEMS_SUCCESSFUL)                                         
4000d220:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000d224:	02 80 00 04 	be  4000d234 <rtems_pipe_initialize+0x54>      <== NOT EXECUTED
4000d228:	01 00 00 00 	nop                                            <== NOT EXECUTED
    rtems_fatal_error_occurred (sc);                                  
4000d22c:	7f ff e6 59 	call  40006b90 <rtems_fatal_error_occurred>    <== NOT EXECUTED
4000d230:	01 00 00 00 	nop                                            <== NOT EXECUTED
                                                                      
  rtems_interval now;                                                 
  now = rtems_clock_get_ticks_since_boot();                           
4000d234:	7f ff e2 ec 	call  40005de4 <rtems_clock_get_ticks_since_boot><== NOT EXECUTED
4000d238:	01 00 00 00 	nop                                            <== NOT EXECUTED
  rtems_pipe_no = now;                                                
4000d23c:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    <== NOT EXECUTED
4000d240:	d0 30 61 ea 	sth  %o0, [ %g1 + 0x1ea ]	! 4001d5ea <rtems_pipe_no><== NOT EXECUTED
4000d244:	81 c7 e0 08 	ret                                            
4000d248:	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 8d 	sethi  %hi(0x40023400), %o0                    
400076ec:	92 10 00 18 	mov  %i0, %o1                                  
400076f0:	90 12 22 70 	or  %o0, 0x270, %o0                            
400076f4:	40 00 08 c4 	call  40009a04 <_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 8e 	sethi  %hi(0x40023800), %l2                    
40007710:	c4 02 20 40 	ld  [ %o0 + 0x40 ], %g2                        
40007714:	c2 04 a0 9c 	ld  [ %l2 + 0x9c ], %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 0b 06 	call  4000a33c <_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 84 	sethi  %hi(0x40021000), %g2                    
40007754:	84 10 a2 d8 	or  %g2, 0x2d8, %g2	! 400212d8 <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 8e 	sethi  %hi(0x40023800), %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 20 bc 	or  %o0, 0xbc, %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 10 13 	call  4000b81c <_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 a0 9c 	ld  [ %l2 + 0x9c ], %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 0d 38 	call  4000ace8 <_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 a0 9c 	ld  [ %l2 + 0x9c ], %o0                        
            _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
40007834:	40 00 09 cb 	call  40009f60 <_Thread_Clear_state>           
40007838:	13 00 00 10 	sethi  %hi(0x4000), %o1                        
                                                                      
          _Thread_Enable_dispatch();                                  
4000783c:	40 00 0a c0 	call  4000a33c <_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 8e 	sethi  %hi(0x40023800), %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 20 bc 	or  %o0, 0xbc, %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 e9 	call  4000b81c <_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 af 	call  4000a33c <_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 84 	sethi  %hi(0x40021000), %o1                    
400078ac:	9f c6 40 00 	call  %i1                                      
400078b0:	92 12 62 f0 	or  %o1, 0x2f0, %o1	! 400212f0 <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 84 	sethi  %hi(0x40021000), %o1                    
400078bc:	9f c6 40 00 	call  %i1                                      
400078c0:	92 12 63 10 	or  %o1, 0x310, %o1	! 40021310 <CSWTCH.47+0x38>
    (*print)( context, "--- Wall times are in seconds ---\n" );       
400078c4:	90 10 00 18 	mov  %i0, %o0                                  
400078c8:	13 10 00 84 	sethi  %hi(0x40021000), %o1                    
400078cc:	9f c6 40 00 	call  %i1                                      
400078d0:	92 12 63 38 	or  %o1, 0x338, %o1	! 40021338 <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 84 	sethi  %hi(0x40021000), %o1                    
400078dc:	9f c6 40 00 	call  %i1                                      
400078e0:	92 12 63 60 	or  %o1, 0x360, %o1	! 40021360 <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 84 	sethi  %hi(0x40021000), %o1                    
400078ec:	9f c6 40 00 	call  %i1                                      
400078f0:	92 12 63 b0 	or  %o1, 0x3b0, %o1	! 400213b0 <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 8d 	sethi  %hi(0x40023400), %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 85 	sethi  %hi(0x40021400), %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 62 70 	or  %g1, 0x270, %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 85 	sethi  %hi(0x40021400), %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 85 	sethi  %hi(0x40021400), %l4                    
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
40007908:	27 10 00 85 	sethi  %hi(0x40021400), %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 00 	mov  %l6, %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 20 	or  %l5, 0x20, %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 20 40 	or  %l4, 0x40, %l4                             
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
40007920:	a6 14 e0 18 	or  %l3, 0x18, %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 19 fd 	call  4000e130 <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 1a 24 	call  4000e1e4 <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 72 	call  4000b374 <_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 57 a3 	call  4001d844 <.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 57 9e 	call  4001d844 <.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 57 98 	call  4001d844 <.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 58 	call  4000b374 <_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 57 89 	call  4001d844 <.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 57 84 	call  4001d844 <.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 57 7e 	call  4001d844 <.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 8c 	call  40019070 <_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 f9 	sethi  %hi(0x4003e400), %g1                    
40014e8c:	c4 00 61 d8 	ld  [ %g1 + 0x1d8 ], %g2	! 4003e5d8 <_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 f9 	sethi  %hi(0x4003e400), %g2                    
40014ea4:	c4 00 a1 fc 	ld  [ %g2 + 0x1fc ], %g2	! 4003e5fc <_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 f9 	sethi  %hi(0x4003e400), %g2                    
            _ISR_Signals_to_thread_executing = true;                  
40014eb4:	10 80 00 04 	b  40014ec4 <rtems_signal_send+0x98>           
40014eb8:	c2 28 a2 98 	stb  %g1, [ %g2 + 0x298 ]	! 4003e698 <_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 10 48 	call  40018fe4 <_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 10 44 	call  40018fe4 <_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                         
                                                                      

40002c20 <rtems_stack_checker_begin_extension>: * rtems_stack_checker_Begin_extension */ void rtems_stack_checker_begin_extension( Thread_Control *the_thread ) {
40002c20:	9d e3 bf a0 	save  %sp, -96, %sp                            
  Stack_check_Control  *the_pattern;                                  
                                                                      
  if ( the_thread->Object.id == 0 )        /* skip system tasks */    
40002c24:	c2 06 20 08 	ld  [ %i0 + 8 ], %g1                           
40002c28:	80 a0 60 00 	cmp  %g1, 0                                    
40002c2c:	02 80 00 07 	be  40002c48 <rtems_stack_checker_begin_extension+0x28><== NEVER TAKEN
40002c30:	13 10 00 77 	sethi  %hi(0x4001dc00), %o1                    
    return;                                                           
                                                                      
  the_pattern = Stack_check_Get_pattern_area(&the_thread->Start.Initial_stack);
                                                                      
  *the_pattern = Stack_check_Pattern;                                 
40002c34:	d0 06 20 c8 	ld  [ %i0 + 0xc8 ], %o0                        
40002c38:	90 02 20 08 	add  %o0, 8, %o0                               
40002c3c:	92 12 62 c8 	or  %o1, 0x2c8, %o1                            
40002c40:	40 00 35 e7 	call  400103dc <memcpy>                        
40002c44:	94 10 20 10 	mov  0x10, %o2                                 
40002c48:	81 c7 e0 08 	ret                                            
40002c4c:	81 e8 00 00 	restore                                        
                                                                      

4000308c <rtems_stack_checker_create_extension>: */ bool rtems_stack_checker_create_extension( Thread_Control *running __attribute__((unused)), Thread_Control *the_thread ) {
4000308c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  Stack_check_Initialize();                                           
40003090:	7f ff ff d8 	call  40002ff0 <Stack_check_Initialize>        
40003094:	01 00 00 00 	nop                                            
                                                                      
  if (the_thread)                                                     
40003098:	80 a6 60 00 	cmp  %i1, 0                                    
4000309c:	02 80 00 06 	be  400030b4 <rtems_stack_checker_create_extension+0x28><== NEVER TAKEN
400030a0:	01 00 00 00 	nop                                            
    Stack_check_Dope_stack(&the_thread->Start.Initial_stack);         
400030a4:	d4 06 60 c4 	ld  [ %i1 + 0xc4 ], %o2                        
400030a8:	d0 06 60 c8 	ld  [ %i1 + 0xc8 ], %o0                        
400030ac:	40 00 35 0b 	call  400104d8 <memset>                        
400030b0:	92 10 20 a5 	mov  0xa5, %o1                                 
                                                                      
  return true;                                                        
}                                                                     
400030b4:	81 c7 e0 08 	ret                                            
400030b8:	91 e8 20 01 	restore  %g0, 1, %o0                           
                                                                      

40002efc <rtems_stack_checker_is_blown>: /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) {
40002efc:	9d e3 bf a0 	save  %sp, -96, %sp                            
  Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 
40002f00:	03 10 00 78 	sethi  %hi(0x4001e000), %g1                    
40002f04:	c2 00 61 6c 	ld  [ %g1 + 0x16c ], %g1	! 4001e16c <_Thread_Executing>
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
40002f08:	d0 00 60 c8 	ld  [ %g1 + 0xc8 ], %o0                        
40002f0c:	80 a7 80 08 	cmp  %fp, %o0                                  
40002f10:	0a 80 00 06 	bcs  40002f28 <rtems_stack_checker_is_blown+0x2c><== NEVER TAKEN
40002f14:	a0 10 20 00 	clr  %l0                                       
}                                                                     
                                                                      
/*                                                                    
 *  Check if blown                                                    
 */                                                                   
bool rtems_stack_checker_is_blown( void )                             
40002f18:	c2 00 60 c4 	ld  [ %g1 + 0xc4 ], %g1                        
40002f1c:	82 02 00 01 	add  %o0, %g1, %g1                             
40002f20:	80 a0 40 1e 	cmp  %g1, %fp                                  
40002f24:	a0 60 3f ff 	subx  %g0, -1, %l0                             
                                                                      
  /*                                                                  
   * The stack checker must be initialized before the pattern is there
   * to check.                                                        
   */                                                                 
  if ( Stack_check_Initialized ) {                                    
40002f28:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
40002f2c:	c2 00 63 f4 	ld  [ %g1 + 0x3f4 ], %g1	! 4001dbf4 <Stack_check_Initialized>
40002f30:	80 a0 60 00 	cmp  %g1, 0                                    
40002f34:	02 80 00 09 	be  40002f58 <rtems_stack_checker_is_blown+0x5c><== NEVER TAKEN
40002f38:	92 10 20 01 	mov  1, %o1                                    
    pattern_ok = (!memcmp(                                            
40002f3c:	90 02 20 08 	add  %o0, 8, %o0                               
40002f40:	13 10 00 77 	sethi  %hi(0x4001dc00), %o1                    
40002f44:	94 10 20 10 	mov  0x10, %o2                                 
40002f48:	40 00 34 f4 	call  40010318 <memcmp>                        
40002f4c:	92 12 62 c8 	or  %o1, 0x2c8, %o1                            
40002f50:	80 a0 00 08 	cmp  %g0, %o0                                  
40002f54:	92 60 3f ff 	subx  %g0, -1, %o1                             
  }                                                                   
                                                                      
  /*                                                                  
   * The Stack Pointer and the Pattern Area are OK so return false.   
   */                                                                 
  if ( sp_ok && pattern_ok )                                          
40002f58:	80 8c 20 ff 	btst  0xff, %l0                                
40002f5c:	02 80 00 04 	be  40002f6c <rtems_stack_checker_is_blown+0x70><== NEVER TAKEN
40002f60:	80 8a 60 ff 	btst  0xff, %o1                                
40002f64:	12 80 00 07 	bne  40002f80 <rtems_stack_checker_is_blown+0x84><== ALWAYS TAKEN
40002f68:	b0 10 20 00 	clr  %i0                                       
    return false;                                                     
                                                                      
  /*                                                                  
   * Let's report as much as we can.                                  
   */                                                                 
  Stack_check_report_blown_task( _Thread_Executing, pattern_ok );     
40002f6c:	03 10 00 78 	sethi  %hi(0x4001e000), %g1                    <== NOT EXECUTED
40002f70:	d0 00 61 6c 	ld  [ %g1 + 0x16c ], %o0	! 4001e16c <_Thread_Executing><== NOT EXECUTED
40002f74:	92 0a 60 01 	and  %o1, 1, %o1                               <== NOT EXECUTED
40002f78:	7f ff ff b7 	call  40002e54 <Stack_check_report_blown_task> <== NOT EXECUTED
40002f7c:	b0 10 20 01 	mov  1, %i0                                    <== NOT EXECUTED
  return true;                                                        
}                                                                     
40002f80:	81 c7 e0 08 	ret                                            
40002f84:	81 e8 00 00 	restore                                        
                                                                      

40002e38 <rtems_stack_checker_report_usage>: void rtems_stack_checker_report_usage( void ) { rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin );
40002e38:	13 10 00 10 	sethi  %hi(0x40004000), %o1                    <== NOT EXECUTED
40002e3c:	90 10 20 00 	clr  %o0                                       <== NOT EXECUTED
40002e40:	92 12 61 50 	or  %o1, 0x150, %o1                            <== NOT EXECUTED
40002e44:	82 13 c0 00 	mov  %o7, %g1                                  <== NOT EXECUTED
40002e48:	7f ff ff e6 	call  40002de0 <rtems_stack_checker_report_usage_with_plugin><== NOT EXECUTED
40002e4c:	9e 10 40 00 	mov  %g1, %o7                                  <== NOT EXECUTED
                                                                      

40002de0 <rtems_stack_checker_report_usage_with_plugin>: void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) {
40002de0:	9d e3 bf a0 	save  %sp, -96, %sp                            <== NOT EXECUTED
  print_context = context;                                            
40002de4:	23 10 00 76 	sethi  %hi(0x4001d800), %l1                    <== NOT EXECUTED
  print_handler = print;                                              
40002de8:	21 10 00 76 	sethi  %hi(0x4001d800), %l0                    <== NOT EXECUTED
void rtems_stack_checker_report_usage_with_plugin(                    
  void                  *context,                                     
  rtems_printk_plugin_t  print                                        
)                                                                     
{                                                                     
  print_context = context;                                            
40002dec:	f0 24 63 f8 	st  %i0, [ %l1 + 0x3f8 ]                       <== NOT EXECUTED
  print_handler = print;                                              
40002df0:	f2 24 23 fc 	st  %i1, [ %l0 + 0x3fc ]                       <== NOT EXECUTED
                                                                      
  (*print)( context, "Stack usage by thread\n");                      
40002df4:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
40002df8:	13 10 00 70 	sethi  %hi(0x4001c000), %o1                    <== NOT EXECUTED
40002dfc:	9f c6 40 00 	call  %i1                                      <== NOT EXECUTED
40002e00:	92 12 63 60 	or  %o1, 0x360, %o1	! 4001c360 <__FUNCTION__.5779+0x250><== NOT EXECUTED
  (*print)( context,                                                  
40002e04:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
40002e08:	13 10 00 70 	sethi  %hi(0x4001c000), %o1                    <== NOT EXECUTED
40002e0c:	9f c6 40 00 	call  %i1                                      <== NOT EXECUTED
40002e10:	92 12 63 78 	or  %o1, 0x378, %o1	! 4001c378 <__FUNCTION__.5779+0x268><== NOT EXECUTED
"    ID      NAME    LOW          HIGH     CURRENT     AVAILABLE     USED\n"
  );                                                                  
                                                                      
  /* iterate over all threads and dump the usage */                   
  rtems_iterate_over_all_threads( Stack_check_Dump_threads_usage );   
40002e14:	11 10 00 0b 	sethi  %hi(0x40002c00), %o0                    <== NOT EXECUTED
40002e18:	40 00 13 98 	call  40007c78 <rtems_iterate_over_all_threads><== NOT EXECUTED
40002e1c:	90 12 20 90 	or  %o0, 0x90, %o0	! 40002c90 <Stack_check_Dump_threads_usage><== NOT EXECUTED
                                                                      
  /* dump interrupt stack info if any */                              
  Stack_check_Dump_threads_usage((Thread_Control *) -1);              
40002e20:	7f ff ff 9c 	call  40002c90 <Stack_check_Dump_threads_usage><== NOT EXECUTED
40002e24:	90 10 3f ff 	mov  -1, %o0                                   <== NOT EXECUTED
                                                                      
  print_context = NULL;                                               
40002e28:	c0 24 63 f8 	clr  [ %l1 + 0x3f8 ]                           <== NOT EXECUTED
  print_handler = NULL;                                               
40002e2c:	c0 24 23 fc 	clr  [ %l0 + 0x3fc ]                           <== NOT EXECUTED
                                                                      
}                                                                     
40002e30:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40002e34:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

40002f88 <rtems_stack_checker_switch_extension>: */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) {
40002f88:	9d e3 bf a0 	save  %sp, -96, %sp                            
  Stack_Control *the_stack = &running->Start.Initial_stack;           
  void          *pattern;                                             
  bool        sp_ok;                                                  
  bool        pattern_ok = true;                                      
                                                                      
  pattern = (void *) Stack_check_Get_pattern_area(the_stack)->pattern;
40002f8c:	d0 06 20 c8 	ld  [ %i0 + 0xc8 ], %o0                        
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
40002f90:	80 a7 80 08 	cmp  %fp, %o0                                  
40002f94:	0a 80 00 06 	bcs  40002fac <rtems_stack_checker_switch_extension+0x24><== NEVER TAKEN
40002f98:	a0 10 20 00 	clr  %l0                                       
}                                                                     
                                                                      
/*                                                                    
 *  rtems_stack_checker_switch_extension                              
 */                                                                   
void rtems_stack_checker_switch_extension(                            
40002f9c:	c2 06 20 c4 	ld  [ %i0 + 0xc4 ], %g1                        
40002fa0:	82 02 00 01 	add  %o0, %g1, %g1                             
40002fa4:	80 a0 40 1e 	cmp  %g1, %fp                                  
40002fa8:	a0 60 3f ff 	subx  %g0, -1, %l0                             
  /*                                                                  
   *  Check for an out of bounds stack pointer or an overwrite        
   */                                                                 
  sp_ok = Stack_check_Frame_pointer_in_range( the_stack );            
                                                                      
  pattern_ok = (!memcmp( pattern,                                     
40002fac:	90 02 20 08 	add  %o0, 8, %o0                               
40002fb0:	13 10 00 77 	sethi  %hi(0x4001dc00), %o1                    
40002fb4:	94 10 20 10 	mov  0x10, %o2                                 
40002fb8:	40 00 34 d8 	call  40010318 <memcmp>                        
40002fbc:	92 12 62 c8 	or  %o1, 0x2c8, %o1                            
40002fc0:	80 a0 00 08 	cmp  %g0, %o0                                  
40002fc4:	b2 60 3f ff 	subx  %g0, -1, %i1                             
            (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
                                                                      
  if ( !sp_ok || !pattern_ok ) {                                      
40002fc8:	80 8c 20 ff 	btst  0xff, %l0                                
40002fcc:	02 80 00 04 	be  40002fdc <rtems_stack_checker_switch_extension+0x54><== NEVER TAKEN
40002fd0:	80 a6 60 00 	cmp  %i1, 0                                    
40002fd4:	12 80 00 05 	bne  40002fe8 <rtems_stack_checker_switch_extension+0x60><== ALWAYS TAKEN
40002fd8:	01 00 00 00 	nop                                            
    Stack_check_report_blown_task( running, pattern_ok );             
40002fdc:	b2 0e 60 01 	and  %i1, 1, %i1                               <== NOT EXECUTED
40002fe0:	7f ff ff 9d 	call  40002e54 <Stack_check_report_blown_task> <== NOT EXECUTED
40002fe4:	81 e8 00 00 	restore                                        <== NOT EXECUTED
40002fe8:	81 c7 e0 08 	ret                                            
40002fec:	81 e8 00 00 	restore                                        
                                                                      

4000d398 <rtems_string_to_double>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
4000d398:	9d e3 bf 98 	save  %sp, -104, %sp                           
4000d39c:	a4 10 00 18 	mov  %i0, %l2                                  
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
4000d3a0:	80 a6 60 00 	cmp  %i1, 0                                    
4000d3a4:	02 80 00 24 	be  4000d434 <rtems_string_to_double+0x9c>     
4000d3a8:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
4000d3ac:	40 00 0b bc 	call  4001029c <__errno>                       
4000d3b0:	01 00 00 00 	nop                                            
  *n    = 0;                                                          
                                                                      
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
4000d3b4:	92 07 bf fc 	add  %fp, -4, %o1                              
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
4000d3b8:	c0 22 00 00 	clr  [ %o0 ]                                   
  *n    = 0;                                                          
4000d3bc:	c0 26 40 00 	clr  [ %i1 ]                                   
4000d3c0:	c0 26 60 04 	clr  [ %i1 + 4 ]                               
                                                                      
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
4000d3c4:	40 00 17 32 	call  4001308c <strtod>                        
4000d3c8:	90 10 00 12 	mov  %l2, %o0                                  
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
4000d3cc:	80 a6 a0 00 	cmp  %i2, 0                                    
                                                                      
  errno = 0;                                                          
  *n    = 0;                                                          
                                                                      
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
4000d3d0:	a0 10 00 08 	mov  %o0, %l0                                  
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
4000d3d4:	02 80 00 04 	be  4000d3e4 <rtems_string_to_double+0x4c>     
4000d3d8:	a2 10 00 09 	mov  %o1, %l1                                  
    *endptr = end;                                                    
4000d3dc:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
4000d3e0:	c2 26 80 00 	st  %g1, [ %i2 ]                               
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
4000d3e4:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
4000d3e8:	80 a0 40 12 	cmp  %g1, %l2                                  
4000d3ec:	02 80 00 12 	be  4000d434 <rtems_string_to_double+0x9c>     
4000d3f0:	b0 10 20 0b 	mov  0xb, %i0                                  
    return RTEMS_INVALID_NUMBER;                                      
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MAX                                                
    /* there was an overflow */                                       
    if ( (result == STRING_TO_MAX) && (errno == ERANGE))              
4000d3f4:	03 10 00 82 	sethi  %hi(0x40020800), %g1                    
4000d3f8:	d4 18 63 d8 	ldd  [ %g1 + 0x3d8 ], %o2	! 40020bd8 <_CPU_Trap_slot_template+0x14>
4000d3fc:	90 10 00 10 	mov  %l0, %o0                                  
4000d400:	40 00 3f 7e 	call  4001d1f8 <__gtdf2>                       
4000d404:	92 10 00 11 	mov  %l1, %o1                                  
4000d408:	80 a2 20 00 	cmp  %o0, 0                                    
4000d40c:	24 80 00 09 	ble,a   4000d430 <rtems_string_to_double+0x98> 
4000d410:	e0 3e 40 00 	std  %l0, [ %i1 ]                              
4000d414:	40 00 0b a2 	call  4001029c <__errno>                       
4000d418:	b0 10 20 0a 	mov  0xa, %i0                                  
4000d41c:	c2 02 00 00 	ld  [ %o0 ], %g1                               
4000d420:	80 a0 60 22 	cmp  %g1, 0x22                                 
4000d424:	02 80 00 04 	be  4000d434 <rtems_string_to_double+0x9c>     <== ALWAYS TAKEN
4000d428:	01 00 00 00 	nop                                            
  #endif                                                              
                                                                      
  #if defined(STRING_TO_POINTER)                                      
    *n = (STRING_TO_TYPE) (uintptr_t)result;                          
  #else                                                               
    *n = (STRING_TO_TYPE) result;                                     
4000d42c:	e0 3e 40 00 	std  %l0, [ %i1 ]                              <== NOT EXECUTED
4000d430:	b0 10 20 00 	clr  %i0                                       
  #endif                                                              
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
4000d434:	81 c7 e0 08 	ret                                            
4000d438:	81 e8 00 00 	restore                                        
                                                                      

4000d43c <rtems_string_to_float>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
4000d43c:	9d e3 bf 98 	save  %sp, -104, %sp                           
4000d440:	a0 10 00 18 	mov  %i0, %l0                                  
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
4000d444:	80 a6 60 00 	cmp  %i1, 0                                    
4000d448:	02 80 00 21 	be  4000d4cc <rtems_string_to_float+0x90>      
4000d44c:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
4000d450:	40 00 0b 93 	call  4001029c <__errno>                       
4000d454:	01 00 00 00 	nop                                            
  *n    = 0;                                                          
                                                                      
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
4000d458:	92 07 bf fc 	add  %fp, -4, %o1                              
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
4000d45c:	c0 22 00 00 	clr  [ %o0 ]                                   
  *n    = 0;                                                          
4000d460:	c0 26 40 00 	clr  [ %i1 ]                                   
                                                                      
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
4000d464:	40 00 16 f7 	call  40013040 <strtof>                        
4000d468:	90 10 00 10 	mov  %l0, %o0                                  
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
4000d46c:	80 a6 a0 00 	cmp  %i2, 0                                    
4000d470:	02 80 00 04 	be  4000d480 <rtems_string_to_float+0x44>      
4000d474:	a2 10 00 08 	mov  %o0, %l1                                  
    *endptr = end;                                                    
4000d478:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
4000d47c:	c2 26 80 00 	st  %g1, [ %i2 ]                               
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
4000d480:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
4000d484:	80 a0 40 10 	cmp  %g1, %l0                                  
4000d488:	02 80 00 11 	be  4000d4cc <rtems_string_to_float+0x90>      
4000d48c:	b0 10 20 0b 	mov  0xb, %i0                                  
    return RTEMS_INVALID_NUMBER;                                      
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MAX                                                
    /* there was an overflow */                                       
    if ( (result == STRING_TO_MAX) && (errno == ERANGE))              
4000d490:	90 10 00 11 	mov  %l1, %o0                                  
4000d494:	13 1f df ff 	sethi  %hi(0x7f7ffc00), %o1                    
4000d498:	40 00 3c b5 	call  4001c76c <__gtsf2>                       
4000d49c:	92 12 63 ff 	or  %o1, 0x3ff, %o1	! 7f7fffff <RAM_END+0x3f3fffff>
4000d4a0:	80 a2 20 00 	cmp  %o0, 0                                    
4000d4a4:	24 80 00 09 	ble,a   4000d4c8 <rtems_string_to_float+0x8c>  
4000d4a8:	e2 26 40 00 	st  %l1, [ %i1 ]                               
4000d4ac:	40 00 0b 7c 	call  4001029c <__errno>                       
4000d4b0:	b0 10 20 0a 	mov  0xa, %i0                                  
4000d4b4:	c2 02 00 00 	ld  [ %o0 ], %g1                               
4000d4b8:	80 a0 60 22 	cmp  %g1, 0x22                                 
4000d4bc:	02 80 00 04 	be  4000d4cc <rtems_string_to_float+0x90>      <== ALWAYS TAKEN
4000d4c0:	01 00 00 00 	nop                                            
  #endif                                                              
                                                                      
  #if defined(STRING_TO_POINTER)                                      
    *n = (STRING_TO_TYPE) (uintptr_t)result;                          
  #else                                                               
    *n = (STRING_TO_TYPE) result;                                     
4000d4c4:	e2 26 40 00 	st  %l1, [ %i1 ]                               <== NOT EXECUTED
4000d4c8:	b0 10 20 00 	clr  %i0                                       
  #endif                                                              
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
4000d4cc:	81 c7 e0 08 	ret                                            
4000d4d0:	81 e8 00 00 	restore                                        
                                                                      

4000d4d4 <rtems_string_to_int>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
4000d4d4:	9d e3 bf 98 	save  %sp, -104, %sp                           
4000d4d8:	a0 10 00 18 	mov  %i0, %l0                                  
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
4000d4dc:	80 a6 60 00 	cmp  %i1, 0                                    
4000d4e0:	02 80 00 20 	be  4000d560 <rtems_string_to_int+0x8c>        
4000d4e4:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
4000d4e8:	40 00 0b 6d 	call  4001029c <__errno>                       
4000d4ec:	01 00 00 00 	nop                                            
4000d4f0:	c0 22 00 00 	clr  [ %o0 ]                                   
  *n    = 0;                                                          
4000d4f4:	c0 26 40 00 	clr  [ %i1 ]                                   
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
4000d4f8:	94 10 00 1b 	mov  %i3, %o2                                  
4000d4fc:	90 10 00 10 	mov  %l0, %o0                                  
4000d500:	40 00 17 6e 	call  400132b8 <strtol>                        
4000d504:	92 07 bf fc 	add  %fp, -4, %o1                              
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
4000d508:	80 a6 a0 00 	cmp  %i2, 0                                    
4000d50c:	02 80 00 04 	be  4000d51c <rtems_string_to_int+0x48>        
4000d510:	a2 10 00 08 	mov  %o0, %l1                                  
    *endptr = end;                                                    
4000d514:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
4000d518:	c2 26 80 00 	st  %g1, [ %i2 ]                               
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
4000d51c:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
4000d520:	80 a0 40 10 	cmp  %g1, %l0                                  
4000d524:	02 80 00 0f 	be  4000d560 <rtems_string_to_int+0x8c>        
4000d528:	b0 10 20 0b 	mov  0xb, %i0                                  
    return RTEMS_INVALID_NUMBER;                                      
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MAX                                                
    /* there was an overflow */                                       
    if ( (result == STRING_TO_MAX) && (errno == ERANGE))              
4000d52c:	03 1f ff ff 	sethi  %hi(0x7ffffc00), %g1                    
4000d530:	82 10 63 ff 	or  %g1, 0x3ff, %g1	! 7fffffff <RAM_END+0x3fbfffff>
4000d534:	80 a4 40 01 	cmp  %l1, %g1                                  
4000d538:	32 80 00 09 	bne,a   4000d55c <rtems_string_to_int+0x88>    
4000d53c:	e2 26 40 00 	st  %l1, [ %i1 ]                               
4000d540:	40 00 0b 57 	call  4001029c <__errno>                       
4000d544:	b0 10 20 0a 	mov  0xa, %i0                                  
4000d548:	c2 02 00 00 	ld  [ %o0 ], %g1                               
4000d54c:	80 a0 60 22 	cmp  %g1, 0x22                                 
4000d550:	02 80 00 04 	be  4000d560 <rtems_string_to_int+0x8c>        <== ALWAYS TAKEN
4000d554:	01 00 00 00 	nop                                            
  #endif                                                              
                                                                      
  #if defined(STRING_TO_POINTER)                                      
    *n = (STRING_TO_TYPE) (uintptr_t)result;                          
  #else                                                               
    *n = (STRING_TO_TYPE) result;                                     
4000d558:	e2 26 40 00 	st  %l1, [ %i1 ]                               <== NOT EXECUTED
4000d55c:	b0 10 20 00 	clr  %i0                                       
  #endif                                                              
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
4000d560:	81 c7 e0 08 	ret                                            
4000d564:	81 e8 00 00 	restore                                        
                                                                      

4000d62c <rtems_string_to_long>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
4000d62c:	9d e3 bf 98 	save  %sp, -104, %sp                           
4000d630:	a0 10 00 18 	mov  %i0, %l0                                  
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
4000d634:	80 a6 60 00 	cmp  %i1, 0                                    
4000d638:	02 80 00 23 	be  4000d6c4 <rtems_string_to_long+0x98>       
4000d63c:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
4000d640:	40 00 0b 17 	call  4001029c <__errno>                       
4000d644:	01 00 00 00 	nop                                            
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
4000d648:	94 10 00 1b 	mov  %i3, %o2                                  
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
4000d64c:	c0 22 00 00 	clr  [ %o0 ]                                   
  *n    = 0;                                                          
4000d650:	c0 26 40 00 	clr  [ %i1 ]                                   
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
4000d654:	90 10 00 10 	mov  %l0, %o0                                  
4000d658:	40 00 17 18 	call  400132b8 <strtol>                        
4000d65c:	92 07 bf fc 	add  %fp, -4, %o1                              
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
4000d660:	80 a6 a0 00 	cmp  %i2, 0                                    
4000d664:	02 80 00 04 	be  4000d674 <rtems_string_to_long+0x48>       
4000d668:	a2 10 00 08 	mov  %o0, %l1                                  
    *endptr = end;                                                    
4000d66c:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
4000d670:	c2 26 80 00 	st  %g1, [ %i2 ]                               
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
4000d674:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
4000d678:	80 a0 40 10 	cmp  %g1, %l0                                  
4000d67c:	02 80 00 12 	be  4000d6c4 <rtems_string_to_long+0x98>       
4000d680:	b0 10 20 0b 	mov  0xb, %i0                                  
    return RTEMS_INVALID_NUMBER;                                      
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MAX                                                
    /* there was an overflow */                                       
    if ( (result == STRING_TO_MAX) && (errno == ERANGE))              
4000d684:	03 1f ff ff 	sethi  %hi(0x7ffffc00), %g1                    
4000d688:	82 10 63 ff 	or  %g1, 0x3ff, %g1	! 7fffffff <RAM_END+0x3fbfffff>
4000d68c:	80 a4 40 01 	cmp  %l1, %g1                                  
4000d690:	02 80 00 05 	be  4000d6a4 <rtems_string_to_long+0x78>       
4000d694:	03 20 00 00 	sethi  %hi(0x80000000), %g1                    
      return RTEMS_INVALID_NUMBER;                                    
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MIN                                                
    /* there was an underflow */                                      
    if ( (result == STRING_TO_MIN) && (errno == ERANGE))              
4000d698:	80 a4 40 01 	cmp  %l1, %g1                                  
4000d69c:	32 80 00 09 	bne,a   4000d6c0 <rtems_string_to_long+0x94>   
4000d6a0:	e2 26 40 00 	st  %l1, [ %i1 ]                               
4000d6a4:	40 00 0a fe 	call  4001029c <__errno>                       
4000d6a8:	01 00 00 00 	nop                                            
4000d6ac:	c2 02 00 00 	ld  [ %o0 ], %g1                               
4000d6b0:	80 a0 60 22 	cmp  %g1, 0x22                                 
4000d6b4:	22 80 00 04 	be,a   4000d6c4 <rtems_string_to_long+0x98>    <== ALWAYS TAKEN
4000d6b8:	b0 10 20 0a 	mov  0xa, %i0                                  
  #endif                                                              
                                                                      
  #if defined(STRING_TO_POINTER)                                      
    *n = (STRING_TO_TYPE) (uintptr_t)result;                          
  #else                                                               
    *n = (STRING_TO_TYPE) result;                                     
4000d6bc:	e2 26 40 00 	st  %l1, [ %i1 ]                               <== NOT EXECUTED
4000d6c0:	b0 10 20 00 	clr  %i0                                       
  #endif                                                              
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
4000d6c4:	81 c7 e0 08 	ret                                            
4000d6c8:	81 e8 00 00 	restore                                        
                                                                      

4000d568 <rtems_string_to_long_long>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
4000d568:	9d e3 bf 98 	save  %sp, -104, %sp                           
4000d56c:	a0 10 00 18 	mov  %i0, %l0                                  
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
4000d570:	80 a6 60 00 	cmp  %i1, 0                                    
4000d574:	02 80 00 2c 	be  4000d624 <rtems_string_to_long_long+0xbc>  
4000d578:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
4000d57c:	40 00 0b 48 	call  4001029c <__errno>                       
4000d580:	01 00 00 00 	nop                                            
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
4000d584:	94 10 00 1b 	mov  %i3, %o2                                  
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
4000d588:	c0 22 00 00 	clr  [ %o0 ]                                   
  *n    = 0;                                                          
4000d58c:	c0 26 40 00 	clr  [ %i1 ]                                   
4000d590:	c0 26 60 04 	clr  [ %i1 + 4 ]                               
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
4000d594:	90 10 00 10 	mov  %l0, %o0                                  
4000d598:	40 00 17 52 	call  400132e0 <strtoll>                       
4000d59c:	92 07 bf fc 	add  %fp, -4, %o1                              
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
4000d5a0:	80 a6 a0 00 	cmp  %i2, 0                                    
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
4000d5a4:	a2 10 00 08 	mov  %o0, %l1                                  
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
4000d5a8:	02 80 00 04 	be  4000d5b8 <rtems_string_to_long_long+0x50>  
4000d5ac:	a4 10 00 09 	mov  %o1, %l2                                  
    *endptr = end;                                                    
4000d5b0:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
4000d5b4:	c2 26 80 00 	st  %g1, [ %i2 ]                               
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
4000d5b8:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
4000d5bc:	80 a0 40 10 	cmp  %g1, %l0                                  
4000d5c0:	02 80 00 19 	be  4000d624 <rtems_string_to_long_long+0xbc>  
4000d5c4:	b0 10 20 0b 	mov  0xb, %i0                                  
    return RTEMS_INVALID_NUMBER;                                      
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MAX                                                
    /* there was an overflow */                                       
    if ( (result == STRING_TO_MAX) && (errno == ERANGE))              
4000d5c8:	03 1f ff ff 	sethi  %hi(0x7ffffc00), %g1                    
4000d5cc:	82 10 63 ff 	or  %g1, 0x3ff, %g1	! 7fffffff <RAM_END+0x3fbfffff>
4000d5d0:	80 a4 40 01 	cmp  %l1, %g1                                  
4000d5d4:	12 80 00 05 	bne  4000d5e8 <rtems_string_to_long_long+0x80> 
4000d5d8:	03 20 00 00 	sethi  %hi(0x80000000), %g1                    
4000d5dc:	80 a4 bf ff 	cmp  %l2, -1                                   
4000d5e0:	02 80 00 08 	be  4000d600 <rtems_string_to_long_long+0x98>  <== ALWAYS TAKEN
4000d5e4:	01 00 00 00 	nop                                            
      return RTEMS_INVALID_NUMBER;                                    
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MIN                                                
    /* there was an underflow */                                      
    if ( (result == STRING_TO_MIN) && (errno == ERANGE))              
4000d5e8:	80 a4 40 01 	cmp  %l1, %g1                                  
4000d5ec:	32 80 00 0c 	bne,a   4000d61c <rtems_string_to_long_long+0xb4>
4000d5f0:	e4 26 60 04 	st  %l2, [ %i1 + 4 ]                           
4000d5f4:	80 a4 a0 00 	cmp  %l2, 0                                    
4000d5f8:	32 80 00 09 	bne,a   4000d61c <rtems_string_to_long_long+0xb4><== NEVER TAKEN
4000d5fc:	e4 26 60 04 	st  %l2, [ %i1 + 4 ]                           <== NOT EXECUTED
4000d600:	40 00 0b 27 	call  4001029c <__errno>                       
4000d604:	01 00 00 00 	nop                                            
4000d608:	c2 02 00 00 	ld  [ %o0 ], %g1                               
4000d60c:	80 a0 60 22 	cmp  %g1, 0x22                                 
4000d610:	22 80 00 05 	be,a   4000d624 <rtems_string_to_long_long+0xbc><== ALWAYS TAKEN
4000d614:	b0 10 20 0a 	mov  0xa, %i0                                  
  #endif                                                              
                                                                      
  #if defined(STRING_TO_POINTER)                                      
    *n = (STRING_TO_TYPE) (uintptr_t)result;                          
  #else                                                               
    *n = (STRING_TO_TYPE) result;                                     
4000d618:	e4 26 60 04 	st  %l2, [ %i1 + 4 ]                           <== NOT EXECUTED
4000d61c:	e2 26 40 00 	st  %l1, [ %i1 ]                               
4000d620:	b0 10 20 00 	clr  %i0                                       
  #endif                                                              
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
4000d624:	81 c7 e0 08 	ret                                            
4000d628:	81 e8 00 00 	restore                                        
                                                                      

4000d6cc <rtems_string_to_pointer>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
4000d6cc:	9d e3 bf 98 	save  %sp, -104, %sp                           
4000d6d0:	a0 10 00 18 	mov  %i0, %l0                                  
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
4000d6d4:	80 a6 60 00 	cmp  %i1, 0                                    
4000d6d8:	02 80 00 1e 	be  4000d750 <rtems_string_to_pointer+0x84>    
4000d6dc:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
4000d6e0:	40 00 0a ef 	call  4001029c <__errno>                       
4000d6e4:	01 00 00 00 	nop                                            
  *n    = 0;                                                          
                                                                      
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
4000d6e8:	92 07 bf fc 	add  %fp, -4, %o1                              
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
4000d6ec:	c0 22 00 00 	clr  [ %o0 ]                                   
  *n    = 0;                                                          
4000d6f0:	c0 26 40 00 	clr  [ %i1 ]                                   
                                                                      
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
4000d6f4:	90 10 00 10 	mov  %l0, %o0                                  
4000d6f8:	40 00 18 28 	call  40013798 <strtoul>                       
4000d6fc:	94 10 20 10 	mov  0x10, %o2                                 
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
4000d700:	80 a6 a0 00 	cmp  %i2, 0                                    
4000d704:	02 80 00 04 	be  4000d714 <rtems_string_to_pointer+0x48>    
4000d708:	a2 10 00 08 	mov  %o0, %l1                                  
    *endptr = end;                                                    
4000d70c:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
4000d710:	c2 26 80 00 	st  %g1, [ %i2 ]                               
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
4000d714:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
4000d718:	80 a0 40 10 	cmp  %g1, %l0                                  
4000d71c:	02 80 00 0d 	be  4000d750 <rtems_string_to_pointer+0x84>    
4000d720:	b0 10 20 0b 	mov  0xb, %i0                                  
    return RTEMS_INVALID_NUMBER;                                      
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MAX                                                
    /* there was an overflow */                                       
    if ( (result == STRING_TO_MAX) && (errno == ERANGE))              
4000d724:	80 a4 7f ff 	cmp  %l1, -1                                   
4000d728:	32 80 00 09 	bne,a   4000d74c <rtems_string_to_pointer+0x80><== ALWAYS TAKEN
4000d72c:	e2 26 40 00 	st  %l1, [ %i1 ]                               
4000d730:	40 00 0a db 	call  4001029c <__errno>                       <== NOT EXECUTED
4000d734:	b0 10 20 0a 	mov  0xa, %i0                                  <== NOT EXECUTED
4000d738:	c2 02 00 00 	ld  [ %o0 ], %g1                               <== NOT EXECUTED
4000d73c:	80 a0 60 22 	cmp  %g1, 0x22                                 <== NOT EXECUTED
4000d740:	02 80 00 04 	be  4000d750 <rtems_string_to_pointer+0x84>    <== NOT EXECUTED
4000d744:	01 00 00 00 	nop                                            <== NOT EXECUTED
    if ( (result == STRING_TO_MIN) && (errno == ERANGE))              
      return RTEMS_INVALID_NUMBER;                                    
  #endif                                                              
                                                                      
  #if defined(STRING_TO_POINTER)                                      
    *n = (STRING_TO_TYPE) (uintptr_t)result;                          
4000d748:	e2 26 40 00 	st  %l1, [ %i1 ]                               <== NOT EXECUTED
4000d74c:	b0 10 20 00 	clr  %i0                                       
  #else                                                               
    *n = (STRING_TO_TYPE) result;                                     
  #endif                                                              
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
4000d750:	81 c7 e0 08 	ret                                            
4000d754:	81 e8 00 00 	restore                                        
                                                                      

4000d7bc <rtems_string_to_unsigned_int>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
4000d7bc:	9d e3 bf 98 	save  %sp, -104, %sp                           
4000d7c0:	a0 10 00 18 	mov  %i0, %l0                                  
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
4000d7c4:	80 a6 60 00 	cmp  %i1, 0                                    
4000d7c8:	02 80 00 1e 	be  4000d840 <rtems_string_to_unsigned_int+0x84>
4000d7cc:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
4000d7d0:	40 00 0a b3 	call  4001029c <__errno>                       
4000d7d4:	01 00 00 00 	nop                                            
4000d7d8:	c0 22 00 00 	clr  [ %o0 ]                                   
  *n    = 0;                                                          
4000d7dc:	c0 26 40 00 	clr  [ %i1 ]                                   
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
4000d7e0:	94 10 00 1b 	mov  %i3, %o2                                  
4000d7e4:	90 10 00 10 	mov  %l0, %o0                                  
4000d7e8:	40 00 17 ec 	call  40013798 <strtoul>                       
4000d7ec:	92 07 bf fc 	add  %fp, -4, %o1                              
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
4000d7f0:	80 a6 a0 00 	cmp  %i2, 0                                    
4000d7f4:	02 80 00 04 	be  4000d804 <rtems_string_to_unsigned_int+0x48>
4000d7f8:	a2 10 00 08 	mov  %o0, %l1                                  
    *endptr = end;                                                    
4000d7fc:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
4000d800:	c2 26 80 00 	st  %g1, [ %i2 ]                               
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
4000d804:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
4000d808:	80 a0 40 10 	cmp  %g1, %l0                                  
4000d80c:	02 80 00 0d 	be  4000d840 <rtems_string_to_unsigned_int+0x84>
4000d810:	b0 10 20 0b 	mov  0xb, %i0                                  
    return RTEMS_INVALID_NUMBER;                                      
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MAX                                                
    /* there was an overflow */                                       
    if ( (result == STRING_TO_MAX) && (errno == ERANGE))              
4000d814:	80 a4 7f ff 	cmp  %l1, -1                                   
4000d818:	32 80 00 09 	bne,a   4000d83c <rtems_string_to_unsigned_int+0x80>
4000d81c:	e2 26 40 00 	st  %l1, [ %i1 ]                               
4000d820:	40 00 0a 9f 	call  4001029c <__errno>                       
4000d824:	b0 10 20 0a 	mov  0xa, %i0                                  
4000d828:	c2 02 00 00 	ld  [ %o0 ], %g1                               
4000d82c:	80 a0 60 22 	cmp  %g1, 0x22                                 
4000d830:	02 80 00 04 	be  4000d840 <rtems_string_to_unsigned_int+0x84><== ALWAYS TAKEN
4000d834:	01 00 00 00 	nop                                            
  #endif                                                              
                                                                      
  #if defined(STRING_TO_POINTER)                                      
    *n = (STRING_TO_TYPE) (uintptr_t)result;                          
  #else                                                               
    *n = (STRING_TO_TYPE) result;                                     
4000d838:	e2 26 40 00 	st  %l1, [ %i1 ]                               <== NOT EXECUTED
4000d83c:	b0 10 20 00 	clr  %i0                                       
  #endif                                                              
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
4000d840:	81 c7 e0 08 	ret                                            
4000d844:	81 e8 00 00 	restore                                        
                                                                      

4000d8ec <rtems_string_to_unsigned_long>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
4000d8ec:	9d e3 bf 98 	save  %sp, -104, %sp                           
4000d8f0:	a0 10 00 18 	mov  %i0, %l0                                  
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
4000d8f4:	80 a6 60 00 	cmp  %i1, 0                                    
4000d8f8:	02 80 00 1e 	be  4000d970 <rtems_string_to_unsigned_long+0x84>
4000d8fc:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
4000d900:	40 00 0a 67 	call  4001029c <__errno>                       
4000d904:	01 00 00 00 	nop                                            
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
4000d908:	94 10 00 1b 	mov  %i3, %o2                                  
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
4000d90c:	c0 22 00 00 	clr  [ %o0 ]                                   
  *n    = 0;                                                          
4000d910:	c0 26 40 00 	clr  [ %i1 ]                                   
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
4000d914:	90 10 00 10 	mov  %l0, %o0                                  
4000d918:	40 00 17 a0 	call  40013798 <strtoul>                       
4000d91c:	92 07 bf fc 	add  %fp, -4, %o1                              
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
4000d920:	80 a6 a0 00 	cmp  %i2, 0                                    
4000d924:	02 80 00 04 	be  4000d934 <rtems_string_to_unsigned_long+0x48>
4000d928:	a2 10 00 08 	mov  %o0, %l1                                  
    *endptr = end;                                                    
4000d92c:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
4000d930:	c2 26 80 00 	st  %g1, [ %i2 ]                               
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
4000d934:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
4000d938:	80 a0 40 10 	cmp  %g1, %l0                                  
4000d93c:	02 80 00 0d 	be  4000d970 <rtems_string_to_unsigned_long+0x84>
4000d940:	b0 10 20 0b 	mov  0xb, %i0                                  
    return RTEMS_INVALID_NUMBER;                                      
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MAX                                                
    /* there was an overflow */                                       
    if ( (result == STRING_TO_MAX) && (errno == ERANGE))              
4000d944:	80 a4 7f ff 	cmp  %l1, -1                                   
4000d948:	32 80 00 09 	bne,a   4000d96c <rtems_string_to_unsigned_long+0x80>
4000d94c:	e2 26 40 00 	st  %l1, [ %i1 ]                               
4000d950:	40 00 0a 53 	call  4001029c <__errno>                       
4000d954:	b0 10 20 0a 	mov  0xa, %i0                                  
4000d958:	c2 02 00 00 	ld  [ %o0 ], %g1                               
4000d95c:	80 a0 60 22 	cmp  %g1, 0x22                                 
4000d960:	02 80 00 04 	be  4000d970 <rtems_string_to_unsigned_long+0x84><== ALWAYS TAKEN
4000d964:	01 00 00 00 	nop                                            
  #endif                                                              
                                                                      
  #if defined(STRING_TO_POINTER)                                      
    *n = (STRING_TO_TYPE) (uintptr_t)result;                          
  #else                                                               
    *n = (STRING_TO_TYPE) result;                                     
4000d968:	e2 26 40 00 	st  %l1, [ %i1 ]                               <== NOT EXECUTED
4000d96c:	b0 10 20 00 	clr  %i0                                       
  #endif                                                              
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
4000d970:	81 c7 e0 08 	ret                                            
4000d974:	81 e8 00 00 	restore                                        
                                                                      

4000d848 <rtems_string_to_unsigned_long_long>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
4000d848:	9d e3 bf 98 	save  %sp, -104, %sp                           
4000d84c:	a0 10 00 18 	mov  %i0, %l0                                  
  STRING_TO_INPUT_TYPE  result;                                       
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
4000d850:	80 a6 60 00 	cmp  %i1, 0                                    
4000d854:	02 80 00 24 	be  4000d8e4 <rtems_string_to_unsigned_long_long+0x9c>
4000d858:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
4000d85c:	40 00 0a 90 	call  4001029c <__errno>                       
4000d860:	01 00 00 00 	nop                                            
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
4000d864:	94 10 00 1b 	mov  %i3, %o2                                  
  char                 *end;                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
4000d868:	c0 22 00 00 	clr  [ %o0 ]                                   
  *n    = 0;                                                          
4000d86c:	c0 26 40 00 	clr  [ %i1 ]                                   
4000d870:	c0 26 60 04 	clr  [ %i1 + 4 ]                               
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
4000d874:	90 10 00 10 	mov  %l0, %o0                                  
4000d878:	40 00 17 d2 	call  400137c0 <strtoull>                      
4000d87c:	92 07 bf fc 	add  %fp, -4, %o1                              
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
4000d880:	80 a6 a0 00 	cmp  %i2, 0                                    
  #ifdef STRING_TO_FLOAT                                              
    result = STRING_TO_METHOD( s, &end );                             
  #elif defined(STRING_TO_POINTER)                                    
    result = STRING_TO_METHOD( s, &end, 16 );                         
  #elif defined(STRING_TO_INTEGER)                                    
    result = STRING_TO_METHOD( s, &end, base );                       
4000d884:	a2 10 00 08 	mov  %o0, %l1                                  
  #endif                                                              
                                                                      
  /* If the user wants the end pointer back, then return it. */       
  if ( endptr )                                                       
4000d888:	02 80 00 04 	be  4000d898 <rtems_string_to_unsigned_long_long+0x50>
4000d88c:	a4 10 00 09 	mov  %o1, %l2                                  
    *endptr = end;                                                    
4000d890:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
4000d894:	c2 26 80 00 	st  %g1, [ %i2 ]                               
                                                                      
  /* nothing was converted */                                         
  if ( end == s )                                                     
4000d898:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
4000d89c:	80 a0 40 10 	cmp  %g1, %l0                                  
4000d8a0:	02 80 00 11 	be  4000d8e4 <rtems_string_to_unsigned_long_long+0x9c>
4000d8a4:	b0 10 20 0b 	mov  0xb, %i0                                  
    return RTEMS_INVALID_NUMBER;                                      
  #endif                                                              
                                                                      
  #ifdef STRING_TO_MAX                                                
    /* there was an overflow */                                       
    if ( (result == STRING_TO_MAX) && (errno == ERANGE))              
4000d8a8:	80 a4 7f ff 	cmp  %l1, -1                                   
4000d8ac:	32 80 00 0c 	bne,a   4000d8dc <rtems_string_to_unsigned_long_long+0x94>
4000d8b0:	e4 26 60 04 	st  %l2, [ %i1 + 4 ]                           
4000d8b4:	80 a4 bf ff 	cmp  %l2, -1                                   
4000d8b8:	32 80 00 09 	bne,a   4000d8dc <rtems_string_to_unsigned_long_long+0x94><== NEVER TAKEN
4000d8bc:	e4 26 60 04 	st  %l2, [ %i1 + 4 ]                           <== NOT EXECUTED
4000d8c0:	40 00 0a 77 	call  4001029c <__errno>                       
4000d8c4:	b0 10 20 0a 	mov  0xa, %i0                                  
4000d8c8:	c2 02 00 00 	ld  [ %o0 ], %g1                               
4000d8cc:	80 a0 60 22 	cmp  %g1, 0x22                                 
4000d8d0:	02 80 00 05 	be  4000d8e4 <rtems_string_to_unsigned_long_long+0x9c><== ALWAYS TAKEN
4000d8d4:	01 00 00 00 	nop                                            
  #endif                                                              
                                                                      
  #if defined(STRING_TO_POINTER)                                      
    *n = (STRING_TO_TYPE) (uintptr_t)result;                          
  #else                                                               
    *n = (STRING_TO_TYPE) result;                                     
4000d8d8:	e4 26 60 04 	st  %l2, [ %i1 + 4 ]                           <== NOT EXECUTED
4000d8dc:	e2 26 40 00 	st  %l1, [ %i1 ]                               
4000d8e0:	b0 10 20 00 	clr  %i0                                       
  #endif                                                              
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
4000d8e4:	81 c7 e0 08 	ret                                            
4000d8e8:	81 e8 00 00 	restore                                        
                                                                      

4000e3e8 <rtems_task_mode>: rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) {
4000e3e8:	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 )                                           
4000e3ec:	80 a6 a0 00 	cmp  %i2, 0                                    
4000e3f0:	02 80 00 54 	be  4000e540 <rtems_task_mode+0x158>           
4000e3f4:	82 10 20 09 	mov  9, %g1                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
4000e3f8:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
4000e3fc:	e0 00 62 2c 	ld  [ %g1 + 0x22c ], %l0	! 4001da2c <_Thread_Executing>
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
4000e400:	c4 0c 20 75 	ldub  [ %l0 + 0x75 ], %g2                      
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
4000e404:	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;
4000e408:	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 ];                
4000e40c:	e2 04 21 5c 	ld  [ %l0 + 0x15c ], %l1                       
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
4000e410:	a4 60 3f ff 	subx  %g0, -1, %l2                             
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
4000e414:	80 a0 60 00 	cmp  %g1, 0                                    
4000e418:	02 80 00 03 	be  4000e424 <rtems_task_mode+0x3c>            
4000e41c:	a5 2c a0 08 	sll  %l2, 8, %l2                               
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
4000e420:	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;                                                 
4000e424:	c2 0c 60 08 	ldub  [ %l1 + 8 ], %g1                         
4000e428:	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();                                       
4000e42c:	7f ff ee d1 	call  40009f70 <_CPU_ISR_Get_level>            
4000e430:	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;                                                 
4000e434:	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;           
4000e438:	a6 14 c0 08 	or  %l3, %o0, %l3                              
  old_mode |= _ISR_Get_level();                                       
                                                                      
  *previous_mode_set = old_mode;                                      
4000e43c:	a4 14 c0 12 	or  %l3, %l2, %l2                              
                                                                      
  /*                                                                  
   *  These are generic thread scheduling characteristics.            
   */                                                                 
                                                                      
  if ( mask & RTEMS_PREEMPT_MASK )                                    
4000e440:	80 8e 61 00 	btst  0x100, %i1                               
4000e444:	02 80 00 06 	be  4000e45c <rtems_task_mode+0x74>            
4000e448:	e4 26 80 00 	st  %l2, [ %i2 ]                               
    executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
4000e44c:	83 36 20 08 	srl  %i0, 8, %g1                               
4000e450:	82 18 60 01 	xor  %g1, 1, %g1                               
4000e454:	82 08 60 01 	and  %g1, 1, %g1                               
4000e458:	c2 2c 20 75 	stb  %g1, [ %l0 + 0x75 ]                       
                                                                      
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
4000e45c:	80 8e 62 00 	btst  0x200, %i1                               
4000e460:	02 80 00 0b 	be  4000e48c <rtems_task_mode+0xa4>            
4000e464:	80 8e 60 0f 	btst  0xf, %i1                                 
    if ( _Modes_Is_timeslice(mode_set) ) {                            
4000e468:	80 8e 22 00 	btst  0x200, %i0                               
4000e46c:	22 80 00 07 	be,a   4000e488 <rtems_task_mode+0xa0>         
4000e470:	c0 24 20 7c 	clr  [ %l0 + 0x7c ]                            
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
4000e474:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
4000e478:	c2 00 60 c8 	ld  [ %g1 + 0xc8 ], %g1	! 4001d8c8 <_Thread_Ticks_per_timeslice>
4000e47c:	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;
4000e480:	82 10 20 01 	mov  1, %g1                                    
4000e484:	c2 24 20 7c 	st  %g1, [ %l0 + 0x7c ]                        
                                                                      
  /*                                                                  
   *  Set the new interrupt level                                     
   */                                                                 
                                                                      
  if ( mask & RTEMS_INTERRUPT_MASK )                                  
4000e488:	80 8e 60 0f 	btst  0xf, %i1                                 
4000e48c:	02 80 00 06 	be  4000e4a4 <rtems_task_mode+0xbc>            
4000e490:	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 ) );           
4000e494:	90 0e 20 0f 	and  %i0, 0xf, %o0                             
4000e498:	7f ff ce 31 	call  40001d5c <sparc_enable_interrupts>       
4000e49c:	91 2a 20 08 	sll  %o0, 8, %o0                               
   */                                                                 
                                                                      
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
4000e4a0:	80 8e 64 00 	btst  0x400, %i1                               
4000e4a4:	22 80 00 18 	be,a   4000e504 <rtems_task_mode+0x11c>        
4000e4a8:	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;                                                 
4000e4ac:	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(                                    
4000e4b0:	b1 36 20 0a 	srl  %i0, 0xa, %i0                             
4000e4b4:	b0 1e 20 01 	xor  %i0, 1, %i0                               
4000e4b8:	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;                                                 
4000e4bc:	80 a6 00 01 	cmp  %i0, %g1                                  
4000e4c0:	22 80 00 11 	be,a   4000e504 <rtems_task_mode+0x11c>        
4000e4c4:	a0 10 20 00 	clr  %l0                                       
)                                                                     
{                                                                     
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
4000e4c8:	7f ff ce 21 	call  40001d4c <sparc_disable_interrupts>      
4000e4cc:	f0 2c 60 08 	stb  %i0, [ %l1 + 8 ]                          
    _signals                     = information->signals_pending;      
4000e4d0:	c4 04 60 18 	ld  [ %l1 + 0x18 ], %g2                        
    information->signals_pending = information->signals_posted;       
4000e4d4:	c2 04 60 14 	ld  [ %l1 + 0x14 ], %g1                        
    information->signals_posted  = _signals;                          
4000e4d8:	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;       
4000e4dc:	c2 24 60 18 	st  %g1, [ %l1 + 0x18 ]                        
    information->signals_posted  = _signals;                          
  _ISR_Enable( _level );                                              
4000e4e0:	7f ff ce 1f 	call  40001d5c <sparc_enable_interrupts>       
4000e4e4:	01 00 00 00 	nop                                            
4000e4e8:	c2 04 60 14 	ld  [ %l1 + 0x14 ], %g1                        
4000e4ec:	80 a0 60 00 	cmp  %g1, 0                                    
4000e4f0:	22 80 00 05 	be,a   4000e504 <rtems_task_mode+0x11c>        
4000e4f4:	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;              
4000e4f8:	82 10 20 01 	mov  1, %g1                                    
4000e4fc:	c2 2c 20 74 	stb  %g1, [ %l0 + 0x74 ]                       
4000e500:	a0 10 20 01 	mov  1, %l0                                    
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) )                   
4000e504:	03 10 00 76 	sethi  %hi(0x4001d800), %g1                    
4000e508:	c2 00 63 10 	ld  [ %g1 + 0x310 ], %g1	! 4001db10 <_System_state_Current>
4000e50c:	80 a0 60 03 	cmp  %g1, 3                                    
4000e510:	12 80 00 0c 	bne  4000e540 <rtems_task_mode+0x158>          <== NEVER TAKEN
4000e514:	82 10 20 00 	clr  %g1                                       
    if ( _Thread_Evaluate_mode() || needs_asr_dispatching )           
4000e518:	40 00 00 bc 	call  4000e808 <_Thread_Evaluate_mode>         
4000e51c:	01 00 00 00 	nop                                            
4000e520:	80 8a 20 ff 	btst  0xff, %o0                                
4000e524:	12 80 00 04 	bne  4000e534 <rtems_task_mode+0x14c>          
4000e528:	80 8c 20 ff 	btst  0xff, %l0                                
4000e52c:	02 80 00 05 	be  4000e540 <rtems_task_mode+0x158>           
4000e530:	82 10 20 00 	clr  %g1                                       
      _Thread_Dispatch();                                             
4000e534:	7f ff e7 f5 	call  40008508 <_Thread_Dispatch>              
4000e538:	01 00 00 00 	nop                                            
4000e53c:	82 10 20 00 	clr  %g1	! 0 <PROM_START>                      
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
4000e540:	81 c7 e0 08 	ret                                            
4000e544:	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 8e 	sethi  %hi(0x40023800), %g1                    
4000ba58:	c2 08 61 34 	ldub  [ %g1 + 0x134 ], %g1	! 40023934 <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 3e 	call  4000db6c <_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 98 	call  4000d520 <_Thread_Change_priority>       
4000bac4:	94 10 20 00 	clr  %o2                                       
      }                                                               
      _Thread_Enable_dispatch();                                      
4000bac8:	40 00 08 06 	call  4000dae0 <_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                                        
                                                                      

400051f4 <rtems_termios_baud_to_index>: #include <rtems/termiostypes.h> int rtems_termios_baud_to_index( rtems_termios_baud_t termios_baud ) {
400051f4:	82 10 00 08 	mov  %o0, %g1                                  
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
400051f8:	80 a2 20 09 	cmp  %o0, 9                                    
400051fc:	02 80 00 19 	be  40005260 <rtems_termios_baud_to_index+0x6c><== NEVER TAKEN
40005200:	90 10 20 09 	mov  9, %o0                                    
40005204:	80 a0 60 09 	cmp  %g1, 9                                    
40005208:	14 80 00 25 	bg  4000529c <rtems_termios_baud_to_index+0xa8><== NEVER TAKEN
4000520c:	80 a0 60 0e 	cmp  %g1, 0xe                                  
40005210:	80 a0 60 04 	cmp  %g1, 4                                    
40005214:	02 80 00 13 	be  40005260 <rtems_termios_baud_to_index+0x6c><== NEVER TAKEN
40005218:	90 10 20 04 	mov  4, %o0                                    
4000521c:	80 a0 60 04 	cmp  %g1, 4                                    
40005220:	14 80 00 12 	bg  40005268 <rtems_termios_baud_to_index+0x74><== NEVER TAKEN
40005224:	80 a0 60 06 	cmp  %g1, 6                                    
40005228:	80 a0 60 01 	cmp  %g1, 1                                    
4000522c:	02 80 00 0d 	be  40005260 <rtems_termios_baud_to_index+0x6c><== NEVER TAKEN
40005230:	90 10 20 01 	mov  1, %o0                                    
40005234:	80 a0 60 01 	cmp  %g1, 1                                    
40005238:	34 80 00 05 	bg,a   4000524c <rtems_termios_baud_to_index+0x58><== NEVER TAKEN
4000523c:	80 a0 60 02 	cmp  %g1, 2                                    <== NOT EXECUTED
40005240:	80 a0 60 00 	cmp  %g1, 0                                    
40005244:	10 80 00 3f 	b  40005340 <rtems_termios_baud_to_index+0x14c>
40005248:	90 10 20 00 	clr  %o0                                       
4000524c:	02 80 00 05 	be  40005260 <rtems_termios_baud_to_index+0x6c><== NOT EXECUTED
40005250:	90 10 20 02 	mov  2, %o0                                    <== NOT EXECUTED
40005254:	80 a0 60 03 	cmp  %g1, 3                                    <== NOT EXECUTED
40005258:	12 80 00 3c 	bne  40005348 <rtems_termios_baud_to_index+0x154><== NOT EXECUTED
4000525c:	90 10 20 03 	mov  3, %o0                                    <== NOT EXECUTED
40005260:	81 c3 e0 08 	retl                                           <== NOT EXECUTED
40005264:	01 00 00 00 	nop                                            <== NOT EXECUTED
40005268:	02 bf ff fe 	be  40005260 <rtems_termios_baud_to_index+0x6c><== NOT EXECUTED
4000526c:	90 10 20 06 	mov  6, %o0	! 6 <PROM_START+0x6>               <== NOT EXECUTED
40005270:	80 a0 60 06 	cmp  %g1, 6                                    <== NOT EXECUTED
40005274:	06 bf ff fb 	bl  40005260 <rtems_termios_baud_to_index+0x6c><== NOT EXECUTED
40005278:	90 10 20 05 	mov  5, %o0                                    <== NOT EXECUTED
4000527c:	80 a0 60 07 	cmp  %g1, 7                                    <== NOT EXECUTED
40005280:	02 bf ff f8 	be  40005260 <rtems_termios_baud_to_index+0x6c><== NOT EXECUTED
40005284:	90 10 20 07 	mov  7, %o0                                    <== NOT EXECUTED
40005288:	80 a0 60 08 	cmp  %g1, 8                                    <== NOT EXECUTED
4000528c:	12 80 00 2f 	bne  40005348 <rtems_termios_baud_to_index+0x154><== NOT EXECUTED
40005290:	90 10 20 08 	mov  8, %o0                                    <== NOT EXECUTED
40005294:	81 c3 e0 08 	retl                                           <== NOT EXECUTED
40005298:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000529c:	02 bf ff f1 	be  40005260 <rtems_termios_baud_to_index+0x6c><== NOT EXECUTED
400052a0:	90 10 20 0e 	mov  0xe, %o0	! e <PROM_START+0xe>             <== NOT EXECUTED
400052a4:	80 a0 60 0e 	cmp  %g1, 0xe                                  <== NOT EXECUTED
400052a8:	14 80 00 10 	bg  400052e8 <rtems_termios_baud_to_index+0xf4><== NOT EXECUTED
400052ac:	05 00 00 04 	sethi  %hi(0x1000), %g2                        <== NOT EXECUTED
400052b0:	80 a0 60 0b 	cmp  %g1, 0xb                                  <== NOT EXECUTED
400052b4:	02 bf ff eb 	be  40005260 <rtems_termios_baud_to_index+0x6c><== NOT EXECUTED
400052b8:	90 10 20 0b 	mov  0xb, %o0                                  <== NOT EXECUTED
400052bc:	80 a0 60 0b 	cmp  %g1, 0xb                                  <== NOT EXECUTED
400052c0:	06 bf ff e8 	bl  40005260 <rtems_termios_baud_to_index+0x6c><== NOT EXECUTED
400052c4:	90 10 20 0a 	mov  0xa, %o0                                  <== NOT EXECUTED
400052c8:	80 a0 60 0c 	cmp  %g1, 0xc                                  <== NOT EXECUTED
400052cc:	02 bf ff e5 	be  40005260 <rtems_termios_baud_to_index+0x6c><== NOT EXECUTED
400052d0:	90 10 20 0c 	mov  0xc, %o0                                  <== NOT EXECUTED
400052d4:	80 a0 60 0d 	cmp  %g1, 0xd                                  <== NOT EXECUTED
400052d8:	12 80 00 1c 	bne  40005348 <rtems_termios_baud_to_index+0x154><== NOT EXECUTED
400052dc:	90 10 20 0d 	mov  0xd, %o0                                  <== NOT EXECUTED
400052e0:	81 c3 e0 08 	retl                                           <== NOT EXECUTED
400052e4:	01 00 00 00 	nop                                            <== NOT EXECUTED
400052e8:	86 10 a0 02 	or  %g2, 2, %g3                                <== NOT EXECUTED
400052ec:	80 a0 40 03 	cmp  %g1, %g3                                  <== NOT EXECUTED
400052f0:	02 bf ff dc 	be  40005260 <rtems_termios_baud_to_index+0x6c><== NOT EXECUTED
400052f4:	90 10 20 11 	mov  0x11, %o0                                 <== NOT EXECUTED
400052f8:	80 a0 40 03 	cmp  %g1, %g3                                  <== NOT EXECUTED
400052fc:	34 80 00 0b 	bg,a   40005328 <rtems_termios_baud_to_index+0x134><== NOT EXECUTED
40005300:	86 10 a0 03 	or  %g2, 3, %g3                                <== NOT EXECUTED
40005304:	80 a0 60 0f 	cmp  %g1, 0xf                                  <== NOT EXECUTED
40005308:	02 bf ff d6 	be  40005260 <rtems_termios_baud_to_index+0x6c><== NOT EXECUTED
4000530c:	90 10 20 0f 	mov  0xf, %o0                                  <== NOT EXECUTED
40005310:	84 10 a0 01 	or  %g2, 1, %g2                                <== NOT EXECUTED
40005314:	80 a0 40 02 	cmp  %g1, %g2                                  <== NOT EXECUTED
40005318:	12 80 00 0c 	bne  40005348 <rtems_termios_baud_to_index+0x154><== NOT EXECUTED
4000531c:	90 10 20 10 	mov  0x10, %o0                                 <== NOT EXECUTED
40005320:	81 c3 e0 08 	retl                                           <== NOT EXECUTED
40005324:	01 00 00 00 	nop                                            <== NOT EXECUTED
40005328:	80 a0 40 03 	cmp  %g1, %g3                                  <== NOT EXECUTED
4000532c:	02 bf ff cd 	be  40005260 <rtems_termios_baud_to_index+0x6c><== NOT EXECUTED
40005330:	90 10 20 12 	mov  0x12, %o0                                 <== NOT EXECUTED
40005334:	84 10 a0 04 	or  %g2, 4, %g2                                <== NOT EXECUTED
    case B9600:     baud_index = 13;  break;                          
    case B19200:    baud_index = 14;  break;                          
    case B38400:    baud_index = 15;  break;                          
    case B57600:    baud_index = 16;  break;                          
    case B115200:   baud_index = 17;  break;                          
    case B230400:   baud_index = 18;  break;                          
40005338:	90 10 20 13 	mov  0x13, %o0                                 <== NOT EXECUTED
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
4000533c:	80 a0 40 02 	cmp  %g1, %g2                                  <== NOT EXECUTED
40005340:	02 80 00 03 	be  4000534c <rtems_termios_baud_to_index+0x158><== NEVER TAKEN
40005344:	01 00 00 00 	nop                                            
    case B19200:    baud_index = 14;  break;                          
    case B38400:    baud_index = 15;  break;                          
    case B57600:    baud_index = 16;  break;                          
    case B115200:   baud_index = 17;  break;                          
    case B230400:   baud_index = 18;  break;                          
    case B460800:   baud_index = 19;  break;                          
40005348:	90 10 3f ff 	mov  -1, %o0	! ffffffff <LEON_REG+0x7fffffff>  
    default:        baud_index = -1;  break;                          
  }                                                                   
                                                                      
  return baud_index;                                                  
}                                                                     
4000534c:	81 c3 e0 08 	retl                                           
                                                                      

40005354 <rtems_termios_baud_to_number>: #include <rtems/termiostypes.h> int32_t rtems_termios_baud_to_number( int termios_baud ) {
40005354:	82 10 00 08 	mov  %o0, %g1                                  
  int32_t baud;                                                       
                                                                      
  switch (termios_baud) {                                             
40005358:	80 a2 20 09 	cmp  %o0, 9                                    
4000535c:	02 80 00 19 	be  400053c0 <rtems_termios_baud_to_number+0x6c>
40005360:	90 10 24 b0 	mov  0x4b0, %o0                                
40005364:	80 a0 60 09 	cmp  %g1, 9                                    
40005368:	14 80 00 25 	bg  400053fc <rtems_termios_baud_to_number+0xa8>
4000536c:	11 00 00 12 	sethi  %hi(0x4800), %o0                        
40005370:	80 a0 60 04 	cmp  %g1, 4                                    
40005374:	02 80 00 13 	be  400053c0 <rtems_termios_baud_to_number+0x6c>
40005378:	90 10 20 86 	mov  0x86, %o0                                 
4000537c:	80 a0 60 04 	cmp  %g1, 4                                    
40005380:	14 80 00 12 	bg  400053c8 <rtems_termios_baud_to_number+0x74>
40005384:	80 a0 60 06 	cmp  %g1, 6                                    
40005388:	80 a0 60 01 	cmp  %g1, 1                                    
4000538c:	02 80 00 0d 	be  400053c0 <rtems_termios_baud_to_number+0x6c>
40005390:	90 10 20 32 	mov  0x32, %o0                                 
40005394:	80 a0 60 01 	cmp  %g1, 1                                    
40005398:	34 80 00 05 	bg,a   400053ac <rtems_termios_baud_to_number+0x58>
4000539c:	80 a0 60 02 	cmp  %g1, 2                                    
400053a0:	80 a0 60 00 	cmp  %g1, 0                                    
400053a4:	10 80 00 45 	b  400054b8 <rtems_termios_baud_to_number+0x164>
400053a8:	90 10 20 00 	clr  %o0                                       
400053ac:	02 80 00 05 	be  400053c0 <rtems_termios_baud_to_number+0x6c>
400053b0:	90 10 20 4b 	mov  0x4b, %o0                                 
400053b4:	80 a0 60 03 	cmp  %g1, 3                                    
400053b8:	12 80 00 42 	bne  400054c0 <rtems_termios_baud_to_number+0x16c><== NEVER TAKEN
400053bc:	90 10 20 6e 	mov  0x6e, %o0                                 
400053c0:	81 c3 e0 08 	retl                                           
400053c4:	01 00 00 00 	nop                                            
400053c8:	02 bf ff fe 	be  400053c0 <rtems_termios_baud_to_number+0x6c>
400053cc:	90 10 20 c8 	mov  0xc8, %o0	! c8 <PROM_START+0xc8>          
400053d0:	80 a0 60 06 	cmp  %g1, 6                                    
400053d4:	06 bf ff fb 	bl  400053c0 <rtems_termios_baud_to_number+0x6c>
400053d8:	90 10 20 96 	mov  0x96, %o0                                 
400053dc:	80 a0 60 07 	cmp  %g1, 7                                    
400053e0:	02 bf ff f8 	be  400053c0 <rtems_termios_baud_to_number+0x6c>
400053e4:	90 10 21 2c 	mov  0x12c, %o0                                
400053e8:	80 a0 60 08 	cmp  %g1, 8                                    
400053ec:	12 80 00 35 	bne  400054c0 <rtems_termios_baud_to_number+0x16c><== NEVER TAKEN
400053f0:	90 10 22 58 	mov  0x258, %o0                                
400053f4:	81 c3 e0 08 	retl                                           
400053f8:	01 00 00 00 	nop                                            
400053fc:	80 a0 60 0e 	cmp  %g1, 0xe                                  
40005400:	02 bf ff f0 	be  400053c0 <rtems_termios_baud_to_number+0x6c>
40005404:	90 12 23 00 	or  %o0, 0x300, %o0                            
40005408:	80 a0 60 0e 	cmp  %g1, 0xe                                  
4000540c:	14 80 00 12 	bg  40005454 <rtems_termios_baud_to_number+0x100>
40005410:	05 00 00 04 	sethi  %hi(0x1000), %g2                        
40005414:	80 a0 60 0b 	cmp  %g1, 0xb                                  
40005418:	02 bf ff ea 	be  400053c0 <rtems_termios_baud_to_number+0x6c>
4000541c:	90 10 29 60 	mov  0x960, %o0                                
40005420:	80 a0 60 0b 	cmp  %g1, 0xb                                  
40005424:	06 bf ff e7 	bl  400053c0 <rtems_termios_baud_to_number+0x6c>
40005428:	90 10 27 08 	mov  0x708, %o0                                
    case B200:      baud =    200;  break;                            
    case B300:      baud =    300;  break;                            
    case B600:      baud =    600;  break;                            
    case B1200:     baud =   1200;  break;                            
    case B1800:     baud =   1800;  break;                            
    case B2400:     baud =   2400;  break;                            
4000542c:	90 02 28 f8 	add  %o0, 0x8f8, %o0                           
  int termios_baud                                                    
)                                                                     
{                                                                     
  int32_t baud;                                                       
                                                                      
  switch (termios_baud) {                                             
40005430:	80 a0 60 0c 	cmp  %g1, 0xc                                  
40005434:	02 bf ff e3 	be  400053c0 <rtems_termios_baud_to_number+0x6c>
40005438:	90 12 22 c0 	or  %o0, 0x2c0, %o0                            
    case B300:      baud =    300;  break;                            
    case B600:      baud =    600;  break;                            
    case B1200:     baud =   1200;  break;                            
    case B1800:     baud =   1800;  break;                            
    case B2400:     baud =   2400;  break;                            
    case B4800:     baud =   4800;  break;                            
4000543c:	11 00 00 09 	sethi  %hi(0x2400), %o0                        
  int termios_baud                                                    
)                                                                     
{                                                                     
  int32_t baud;                                                       
                                                                      
  switch (termios_baud) {                                             
40005440:	80 a0 60 0d 	cmp  %g1, 0xd                                  
40005444:	12 80 00 1f 	bne  400054c0 <rtems_termios_baud_to_number+0x16c><== NEVER TAKEN
40005448:	90 12 21 80 	or  %o0, 0x180, %o0                            
4000544c:	81 c3 e0 08 	retl                                           
40005450:	01 00 00 00 	nop                                            
    case B2400:     baud =   2400;  break;                            
    case B4800:     baud =   4800;  break;                            
    case B9600:     baud =   9600;  break;                            
    case B19200:    baud =  19200;  break;                            
    case B38400:    baud =  38400;  break;                            
    case B57600:    baud =  57600;  break;                            
40005454:	11 00 00 70 	sethi  %hi(0x1c000), %o0                       
  int termios_baud                                                    
)                                                                     
{                                                                     
  int32_t baud;                                                       
                                                                      
  switch (termios_baud) {                                             
40005458:	86 10 a0 02 	or  %g2, 2, %g3                                
4000545c:	80 a0 40 03 	cmp  %g1, %g3                                  
40005460:	02 bf ff d8 	be  400053c0 <rtems_termios_baud_to_number+0x6c>
40005464:	90 12 22 00 	or  %o0, 0x200, %o0                            
40005468:	80 a0 40 03 	cmp  %g1, %g3                                  
4000546c:	34 80 00 0d 	bg,a   400054a0 <rtems_termios_baud_to_number+0x14c>
40005470:	86 10 a0 03 	or  %g2, 3, %g3                                
    case B1200:     baud =   1200;  break;                            
    case B1800:     baud =   1800;  break;                            
    case B2400:     baud =   2400;  break;                            
    case B4800:     baud =   4800;  break;                            
    case B9600:     baud =   9600;  break;                            
    case B19200:    baud =  19200;  break;                            
40005474:	11 00 00 25 	sethi  %hi(0x9400), %o0                        
  int termios_baud                                                    
)                                                                     
{                                                                     
  int32_t baud;                                                       
                                                                      
  switch (termios_baud) {                                             
40005478:	80 a0 60 0f 	cmp  %g1, 0xf                                  
4000547c:	02 bf ff d1 	be  400053c0 <rtems_termios_baud_to_number+0x6c>
40005480:	90 12 22 00 	or  %o0, 0x200, %o0                            
40005484:	84 10 a0 01 	or  %g2, 1, %g2                                
    case B1800:     baud =   1800;  break;                            
    case B2400:     baud =   2400;  break;                            
    case B4800:     baud =   4800;  break;                            
    case B9600:     baud =   9600;  break;                            
    case B19200:    baud =  19200;  break;                            
    case B38400:    baud =  38400;  break;                            
40005488:	11 00 00 38 	sethi  %hi(0xe000), %o0                        
  int termios_baud                                                    
)                                                                     
{                                                                     
  int32_t baud;                                                       
                                                                      
  switch (termios_baud) {                                             
4000548c:	80 a0 40 02 	cmp  %g1, %g2                                  
40005490:	12 80 00 0c 	bne  400054c0 <rtems_termios_baud_to_number+0x16c><== NEVER TAKEN
40005494:	90 12 21 00 	or  %o0, 0x100, %o0                            
40005498:	81 c3 e0 08 	retl                                           
4000549c:	01 00 00 00 	nop                                            
400054a0:	80 a0 40 03 	cmp  %g1, %g3                                  
400054a4:	02 bf ff c7 	be  400053c0 <rtems_termios_baud_to_number+0x6c>
400054a8:	11 00 00 e1 	sethi  %hi(0x38400), %o0                       
400054ac:	84 10 a0 04 	or  %g2, 4, %g2                                
    case B9600:     baud =   9600;  break;                            
    case B19200:    baud =  19200;  break;                            
    case B38400:    baud =  38400;  break;                            
    case B57600:    baud =  57600;  break;                            
    case B115200:   baud = 115200;  break;                            
    case B230400:   baud = 230400;  break;                            
400054b0:	11 00 01 c2 	sethi  %hi(0x70800), %o0                       
  int termios_baud                                                    
)                                                                     
{                                                                     
  int32_t baud;                                                       
                                                                      
  switch (termios_baud) {                                             
400054b4:	80 a0 40 02 	cmp  %g1, %g2                                  
400054b8:	02 80 00 03 	be  400054c4 <rtems_termios_baud_to_number+0x170>
400054bc:	01 00 00 00 	nop                                            
    case B19200:    baud =  19200;  break;                            
    case B38400:    baud =  38400;  break;                            
    case B57600:    baud =  57600;  break;                            
    case B115200:   baud = 115200;  break;                            
    case B230400:   baud = 230400;  break;                            
    case B460800:   baud = 460800;  break;                            
400054c0:	90 10 3f ff 	mov  -1, %o0	! ffffffff <LEON_REG+0x7fffffff>  
    default:        baud =     -1;  break;                            
  }                                                                   
                                                                      
  return baud;                                                        
}                                                                     
400054c4:	81 c3 e0 08 	retl                                           
                                                                      

40003d1c <rtems_termios_bufsize>: int cbufsize, int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize;
40003d1c:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    <== NOT EXECUTED
40003d20:	d0 20 63 08 	st  %o0, [ %g1 + 0x308 ]	! 4001cf08 <rtems_termios_cbufsize><== NOT EXECUTED
  rtems_termios_raw_input_size  = raw_input;                          
40003d24:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    <== NOT EXECUTED
  rtems_termios_raw_output_size = raw_output;                         
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
40003d28:	90 10 20 00 	clr  %o0                                       <== NOT EXECUTED
  int raw_input,                                                      
  int raw_output                                                      
)                                                                     
{                                                                     
  rtems_termios_cbufsize        = cbufsize;                           
  rtems_termios_raw_input_size  = raw_input;                          
40003d2c:	d2 20 63 0c 	st  %o1, [ %g1 + 0x30c ]                       <== NOT EXECUTED
  rtems_termios_raw_output_size = raw_output;                         
40003d30:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    <== NOT EXECUTED
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
40003d34:	81 c3 e0 08 	retl                                           <== NOT EXECUTED
40003d38:	d4 20 63 10 	st  %o2, [ %g1 + 0x310 ]	! 4001cf10 <rtems_termios_raw_output_size><== NOT EXECUTED
                                                                      

40005378 <rtems_termios_close>: } } rtems_status_code rtems_termios_close (void *arg) {
40005378:	9d e3 bf a0 	save  %sp, -96, %sp                            
	rtems_libio_open_close_args_t *args = arg;                           
	struct rtems_termios_tty *tty = args->iop->data1;                    
	rtems_status_code sc;                                                
                                                                      
	sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
4000537c:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
40005380:	d0 00 63 e4 	ld  [ %g1 + 0x3e4 ], %o0	! 4001d7e4 <rtems_termios_ttyMutex>
                                                                      
rtems_status_code                                                     
rtems_termios_close (void *arg)                                       
{                                                                     
	rtems_libio_open_close_args_t *args = arg;                           
	struct rtems_termios_tty *tty = args->iop->data1;                    
40005384:	c2 06 00 00 	ld  [ %i0 ], %g1                               
	rtems_status_code sc;                                                
                                                                      
	sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
40005388:	92 10 20 00 	clr  %o1                                       
                                                                      
rtems_status_code                                                     
rtems_termios_close (void *arg)                                       
{                                                                     
	rtems_libio_open_close_args_t *args = arg;                           
	struct rtems_termios_tty *tty = args->iop->data1;                    
4000538c:	e0 00 60 38 	ld  [ %g1 + 0x38 ], %l0                        
	rtems_status_code sc;                                                
                                                                      
	sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
40005390:	40 00 04 57 	call  400064ec <rtems_semaphore_obtain>        
40005394:	94 10 20 00 	clr  %o2                                       
	if (sc != RTEMS_SUCCESSFUL)                                          
40005398:	80 a2 20 00 	cmp  %o0, 0                                    
4000539c:	12 80 00 2c 	bne  4000544c <rtems_termios_close+0xd4>       <== NEVER TAKEN
400053a0:	01 00 00 00 	nop                                            
		rtems_fatal_error_occurred (sc);                                    
	if (--tty->refcount == 0) {                                          
400053a4:	c2 04 20 08 	ld  [ %l0 + 8 ], %g1                           
400053a8:	82 00 7f ff 	add  %g1, -1, %g1                              
400053ac:	80 a0 60 00 	cmp  %g1, 0                                    
400053b0:	12 80 00 5e 	bne  40005528 <rtems_termios_close+0x1b0>      
400053b4:	c2 24 20 08 	st  %g1, [ %l0 + 8 ]                           
                if (rtems_termios_linesw[tty->t_line].l_close != NULL) {
400053b8:	c4 04 20 cc 	ld  [ %l0 + 0xcc ], %g2                        
400053bc:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
400053c0:	85 28 a0 05 	sll  %g2, 5, %g2                               
400053c4:	82 10 60 d4 	or  %g1, 0xd4, %g1                             
400053c8:	82 00 40 02 	add  %g1, %g2, %g1                             
400053cc:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
400053d0:	80 a0 60 00 	cmp  %g1, 0                                    
400053d4:	22 80 00 06 	be,a   400053ec <rtems_termios_close+0x74>     <== ALWAYS TAKEN
400053d8:	d0 04 20 18 	ld  [ %l0 + 0x18 ], %o0                        
			/*                                                                 
			 * call discipline-specific close                                  
			 */                                                                
			sc = rtems_termios_linesw[tty->t_line].l_close(tty);               
400053dc:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
400053e0:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
				rtems_fatal_error_occurred (sc);                                  
			}                                                                  
		        drainOutput (tty);                                          
		}                                                                   
                                                                      
		if (tty->device.outputUsesInterrupts                                
400053e4:	10 80 00 0b 	b  40005410 <rtems_termios_close+0x98>         <== NOT EXECUTED
400053e8:	c2 04 20 b4 	ld  [ %l0 + 0xb4 ], %g1                        <== NOT EXECUTED
		}                                                                   
		else {                                                              
			/*                                                                 
			 * default: just flush output buffer                               
			 */                                                                
			sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
400053ec:	92 10 20 00 	clr  %o1                                       
400053f0:	40 00 04 3f 	call  400064ec <rtems_semaphore_obtain>        
400053f4:	94 10 20 00 	clr  %o2                                       
			if (sc != RTEMS_SUCCESSFUL) {                                      
400053f8:	80 a2 20 00 	cmp  %o0, 0                                    
400053fc:	12 80 00 14 	bne  4000544c <rtems_termios_close+0xd4>       <== NEVER TAKEN
40005400:	01 00 00 00 	nop                                            
				rtems_fatal_error_occurred (sc);                                  
			}                                                                  
		        drainOutput (tty);                                          
40005404:	7f ff fd d0 	call  40004b44 <drainOutput>                   
40005408:	90 10 00 10 	mov  %l0, %o0                                  
		}                                                                   
                                                                      
		if (tty->device.outputUsesInterrupts                                
4000540c:	c2 04 20 b4 	ld  [ %l0 + 0xb4 ], %g1                        
40005410:	80 a0 60 02 	cmp  %g1, 2                                    
40005414:	32 80 00 10 	bne,a   40005454 <rtems_termios_close+0xdc>    <== ALWAYS TAKEN
40005418:	c2 04 20 9c 	ld  [ %l0 + 0x9c ], %g1                        
		    == TERMIOS_TASK_DRIVEN) {                                       
			/*                                                                 
			 * send "terminate" to I/O tasks                                   
			 */                                                                
			sc = rtems_event_send(                                             
4000541c:	d0 04 20 c4 	ld  [ %l0 + 0xc4 ], %o0                        <== NOT EXECUTED
40005420:	40 00 02 f4 	call  40005ff0 <rtems_event_send>              <== NOT EXECUTED
40005424:	92 10 20 01 	mov  1, %o1                                    <== NOT EXECUTED
                                  tty->rxTaskId,                      
				  TERMIOS_RX_TERMINATE_EVENT);                                    
			if (sc != RTEMS_SUCCESSFUL)                                        
40005428:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000542c:	12 80 00 08 	bne  4000544c <rtems_termios_close+0xd4>       <== NOT EXECUTED
40005430:	01 00 00 00 	nop                                            <== NOT EXECUTED
				rtems_fatal_error_occurred (sc);                                  
			sc = rtems_event_send(                                             
40005434:	d0 04 20 c8 	ld  [ %l0 + 0xc8 ], %o0                        <== NOT EXECUTED
40005438:	40 00 02 ee 	call  40005ff0 <rtems_event_send>              <== NOT EXECUTED
4000543c:	92 10 20 01 	mov  1, %o1                                    <== NOT EXECUTED
                                  tty->txTaskId,                      
				  TERMIOS_TX_TERMINATE_EVENT);                                    
			if (sc != RTEMS_SUCCESSFUL)                                        
40005440:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
40005444:	22 80 00 04 	be,a   40005454 <rtems_termios_close+0xdc>     <== NOT EXECUTED
40005448:	c2 04 20 9c 	ld  [ %l0 + 0x9c ], %g1                        <== NOT EXECUTED
				rtems_fatal_error_occurred (sc);                                  
4000544c:	40 00 05 d1 	call  40006b90 <rtems_fatal_error_occurred>    <== NOT EXECUTED
40005450:	01 00 00 00 	nop                                            <== NOT EXECUTED
		}                                                                   
		if (tty->device.lastClose)                                          
40005454:	80 a0 60 00 	cmp  %g1, 0                                    
40005458:	22 80 00 07 	be,a   40005474 <rtems_termios_close+0xfc>     <== ALWAYS TAKEN
4000545c:	c4 04 00 00 	ld  [ %l0 ], %g2                               
			 (*tty->device.lastClose)(tty->major, tty->minor, arg);            
40005460:	d0 04 20 0c 	ld  [ %l0 + 0xc ], %o0                         <== NOT EXECUTED
40005464:	d2 04 20 10 	ld  [ %l0 + 0x10 ], %o1                        <== NOT EXECUTED
40005468:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
4000546c:	94 10 00 18 	mov  %i0, %o2                                  <== NOT EXECUTED
		if (tty->forw == NULL) {                                            
40005470:	c4 04 00 00 	ld  [ %l0 ], %g2                               <== NOT EXECUTED
40005474:	80 a0 a0 00 	cmp  %g2, 0                                    
40005478:	12 80 00 08 	bne  40005498 <rtems_termios_close+0x120>      
4000547c:	c2 04 20 04 	ld  [ %l0 + 4 ], %g1                           
			rtems_termios_ttyTail = tty->back;                                 
40005480:	05 10 00 75 	sethi  %hi(0x4001d400), %g2                    
			if ( rtems_termios_ttyTail != NULL ) {                             
40005484:	80 a0 60 00 	cmp  %g1, 0                                    
40005488:	02 80 00 05 	be  4000549c <rtems_termios_close+0x124>       <== ALWAYS TAKEN
4000548c:	c2 20 a3 e8 	st  %g1, [ %g2 + 0x3e8 ]                       
				rtems_termios_ttyTail->forw = NULL;                               
40005490:	10 80 00 03 	b  4000549c <rtems_termios_close+0x124>        <== NOT EXECUTED
40005494:	c0 20 40 00 	clr  [ %g1 ]                                   <== NOT EXECUTED
			}                                                                  
		}                                                                   
		else {                                                              
			tty->forw->back = tty->back;                                       
40005498:	c2 20 a0 04 	st  %g1, [ %g2 + 4 ]                           
		}                                                                   
		if (tty->back == NULL) {                                            
4000549c:	c4 04 20 04 	ld  [ %l0 + 4 ], %g2                           
400054a0:	80 a0 a0 00 	cmp  %g2, 0                                    
400054a4:	12 80 00 08 	bne  400054c4 <rtems_termios_close+0x14c>      <== NEVER TAKEN
400054a8:	c2 04 00 00 	ld  [ %l0 ], %g1                               
			rtems_termios_ttyHead = tty->forw;                                 
400054ac:	05 10 00 75 	sethi  %hi(0x4001d400), %g2                    
			if ( rtems_termios_ttyHead != NULL ) {                             
400054b0:	80 a0 60 00 	cmp  %g1, 0                                    
400054b4:	02 80 00 05 	be  400054c8 <rtems_termios_close+0x150>       
400054b8:	c2 20 a3 ec 	st  %g1, [ %g2 + 0x3ec ]                       
				rtems_termios_ttyHead->back = NULL;                               
400054bc:	10 80 00 03 	b  400054c8 <rtems_termios_close+0x150>        
400054c0:	c0 20 60 04 	clr  [ %g1 + 4 ]                               
			}                                                                  
		}                                                                   
		else {                                                              
			tty->back->forw = tty->forw;                                       
400054c4:	c2 20 80 00 	st  %g1, [ %g2 ]                               <== NOT EXECUTED
		}                                                                   
		rtems_semaphore_delete (tty->isem);                                 
400054c8:	40 00 03 db 	call  40006434 <rtems_semaphore_delete>        
400054cc:	d0 04 20 14 	ld  [ %l0 + 0x14 ], %o0                        
		rtems_semaphore_delete (tty->osem);                                 
400054d0:	40 00 03 d9 	call  40006434 <rtems_semaphore_delete>        
400054d4:	d0 04 20 18 	ld  [ %l0 + 0x18 ], %o0                        
		rtems_semaphore_delete (tty->rawOutBuf.Semaphore);                  
400054d8:	40 00 03 d7 	call  40006434 <rtems_semaphore_delete>        
400054dc:	d0 04 20 8c 	ld  [ %l0 + 0x8c ], %o0                        
		if ((tty->device.pollRead == NULL) ||                               
400054e0:	c2 04 20 a0 	ld  [ %l0 + 0xa0 ], %g1                        
400054e4:	80 a0 60 00 	cmp  %g1, 0                                    
400054e8:	02 80 00 06 	be  40005500 <rtems_termios_close+0x188>       <== NEVER TAKEN
400054ec:	01 00 00 00 	nop                                            
		    (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN))      
400054f0:	c2 04 20 b4 	ld  [ %l0 + 0xb4 ], %g1                        
400054f4:	80 a0 60 02 	cmp  %g1, 2                                    
400054f8:	12 80 00 04 	bne  40005508 <rtems_termios_close+0x190>      <== ALWAYS TAKEN
400054fc:	01 00 00 00 	nop                                            
			rtems_semaphore_delete (tty->rawInBuf.Semaphore);                  
40005500:	40 00 03 cd 	call  40006434 <rtems_semaphore_delete>        <== NOT EXECUTED
40005504:	d0 04 20 68 	ld  [ %l0 + 0x68 ], %o0                        <== NOT EXECUTED
		free (tty->rawInBuf.theBuf);                                        
40005508:	40 00 17 1d 	call  4000b17c <free>                          
4000550c:	d0 04 20 58 	ld  [ %l0 + 0x58 ], %o0                        
		free (tty->rawOutBuf.theBuf);                                       
40005510:	40 00 17 1b 	call  4000b17c <free>                          
40005514:	d0 04 20 7c 	ld  [ %l0 + 0x7c ], %o0                        
		free (tty->cbuf);                                                   
40005518:	40 00 17 19 	call  4000b17c <free>                          
4000551c:	d0 04 20 1c 	ld  [ %l0 + 0x1c ], %o0                        
		free (tty);                                                         
40005520:	40 00 17 17 	call  4000b17c <free>                          
40005524:	90 10 00 10 	mov  %l0, %o0                                  
	}                                                                    
	rtems_semaphore_release (rtems_termios_ttyMutex);                    
40005528:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
4000552c:	d0 00 63 e4 	ld  [ %g1 + 0x3e4 ], %o0	! 4001d7e4 <rtems_termios_ttyMutex>
40005530:	40 00 04 36 	call  40006608 <rtems_semaphore_release>       
40005534:	b0 10 20 00 	clr  %i0                                       
	return RTEMS_SUCCESSFUL;                                             
}                                                                     
40005538:	81 c7 e0 08 	ret                                            
4000553c:	81 e8 00 00 	restore                                        
                                                                      

40003f3c <rtems_termios_dequeue_characters>: * for each transmitted character. * It returns number of characters left to transmit */ int rtems_termios_dequeue_characters (void *ttyp, int len) {
40003f3c:	9d e3 bf a0 	save  %sp, -96, %sp                            <== NOT EXECUTED
	rtems_status_code sc;                                                
                                                                      
	/*                                                                   
	 * sum up character count already sent                               
	 */                                                                  
	tty->t_dqlen += len;                                                 
40003f40:	c4 06 20 90 	ld  [ %i0 + 0x90 ], %g2                        <== NOT EXECUTED
                                                                      
	if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {       
40003f44:	c2 06 20 b4 	ld  [ %i0 + 0xb4 ], %g1                        <== NOT EXECUTED
	rtems_status_code sc;                                                
                                                                      
	/*                                                                   
	 * sum up character count already sent                               
	 */                                                                  
	tty->t_dqlen += len;                                                 
40003f48:	84 00 80 19 	add  %g2, %i1, %g2                             <== NOT EXECUTED
40003f4c:	c4 26 20 90 	st  %g2, [ %i0 + 0x90 ]                        <== NOT EXECUTED
                                                                      
	if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {       
40003f50:	80 a0 60 02 	cmp  %g1, 2                                    <== NOT EXECUTED
40003f54:	12 80 00 0a 	bne  40003f7c <rtems_termios_dequeue_characters+0x40><== NOT EXECUTED
40003f58:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
		/*                                                                  
		 * send wake up to transmitter task                                 
		 */                                                                 
		sc = rtems_event_send(tty->txTaskId,                                
40003f5c:	d0 06 20 c8 	ld  [ %i0 + 0xc8 ], %o0                        <== NOT EXECUTED
40003f60:	40 00 08 24 	call  40005ff0 <rtems_event_send>              <== NOT EXECUTED
40003f64:	92 10 20 02 	mov  2, %o1                                    <== NOT EXECUTED
				      TERMIOS_TX_START_EVENT);                                    
		if (sc != RTEMS_SUCCESSFUL)                                         
40003f68:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
40003f6c:	02 80 00 11 	be  40003fb0 <rtems_termios_dequeue_characters+0x74><== NOT EXECUTED
40003f70:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
			rtems_fatal_error_occurred (sc);                                   
40003f74:	40 00 0b 07 	call  40006b90 <rtems_fatal_error_occurred>    <== NOT EXECUTED
40003f78:	01 00 00 00 	nop                                            <== NOT EXECUTED
		return 0; /* nothing to output in IRQ... */                         
	}                                                                    
	else if (tty->t_line == PPPDISC ) {                                  
40003f7c:	c2 06 20 cc 	ld  [ %i0 + 0xcc ], %g1                        <== NOT EXECUTED
40003f80:	80 a0 60 05 	cmp  %g1, 5                                    <== NOT EXECUTED
40003f84:	12 80 00 09 	bne  40003fa8 <rtems_termios_dequeue_characters+0x6c><== NOT EXECUTED
40003f88:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    <== NOT EXECUTED
		/*                                                                  
		 * call any line discipline start function                          
		 */                                                                 
		if (rtems_termios_linesw[tty->t_line].l_start != NULL) {            
40003f8c:	c2 00 61 88 	ld  [ %g1 + 0x188 ], %g1	! 4001d588 <rtems_termios_linesw+0xb4><== NOT EXECUTED
40003f90:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40003f94:	02 80 00 07 	be  40003fb0 <rtems_termios_dequeue_characters+0x74><== NOT EXECUTED
40003f98:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
			rtems_termios_linesw[tty->t_line].l_start(tty);                    
40003f9c:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40003fa0:	01 00 00 00 	nop                                            <== NOT EXECUTED
40003fa4:	30 80 00 03 	b,a   40003fb0 <rtems_termios_dequeue_characters+0x74><== NOT EXECUTED
		}                                                                   
		return 0; /* nothing to output in IRQ... */                         
	}                                                                    
	else {                                                               
		return rtems_termios_refill_transmitter(tty);                       
40003fa8:	7f ff ff 6b 	call  40003d54 <rtems_termios_refill_transmitter><== NOT EXECUTED
40003fac:	81 e8 00 00 	restore                                        <== NOT EXECUTED
	}                                                                    
}                                                                     
40003fb0:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40003fb4:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

40003fb8 <rtems_termios_enqueue_raw_characters>: * device receive interrupt handler. * Returns the number of characters dropped because of overflow. */ int rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) {
40003fb8:	9d e3 bf a0 	save  %sp, -96, %sp                            <== NOT EXECUTED
	char c;                                                              
	int dropped = 0;                                                     
	bool flow_rcv = false; /* true, if flow control char received */     
	rtems_interrupt_level level;                                         
                                                                      
	if (rtems_termios_linesw[tty->t_line].l_rint != NULL) {              
40003fbc:	c2 06 20 cc 	ld  [ %i0 + 0xcc ], %g1                        <== NOT EXECUTED
40003fc0:	25 10 00 75 	sethi  %hi(0x4001d400), %l2                    <== NOT EXECUTED
40003fc4:	83 28 60 05 	sll  %g1, 5, %g1                               <== NOT EXECUTED
40003fc8:	a4 14 a0 d4 	or  %l2, 0xd4, %l2                             <== NOT EXECUTED
40003fcc:	82 00 60 10 	add  %g1, 0x10, %g1                            <== NOT EXECUTED
40003fd0:	c2 04 80 01 	ld  [ %l2 + %g1 ], %g1                         <== NOT EXECUTED
 *       device receive interrupt handler.                            
 * Returns the number of characters dropped because of overflow.      
 */                                                                   
int                                                                   
rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) 
{                                                                     
40003fd4:	a0 10 00 18 	mov  %i0, %l0                                  <== NOT EXECUTED
	char c;                                                              
	int dropped = 0;                                                     
	bool flow_rcv = false; /* true, if flow control char received */     
	rtems_interrupt_level level;                                         
                                                                      
	if (rtems_termios_linesw[tty->t_line].l_rint != NULL) {              
40003fd8:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40003fdc:	12 80 00 11 	bne  40004020 <rtems_termios_enqueue_raw_characters+0x68><== NOT EXECUTED
40003fe0:	a2 10 00 1a 	mov  %i2, %l1                                  <== NOT EXECUTED
		    if ((tty->flow_ctrl & FL_OSTOP) ||                              
			(tty->rawOutBufState == rob_idle)) {                               
		      /* if tx is stopped due to XOFF or out of data */             
		      /*    call write function here                 */             
		      tty->flow_ctrl |= FL_ISNTXOF;                                 
		      (*tty->device.write)(tty->minor,                              
40003fe4:	aa 06 20 4a 	add  %i0, 0x4a, %l5                            <== NOT EXECUTED
                                                                      
			/*                                                                 
			 * check to see if rcv wakeup callback was set                     
			 */                                                                
			if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {  
			  (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);      
40003fe8:	a8 06 20 30 	add  %i0, 0x30, %l4                            <== NOT EXECUTED
40003fec:	a4 10 20 00 	clr  %l2                                       <== NOT EXECUTED
40003ff0:	10 80 00 ad 	b  400042a4 <rtems_termios_enqueue_raw_characters+0x2ec><== NOT EXECUTED
40003ff4:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
	bool flow_rcv = false; /* true, if flow control char received */     
	rtems_interrupt_level level;                                         
                                                                      
	if (rtems_termios_linesw[tty->t_line].l_rint != NULL) {              
	  while (len--) {                                                    
	    c = *buf++;                                                      
40003ff8:	d0 0e 40 00 	ldub  [ %i1 ], %o0                             <== NOT EXECUTED
	    rtems_termios_linesw[tty->t_line].l_rint(c,tty);                 
40003ffc:	83 28 60 05 	sll  %g1, 5, %g1                               <== NOT EXECUTED
40004000:	82 00 60 10 	add  %g1, 0x10, %g1                            <== NOT EXECUTED
40004004:	c2 04 80 01 	ld  [ %l2 + %g1 ], %g1                         <== NOT EXECUTED
40004008:	91 2a 20 18 	sll  %o0, 0x18, %o0                            <== NOT EXECUTED
	bool flow_rcv = false; /* true, if flow control char received */     
	rtems_interrupt_level level;                                         
                                                                      
	if (rtems_termios_linesw[tty->t_line].l_rint != NULL) {              
	  while (len--) {                                                    
	    c = *buf++;                                                      
4000400c:	b2 06 60 01 	inc  %i1                                       <== NOT EXECUTED
	    rtems_termios_linesw[tty->t_line].l_rint(c,tty);                 
40004010:	91 3a 20 18 	sra  %o0, 0x18, %o0                            <== NOT EXECUTED
40004014:	a2 04 7f ff 	add  %l1, -1, %l1                              <== NOT EXECUTED
40004018:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
4000401c:	92 10 00 10 	mov  %l0, %o1                                  <== NOT EXECUTED
	int dropped = 0;                                                     
	bool flow_rcv = false; /* true, if flow control char received */     
	rtems_interrupt_level level;                                         
                                                                      
	if (rtems_termios_linesw[tty->t_line].l_rint != NULL) {              
	  while (len--) {                                                    
40004020:	80 a4 60 00 	cmp  %l1, 0                                    <== NOT EXECUTED
40004024:	32 bf ff f5 	bne,a   40003ff8 <rtems_termios_enqueue_raw_characters+0x40><== NOT EXECUTED
40004028:	c2 04 20 cc 	ld  [ %l0 + 0xcc ], %g1                        <== NOT EXECUTED
	  }                                                                  
                                                                      
	  /*                                                                 
	   * check to see if rcv wakeup callback was set                     
	   */                                                                
	  if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {  
4000402c:	c2 04 20 e4 	ld  [ %l0 + 0xe4 ], %g1                        <== NOT EXECUTED
40004030:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40004034:	12 80 00 a6 	bne  400042cc <rtems_termios_enqueue_raw_characters+0x314><== NOT EXECUTED
40004038:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000403c:	c2 04 20 dc 	ld  [ %l0 + 0xdc ], %g1                        <== NOT EXECUTED
40004040:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40004044:	02 80 00 a2 	be  400042cc <rtems_termios_enqueue_raw_characters+0x314><== NOT EXECUTED
40004048:	01 00 00 00 	nop                                            <== NOT EXECUTED
	    (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);      
4000404c:	d2 04 20 e0 	ld  [ %l0 + 0xe0 ], %o1                        <== NOT EXECUTED
40004050:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40004054:	90 04 20 30 	add  %l0, 0x30, %o0                            <== NOT EXECUTED
	    tty->tty_rcvwakeup = 1;                                          
40004058:	82 10 20 01 	mov  1, %g1                                    <== NOT EXECUTED
4000405c:	c2 24 20 e4 	st  %g1, [ %l0 + 0xe4 ]                        <== NOT EXECUTED
40004060:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40004064:	91 e8 20 00 	restore  %g0, 0, %o0                           <== NOT EXECUTED
                                                                      
	while (len--) {                                                      
	  c = *buf++;                                                        
	  /* FIXME: implement IXANY: any character restarts output */        
	  /* if incoming XON/XOFF controls outgoing stream: */               
	  if (tty->flow_ctrl & FL_MDXON) {                                   
40004068:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        <== NOT EXECUTED
4000406c:	80 88 62 00 	btst  0x200, %g1                               <== NOT EXECUTED
40004070:	02 80 00 1b 	be  400040dc <rtems_termios_enqueue_raw_characters+0x124><== NOT EXECUTED
40004074:	e6 0e 40 00 	ldub  [ %i1 ], %l3                             <== NOT EXECUTED
	    /* if received char is V_STOP and V_START (both are equal value) */
	    if (c == tty->termios.c_cc[VSTOP]) {                             
40004078:	c4 0c 20 4a 	ldub  [ %l0 + 0x4a ], %g2                      <== NOT EXECUTED
4000407c:	83 2c e0 18 	sll  %l3, 0x18, %g1                            <== NOT EXECUTED
40004080:	83 38 60 18 	sra  %g1, 0x18, %g1                            <== NOT EXECUTED
40004084:	80 a0 40 02 	cmp  %g1, %g2                                  <== NOT EXECUTED
40004088:	12 80 00 0e 	bne  400040c0 <rtems_termios_enqueue_raw_characters+0x108><== NOT EXECUTED
4000408c:	c4 0c 20 49 	ldub  [ %l0 + 0x49 ], %g2                      <== NOT EXECUTED
	      if (c == tty->termios.c_cc[VSTART]) {                          
40004090:	84 08 a0 ff 	and  %g2, 0xff, %g2                            <== NOT EXECUTED
40004094:	80 a0 40 02 	cmp  %g1, %g2                                  <== NOT EXECUTED
40004098:	12 80 00 05 	bne  400040ac <rtems_termios_enqueue_raw_characters+0xf4><== NOT EXECUTED
4000409c:	01 00 00 00 	nop                                            <== NOT EXECUTED
		/* received VSTOP and VSTART==VSTOP? */                             
		/* then toggle "stop output" status  */                             
		tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;                       
400040a0:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        <== NOT EXECUTED
400040a4:	10 80 00 04 	b  400040b4 <rtems_termios_enqueue_raw_characters+0xfc><== NOT EXECUTED
400040a8:	82 18 60 10 	xor  %g1, 0x10, %g1                            <== NOT EXECUTED
	      }                                                              
	      else {                                                         
		/* VSTOP received (other code than VSTART) */                       
		/* stop output                             */                       
		tty->flow_ctrl |= FL_ORCVXOF;                                       
400040ac:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        <== NOT EXECUTED
400040b0:	82 10 60 10 	or  %g1, 0x10, %g1                             <== NOT EXECUTED
400040b4:	c2 24 20 b8 	st  %g1, [ %l0 + 0xb8 ]                        <== NOT EXECUTED
		}                                                                   
	  }                                                                  
	}                                                                    
	tty->rawInBufDropped += dropped;                                     
	rtems_semaphore_release (tty->rawInBuf.Semaphore);                   
	return dropped;                                                      
400040b8:	10 80 00 0c 	b  400040e8 <rtems_termios_enqueue_raw_characters+0x130><== NOT EXECUTED
400040bc:	a4 10 20 01 	mov  1, %l2                                    <== NOT EXECUTED
		/* stop output                             */                       
		tty->flow_ctrl |= FL_ORCVXOF;                                       
	      }                                                              
	      flow_rcv = true;                                               
	    }                                                                
	    else if (c == tty->termios.c_cc[VSTART]) {                       
400040c0:	84 08 a0 ff 	and  %g2, 0xff, %g2                            <== NOT EXECUTED
400040c4:	80 a0 40 02 	cmp  %g1, %g2                                  <== NOT EXECUTED
400040c8:	12 80 00 06 	bne  400040e0 <rtems_termios_enqueue_raw_characters+0x128><== NOT EXECUTED
400040cc:	80 8c a0 ff 	btst  0xff, %l2                                <== NOT EXECUTED
	      /* VSTART received */                                          
	      /* restart output  */                                          
	      tty->flow_ctrl &= ~FL_ORCVXOF;                                 
400040d0:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        <== NOT EXECUTED
400040d4:	10 bf ff f8 	b  400040b4 <rtems_termios_enqueue_raw_characters+0xfc><== NOT EXECUTED
400040d8:	82 08 7f ef 	and  %g1, -17, %g1                             <== NOT EXECUTED
	      flow_rcv = true;                                               
	    }                                                                
	  }                                                                  
	  if (flow_rcv) {                                                    
400040dc:	80 8c a0 ff 	btst  0xff, %l2                                <== NOT EXECUTED
400040e0:	02 80 00 1c 	be  40004150 <rtems_termios_enqueue_raw_characters+0x198><== NOT EXECUTED
400040e4:	01 00 00 00 	nop                                            <== NOT EXECUTED
	    /* restart output according to FL_ORCVXOF flag */                
	    if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) {    
400040e8:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        <== NOT EXECUTED
400040ec:	82 08 60 30 	and  %g1, 0x30, %g1                            <== NOT EXECUTED
400040f0:	80 a0 60 20 	cmp  %g1, 0x20                                 <== NOT EXECUTED
400040f4:	32 80 00 6b 	bne,a   400042a0 <rtems_termios_enqueue_raw_characters+0x2e8><== NOT EXECUTED
400040f8:	b2 06 60 01 	inc  %i1                                       <== NOT EXECUTED
	      /* disable interrupts    */                                    
	      rtems_interrupt_disable(level);                                
400040fc:	7f ff f7 14 	call  40001d4c <sparc_disable_interrupts>      <== NOT EXECUTED
40004100:	01 00 00 00 	nop                                            <== NOT EXECUTED
40004104:	a2 10 00 08 	mov  %o0, %l1                                  <== NOT EXECUTED
	      tty->flow_ctrl &= ~FL_OSTOP;                                   
40004108:	c4 04 20 b8 	ld  [ %l0 + 0xb8 ], %g2                        <== NOT EXECUTED
	      /* check for chars in output buffer (or rob_state?) */         
	      if (tty->rawOutBufState != rob_idle) {                         
4000410c:	c2 04 20 94 	ld  [ %l0 + 0x94 ], %g1                        <== NOT EXECUTED
	  if (flow_rcv) {                                                    
	    /* restart output according to FL_ORCVXOF flag */                
	    if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) {    
	      /* disable interrupts    */                                    
	      rtems_interrupt_disable(level);                                
	      tty->flow_ctrl &= ~FL_OSTOP;                                   
40004110:	84 08 bf df 	and  %g2, -33, %g2                             <== NOT EXECUTED
40004114:	c4 24 20 b8 	st  %g2, [ %l0 + 0xb8 ]                        <== NOT EXECUTED
	      /* check for chars in output buffer (or rob_state?) */         
	      if (tty->rawOutBufState != rob_idle) {                         
40004118:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000411c:	02 80 00 09 	be  40004140 <rtems_termios_enqueue_raw_characters+0x188><== NOT EXECUTED
40004120:	01 00 00 00 	nop                                            <== NOT EXECUTED
	      /* if chars available, call write function... */               
		(*tty->device.write)(tty->minor,                                    
		     &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1);               
40004124:	c4 04 20 84 	ld  [ %l0 + 0x84 ], %g2                        <== NOT EXECUTED
	      rtems_interrupt_disable(level);                                
	      tty->flow_ctrl &= ~FL_OSTOP;                                   
	      /* check for chars in output buffer (or rob_state?) */         
	      if (tty->rawOutBufState != rob_idle) {                         
	      /* if chars available, call write function... */               
		(*tty->device.write)(tty->minor,                                    
40004128:	d2 04 20 7c 	ld  [ %l0 + 0x7c ], %o1                        <== NOT EXECUTED
4000412c:	c2 04 20 a4 	ld  [ %l0 + 0xa4 ], %g1                        <== NOT EXECUTED
40004130:	d0 04 20 10 	ld  [ %l0 + 0x10 ], %o0                        <== NOT EXECUTED
40004134:	92 02 40 02 	add  %o1, %g2, %o1                             <== NOT EXECUTED
40004138:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
4000413c:	94 10 20 01 	mov  1, %o2                                    <== NOT EXECUTED
		     &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1);               
	      }                                                              
	      /* reenable interrupts */                                      
	      rtems_interrupt_enable(level);                                 
40004140:	7f ff f7 07 	call  40001d5c <sparc_enable_interrupts>       <== NOT EXECUTED
40004144:	90 10 00 11 	mov  %l1, %o0                                  <== NOT EXECUTED
    	  }                                                              
	  return 0;                                                          
	}                                                                    
                                                                      
	while (len--) {                                                      
	  c = *buf++;                                                        
40004148:	10 80 00 56 	b  400042a0 <rtems_termios_enqueue_raw_characters+0x2e8><== NOT EXECUTED
4000414c:	b2 06 60 01 	inc  %i1                                       <== NOT EXECUTED
	      /* reenable interrupts */                                      
	      rtems_interrupt_enable(level);                                 
	    }                                                                
	  }                                                                  
	  else {                                                             
		newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;            
40004150:	d0 04 20 60 	ld  [ %l0 + 0x60 ], %o0                        <== NOT EXECUTED
40004154:	d2 04 20 64 	ld  [ %l0 + 0x64 ], %o1                        <== NOT EXECUTED
40004158:	40 00 53 25 	call  40018dec <.urem>                         <== NOT EXECUTED
4000415c:	90 02 20 01 	inc  %o0                                       <== NOT EXECUTED
		/* if chars_in_buffer > highwater                */                 
		rtems_interrupt_disable(level);                                     
40004160:	7f ff f6 fb 	call  40001d4c <sparc_disable_interrupts>      <== NOT EXECUTED
40004164:	a2 10 00 08 	mov  %o0, %l1                                  <== NOT EXECUTED
40004168:	ac 10 00 08 	mov  %o0, %l6                                  <== NOT EXECUTED
		if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)           
4000416c:	c2 04 20 5c 	ld  [ %l0 + 0x5c ], %g1                        <== NOT EXECUTED
40004170:	d0 04 20 64 	ld  [ %l0 + 0x64 ], %o0                        <== NOT EXECUTED
40004174:	d2 04 20 64 	ld  [ %l0 + 0x64 ], %o1                        <== NOT EXECUTED
40004178:	90 22 00 01 	sub  %o0, %g1, %o0                             <== NOT EXECUTED
4000417c:	40 00 53 1c 	call  40018dec <.urem>                         <== NOT EXECUTED
40004180:	90 02 00 11 	add  %o0, %l1, %o0                             <== NOT EXECUTED
		      % tty->rawInBuf.Size)                                         
		     > tty->highwater) &&                                           
40004184:	c2 04 20 c0 	ld  [ %l0 + 0xc0 ], %g1                        <== NOT EXECUTED
40004188:	80 a2 00 01 	cmp  %o0, %g1                                  <== NOT EXECUTED
4000418c:	08 80 00 2d 	bleu  40004240 <rtems_termios_enqueue_raw_characters+0x288><== NOT EXECUTED
40004190:	01 00 00 00 	nop                                            <== NOT EXECUTED
		    !(tty->flow_ctrl & FL_IREQXOF)) {                               
40004194:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        <== NOT EXECUTED
	  }                                                                  
	  else {                                                             
		newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;            
		/* if chars_in_buffer > highwater                */                 
		rtems_interrupt_disable(level);                                     
		if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)           
40004198:	80 88 60 01 	btst  1, %g1                                   <== NOT EXECUTED
4000419c:	12 80 00 29 	bne  40004240 <rtems_termios_enqueue_raw_characters+0x288><== NOT EXECUTED
400041a0:	01 00 00 00 	nop                                            <== NOT EXECUTED
		      % tty->rawInBuf.Size)                                         
		     > tty->highwater) &&                                           
		    !(tty->flow_ctrl & FL_IREQXOF)) {                               
		  /* incoming data stream should be stopped */                      
		  tty->flow_ctrl |= FL_IREQXOF;                                     
400041a4:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        <== NOT EXECUTED
400041a8:	82 10 60 01 	or  %g1, 1, %g1                                <== NOT EXECUTED
400041ac:	c2 24 20 b8 	st  %g1, [ %l0 + 0xb8 ]                        <== NOT EXECUTED
		  if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))                    
400041b0:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        <== NOT EXECUTED
400041b4:	82 08 64 02 	and  %g1, 0x402, %g1                           <== NOT EXECUTED
400041b8:	80 a0 64 00 	cmp  %g1, 0x400                                <== NOT EXECUTED
400041bc:	12 80 00 13 	bne  40004208 <rtems_termios_enqueue_raw_characters+0x250><== NOT EXECUTED
400041c0:	01 00 00 00 	nop                                            <== NOT EXECUTED
		      ==                (FL_MDXOF             ) ){                  
		    if ((tty->flow_ctrl & FL_OSTOP) ||                              
400041c4:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        <== NOT EXECUTED
400041c8:	80 88 60 20 	btst  0x20, %g1                                <== NOT EXECUTED
400041cc:	12 80 00 06 	bne  400041e4 <rtems_termios_enqueue_raw_characters+0x22c><== NOT EXECUTED
400041d0:	01 00 00 00 	nop                                            <== NOT EXECUTED
			(tty->rawOutBufState == rob_idle)) {                               
400041d4:	c2 04 20 94 	ld  [ %l0 + 0x94 ], %g1                        <== NOT EXECUTED
400041d8:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
400041dc:	12 80 00 19 	bne  40004240 <rtems_termios_enqueue_raw_characters+0x288><== NOT EXECUTED
400041e0:	01 00 00 00 	nop                                            <== NOT EXECUTED
		      /* if tx is stopped due to XOFF or out of data */             
		      /*    call write function here                 */             
		      tty->flow_ctrl |= FL_ISNTXOF;                                 
400041e4:	c4 04 20 b8 	ld  [ %l0 + 0xb8 ], %g2                        <== NOT EXECUTED
		      (*tty->device.write)(tty->minor,                              
400041e8:	c2 04 20 a4 	ld  [ %l0 + 0xa4 ], %g1                        <== NOT EXECUTED
400041ec:	d0 04 20 10 	ld  [ %l0 + 0x10 ], %o0                        <== NOT EXECUTED
		      ==                (FL_MDXOF             ) ){                  
		    if ((tty->flow_ctrl & FL_OSTOP) ||                              
			(tty->rawOutBufState == rob_idle)) {                               
		      /* if tx is stopped due to XOFF or out of data */             
		      /*    call write function here                 */             
		      tty->flow_ctrl |= FL_ISNTXOF;                                 
400041f0:	84 10 a0 02 	or  %g2, 2, %g2                                <== NOT EXECUTED
		      (*tty->device.write)(tty->minor,                              
400041f4:	92 10 00 15 	mov  %l5, %o1                                  <== NOT EXECUTED
		      ==                (FL_MDXOF             ) ){                  
		    if ((tty->flow_ctrl & FL_OSTOP) ||                              
			(tty->rawOutBufState == rob_idle)) {                               
		      /* if tx is stopped due to XOFF or out of data */             
		      /*    call write function here                 */             
		      tty->flow_ctrl |= FL_ISNTXOF;                                 
400041f8:	c4 24 20 b8 	st  %g2, [ %l0 + 0xb8 ]                        <== NOT EXECUTED
		      (*tty->device.write)(tty->minor,                              
400041fc:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40004200:	94 10 20 01 	mov  1, %o2                                    <== NOT EXECUTED
40004204:	30 80 00 0f 	b,a   40004240 <rtems_termios_enqueue_raw_characters+0x288><== NOT EXECUTED
			 (void *)&(tty->termios.c_cc[VSTOP]),                              
			 1);                                                               
		    }                                                               
		  }                                                                 
		  else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF))               
40004208:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        <== NOT EXECUTED
4000420c:	82 08 61 04 	and  %g1, 0x104, %g1                           <== NOT EXECUTED
40004210:	80 a0 61 00 	cmp  %g1, 0x100                                <== NOT EXECUTED
40004214:	12 80 00 0b 	bne  40004240 <rtems_termios_enqueue_raw_characters+0x288><== NOT EXECUTED
40004218:	01 00 00 00 	nop                                            <== NOT EXECUTED
			   ==                (FL_MDRTS             ) ) {                   
		    tty->flow_ctrl |= FL_IRTSOFF;                                   
4000421c:	c4 04 20 b8 	ld  [ %l0 + 0xb8 ], %g2                        <== NOT EXECUTED
		    /* deactivate RTS line */                                       
		    if (tty->device.stopRemoteTx != NULL) {                         
40004220:	c2 04 20 ac 	ld  [ %l0 + 0xac ], %g1                        <== NOT EXECUTED
			 1);                                                               
		    }                                                               
		  }                                                                 
		  else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF))               
			   ==                (FL_MDRTS             ) ) {                   
		    tty->flow_ctrl |= FL_IRTSOFF;                                   
40004224:	84 10 a0 04 	or  %g2, 4, %g2                                <== NOT EXECUTED
40004228:	c4 24 20 b8 	st  %g2, [ %l0 + 0xb8 ]                        <== NOT EXECUTED
		    /* deactivate RTS line */                                       
		    if (tty->device.stopRemoteTx != NULL) {                         
4000422c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40004230:	02 80 00 04 	be  40004240 <rtems_termios_enqueue_raw_characters+0x288><== NOT EXECUTED
40004234:	01 00 00 00 	nop                                            <== NOT EXECUTED
		      tty->device.stopRemoteTx(tty->minor);                         
40004238:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
4000423c:	d0 04 20 10 	ld  [ %l0 + 0x10 ], %o0                        <== NOT EXECUTED
		    }                                                               
		  }                                                                 
		}                                                                   
		/* reenable interrupts */                                           
		rtems_interrupt_enable(level);                                      
40004240:	7f ff f6 c7 	call  40001d5c <sparc_enable_interrupts>       <== NOT EXECUTED
40004244:	90 10 00 16 	mov  %l6, %o0                                  <== NOT EXECUTED
                                                                      
		if (newTail == tty->rawInBuf.Head) {                                
40004248:	c2 04 20 5c 	ld  [ %l0 + 0x5c ], %g1                        <== NOT EXECUTED
4000424c:	80 a4 40 01 	cmp  %l1, %g1                                  <== NOT EXECUTED
40004250:	32 80 00 04 	bne,a   40004260 <rtems_termios_enqueue_raw_characters+0x2a8><== NOT EXECUTED
40004254:	c2 04 20 58 	ld  [ %l0 + 0x58 ], %g1                        <== NOT EXECUTED
		        dropped++;                                                  
40004258:	10 80 00 11 	b  4000429c <rtems_termios_enqueue_raw_characters+0x2e4><== NOT EXECUTED
4000425c:	b0 06 20 01 	inc  %i0                                       <== NOT EXECUTED
		}                                                                   
		else {                                                              
		        tty->rawInBuf.theBuf[newTail] = c;                          
40004260:	e6 28 40 11 	stb  %l3, [ %g1 + %l1 ]                        <== NOT EXECUTED
		        tty->rawInBuf.Tail = newTail;                               
                                                                      
			/*                                                                 
			 * check to see if rcv wakeup callback was set                     
			 */                                                                
			if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {  
40004264:	c2 04 20 e4 	ld  [ %l0 + 0xe4 ], %g1                        <== NOT EXECUTED
		if (newTail == tty->rawInBuf.Head) {                                
		        dropped++;                                                  
		}                                                                   
		else {                                                              
		        tty->rawInBuf.theBuf[newTail] = c;                          
		        tty->rawInBuf.Tail = newTail;                               
40004268:	e2 24 20 60 	st  %l1, [ %l0 + 0x60 ]                        <== NOT EXECUTED
                                                                      
			/*                                                                 
			 * check to see if rcv wakeup callback was set                     
			 */                                                                
			if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {  
4000426c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40004270:	32 80 00 0c 	bne,a   400042a0 <rtems_termios_enqueue_raw_characters+0x2e8><== NOT EXECUTED
40004274:	b2 06 60 01 	inc  %i1                                       <== NOT EXECUTED
40004278:	c2 04 20 dc 	ld  [ %l0 + 0xdc ], %g1                        <== NOT EXECUTED
4000427c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40004280:	22 80 00 08 	be,a   400042a0 <rtems_termios_enqueue_raw_characters+0x2e8><== NOT EXECUTED
40004284:	b2 06 60 01 	inc  %i1                                       <== NOT EXECUTED
			  (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);      
40004288:	d2 04 20 e0 	ld  [ %l0 + 0xe0 ], %o1                        <== NOT EXECUTED
4000428c:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40004290:	90 10 00 14 	mov  %l4, %o0                                  <== NOT EXECUTED
			  tty->tty_rcvwakeup = 1;                                          
40004294:	82 10 20 01 	mov  1, %g1                                    <== NOT EXECUTED
40004298:	c2 24 20 e4 	st  %g1, [ %l0 + 0xe4 ]                        <== NOT EXECUTED
    	  }                                                              
	  return 0;                                                          
	}                                                                    
                                                                      
	while (len--) {                                                      
	  c = *buf++;                                                        
4000429c:	b2 06 60 01 	inc  %i1                                       <== NOT EXECUTED
400042a0:	b4 06 bf ff 	add  %i2, -1, %i2                              <== NOT EXECUTED
	    tty->tty_rcvwakeup = 1;                                          
    	  }                                                              
	  return 0;                                                          
	}                                                                    
                                                                      
	while (len--) {                                                      
400042a4:	80 a6 a0 00 	cmp  %i2, 0                                    <== NOT EXECUTED
400042a8:	12 bf ff 70 	bne  40004068 <rtems_termios_enqueue_raw_characters+0xb0><== NOT EXECUTED
400042ac:	01 00 00 00 	nop                                            <== NOT EXECUTED
			  tty->tty_rcvwakeup = 1;                                          
			}                                                                  
		}                                                                   
	  }                                                                  
	}                                                                    
	tty->rawInBufDropped += dropped;                                     
400042b0:	c2 04 20 78 	ld  [ %l0 + 0x78 ], %g1                        <== NOT EXECUTED
	rtems_semaphore_release (tty->rawInBuf.Semaphore);                   
400042b4:	d0 04 20 68 	ld  [ %l0 + 0x68 ], %o0                        <== NOT EXECUTED
			  tty->tty_rcvwakeup = 1;                                          
			}                                                                  
		}                                                                   
	  }                                                                  
	}                                                                    
	tty->rawInBufDropped += dropped;                                     
400042b8:	82 00 40 18 	add  %g1, %i0, %g1                             <== NOT EXECUTED
	rtems_semaphore_release (tty->rawInBuf.Semaphore);                   
400042bc:	40 00 08 d3 	call  40006608 <rtems_semaphore_release>       <== NOT EXECUTED
400042c0:	c2 24 20 78 	st  %g1, [ %l0 + 0x78 ]                        <== NOT EXECUTED
	return dropped;                                                      
400042c4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
400042c8:	81 e8 00 00 	restore                                        <== NOT EXECUTED
}                                                                     
400042cc:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
400042d0:	91 e8 20 00 	restore  %g0, 0, %o0                           <== NOT EXECUTED
                                                                      

40003cd0 <rtems_termios_initialize>: struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) {
40003cd0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_status_code sc;                                               
                                                                      
  /*                                                                  
   * Create the mutex semaphore for the tty list                      
   */                                                                 
  if (!rtems_termios_ttyMutex) {                                      
40003cd4:	19 10 00 75 	sethi  %hi(0x4001d400), %o4                    
40003cd8:	c2 03 23 e4 	ld  [ %o4 + 0x3e4 ], %g1	! 4001d7e4 <rtems_termios_ttyMutex>
40003cdc:	80 a0 60 00 	cmp  %g1, 0                                    
40003ce0:	12 80 00 0d 	bne  40003d14 <rtems_termios_initialize+0x44>  
40003ce4:	98 13 23 e4 	or  %o4, 0x3e4, %o4                            
    sc = rtems_semaphore_create (                                     
40003ce8:	11 15 14 9b 	sethi  %hi(0x54526c00), %o0                    
40003cec:	92 10 20 01 	mov  1, %o1                                    
40003cf0:	90 12 21 69 	or  %o0, 0x169, %o0                            
40003cf4:	94 10 20 54 	mov  0x54, %o2                                 
40003cf8:	40 00 09 5b 	call  40006264 <rtems_semaphore_create>        
40003cfc:	96 10 20 00 	clr  %o3                                       
      rtems_build_name ('T', 'R', 'm', 'i'),                          
      1,                                                              
      RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
      RTEMS_NO_PRIORITY,                                              
      &rtems_termios_ttyMutex);                                       
    if (sc != RTEMS_SUCCESSFUL)                                       
40003d00:	80 a2 20 00 	cmp  %o0, 0                                    
40003d04:	02 80 00 04 	be  40003d14 <rtems_termios_initialize+0x44>   <== ALWAYS TAKEN
40003d08:	01 00 00 00 	nop                                            
      rtems_fatal_error_occurred (sc);                                
40003d0c:	40 00 0b a1 	call  40006b90 <rtems_fatal_error_occurred>    <== NOT EXECUTED
40003d10:	01 00 00 00 	nop                                            <== NOT EXECUTED
40003d14:	81 c7 e0 08 	ret                                            
40003d18:	81 e8 00 00 	restore                                        
                                                                      

40004f74 <rtems_termios_ioctl>: } } rtems_status_code rtems_termios_ioctl (void *arg) {
40004f74:	9d e3 bf a0 	save  %sp, -96, %sp                            
	rtems_libio_ioctl_args_t *args = arg;                                
	struct rtems_termios_tty *tty = args->iop->data1;                    
40004f78:	c2 06 00 00 	ld  [ %i0 ], %g1                               
	struct ttywakeup         *wakeup = (struct ttywakeup *)args->buffer; 
	rtems_status_code sc;                                                
                                                                      
 	args->ioctl_return = 0;                                             
40004f7c:	c0 26 20 0c 	clr  [ %i0 + 0xc ]                             
                                                                      
rtems_status_code                                                     
rtems_termios_ioctl (void *arg)                                       
{                                                                     
	rtems_libio_ioctl_args_t *args = arg;                                
	struct rtems_termios_tty *tty = args->iop->data1;                    
40004f80:	e0 00 60 38 	ld  [ %g1 + 0x38 ], %l0                        
	struct ttywakeup         *wakeup = (struct ttywakeup *)args->buffer; 
40004f84:	e4 06 20 08 	ld  [ %i0 + 8 ], %l2                           
	rtems_status_code sc;                                                
                                                                      
 	args->ioctl_return = 0;                                             
	sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
40004f88:	d0 04 20 18 	ld  [ %l0 + 0x18 ], %o0                        
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_ioctl (void *arg)                                       
{                                                                     
40004f8c:	a2 10 00 18 	mov  %i0, %l1                                  
	struct rtems_termios_tty *tty = args->iop->data1;                    
	struct ttywakeup         *wakeup = (struct ttywakeup *)args->buffer; 
	rtems_status_code sc;                                                
                                                                      
 	args->ioctl_return = 0;                                             
	sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
40004f90:	92 10 20 00 	clr  %o1                                       
40004f94:	40 00 05 56 	call  400064ec <rtems_semaphore_obtain>        
40004f98:	94 10 20 00 	clr  %o2                                       
	if (sc != RTEMS_SUCCESSFUL) {                                        
40004f9c:	b0 92 20 00 	orcc  %o0, 0, %i0                              
40004fa0:	22 80 00 05 	be,a   40004fb4 <rtems_termios_ioctl+0x40>     <== ALWAYS TAKEN
40004fa4:	c2 04 60 04 	ld  [ %l1 + 4 ], %g1                           
		args->ioctl_return = sc;                                            
40004fa8:	f0 24 60 0c 	st  %i0, [ %l1 + 0xc ]                         <== NOT EXECUTED
		return sc;                                                          
40004fac:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40004fb0:	81 e8 00 00 	restore                                        <== NOT EXECUTED
	}                                                                    
	switch (args->command) {                                             
40004fb4:	80 a0 60 04 	cmp  %g1, 4                                    
40004fb8:	22 80 00 bd 	be,a   400052ac <rtems_termios_ioctl+0x338>    <== NEVER TAKEN
40004fbc:	c2 04 80 00 	ld  [ %l2 ], %g1                               <== NOT EXECUTED
40004fc0:	18 80 00 0b 	bgu  40004fec <rtems_termios_ioctl+0x78>       <== NEVER TAKEN
40004fc4:	05 10 01 19 	sethi  %hi(0x40046400), %g2                    
40004fc8:	80 a0 60 02 	cmp  %g1, 2                                    
40004fcc:	22 80 00 2c 	be,a   4000507c <rtems_termios_ioctl+0x108>    
40004fd0:	d2 04 60 08 	ld  [ %l1 + 8 ], %o1                           
40004fd4:	18 80 00 af 	bgu  40005290 <rtems_termios_ioctl+0x31c>      
40004fd8:	80 a0 60 01 	cmp  %g1, 1                                    
40004fdc:	32 80 00 17 	bne,a   40005038 <rtems_termios_ioctl+0xc4>    <== NEVER TAKEN
40004fe0:	c4 04 20 cc 	ld  [ %l0 + 0xcc ], %g2                        <== NOT EXECUTED
			sc = RTEMS_INVALID_NUMBER;                                         
		}                                                                   
		break;                                                              
                                                                      
	case RTEMS_IO_GET_ATTRIBUTES:                                        
		*(struct termios *)args->buffer = tty->termios;                     
40004fe4:	10 80 00 22 	b  4000506c <rtems_termios_ioctl+0xf8>         
40004fe8:	d0 04 60 08 	ld  [ %l1 + 8 ], %o0                           
	sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
	if (sc != RTEMS_SUCCESSFUL) {                                        
		args->ioctl_return = sc;                                            
		return sc;                                                          
	}                                                                    
	switch (args->command) {                                             
40004fec:	84 10 a2 7f 	or  %g2, 0x27f, %g2                            <== NOT EXECUTED
40004ff0:	80 a0 40 02 	cmp  %g1, %g2                                  <== NOT EXECUTED
40004ff4:	02 80 00 cf 	be  40005330 <rtems_termios_ioctl+0x3bc>       <== NOT EXECUTED
40004ff8:	01 00 00 00 	nop                                            <== NOT EXECUTED
40004ffc:	18 80 00 07 	bgu  40005018 <rtems_termios_ioctl+0xa4>       <== NOT EXECUTED
40005000:	05 10 01 1d 	sethi  %hi(0x40047400), %g2                    <== NOT EXECUTED
40005004:	80 a0 60 05 	cmp  %g1, 5                                    <== NOT EXECUTED
40005008:	32 80 00 0c 	bne,a   40005038 <rtems_termios_ioctl+0xc4>    <== NOT EXECUTED
4000500c:	c4 04 20 cc 	ld  [ %l0 + 0xcc ], %g2                        <== NOT EXECUTED
	case RTEMS_IO_TCDRAIN:                                               
		drainOutput (tty);                                                  
		break;                                                              
                                                                      
	case RTEMS_IO_SNDWAKEUP:                                             
		tty->tty_snd = *wakeup;                                             
40005010:	10 80 00 a3 	b  4000529c <rtems_termios_ioctl+0x328>        <== NOT EXECUTED
40005014:	c2 04 80 00 	ld  [ %l2 ], %g1                               <== NOT EXECUTED
	sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
	if (sc != RTEMS_SUCCESSFUL) {                                        
		args->ioctl_return = sc;                                            
		return sc;                                                          
	}                                                                    
	switch (args->command) {                                             
40005018:	84 10 a0 1a 	or  %g2, 0x1a, %g2                             <== NOT EXECUTED
4000501c:	80 a0 40 02 	cmp  %g1, %g2                                  <== NOT EXECUTED
40005020:	02 80 00 c0 	be  40005320 <rtems_termios_ioctl+0x3ac>       <== NOT EXECUTED
40005024:	05 20 01 1d 	sethi  %hi(0x80047400), %g2                    <== NOT EXECUTED
40005028:	84 10 a0 1b 	or  %g2, 0x1b, %g2	! 8004741b <LEON_REG+0x4741b><== NOT EXECUTED
4000502c:	80 a0 40 02 	cmp  %g1, %g2                                  <== NOT EXECUTED
40005030:	02 80 00 a3 	be  400052bc <rtems_termios_ioctl+0x348>       <== NOT EXECUTED
40005034:	c4 04 20 cc 	ld  [ %l0 + 0xcc ], %g2                        <== NOT EXECUTED
	default:                                                             
		if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {            
40005038:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    <== NOT EXECUTED
4000503c:	85 28 a0 05 	sll  %g2, 5, %g2                               <== NOT EXECUTED
40005040:	82 10 60 d4 	or  %g1, 0xd4, %g1                             <== NOT EXECUTED
40005044:	82 00 40 02 	add  %g1, %g2, %g1                             <== NOT EXECUTED
40005048:	c2 00 60 18 	ld  [ %g1 + 0x18 ], %g1                        <== NOT EXECUTED
4000504c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40005050:	02 80 00 c5 	be  40005364 <rtems_termios_ioctl+0x3f0>       <== NOT EXECUTED
40005054:	b0 10 20 0a 	mov  0xa, %i0                                  <== NOT EXECUTED
			sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);          
40005058:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
4000505c:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40005060:	92 10 00 11 	mov  %l1, %o1                                  <== NOT EXECUTED
		tty->t_sc = NULL; /* ensure that no more valid data */              
		/*                                                                  
		 * open new line discipline                                         
		 */                                                                 
		if (rtems_termios_linesw[tty->t_line].l_open != NULL) {             
			sc = rtems_termios_linesw[tty->t_line].l_open(tty);                
40005064:	10 80 00 c0 	b  40005364 <rtems_termios_ioctl+0x3f0>        <== NOT EXECUTED
40005068:	b0 10 00 08 	mov  %o0, %i0                                  <== NOT EXECUTED
			sc = RTEMS_INVALID_NUMBER;                                         
		}                                                                   
		break;                                                              
                                                                      
	case RTEMS_IO_GET_ATTRIBUTES:                                        
		*(struct termios *)args->buffer = tty->termios;                     
4000506c:	92 04 20 30 	add  %l0, 0x30, %o1                            
40005070:	40 00 2b 57 	call  4000fdcc <memcpy>                        
40005074:	94 10 20 24 	mov  0x24, %o2                                 
		break;                                                              
40005078:	30 80 00 bb 	b,a   40005364 <rtems_termios_ioctl+0x3f0>     
                                                                      
	case RTEMS_IO_SET_ATTRIBUTES:                                        
		tty->termios = *(struct termios *)args->buffer;                     
4000507c:	90 04 20 30 	add  %l0, 0x30, %o0                            
40005080:	40 00 2b 53 	call  4000fdcc <memcpy>                        
40005084:	94 10 20 24 	mov  0x24, %o2                                 
  /*                                                                  
   * check for flow control options to be switched off                
   */                                                                 
                                                                      
  /* check for outgoing XON/XOFF flow control switched off */         
  if (( tty->flow_ctrl & FL_MDXON) &&                                 
40005088:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        
4000508c:	80 88 62 00 	btst  0x200, %g1                               
40005090:	02 80 00 20 	be  40005110 <rtems_termios_ioctl+0x19c>       
40005094:	01 00 00 00 	nop                                            
40005098:	c2 04 20 30 	ld  [ %l0 + 0x30 ], %g1                        
4000509c:	80 88 64 00 	btst  0x400, %g1                               
400050a0:	12 80 00 1c 	bne  40005110 <rtems_termios_ioctl+0x19c>      <== ALWAYS TAKEN
400050a4:	01 00 00 00 	nop                                            
      !(tty->termios.c_iflag & IXON)) {                               
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF);                       
400050a8:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        <== NOT EXECUTED
400050ac:	82 08 7d ef 	and  %g1, -529, %g1                            <== NOT EXECUTED
400050b0:	c2 24 20 b8 	st  %g1, [ %l0 + 0xb8 ]                        <== NOT EXECUTED
                                                                      
    /* has output been stopped due to received XOFF? */               
    if (tty->flow_ctrl & FL_OSTOP) {                                  
400050b4:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        <== NOT EXECUTED
400050b8:	80 88 60 20 	btst  0x20, %g1                                <== NOT EXECUTED
400050bc:	02 80 00 15 	be  40005110 <rtems_termios_ioctl+0x19c>       <== NOT EXECUTED
400050c0:	01 00 00 00 	nop                                            <== NOT EXECUTED
      /* disable interrupts    */                                     
      rtems_interrupt_disable(level);                                 
400050c4:	7f ff f3 22 	call  40001d4c <sparc_disable_interrupts>      <== NOT EXECUTED
400050c8:	01 00 00 00 	nop                                            <== NOT EXECUTED
400050cc:	a4 10 00 08 	mov  %o0, %l2                                  <== NOT EXECUTED
      tty->flow_ctrl &= ~FL_OSTOP;                                    
400050d0:	c4 04 20 b8 	ld  [ %l0 + 0xb8 ], %g2                        <== NOT EXECUTED
      /* check for chars in output buffer (or rob_state?) */          
      if (tty->rawOutBufState != rob_idle) {                          
400050d4:	c2 04 20 94 	ld  [ %l0 + 0x94 ], %g1                        <== NOT EXECUTED
                                                                      
    /* has output been stopped due to received XOFF? */               
    if (tty->flow_ctrl & FL_OSTOP) {                                  
      /* disable interrupts    */                                     
      rtems_interrupt_disable(level);                                 
      tty->flow_ctrl &= ~FL_OSTOP;                                    
400050d8:	84 08 bf df 	and  %g2, -33, %g2                             <== NOT EXECUTED
400050dc:	c4 24 20 b8 	st  %g2, [ %l0 + 0xb8 ]                        <== NOT EXECUTED
      /* check for chars in output buffer (or rob_state?) */          
      if (tty->rawOutBufState != rob_idle) {                          
400050e0:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
400050e4:	02 80 00 09 	be  40005108 <rtems_termios_ioctl+0x194>       <== NOT EXECUTED
400050e8:	01 00 00 00 	nop                                            <== NOT EXECUTED
	/* if chars available, call write function... */                     
	(*tty->device.write)(tty->minor,                                     
		     &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);                
400050ec:	c4 04 20 84 	ld  [ %l0 + 0x84 ], %g2                        <== NOT EXECUTED
      rtems_interrupt_disable(level);                                 
      tty->flow_ctrl &= ~FL_OSTOP;                                    
      /* check for chars in output buffer (or rob_state?) */          
      if (tty->rawOutBufState != rob_idle) {                          
	/* if chars available, call write function... */                     
	(*tty->device.write)(tty->minor,                                     
400050f0:	d2 04 20 7c 	ld  [ %l0 + 0x7c ], %o1                        <== NOT EXECUTED
400050f4:	c2 04 20 a4 	ld  [ %l0 + 0xa4 ], %g1                        <== NOT EXECUTED
400050f8:	d0 04 20 10 	ld  [ %l0 + 0x10 ], %o0                        <== NOT EXECUTED
400050fc:	92 02 40 02 	add  %o1, %g2, %o1                             <== NOT EXECUTED
40005100:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40005104:	94 10 20 01 	mov  1, %o2                                    <== NOT EXECUTED
		     &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);                
      }                                                               
      /* reenable interrupts */                                       
      rtems_interrupt_enable(level);                                  
40005108:	7f ff f3 15 	call  40001d5c <sparc_enable_interrupts>       <== NOT EXECUTED
4000510c:	90 10 00 12 	mov  %l2, %o0                                  <== NOT EXECUTED
    }                                                                 
  }                                                                   
  /* check for incoming XON/XOFF flow control switched off */         
  if (( tty->flow_ctrl & FL_MDXOF) &&                                 
40005110:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        
40005114:	80 88 64 00 	btst  0x400, %g1                               
40005118:	02 80 00 0c 	be  40005148 <rtems_termios_ioctl+0x1d4>       <== ALWAYS TAKEN
4000511c:	03 00 00 04 	sethi  %hi(0x1000), %g1                        
40005120:	c4 04 20 30 	ld  [ %l0 + 0x30 ], %g2                        <== NOT EXECUTED
40005124:	80 88 80 01 	btst  %g2, %g1                                 <== NOT EXECUTED
40005128:	12 80 00 08 	bne  40005148 <rtems_termios_ioctl+0x1d4>      <== NOT EXECUTED
4000512c:	01 00 00 00 	nop                                            <== NOT EXECUTED
      !(tty->termios.c_iflag & IXOFF)) {                              
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDXOF);                                    
40005130:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        <== NOT EXECUTED
40005134:	82 08 7b ff 	and  %g1, -1025, %g1                           <== NOT EXECUTED
40005138:	c2 24 20 b8 	st  %g1, [ %l0 + 0xb8 ]                        <== NOT EXECUTED
    /* FIXME: what happens, if we had sent XOFF but not yet XON? */   
    tty->flow_ctrl &= ~(FL_ISNTXOF);                                  
4000513c:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        <== NOT EXECUTED
40005140:	82 08 7f fd 	and  %g1, -3, %g1                              <== NOT EXECUTED
40005144:	c2 24 20 b8 	st  %g1, [ %l0 + 0xb8 ]                        <== NOT EXECUTED
  }                                                                   
                                                                      
  /* check for incoming RTS/CTS flow control switched off */          
  if (( tty->flow_ctrl & FL_MDRTS) &&                                 
40005148:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        
4000514c:	80 88 61 00 	btst  0x100, %g1                               
40005150:	02 80 00 16 	be  400051a8 <rtems_termios_ioctl+0x234>       <== ALWAYS TAKEN
40005154:	c2 04 20 38 	ld  [ %l0 + 0x38 ], %g1                        
40005158:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000515c:	06 80 00 14 	bl  400051ac <rtems_termios_ioctl+0x238>       <== NOT EXECUTED
40005160:	01 00 00 00 	nop                                            <== NOT EXECUTED
      !(tty->termios.c_cflag & CRTSCTS)) {                            
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDRTS);                                    
40005164:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        <== NOT EXECUTED
40005168:	82 08 7e ff 	and  %g1, -257, %g1                            <== NOT EXECUTED
4000516c:	c2 24 20 b8 	st  %g1, [ %l0 + 0xb8 ]                        <== NOT EXECUTED
                                                                      
    /* restart remote Tx, if it was stopped */                        
    if ((tty->flow_ctrl & FL_IRTSOFF) &&                              
40005170:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        <== NOT EXECUTED
40005174:	80 88 60 04 	btst  4, %g1                                   <== NOT EXECUTED
40005178:	02 80 00 08 	be  40005198 <rtems_termios_ioctl+0x224>       <== NOT EXECUTED
4000517c:	01 00 00 00 	nop                                            <== NOT EXECUTED
	(tty->device.startRemoteTx != NULL)) {                               
40005180:	c2 04 20 b0 	ld  [ %l0 + 0xb0 ], %g1                        <== NOT EXECUTED
      !(tty->termios.c_cflag & CRTSCTS)) {                            
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDRTS);                                    
                                                                      
    /* restart remote Tx, if it was stopped */                        
    if ((tty->flow_ctrl & FL_IRTSOFF) &&                              
40005184:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40005188:	02 80 00 04 	be  40005198 <rtems_termios_ioctl+0x224>       <== NOT EXECUTED
4000518c:	01 00 00 00 	nop                                            <== NOT EXECUTED
	(tty->device.startRemoteTx != NULL)) {                               
      tty->device.startRemoteTx(tty->minor);                          
40005190:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40005194:	d0 04 20 10 	ld  [ %l0 + 0x10 ], %o0                        <== NOT EXECUTED
    }                                                                 
    tty->flow_ctrl &= ~(FL_IRTSOFF);                                  
40005198:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        <== NOT EXECUTED
4000519c:	82 08 7f fb 	and  %g1, -5, %g1                              <== NOT EXECUTED
400051a0:	c2 24 20 b8 	st  %g1, [ %l0 + 0xb8 ]                        <== NOT EXECUTED
                                                                      
  /*                                                                  
   * check for flow control options to be switched on                 
   */                                                                 
  /* check for incoming RTS/CTS flow control switched on */           
  if (tty->termios.c_cflag & CRTSCTS) {                               
400051a4:	c2 04 20 38 	ld  [ %l0 + 0x38 ], %g1                        <== NOT EXECUTED
400051a8:	80 a0 60 00 	cmp  %g1, 0                                    
400051ac:	36 80 00 06 	bge,a   400051c4 <rtems_termios_ioctl+0x250>   <== ALWAYS TAKEN
400051b0:	c4 04 20 30 	ld  [ %l0 + 0x30 ], %g2                        
    tty->flow_ctrl |= FL_MDRTS;                                       
400051b4:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        <== NOT EXECUTED
400051b8:	82 10 61 00 	or  %g1, 0x100, %g1                            <== NOT EXECUTED
400051bc:	c2 24 20 b8 	st  %g1, [ %l0 + 0xb8 ]                        <== NOT EXECUTED
  }                                                                   
  /* check for incoming XON/XOF flow control switched on */           
  if (tty->termios.c_iflag & IXOFF) {                                 
400051c0:	c4 04 20 30 	ld  [ %l0 + 0x30 ], %g2                        <== NOT EXECUTED
400051c4:	03 00 00 04 	sethi  %hi(0x1000), %g1                        
400051c8:	80 88 80 01 	btst  %g2, %g1                                 
400051cc:	22 80 00 06 	be,a   400051e4 <rtems_termios_ioctl+0x270>    <== ALWAYS TAKEN
400051d0:	c2 04 20 30 	ld  [ %l0 + 0x30 ], %g1                        
    tty->flow_ctrl |= FL_MDXOF;                                       
400051d4:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        <== NOT EXECUTED
400051d8:	82 10 64 00 	or  %g1, 0x400, %g1                            <== NOT EXECUTED
400051dc:	c2 24 20 b8 	st  %g1, [ %l0 + 0xb8 ]                        <== NOT EXECUTED
  }                                                                   
  /* check for outgoing XON/XOF flow control switched on */           
  if (tty->termios.c_iflag & IXON) {                                  
400051e0:	c2 04 20 30 	ld  [ %l0 + 0x30 ], %g1                        <== NOT EXECUTED
400051e4:	80 88 64 00 	btst  0x400, %g1                               
400051e8:	22 80 00 06 	be,a   40005200 <rtems_termios_ioctl+0x28c>    <== NEVER TAKEN
400051ec:	c2 04 20 3c 	ld  [ %l0 + 0x3c ], %g1                        <== NOT EXECUTED
    tty->flow_ctrl |= FL_MDXON;                                       
400051f0:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        
400051f4:	82 10 62 00 	or  %g1, 0x200, %g1                            
400051f8:	c2 24 20 b8 	st  %g1, [ %l0 + 0xb8 ]                        
		tty->termios = *(struct termios *)args->buffer;                     
                                                                      
		/* check for and process change in flow control options */          
		termios_set_flowctrl(tty);                                          
                                                                      
		if (tty->termios.c_lflag & ICANON) {                                
400051fc:	c2 04 20 3c 	ld  [ %l0 + 0x3c ], %g1                        
40005200:	80 88 60 02 	btst  2, %g1                                   
40005204:	32 80 00 17 	bne,a   40005260 <rtems_termios_ioctl+0x2ec>   <== ALWAYS TAKEN
40005208:	c0 24 20 6c 	clr  [ %l0 + 0x6c ]                            
			tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;                  
			tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;             
		}                                                                   
		else {                                                              
			tty->vtimeTicks = tty->termios.c_cc[VTIME] *                       
			              rtems_clock_get_ticks_per_second() / 10;             
4000520c:	40 00 02 ee 	call  40005dc4 <rtems_clock_get_ticks_per_second><== NOT EXECUTED
40005210:	e4 0c 20 46 	ldub  [ %l0 + 0x46 ], %l2                      <== NOT EXECUTED
			tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                        
			tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;                  
			tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;             
		}                                                                   
		else {                                                              
			tty->vtimeTicks = tty->termios.c_cc[VTIME] *                       
40005214:	40 00 4e 10 	call  40018a54 <.umul>                         <== NOT EXECUTED
40005218:	92 10 00 12 	mov  %l2, %o1                                  <== NOT EXECUTED
4000521c:	40 00 4e 48 	call  40018b3c <.udiv>                         <== NOT EXECUTED
40005220:	92 10 20 0a 	mov  0xa, %o1                                  <== NOT EXECUTED
			              rtems_clock_get_ticks_per_second() / 10;             
			if (tty->termios.c_cc[VTIME]) {                                    
40005224:	c2 0c 20 46 	ldub  [ %l0 + 0x46 ], %g1                      <== NOT EXECUTED
			tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                        
			tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;                  
			tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;             
		}                                                                   
		else {                                                              
			tty->vtimeTicks = tty->termios.c_cc[VTIME] *                       
40005228:	d0 24 20 54 	st  %o0, [ %l0 + 0x54 ]                        <== NOT EXECUTED
			              rtems_clock_get_ticks_per_second() / 10;             
			if (tty->termios.c_cc[VTIME]) {                                    
4000522c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40005230:	02 80 00 08 	be  40005250 <rtems_termios_ioctl+0x2dc>       <== NOT EXECUTED
40005234:	c2 0c 20 47 	ldub  [ %l0 + 0x47 ], %g1                      <== NOT EXECUTED
				tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                       
40005238:	c0 24 20 6c 	clr  [ %l0 + 0x6c ]                            <== NOT EXECUTED
				tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;                  
				if (tty->termios.c_cc[VMIN])                                      
4000523c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40005240:	12 80 00 09 	bne  40005264 <rtems_termios_ioctl+0x2f0>      <== NOT EXECUTED
40005244:	d0 24 20 70 	st  %o0, [ %l0 + 0x70 ]                        <== NOT EXECUTED
					tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;           
				else                                                              
					tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;            
40005248:	10 80 00 0a 	b  40005270 <rtems_termios_ioctl+0x2fc>        <== NOT EXECUTED
4000524c:	d0 24 20 74 	st  %o0, [ %l0 + 0x74 ]                        <== NOT EXECUTED
			}                                                                  
			else {                                                             
				if (tty->termios.c_cc[VMIN]) {                                    
40005250:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40005254:	02 80 00 06 	be  4000526c <rtems_termios_ioctl+0x2f8>       <== NOT EXECUTED
40005258:	82 10 20 01 	mov  1, %g1                                    <== NOT EXECUTED
					tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                      
4000525c:	c0 24 20 6c 	clr  [ %l0 + 0x6c ]                            <== NOT EXECUTED
					tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;                
40005260:	c0 24 20 70 	clr  [ %l0 + 0x70 ]                            
					tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;           
40005264:	10 80 00 03 	b  40005270 <rtems_termios_ioctl+0x2fc>        
40005268:	c0 24 20 74 	clr  [ %l0 + 0x74 ]                            
				}                                                                 
				else {                                                            
					tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;                   
4000526c:	c2 24 20 6c 	st  %g1, [ %l0 + 0x6c ]                        <== NOT EXECUTED
				}                                                                 
			}                                                                  
		}                                                                   
		if (tty->device.setAttributes)                                      
40005270:	c2 04 20 a8 	ld  [ %l0 + 0xa8 ], %g1                        
40005274:	80 a0 60 00 	cmp  %g1, 0                                    
40005278:	02 80 00 3b 	be  40005364 <rtems_termios_ioctl+0x3f0>       <== NEVER TAKEN
4000527c:	01 00 00 00 	nop                                            
			(*tty->device.setAttributes)(tty->minor, &tty->termios);           
40005280:	d0 04 20 10 	ld  [ %l0 + 0x10 ], %o0                        
40005284:	9f c0 40 00 	call  %g1                                      
40005288:	92 04 20 30 	add  %l0, 0x30, %o1                            
4000528c:	30 80 00 36 	b,a   40005364 <rtems_termios_ioctl+0x3f0>     
		break;                                                              
                                                                      
	case RTEMS_IO_TCDRAIN:                                               
		drainOutput (tty);                                                  
40005290:	7f ff fe 2d 	call  40004b44 <drainOutput>                   
40005294:	90 10 00 10 	mov  %l0, %o0                                  
		break;                                                              
40005298:	30 80 00 33 	b,a   40005364 <rtems_termios_ioctl+0x3f0>     
                                                                      
	case RTEMS_IO_SNDWAKEUP:                                             
		tty->tty_snd = *wakeup;                                             
4000529c:	c2 24 20 d4 	st  %g1, [ %l0 + 0xd4 ]                        <== NOT EXECUTED
400052a0:	c2 04 a0 04 	ld  [ %l2 + 4 ], %g1                           <== NOT EXECUTED
		break;                                                              
400052a4:	10 80 00 30 	b  40005364 <rtems_termios_ioctl+0x3f0>        <== NOT EXECUTED
400052a8:	c2 24 20 d8 	st  %g1, [ %l0 + 0xd8 ]                        <== NOT EXECUTED
                                                                      
	case RTEMS_IO_RCVWAKEUP:                                             
		tty->tty_rcv = *wakeup;                                             
400052ac:	c2 24 20 dc 	st  %g1, [ %l0 + 0xdc ]                        <== NOT EXECUTED
400052b0:	c2 04 a0 04 	ld  [ %l2 + 4 ], %g1                           <== NOT EXECUTED
		break;                                                              
400052b4:	10 80 00 2c 	b  40005364 <rtems_termios_ioctl+0x3f0>        <== NOT EXECUTED
400052b8:	c2 24 20 e0 	st  %g1, [ %l0 + 0xe0 ]                        <== NOT EXECUTED
#if 1 /* FIXME */                                                     
	case TIOCSETD:                                                       
		/*                                                                  
		 * close old line discipline                                        
		 */                                                                 
		if (rtems_termios_linesw[tty->t_line].l_close != NULL) {            
400052bc:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    <== NOT EXECUTED
400052c0:	85 28 a0 05 	sll  %g2, 5, %g2                               <== NOT EXECUTED
400052c4:	82 10 60 d4 	or  %g1, 0xd4, %g1                             <== NOT EXECUTED
400052c8:	82 00 40 02 	add  %g1, %g2, %g1                             <== NOT EXECUTED
400052cc:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           <== NOT EXECUTED
400052d0:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
400052d4:	22 80 00 06 	be,a   400052ec <rtems_termios_ioctl+0x378>    <== NOT EXECUTED
400052d8:	c2 04 60 08 	ld  [ %l1 + 8 ], %g1                           <== NOT EXECUTED
			sc = rtems_termios_linesw[tty->t_line].l_close(tty);               
400052dc:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
400052e0:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
400052e4:	b0 10 00 08 	mov  %o0, %i0                                  <== NOT EXECUTED
		}                                                                   
		tty->t_line=*(int*)(args->buffer);                                  
400052e8:	c2 04 60 08 	ld  [ %l1 + 8 ], %g1                           <== NOT EXECUTED
		tty->t_sc = NULL; /* ensure that no more valid data */              
		/*                                                                  
		 * open new line discipline                                         
		 */                                                                 
		if (rtems_termios_linesw[tty->t_line].l_open != NULL) {             
400052ec:	07 10 00 75 	sethi  %hi(0x4001d400), %g3                    <== NOT EXECUTED
		 * close old line discipline                                        
		 */                                                                 
		if (rtems_termios_linesw[tty->t_line].l_close != NULL) {            
			sc = rtems_termios_linesw[tty->t_line].l_close(tty);               
		}                                                                   
		tty->t_line=*(int*)(args->buffer);                                  
400052f0:	c4 00 40 00 	ld  [ %g1 ], %g2                               <== NOT EXECUTED
		tty->t_sc = NULL; /* ensure that no more valid data */              
		/*                                                                  
		 * open new line discipline                                         
		 */                                                                 
		if (rtems_termios_linesw[tty->t_line].l_open != NULL) {             
400052f4:	86 10 e0 d4 	or  %g3, 0xd4, %g3                             <== NOT EXECUTED
400052f8:	83 28 a0 05 	sll  %g2, 5, %g1                               <== NOT EXECUTED
400052fc:	c2 00 c0 01 	ld  [ %g3 + %g1 ], %g1                         <== NOT EXECUTED
		 * close old line discipline                                        
		 */                                                                 
		if (rtems_termios_linesw[tty->t_line].l_close != NULL) {            
			sc = rtems_termios_linesw[tty->t_line].l_close(tty);               
		}                                                                   
		tty->t_line=*(int*)(args->buffer);                                  
40005300:	c4 24 20 cc 	st  %g2, [ %l0 + 0xcc ]                        <== NOT EXECUTED
		tty->t_sc = NULL; /* ensure that no more valid data */              
		/*                                                                  
		 * open new line discipline                                         
		 */                                                                 
		if (rtems_termios_linesw[tty->t_line].l_open != NULL) {             
40005304:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40005308:	02 80 00 17 	be  40005364 <rtems_termios_ioctl+0x3f0>       <== NOT EXECUTED
4000530c:	c0 24 20 d0 	clr  [ %l0 + 0xd0 ]                            <== NOT EXECUTED
			sc = rtems_termios_linesw[tty->t_line].l_open(tty);                
40005310:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40005314:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
40005318:	10 80 00 13 	b  40005364 <rtems_termios_ioctl+0x3f0>        <== NOT EXECUTED
4000531c:	b0 10 00 08 	mov  %o0, %i0                                  <== NOT EXECUTED
		}                                                                   
		break;                                                              
	case TIOCGETD:                                                       
		*(int*)(args->buffer)=tty->t_line;                                  
40005320:	c2 04 60 08 	ld  [ %l1 + 8 ], %g1                           <== NOT EXECUTED
40005324:	c4 04 20 cc 	ld  [ %l0 + 0xcc ], %g2                        <== NOT EXECUTED
		break;                                                              
40005328:	10 80 00 0f 	b  40005364 <rtems_termios_ioctl+0x3f0>        <== NOT EXECUTED
4000532c:	c4 20 40 00 	st  %g2, [ %g1 ]                               <== NOT EXECUTED
#endif                                                                
 	case FIONREAD:                                                      
		{                                                                   
		int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;                
40005330:	c4 04 20 60 	ld  [ %l0 + 0x60 ], %g2                        <== NOT EXECUTED
40005334:	c2 04 20 5c 	ld  [ %l0 + 0x5c ], %g1                        <== NOT EXECUTED
		if ( rawnc < 0 )                                                    
40005338:	82 a0 80 01 	subcc  %g2, %g1, %g1                           <== NOT EXECUTED
4000533c:	3c 80 00 05 	bpos,a   40005350 <rtems_termios_ioctl+0x3dc>  <== NOT EXECUTED
40005340:	c8 04 20 20 	ld  [ %l0 + 0x20 ], %g4                        <== NOT EXECUTED
			rawnc += tty->rawInBuf.Size;                                       
40005344:	c4 04 20 64 	ld  [ %l0 + 0x64 ], %g2                        <== NOT EXECUTED
40005348:	82 00 40 02 	add  %g1, %g2, %g1                             <== NOT EXECUTED
		/* Half guess that this is the right operation */                   
		*(int *)args->buffer = tty->ccount - tty->cindex + rawnc;           
4000534c:	c8 04 20 20 	ld  [ %l0 + 0x20 ], %g4                        <== NOT EXECUTED
40005350:	c6 04 20 24 	ld  [ %l0 + 0x24 ], %g3                        <== NOT EXECUTED
40005354:	c4 04 60 08 	ld  [ %l1 + 8 ], %g2                           <== NOT EXECUTED
40005358:	86 21 00 03 	sub  %g4, %g3, %g3                             <== NOT EXECUTED
4000535c:	82 00 c0 01 	add  %g3, %g1, %g1                             <== NOT EXECUTED
40005360:	c2 20 80 00 	st  %g1, [ %g2 ]                               <== NOT EXECUTED
		}                                                                   
		break;                                                              
	}                                                                    
	rtems_semaphore_release (tty->osem);                                 
40005364:	40 00 04 a9 	call  40006608 <rtems_semaphore_release>       
40005368:	d0 04 20 18 	ld  [ %l0 + 0x18 ], %o0                        
	args->ioctl_return = sc;                                             
4000536c:	f0 24 60 0c 	st  %i0, [ %l1 + 0xc ]                         
	return sc;                                                           
}                                                                     
40005370:	81 c7 e0 08 	ret                                            
40005374:	81 e8 00 00 	restore                                        
                                                                      

40005518 <rtems_termios_number_to_baud>: #include <rtems/termiostypes.h> int rtems_termios_number_to_baud( int32_t baud ) {
40005518:	82 10 00 08 	mov  %o0, %g1                                  
  int termios_baud;                                                   
                                                                      
  switch (baud) {                                                     
4000551c:	80 a2 24 b0 	cmp  %o0, 0x4b0                                
40005520:	02 80 00 19 	be  40005584 <rtems_termios_number_to_baud+0x6c>
40005524:	90 10 20 09 	mov  9, %o0                                    
40005528:	80 a0 64 b0 	cmp  %g1, 0x4b0                                
4000552c:	14 80 00 29 	bg  400055d0 <rtems_termios_number_to_baud+0xb8>
40005530:	05 00 00 12 	sethi  %hi(0x4800), %g2                        
40005534:	80 a0 60 86 	cmp  %g1, 0x86                                 
40005538:	02 80 00 13 	be  40005584 <rtems_termios_number_to_baud+0x6c>
4000553c:	90 10 20 04 	mov  4, %o0                                    
40005540:	80 a0 60 86 	cmp  %g1, 0x86                                 
40005544:	14 80 00 12 	bg  4000558c <rtems_termios_number_to_baud+0x74>
40005548:	80 a0 60 c8 	cmp  %g1, 0xc8                                 
4000554c:	80 a0 60 32 	cmp  %g1, 0x32                                 
40005550:	02 80 00 0d 	be  40005584 <rtems_termios_number_to_baud+0x6c>
40005554:	90 10 20 01 	mov  1, %o0                                    
40005558:	80 a0 60 32 	cmp  %g1, 0x32                                 
4000555c:	34 80 00 05 	bg,a   40005570 <rtems_termios_number_to_baud+0x58>
40005560:	80 a0 60 4b 	cmp  %g1, 0x4b                                 
40005564:	80 a0 60 00 	cmp  %g1, 0                                    
40005568:	10 80 00 52 	b  400056b0 <rtems_termios_number_to_baud+0x198>
4000556c:	90 10 20 00 	clr  %o0                                       
40005570:	02 80 00 05 	be  40005584 <rtems_termios_number_to_baud+0x6c>
40005574:	90 10 20 02 	mov  2, %o0                                    
40005578:	80 a0 60 6e 	cmp  %g1, 0x6e                                 
4000557c:	12 80 00 4f 	bne  400056b8 <rtems_termios_number_to_baud+0x1a0><== NEVER TAKEN
40005580:	90 10 20 03 	mov  3, %o0                                    
40005584:	81 c3 e0 08 	retl                                           
40005588:	01 00 00 00 	nop                                            
4000558c:	02 bf ff fe 	be  40005584 <rtems_termios_number_to_baud+0x6c>
40005590:	90 10 20 06 	mov  6, %o0	! 6 <PROM_START+0x6>               
40005594:	80 a0 60 c8 	cmp  %g1, 0xc8                                 
40005598:	14 80 00 07 	bg  400055b4 <rtems_termios_number_to_baud+0x9c>
4000559c:	80 a0 61 2c 	cmp  %g1, 0x12c                                
400055a0:	80 a0 60 96 	cmp  %g1, 0x96                                 
400055a4:	12 80 00 45 	bne  400056b8 <rtems_termios_number_to_baud+0x1a0><== NEVER TAKEN
400055a8:	90 10 20 05 	mov  5, %o0                                    
400055ac:	81 c3 e0 08 	retl                                           
400055b0:	01 00 00 00 	nop                                            
400055b4:	02 bf ff f4 	be  40005584 <rtems_termios_number_to_baud+0x6c>
400055b8:	90 10 20 07 	mov  7, %o0	! 7 <PROM_START+0x7>               
400055bc:	80 a0 62 58 	cmp  %g1, 0x258                                
400055c0:	12 80 00 3e 	bne  400056b8 <rtems_termios_number_to_baud+0x1a0><== NEVER TAKEN
400055c4:	90 10 20 08 	mov  8, %o0                                    
400055c8:	81 c3 e0 08 	retl                                           
400055cc:	01 00 00 00 	nop                                            
400055d0:	84 10 a3 00 	or  %g2, 0x300, %g2                            
400055d4:	80 a0 40 02 	cmp  %g1, %g2                                  
400055d8:	02 bf ff eb 	be  40005584 <rtems_termios_number_to_baud+0x6c>
400055dc:	90 10 20 0e 	mov  0xe, %o0                                  
400055e0:	80 a0 40 02 	cmp  %g1, %g2                                  
400055e4:	14 80 00 18 	bg  40005644 <rtems_termios_number_to_baud+0x12c>
400055e8:	07 00 00 70 	sethi  %hi(0x1c000), %g3                       
400055ec:	80 a0 69 60 	cmp  %g1, 0x960                                
400055f0:	02 bf ff e5 	be  40005584 <rtems_termios_number_to_baud+0x6c>
400055f4:	90 10 20 0b 	mov  0xb, %o0                                  
400055f8:	80 a0 69 60 	cmp  %g1, 0x960                                
400055fc:	34 80 00 07 	bg,a   40005618 <rtems_termios_number_to_baud+0x100>
40005600:	05 00 00 04 	sethi  %hi(0x1000), %g2                        
40005604:	80 a0 67 08 	cmp  %g1, 0x708                                
40005608:	12 80 00 2c 	bne  400056b8 <rtems_termios_number_to_baud+0x1a0><== NEVER TAKEN
4000560c:	90 10 20 0a 	mov  0xa, %o0                                  
40005610:	81 c3 e0 08 	retl                                           
40005614:	01 00 00 00 	nop                                            
40005618:	84 10 a2 c0 	or  %g2, 0x2c0, %g2                            
4000561c:	80 a0 40 02 	cmp  %g1, %g2                                  
40005620:	02 bf ff d9 	be  40005584 <rtems_termios_number_to_baud+0x6c>
40005624:	90 10 20 0c 	mov  0xc, %o0                                  
40005628:	05 00 00 09 	sethi  %hi(0x2400), %g2                        
4000562c:	84 10 a1 80 	or  %g2, 0x180, %g2	! 2580 <PROM_START+0x2580> 
40005630:	80 a0 40 02 	cmp  %g1, %g2                                  
40005634:	12 80 00 21 	bne  400056b8 <rtems_termios_number_to_baud+0x1a0>
40005638:	90 10 20 0d 	mov  0xd, %o0                                  
4000563c:	81 c3 e0 08 	retl                                           
40005640:	01 00 00 00 	nop                                            
    case 2400:    termios_baud = B2400;   break;                      
    case 4800:    termios_baud = B4800;   break;                      
    case 9600:    termios_baud = B9600;   break;                      
    case 19200:   termios_baud = B19200;  break;                      
    case 38400:   termios_baud = B38400;  break;                      
    case 57600:   termios_baud = B57600;  break;                      
40005644:	05 00 00 04 	sethi  %hi(0x1000), %g2                        
  int32_t baud                                                        
)                                                                     
{                                                                     
  int termios_baud;                                                   
                                                                      
  switch (baud) {                                                     
40005648:	86 10 e2 00 	or  %g3, 0x200, %g3                            
4000564c:	80 a0 40 03 	cmp  %g1, %g3                                  
40005650:	02 bf ff cd 	be  40005584 <rtems_termios_number_to_baud+0x6c>
40005654:	90 10 a0 02 	or  %g2, 2, %o0                                
40005658:	80 a0 40 03 	cmp  %g1, %g3                                  
4000565c:	14 80 00 0f 	bg  40005698 <rtems_termios_number_to_baud+0x180>
40005660:	07 00 00 e1 	sethi  %hi(0x38400), %g3                       
40005664:	07 00 00 25 	sethi  %hi(0x9400), %g3                        
40005668:	86 10 e2 00 	or  %g3, 0x200, %g3	! 9600 <PROM_START+0x9600> 
4000566c:	80 a0 40 03 	cmp  %g1, %g3                                  
40005670:	02 bf ff c5 	be  40005584 <rtems_termios_number_to_baud+0x6c>
40005674:	90 10 20 0f 	mov  0xf, %o0                                  
    case 1800:    termios_baud = B1800;   break;                      
    case 2400:    termios_baud = B2400;   break;                      
    case 4800:    termios_baud = B4800;   break;                      
    case 9600:    termios_baud = B9600;   break;                      
    case 19200:   termios_baud = B19200;  break;                      
    case 38400:   termios_baud = B38400;  break;                      
40005678:	90 10 a0 01 	or  %g2, 1, %o0                                
  int32_t baud                                                        
)                                                                     
{                                                                     
  int termios_baud;                                                   
                                                                      
  switch (baud) {                                                     
4000567c:	05 00 00 38 	sethi  %hi(0xe000), %g2                        
40005680:	84 10 a1 00 	or  %g2, 0x100, %g2	! e100 <PROM_START+0xe100> 
40005684:	80 a0 40 02 	cmp  %g1, %g2                                  
40005688:	32 bf ff bf 	bne,a   40005584 <rtems_termios_number_to_baud+0x6c><== NEVER TAKEN
4000568c:	90 10 3f ff 	mov  -1, %o0                                   <== NOT EXECUTED
40005690:	81 c3 e0 08 	retl                                           
40005694:	01 00 00 00 	nop                                            
40005698:	80 a0 40 03 	cmp  %g1, %g3                                  
4000569c:	02 bf ff ba 	be  40005584 <rtems_termios_number_to_baud+0x6c>
400056a0:	90 10 a0 03 	or  %g2, 3, %o0                                
    case 9600:    termios_baud = B9600;   break;                      
    case 19200:   termios_baud = B19200;  break;                      
    case 38400:   termios_baud = B38400;  break;                      
    case 57600:   termios_baud = B57600;  break;                      
    case 115200:  termios_baud = B115200; break;                      
    case 230400:  termios_baud = B230400; break;                      
400056a4:	90 10 a0 04 	or  %g2, 4, %o0                                
  int32_t baud                                                        
)                                                                     
{                                                                     
  int termios_baud;                                                   
                                                                      
  switch (baud) {                                                     
400056a8:	05 00 01 c2 	sethi  %hi(0x70800), %g2                       
400056ac:	80 a0 40 02 	cmp  %g1, %g2                                  
400056b0:	02 80 00 03 	be  400056bc <rtems_termios_number_to_baud+0x1a4>
400056b4:	01 00 00 00 	nop                                            
    case 19200:   termios_baud = B19200;  break;                      
    case 38400:   termios_baud = B38400;  break;                      
    case 57600:   termios_baud = B57600;  break;                      
    case 115200:  termios_baud = B115200; break;                      
    case 230400:  termios_baud = B230400; break;                      
    case 460800:  termios_baud = B460800; break;                      
400056b8:	90 10 3f ff 	mov  -1, %o0	! ffffffff <LEON_REG+0x7fffffff>  
    default:      termios_baud = -1;      break;                      
  }                                                                   
                                                                      
  return termios_baud;                                                
}                                                                     
400056bc:	81 c3 e0 08 	retl                                           
                                                                      

40005540 <rtems_termios_open>: rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) {
40005540:	9d e3 bf a0 	save  %sp, -96, %sp                            
	struct rtems_termios_tty *tty;                                       
                                                                      
	/*                                                                   
	 * See if the device has already been opened                         
	 */                                                                  
	sc = rtems_semaphore_obtain (rtems_termios_ttyMutex,                 
40005544:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
40005548:	d0 00 63 e4 	ld  [ %g1 + 0x3e4 ], %o0	! 4001d7e4 <rtems_termios_ttyMutex>
4000554c:	92 10 20 00 	clr  %o1                                       
40005550:	40 00 03 e7 	call  400064ec <rtems_semaphore_obtain>        
40005554:	94 10 20 00 	clr  %o2                                       
				     RTEMS_WAIT, RTEMS_NO_TIMEOUT);                               
	if (sc != RTEMS_SUCCESSFUL)                                          
40005558:	a0 92 20 00 	orcc  %o0, 0, %l0                              
4000555c:	12 80 01 05 	bne  40005970 <rtems_termios_open+0x430>       <== NEVER TAKEN
40005560:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
		return sc;                                                          
	for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) {  
40005564:	10 80 00 0a 	b  4000558c <rtems_termios_open+0x4c>          
40005568:	e4 00 63 ec 	ld  [ %g1 + 0x3ec ], %l2	! 4001d7ec <rtems_termios_ttyHead>
		if ((tty->major == major) && (tty->minor == minor))                 
4000556c:	80 a0 40 18 	cmp  %g1, %i0                                  
40005570:	32 80 00 07 	bne,a   4000558c <rtems_termios_open+0x4c>     
40005574:	e4 04 80 00 	ld  [ %l2 ], %l2                               
40005578:	c2 04 a0 10 	ld  [ %l2 + 0x10 ], %g1                        
4000557c:	80 a0 40 19 	cmp  %g1, %i1                                  
40005580:	22 80 00 d6 	be,a   400058d8 <rtems_termios_open+0x398>     <== ALWAYS TAKEN
40005584:	c2 04 a0 08 	ld  [ %l2 + 8 ], %g1                           
	 */                                                                  
	sc = rtems_semaphore_obtain (rtems_termios_ttyMutex,                 
				     RTEMS_WAIT, RTEMS_NO_TIMEOUT);                               
	if (sc != RTEMS_SUCCESSFUL)                                          
		return sc;                                                          
	for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) {  
40005588:	e4 04 80 00 	ld  [ %l2 ], %l2                               <== NOT EXECUTED
4000558c:	80 a4 a0 00 	cmp  %l2, 0                                    
40005590:	32 bf ff f7 	bne,a   4000556c <rtems_termios_open+0x2c>     
40005594:	c2 04 a0 0c 	ld  [ %l2 + 0xc ], %g1                         
		static char c = 'a';                                                
                                                                      
		/*                                                                  
		 * Create a new device                                              
		 */                                                                 
		tty = calloc (1, sizeof (struct rtems_termios_tty));                
40005598:	10 80 00 f8 	b  40005978 <rtems_termios_open+0x438>         
4000559c:	90 10 20 01 	mov  1, %o0                                    
			return RTEMS_NO_MEMORY;                                            
		}                                                                   
		/*                                                                  
		 * allocate raw input buffer                                        
		 */                                                                 
		tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;                         
400055a0:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
400055a4:	c2 00 63 0c 	ld  [ %g1 + 0x30c ], %g1	! 4001cf0c <rtems_termios_raw_input_size>
400055a8:	c2 24 a0 64 	st  %g1, [ %l2 + 0x64 ]                        
		tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);                 
400055ac:	d0 04 a0 64 	ld  [ %l2 + 0x64 ], %o0                        
400055b0:	40 00 18 55 	call  4000b704 <malloc>                        
400055b4:	01 00 00 00 	nop                                            
		if (tty->rawInBuf.theBuf == NULL) {                                 
400055b8:	80 a2 20 00 	cmp  %o0, 0                                    
400055bc:	12 80 00 08 	bne  400055dc <rtems_termios_open+0x9c>        <== ALWAYS TAKEN
400055c0:	d0 24 a0 58 	st  %o0, [ %l2 + 0x58 ]                        
		        free(tty);                                                  
400055c4:	40 00 16 ee 	call  4000b17c <free>                          <== NOT EXECUTED
400055c8:	90 10 00 12 	mov  %l2, %o0                                  <== NOT EXECUTED
			rtems_semaphore_release (rtems_termios_ttyMutex);                  
400055cc:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    <== NOT EXECUTED
400055d0:	a0 10 20 1a 	mov  0x1a, %l0                                 <== NOT EXECUTED
400055d4:	10 80 00 e5 	b  40005968 <rtems_termios_open+0x428>         <== NOT EXECUTED
400055d8:	d0 00 63 e4 	ld  [ %g1 + 0x3e4 ], %o0                       <== NOT EXECUTED
			return RTEMS_NO_MEMORY;                                            
		}                                                                   
		/*                                                                  
		 * allocate raw output buffer                                       
		 */                                                                 
		tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;                       
400055dc:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
400055e0:	c2 00 63 10 	ld  [ %g1 + 0x310 ], %g1	! 4001cf10 <rtems_termios_raw_output_size>
400055e4:	c2 24 a0 88 	st  %g1, [ %l2 + 0x88 ]                        
		tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);               
400055e8:	d0 04 a0 88 	ld  [ %l2 + 0x88 ], %o0                        
400055ec:	40 00 18 46 	call  4000b704 <malloc>                        
400055f0:	01 00 00 00 	nop                                            
		if (tty->rawOutBuf.theBuf == NULL) {                                
400055f4:	80 a2 20 00 	cmp  %o0, 0                                    
400055f8:	12 80 00 05 	bne  4000560c <rtems_termios_open+0xcc>        <== ALWAYS TAKEN
400055fc:	d0 24 a0 7c 	st  %o0, [ %l2 + 0x7c ]                        
		        free((void *)(tty->rawInBuf.theBuf));                       
40005600:	d0 04 a0 58 	ld  [ %l2 + 0x58 ], %o0                        <== NOT EXECUTED
		        free(tty);                                                  
			rtems_semaphore_release (rtems_termios_ttyMutex);                  
40005604:	10 80 00 0c 	b  40005634 <rtems_termios_open+0xf4>          <== NOT EXECUTED
40005608:	a0 10 20 1a 	mov  0x1a, %l0                                 <== NOT EXECUTED
			return RTEMS_NO_MEMORY;                                            
		}                                                                   
		/*                                                                  
		 * allocate cooked buffer                                           
		 */                                                                 
		tty->cbuf  = malloc (CBUFSIZE);                                     
4000560c:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
40005610:	40 00 18 3d 	call  4000b704 <malloc>                        
40005614:	d0 00 63 08 	ld  [ %g1 + 0x308 ], %o0	! 4001cf08 <rtems_termios_cbufsize>
		if (tty->cbuf == NULL) {                                            
40005618:	80 a2 20 00 	cmp  %o0, 0                                    
4000561c:	12 80 00 0c 	bne  4000564c <rtems_termios_open+0x10c>       <== ALWAYS TAKEN
40005620:	d0 24 a0 1c 	st  %o0, [ %l2 + 0x1c ]                        
		        free((void *)(tty->rawOutBuf.theBuf));                      
40005624:	d0 04 a0 7c 	ld  [ %l2 + 0x7c ], %o0                        <== NOT EXECUTED
40005628:	40 00 16 d5 	call  4000b17c <free>                          <== NOT EXECUTED
4000562c:	a0 10 20 1a 	mov  0x1a, %l0                                 <== NOT EXECUTED
		        free((void *)(tty->rawInBuf.theBuf));                       
40005630:	d0 04 a0 58 	ld  [ %l2 + 0x58 ], %o0                        <== NOT EXECUTED
40005634:	40 00 16 d2 	call  4000b17c <free>                          <== NOT EXECUTED
40005638:	01 00 00 00 	nop                                            <== NOT EXECUTED
		        free(tty);                                                  
4000563c:	40 00 16 d0 	call  4000b17c <free>                          <== NOT EXECUTED
40005640:	90 10 00 12 	mov  %l2, %o0                                  <== NOT EXECUTED
				  (rtems_task_argument)tty);                                      
	    if (sc != RTEMS_SUCCESSFUL)                                      
	      rtems_fatal_error_occurred (sc);                               
	  }                                                                  
	}                                                                    
	rtems_semaphore_release (rtems_termios_ttyMutex);                    
40005644:	10 80 00 c8 	b  40005964 <rtems_termios_open+0x424>         <== NOT EXECUTED
40005648:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    <== NOT EXECUTED
		tty->tty_rcvwakeup  = 0;                                            
                                                                      
		/*                                                                  
		 * link tty                                                         
		 */                                                                 
		tty->forw = rtems_termios_ttyHead;                                  
4000564c:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
40005650:	c2 00 63 ec 	ld  [ %g1 + 0x3ec ], %g1	! 4001d7ec <rtems_termios_ttyHead>
			return RTEMS_NO_MEMORY;                                            
		}                                                                   
		/*                                                                  
		 * Initialize wakeup callbacks                                      
		 */                                                                 
		tty->tty_snd.sw_pfn = NULL;                                         
40005654:	c0 24 a0 d4 	clr  [ %l2 + 0xd4 ]                            
		tty->tty_snd.sw_arg = NULL;                                         
40005658:	c0 24 a0 d8 	clr  [ %l2 + 0xd8 ]                            
		tty->tty_rcv.sw_pfn = NULL;                                         
4000565c:	c0 24 a0 dc 	clr  [ %l2 + 0xdc ]                            
		tty->tty_rcv.sw_arg = NULL;                                         
40005660:	c0 24 a0 e0 	clr  [ %l2 + 0xe0 ]                            
		tty->tty_rcvwakeup  = 0;                                            
40005664:	c0 24 a0 e4 	clr  [ %l2 + 0xe4 ]                            
                                                                      
		/*                                                                  
		 * link tty                                                         
		 */                                                                 
		tty->forw = rtems_termios_ttyHead;                                  
40005668:	c2 24 80 00 	st  %g1, [ %l2 ]                               
		tty->back = NULL;                                                   
		if (rtems_termios_ttyHead != NULL)                                  
4000566c:	80 a0 60 00 	cmp  %g1, 0                                    
40005670:	02 80 00 03 	be  4000567c <rtems_termios_open+0x13c>        
40005674:	c0 24 a0 04 	clr  [ %l2 + 4 ]                               
			rtems_termios_ttyHead->back = tty;                                 
40005678:	e4 20 60 04 	st  %l2, [ %g1 + 4 ]                           
		rtems_termios_ttyHead = tty;                                        
		if (rtems_termios_ttyTail == NULL)                                  
4000567c:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
40005680:	c4 00 63 e8 	ld  [ %g1 + 0x3e8 ], %g2	! 4001d7e8 <rtems_termios_ttyTail>
		 */                                                                 
		tty->forw = rtems_termios_ttyHead;                                  
		tty->back = NULL;                                                   
		if (rtems_termios_ttyHead != NULL)                                  
			rtems_termios_ttyHead->back = tty;                                 
		rtems_termios_ttyHead = tty;                                        
40005684:	07 10 00 75 	sethi  %hi(0x4001d400), %g3                    
		if (rtems_termios_ttyTail == NULL)                                  
40005688:	80 a0 a0 00 	cmp  %g2, 0                                    
4000568c:	12 80 00 03 	bne  40005698 <rtems_termios_open+0x158>       
40005690:	e2 20 e3 ec 	st  %l1, [ %g3 + 0x3ec ]                       
			rtems_termios_ttyTail = tty;                                       
40005694:	e2 20 63 e8 	st  %l1, [ %g1 + 0x3e8 ]                       
		tty->major = major;                                                 
                                                                      
		/*                                                                  
		 * Set up mutex semaphores                                          
		 */                                                                 
		sc = rtems_semaphore_create (                                       
40005698:	27 10 00 73 	sethi  %hi(0x4001cc00), %l3                    
4000569c:	d0 4c e3 14 	ldsb  [ %l3 + 0x314 ], %o0	! 4001cf14 <c.6356> 
400056a0:	03 15 14 9a 	sethi  %hi(0x54526800), %g1                    
400056a4:	82 10 61 00 	or  %g1, 0x100, %g1	! 54526900 <RAM_END+0x14126900>
			rtems_termios_ttyHead->back = tty;                                 
		rtems_termios_ttyHead = tty;                                        
		if (rtems_termios_ttyTail == NULL)                                  
			rtems_termios_ttyTail = tty;                                       
                                                                      
		tty->minor = minor;                                                 
400056a8:	f2 24 60 10 	st  %i1, [ %l1 + 0x10 ]                        
		tty->major = major;                                                 
400056ac:	f0 24 60 0c 	st  %i0, [ %l1 + 0xc ]                         
                                                                      
		/*                                                                  
		 * Set up mutex semaphores                                          
		 */                                                                 
		sc = rtems_semaphore_create (                                       
400056b0:	90 12 00 01 	or  %o0, %g1, %o0                              
400056b4:	92 10 20 01 	mov  1, %o1                                    
400056b8:	94 10 20 54 	mov  0x54, %o2                                 
400056bc:	96 10 20 00 	clr  %o3                                       
400056c0:	40 00 02 e9 	call  40006264 <rtems_semaphore_create>        
400056c4:	98 04 60 14 	add  %l1, 0x14, %o4                            
			rtems_build_name ('T', 'R', 'i', c),                               
			1,                                                                 
			RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,  
			RTEMS_NO_PRIORITY,                                                 
			&tty->isem);                                                       
		if (sc != RTEMS_SUCCESSFUL)                                         
400056c8:	80 a2 20 00 	cmp  %o0, 0                                    
400056cc:	12 80 00 a3 	bne  40005958 <rtems_termios_open+0x418>       <== NEVER TAKEN
400056d0:	03 15 14 9b 	sethi  %hi(0x54526c00), %g1                    
			rtems_fatal_error_occurred (sc);                                   
		sc = rtems_semaphore_create (                                       
400056d4:	d0 4c e3 14 	ldsb  [ %l3 + 0x314 ], %o0                     
400056d8:	82 10 63 00 	or  %g1, 0x300, %g1                            
400056dc:	92 10 20 01 	mov  1, %o1                                    
400056e0:	90 12 00 01 	or  %o0, %g1, %o0                              
400056e4:	94 10 20 54 	mov  0x54, %o2                                 
400056e8:	96 10 20 00 	clr  %o3                                       
400056ec:	40 00 02 de 	call  40006264 <rtems_semaphore_create>        
400056f0:	98 04 60 18 	add  %l1, 0x18, %o4                            
			rtems_build_name ('T', 'R', 'o', c),                               
			1,                                                                 
			RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,  
			RTEMS_NO_PRIORITY,                                                 
			&tty->osem);                                                       
		if (sc != RTEMS_SUCCESSFUL)                                         
400056f4:	80 a2 20 00 	cmp  %o0, 0                                    
400056f8:	12 80 00 98 	bne  40005958 <rtems_termios_open+0x418>       <== NEVER TAKEN
400056fc:	03 15 14 9e 	sethi  %hi(0x54527800), %g1                    
			rtems_fatal_error_occurred (sc);                                   
		sc = rtems_semaphore_create (                                       
40005700:	d0 4c e3 14 	ldsb  [ %l3 + 0x314 ], %o0                     
40005704:	92 10 20 00 	clr  %o1                                       
40005708:	90 12 00 01 	or  %o0, %g1, %o0                              
4000570c:	94 10 20 20 	mov  0x20, %o2                                 
40005710:	96 10 20 00 	clr  %o3                                       
40005714:	40 00 02 d4 	call  40006264 <rtems_semaphore_create>        
40005718:	98 04 60 8c 	add  %l1, 0x8c, %o4                            
			rtems_build_name ('T', 'R', 'x', c),                               
			0,                                                                 
			RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO,                        
			RTEMS_NO_PRIORITY,                                                 
			&tty->rawOutBuf.Semaphore);                                        
		if (sc != RTEMS_SUCCESSFUL)                                         
4000571c:	80 a2 20 00 	cmp  %o0, 0                                    
40005720:	12 80 00 8e 	bne  40005958 <rtems_termios_open+0x418>       <== NEVER TAKEN
40005724:	92 10 00 1b 	mov  %i3, %o1                                  
			rtems_fatal_error_occurred (sc);                                   
		tty->rawOutBufState = rob_idle;                                     
40005728:	c0 24 60 94 	clr  [ %l1 + 0x94 ]                            
                                                                      
		/*                                                                  
		 * Set callbacks                                                    
		 */                                                                 
		tty->device = *callbacks;                                           
4000572c:	90 04 60 98 	add  %l1, 0x98, %o0                            
40005730:	40 00 29 a7 	call  4000fdcc <memcpy>                        
40005734:	94 10 20 20 	mov  0x20, %o2                                 
                                                                      
		/*                                                                  
		 * Create I/O tasks                                                 
		 */                                                                 
		if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
40005738:	c2 04 60 b4 	ld  [ %l1 + 0xb4 ], %g1                        
4000573c:	80 a0 60 02 	cmp  %g1, 2                                    
40005740:	32 80 00 1a 	bne,a   400057a8 <rtems_termios_open+0x268>    <== ALWAYS TAKEN
40005744:	c2 04 60 a0 	ld  [ %l1 + 0xa0 ], %g1                        
			sc = rtems_task_create (                                           
40005748:	d0 4c e3 14 	ldsb  [ %l3 + 0x314 ], %o0                     <== NOT EXECUTED
4000574c:	03 15 1e 15 	sethi  %hi(0x54785400), %g1                    <== NOT EXECUTED
40005750:	92 10 20 0a 	mov  0xa, %o1                                  <== NOT EXECUTED
40005754:	90 12 00 01 	or  %o0, %g1, %o0                              <== NOT EXECUTED
40005758:	94 10 24 00 	mov  0x400, %o2                                <== NOT EXECUTED
4000575c:	96 10 25 00 	mov  0x500, %o3                                <== NOT EXECUTED
40005760:	98 10 20 00 	clr  %o4                                       <== NOT EXECUTED
40005764:	40 00 03 d5 	call  400066b8 <rtems_task_create>             <== NOT EXECUTED
40005768:	9a 04 60 c8 	add  %l1, 0xc8, %o5                            <== NOT EXECUTED
				   TERMIOS_TXTASK_STACKSIZE,                                      
				   RTEMS_NO_PREEMPT | RTEMS_NO_TIMESLICE |                        
				   RTEMS_NO_ASR,                                                  
				   RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,                         
				   &tty->txTaskId);                                               
			if (sc != RTEMS_SUCCESSFUL)                                        
4000576c:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
40005770:	12 80 00 7a 	bne  40005958 <rtems_termios_open+0x418>       <== NOT EXECUTED
40005774:	03 14 9e 15 	sethi  %hi(0x52785400), %g1                    <== NOT EXECUTED
				rtems_fatal_error_occurred (sc);                                  
			sc = rtems_task_create (                                           
40005778:	d0 4c e3 14 	ldsb  [ %l3 + 0x314 ], %o0                     <== NOT EXECUTED
4000577c:	92 10 20 09 	mov  9, %o1                                    <== NOT EXECUTED
40005780:	90 12 00 01 	or  %o0, %g1, %o0                              <== NOT EXECUTED
40005784:	94 10 24 00 	mov  0x400, %o2                                <== NOT EXECUTED
40005788:	96 10 25 00 	mov  0x500, %o3                                <== NOT EXECUTED
4000578c:	98 10 20 00 	clr  %o4                                       <== NOT EXECUTED
40005790:	40 00 03 ca 	call  400066b8 <rtems_task_create>             <== NOT EXECUTED
40005794:	9a 04 60 c4 	add  %l1, 0xc4, %o5                            <== NOT EXECUTED
				   TERMIOS_RXTASK_STACKSIZE,                                      
				   RTEMS_NO_PREEMPT | RTEMS_NO_TIMESLICE |                        
				   RTEMS_NO_ASR,                                                  
				   RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,                         
				   &tty->rxTaskId);                                               
			if (sc != RTEMS_SUCCESSFUL)                                        
40005798:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000579c:	12 80 00 6f 	bne  40005958 <rtems_termios_open+0x418>       <== NOT EXECUTED
400057a0:	01 00 00 00 	nop                                            <== NOT EXECUTED
				rtems_fatal_error_occurred (sc);                                  
                                                                      
		}                                                                   
		if ((tty->device.pollRead == NULL) ||                               
400057a4:	c2 04 60 a0 	ld  [ %l1 + 0xa0 ], %g1                        <== NOT EXECUTED
400057a8:	80 a0 60 00 	cmp  %g1, 0                                    
400057ac:	02 80 00 07 	be  400057c8 <rtems_termios_open+0x288>        <== NEVER TAKEN
400057b0:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
		    (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){     
400057b4:	c2 04 60 b4 	ld  [ %l1 + 0xb4 ], %g1                        
400057b8:	80 a0 60 02 	cmp  %g1, 2                                    
400057bc:	12 80 00 0f 	bne  400057f8 <rtems_termios_open+0x2b8>       <== ALWAYS TAKEN
400057c0:	84 10 20 03 	mov  3, %g2                                    
			sc = rtems_semaphore_create (                                      
400057c4:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    <== NOT EXECUTED
400057c8:	d0 48 63 14 	ldsb  [ %g1 + 0x314 ], %o0	! 4001cf14 <c.6356> <== NOT EXECUTED
400057cc:	03 15 14 9c 	sethi  %hi(0x54527000), %g1                    <== NOT EXECUTED
400057d0:	82 10 62 00 	or  %g1, 0x200, %g1	! 54527200 <RAM_END+0x14127200><== NOT EXECUTED
400057d4:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
400057d8:	90 12 00 01 	or  %o0, %g1, %o0                              <== NOT EXECUTED
400057dc:	94 10 20 24 	mov  0x24, %o2                                 <== NOT EXECUTED
400057e0:	96 10 20 00 	clr  %o3                                       <== NOT EXECUTED
400057e4:	40 00 02 a0 	call  40006264 <rtems_semaphore_create>        <== NOT EXECUTED
400057e8:	98 04 60 68 	add  %l1, 0x68, %o4                            <== NOT EXECUTED
				rtems_build_name ('T', 'R', 'r', c),                              
				0,                                                                
				RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_PRIORITY,                   
				RTEMS_NO_PRIORITY,                                                
				&tty->rawInBuf.Semaphore);                                        
			if (sc != RTEMS_SUCCESSFUL)                                        
400057ec:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
400057f0:	12 80 00 5a 	bne  40005958 <rtems_termios_open+0x418>       <== NOT EXECUTED
400057f4:	84 10 20 03 	mov  3, %g2                                    <== NOT EXECUTED
		tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;             
		tty->termios.c_oflag = OPOST | ONLCR | XTABS;                       
		tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;                
		tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;
                                                                      
		tty->termios.c_cc[VINTR] = '\003';                                  
400057f8:	c4 2c 60 41 	stb  %g2, [ %l1 + 0x41 ]                       
		tty->termios.c_cc[VQUIT] = '\034';                                  
400057fc:	84 10 20 1c 	mov  0x1c, %g2                                 
40005800:	c4 2c 60 42 	stb  %g2, [ %l1 + 0x42 ]                       
		tty->termios.c_cc[VERASE] = '\177';                                 
40005804:	84 10 20 7f 	mov  0x7f, %g2                                 
40005808:	c4 2c 60 43 	stb  %g2, [ %l1 + 0x43 ]                       
		tty->termios.c_cc[VKILL] = '\025';                                  
4000580c:	84 10 20 15 	mov  0x15, %g2                                 
40005810:	c4 2c 60 44 	stb  %g2, [ %l1 + 0x44 ]                       
		tty->termios.c_cc[VEOF] = '\004';                                   
40005814:	84 10 20 04 	mov  4, %g2                                    
40005818:	c4 2c 60 45 	stb  %g2, [ %l1 + 0x45 ]                       
		tty->termios.c_cc[VEOL] = '\000';                                   
		tty->termios.c_cc[VEOL2] = '\000';                                  
		tty->termios.c_cc[VSTART] = '\021';                                 
4000581c:	84 10 20 11 	mov  0x11, %g2                                 
40005820:	c4 2c 60 49 	stb  %g2, [ %l1 + 0x49 ]                       
		tty->termios.c_cc[VSTOP] = '\023';                                  
40005824:	84 10 20 13 	mov  0x13, %g2                                 
40005828:	c4 2c 60 4a 	stb  %g2, [ %l1 + 0x4a ]                       
		tty->termios.c_cc[VSUSP] = '\032';                                  
4000582c:	84 10 20 1a 	mov  0x1a, %g2                                 
40005830:	c4 2c 60 4b 	stb  %g2, [ %l1 + 0x4b ]                       
		tty->termios.c_cc[VREPRINT] = '\022';                               
40005834:	84 10 20 12 	mov  0x12, %g2                                 
		tty->termios.c_cc[VDISCARD] = '\017';                               
		tty->termios.c_cc[VWERASE] = '\027';                                
		tty->termios.c_cc[VLNEXT] = '\026';                                 
                                                                      
		/* start with no flow control, clear flow control flags */          
		tty->flow_ctrl = 0;                                                 
40005838:	c0 24 60 b8 	clr  [ %l1 + 0xb8 ]                            
		tty->termios.c_cc[VEOL] = '\000';                                   
		tty->termios.c_cc[VEOL2] = '\000';                                  
		tty->termios.c_cc[VSTART] = '\021';                                 
		tty->termios.c_cc[VSTOP] = '\023';                                  
		tty->termios.c_cc[VSUSP] = '\032';                                  
		tty->termios.c_cc[VREPRINT] = '\022';                               
4000583c:	c4 2c 60 4d 	stb  %g2, [ %l1 + 0x4d ]                       
		/* start with no flow control, clear flow control flags */          
		tty->flow_ctrl = 0;                                                 
		/*                                                                  
		 * set low/highwater mark for XON/XOFF support                      
		 */                                                                 
		tty->lowwater  = tty->rawInBuf.Size * 1/2;                          
40005840:	c8 04 60 64 	ld  [ %l1 + 0x64 ], %g4                        
		tty->termios.c_cc[VEOL2] = '\000';                                  
		tty->termios.c_cc[VSTART] = '\021';                                 
		tty->termios.c_cc[VSTOP] = '\023';                                  
		tty->termios.c_cc[VSUSP] = '\032';                                  
		tty->termios.c_cc[VREPRINT] = '\022';                               
		tty->termios.c_cc[VDISCARD] = '\017';                               
40005844:	84 10 20 0f 	mov  0xf, %g2                                  
40005848:	c4 2c 60 4e 	stb  %g2, [ %l1 + 0x4e ]                       
		tty->termios.c_cc[VWERASE] = '\027';                                
4000584c:	84 10 20 17 	mov  0x17, %g2                                 
		/* start with no flow control, clear flow control flags */          
		tty->flow_ctrl = 0;                                                 
		/*                                                                  
		 * set low/highwater mark for XON/XOFF support                      
		 */                                                                 
		tty->lowwater  = tty->rawInBuf.Size * 1/2;                          
40005850:	89 31 20 01 	srl  %g4, 1, %g4                               
		tty->termios.c_cc[VSTART] = '\021';                                 
		tty->termios.c_cc[VSTOP] = '\023';                                  
		tty->termios.c_cc[VSUSP] = '\032';                                  
		tty->termios.c_cc[VREPRINT] = '\022';                               
		tty->termios.c_cc[VDISCARD] = '\017';                               
		tty->termios.c_cc[VWERASE] = '\027';                                
40005854:	c4 2c 60 4f 	stb  %g2, [ %l1 + 0x4f ]                       
		tty->termios.c_cc[VLNEXT] = '\026';                                 
40005858:	84 10 20 16 	mov  0x16, %g2                                 
		tty->termios.c_cc[VINTR] = '\003';                                  
		tty->termios.c_cc[VQUIT] = '\034';                                  
		tty->termios.c_cc[VERASE] = '\177';                                 
		tty->termios.c_cc[VKILL] = '\025';                                  
		tty->termios.c_cc[VEOF] = '\004';                                   
		tty->termios.c_cc[VEOL] = '\000';                                   
4000585c:	c0 2c 60 4c 	clrb  [ %l1 + 0x4c ]                           
		tty->termios.c_cc[VEOL2] = '\000';                                  
40005860:	c0 2c 60 51 	clrb  [ %l1 + 0x51 ]                           
		tty->lowwater  = tty->rawInBuf.Size * 1/2;                          
		tty->highwater = tty->rawInBuf.Size * 3/4;                          
		/*                                                                  
		 * Bump name characer                                               
		 */                                                                 
		if (c++ == 'z')                                                     
40005864:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
		tty->termios.c_cc[VSTOP] = '\023';                                  
		tty->termios.c_cc[VSUSP] = '\032';                                  
		tty->termios.c_cc[VREPRINT] = '\022';                               
		tty->termios.c_cc[VDISCARD] = '\017';                               
		tty->termios.c_cc[VWERASE] = '\027';                                
		tty->termios.c_cc[VLNEXT] = '\026';                                 
40005868:	c4 2c 60 50 	stb  %g2, [ %l1 + 0x50 ]                       
		tty->lowwater  = tty->rawInBuf.Size * 1/2;                          
		tty->highwater = tty->rawInBuf.Size * 3/4;                          
		/*                                                                  
		 * Bump name characer                                               
		 */                                                                 
		if (c++ == 'z')                                                     
4000586c:	c4 08 63 14 	ldub  [ %g1 + 0x314 ], %g2                     
		/* start with no flow control, clear flow control flags */          
		tty->flow_ctrl = 0;                                                 
		/*                                                                  
		 * set low/highwater mark for XON/XOFF support                      
		 */                                                                 
		tty->lowwater  = tty->rawInBuf.Size * 1/2;                          
40005870:	c8 24 60 bc 	st  %g4, [ %l1 + 0xbc ]                        
		}                                                                   
                                                                      
		/*                                                                  
		 * Set default parameters                                           
		 */                                                                 
		tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;             
40005874:	09 00 00 09 	sethi  %hi(0x2400), %g4                        
40005878:	88 11 21 02 	or  %g4, 0x102, %g4	! 2502 <PROM_START+0x2502> 
4000587c:	c8 24 60 30 	st  %g4, [ %l1 + 0x30 ]                        
		tty->termios.c_oflag = OPOST | ONLCR | XTABS;                       
40005880:	09 00 00 06 	sethi  %hi(0x1800), %g4                        
40005884:	88 11 20 05 	or  %g4, 5, %g4	! 1805 <PROM_START+0x1805>     
		tty->flow_ctrl = 0;                                                 
		/*                                                                  
		 * set low/highwater mark for XON/XOFF support                      
		 */                                                                 
		tty->lowwater  = tty->rawInBuf.Size * 1/2;                          
		tty->highwater = tty->rawInBuf.Size * 3/4;                          
40005888:	c6 04 60 64 	ld  [ %l1 + 0x64 ], %g3                        
                                                                      
		/*                                                                  
		 * Set default parameters                                           
		 */                                                                 
		tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;             
		tty->termios.c_oflag = OPOST | ONLCR | XTABS;                       
4000588c:	c8 24 60 34 	st  %g4, [ %l1 + 0x34 ]                        
		tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;                
40005890:	88 10 28 bd 	mov  0x8bd, %g4                                
40005894:	c8 24 60 38 	st  %g4, [ %l1 + 0x38 ]                        
		tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;
40005898:	09 00 00 20 	sethi  %hi(0x8000), %g4                        
4000589c:	88 11 22 3b 	or  %g4, 0x23b, %g4	! 823b <PROM_START+0x823b> 
400058a0:	c8 24 60 3c 	st  %g4, [ %l1 + 0x3c ]                        
		tty->flow_ctrl = 0;                                                 
		/*                                                                  
		 * set low/highwater mark for XON/XOFF support                      
		 */                                                                 
		tty->lowwater  = tty->rawInBuf.Size * 1/2;                          
		tty->highwater = tty->rawInBuf.Size * 3/4;                          
400058a4:	89 28 e0 01 	sll  %g3, 1, %g4                               
400058a8:	86 01 00 03 	add  %g4, %g3, %g3                             
400058ac:	87 30 e0 02 	srl  %g3, 2, %g3                               
400058b0:	c6 24 60 c0 	st  %g3, [ %l1 + 0xc0 ]                        
		/*                                                                  
		 * Bump name characer                                               
		 */                                                                 
		if (c++ == 'z')                                                     
400058b4:	86 00 a0 01 	add  %g2, 1, %g3                               
400058b8:	85 28 a0 18 	sll  %g2, 0x18, %g2                            
400058bc:	85 38 a0 18 	sra  %g2, 0x18, %g2                            
400058c0:	80 a0 a0 7a 	cmp  %g2, 0x7a                                 
400058c4:	12 80 00 04 	bne  400058d4 <rtems_termios_open+0x394>       <== ALWAYS TAKEN
400058c8:	c6 28 63 14 	stb  %g3, [ %g1 + 0x314 ]                      
			c = 'a';                                                           
400058cc:	84 10 20 61 	mov  0x61, %g2                                 <== NOT EXECUTED
400058d0:	c4 28 63 14 	stb  %g2, [ %g1 + 0x314 ]                      <== NOT EXECUTED
                                                                      
	}                                                                    
	args->iop->data1 = tty;                                              
	if (!tty->refcount++) {                                              
400058d4:	c2 04 a0 08 	ld  [ %l2 + 8 ], %g1                           
		 */                                                                 
		if (c++ == 'z')                                                     
			c = 'a';                                                           
                                                                      
	}                                                                    
	args->iop->data1 = tty;                                              
400058d8:	c6 06 80 00 	ld  [ %i2 ], %g3                               
	if (!tty->refcount++) {                                              
400058dc:	84 00 60 01 	add  %g1, 1, %g2                               
		 */                                                                 
		if (c++ == 'z')                                                     
			c = 'a';                                                           
                                                                      
	}                                                                    
	args->iop->data1 = tty;                                              
400058e0:	e4 20 e0 38 	st  %l2, [ %g3 + 0x38 ]                        
	if (!tty->refcount++) {                                              
400058e4:	80 a0 60 00 	cmp  %g1, 0                                    
400058e8:	12 80 00 1e 	bne  40005960 <rtems_termios_open+0x420>       
400058ec:	c4 24 a0 08 	st  %g2, [ %l2 + 8 ]                           
	  if (tty->device.firstOpen)                                         
400058f0:	c2 04 a0 98 	ld  [ %l2 + 0x98 ], %g1                        
400058f4:	80 a0 60 00 	cmp  %g1, 0                                    
400058f8:	02 80 00 05 	be  4000590c <rtems_termios_open+0x3cc>        <== ALWAYS TAKEN
400058fc:	90 10 00 18 	mov  %i0, %o0                                  
		(*tty->device.firstOpen)(major, minor, arg);                        
40005900:	92 10 00 19 	mov  %i1, %o1                                  <== NOT EXECUTED
40005904:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40005908:	94 10 00 1a 	mov  %i2, %o2                                  <== NOT EXECUTED
	  /*                                                                 
	   * start I/O tasks, if needed                                      
	   */                                                                
	  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {     
4000590c:	c2 04 a0 b4 	ld  [ %l2 + 0xb4 ], %g1                        
40005910:	80 a0 60 02 	cmp  %g1, 2                                    
40005914:	12 80 00 14 	bne  40005964 <rtems_termios_open+0x424>       <== ALWAYS TAKEN
40005918:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
	    sc = rtems_task_start(tty->rxTaskId,                             
4000591c:	d0 04 a0 c4 	ld  [ %l2 + 0xc4 ], %o0                        <== NOT EXECUTED
40005920:	13 10 00 16 	sethi  %hi(0x40005800), %o1                    <== NOT EXECUTED
40005924:	94 10 00 12 	mov  %l2, %o2                                  <== NOT EXECUTED
40005928:	40 00 04 0a 	call  40006950 <rtems_task_start>              <== NOT EXECUTED
4000592c:	92 12 62 10 	or  %o1, 0x210, %o1                            <== NOT EXECUTED
				  rtems_termios_rxdaemon,                                         
				  (rtems_task_argument)tty);                                      
	    if (sc != RTEMS_SUCCESSFUL)                                      
40005930:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
40005934:	12 80 00 09 	bne  40005958 <rtems_termios_open+0x418>       <== NOT EXECUTED
40005938:	94 10 00 12 	mov  %l2, %o2                                  <== NOT EXECUTED
	      rtems_fatal_error_occurred (sc);                               
                                                                      
	    sc = rtems_task_start(tty->txTaskId,                             
4000593c:	d0 04 a0 c8 	ld  [ %l2 + 0xc8 ], %o0                        <== NOT EXECUTED
40005940:	13 10 00 16 	sethi  %hi(0x40005800), %o1                    <== NOT EXECUTED
40005944:	40 00 04 03 	call  40006950 <rtems_task_start>              <== NOT EXECUTED
40005948:	92 12 61 94 	or  %o1, 0x194, %o1	! 40005994 <rtems_termios_txdaemon><== NOT EXECUTED
				  rtems_termios_txdaemon,                                         
				  (rtems_task_argument)tty);                                      
	    if (sc != RTEMS_SUCCESSFUL)                                      
4000594c:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
40005950:	02 80 00 05 	be  40005964 <rtems_termios_open+0x424>        <== NOT EXECUTED
40005954:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    <== NOT EXECUTED
	      rtems_fatal_error_occurred (sc);                               
40005958:	40 00 04 8e 	call  40006b90 <rtems_fatal_error_occurred>    <== NOT EXECUTED
4000595c:	01 00 00 00 	nop                                            <== NOT EXECUTED
	  }                                                                  
	}                                                                    
	rtems_semaphore_release (rtems_termios_ttyMutex);                    
40005960:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
40005964:	d0 00 63 e4 	ld  [ %g1 + 0x3e4 ], %o0	! 4001d7e4 <rtems_termios_ttyMutex>
40005968:	40 00 03 28 	call  40006608 <rtems_semaphore_release>       
4000596c:	01 00 00 00 	nop                                            
	return RTEMS_SUCCESSFUL;                                             
}                                                                     
40005970:	81 c7 e0 08 	ret                                            
40005974:	91 e8 00 10 	restore  %g0, %l0, %o0                         
		static char c = 'a';                                                
                                                                      
		/*                                                                  
		 * Create a new device                                              
		 */                                                                 
		tty = calloc (1, sizeof (struct rtems_termios_tty));                
40005978:	40 00 15 bb 	call  4000b064 <calloc>                        
4000597c:	92 10 20 e8 	mov  0xe8, %o1                                 
		if (tty == NULL) {                                                  
40005980:	a4 92 20 00 	orcc  %o0, 0, %l2                              
40005984:	12 bf ff 07 	bne  400055a0 <rtems_termios_open+0x60>        <== ALWAYS TAKEN
40005988:	a2 10 00 12 	mov  %l2, %l1                                  
		 */                                                                 
		tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;                         
		tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);                 
		if (tty->rawInBuf.theBuf == NULL) {                                 
		        free(tty);                                                  
			rtems_semaphore_release (rtems_termios_ttyMutex);                  
4000598c:	10 bf ff 11 	b  400055d0 <rtems_termios_open+0x90>          <== NOT EXECUTED
40005990:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    <== NOT EXECUTED
                                                                      

400042d4 <rtems_termios_puts>: * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) {
400042d4:	9d e3 bf a0 	save  %sp, -96, %sp                            
	const unsigned char *buf = _buf;                                     
	unsigned int newHead;                                                
	rtems_interrupt_level level;                                         
	rtems_status_code sc;                                                
                                                                      
	if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {            
400042d8:	c2 06 a0 b4 	ld  [ %i2 + 0xb4 ], %g1                        
 * Send characters to device-specific code                            
 */                                                                   
void                                                                  
rtems_termios_puts (                                                  
  const void *_buf, int len, struct rtems_termios_tty *tty)           
{                                                                     
400042dc:	92 10 00 18 	mov  %i0, %o1                                  
	const unsigned char *buf = _buf;                                     
	unsigned int newHead;                                                
	rtems_interrupt_level level;                                         
	rtems_status_code sc;                                                
                                                                      
	if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {            
400042e0:	80 a0 60 00 	cmp  %g1, 0                                    
400042e4:	12 80 00 08 	bne  40004304 <rtems_termios_puts+0x30>        <== NEVER TAKEN
400042e8:	a2 10 00 18 	mov  %i0, %l1                                  
		(*tty->device.write)(tty->minor, (void *)buf, len);                 
400042ec:	d0 06 a0 10 	ld  [ %i2 + 0x10 ], %o0                        
400042f0:	c2 06 a0 a4 	ld  [ %i2 + 0xa4 ], %g1                        
400042f4:	9f c0 40 00 	call  %g1                                      
400042f8:	94 10 00 19 	mov  %i1, %o2                                  
		return;                                                             
400042fc:	81 c7 e0 08 	ret                                            
40004300:	81 e8 00 00 	restore                                        
	}                                                                    
	newHead = tty->rawOutBuf.Head;                                       
40004304:	e0 06 a0 80 	ld  [ %i2 + 0x80 ], %l0                        <== NOT EXECUTED
		 * with interrupts enabled.                                         
		 */                                                                 
		newHead = (newHead + 1) % tty->rawOutBuf.Size;                      
		rtems_interrupt_disable (level);                                    
		while (newHead == tty->rawOutBuf.Tail) {                            
			tty->rawOutBufState = rob_wait;                                    
40004308:	a8 10 20 02 	mov  2, %l4                                    <== NOT EXECUTED
	if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {            
		(*tty->device.write)(tty->minor, (void *)buf, len);                 
		return;                                                             
	}                                                                    
	newHead = tty->rawOutBuf.Head;                                       
	while (len) {                                                        
4000430c:	10 80 00 39 	b  400043f0 <rtems_termios_puts+0x11c>         <== NOT EXECUTED
40004310:	a6 10 20 01 	mov  1, %l3                                    <== NOT EXECUTED
		 *	len -= ncopy                                                     
		 *                                                                  
		 * To minimize latency, the memcpy should be done                   
		 * with interrupts enabled.                                         
		 */                                                                 
		newHead = (newHead + 1) % tty->rawOutBuf.Size;                      
40004314:	d2 06 a0 88 	ld  [ %i2 + 0x88 ], %o1                        <== NOT EXECUTED
40004318:	40 00 52 b5 	call  40018dec <.urem>                         <== NOT EXECUTED
4000431c:	90 04 20 01 	add  %l0, 1, %o0                               <== NOT EXECUTED
		rtems_interrupt_disable (level);                                    
40004320:	7f ff f6 8b 	call  40001d4c <sparc_disable_interrupts>      <== NOT EXECUTED
40004324:	a0 10 00 08 	mov  %o0, %l0                                  <== NOT EXECUTED
40004328:	a4 10 00 08 	mov  %o0, %l2                                  <== NOT EXECUTED
		while (newHead == tty->rawOutBuf.Tail) {                            
4000432c:	30 80 00 0f 	b,a   40004368 <rtems_termios_puts+0x94>       <== NOT EXECUTED
			tty->rawOutBufState = rob_wait;                                    
			rtems_interrupt_enable (level);                                    
40004330:	7f ff f6 8b 	call  40001d5c <sparc_enable_interrupts>       <== NOT EXECUTED
40004334:	90 10 00 12 	mov  %l2, %o0                                  <== NOT EXECUTED
			sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore,             
40004338:	d0 06 a0 8c 	ld  [ %i2 + 0x8c ], %o0                        <== NOT EXECUTED
4000433c:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
40004340:	40 00 08 6b 	call  400064ec <rtems_semaphore_obtain>        <== NOT EXECUTED
40004344:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
							RTEMS_WAIT,                                                    
							RTEMS_NO_TIMEOUT);                                             
			if (sc != RTEMS_SUCCESSFUL)                                        
40004348:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000434c:	02 80 00 04 	be  4000435c <rtems_termios_puts+0x88>         <== NOT EXECUTED
40004350:	01 00 00 00 	nop                                            <== NOT EXECUTED
				rtems_fatal_error_occurred (sc);                                  
40004354:	40 00 0a 0f 	call  40006b90 <rtems_fatal_error_occurred>    <== NOT EXECUTED
40004358:	01 00 00 00 	nop                                            <== NOT EXECUTED
			rtems_interrupt_disable (level);                                   
4000435c:	7f ff f6 7c 	call  40001d4c <sparc_disable_interrupts>      <== NOT EXECUTED
40004360:	01 00 00 00 	nop                                            <== NOT EXECUTED
40004364:	a4 10 00 08 	mov  %o0, %l2                                  <== NOT EXECUTED
		 * To minimize latency, the memcpy should be done                   
		 * with interrupts enabled.                                         
		 */                                                                 
		newHead = (newHead + 1) % tty->rawOutBuf.Size;                      
		rtems_interrupt_disable (level);                                    
		while (newHead == tty->rawOutBuf.Tail) {                            
40004368:	c2 06 a0 84 	ld  [ %i2 + 0x84 ], %g1                        <== NOT EXECUTED
4000436c:	80 a4 00 01 	cmp  %l0, %g1                                  <== NOT EXECUTED
40004370:	22 bf ff f0 	be,a   40004330 <rtems_termios_puts+0x5c>      <== NOT EXECUTED
40004374:	e8 26 a0 94 	st  %l4, [ %i2 + 0x94 ]                        <== NOT EXECUTED
							RTEMS_NO_TIMEOUT);                                             
			if (sc != RTEMS_SUCCESSFUL)                                        
				rtems_fatal_error_occurred (sc);                                  
			rtems_interrupt_disable (level);                                   
		}                                                                   
		tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++;                
40004378:	c2 06 a0 80 	ld  [ %i2 + 0x80 ], %g1                        <== NOT EXECUTED
4000437c:	c6 0c 40 00 	ldub  [ %l1 ], %g3                             <== NOT EXECUTED
40004380:	c4 06 a0 7c 	ld  [ %i2 + 0x7c ], %g2                        <== NOT EXECUTED
40004384:	c6 28 80 01 	stb  %g3, [ %g2 + %g1 ]                        <== NOT EXECUTED
		tty->rawOutBuf.Head = newHead;                                      
		if (tty->rawOutBufState == rob_idle) {                              
40004388:	c2 06 a0 94 	ld  [ %i2 + 0x94 ], %g1                        <== NOT EXECUTED
			if (sc != RTEMS_SUCCESSFUL)                                        
				rtems_fatal_error_occurred (sc);                                  
			rtems_interrupt_disable (level);                                   
		}                                                                   
		tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++;                
		tty->rawOutBuf.Head = newHead;                                      
4000438c:	e0 26 a0 80 	st  %l0, [ %i2 + 0x80 ]                        <== NOT EXECUTED
		if (tty->rawOutBufState == rob_idle) {                              
40004390:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40004394:	32 80 00 14 	bne,a   400043e4 <rtems_termios_puts+0x110>    <== NOT EXECUTED
40004398:	a2 04 60 01 	inc  %l1                                       <== NOT EXECUTED
		  /* check, whether XOFF has been received */                       
		  if (!(tty->flow_ctrl & FL_ORCVXOF)) {                             
4000439c:	c2 06 a0 b8 	ld  [ %i2 + 0xb8 ], %g1                        <== NOT EXECUTED
400043a0:	80 88 60 10 	btst  0x10, %g1                                <== NOT EXECUTED
400043a4:	12 80 00 0b 	bne  400043d0 <rtems_termios_puts+0xfc>        <== NOT EXECUTED
400043a8:	01 00 00 00 	nop                                            <== NOT EXECUTED
		    (*tty->device.write)(tty->minor,                                
			(char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);            
400043ac:	c4 06 a0 84 	ld  [ %i2 + 0x84 ], %g2                        <== NOT EXECUTED
		tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++;                
		tty->rawOutBuf.Head = newHead;                                      
		if (tty->rawOutBufState == rob_idle) {                              
		  /* check, whether XOFF has been received */                       
		  if (!(tty->flow_ctrl & FL_ORCVXOF)) {                             
		    (*tty->device.write)(tty->minor,                                
400043b0:	d2 06 a0 7c 	ld  [ %i2 + 0x7c ], %o1                        <== NOT EXECUTED
400043b4:	c2 06 a0 a4 	ld  [ %i2 + 0xa4 ], %g1                        <== NOT EXECUTED
400043b8:	d0 06 a0 10 	ld  [ %i2 + 0x10 ], %o0                        <== NOT EXECUTED
400043bc:	92 02 40 02 	add  %o1, %g2, %o1                             <== NOT EXECUTED
400043c0:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
400043c4:	94 10 20 01 	mov  1, %o2                                    <== NOT EXECUTED
		  }                                                                 
		  else {                                                            
		    /* remember that output has been stopped due to flow ctrl*/     
		    tty->flow_ctrl |= FL_OSTOP;                                     
		  }                                                                 
		  tty->rawOutBufState = rob_busy;                                   
400043c8:	10 80 00 06 	b  400043e0 <rtems_termios_puts+0x10c>         <== NOT EXECUTED
400043cc:	e6 26 a0 94 	st  %l3, [ %i2 + 0x94 ]                        <== NOT EXECUTED
		    (*tty->device.write)(tty->minor,                                
			(char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);            
		  }                                                                 
		  else {                                                            
		    /* remember that output has been stopped due to flow ctrl*/     
		    tty->flow_ctrl |= FL_OSTOP;                                     
400043d0:	c2 06 a0 b8 	ld  [ %i2 + 0xb8 ], %g1                        <== NOT EXECUTED
400043d4:	82 10 60 20 	or  %g1, 0x20, %g1                             <== NOT EXECUTED
400043d8:	c2 26 a0 b8 	st  %g1, [ %i2 + 0xb8 ]                        <== NOT EXECUTED
		  }                                                                 
		  tty->rawOutBufState = rob_busy;                                   
400043dc:	e6 26 a0 94 	st  %l3, [ %i2 + 0x94 ]                        <== NOT EXECUTED
							RTEMS_NO_TIMEOUT);                                             
			if (sc != RTEMS_SUCCESSFUL)                                        
				rtems_fatal_error_occurred (sc);                                  
			rtems_interrupt_disable (level);                                   
		}                                                                   
		tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++;                
400043e0:	a2 04 60 01 	inc  %l1                                       <== NOT EXECUTED
		    /* remember that output has been stopped due to flow ctrl*/     
		    tty->flow_ctrl |= FL_OSTOP;                                     
		  }                                                                 
		  tty->rawOutBufState = rob_busy;                                   
		}                                                                   
		rtems_interrupt_enable (level);                                     
400043e4:	90 10 00 12 	mov  %l2, %o0                                  <== NOT EXECUTED
400043e8:	7f ff f6 5d 	call  40001d5c <sparc_enable_interrupts>       <== NOT EXECUTED
400043ec:	b2 06 7f ff 	add  %i1, -1, %i1                              <== NOT EXECUTED
	if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {            
		(*tty->device.write)(tty->minor, (void *)buf, len);                 
		return;                                                             
	}                                                                    
	newHead = tty->rawOutBuf.Head;                                       
	while (len) {                                                        
400043f0:	80 a6 60 00 	cmp  %i1, 0                                    <== NOT EXECUTED
400043f4:	12 bf ff c8 	bne  40004314 <rtems_termios_puts+0x40>        <== NOT EXECUTED
400043f8:	01 00 00 00 	nop                                            <== NOT EXECUTED
400043fc:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40004400:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

40004bc0 <rtems_termios_read>: return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) {
40004bc0:	9d e3 bf a0 	save  %sp, -96, %sp                            <== NOT EXECUTED
	rtems_libio_rw_args_t *args = arg;                                   
	struct rtems_termios_tty *tty = args->iop->data1;                    
40004bc4:	c2 06 00 00 	ld  [ %i0 ], %g1                               <== NOT EXECUTED
	uint32_t   count = args->count;                                      
40004bc8:	e4 06 20 14 	ld  [ %i0 + 0x14 ], %l2                        <== NOT EXECUTED
                                                                      
rtems_status_code                                                     
rtems_termios_read (void *arg)                                        
{                                                                     
	rtems_libio_rw_args_t *args = arg;                                   
	struct rtems_termios_tty *tty = args->iop->data1;                    
40004bcc:	e0 00 60 38 	ld  [ %g1 + 0x38 ], %l0                        <== NOT EXECUTED
	uint32_t   count = args->count;                                      
	char      *buffer = args->buffer;                                    
40004bd0:	ea 06 20 10 	ld  [ %i0 + 0x10 ], %l5                        <== NOT EXECUTED
	rtems_status_code sc;                                                
                                                                      
	sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
40004bd4:	d0 04 20 14 	ld  [ %l0 + 0x14 ], %o0                        <== NOT EXECUTED
	return RTEMS_SUCCESSFUL;                                             
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_read (void *arg)                                        
{                                                                     
40004bd8:	a2 10 00 18 	mov  %i0, %l1                                  <== NOT EXECUTED
	struct rtems_termios_tty *tty = args->iop->data1;                    
	uint32_t   count = args->count;                                      
	char      *buffer = args->buffer;                                    
	rtems_status_code sc;                                                
                                                                      
	sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
40004bdc:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
40004be0:	40 00 06 43 	call  400064ec <rtems_semaphore_obtain>        <== NOT EXECUTED
40004be4:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
	if (sc != RTEMS_SUCCESSFUL)                                          
40004be8:	b0 92 20 00 	orcc  %o0, 0, %i0                              <== NOT EXECUTED
40004bec:	12 80 00 10 	bne  40004c2c <rtems_termios_read+0x6c>        <== NOT EXECUTED
40004bf0:	05 10 00 75 	sethi  %hi(0x4001d400), %g2                    <== NOT EXECUTED
		return sc;                                                          
	if (rtems_termios_linesw[tty->t_line].l_read != NULL) {              
40004bf4:	c2 04 20 cc 	ld  [ %l0 + 0xcc ], %g1                        <== NOT EXECUTED
40004bf8:	83 28 60 05 	sll  %g1, 5, %g1                               <== NOT EXECUTED
40004bfc:	84 10 a0 d4 	or  %g2, 0xd4, %g2                             <== NOT EXECUTED
40004c00:	82 00 60 08 	add  %g1, 8, %g1                               <== NOT EXECUTED
40004c04:	c2 00 80 01 	ld  [ %g2 + %g1 ], %g1                         <== NOT EXECUTED
40004c08:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40004c0c:	02 80 00 0a 	be  40004c34 <rtems_termios_read+0x74>         <== NOT EXECUTED
40004c10:	92 10 00 11 	mov  %l1, %o1                                  <== NOT EXECUTED
		sc = rtems_termios_linesw[tty->t_line].l_read(tty,args);            
40004c14:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40004c18:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
40004c1c:	b0 10 00 08 	mov  %o0, %i0                                  <== NOT EXECUTED
		tty->tty_rcvwakeup = 0;                                             
		rtems_semaphore_release (tty->isem);                                
40004c20:	d0 04 20 14 	ld  [ %l0 + 0x14 ], %o0                        <== NOT EXECUTED
40004c24:	40 00 06 79 	call  40006608 <rtems_semaphore_release>       <== NOT EXECUTED
40004c28:	c0 24 20 e4 	clr  [ %l0 + 0xe4 ]                            <== NOT EXECUTED
		return sc;                                                          
40004c2c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40004c30:	81 e8 00 00 	restore                                        <== NOT EXECUTED
	}                                                                    
	if (tty->cindex == tty->ccount) {                                    
40004c34:	c4 04 20 24 	ld  [ %l0 + 0x24 ], %g2                        <== NOT EXECUTED
40004c38:	c2 04 20 20 	ld  [ %l0 + 0x20 ], %g1                        <== NOT EXECUTED
40004c3c:	80 a0 80 01 	cmp  %g2, %g1                                  <== NOT EXECUTED
40004c40:	12 80 00 be 	bne  40004f38 <rtems_termios_read+0x378>       <== NOT EXECUTED
40004c44:	80 a4 a0 00 	cmp  %l2, 0                                    <== NOT EXECUTED
		tty->cindex = tty->ccount = 0;                                      
		tty->read_start_column = tty->column;                               
40004c48:	c4 04 20 28 	ld  [ %l0 + 0x28 ], %g2                        <== NOT EXECUTED
		if (tty->device.pollRead != NULL                                    
40004c4c:	c2 04 20 a0 	ld  [ %l0 + 0xa0 ], %g1                        <== NOT EXECUTED
		rtems_semaphore_release (tty->isem);                                
		return sc;                                                          
	}                                                                    
	if (tty->cindex == tty->ccount) {                                    
		tty->cindex = tty->ccount = 0;                                      
		tty->read_start_column = tty->column;                               
40004c50:	c4 24 20 2c 	st  %g2, [ %l0 + 0x2c ]                        <== NOT EXECUTED
		tty->tty_rcvwakeup = 0;                                             
		rtems_semaphore_release (tty->isem);                                
		return sc;                                                          
	}                                                                    
	if (tty->cindex == tty->ccount) {                                    
		tty->cindex = tty->ccount = 0;                                      
40004c54:	c0 24 20 20 	clr  [ %l0 + 0x20 ]                            <== NOT EXECUTED
		tty->read_start_column = tty->column;                               
		if (tty->device.pollRead != NULL                                    
40004c58:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40004c5c:	02 80 00 4c 	be  40004d8c <rtems_termios_read+0x1cc>        <== NOT EXECUTED
40004c60:	c0 24 20 24 	clr  [ %l0 + 0x24 ]                            <== NOT EXECUTED
		    && tty->device.outputUsesInterrupts == TERMIOS_POLLED)          
40004c64:	c2 04 20 b4 	ld  [ %l0 + 0xb4 ], %g1                        <== NOT EXECUTED
40004c68:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40004c6c:	12 80 00 49 	bne  40004d90 <rtems_termios_read+0x1d0>       <== NOT EXECUTED
40004c70:	2f 10 00 73 	sethi  %hi(0x4001cc00), %l7                    <== NOT EXECUTED
static rtems_status_code                                              
fillBufferPoll (struct rtems_termios_tty *tty)                        
{                                                                     
	int n;                                                               
                                                                      
	if (tty->termios.c_lflag & ICANON) {                                 
40004c74:	c2 04 20 3c 	ld  [ %l0 + 0x3c ], %g1                        <== NOT EXECUTED
40004c78:	80 88 60 02 	btst  2, %g1                                   <== NOT EXECUTED
40004c7c:	02 80 00 13 	be  40004cc8 <rtems_termios_read+0x108>        <== NOT EXECUTED
40004c80:	01 00 00 00 	nop                                            <== NOT EXECUTED
		for (;;) {                                                          
			n = (*tty->device.pollRead)(tty->minor);                           
40004c84:	c2 04 20 a0 	ld  [ %l0 + 0xa0 ], %g1                        <== NOT EXECUTED
40004c88:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40004c8c:	d0 04 20 10 	ld  [ %l0 + 0x10 ], %o0                        <== NOT EXECUTED
			if (n < 0) {                                                       
40004c90:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
40004c94:	16 80 00 06 	bge  40004cac <rtems_termios_read+0xec>        <== NOT EXECUTED
40004c98:	90 0a 20 ff 	and  %o0, 0xff, %o0                            <== NOT EXECUTED
				rtems_task_wake_after (1);                                        
40004c9c:	40 00 07 49 	call  400069c0 <rtems_task_wake_after>         <== NOT EXECUTED
40004ca0:	90 10 20 01 	mov  1, %o0                                    <== NOT EXECUTED
{                                                                     
	int n;                                                               
                                                                      
	if (tty->termios.c_lflag & ICANON) {                                 
		for (;;) {                                                          
			n = (*tty->device.pollRead)(tty->minor);                           
40004ca4:	10 bf ff f9 	b  40004c88 <rtems_termios_read+0xc8>          <== NOT EXECUTED
40004ca8:	c2 04 20 a0 	ld  [ %l0 + 0xa0 ], %g1                        <== NOT EXECUTED
			if (n < 0) {                                                       
				rtems_task_wake_after (1);                                        
			}                                                                  
			else {                                                             
				if  (siproc (n, tty))                                             
40004cac:	7f ff ff 5f 	call  40004a28 <siproc>                        <== NOT EXECUTED
40004cb0:	92 10 00 10 	mov  %l0, %o1                                  <== NOT EXECUTED
40004cb4:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
40004cb8:	22 bf ff f4 	be,a   40004c88 <rtems_termios_read+0xc8>      <== NOT EXECUTED
40004cbc:	c2 04 20 a0 	ld  [ %l0 + 0xa0 ], %g1                        <== NOT EXECUTED
		else                                                                
			sc = fillBufferQueue (tty);                                        
		if (sc != RTEMS_SUCCESSFUL)                                         
			tty->cindex = tty->ccount = 0;                                     
	}                                                                    
	while (count && (tty->cindex < tty->ccount)) {                       
40004cc0:	10 80 00 9e 	b  40004f38 <rtems_termios_read+0x378>         <== NOT EXECUTED
40004cc4:	80 a4 a0 00 	cmp  %l2, 0                                    <== NOT EXECUTED
			}                                                                  
		}                                                                   
	}                                                                    
	else {                                                               
		rtems_interval then, now;                                           
		then = rtems_clock_get_ticks_since_boot();                          
40004cc8:	40 00 04 47 	call  40005de4 <rtems_clock_get_ticks_since_boot><== NOT EXECUTED
40004ccc:	01 00 00 00 	nop                                            <== NOT EXECUTED
40004cd0:	a6 10 00 08 	mov  %o0, %l3                                  <== NOT EXECUTED
		for (;;) {                                                          
			n = (*tty->device.pollRead)(tty->minor);                           
40004cd4:	c2 04 20 a0 	ld  [ %l0 + 0xa0 ], %g1                        <== NOT EXECUTED
40004cd8:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40004cdc:	d0 04 20 10 	ld  [ %l0 + 0x10 ], %o0                        <== NOT EXECUTED
			if (n < 0) {                                                       
40004ce0:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
40004ce4:	36 80 00 1c 	bge,a   40004d54 <rtems_termios_read+0x194>    <== NOT EXECUTED
40004ce8:	90 0a 20 ff 	and  %o0, 0xff, %o0                            <== NOT EXECUTED
				if (tty->termios.c_cc[VMIN]) {                                    
40004cec:	c4 0c 20 47 	ldub  [ %l0 + 0x47 ], %g2                      <== NOT EXECUTED
40004cf0:	80 a0 a0 00 	cmp  %g2, 0                                    <== NOT EXECUTED
40004cf4:	02 80 00 0a 	be  40004d1c <rtems_termios_read+0x15c>        <== NOT EXECUTED
40004cf8:	c2 0c 20 46 	ldub  [ %l0 + 0x46 ], %g1                      <== NOT EXECUTED
					if (tty->termios.c_cc[VTIME] && tty->ccount) {                   
40004cfc:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40004d00:	02 80 00 11 	be  40004d44 <rtems_termios_read+0x184>        <== NOT EXECUTED
40004d04:	01 00 00 00 	nop                                            <== NOT EXECUTED
40004d08:	c2 04 20 20 	ld  [ %l0 + 0x20 ], %g1                        <== NOT EXECUTED
40004d0c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40004d10:	02 80 00 0d 	be  40004d44 <rtems_termios_read+0x184>        <== NOT EXECUTED
40004d14:	01 00 00 00 	nop                                            <== NOT EXECUTED
40004d18:	30 80 00 04 	b,a   40004d28 <rtems_termios_read+0x168>      <== NOT EXECUTED
							break;                                                         
						}                                                               
					}                                                                
				}                                                                 
				else {                                                            
					if (!tty->termios.c_cc[VTIME])                                   
40004d1c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40004d20:	02 80 00 86 	be  40004f38 <rtems_termios_read+0x378>        <== NOT EXECUTED
40004d24:	80 a4 a0 00 	cmp  %l2, 0                                    <== NOT EXECUTED
						break;                                                          
					now = rtems_clock_get_ticks_since_boot();                        
40004d28:	40 00 04 2f 	call  40005de4 <rtems_clock_get_ticks_since_boot><== NOT EXECUTED
40004d2c:	01 00 00 00 	nop                                            <== NOT EXECUTED
					if ((now - then) > tty->vtimeTicks) {                            
40004d30:	c2 04 20 54 	ld  [ %l0 + 0x54 ], %g1                        <== NOT EXECUTED
40004d34:	90 22 00 13 	sub  %o0, %l3, %o0                             <== NOT EXECUTED
40004d38:	80 a2 00 01 	cmp  %o0, %g1                                  <== NOT EXECUTED
40004d3c:	18 80 00 7f 	bgu  40004f38 <rtems_termios_read+0x378>       <== NOT EXECUTED
40004d40:	80 a4 a0 00 	cmp  %l2, 0                                    <== NOT EXECUTED
						break;                                                          
					}                                                                
				}                                                                 
				rtems_task_wake_after (1);                                        
40004d44:	40 00 07 1f 	call  400069c0 <rtems_task_wake_after>         <== NOT EXECUTED
40004d48:	90 10 20 01 	mov  1, %o0                                    <== NOT EXECUTED
	}                                                                    
	else {                                                               
		rtems_interval then, now;                                           
		then = rtems_clock_get_ticks_since_boot();                          
		for (;;) {                                                          
			n = (*tty->device.pollRead)(tty->minor);                           
40004d4c:	10 bf ff e3 	b  40004cd8 <rtems_termios_read+0x118>         <== NOT EXECUTED
40004d50:	c2 04 20 a0 	ld  [ %l0 + 0xa0 ], %g1                        <== NOT EXECUTED
					}                                                                
				}                                                                 
				rtems_task_wake_after (1);                                        
			}                                                                  
			else {                                                             
				siproc (n, tty);                                                  
40004d54:	7f ff ff 35 	call  40004a28 <siproc>                        <== NOT EXECUTED
40004d58:	92 10 00 10 	mov  %l0, %o1                                  <== NOT EXECUTED
				if (tty->ccount >= tty->termios.c_cc[VMIN])                       
40004d5c:	c2 0c 20 47 	ldub  [ %l0 + 0x47 ], %g1                      <== NOT EXECUTED
40004d60:	c4 04 20 20 	ld  [ %l0 + 0x20 ], %g2                        <== NOT EXECUTED
40004d64:	80 a0 80 01 	cmp  %g2, %g1                                  <== NOT EXECUTED
40004d68:	16 80 00 73 	bge  40004f34 <rtems_termios_read+0x374>       <== NOT EXECUTED
40004d6c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
					break;                                                           
				if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME])          
40004d70:	22 bf ff da 	be,a   40004cd8 <rtems_termios_read+0x118>     <== NOT EXECUTED
40004d74:	c2 04 20 a0 	ld  [ %l0 + 0xa0 ], %g1                        <== NOT EXECUTED
40004d78:	c2 0c 20 46 	ldub  [ %l0 + 0x46 ], %g1                      <== NOT EXECUTED
40004d7c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40004d80:	22 bf ff d6 	be,a   40004cd8 <rtems_termios_read+0x118>     <== NOT EXECUTED
40004d84:	c2 04 20 a0 	ld  [ %l0 + 0xa0 ], %g1                        <== NOT EXECUTED
40004d88:	30 bf ff d0 	b,a   40004cc8 <rtems_termios_read+0x108>      <== NOT EXECUTED
                                                                      
	while ( wait ) {                                                     
		/*                                                                  
		 * Process characters read from raw queue                           
		 */                                                                 
		while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&                
40004d8c:	2f 10 00 73 	sethi  %hi(0x4001cc00), %l7                    <== NOT EXECUTED
 * Fill the input buffer from the raw input queue                     
 */                                                                   
static rtems_status_code                                              
fillBufferQueue (struct rtems_termios_tty *tty)                       
{                                                                     
	rtems_interval timeout = tty->rawInBufSemaphoreFirstTimeout;         
40004d90:	e8 04 20 74 	ld  [ %l0 + 0x74 ], %l4                        <== NOT EXECUTED
                                                                      
	while ( wait ) {                                                     
		/*                                                                  
		 * Process characters read from raw queue                           
		 */                                                                 
		while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&                
40004d94:	ae 15 e3 08 	or  %l7, 0x308, %l7                            <== NOT EXECUTED
			  if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))                  
			       ==                (FL_MDXON | FL_ISNTXOF))                  
			      && ((tty->rawOutBufState == rob_idle)                        
				  || (tty->flow_ctrl & FL_OSTOP))) {                              
			    /* XON should be sent now... */                                
			    (*tty->device.write)(tty->minor,                               
40004d98:	ac 04 20 49 	add  %l0, 0x49, %l6                            <== NOT EXECUTED
40004d9c:	10 80 00 4b 	b  40004ec8 <rtems_termios_read+0x308>         <== NOT EXECUTED
40004da0:	a6 10 20 01 	mov  1, %l3                                    <== NOT EXECUTED
		while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&                
                       (tty->ccount < (CBUFSIZE-1))) {                
			unsigned char c;                                                   
			unsigned int newHead;                                              
                                                                      
			newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size;           
40004da4:	d0 04 20 5c 	ld  [ %l0 + 0x5c ], %o0                        <== NOT EXECUTED
40004da8:	d2 04 20 64 	ld  [ %l0 + 0x64 ], %o1                        <== NOT EXECUTED
40004dac:	40 00 50 10 	call  40018dec <.urem>                         <== NOT EXECUTED
40004db0:	90 02 20 01 	inc  %o0                                       <== NOT EXECUTED
			c = tty->rawInBuf.theBuf[newHead];                                 
40004db4:	c2 04 20 58 	ld  [ %l0 + 0x58 ], %g1                        <== NOT EXECUTED
40004db8:	e8 08 40 08 	ldub  [ %g1 + %o0 ], %l4                       <== NOT EXECUTED
			tty->rawInBuf.Head = newHead;                                      
40004dbc:	d0 24 20 5c 	st  %o0, [ %l0 + 0x5c ]                        <== NOT EXECUTED
			if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)                
40004dc0:	c2 04 20 60 	ld  [ %l0 + 0x60 ], %g1                        <== NOT EXECUTED
40004dc4:	c4 04 20 64 	ld  [ %l0 + 0x64 ], %g2                        <== NOT EXECUTED
40004dc8:	d2 04 20 64 	ld  [ %l0 + 0x64 ], %o1                        <== NOT EXECUTED
40004dcc:	82 00 80 01 	add  %g2, %g1, %g1                             <== NOT EXECUTED
40004dd0:	40 00 50 07 	call  40018dec <.urem>                         <== NOT EXECUTED
40004dd4:	90 20 40 08 	sub  %g1, %o0, %o0                             <== NOT EXECUTED
40004dd8:	c2 04 20 bc 	ld  [ %l0 + 0xbc ], %g1                        <== NOT EXECUTED
40004ddc:	80 a2 00 01 	cmp  %o0, %g1                                  <== NOT EXECUTED
40004de0:	3a 80 00 27 	bcc,a   40004e7c <rtems_termios_read+0x2bc>    <== NOT EXECUTED
40004de4:	c2 04 20 3c 	ld  [ %l0 + 0x3c ], %g1                        <== NOT EXECUTED
			    % tty->rawInBuf.Size)                                          
			   < tty->lowwater) {                                              
			  tty->flow_ctrl &= ~FL_IREQXOF;                                   
40004de8:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        <== NOT EXECUTED
40004dec:	82 08 7f fe 	and  %g1, -2, %g1                              <== NOT EXECUTED
40004df0:	c2 24 20 b8 	st  %g1, [ %l0 + 0xb8 ]                        <== NOT EXECUTED
			  /* if tx stopped and XON should be sent... */                    
			  if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))                  
40004df4:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        <== NOT EXECUTED
40004df8:	82 08 62 02 	and  %g1, 0x202, %g1                           <== NOT EXECUTED
40004dfc:	80 a0 62 02 	cmp  %g1, 0x202                                <== NOT EXECUTED
40004e00:	12 80 00 11 	bne  40004e44 <rtems_termios_read+0x284>       <== NOT EXECUTED
40004e04:	01 00 00 00 	nop                                            <== NOT EXECUTED
40004e08:	c2 04 20 94 	ld  [ %l0 + 0x94 ], %g1                        <== NOT EXECUTED
40004e0c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40004e10:	22 80 00 07 	be,a   40004e2c <rtems_termios_read+0x26c>     <== NOT EXECUTED
40004e14:	c2 04 20 a4 	ld  [ %l0 + 0xa4 ], %g1                        <== NOT EXECUTED
			       ==                (FL_MDXON | FL_ISNTXOF))                  
			      && ((tty->rawOutBufState == rob_idle)                        
				  || (tty->flow_ctrl & FL_OSTOP))) {                              
40004e18:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        <== NOT EXECUTED
			if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)                
			    % tty->rawInBuf.Size)                                          
			   < tty->lowwater) {                                              
			  tty->flow_ctrl &= ~FL_IREQXOF;                                   
			  /* if tx stopped and XON should be sent... */                    
			  if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))                  
40004e1c:	80 88 60 20 	btst  0x20, %g1                                <== NOT EXECUTED
40004e20:	02 80 00 09 	be  40004e44 <rtems_termios_read+0x284>        <== NOT EXECUTED
40004e24:	01 00 00 00 	nop                                            <== NOT EXECUTED
			       ==                (FL_MDXON | FL_ISNTXOF))                  
			      && ((tty->rawOutBufState == rob_idle)                        
				  || (tty->flow_ctrl & FL_OSTOP))) {                              
			    /* XON should be sent now... */                                
			    (*tty->device.write)(tty->minor,                               
40004e28:	c2 04 20 a4 	ld  [ %l0 + 0xa4 ], %g1                        <== NOT EXECUTED
40004e2c:	d0 04 20 10 	ld  [ %l0 + 0x10 ], %o0                        <== NOT EXECUTED
40004e30:	92 10 00 16 	mov  %l6, %o1                                  <== NOT EXECUTED
40004e34:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40004e38:	94 10 20 01 	mov  1, %o2                                    <== NOT EXECUTED
			    }                                                              
			  }                                                                
			}                                                                  
                                                                      
			/* continue processing new character */                            
			if (tty->termios.c_lflag & ICANON) {                               
40004e3c:	10 80 00 10 	b  40004e7c <rtems_termios_read+0x2bc>         <== NOT EXECUTED
40004e40:	c2 04 20 3c 	ld  [ %l0 + 0x3c ], %g1                        <== NOT EXECUTED
			    /* XON should be sent now... */                                
			    (*tty->device.write)(tty->minor,                               
				(void *)&(tty->termios.c_cc[VSTART]),                             
				1);                                                               
			  }                                                                
			  else if (tty->flow_ctrl & FL_MDRTS) {                            
40004e44:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        <== NOT EXECUTED
40004e48:	80 88 61 00 	btst  0x100, %g1                               <== NOT EXECUTED
40004e4c:	22 80 00 0c 	be,a   40004e7c <rtems_termios_read+0x2bc>     <== NOT EXECUTED
40004e50:	c2 04 20 3c 	ld  [ %l0 + 0x3c ], %g1                        <== NOT EXECUTED
			    tty->flow_ctrl &= ~FL_IRTSOFF;                                 
40004e54:	c4 04 20 b8 	ld  [ %l0 + 0xb8 ], %g2                        <== NOT EXECUTED
			    /* activate RTS line */                                        
			    if (tty->device.startRemoteTx != NULL) {                       
40004e58:	c2 04 20 b0 	ld  [ %l0 + 0xb0 ], %g1                        <== NOT EXECUTED
			    (*tty->device.write)(tty->minor,                               
				(void *)&(tty->termios.c_cc[VSTART]),                             
				1);                                                               
			  }                                                                
			  else if (tty->flow_ctrl & FL_MDRTS) {                            
			    tty->flow_ctrl &= ~FL_IRTSOFF;                                 
40004e5c:	84 08 bf fb 	and  %g2, -5, %g2                              <== NOT EXECUTED
40004e60:	c4 24 20 b8 	st  %g2, [ %l0 + 0xb8 ]                        <== NOT EXECUTED
			    /* activate RTS line */                                        
			    if (tty->device.startRemoteTx != NULL) {                       
40004e64:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40004e68:	22 80 00 05 	be,a   40004e7c <rtems_termios_read+0x2bc>     <== NOT EXECUTED
40004e6c:	c2 04 20 3c 	ld  [ %l0 + 0x3c ], %g1                        <== NOT EXECUTED
			      tty->device.startRemoteTx(tty->minor);                       
40004e70:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40004e74:	d0 04 20 10 	ld  [ %l0 + 0x10 ], %o0                        <== NOT EXECUTED
			    }                                                              
			  }                                                                
			}                                                                  
                                                                      
			/* continue processing new character */                            
			if (tty->termios.c_lflag & ICANON) {                               
40004e78:	c2 04 20 3c 	ld  [ %l0 + 0x3c ], %g1                        <== NOT EXECUTED
40004e7c:	80 88 60 02 	btst  2, %g1                                   <== NOT EXECUTED
40004e80:	02 80 00 09 	be  40004ea4 <rtems_termios_read+0x2e4>        <== NOT EXECUTED
40004e84:	90 0d 20 ff 	and  %l4, 0xff, %o0                            <== NOT EXECUTED
				if  (siproc (c, tty))                                             
40004e88:	7f ff fe e8 	call  40004a28 <siproc>                        <== NOT EXECUTED
40004e8c:	92 10 00 10 	mov  %l0, %o1                                  <== NOT EXECUTED
40004e90:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
40004e94:	32 80 00 0c 	bne,a   40004ec4 <rtems_termios_read+0x304>    <== NOT EXECUTED
40004e98:	a6 10 20 00 	clr  %l3                                       <== NOT EXECUTED
			else {                                                             
				siproc (c, tty);                                                  
				if (tty->ccount >= tty->termios.c_cc[VMIN])                       
					wait = 0;                                                        
			}                                                                  
			timeout = tty->rawInBufSemaphoreTimeout;                           
40004e9c:	10 80 00 0b 	b  40004ec8 <rtems_termios_read+0x308>         <== NOT EXECUTED
40004ea0:	e8 04 20 70 	ld  [ %l0 + 0x70 ], %l4                        <== NOT EXECUTED
			if (tty->termios.c_lflag & ICANON) {                               
				if  (siproc (c, tty))                                             
					wait = 0;                                                        
			}                                                                  
			else {                                                             
				siproc (c, tty);                                                  
40004ea4:	7f ff fe e1 	call  40004a28 <siproc>                        <== NOT EXECUTED
40004ea8:	92 10 00 10 	mov  %l0, %o1                                  <== NOT EXECUTED
				if (tty->ccount >= tty->termios.c_cc[VMIN])                       
40004eac:	c2 0c 20 47 	ldub  [ %l0 + 0x47 ], %g1                      <== NOT EXECUTED
40004eb0:	c4 04 20 20 	ld  [ %l0 + 0x20 ], %g2                        <== NOT EXECUTED
40004eb4:	80 a0 80 01 	cmp  %g2, %g1                                  <== NOT EXECUTED
40004eb8:	26 80 00 04 	bl,a   40004ec8 <rtems_termios_read+0x308>     <== NOT EXECUTED
40004ebc:	e8 04 20 70 	ld  [ %l0 + 0x70 ], %l4                        <== NOT EXECUTED
40004ec0:	a6 10 20 00 	clr  %l3                                       <== NOT EXECUTED
					wait = 0;                                                        
			}                                                                  
			timeout = tty->rawInBufSemaphoreTimeout;                           
40004ec4:	e8 04 20 70 	ld  [ %l0 + 0x70 ], %l4                        <== NOT EXECUTED
                                                                      
	while ( wait ) {                                                     
		/*                                                                  
		 * Process characters read from raw queue                           
		 */                                                                 
		while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&                
40004ec8:	c4 04 20 5c 	ld  [ %l0 + 0x5c ], %g2                        <== NOT EXECUTED
40004ecc:	c2 04 20 60 	ld  [ %l0 + 0x60 ], %g1                        <== NOT EXECUTED
40004ed0:	80 a0 80 01 	cmp  %g2, %g1                                  <== NOT EXECUTED
40004ed4:	02 80 00 08 	be  40004ef4 <rtems_termios_read+0x334>        <== NOT EXECUTED
40004ed8:	80 a4 e0 00 	cmp  %l3, 0                                    <== NOT EXECUTED
40004edc:	c2 05 c0 00 	ld  [ %l7 ], %g1                               <== NOT EXECUTED
40004ee0:	c4 04 20 20 	ld  [ %l0 + 0x20 ], %g2                        <== NOT EXECUTED
40004ee4:	82 00 7f ff 	add  %g1, -1, %g1                              <== NOT EXECUTED
40004ee8:	80 a0 80 01 	cmp  %g2, %g1                                  <== NOT EXECUTED
40004eec:	06 bf ff ae 	bl  40004da4 <rtems_termios_read+0x1e4>        <== NOT EXECUTED
40004ef0:	80 a4 e0 00 	cmp  %l3, 0                                    <== NOT EXECUTED
		}                                                                   
                                                                      
		/*                                                                  
		 * Wait for characters                                              
		 */                                                                 
		if ( wait ) {                                                       
40004ef4:	02 80 00 11 	be  40004f38 <rtems_termios_read+0x378>        <== NOT EXECUTED
40004ef8:	80 a4 a0 00 	cmp  %l2, 0                                    <== NOT EXECUTED
			sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore,              
40004efc:	d0 04 20 68 	ld  [ %l0 + 0x68 ], %o0                        <== NOT EXECUTED
40004f00:	d2 04 20 6c 	ld  [ %l0 + 0x6c ], %o1                        <== NOT EXECUTED
40004f04:	40 00 05 7a 	call  400064ec <rtems_semaphore_obtain>        <== NOT EXECUTED
40004f08:	94 10 00 14 	mov  %l4, %o2                                  <== NOT EXECUTED
				tty->rawInBufSemaphoreOptions,                                    
				timeout);                                                         
			if (sc != RTEMS_SUCCESSFUL)                                        
40004f0c:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
40004f10:	02 bf ff ee 	be  40004ec8 <rtems_termios_read+0x308>        <== NOT EXECUTED
40004f14:	80 a4 a0 00 	cmp  %l2, 0                                    <== NOT EXECUTED
40004f18:	30 80 00 08 	b,a   40004f38 <rtems_termios_read+0x378>      <== NOT EXECUTED
			sc = fillBufferQueue (tty);                                        
		if (sc != RTEMS_SUCCESSFUL)                                         
			tty->cindex = tty->ccount = 0;                                     
	}                                                                    
	while (count && (tty->cindex < tty->ccount)) {                       
		*buffer++ = tty->cbuf[tty->cindex++];                               
40004f1c:	c4 04 20 1c 	ld  [ %l0 + 0x1c ], %g2                        <== NOT EXECUTED
		count--;                                                            
40004f20:	a4 04 bf ff 	add  %l2, -1, %l2                              <== NOT EXECUTED
			sc = fillBufferQueue (tty);                                        
		if (sc != RTEMS_SUCCESSFUL)                                         
			tty->cindex = tty->ccount = 0;                                     
	}                                                                    
	while (count && (tty->cindex < tty->ccount)) {                       
		*buffer++ = tty->cbuf[tty->cindex++];                               
40004f24:	c2 08 80 01 	ldub  [ %g2 + %g1 ], %g1                       <== NOT EXECUTED
40004f28:	c2 2d 40 00 	stb  %g1, [ %l5 ]                              <== NOT EXECUTED
40004f2c:	c6 24 20 24 	st  %g3, [ %l0 + 0x24 ]                        <== NOT EXECUTED
40004f30:	aa 05 60 01 	inc  %l5                                       <== NOT EXECUTED
		else                                                                
			sc = fillBufferQueue (tty);                                        
		if (sc != RTEMS_SUCCESSFUL)                                         
			tty->cindex = tty->ccount = 0;                                     
	}                                                                    
	while (count && (tty->cindex < tty->ccount)) {                       
40004f34:	80 a4 a0 00 	cmp  %l2, 0                                    <== NOT EXECUTED
40004f38:	22 80 00 08 	be,a   40004f58 <rtems_termios_read+0x398>     <== NOT EXECUTED
40004f3c:	c2 04 60 14 	ld  [ %l1 + 0x14 ], %g1                        <== NOT EXECUTED
40004f40:	c2 04 20 24 	ld  [ %l0 + 0x24 ], %g1                        <== NOT EXECUTED
40004f44:	c4 04 20 20 	ld  [ %l0 + 0x20 ], %g2                        <== NOT EXECUTED
40004f48:	80 a0 40 02 	cmp  %g1, %g2                                  <== NOT EXECUTED
40004f4c:	06 bf ff f4 	bl  40004f1c <rtems_termios_read+0x35c>        <== NOT EXECUTED
40004f50:	86 00 60 01 	add  %g1, 1, %g3                               <== NOT EXECUTED
		*buffer++ = tty->cbuf[tty->cindex++];                               
		count--;                                                            
	}                                                                    
	args->bytes_moved = args->count - count;                             
40004f54:	c2 04 60 14 	ld  [ %l1 + 0x14 ], %g1                        <== NOT EXECUTED
	tty->tty_rcvwakeup = 0;                                              
40004f58:	c0 24 20 e4 	clr  [ %l0 + 0xe4 ]                            <== NOT EXECUTED
	}                                                                    
	while (count && (tty->cindex < tty->ccount)) {                       
		*buffer++ = tty->cbuf[tty->cindex++];                               
		count--;                                                            
	}                                                                    
	args->bytes_moved = args->count - count;                             
40004f5c:	a4 20 40 12 	sub  %g1, %l2, %l2                             <== NOT EXECUTED
40004f60:	e4 24 60 1c 	st  %l2, [ %l1 + 0x1c ]                        <== NOT EXECUTED
	tty->tty_rcvwakeup = 0;                                              
	rtems_semaphore_release (tty->isem);                                 
40004f64:	40 00 05 a9 	call  40006608 <rtems_semaphore_release>       <== NOT EXECUTED
40004f68:	d0 04 20 14 	ld  [ %l0 + 0x14 ], %o0                        <== NOT EXECUTED
	return sc;                                                           
}                                                                     
40004f6c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40004f70:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

40003d54 <rtems_termios_refill_transmitter>: * in task-driven mode, this function is called in Tx task context * in interrupt-driven mode, this function is called in TxIRQ context */ int rtems_termios_refill_transmitter (struct rtems_termios_tty *tty) {
40003d54:	9d e3 bf a0 	save  %sp, -96, %sp                            <== NOT EXECUTED
	int nToSend;                                                         
	rtems_interrupt_level level;                                         
	int len;                                                             
                                                                      
	/* check for XOF/XON to send */                                      
	if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF))          
40003d58:	c2 06 20 b8 	ld  [ %i0 + 0xb8 ], %g1                        <== NOT EXECUTED
40003d5c:	82 08 64 03 	and  %g1, 0x403, %g1                           <== NOT EXECUTED
40003d60:	80 a0 64 01 	cmp  %g1, 0x401                                <== NOT EXECUTED
40003d64:	12 80 00 10 	bne  40003da4 <rtems_termios_refill_transmitter+0x50><== NOT EXECUTED
40003d68:	a0 10 00 18 	mov  %i0, %l0                                  <== NOT EXECUTED
	    == (FL_MDXOF | FL_IREQXOF)) {                                    
	  /* XOFF should be sent now... */                                   
	  (*tty->device.write)(tty->minor,                                   
40003d6c:	c2 06 20 a4 	ld  [ %i0 + 0xa4 ], %g1                        <== NOT EXECUTED
40003d70:	d0 06 20 10 	ld  [ %i0 + 0x10 ], %o0                        <== NOT EXECUTED
40003d74:	92 06 20 4a 	add  %i0, 0x4a, %o1                            <== NOT EXECUTED
40003d78:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40003d7c:	94 10 20 01 	mov  1, %o2                                    <== NOT EXECUTED
			       (void *)&(tty->termios.c_cc[VSTOP]), 1);                    
                                                                      
	  rtems_interrupt_disable(level);                                    
40003d80:	7f ff f7 f3 	call  40001d4c <sparc_disable_interrupts>      <== NOT EXECUTED
40003d84:	01 00 00 00 	nop                                            <== NOT EXECUTED
	  tty->t_dqlen--;                                                    
40003d88:	c4 06 20 90 	ld  [ %i0 + 0x90 ], %g2                        <== NOT EXECUTED
	  tty->flow_ctrl |= FL_ISNTXOF;                                      
40003d8c:	c2 06 20 b8 	ld  [ %i0 + 0xb8 ], %g1                        <== NOT EXECUTED
	  /* XOFF should be sent now... */                                   
	  (*tty->device.write)(tty->minor,                                   
			       (void *)&(tty->termios.c_cc[VSTOP]), 1);                    
                                                                      
	  rtems_interrupt_disable(level);                                    
	  tty->t_dqlen--;                                                    
40003d90:	84 00 bf ff 	add  %g2, -1, %g2                              <== NOT EXECUTED
	  tty->flow_ctrl |= FL_ISNTXOF;                                      
40003d94:	82 10 60 02 	or  %g1, 2, %g1                                <== NOT EXECUTED
	  /* XOFF should be sent now... */                                   
	  (*tty->device.write)(tty->minor,                                   
			       (void *)&(tty->termios.c_cc[VSTOP]), 1);                    
                                                                      
	  rtems_interrupt_disable(level);                                    
	  tty->t_dqlen--;                                                    
40003d98:	c4 26 20 90 	st  %g2, [ %i0 + 0x90 ]                        <== NOT EXECUTED
	  tty->flow_ctrl |= FL_ISNTXOF;                                      
40003d9c:	c2 26 20 b8 	st  %g1, [ %i0 + 0xb8 ]                        <== NOT EXECUTED
	  rtems_interrupt_enable(level);                                     
40003da0:	30 80 00 12 	b,a   40003de8 <rtems_termios_refill_transmitter+0x94><== NOT EXECUTED
                                                                      
	  nToSend = 1;                                                       
	}                                                                    
	else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF))                
40003da4:	c2 06 20 b8 	ld  [ %i0 + 0xb8 ], %g1                        <== NOT EXECUTED
40003da8:	82 08 60 03 	and  %g1, 3, %g1                               <== NOT EXECUTED
40003dac:	80 a0 60 02 	cmp  %g1, 2                                    <== NOT EXECUTED
40003db0:	12 80 00 12 	bne  40003df8 <rtems_termios_refill_transmitter+0xa4><== NOT EXECUTED
40003db4:	92 06 20 49 	add  %i0, 0x49, %o1                            <== NOT EXECUTED
		 * FIXME: this .write call will generate another                    
		 * dequeue callback. This will advance the "Tail" in the data       
		 * buffer, although the corresponding data is not yet out!          
		 * Therefore the dequeue "length" should be reduced by 1            
		 */                                                                 
	  (*tty->device.write)(tty->minor,                                   
40003db8:	c2 06 20 a4 	ld  [ %i0 + 0xa4 ], %g1                        <== NOT EXECUTED
40003dbc:	d0 06 20 10 	ld  [ %i0 + 0x10 ], %o0                        <== NOT EXECUTED
40003dc0:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40003dc4:	94 10 20 01 	mov  1, %o2                                    <== NOT EXECUTED
			       (void *)&(tty->termios.c_cc[VSTART]), 1);                   
                                                                      
	  rtems_interrupt_disable(level);                                    
40003dc8:	7f ff f7 e1 	call  40001d4c <sparc_disable_interrupts>      <== NOT EXECUTED
40003dcc:	01 00 00 00 	nop                                            <== NOT EXECUTED
	  tty->t_dqlen--;                                                    
40003dd0:	c4 06 20 90 	ld  [ %i0 + 0x90 ], %g2                        <== NOT EXECUTED
	  tty->flow_ctrl &= ~FL_ISNTXOF;                                     
40003dd4:	c2 06 20 b8 	ld  [ %i0 + 0xb8 ], %g1                        <== NOT EXECUTED
		 */                                                                 
	  (*tty->device.write)(tty->minor,                                   
			       (void *)&(tty->termios.c_cc[VSTART]), 1);                   
                                                                      
	  rtems_interrupt_disable(level);                                    
	  tty->t_dqlen--;                                                    
40003dd8:	84 00 bf ff 	add  %g2, -1, %g2                              <== NOT EXECUTED
	  tty->flow_ctrl &= ~FL_ISNTXOF;                                     
40003ddc:	82 08 7f fd 	and  %g1, -3, %g1                              <== NOT EXECUTED
		 */                                                                 
	  (*tty->device.write)(tty->minor,                                   
			       (void *)&(tty->termios.c_cc[VSTART]), 1);                   
                                                                      
	  rtems_interrupt_disable(level);                                    
	  tty->t_dqlen--;                                                    
40003de0:	c4 26 20 90 	st  %g2, [ %i0 + 0x90 ]                        <== NOT EXECUTED
	  tty->flow_ctrl &= ~FL_ISNTXOF;                                     
40003de4:	c2 26 20 b8 	st  %g1, [ %i0 + 0xb8 ]                        <== NOT EXECUTED
	  rtems_interrupt_enable(level);                                     
40003de8:	7f ff f7 dd 	call  40001d5c <sparc_enable_interrupts>       <== NOT EXECUTED
40003dec:	b0 10 20 01 	mov  1, %i0                                    <== NOT EXECUTED
40003df0:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40003df4:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      
	  nToSend = 1;                                                       
	}                                                                    
	else {                                                               
	  if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {                
40003df8:	c4 06 20 80 	ld  [ %i0 + 0x80 ], %g2                        <== NOT EXECUTED
40003dfc:	c2 06 20 84 	ld  [ %i0 + 0x84 ], %g1                        <== NOT EXECUTED
40003e00:	80 a0 80 01 	cmp  %g2, %g1                                  <== NOT EXECUTED
40003e04:	12 80 00 0a 	bne  40003e2c <rtems_termios_refill_transmitter+0xd8><== NOT EXECUTED
40003e08:	01 00 00 00 	nop                                            <== NOT EXECUTED
	    /*                                                               
	     * buffer was empty                                              
	     */                                                              
	    if (tty->rawOutBufState == rob_wait) {                           
40003e0c:	c2 06 20 94 	ld  [ %i0 + 0x94 ], %g1                        <== NOT EXECUTED
40003e10:	80 a0 60 02 	cmp  %g1, 2                                    <== NOT EXECUTED
40003e14:	12 bf ff f7 	bne  40003df0 <rtems_termios_refill_transmitter+0x9c><== NOT EXECUTED
40003e18:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
	      /*                                                             
	       * this should never happen...                                 
	       */                                                            
	      rtems_semaphore_release (tty->rawOutBuf.Semaphore);            
40003e1c:	40 00 09 fb 	call  40006608 <rtems_semaphore_release>       <== NOT EXECUTED
40003e20:	d0 04 20 8c 	ld  [ %l0 + 0x8c ], %o0                        <== NOT EXECUTED
40003e24:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40003e28:	81 e8 00 00 	restore                                        <== NOT EXECUTED
	    }                                                                
	    return 0;                                                        
	  }                                                                  
                                                                      
	  rtems_interrupt_disable(level);                                    
40003e2c:	7f ff f7 c8 	call  40001d4c <sparc_disable_interrupts>      <== NOT EXECUTED
40003e30:	01 00 00 00 	nop                                            <== NOT EXECUTED
	  len = tty->t_dqlen;                                                
40003e34:	e2 06 20 90 	ld  [ %i0 + 0x90 ], %l1                        <== NOT EXECUTED
	  tty->t_dqlen = 0;                                                  
40003e38:	c0 26 20 90 	clr  [ %i0 + 0x90 ]                            <== NOT EXECUTED
	  rtems_interrupt_enable(level);                                     
40003e3c:	7f ff f7 c8 	call  40001d5c <sparc_enable_interrupts>       <== NOT EXECUTED
40003e40:	01 00 00 00 	nop                                            <== NOT EXECUTED
                                                                      
	  newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;       
40003e44:	d0 06 20 84 	ld  [ %i0 + 0x84 ], %o0                        <== NOT EXECUTED
40003e48:	d2 06 20 88 	ld  [ %i0 + 0x88 ], %o1                        <== NOT EXECUTED
40003e4c:	40 00 53 e8 	call  40018dec <.urem>                         <== NOT EXECUTED
40003e50:	90 04 40 08 	add  %l1, %o0, %o0                             <== NOT EXECUTED
	  tty->rawOutBuf.Tail = newTail;                                     
	  if (tty->rawOutBufState == rob_wait) {                             
40003e54:	c2 06 20 94 	ld  [ %i0 + 0x94 ], %g1                        <== NOT EXECUTED
	  len = tty->t_dqlen;                                                
	  tty->t_dqlen = 0;                                                  
	  rtems_interrupt_enable(level);                                     
                                                                      
	  newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;       
	  tty->rawOutBuf.Tail = newTail;                                     
40003e58:	d0 24 20 84 	st  %o0, [ %l0 + 0x84 ]                        <== NOT EXECUTED
	  if (tty->rawOutBufState == rob_wait) {                             
40003e5c:	80 a0 60 02 	cmp  %g1, 2                                    <== NOT EXECUTED
40003e60:	12 80 00 04 	bne  40003e70 <rtems_termios_refill_transmitter+0x11c><== NOT EXECUTED
40003e64:	a2 10 00 08 	mov  %o0, %l1                                  <== NOT EXECUTED
	    /*                                                               
	     * wake up any pending writer task                               
	     */                                                              
	    rtems_semaphore_release (tty->rawOutBuf.Semaphore);              
40003e68:	40 00 09 e8 	call  40006608 <rtems_semaphore_release>       <== NOT EXECUTED
40003e6c:	d0 06 20 8c 	ld  [ %i0 + 0x8c ], %o0                        <== NOT EXECUTED
	  }                                                                  
	  if (newTail == tty->rawOutBuf.Head) {                              
40003e70:	c2 04 20 80 	ld  [ %l0 + 0x80 ], %g1                        <== NOT EXECUTED
40003e74:	80 a4 40 01 	cmp  %l1, %g1                                  <== NOT EXECUTED
40003e78:	12 80 00 0b 	bne  40003ea4 <rtems_termios_refill_transmitter+0x150><== NOT EXECUTED
40003e7c:	01 00 00 00 	nop                                            <== NOT EXECUTED
	    nToSend = 0;                                                     
                                                                      
	    /*                                                               
	     * check to see if snd wakeup callback was set                   
	     */                                                              
	    if ( tty->tty_snd.sw_pfn != NULL) {                              
40003e80:	c2 04 20 d4 	ld  [ %l0 + 0xd4 ], %g1                        <== NOT EXECUTED
	  }                                                                  
	  if (newTail == tty->rawOutBuf.Head) {                              
	    /*                                                               
	     * Buffer has become empty                                       
	     */                                                              
	    tty->rawOutBufState = rob_idle;                                  
40003e84:	c0 24 20 94 	clr  [ %l0 + 0x94 ]                            <== NOT EXECUTED
	    nToSend = 0;                                                     
                                                                      
	    /*                                                               
	     * check to see if snd wakeup callback was set                   
	     */                                                              
	    if ( tty->tty_snd.sw_pfn != NULL) {                              
40003e88:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40003e8c:	02 80 00 29 	be  40003f30 <rtems_termios_refill_transmitter+0x1dc><== NOT EXECUTED
40003e90:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
	      (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg);    
40003e94:	d2 04 20 d8 	ld  [ %l0 + 0xd8 ], %o1                        <== NOT EXECUTED
40003e98:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40003e9c:	90 04 20 30 	add  %l0, 0x30, %o0                            <== NOT EXECUTED
40003ea0:	30 80 00 24 	b,a   40003f30 <rtems_termios_refill_transmitter+0x1dc><== NOT EXECUTED
	    }                                                                
	  }                                                                  
	  /* check, whether output should stop due to received XOFF */       
	  else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF))                
40003ea4:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        <== NOT EXECUTED
40003ea8:	82 08 62 10 	and  %g1, 0x210, %g1                           <== NOT EXECUTED
40003eac:	80 a0 62 10 	cmp  %g1, 0x210                                <== NOT EXECUTED
40003eb0:	12 80 00 0c 	bne  40003ee0 <rtems_termios_refill_transmitter+0x18c><== NOT EXECUTED
40003eb4:	01 00 00 00 	nop                                            <== NOT EXECUTED
		   ==                (FL_MDXON | FL_ORCVXOF)) {                     
		  /* Buffer not empty, but output stops due to XOFF */              
		  /* set flag, that output has been stopped */                      
		  rtems_interrupt_disable(level);                                   
40003eb8:	7f ff f7 a5 	call  40001d4c <sparc_disable_interrupts>      <== NOT EXECUTED
40003ebc:	01 00 00 00 	nop                                            <== NOT EXECUTED
		  tty->flow_ctrl |= FL_OSTOP;                                       
40003ec0:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        <== NOT EXECUTED
		  tty->rawOutBufState = rob_busy; /*apm*/                           
40003ec4:	84 10 20 01 	mov  1, %g2                                    <== NOT EXECUTED
	  else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF))                
		   ==                (FL_MDXON | FL_ORCVXOF)) {                     
		  /* Buffer not empty, but output stops due to XOFF */              
		  /* set flag, that output has been stopped */                      
		  rtems_interrupt_disable(level);                                   
		  tty->flow_ctrl |= FL_OSTOP;                                       
40003ec8:	82 10 60 20 	or  %g1, 0x20, %g1                             <== NOT EXECUTED
		  tty->rawOutBufState = rob_busy; /*apm*/                           
40003ecc:	c4 24 20 94 	st  %g2, [ %l0 + 0x94 ]                        <== NOT EXECUTED
	  else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF))                
		   ==                (FL_MDXON | FL_ORCVXOF)) {                     
		  /* Buffer not empty, but output stops due to XOFF */              
		  /* set flag, that output has been stopped */                      
		  rtems_interrupt_disable(level);                                   
		  tty->flow_ctrl |= FL_OSTOP;                                       
40003ed0:	c2 24 20 b8 	st  %g1, [ %l0 + 0xb8 ]                        <== NOT EXECUTED
		  tty->rawOutBufState = rob_busy; /*apm*/                           
		  rtems_interrupt_enable(level);                                    
40003ed4:	7f ff f7 a2 	call  40001d5c <sparc_enable_interrupts>       <== NOT EXECUTED
40003ed8:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
40003edc:	30 80 00 15 	b,a   40003f30 <rtems_termios_refill_transmitter+0x1dc><== NOT EXECUTED
	  }                                                                  
	  else {                                                             
	    /*                                                               
	     * Buffer not empty, start tranmitter                            
	     */                                                              
	    if (newTail > tty->rawOutBuf.Head)                               
40003ee0:	c2 04 20 80 	ld  [ %l0 + 0x80 ], %g1                        <== NOT EXECUTED
40003ee4:	80 a4 40 01 	cmp  %l1, %g1                                  <== NOT EXECUTED
40003ee8:	08 80 00 04 	bleu  40003ef8 <rtems_termios_refill_transmitter+0x1a4><== NOT EXECUTED
40003eec:	01 00 00 00 	nop                                            <== NOT EXECUTED
		    nToSend = tty->rawOutBuf.Size - newTail;                        
40003ef0:	f0 04 20 88 	ld  [ %l0 + 0x88 ], %i0                        <== NOT EXECUTED
40003ef4:	30 80 00 02 	b,a   40003efc <rtems_termios_refill_transmitter+0x1a8><== NOT EXECUTED
	    else                                                             
		    nToSend = tty->rawOutBuf.Head - newTail;                        
40003ef8:	f0 04 20 80 	ld  [ %l0 + 0x80 ], %i0                        <== NOT EXECUTED
	    /* when flow control XON or XOF, don't send blocks of data     */
	    /* to allow fast reaction on incoming flow ctrl and low latency*/
	    /* for outgoing flow control                                   */
	    if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) {                    
40003efc:	c2 04 20 b8 	ld  [ %l0 + 0xb8 ], %g1                        <== NOT EXECUTED
40003f00:	80 88 66 00 	btst  0x600, %g1                               <== NOT EXECUTED
40003f04:	02 80 00 03 	be  40003f10 <rtems_termios_refill_transmitter+0x1bc><== NOT EXECUTED
40003f08:	b0 26 00 11 	sub  %i0, %l1, %i0                             <== NOT EXECUTED
40003f0c:	b0 10 20 01 	mov  1, %i0                                    <== NOT EXECUTED
		    nToSend = 1;                                                    
	    }                                                                
	    tty->rawOutBufState = rob_busy; /*apm*/                          
	    (*tty->device.write)(tty->minor,                                 
40003f10:	d2 04 20 7c 	ld  [ %l0 + 0x7c ], %o1                        <== NOT EXECUTED
40003f14:	c2 04 20 a4 	ld  [ %l0 + 0xa4 ], %g1                        <== NOT EXECUTED
40003f18:	d0 04 20 10 	ld  [ %l0 + 0x10 ], %o0                        <== NOT EXECUTED
	    /* to allow fast reaction on incoming flow ctrl and low latency*/
	    /* for outgoing flow control                                   */
	    if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) {                    
		    nToSend = 1;                                                    
	    }                                                                
	    tty->rawOutBufState = rob_busy; /*apm*/                          
40003f1c:	84 10 20 01 	mov  1, %g2                                    <== NOT EXECUTED
	    (*tty->device.write)(tty->minor,                                 
40003f20:	92 02 40 11 	add  %o1, %l1, %o1                             <== NOT EXECUTED
	    /* to allow fast reaction on incoming flow ctrl and low latency*/
	    /* for outgoing flow control                                   */
	    if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) {                    
		    nToSend = 1;                                                    
	    }                                                                
	    tty->rawOutBufState = rob_busy; /*apm*/                          
40003f24:	c4 24 20 94 	st  %g2, [ %l0 + 0x94 ]                        <== NOT EXECUTED
	    (*tty->device.write)(tty->minor,                                 
40003f28:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40003f2c:	94 10 00 18 	mov  %i0, %o2                                  <== NOT EXECUTED
				 &tty->rawOutBuf.theBuf[newTail],                                 
				 nToSend);                                                        
	  }                                                                  
	  tty->rawOutBuf.Tail = newTail; /*apm*/                             
40003f30:	e2 24 20 84 	st  %l1, [ %l0 + 0x84 ]                        <== NOT EXECUTED
	}                                                                    
	return nToSend;                                                      
}                                                                     
40003f34:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40003f38:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

40005a10 <rtems_termios_rxdaemon>: /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) {
40005a10:	9d e3 bf 98 	save  %sp, -104, %sp                           <== NOT EXECUTED
	char c_buf;                                                          
	while (1) {                                                          
		/*                                                                  
		 * wait for rtems event                                             
		 */                                                                 
		rtems_event_receive((TERMIOS_RX_PROC_EVENT |                        
40005a14:	a2 07 bf f8 	add  %fp, -8, %l1                              <== NOT EXECUTED
			if (c != EOF) {                                                    
				/*                                                                
				 * pollRead did call enqueue on its own                           
				 */                                                               
				c_buf = c;                                                        
				rtems_termios_enqueue_raw_characters (                            
40005a18:	a0 07 bf ff 	add  %fp, -1, %l0                              <== NOT EXECUTED
	char c_buf;                                                          
	while (1) {                                                          
		/*                                                                  
		 * wait for rtems event                                             
		 */                                                                 
		rtems_event_receive((TERMIOS_RX_PROC_EVENT |                        
40005a1c:	96 10 00 11 	mov  %l1, %o3                                  <== NOT EXECUTED
40005a20:	92 10 20 02 	mov  2, %o1                                    <== NOT EXECUTED
40005a24:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
40005a28:	40 00 01 10 	call  40005e68 <rtems_event_receive>           <== NOT EXECUTED
40005a2c:	90 10 20 03 	mov  3, %o0                                    <== NOT EXECUTED
				     TERMIOS_RX_TERMINATE_EVENT),                                 
				    RTEMS_EVENT_ANY | RTEMS_WAIT,                                 
				    RTEMS_NO_TIMEOUT,                                             
				    &the_event);                                                  
		if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) {                
40005a30:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          <== NOT EXECUTED
40005a34:	80 88 60 01 	btst  1, %g1                                   <== NOT EXECUTED
40005a38:	22 80 00 07 	be,a   40005a54 <rtems_termios_rxdaemon+0x44>  <== NOT EXECUTED
40005a3c:	c2 06 20 a0 	ld  [ %i0 + 0xa0 ], %g1                        <== NOT EXECUTED
			tty->rxTaskId = 0;                                                 
40005a40:	c0 26 20 c4 	clr  [ %i0 + 0xc4 ]                            <== NOT EXECUTED
			rtems_task_delete(RTEMS_SELF);                                     
40005a44:	40 00 03 6a 	call  400067ec <rtems_task_delete>             <== NOT EXECUTED
40005a48:	90 10 20 00 	clr  %o0                                       <== NOT EXECUTED
	char c_buf;                                                          
	while (1) {                                                          
		/*                                                                  
		 * wait for rtems event                                             
		 */                                                                 
		rtems_event_receive((TERMIOS_RX_PROC_EVENT |                        
40005a4c:	10 bf ff f5 	b  40005a20 <rtems_termios_rxdaemon+0x10>      <== NOT EXECUTED
40005a50:	96 10 00 11 	mov  %l1, %o3                                  <== NOT EXECUTED
		}                                                                   
		else {                                                              
			/*                                                                 
			 * do something                                                    
			 */                                                                
			c = tty->device.pollRead(tty->minor);                              
40005a54:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40005a58:	d0 06 20 10 	ld  [ %i0 + 0x10 ], %o0                        <== NOT EXECUTED
			if (c != EOF) {                                                    
40005a5c:	80 a2 3f ff 	cmp  %o0, -1                                   <== NOT EXECUTED
40005a60:	02 bf ff ef 	be  40005a1c <rtems_termios_rxdaemon+0xc>      <== NOT EXECUTED
40005a64:	92 10 00 10 	mov  %l0, %o1                                  <== NOT EXECUTED
				/*                                                                
				 * pollRead did call enqueue on its own                           
				 */                                                               
				c_buf = c;                                                        
40005a68:	d0 2f bf ff 	stb  %o0, [ %fp + -1 ]                         <== NOT EXECUTED
				rtems_termios_enqueue_raw_characters (                            
40005a6c:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
40005a70:	7f ff f9 52 	call  40003fb8 <rtems_termios_enqueue_raw_characters><== NOT EXECUTED
40005a74:	94 10 20 01 	mov  1, %o2                                    <== NOT EXECUTED
	char c_buf;                                                          
	while (1) {                                                          
		/*                                                                  
		 * wait for rtems event                                             
		 */                                                                 
		rtems_event_receive((TERMIOS_RX_PROC_EVENT |                        
40005a78:	10 bf ff ea 	b  40005a20 <rtems_termios_rxdaemon+0x10>      <== NOT EXECUTED
40005a7c:	96 10 00 11 	mov  %l1, %o3                                  <== NOT EXECUTED
                                                                      

40003d3c <rtems_termios_rxirq_occured>: void rtems_termios_rxirq_occured(struct rtems_termios_tty *tty) { /* * send event to rx daemon task */ rtems_event_send(tty->rxTaskId,TERMIOS_RX_PROC_EVENT);
40003d3c:	d0 02 20 c4 	ld  [ %o0 + 0xc4 ], %o0                        <== NOT EXECUTED
40003d40:	92 10 20 02 	mov  2, %o1                                    <== NOT EXECUTED
40003d44:	82 13 c0 00 	mov  %o7, %g1                                  <== NOT EXECUTED
40003d48:	40 00 08 aa 	call  40005ff0 <rtems_event_send>              <== NOT EXECUTED
40003d4c:	9e 10 40 00 	mov  %g1, %o7                                  <== NOT EXECUTED
                                                                      

40005994 <rtems_termios_txdaemon>: /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) {
40005994:	9d e3 bf 98 	save  %sp, -104, %sp                           <== NOT EXECUTED
		}                                                                   
		else {                                                              
			/*                                                                 
			 * call any line discipline start function                         
			 */                                                                
			if (rtems_termios_linesw[tty->t_line].l_start != NULL) {           
40005998:	23 10 00 75 	sethi  %hi(0x4001d400), %l1                    <== NOT EXECUTED
                                                                      
	while (1) {                                                          
		/*                                                                  
		 * wait for rtems event                                             
		 */                                                                 
		rtems_event_receive((TERMIOS_TX_START_EVENT |                       
4000599c:	a0 07 bf fc 	add  %fp, -4, %l0                              <== NOT EXECUTED
		}                                                                   
		else {                                                              
			/*                                                                 
			 * call any line discipline start function                         
			 */                                                                
			if (rtems_termios_linesw[tty->t_line].l_start != NULL) {           
400059a0:	a2 14 60 d4 	or  %l1, 0xd4, %l1                             <== NOT EXECUTED
                                                                      
	while (1) {                                                          
		/*                                                                  
		 * wait for rtems event                                             
		 */                                                                 
		rtems_event_receive((TERMIOS_TX_START_EVENT |                       
400059a4:	92 10 20 02 	mov  2, %o1                                    <== NOT EXECUTED
400059a8:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
400059ac:	96 10 00 10 	mov  %l0, %o3                                  <== NOT EXECUTED
400059b0:	40 00 01 2e 	call  40005e68 <rtems_event_receive>           <== NOT EXECUTED
400059b4:	90 10 20 03 	mov  3, %o0                                    <== NOT EXECUTED
				     TERMIOS_TX_TERMINATE_EVENT),                                 
				    RTEMS_EVENT_ANY | RTEMS_WAIT,                                 
				    RTEMS_NO_TIMEOUT,                                             
				    &the_event);                                                  
		if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) {                
400059b8:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          <== NOT EXECUTED
400059bc:	80 88 60 01 	btst  1, %g1                                   <== NOT EXECUTED
400059c0:	02 80 00 07 	be  400059dc <rtems_termios_txdaemon+0x48>     <== NOT EXECUTED
400059c4:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
			tty->txTaskId = 0;                                                 
400059c8:	c0 26 20 c8 	clr  [ %i0 + 0xc8 ]                            <== NOT EXECUTED
			rtems_task_delete(RTEMS_SELF);                                     
400059cc:	40 00 03 88 	call  400067ec <rtems_task_delete>             <== NOT EXECUTED
400059d0:	90 10 20 00 	clr  %o0                                       <== NOT EXECUTED
                                                                      
	while (1) {                                                          
		/*                                                                  
		 * wait for rtems event                                             
		 */                                                                 
		rtems_event_receive((TERMIOS_TX_START_EVENT |                       
400059d4:	10 bf ff f5 	b  400059a8 <rtems_termios_txdaemon+0x14>      <== NOT EXECUTED
400059d8:	92 10 20 02 	mov  2, %o1                                    <== NOT EXECUTED
		}                                                                   
		else {                                                              
			/*                                                                 
			 * call any line discipline start function                         
			 */                                                                
			if (rtems_termios_linesw[tty->t_line].l_start != NULL) {           
400059dc:	c2 06 20 cc 	ld  [ %i0 + 0xcc ], %g1                        <== NOT EXECUTED
400059e0:	83 28 60 05 	sll  %g1, 5, %g1                               <== NOT EXECUTED
400059e4:	82 04 40 01 	add  %l1, %g1, %g1                             <== NOT EXECUTED
400059e8:	c2 00 60 14 	ld  [ %g1 + 0x14 ], %g1                        <== NOT EXECUTED
400059ec:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
400059f0:	02 80 00 04 	be  40005a00 <rtems_termios_txdaemon+0x6c>     <== NOT EXECUTED
400059f4:	01 00 00 00 	nop                                            <== NOT EXECUTED
				rtems_termios_linesw[tty->t_line].l_start(tty);                   
400059f8:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
400059fc:	01 00 00 00 	nop                                            <== NOT EXECUTED
			}                                                                  
			/*                                                                 
			 * try to push further characters to device                        
			 */                                                                
			rtems_termios_refill_transmitter(tty);                             
40005a00:	7f ff f8 d5 	call  40003d54 <rtems_termios_refill_transmitter><== NOT EXECUTED
40005a04:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
                                                                      
	while (1) {                                                          
		/*                                                                  
		 * wait for rtems event                                             
		 */                                                                 
		rtems_event_receive((TERMIOS_TX_START_EVENT |                       
40005a08:	10 bf ff e8 	b  400059a8 <rtems_termios_txdaemon+0x14>      <== NOT EXECUTED
40005a0c:	92 10 20 02 	mov  2, %o1                                    <== NOT EXECUTED
                                                                      

40004a78 <rtems_termios_write>: rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) {
40004a78:	9d e3 bf a0 	save  %sp, -96, %sp                            
	rtems_libio_rw_args_t *args = arg;                                   
	struct rtems_termios_tty *tty = args->iop->data1;                    
40004a7c:	c2 06 00 00 	ld  [ %i0 ], %g1                               
	rtems_termios_puts (&c, 1, tty);                                     
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_write (void *arg)                                       
{                                                                     
40004a80:	a2 10 00 18 	mov  %i0, %l1                                  
	rtems_libio_rw_args_t *args = arg;                                   
	struct rtems_termios_tty *tty = args->iop->data1;                    
40004a84:	e0 00 60 38 	ld  [ %g1 + 0x38 ], %l0                        
	rtems_status_code sc;                                                
                                                                      
	sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
40004a88:	92 10 20 00 	clr  %o1                                       
40004a8c:	d0 04 20 18 	ld  [ %l0 + 0x18 ], %o0                        
40004a90:	40 00 06 97 	call  400064ec <rtems_semaphore_obtain>        
40004a94:	94 10 20 00 	clr  %o2                                       
	if (sc != RTEMS_SUCCESSFUL)                                          
40004a98:	b0 92 20 00 	orcc  %o0, 0, %i0                              
40004a9c:	12 80 00 0f 	bne  40004ad8 <rtems_termios_write+0x60>       <== NEVER TAKEN
40004aa0:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
		return sc;                                                          
	if (rtems_termios_linesw[tty->t_line].l_write != NULL) {             
40004aa4:	c4 04 20 cc 	ld  [ %l0 + 0xcc ], %g2                        
40004aa8:	85 28 a0 05 	sll  %g2, 5, %g2                               
40004aac:	82 10 60 d4 	or  %g1, 0xd4, %g1                             
40004ab0:	82 00 40 02 	add  %g1, %g2, %g1                             
40004ab4:	c2 00 60 0c 	ld  [ %g1 + 0xc ], %g1                         
40004ab8:	80 a0 60 00 	cmp  %g1, 0                                    
40004abc:	02 80 00 09 	be  40004ae0 <rtems_termios_write+0x68>        <== ALWAYS TAKEN
40004ac0:	92 10 00 11 	mov  %l1, %o1                                  
		sc = rtems_termios_linesw[tty->t_line].l_write(tty,args);           
40004ac4:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40004ac8:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
40004acc:	b0 10 00 08 	mov  %o0, %i0                                  <== NOT EXECUTED
		rtems_semaphore_release (tty->osem);                                
40004ad0:	40 00 06 ce 	call  40006608 <rtems_semaphore_release>       <== NOT EXECUTED
40004ad4:	d0 04 20 18 	ld  [ %l0 + 0x18 ], %o0                        <== NOT EXECUTED
		return sc;                                                          
40004ad8:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40004adc:	81 e8 00 00 	restore                                        <== NOT EXECUTED
	}                                                                    
	if (tty->termios.c_oflag & OPOST) {                                  
40004ae0:	c2 04 20 34 	ld  [ %l0 + 0x34 ], %g1                        
40004ae4:	d2 04 60 14 	ld  [ %l1 + 0x14 ], %o1                        
40004ae8:	80 88 60 01 	btst  1, %g1                                   
40004aec:	02 80 00 0e 	be  40004b24 <rtems_termios_write+0xac>        <== NEVER TAKEN
40004af0:	d0 04 60 10 	ld  [ %l1 + 0x10 ], %o0                        
		uint32_t   count = args->count;                                     
40004af4:	a6 10 00 09 	mov  %o1, %l3                                  
		char      *buffer = args->buffer;                                   
		while (count--)                                                     
40004af8:	10 80 00 06 	b  40004b10 <rtems_termios_write+0x98>         
40004afc:	a4 10 00 08 	mov  %o0, %l2                                  
			oproc (*buffer++, tty);                                            
40004b00:	a6 04 ff ff 	add  %l3, -1, %l3                              
40004b04:	a4 04 a0 01 	inc  %l2                                       
40004b08:	7f ff fe 3f 	call  40004404 <oproc>                         
40004b0c:	92 10 00 10 	mov  %l0, %o1                                  
		return sc;                                                          
	}                                                                    
	if (tty->termios.c_oflag & OPOST) {                                  
		uint32_t   count = args->count;                                     
		char      *buffer = args->buffer;                                   
		while (count--)                                                     
40004b10:	80 a4 e0 00 	cmp  %l3, 0                                    
40004b14:	32 bf ff fb 	bne,a   40004b00 <rtems_termios_write+0x88>    
40004b18:	d0 0c 80 00 	ldub  [ %l2 ], %o0                             
			oproc (*buffer++, tty);                                            
		args->bytes_moved = args->count;                                    
	}                                                                    
	else {                                                               
		rtems_termios_puts (args->buffer, args->count, tty);                
		args->bytes_moved = args->count;                                    
40004b1c:	10 80 00 05 	b  40004b30 <rtems_termios_write+0xb8>         
40004b20:	c2 04 60 14 	ld  [ %l1 + 0x14 ], %g1                        
		while (count--)                                                     
			oproc (*buffer++, tty);                                            
		args->bytes_moved = args->count;                                    
	}                                                                    
	else {                                                               
		rtems_termios_puts (args->buffer, args->count, tty);                
40004b24:	7f ff fd ec 	call  400042d4 <rtems_termios_puts>            <== NOT EXECUTED
40004b28:	94 10 00 10 	mov  %l0, %o2                                  <== NOT EXECUTED
		args->bytes_moved = args->count;                                    
40004b2c:	c2 04 60 14 	ld  [ %l1 + 0x14 ], %g1                        <== NOT EXECUTED
40004b30:	c2 24 60 1c 	st  %g1, [ %l1 + 0x1c ]                        
	}                                                                    
	rtems_semaphore_release (tty->osem);                                 
40004b34:	40 00 06 b5 	call  40006608 <rtems_semaphore_release>       
40004b38:	d0 04 20 18 	ld  [ %l0 + 0x18 ], %o0                        
	return sc;                                                           
}                                                                     
40004b3c:	81 c7 e0 08 	ret                                            
40004b40:	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 fb 	sethi  %hi(0x4003ec00), %o0                    
400157ec:	92 10 00 18 	mov  %i0, %o1                                  
400157f0:	90 12 22 c0 	or  %o0, 0x2c0, %o0                            
400157f4:	40 00 0b 83 	call  40018600 <_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 14 03 	call  4001a828 <_Watchdog_Remove>              
40015820:	90 02 20 10 	add  %o0, 0x10, %o0                            
      _Thread_Enable_dispatch();                                      
40015824:	40 00 0d f0 	call  40018fe4 <_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 fb 	sethi  %hi(0x4003ec00), %g1                    
40015cdc:	e0 00 63 00 	ld  [ %g1 + 0x300 ], %l0	! 4003ef00 <_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 f9 	sethi  %hi(0x4003e400), %g1                    
40015cf4:	c2 08 61 54 	ldub  [ %g1 + 0x154 ], %g1	! 4003e554 <_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 f9 	sethi  %hi(0x4003e400), %l3                    
40015d30:	c2 04 e1 d0 	ld  [ %l3 + 0x1d0 ], %g1	! 4003e5d0 <_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 fb 	sethi  %hi(0x4003ec00), %o0                    
40015d44:	92 10 00 11 	mov  %l1, %o1                                  
40015d48:	90 12 22 c0 	or  %o0, 0x2c0, %o0                            
40015d4c:	40 00 0a 2d 	call  40018600 <_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 b0 	call  4001a828 <_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 e1 d0 	ld  [ %l3 + 0x1d0 ], %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 8f 	call  40018fe4 <_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                                        
                                                                      

400082cc <rtems_verror>: static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) {
400082cc:	9d e3 bf a0 	save  %sp, -96, %sp                            <== NOT EXECUTED
    int               local_errno = 0;                                
    int               chars_written = 0;                              
    rtems_status_code status;                                         
                                                                      
    if (error_flag & RTEMS_ERROR_PANIC)                               
400082d0:	2b 08 00 00 	sethi  %hi(0x20000000), %l5                    <== NOT EXECUTED
400082d4:	aa 8e 00 15 	andcc  %i0, %l5, %l5                           <== NOT EXECUTED
400082d8:	02 80 00 11 	be  4000831c <rtems_verror+0x50>               <== NOT EXECUTED
400082dc:	a0 10 00 18 	mov  %i0, %l0                                  <== NOT EXECUTED
    {                                                                 
        if (rtems_panic_in_progress++)                                
400082e0:	05 10 00 a4 	sethi  %hi(0x40029000), %g2                    <== NOT EXECUTED
400082e4:	c2 00 a0 2c 	ld  [ %g2 + 0x2c ], %g1	! 4002902c <rtems_panic_in_progress><== NOT EXECUTED
400082e8:	86 00 60 01 	add  %g1, 1, %g3                               <== NOT EXECUTED
400082ec:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
400082f0:	02 80 00 06 	be  40008308 <rtems_verror+0x3c>               <== NOT EXECUTED
400082f4:	c6 20 a0 2c 	st  %g3, [ %g2 + 0x2c ]                        <== NOT EXECUTED
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
400082f8:	03 10 00 a4 	sethi  %hi(0x40029000), %g1                    <== NOT EXECUTED
400082fc:	c4 00 62 10 	ld  [ %g1 + 0x210 ], %g2	! 40029210 <_Thread_Dispatch_disable_level><== NOT EXECUTED
40008300:	84 00 a0 01 	inc  %g2                                       <== NOT EXECUTED
40008304:	c4 20 62 10 	st  %g2, [ %g1 + 0x210 ]                       <== NOT EXECUTED
            _Thread_Disable_dispatch();       /* disable task switches */
                                                                      
        /* don't aggravate things */                                  
        if (rtems_panic_in_progress > 2)                              
40008308:	03 10 00 a4 	sethi  %hi(0x40029000), %g1                    <== NOT EXECUTED
4000830c:	c2 00 60 2c 	ld  [ %g1 + 0x2c ], %g1	! 4002902c <rtems_panic_in_progress><== NOT EXECUTED
40008310:	80 a0 60 02 	cmp  %g1, 2                                    <== NOT EXECUTED
40008314:	34 80 00 5a 	bg,a   4000847c <rtems_verror+0x1b0>           <== NOT EXECUTED
40008318:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
            return 0;                                                 
    }                                                                 
                                                                      
    (void) fflush(stdout);  	    /* in case stdout/stderr same */     
4000831c:	03 10 00 a1 	sethi  %hi(0x40028400), %g1                    <== NOT EXECUTED
40008320:	c2 00 63 50 	ld  [ %g1 + 0x350 ], %g1	! 40028750 <_impure_ptr><== NOT EXECUTED
                                                                      
    status = error_flag & ~RTEMS_ERROR_MASK;                          
40008324:	27 1c 00 00 	sethi  %hi(0x70000000), %l3                    <== NOT EXECUTED
        /* don't aggravate things */                                  
        if (rtems_panic_in_progress > 2)                              
            return 0;                                                 
    }                                                                 
                                                                      
    (void) fflush(stdout);  	    /* in case stdout/stderr same */     
40008328:	d0 00 60 08 	ld  [ %g1 + 8 ], %o0                           <== NOT EXECUTED
4000832c:	40 00 39 41 	call  40016830 <fflush>                        <== NOT EXECUTED
40008330:	a2 10 20 00 	clr  %l1                                       <== NOT EXECUTED
                                                                      
    status = error_flag & ~RTEMS_ERROR_MASK;                          
    if (error_flag & RTEMS_ERROR_ERRNO)     /* include errno? */      
40008334:	03 10 00 00 	sethi  %hi(0x40000000), %g1                    <== NOT EXECUTED
40008338:	80 8c 00 01 	btst  %l0, %g1                                 <== NOT EXECUTED
4000833c:	02 80 00 05 	be  40008350 <rtems_verror+0x84>               <== NOT EXECUTED
40008340:	a6 2c 00 13 	andn  %l0, %l3, %l3                            <== NOT EXECUTED
        local_errno = errno;                                          
40008344:	40 00 38 31 	call  40016408 <__errno>                       <== NOT EXECUTED
40008348:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000834c:	e2 02 00 00 	ld  [ %o0 ], %l1                               <== NOT EXECUTED
    #if defined(RTEMS_MULTIPROCESSING)                                
      if (_System_state_Is_multiprocessing)                           
        fprintf(stderr, "[%" PRIu32 "] ", _Configuration_MP_table->node);
    #endif                                                            
                                                                      
    chars_written += vfprintf(stderr, printf_format, arglist);        
40008350:	29 10 00 a1 	sethi  %hi(0x40028400), %l4                    <== NOT EXECUTED
40008354:	c2 05 23 50 	ld  [ %l4 + 0x350 ], %g1	! 40028750 <_impure_ptr><== NOT EXECUTED
40008358:	92 10 00 19 	mov  %i1, %o1                                  <== NOT EXECUTED
4000835c:	d0 00 60 0c 	ld  [ %g1 + 0xc ], %o0                         <== NOT EXECUTED
40008360:	40 00 50 fa 	call  4001c748 <vfprintf>                      <== NOT EXECUTED
40008364:	94 10 00 1a 	mov  %i2, %o2                                  <== NOT EXECUTED
                                                                      
    if (status)                                                       
40008368:	80 a4 e0 00 	cmp  %l3, 0                                    <== NOT EXECUTED
4000836c:	02 80 00 0c 	be  4000839c <rtems_verror+0xd0>               <== NOT EXECUTED
40008370:	a4 10 00 08 	mov  %o0, %l2                                  <== NOT EXECUTED
        chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status));
40008374:	c2 05 23 50 	ld  [ %l4 + 0x350 ], %g1                       <== NOT EXECUTED
40008378:	90 10 00 13 	mov  %l3, %o0                                  <== NOT EXECUTED
4000837c:	7f ff ff cd 	call  400082b0 <rtems_status_text>             <== NOT EXECUTED
40008380:	e6 00 60 0c 	ld  [ %g1 + 0xc ], %l3                         <== NOT EXECUTED
40008384:	13 10 00 99 	sethi  %hi(0x40026400), %o1                    <== NOT EXECUTED
40008388:	94 10 00 08 	mov  %o0, %o2                                  <== NOT EXECUTED
4000838c:	92 12 62 b8 	or  %o1, 0x2b8, %o1                            <== NOT EXECUTED
40008390:	40 00 39 fc 	call  40016b80 <fprintf>                       <== NOT EXECUTED
40008394:	90 10 00 13 	mov  %l3, %o0                                  <== NOT EXECUTED
40008398:	a4 04 80 08 	add  %l2, %o0, %l2                             <== NOT EXECUTED
                                                                      
    if (local_errno)                                                  
4000839c:	80 a4 60 00 	cmp  %l1, 0                                    <== NOT EXECUTED
400083a0:	22 80 00 1c 	be,a   40008410 <rtems_verror+0x144>           <== NOT EXECUTED
400083a4:	27 10 00 a1 	sethi  %hi(0x40028400), %l3                    <== NOT EXECUTED
    {                                                                 
      if ((local_errno > 0) && *strerror(local_errno))                
400083a8:	80 a4 60 00 	cmp  %l1, 0                                    <== NOT EXECUTED
400083ac:	04 80 00 11 	ble  400083f0 <rtems_verror+0x124>             <== NOT EXECUTED
400083b0:	03 10 00 a1 	sethi  %hi(0x40028400), %g1                    <== NOT EXECUTED
400083b4:	40 00 3d 46 	call  400178cc <strerror>                      <== NOT EXECUTED
400083b8:	90 10 00 11 	mov  %l1, %o0                                  <== NOT EXECUTED
400083bc:	c2 4a 00 00 	ldsb  [ %o0 ], %g1                             <== NOT EXECUTED
400083c0:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
400083c4:	02 80 00 0b 	be  400083f0 <rtems_verror+0x124>              <== NOT EXECUTED
400083c8:	03 10 00 a1 	sethi  %hi(0x40028400), %g1                    <== NOT EXECUTED
        chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
400083cc:	c2 00 63 50 	ld  [ %g1 + 0x350 ], %g1	! 40028750 <_impure_ptr><== NOT EXECUTED
400083d0:	90 10 00 11 	mov  %l1, %o0                                  <== NOT EXECUTED
400083d4:	40 00 3d 3e 	call  400178cc <strerror>                      <== NOT EXECUTED
400083d8:	e6 00 60 0c 	ld  [ %g1 + 0xc ], %l3                         <== NOT EXECUTED
400083dc:	13 10 00 99 	sethi  %hi(0x40026400), %o1                    <== NOT EXECUTED
400083e0:	94 10 00 08 	mov  %o0, %o2                                  <== NOT EXECUTED
400083e4:	92 12 62 c8 	or  %o1, 0x2c8, %o1                            <== NOT EXECUTED
400083e8:	10 80 00 07 	b  40008404 <rtems_verror+0x138>               <== NOT EXECUTED
400083ec:	90 10 00 13 	mov  %l3, %o0                                  <== NOT EXECUTED
      else                                                            
        chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
400083f0:	c2 00 63 50 	ld  [ %g1 + 0x350 ], %g1                       <== NOT EXECUTED
400083f4:	13 10 00 99 	sethi  %hi(0x40026400), %o1                    <== NOT EXECUTED
400083f8:	d0 00 60 0c 	ld  [ %g1 + 0xc ], %o0                         <== NOT EXECUTED
400083fc:	92 12 62 d8 	or  %o1, 0x2d8, %o1                            <== NOT EXECUTED
40008400:	94 10 00 11 	mov  %l1, %o2                                  <== NOT EXECUTED
40008404:	40 00 39 df 	call  40016b80 <fprintf>                       <== NOT EXECUTED
40008408:	27 10 00 a1 	sethi  %hi(0x40028400), %l3                    <== NOT EXECUTED
4000840c:	a4 04 80 08 	add  %l2, %o0, %l2                             <== NOT EXECUTED
    }                                                                 
                                                                      
    chars_written += fprintf(stderr, "\n");                           
40008410:	c2 04 e3 50 	ld  [ %l3 + 0x350 ], %g1                       <== NOT EXECUTED
40008414:	13 10 00 99 	sethi  %hi(0x40026400), %o1                    <== NOT EXECUTED
40008418:	d0 00 60 0c 	ld  [ %g1 + 0xc ], %o0                         <== NOT EXECUTED
4000841c:	40 00 39 d9 	call  40016b80 <fprintf>                       <== NOT EXECUTED
40008420:	92 12 62 f0 	or  %o1, 0x2f0, %o1                            <== NOT EXECUTED
                                                                      
    (void) fflush(stderr);                                            
40008424:	c2 04 e3 50 	ld  [ %l3 + 0x350 ], %g1                       <== NOT EXECUTED
        chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
      else                                                            
        chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
    }                                                                 
                                                                      
    chars_written += fprintf(stderr, "\n");                           
40008428:	b0 10 00 08 	mov  %o0, %i0                                  <== NOT EXECUTED
                                                                      
    (void) fflush(stderr);                                            
4000842c:	d0 00 60 0c 	ld  [ %g1 + 0xc ], %o0                         <== NOT EXECUTED
40008430:	40 00 39 00 	call  40016830 <fflush>                        <== NOT EXECUTED
40008434:	b0 06 00 12 	add  %i0, %l2, %i0                             <== NOT EXECUTED
                                                                      
    if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT))         
40008438:	03 0c 00 00 	sethi  %hi(0x30000000), %g1                    <== NOT EXECUTED
4000843c:	80 8c 00 01 	btst  %l0, %g1                                 <== NOT EXECUTED
40008440:	02 80 00 0f 	be  4000847c <rtems_verror+0x1b0>              <== NOT EXECUTED
40008444:	80 a5 60 00 	cmp  %l5, 0                                    <== NOT EXECUTED
    {                                                                 
        if (error_flag & RTEMS_ERROR_PANIC)                           
40008448:	22 80 00 08 	be,a   40008468 <rtems_verror+0x19c>           <== NOT EXECUTED
4000844c:	13 10 00 99 	sethi  %hi(0x40026400), %o1                    <== NOT EXECUTED
        {                                                             
            rtems_error(0, "fatal error, exiting");                   
40008450:	13 10 00 99 	sethi  %hi(0x40026400), %o1                    <== NOT EXECUTED
40008454:	90 10 20 00 	clr  %o0                                       <== NOT EXECUTED
40008458:	40 00 00 18 	call  400084b8 <rtems_error>                   <== NOT EXECUTED
4000845c:	92 12 62 f8 	or  %o1, 0x2f8, %o1                            <== NOT EXECUTED
            _exit(local_errno);                                       
40008460:	40 00 02 e5 	call  40008ff4 <_exit>                         <== NOT EXECUTED
40008464:	90 10 00 11 	mov  %l1, %o0                                  <== NOT EXECUTED
        }                                                             
        else                                                          
        {                                                             
            rtems_error(0, "fatal error, aborting");                  
40008468:	90 10 20 00 	clr  %o0                                       <== NOT EXECUTED
4000846c:	40 00 00 13 	call  400084b8 <rtems_error>                   <== NOT EXECUTED
40008470:	92 12 63 10 	or  %o1, 0x310, %o1                            <== NOT EXECUTED
            abort();                                                  
40008474:	40 00 37 d7 	call  400163d0 <abort>                         <== NOT EXECUTED
40008478:	01 00 00 00 	nop                                            <== NOT EXECUTED
        }                                                             
    }                                                                 
    return chars_written;                                             
}                                                                     
4000847c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40008480:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

40003920 <scanInt>: /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) {
40003920:	9d e3 bf a0 	save  %sp, -96, %sp                            
40003924:	27 1f ff ff 	sethi  %hi(0x7ffffc00), %l3                    
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
40003928:	2b 10 00 82 	sethi  %hi(0x40020800), %l5                    
        limit++;                                                      
        continue;                                                     
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
4000392c:	29 10 00 82 	sethi  %hi(0x40020800), %l4                    
/*                                                                    
 * Extract an integer value from the database                         
 */                                                                   
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
40003930:	a6 14 e3 ff 	or  %l3, 0x3ff, %l3                            
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
40003934:	aa 15 60 50 	or  %l5, 0x50, %l5                             
        limit++;                                                      
        continue;                                                     
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
40003938:	a8 15 20 48 	or  %l4, 0x48, %l4                             
/*                                                                    
 * Extract an integer value from the database                         
 */                                                                   
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
4000393c:	a2 10 20 00 	clr  %l1                                       
40003940:	a0 10 20 00 	clr  %l0                                       
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
40003944:	c2 06 20 04 	ld  [ %i0 + 4 ], %g1                           
40003948:	82 00 7f ff 	add  %g1, -1, %g1                              
4000394c:	80 a0 60 00 	cmp  %g1, 0                                    
40003950:	16 80 00 07 	bge  4000396c <scanInt+0x4c>                   <== ALWAYS TAKEN
40003954:	c2 26 20 04 	st  %g1, [ %i0 + 4 ]                           
40003958:	d0 05 40 00 	ld  [ %l5 ], %o0                               <== NOT EXECUTED
4000395c:	40 00 3e b5 	call  40013430 <__srget_r>                     <== NOT EXECUTED
40003960:	92 10 00 18 	mov  %i0, %o1                                  <== NOT EXECUTED
40003964:	10 80 00 06 	b  4000397c <scanInt+0x5c>                     <== NOT EXECUTED
40003968:	a4 10 00 08 	mov  %o0, %l2                                  <== NOT EXECUTED
4000396c:	c2 06 00 00 	ld  [ %i0 ], %g1                               
40003970:	84 00 60 01 	add  %g1, 1, %g2                               
40003974:	e4 08 40 00 	ldub  [ %g1 ], %l2                             
40003978:	c4 26 00 00 	st  %g2, [ %i0 ]                               
    if (c == ':')                                                     
4000397c:	80 a4 a0 3a 	cmp  %l2, 0x3a                                 
40003980:	02 80 00 22 	be  40003a08 <scanInt+0xe8>                    
40003984:	80 a4 60 00 	cmp  %l1, 0                                    
      break;                                                          
    if (sign == 0) {                                                  
40003988:	32 80 00 09 	bne,a   400039ac <scanInt+0x8c>                <== NEVER TAKEN
4000398c:	c2 05 00 00 	ld  [ %l4 ], %g1                               <== NOT EXECUTED
      if (c == '-') {                                                 
40003990:	80 a4 a0 2d 	cmp  %l2, 0x2d                                 
40003994:	12 80 00 05 	bne  400039a8 <scanInt+0x88>                   <== ALWAYS TAKEN
40003998:	a2 10 20 01 	mov  1, %l1                                    
        sign = -1;                                                    
        limit++;                                                      
4000399c:	a6 04 e0 01 	inc  %l3                                       <== NOT EXECUTED
        continue;                                                     
400039a0:	10 bf ff e9 	b  40003944 <scanInt+0x24>                     <== NOT EXECUTED
400039a4:	a2 10 3f ff 	mov  -1, %l1                                   <== NOT EXECUTED
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
400039a8:	c2 05 00 00 	ld  [ %l4 ], %g1                               
400039ac:	82 00 40 12 	add  %g1, %l2, %g1                             
400039b0:	c2 08 60 01 	ldub  [ %g1 + 1 ], %g1                         
400039b4:	80 88 60 04 	btst  4, %g1                                   
400039b8:	02 80 00 1c 	be  40003a28 <scanInt+0x108>                   <== NEVER TAKEN
400039bc:	90 10 00 13 	mov  %l3, %o0                                  
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
400039c0:	40 00 5f 88 	call  4001b7e0 <.udiv>                         
400039c4:	92 10 20 0a 	mov  0xa, %o1                                  
400039c8:	80 a4 00 08 	cmp  %l0, %o0                                  
400039cc:	18 80 00 17 	bgu  40003a28 <scanInt+0x108>                  <== NEVER TAKEN
400039d0:	01 00 00 00 	nop                                            
400039d4:	12 80 00 08 	bne  400039f4 <scanInt+0xd4>                   <== ALWAYS TAKEN
400039d8:	a4 04 bf d0 	add  %l2, -48, %l2                             
400039dc:	90 10 00 13 	mov  %l3, %o0                                  <== NOT EXECUTED
400039e0:	40 00 60 2c 	call  4001ba90 <.urem>                         <== NOT EXECUTED
400039e4:	92 10 20 0a 	mov  0xa, %o1                                  <== NOT EXECUTED
400039e8:	80 a4 80 08 	cmp  %l2, %o0                                  <== NOT EXECUTED
400039ec:	18 80 00 0f 	bgu  40003a28 <scanInt+0x108>                  <== NOT EXECUTED
400039f0:	01 00 00 00 	nop                                            <== NOT EXECUTED
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
      return 0;                                                       
    i = i * 10 + d;                                                   
400039f4:	83 2c 20 03 	sll  %l0, 3, %g1                               
400039f8:	a1 2c 20 01 	sll  %l0, 1, %l0                               
400039fc:	a0 04 00 01 	add  %l0, %g1, %l0                             
40003a00:	10 bf ff d1 	b  40003944 <scanInt+0x24>                     
40003a04:	a0 04 80 10 	add  %l2, %l0, %l0                             
  }                                                                   
  if (sign == 0)                                                      
40003a08:	02 80 00 08 	be  40003a28 <scanInt+0x108>                   <== NEVER TAKEN
40003a0c:	90 10 00 11 	mov  %l1, %o0                                  
    return 0;                                                         
  *val = i * sign;                                                    
40003a10:	92 10 00 10 	mov  %l0, %o1                                  
40003a14:	40 00 5f 39 	call  4001b6f8 <.umul>                         
40003a18:	b0 10 20 01 	mov  1, %i0                                    
40003a1c:	d0 26 40 00 	st  %o0, [ %i1 ]                               
  return 1;                                                           
40003a20:	81 c7 e0 08 	ret                                            
40003a24:	81 e8 00 00 	restore                                        
}                                                                     
40003a28:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40003a2c:	91 e8 20 00 	restore  %g0, 0, %o0                           <== NOT EXECUTED
                                                                      

40003a30 <scanString>: /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) {
40003a30:	9d e3 bf a0 	save  %sp, -96, %sp                            
  int c;                                                              
                                                                      
  *name = *bufp;                                                      
40003a34:	c2 06 80 00 	ld  [ %i2 ], %g1                               
  for (;;) {                                                          
    c = getc(fp);                                                     
40003a38:	21 10 00 82 	sethi  %hi(0x40020800), %l0                    
static int                                                            
scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag)
{                                                                     
  int c;                                                              
                                                                      
  *name = *bufp;                                                      
40003a3c:	c2 26 40 00 	st  %g1, [ %i1 ]                               
  for (;;) {                                                          
    c = getc(fp);                                                     
40003a40:	a0 14 20 50 	or  %l0, 0x50, %l0                             
40003a44:	c2 06 20 04 	ld  [ %i0 + 4 ], %g1                           
40003a48:	82 00 7f ff 	add  %g1, -1, %g1                              
40003a4c:	80 a0 60 00 	cmp  %g1, 0                                    
40003a50:	16 80 00 07 	bge  40003a6c <scanString+0x3c>                
40003a54:	c2 26 20 04 	st  %g1, [ %i0 + 4 ]                           
40003a58:	d0 04 00 00 	ld  [ %l0 ], %o0                               
40003a5c:	40 00 3e 75 	call  40013430 <__srget_r>                     
40003a60:	92 10 00 18 	mov  %i0, %o1                                  
    if (c == ':') {                                                   
40003a64:	10 80 00 07 	b  40003a80 <scanString+0x50>                  
40003a68:	80 a2 20 3a 	cmp  %o0, 0x3a                                 
{                                                                     
  int c;                                                              
                                                                      
  *name = *bufp;                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
40003a6c:	c2 06 00 00 	ld  [ %i0 ], %g1                               
40003a70:	84 00 60 01 	add  %g1, 1, %g2                               
40003a74:	d0 08 40 00 	ldub  [ %g1 ], %o0                             
40003a78:	c4 26 00 00 	st  %g2, [ %i0 ]                               
    if (c == ':') {                                                   
40003a7c:	80 a2 20 3a 	cmp  %o0, 0x3a                                 
40003a80:	12 80 00 07 	bne  40003a9c <scanString+0x6c>                
40003a84:	80 a2 20 0a 	cmp  %o0, 0xa                                  
        if (nlFlag)                                                   
40003a88:	80 a7 20 00 	cmp  %i4, 0                                    
40003a8c:	22 80 00 1a 	be,a   40003af4 <scanString+0xc4>              <== ALWAYS TAKEN
40003a90:	c2 06 80 00 	ld  [ %i2 ], %g1                               
    --(*nleft);                                                       
  }                                                                   
  **bufp = '\0';                                                      
  ++(*bufp);                                                          
  --(*nleft);                                                         
  return 1;                                                           
40003a94:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40003a98:	91 e8 20 00 	restore  %g0, 0, %o0                           <== NOT EXECUTED
    if (c == ':') {                                                   
        if (nlFlag)                                                   
            return 0;                                                 
        break;                                                        
    }                                                                 
    if (c == '\n') {                                                  
40003a9c:	12 80 00 07 	bne  40003ab8 <scanString+0x88>                
40003aa0:	80 a2 3f ff 	cmp  %o0, -1                                   
        if (!nlFlag)                                                  
40003aa4:	80 a7 20 00 	cmp  %i4, 0                                    
40003aa8:	32 80 00 13 	bne,a   40003af4 <scanString+0xc4>             <== ALWAYS TAKEN
40003aac:	c2 06 80 00 	ld  [ %i2 ], %g1                               
    --(*nleft);                                                       
  }                                                                   
  **bufp = '\0';                                                      
  ++(*bufp);                                                          
  --(*nleft);                                                         
  return 1;                                                           
40003ab0:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40003ab4:	91 e8 20 00 	restore  %g0, 0, %o0                           <== NOT EXECUTED
    if (c == '\n') {                                                  
        if (!nlFlag)                                                  
            return 0;                                                 
        break;                                                        
    }                                                                 
    if (c == EOF)                                                     
40003ab8:	22 80 00 17 	be,a   40003b14 <scanString+0xe4>              <== NEVER TAKEN
40003abc:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
      return 0;                                                       
    if (*nleft < 2)                                                   
40003ac0:	c2 06 c0 00 	ld  [ %i3 ], %g1                               
40003ac4:	80 a0 60 01 	cmp  %g1, 1                                    
40003ac8:	28 80 00 13 	bleu,a   40003b14 <scanString+0xe4>            <== NEVER TAKEN
40003acc:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
      return 0;                                                       
    **bufp = c;                                                       
40003ad0:	c2 06 80 00 	ld  [ %i2 ], %g1                               
40003ad4:	d0 28 40 00 	stb  %o0, [ %g1 ]                              
    ++(*bufp);                                                        
40003ad8:	c4 06 80 00 	ld  [ %i2 ], %g2                               
    --(*nleft);                                                       
40003adc:	c2 06 c0 00 	ld  [ %i3 ], %g1                               
    if (c == EOF)                                                     
      return 0;                                                       
    if (*nleft < 2)                                                   
      return 0;                                                       
    **bufp = c;                                                       
    ++(*bufp);                                                        
40003ae0:	84 00 a0 01 	inc  %g2                                       
    --(*nleft);                                                       
40003ae4:	82 00 7f ff 	add  %g1, -1, %g1                              
    if (c == EOF)                                                     
      return 0;                                                       
    if (*nleft < 2)                                                   
      return 0;                                                       
    **bufp = c;                                                       
    ++(*bufp);                                                        
40003ae8:	c4 26 80 00 	st  %g2, [ %i2 ]                               
    --(*nleft);                                                       
  }                                                                   
40003aec:	10 bf ff d6 	b  40003a44 <scanString+0x14>                  
40003af0:	c2 26 c0 00 	st  %g1, [ %i3 ]                               
  **bufp = '\0';                                                      
40003af4:	c0 28 40 00 	clrb  [ %g1 ]                                  
  ++(*bufp);                                                          
40003af8:	c4 06 80 00 	ld  [ %i2 ], %g2                               
  --(*nleft);                                                         
40003afc:	c2 06 c0 00 	ld  [ %i3 ], %g1                               
    **bufp = c;                                                       
    ++(*bufp);                                                        
    --(*nleft);                                                       
  }                                                                   
  **bufp = '\0';                                                      
  ++(*bufp);                                                          
40003b00:	84 00 a0 01 	inc  %g2                                       
  --(*nleft);                                                         
40003b04:	82 00 7f ff 	add  %g1, -1, %g1                              
    **bufp = c;                                                       
    ++(*bufp);                                                        
    --(*nleft);                                                       
  }                                                                   
  **bufp = '\0';                                                      
  ++(*bufp);                                                          
40003b08:	c4 26 80 00 	st  %g2, [ %i2 ]                               
  --(*nleft);                                                         
40003b0c:	c2 26 c0 00 	st  %g1, [ %i3 ]                               
40003b10:	b0 10 20 01 	mov  1, %i0                                    
  return 1;                                                           
}                                                                     
40003b14:	81 c7 e0 08 	ret                                            
40003b18:	81 e8 00 00 	restore                                        
                                                                      

40003b1c <scangr>: FILE *fp, struct group *grp, char *buffer, size_t bufsize ) {
40003b1c:	9d e3 bf 98 	save  %sp, -104, %sp                           
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
40003b20:	98 10 20 00 	clr  %o4                                       
  FILE *fp,                                                           
  struct group *grp,                                                  
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
40003b24:	f4 27 a0 4c 	st  %i2, [ %fp + 0x4c ]                        
40003b28:	f6 27 a0 50 	st  %i3, [ %fp + 0x50 ]                        
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
40003b2c:	a2 07 a0 4c 	add  %fp, 0x4c, %l1                            
40003b30:	a0 07 a0 50 	add  %fp, 0x50, %l0                            
40003b34:	90 10 00 18 	mov  %i0, %o0                                  
40003b38:	92 10 00 19 	mov  %i1, %o1                                  
40003b3c:	94 10 00 11 	mov  %l1, %o2                                  
40003b40:	7f ff ff bc 	call  40003a30 <scanString>                    
40003b44:	96 10 00 10 	mov  %l0, %o3                                  
40003b48:	80 a2 20 00 	cmp  %o0, 0                                    
40003b4c:	02 80 00 41 	be  40003c50 <scangr+0x134>                    <== NEVER TAKEN
40003b50:	90 10 00 18 	mov  %i0, %o0                                  
   || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)          
40003b54:	92 06 60 04 	add  %i1, 4, %o1                               
40003b58:	94 10 00 11 	mov  %l1, %o2                                  
40003b5c:	96 10 00 10 	mov  %l0, %o3                                  
40003b60:	7f ff ff b4 	call  40003a30 <scanString>                    
40003b64:	98 10 20 00 	clr  %o4                                       
{                                                                     
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
40003b68:	80 a2 20 00 	cmp  %o0, 0                                    
40003b6c:	02 80 00 39 	be  40003c50 <scangr+0x134>                    <== NEVER TAKEN
40003b70:	90 10 00 18 	mov  %i0, %o0                                  
   || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)          
   || !scanInt(fp, &grgid)                                            
40003b74:	7f ff ff 6b 	call  40003920 <scanInt>                       
40003b78:	92 07 bf fc 	add  %fp, -4, %o1                              
{                                                                     
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
40003b7c:	80 a2 20 00 	cmp  %o0, 0                                    
40003b80:	02 80 00 34 	be  40003c50 <scangr+0x134>                    <== NEVER TAKEN
40003b84:	90 10 00 18 	mov  %i0, %o0                                  
   || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)          
   || !scanInt(fp, &grgid)                                            
   || !scanString(fp, &grmem, &buffer, &bufsize, 1))                  
40003b88:	94 10 00 11 	mov  %l1, %o2                                  
40003b8c:	96 10 00 10 	mov  %l0, %o3                                  
40003b90:	92 07 bf f8 	add  %fp, -8, %o1                              
40003b94:	7f ff ff a7 	call  40003a30 <scanString>                    
40003b98:	98 10 20 01 	mov  1, %o4                                    
{                                                                     
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
40003b9c:	80 a2 20 00 	cmp  %o0, 0                                    
40003ba0:	02 80 00 2c 	be  40003c50 <scangr+0x134>                    <== NEVER TAKEN
40003ba4:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
  grp->gr_gid = grgid;                                                
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
40003ba8:	c6 07 bf f8 	ld  [ %fp + -8 ], %g3                          
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
   || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)          
   || !scanInt(fp, &grgid)                                            
   || !scanString(fp, &grmem, &buffer, &bufsize, 1))                  
    return 0;                                                         
  grp->gr_gid = grgid;                                                
40003bac:	c2 36 60 08 	sth  %g1, [ %i1 + 8 ]                          
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
40003bb0:	84 10 00 03 	mov  %g3, %g2                                  
40003bb4:	10 80 00 05 	b  40003bc8 <scangr+0xac>                      
40003bb8:	82 10 20 01 	mov  1, %g1                                    
    if(*cp == ',')                                                    
      memcount++;                                                     
40003bbc:	88 19 20 2c 	xor  %g4, 0x2c, %g4                            
40003bc0:	80 a0 00 04 	cmp  %g0, %g4                                  
40003bc4:	82 60 7f ff 	subx  %g1, -1, %g1                             
  grp->gr_gid = grgid;                                                
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
40003bc8:	c8 48 80 00 	ldsb  [ %g2 ], %g4                             
40003bcc:	80 a1 20 00 	cmp  %g4, 0                                    
40003bd0:	12 bf ff fb 	bne  40003bbc <scangr+0xa0>                    
40003bd4:	84 00 a0 01 	inc  %g2                                       
  }                                                                   
                                                                      
  /*                                                                  
   * Hack to produce (hopefully) a suitably-aligned array of pointers 
   */                                                                 
  if (bufsize < (((memcount+1)*sizeof(char *)) + 15))                 
40003bd8:	c4 07 a0 50 	ld  [ %fp + 0x50 ], %g2                        
40003bdc:	83 28 60 02 	sll  %g1, 2, %g1                               
40003be0:	82 00 60 13 	add  %g1, 0x13, %g1                            
40003be4:	80 a0 80 01 	cmp  %g2, %g1                                  
40003be8:	0a 80 00 1a 	bcs  40003c50 <scangr+0x134>                   <== NEVER TAKEN
40003bec:	c2 07 a0 4c 	ld  [ %fp + 0x4c ], %g1                        
  grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15);            
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
40003bf0:	84 10 20 01 	mov  1, %g2                                    
  /*                                                                  
   * Hack to produce (hopefully) a suitably-aligned array of pointers 
   */                                                                 
  if (bufsize < (((memcount+1)*sizeof(char *)) + 15))                 
    return 0;                                                         
  grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15);            
40003bf4:	82 00 60 0f 	add  %g1, 0xf, %g1                             
40003bf8:	82 08 7f f0 	and  %g1, -16, %g1                             
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
40003bfc:	c6 20 40 00 	st  %g3, [ %g1 ]                               
  /*                                                                  
   * Hack to produce (hopefully) a suitably-aligned array of pointers 
   */                                                                 
  if (bufsize < (((memcount+1)*sizeof(char *)) + 15))                 
    return 0;                                                         
  grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15);            
40003c00:	c2 26 60 0c 	st  %g1, [ %i1 + 0xc ]                         
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
40003c04:	10 80 00 09 	b  40003c28 <scangr+0x10c>                     
40003c08:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
    if(*cp == ',') {                                                  
40003c0c:	32 80 00 08 	bne,a   40003c2c <scangr+0x110>                <== ALWAYS TAKEN
40003c10:	82 00 60 01 	inc  %g1                                       
      *cp = '\0';                                                     
40003c14:	c0 28 7f ff 	clrb  [ %g1 + -1 ]                             <== NOT EXECUTED
      grp->gr_mem[memcount++] = cp + 1;                               
40003c18:	c8 06 60 0c 	ld  [ %i1 + 0xc ], %g4                         <== NOT EXECUTED
40003c1c:	87 28 a0 02 	sll  %g2, 2, %g3                               <== NOT EXECUTED
40003c20:	84 00 a0 01 	inc  %g2                                       <== NOT EXECUTED
40003c24:	c2 21 00 03 	st  %g1, [ %g4 + %g3 ]                         <== NOT EXECUTED
40003c28:	82 00 60 01 	inc  %g1                                       
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
40003c2c:	c6 48 7f ff 	ldsb  [ %g1 + -1 ], %g3                        
40003c30:	80 a0 e0 00 	cmp  %g3, 0                                    
40003c34:	32 bf ff f6 	bne,a   40003c0c <scangr+0xf0>                 
40003c38:	80 a0 e0 2c 	cmp  %g3, 0x2c                                 
    if(*cp == ',') {                                                  
      *cp = '\0';                                                     
      grp->gr_mem[memcount++] = cp + 1;                               
    }                                                                 
  }                                                                   
  grp->gr_mem[memcount] = NULL;                                       
40003c3c:	c2 06 60 0c 	ld  [ %i1 + 0xc ], %g1                         
40003c40:	85 28 a0 02 	sll  %g2, 2, %g2                               
40003c44:	c0 20 40 02 	clr  [ %g1 + %g2 ]                             
  return 1;                                                           
40003c48:	81 c7 e0 08 	ret                                            
40003c4c:	91 e8 20 01 	restore  %g0, 1, %o0                           
}                                                                     
40003c50:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40003c54:	91 e8 20 00 	restore  %g0, 0, %o0                           <== NOT EXECUTED
                                                                      

40003ca0 <scanpw>: FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) {
40003ca0:	9d e3 bf 98 	save  %sp, -104, %sp                           
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
40003ca4:	98 10 20 00 	clr  %o4                                       
  FILE *fp,                                                           
  struct passwd *pwd,                                                 
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
40003ca8:	f4 27 a0 4c 	st  %i2, [ %fp + 0x4c ]                        
40003cac:	f6 27 a0 50 	st  %i3, [ %fp + 0x50 ]                        
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
40003cb0:	a2 07 a0 4c 	add  %fp, 0x4c, %l1                            
40003cb4:	a0 07 a0 50 	add  %fp, 0x50, %l0                            
40003cb8:	90 10 00 18 	mov  %i0, %o0                                  
40003cbc:	92 10 00 19 	mov  %i1, %o1                                  
40003cc0:	94 10 00 11 	mov  %l1, %o2                                  
40003cc4:	7f ff ff 5b 	call  40003a30 <scanString>                    
40003cc8:	96 10 00 10 	mov  %l0, %o3                                  
40003ccc:	80 a2 20 00 	cmp  %o0, 0                                    
40003cd0:	02 80 00 39 	be  40003db4 <scanpw+0x114>                    <== NEVER TAKEN
40003cd4:	90 10 00 18 	mov  %i0, %o0                                  
   || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)          
40003cd8:	92 06 60 04 	add  %i1, 4, %o1                               
40003cdc:	94 10 00 11 	mov  %l1, %o2                                  
40003ce0:	96 10 00 10 	mov  %l0, %o3                                  
40003ce4:	7f ff ff 53 	call  40003a30 <scanString>                    
40003ce8:	98 10 20 00 	clr  %o4                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
40003cec:	80 a2 20 00 	cmp  %o0, 0                                    
40003cf0:	02 80 00 31 	be  40003db4 <scanpw+0x114>                    <== NEVER TAKEN
40003cf4:	90 10 00 18 	mov  %i0, %o0                                  
   || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)          
   || !scanInt(fp, &pwuid)                                            
40003cf8:	7f ff ff 0a 	call  40003920 <scanInt>                       
40003cfc:	92 07 bf fc 	add  %fp, -4, %o1                              
  size_t bufsize                                                      
)                                                                     
{                                                                     
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
40003d00:	80 a2 20 00 	cmp  %o0, 0                                    
40003d04:	02 80 00 2c 	be  40003db4 <scanpw+0x114>                    <== NEVER TAKEN
40003d08:	90 10 00 18 	mov  %i0, %o0                                  
   || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)          
   || !scanInt(fp, &pwuid)                                            
   || !scanInt(fp, &pwgid)                                            
40003d0c:	7f ff ff 05 	call  40003920 <scanInt>                       
40003d10:	92 07 bf f8 	add  %fp, -8, %o1                              
  size_t bufsize                                                      
)                                                                     
{                                                                     
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
40003d14:	80 a2 20 00 	cmp  %o0, 0                                    
40003d18:	02 80 00 27 	be  40003db4 <scanpw+0x114>                    <== NEVER TAKEN
40003d1c:	90 10 00 18 	mov  %i0, %o0                                  
   || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)          
   || !scanInt(fp, &pwuid)                                            
   || !scanInt(fp, &pwgid)                                            
   || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)         
40003d20:	92 06 60 0c 	add  %i1, 0xc, %o1                             
40003d24:	94 10 00 11 	mov  %l1, %o2                                  
40003d28:	96 10 00 10 	mov  %l0, %o3                                  
40003d2c:	7f ff ff 41 	call  40003a30 <scanString>                    
40003d30:	98 10 20 00 	clr  %o4                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
40003d34:	80 a2 20 00 	cmp  %o0, 0                                    
40003d38:	02 80 00 1f 	be  40003db4 <scanpw+0x114>                    <== NEVER TAKEN
40003d3c:	90 10 00 18 	mov  %i0, %o0                                  
   || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)          
   || !scanInt(fp, &pwuid)                                            
   || !scanInt(fp, &pwgid)                                            
   || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)         
   || !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0)           
40003d40:	92 06 60 10 	add  %i1, 0x10, %o1                            
40003d44:	94 10 00 11 	mov  %l1, %o2                                  
40003d48:	96 10 00 10 	mov  %l0, %o3                                  
40003d4c:	7f ff ff 39 	call  40003a30 <scanString>                    
40003d50:	98 10 20 00 	clr  %o4                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
40003d54:	80 a2 20 00 	cmp  %o0, 0                                    
40003d58:	02 80 00 17 	be  40003db4 <scanpw+0x114>                    <== NEVER TAKEN
40003d5c:	90 10 00 18 	mov  %i0, %o0                                  
   || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)          
   || !scanInt(fp, &pwuid)                                            
   || !scanInt(fp, &pwgid)                                            
   || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)         
   || !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0)           
   || !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0)             
40003d60:	92 06 60 14 	add  %i1, 0x14, %o1                            
40003d64:	94 10 00 11 	mov  %l1, %o2                                  
40003d68:	96 10 00 10 	mov  %l0, %o3                                  
40003d6c:	7f ff ff 31 	call  40003a30 <scanString>                    
40003d70:	98 10 20 00 	clr  %o4                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
40003d74:	80 a2 20 00 	cmp  %o0, 0                                    
40003d78:	02 80 00 0f 	be  40003db4 <scanpw+0x114>                    <== NEVER TAKEN
40003d7c:	90 10 00 18 	mov  %i0, %o0                                  
   || !scanInt(fp, &pwuid)                                            
   || !scanInt(fp, &pwgid)                                            
   || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)         
   || !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0)           
   || !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0)             
   || !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1))          
40003d80:	94 10 00 11 	mov  %l1, %o2                                  
40003d84:	96 10 00 10 	mov  %l0, %o3                                  
40003d88:	92 06 60 18 	add  %i1, 0x18, %o1                            
40003d8c:	7f ff ff 29 	call  40003a30 <scanString>                    
40003d90:	98 10 20 01 	mov  1, %o4                                    
  size_t bufsize                                                      
)                                                                     
{                                                                     
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
40003d94:	80 a2 20 00 	cmp  %o0, 0                                    
40003d98:	02 80 00 07 	be  40003db4 <scanpw+0x114>                    <== NEVER TAKEN
40003d9c:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
   || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)         
   || !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0)           
   || !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0)             
   || !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1))          
    return 0;                                                         
  pwd->pw_uid = pwuid;                                                
40003da0:	c2 36 60 08 	sth  %g1, [ %i1 + 8 ]                          
  pwd->pw_gid = pwgid;                                                
40003da4:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
40003da8:	c2 36 60 0a 	sth  %g1, [ %i1 + 0xa ]                        
  return 1;                                                           
40003dac:	81 c7 e0 08 	ret                                            
40003db0:	91 e8 20 01 	restore  %g0, 1, %o0                           
}                                                                     
40003db4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40003db8:	91 e8 20 00 	restore  %g0, 0, %o0                           <== NOT EXECUTED
                                                                      

40006d98 <sched_get_priority_max>: #include <rtems/posix/priority.h> int sched_get_priority_max( int policy ) {
40006d98:	9d e3 bf a0 	save  %sp, -96, %sp                            
  switch ( policy ) {                                                 
40006d9c:	80 a6 20 04 	cmp  %i0, 4                                    
40006da0:	18 80 00 06 	bgu  40006db8 <sched_get_priority_max+0x20>    
40006da4:	82 10 20 01 	mov  1, %g1                                    
40006da8:	b1 28 40 18 	sll  %g1, %i0, %i0                             
40006dac:	80 8e 20 17 	btst  0x17, %i0                                
40006db0:	12 80 00 08 	bne  40006dd0 <sched_get_priority_max+0x38>    <== ALWAYS TAKEN
40006db4:	03 10 00 78 	sethi  %hi(0x4001e000), %g1                    
    case SCHED_RR:                                                    
    case SCHED_SPORADIC:                                              
      break;                                                          
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
40006db8:	40 00 25 4b 	call  400102e4 <__errno>                       
40006dbc:	b0 10 3f ff 	mov  -1, %i0                                   
40006dc0:	82 10 20 16 	mov  0x16, %g1                                 
40006dc4:	c2 22 00 00 	st  %g1, [ %o0 ]                               
40006dc8:	81 c7 e0 08 	ret                                            
40006dcc:	81 e8 00 00 	restore                                        
  }                                                                   
                                                                      
  return POSIX_SCHEDULER_MAXIMUM_PRIORITY;                            
40006dd0:	f0 08 62 38 	ldub  [ %g1 + 0x238 ], %i0                     
}                                                                     
40006dd4:	81 c7 e0 08 	ret                                            
40006dd8:	91 ee 3f ff 	restore  %i0, -1, %o0                          
                                                                      

40006ddc <sched_get_priority_min>: #include <rtems/posix/priority.h> int sched_get_priority_min( int policy ) {
40006ddc:	9d e3 bf a0 	save  %sp, -96, %sp                            
  switch ( policy ) {                                                 
40006de0:	80 a6 20 04 	cmp  %i0, 4                                    
40006de4:	18 80 00 06 	bgu  40006dfc <sched_get_priority_min+0x20>    
40006de8:	82 10 20 01 	mov  1, %g1                                    
40006dec:	b1 28 40 18 	sll  %g1, %i0, %i0                             
40006df0:	80 8e 20 17 	btst  0x17, %i0                                
40006df4:	12 80 00 06 	bne  40006e0c <sched_get_priority_min+0x30>    <== ALWAYS TAKEN
40006df8:	b0 10 20 01 	mov  1, %i0                                    
    case SCHED_RR:                                                    
    case SCHED_SPORADIC:                                              
      break;                                                          
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
40006dfc:	40 00 25 3a 	call  400102e4 <__errno>                       
40006e00:	b0 10 3f ff 	mov  -1, %i0                                   
40006e04:	82 10 20 16 	mov  0x16, %g1                                 
40006e08:	c2 22 00 00 	st  %g1, [ %o0 ]                               
  }                                                                   
                                                                      
  return POSIX_SCHEDULER_MINIMUM_PRIORITY;                            
}                                                                     
40006e0c:	81 c7 e0 08 	ret                                            
40006e10:	81 e8 00 00 	restore                                        
                                                                      

40006e14 <sched_rr_get_interval>: int sched_rr_get_interval( pid_t pid, struct timespec *interval ) {
40006e14:	9d e3 bf a0 	save  %sp, -96, %sp                            
  /*                                                                  
   *  Only supported for the "calling process" (i.e. this node).      
   */                                                                 
                                                                      
  if ( pid && pid != getpid() )                                       
40006e18:	80 a6 20 00 	cmp  %i0, 0                                    
40006e1c:	02 80 00 0b 	be  40006e48 <sched_rr_get_interval+0x34>      <== NEVER TAKEN
40006e20:	80 a6 60 00 	cmp  %i1, 0                                    
40006e24:	7f ff f2 d5 	call  40003978 <getpid>                        
40006e28:	01 00 00 00 	nop                                            
40006e2c:	80 a6 00 08 	cmp  %i0, %o0                                  
40006e30:	02 80 00 06 	be  40006e48 <sched_rr_get_interval+0x34>      
40006e34:	80 a6 60 00 	cmp  %i1, 0                                    
    rtems_set_errno_and_return_minus_one( ESRCH );                    
40006e38:	40 00 25 2b 	call  400102e4 <__errno>                       
40006e3c:	01 00 00 00 	nop                                            
40006e40:	10 80 00 07 	b  40006e5c <sched_rr_get_interval+0x48>       
40006e44:	82 10 20 03 	mov  3, %g1	! 3 <PROM_START+0x3>               
                                                                      
  if ( !interval )                                                    
40006e48:	12 80 00 08 	bne  40006e68 <sched_rr_get_interval+0x54>     
40006e4c:	03 10 00 7b 	sethi  %hi(0x4001ec00), %g1                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
40006e50:	40 00 25 25 	call  400102e4 <__errno>                       
40006e54:	01 00 00 00 	nop                                            
40006e58:	82 10 20 16 	mov  0x16, %g1	! 16 <PROM_START+0x16>          
40006e5c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
40006e60:	81 c7 e0 08 	ret                                            
40006e64:	91 e8 3f ff 	restore  %g0, -1, %o0                          
                                                                      
  _Timespec_From_ticks( _Thread_Ticks_per_timeslice, interval );      
40006e68:	d0 00 60 18 	ld  [ %g1 + 0x18 ], %o0                        
40006e6c:	92 10 00 19 	mov  %i1, %o1                                  
40006e70:	40 00 0d cb 	call  4000a59c <_Timespec_From_ticks>          
40006e74:	b0 10 20 00 	clr  %i0                                       
  return 0;                                                           
}                                                                     
40006e78:	81 c7 e0 08 	ret                                            
40006e7c:	81 e8 00 00 	restore                                        
                                                                      

40009730 <sem_open>: int oflag, ... /* mode_t mode, */ /* unsigned int value */ ) {
40009730:	9d e3 bf 90 	save  %sp, -112, %sp                           
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
40009734:	03 10 00 8f 	sethi  %hi(0x40023c00), %g1                    
40009738:	c4 00 60 b0 	ld  [ %g1 + 0xb0 ], %g2	! 40023cb0 <_Thread_Dispatch_disable_level>
  Objects_Locations          location;                                
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( oflag & O_CREAT ) {                                            
    va_start(arg, oflag);                                             
4000973c:	f4 27 a0 4c 	st  %i2, [ %fp + 0x4c ]                        
40009740:	84 00 a0 01 	inc  %g2                                       
40009744:	f6 27 a0 50 	st  %i3, [ %fp + 0x50 ]                        
40009748:	f8 27 a0 54 	st  %i4, [ %fp + 0x54 ]                        
4000974c:	fa 27 a0 58 	st  %i5, [ %fp + 0x58 ]                        
40009750:	c4 20 60 b0 	st  %g2, [ %g1 + 0xb0 ]                        
  POSIX_Semaphore_Control   *the_semaphore;                           
  Objects_Locations          location;                                
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( oflag & O_CREAT ) {                                            
40009754:	a2 8e 62 00 	andcc  %i1, 0x200, %l1                         
40009758:	02 80 00 05 	be  4000976c <sem_open+0x3c>                   
4000975c:	a0 10 20 00 	clr  %l0                                       
    va_start(arg, oflag);                                             
    mode = (mode_t) va_arg( arg, unsigned int );                      
    value = va_arg( arg, unsigned int );                              
40009760:	e0 07 a0 50 	ld  [ %fp + 0x50 ], %l0                        
40009764:	82 07 a0 54 	add  %fp, 0x54, %g1                            
40009768:	c2 27 bf fc 	st  %g1, [ %fp + -4 ]                          
    va_end(arg);                                                      
  }                                                                   
                                                                      
  status = _POSIX_Semaphore_Name_to_id( name, &the_semaphore_id );    
4000976c:	90 10 00 18 	mov  %i0, %o0                                  
40009770:	40 00 19 da 	call  4000fed8 <_POSIX_Semaphore_Name_to_id>   
40009774:	92 07 bf f8 	add  %fp, -8, %o1                              
   *  and we can just return a pointer to the id.  Otherwise we may   
   *  need to check to see if this is a "semaphore does not exist"    
   *  or some other miscellaneous error on the name.                  
   */                                                                 
                                                                      
  if ( status ) {                                                     
40009778:	a4 92 20 00 	orcc  %o0, 0, %l2                              
4000977c:	22 80 00 0e 	be,a   400097b4 <sem_open+0x84>                
40009780:	b2 0e 6a 00 	and  %i1, 0xa00, %i1                           
    /*                                                                
     * Unless provided a valid name that did not already exist        
     * and we are willing to create then it is an error.              
     */                                                               
                                                                      
    if ( !( status == ENOENT && (oflag & O_CREAT) ) ) {               
40009784:	80 a4 a0 02 	cmp  %l2, 2                                    
40009788:	12 80 00 04 	bne  40009798 <sem_open+0x68>                  <== NEVER TAKEN
4000978c:	80 a4 60 00 	cmp  %l1, 0                                    
40009790:	12 80 00 21 	bne  40009814 <sem_open+0xe4>                  
40009794:	94 10 00 10 	mov  %l0, %o2                                  
      _Thread_Enable_dispatch();                                      
40009798:	40 00 0a 87 	call  4000c1b4 <_Thread_Enable_dispatch>       
4000979c:	b0 10 3f ff 	mov  -1, %i0                                   
      rtems_set_errno_and_return_minus_one_cast( status, sem_t * );   
400097a0:	40 00 28 50 	call  400138e0 <__errno>                       
400097a4:	01 00 00 00 	nop                                            
400097a8:	e4 22 00 00 	st  %l2, [ %o0 ]                               
400097ac:	81 c7 e0 08 	ret                                            
400097b0:	81 e8 00 00 	restore                                        
                                                                      
    /*                                                                
     * Check for existence with creation.                             
     */                                                               
                                                                      
    if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {       
400097b4:	80 a6 6a 00 	cmp  %i1, 0xa00                                
400097b8:	12 80 00 0a 	bne  400097e0 <sem_open+0xb0>                  
400097bc:	d2 07 bf f8 	ld  [ %fp + -8 ], %o1                          
      _Thread_Enable_dispatch();                                      
400097c0:	40 00 0a 7d 	call  4000c1b4 <_Thread_Enable_dispatch>       
400097c4:	b0 10 3f ff 	mov  -1, %i0                                   
      rtems_set_errno_and_return_minus_one_cast( EEXIST, sem_t * );   
400097c8:	40 00 28 46 	call  400138e0 <__errno>                       
400097cc:	01 00 00 00 	nop                                            
400097d0:	82 10 20 11 	mov  0x11, %g1	! 11 <PROM_START+0x11>          
400097d4:	c2 22 00 00 	st  %g1, [ %o0 ]                               
400097d8:	81 c7 e0 08 	ret                                            
400097dc:	81 e8 00 00 	restore                                        
400097e0:	94 07 bf f0 	add  %fp, -16, %o2                             
400097e4:	11 10 00 8f 	sethi  %hi(0x40023c00), %o0                    
400097e8:	40 00 08 27 	call  4000b884 <_Objects_Get>                  
400097ec:	90 12 23 c0 	or  %o0, 0x3c0, %o0	! 40023fc0 <_POSIX_Semaphore_Information>
    }                                                                 
                                                                      
    the_semaphore = _POSIX_Semaphore_Get( &the_semaphore_id, &location );
    the_semaphore->open_count += 1;                                   
400097f0:	c2 02 20 18 	ld  [ %o0 + 0x18 ], %g1                        
    if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {       
      _Thread_Enable_dispatch();                                      
      rtems_set_errno_and_return_minus_one_cast( EEXIST, sem_t * );   
    }                                                                 
                                                                      
    the_semaphore = _POSIX_Semaphore_Get( &the_semaphore_id, &location );
400097f4:	d0 27 bf f4 	st  %o0, [ %fp + -12 ]                         
    the_semaphore->open_count += 1;                                   
400097f8:	82 00 60 01 	inc  %g1                                       
    _Thread_Enable_dispatch();                                        
400097fc:	40 00 0a 6e 	call  4000c1b4 <_Thread_Enable_dispatch>       
40009800:	c2 22 20 18 	st  %g1, [ %o0 + 0x18 ]                        
    _Thread_Enable_dispatch();                                        
40009804:	40 00 0a 6c 	call  4000c1b4 <_Thread_Enable_dispatch>       
40009808:	01 00 00 00 	nop                                            
    goto return_id;                                                   
4000980c:	10 80 00 0c 	b  4000983c <sem_open+0x10c>                   
40009810:	f0 07 bf f4 	ld  [ %fp + -12 ], %i0                         
  /*                                                                  
   *  At this point, the semaphore does not exist and everything has been
   *  checked. We should go ahead and create a semaphore.             
   */                                                                 
                                                                      
  status =_POSIX_Semaphore_Create_support(                            
40009814:	90 10 00 18 	mov  %i0, %o0                                  
40009818:	92 10 20 00 	clr  %o1                                       
4000981c:	40 00 19 59 	call  4000fd80 <_POSIX_Semaphore_Create_support>
40009820:	96 07 bf f4 	add  %fp, -12, %o3                             
                                                                      
  /*                                                                  
   * errno was set by Create_support, so don't set it again.          
   */                                                                 
                                                                      
  _Thread_Enable_dispatch();                                          
40009824:	40 00 0a 64 	call  4000c1b4 <_Thread_Enable_dispatch>       
40009828:	a0 10 00 08 	mov  %o0, %l0                                  
                                                                      
  if ( status == -1 )                                                 
4000982c:	80 a4 3f ff 	cmp  %l0, -1                                   
40009830:	02 bf ff ea 	be  400097d8 <sem_open+0xa8>                   
40009834:	b0 10 3f ff 	mov  -1, %i0                                   
return_id:                                                            
  #if defined(RTEMS_USE_16_BIT_OBJECT)                                
    the_semaphore->Semaphore_id = the_semaphore->Object.id;           
    id = &the_semaphore->Semaphore_id;                                
  #else                                                               
    id = (sem_t *)&the_semaphore->Object.id;                          
40009838:	f0 07 bf f4 	ld  [ %fp + -12 ], %i0                         
4000983c:	b0 06 20 08 	add  %i0, 8, %i0                               
  #endif                                                              
  return id;                                                          
}                                                                     
40009840:	81 c7 e0 08 	ret                                            
40009844:	81 e8 00 00 	restore                                        
                                                                      

40003edc <setgrent>: return NULL; return &grent; } void setgrent(void) {
40003edc:	9d e3 bf a0 	save  %sp, -96, %sp                            <== NOT EXECUTED
  init_etc_passwd_group();                                            
40003ee0:	7f ff ff c9 	call  40003e04 <init_etc_passwd_group>         <== NOT EXECUTED
40003ee4:	01 00 00 00 	nop                                            <== NOT EXECUTED
                                                                      
  if (group_fp != NULL)                                               
40003ee8:	03 10 00 83 	sethi  %hi(0x40020c00), %g1                    <== NOT EXECUTED
40003eec:	d0 00 62 5c 	ld  [ %g1 + 0x25c ], %o0	! 40020e5c <group_fp> <== NOT EXECUTED
40003ef0:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
40003ef4:	22 80 00 05 	be,a   40003f08 <setgrent+0x2c>                <== NOT EXECUTED
40003ef8:	11 10 00 7d 	sethi  %hi(0x4001f400), %o0                    <== NOT EXECUTED
    fclose(group_fp);                                                 
40003efc:	40 00 36 64 	call  4001188c <fclose>                        <== NOT EXECUTED
40003f00:	01 00 00 00 	nop                                            <== NOT EXECUTED
  group_fp = fopen("/etc/group", "r");                                
40003f04:	11 10 00 7d 	sethi  %hi(0x4001f400), %o0                    <== NOT EXECUTED
40003f08:	13 10 00 7d 	sethi  %hi(0x4001f400), %o1                    <== NOT EXECUTED
40003f0c:	90 12 20 98 	or  %o0, 0x98, %o0                             <== NOT EXECUTED
40003f10:	40 00 38 35 	call  40011fe4 <fopen>                         <== NOT EXECUTED
40003f14:	92 12 60 20 	or  %o1, 0x20, %o1                             <== NOT EXECUTED
40003f18:	03 10 00 83 	sethi  %hi(0x40020c00), %g1                    <== NOT EXECUTED
40003f1c:	d0 20 62 5c 	st  %o0, [ %g1 + 0x25c ]	! 40020e5c <group_fp> <== NOT EXECUTED
}                                                                     
40003f20:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40003f24:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

400040d0 <setpwent>: return NULL; return &pwent; } void setpwent(void) {
400040d0:	9d e3 bf a0 	save  %sp, -96, %sp                            <== NOT EXECUTED
  init_etc_passwd_group();                                            
400040d4:	7f ff ff 4c 	call  40003e04 <init_etc_passwd_group>         <== NOT EXECUTED
400040d8:	01 00 00 00 	nop                                            <== NOT EXECUTED
                                                                      
  if (passwd_fp != NULL)                                              
400040dc:	03 10 00 83 	sethi  %hi(0x40020c00), %g1                    <== NOT EXECUTED
400040e0:	d0 00 61 74 	ld  [ %g1 + 0x174 ], %o0	! 40020d74 <passwd_fp><== NOT EXECUTED
400040e4:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
400040e8:	22 80 00 05 	be,a   400040fc <setpwent+0x2c>                <== NOT EXECUTED
400040ec:	11 10 00 7d 	sethi  %hi(0x4001f400), %o0                    <== NOT EXECUTED
    fclose(passwd_fp);                                                
400040f0:	40 00 35 e7 	call  4001188c <fclose>                        <== NOT EXECUTED
400040f4:	01 00 00 00 	nop                                            <== NOT EXECUTED
  passwd_fp = fopen("/etc/passwd", "r");                              
400040f8:	11 10 00 7d 	sethi  %hi(0x4001f400), %o0                    <== NOT EXECUTED
400040fc:	13 10 00 7d 	sethi  %hi(0x4001f400), %o1                    <== NOT EXECUTED
40004100:	90 12 20 10 	or  %o0, 0x10, %o0                             <== NOT EXECUTED
40004104:	40 00 37 b8 	call  40011fe4 <fopen>                         <== NOT EXECUTED
40004108:	92 12 60 20 	or  %o1, 0x20, %o1                             <== NOT EXECUTED
4000410c:	03 10 00 83 	sethi  %hi(0x40020c00), %g1                    <== NOT EXECUTED
40004110:	d0 20 61 74 	st  %o0, [ %g1 + 0x174 ]	! 40020d74 <passwd_fp><== NOT EXECUTED
}                                                                     
40004114:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40004118:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

40006d40 <sigaction>: int sigaction( int sig, const struct sigaction *act, struct sigaction *oact ) {
40006d40:	9d e3 bf a0 	save  %sp, -96, %sp                            
40006d44:	90 10 00 1a 	mov  %i2, %o0                                  
  ISR_Level     level;                                                
                                                                      
  if ( oact )                                                         
40006d48:	80 a6 a0 00 	cmp  %i2, 0                                    
40006d4c:	02 80 00 0a 	be  40006d74 <sigaction+0x34>                  
40006d50:	a0 10 00 18 	mov  %i0, %l0                                  
    *oact = _POSIX_signals_Vectors[ sig ];                            
40006d54:	83 2e 20 02 	sll  %i0, 2, %g1                               
40006d58:	85 2e 20 04 	sll  %i0, 4, %g2                               
40006d5c:	82 20 80 01 	sub  %g2, %g1, %g1                             
40006d60:	13 10 00 80 	sethi  %hi(0x40020000), %o1                    
40006d64:	94 10 20 0c 	mov  0xc, %o2                                  
40006d68:	92 12 61 a4 	or  %o1, 0x1a4, %o1                            
40006d6c:	40 00 28 32 	call  40010e34 <memcpy>                        
40006d70:	92 02 40 01 	add  %o1, %g1, %o1                             
                                                                      
  if ( !sig )                                                         
40006d74:	80 a4 20 00 	cmp  %l0, 0                                    
40006d78:	02 80 00 07 	be  40006d94 <sigaction+0x54>                  
40006d7c:	82 04 3f ff 	add  %l0, -1, %g1                              
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !is_valid_signo(sig) )                                         
40006d80:	80 a0 60 1f 	cmp  %g1, 0x1f                                 
40006d84:	18 80 00 04 	bgu  40006d94 <sigaction+0x54>                 
40006d88:	80 a4 20 09 	cmp  %l0, 9                                    
   *                                                                  
   *  NOTE: Solaris documentation claims to "silently enforce" this which
   *        contradicts the POSIX specification.                      
   */                                                                 
                                                                      
  if ( sig == SIGKILL )                                               
40006d8c:	12 80 00 08 	bne  40006dac <sigaction+0x6c>                 
40006d90:	80 a6 60 00 	cmp  %i1, 0                                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
40006d94:	40 00 25 e7 	call  40010530 <__errno>                       
40006d98:	b0 10 3f ff 	mov  -1, %i0                                   
40006d9c:	82 10 20 16 	mov  0x16, %g1                                 
40006da0:	c2 22 00 00 	st  %g1, [ %o0 ]                               
40006da4:	81 c7 e0 08 	ret                                            
40006da8:	81 e8 00 00 	restore                                        
  /*                                                                  
   *  Evaluate the new action structure and set the global signal vector
   *  appropriately.                                                  
   */                                                                 
                                                                      
  if ( act ) {                                                        
40006dac:	02 bf ff fe 	be  40006da4 <sigaction+0x64>                  <== NEVER TAKEN
40006db0:	b0 10 20 00 	clr  %i0                                       
    /*                                                                
     *  Unless the user is installing the default signal actions, then
     *  we can just copy the provided sigaction structure into the vectors.
     */                                                               
                                                                      
    _ISR_Disable( level );                                            
40006db4:	7f ff ed 80 	call  400023b4 <sparc_disable_interrupts>      
40006db8:	01 00 00 00 	nop                                            
40006dbc:	a2 10 00 08 	mov  %o0, %l1                                  
      if ( act->sa_handler == SIG_DFL ) {                             
40006dc0:	c2 06 60 08 	ld  [ %i1 + 8 ], %g1                           
40006dc4:	25 10 00 80 	sethi  %hi(0x40020000), %l2                    
40006dc8:	80 a0 60 00 	cmp  %g1, 0                                    
40006dcc:	a4 14 a1 a4 	or  %l2, 0x1a4, %l2                            
40006dd0:	a7 2c 20 02 	sll  %l0, 2, %l3                               
40006dd4:	12 80 00 08 	bne  40006df4 <sigaction+0xb4>                 
40006dd8:	a9 2c 20 04 	sll  %l0, 4, %l4                               
        _POSIX_signals_Vectors[ sig ] = _POSIX_signals_Default_vectors[ sig ];
40006ddc:	a6 25 00 13 	sub  %l4, %l3, %l3                             
40006de0:	13 10 00 79 	sethi  %hi(0x4001e400), %o1                    
40006de4:	90 04 80 13 	add  %l2, %l3, %o0                             
40006de8:	92 12 60 18 	or  %o1, 0x18, %o1                             
40006dec:	10 80 00 07 	b  40006e08 <sigaction+0xc8>                   
40006df0:	92 02 40 13 	add  %o1, %l3, %o1                             
      } else {                                                        
         _POSIX_signals_Clear_process_signals( sig );                 
40006df4:	40 00 17 e5 	call  4000cd88 <_POSIX_signals_Clear_process_signals>
40006df8:	90 10 00 10 	mov  %l0, %o0                                  
         _POSIX_signals_Vectors[ sig ] = *act;                        
40006dfc:	a6 25 00 13 	sub  %l4, %l3, %l3                             
40006e00:	92 10 00 19 	mov  %i1, %o1                                  
40006e04:	90 04 80 13 	add  %l2, %l3, %o0                             
40006e08:	40 00 28 0b 	call  40010e34 <memcpy>                        
40006e0c:	94 10 20 0c 	mov  0xc, %o2                                  
      }                                                               
    _ISR_Enable( level );                                             
40006e10:	b0 10 20 00 	clr  %i0                                       
40006e14:	7f ff ed 6c 	call  400023c4 <sparc_enable_interrupts>       
40006e18:	90 10 00 11 	mov  %l1, %o0                                  
   *    + If we are now ignoring a signal that was previously pending,
   *      we clear the pending signal indicator.                      
   */                                                                 
                                                                      
  return 0;                                                           
}                                                                     
40006e1c:	81 c7 e0 08 	ret                                            
40006e20:	81 e8 00 00 	restore                                        
                                                                      

40008f6c <sigsuspend>: #include <rtems/seterr.h> int sigsuspend( const sigset_t *sigmask ) {
40008f6c:	9d e3 bf 98 	save  %sp, -104, %sp                           
  int                 status;                                         
  POSIX_API_Control  *api;                                            
                                                                      
  api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];        
                                                                      
  status = sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked ); 
40008f70:	90 10 20 01 	mov  1, %o0                                    
40008f74:	92 10 00 18 	mov  %i0, %o1                                  
40008f78:	a0 07 bf fc 	add  %fp, -4, %l0                              
40008f7c:	7f ff ff f1 	call  40008f40 <sigprocmask>                   
40008f80:	94 10 00 10 	mov  %l0, %o2                                  
                                                                      
  (void) sigfillset( &all_signals );                                  
40008f84:	a2 07 bf f8 	add  %fp, -8, %l1                              
40008f88:	7f ff ff b6 	call  40008e60 <sigfillset>                    
40008f8c:	90 10 00 11 	mov  %l1, %o0                                  
                                                                      
  status = sigtimedwait( &all_signals, NULL, NULL );                  
40008f90:	90 10 00 11 	mov  %l1, %o0                                  
40008f94:	92 10 20 00 	clr  %o1                                       
40008f98:	40 00 00 28 	call  40009038 <sigtimedwait>                  
40008f9c:	94 10 20 00 	clr  %o2                                       
                                                                      
  (void) sigprocmask( SIG_SETMASK, &saved_signals_blocked, NULL );    
40008fa0:	92 10 00 10 	mov  %l0, %o1                                  
                                                                      
  status = sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked ); 
                                                                      
  (void) sigfillset( &all_signals );                                  
                                                                      
  status = sigtimedwait( &all_signals, NULL, NULL );                  
40008fa4:	a2 10 00 08 	mov  %o0, %l1                                  
                                                                      
  (void) sigprocmask( SIG_SETMASK, &saved_signals_blocked, NULL );    
40008fa8:	94 10 20 00 	clr  %o2                                       
40008fac:	7f ff ff e5 	call  40008f40 <sigprocmask>                   
40008fb0:	90 10 20 00 	clr  %o0                                       
                                                                      
  /*                                                                  
   * sigtimedwait() returns the signal number while sigsuspend()      
   * is supposed to return -1 and EINTR when a signal is caught.      
   */                                                                 
  if ( status != -1 )                                                 
40008fb4:	80 a4 7f ff 	cmp  %l1, -1                                   
40008fb8:	02 80 00 06 	be  40008fd0 <sigsuspend+0x64>                 <== NEVER TAKEN
40008fbc:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EINTR );                    
40008fc0:	40 00 25 38 	call  400124a0 <__errno>                       
40008fc4:	01 00 00 00 	nop                                            
40008fc8:	82 10 20 04 	mov  4, %g1	! 4 <PROM_START+0x4>               
40008fcc:	c2 22 00 00 	st  %g1, [ %o0 ]                               
                                                                      
  return status;                                                      
}                                                                     
40008fd0:	81 c7 e0 08 	ret                                            
40008fd4:	91 e8 3f ff 	restore  %g0, -1, %o0                          
                                                                      

400071bc <sigtimedwait>: int sigtimedwait( const sigset_t *set, siginfo_t *info, const struct timespec *timeout ) {
400071bc:	9d e3 bf 90 	save  %sp, -112, %sp                           
  ISR_Level          level;                                           
                                                                      
  /*                                                                  
   *  Error check parameters before disabling interrupts.             
   */                                                                 
  if ( !set )                                                         
400071c0:	80 a6 20 00 	cmp  %i0, 0                                    
400071c4:	02 80 00 0e 	be  400071fc <sigtimedwait+0x40>               
400071c8:	80 a6 a0 00 	cmp  %i2, 0                                    
  /*  NOTE: This is very specifically a RELATIVE not ABSOLUTE time    
   *        in the Open Group specification.                          
   */                                                                 
                                                                      
  interval = 0;                                                       
  if ( timeout ) {                                                    
400071cc:	02 80 00 12 	be  40007214 <sigtimedwait+0x58>               
400071d0:	a8 10 20 00 	clr  %l4                                       
                                                                      
    if ( !_Timespec_Is_valid( timeout ) )                             
400071d4:	40 00 0d fd 	call  4000a9c8 <_Timespec_Is_valid>            
400071d8:	90 10 00 1a 	mov  %i2, %o0                                  
400071dc:	80 8a 20 ff 	btst  0xff, %o0                                
400071e0:	02 80 00 07 	be  400071fc <sigtimedwait+0x40>               
400071e4:	01 00 00 00 	nop                                            
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    interval = _Timespec_To_ticks( timeout );                         
400071e8:	40 00 0e 1d 	call  4000aa5c <_Timespec_To_ticks>            
400071ec:	90 10 00 1a 	mov  %i2, %o0                                  
                                                                      
    if ( !interval )                                                  
400071f0:	a8 92 20 00 	orcc  %o0, 0, %l4                              
400071f4:	12 80 00 09 	bne  40007218 <sigtimedwait+0x5c>              <== ALWAYS TAKEN
400071f8:	80 a6 60 00 	cmp  %i1, 0                                    
      rtems_set_errno_and_return_minus_one( EINVAL );                 
400071fc:	40 00 25 a9 	call  400108a0 <__errno>                       
40007200:	b0 10 3f ff 	mov  -1, %i0                                   
40007204:	82 10 20 16 	mov  0x16, %g1                                 
40007208:	c2 22 00 00 	st  %g1, [ %o0 ]                               
4000720c:	81 c7 e0 08 	ret                                            
40007210:	81 e8 00 00 	restore                                        
                                                                      
  /*                                                                  
   *  Initialize local variables.                                     
   */                                                                 
                                                                      
  the_info = ( info ) ? info : &signal_information;                   
40007214:	80 a6 60 00 	cmp  %i1, 0                                    
40007218:	02 80 00 03 	be  40007224 <sigtimedwait+0x68>               
4000721c:	a0 07 bf f4 	add  %fp, -12, %l0                             
40007220:	a0 10 00 19 	mov  %i1, %l0                                  
                                                                      
  the_thread = _Thread_Executing;                                     
40007224:	23 10 00 80 	sethi  %hi(0x40020000), %l1                    
40007228:	f2 04 60 fc 	ld  [ %l1 + 0xfc ], %i1	! 400200fc <_Thread_Executing>
   *  What if they are already pending?                               
   */                                                                 
                                                                      
  /* API signals pending? */                                          
                                                                      
  _ISR_Disable( level );                                              
4000722c:	7f ff ed 33 	call  400026f8 <sparc_disable_interrupts>      
40007230:	e6 06 61 60 	ld  [ %i1 + 0x160 ], %l3                       
40007234:	a4 10 00 08 	mov  %o0, %l2                                  
  if ( *set & api->signals_pending ) {                                
40007238:	c4 06 00 00 	ld  [ %i0 ], %g2                               
4000723c:	c2 04 e0 d0 	ld  [ %l3 + 0xd0 ], %g1                        
40007240:	80 88 80 01 	btst  %g2, %g1                                 
40007244:	22 80 00 10 	be,a   40007284 <sigtimedwait+0xc8>            
40007248:	03 10 00 81 	sethi  %hi(0x40020400), %g1                    
    /* XXX real info later */                                         
    the_info->si_signo = _POSIX_signals_Get_highest( api->signals_pending );
4000724c:	7f ff ff c4 	call  4000715c <_POSIX_signals_Get_highest>    
40007250:	90 10 00 01 	mov  %g1, %o0                                  
    _POSIX_signals_Clear_signals(                                     
40007254:	94 10 00 10 	mov  %l0, %o2                                  
  /* API signals pending? */                                          
                                                                      
  _ISR_Disable( level );                                              
  if ( *set & api->signals_pending ) {                                
    /* XXX real info later */                                         
    the_info->si_signo = _POSIX_signals_Get_highest( api->signals_pending );
40007258:	92 10 00 08 	mov  %o0, %o1                                  
    _POSIX_signals_Clear_signals(                                     
4000725c:	96 10 20 00 	clr  %o3                                       
40007260:	90 10 00 13 	mov  %l3, %o0                                  
  /* API signals pending? */                                          
                                                                      
  _ISR_Disable( level );                                              
  if ( *set & api->signals_pending ) {                                
    /* XXX real info later */                                         
    the_info->si_signo = _POSIX_signals_Get_highest( api->signals_pending );
40007264:	d2 24 00 00 	st  %o1, [ %l0 ]                               
    _POSIX_signals_Clear_signals(                                     
40007268:	40 00 18 a7 	call  4000d504 <_POSIX_signals_Clear_signals>  
4000726c:	98 10 20 00 	clr  %o4                                       
      the_info->si_signo,                                             
      the_info,                                                       
      false,                                                          
      false                                                           
    );                                                                
    _ISR_Enable( level );                                             
40007270:	7f ff ed 26 	call  40002708 <sparc_enable_interrupts>       
40007274:	90 10 00 12 	mov  %l2, %o0                                  
                                                                      
    the_info->si_code = SI_USER;                                      
    the_info->si_value.sival_int = 0;                                 
40007278:	c0 24 20 08 	clr  [ %l0 + 8 ]                               
    return the_info->si_signo;                                        
4000727c:	10 80 00 13 	b  400072c8 <sigtimedwait+0x10c>               
40007280:	f0 04 00 00 	ld  [ %l0 ], %i0                               
  }                                                                   
                                                                      
  /* Process pending signals? */                                      
                                                                      
  if ( *set & _POSIX_signals_Pending ) {                              
40007284:	c2 00 63 c8 	ld  [ %g1 + 0x3c8 ], %g1                       
40007288:	80 88 80 01 	btst  %g2, %g1                                 
4000728c:	22 80 00 13 	be,a   400072d8 <sigtimedwait+0x11c>           
40007290:	03 10 00 80 	sethi  %hi(0x40020000), %g1                    
    signo = _POSIX_signals_Get_highest( _POSIX_signals_Pending );     
40007294:	7f ff ff b2 	call  4000715c <_POSIX_signals_Get_highest>    
40007298:	90 10 00 01 	mov  %g1, %o0                                  
    _POSIX_signals_Clear_signals( api, signo, the_info, true, false );
4000729c:	94 10 00 10 	mov  %l0, %o2                                  
  }                                                                   
                                                                      
  /* Process pending signals? */                                      
                                                                      
  if ( *set & _POSIX_signals_Pending ) {                              
    signo = _POSIX_signals_Get_highest( _POSIX_signals_Pending );     
400072a0:	b0 10 00 08 	mov  %o0, %i0                                  
    _POSIX_signals_Clear_signals( api, signo, the_info, true, false );
400072a4:	96 10 20 01 	mov  1, %o3                                    
400072a8:	90 10 00 13 	mov  %l3, %o0                                  
400072ac:	92 10 00 18 	mov  %i0, %o1                                  
400072b0:	40 00 18 95 	call  4000d504 <_POSIX_signals_Clear_signals>  
400072b4:	98 10 20 00 	clr  %o4                                       
    _ISR_Enable( level );                                             
400072b8:	7f ff ed 14 	call  40002708 <sparc_enable_interrupts>       
400072bc:	90 10 00 12 	mov  %l2, %o0                                  
                                                                      
    the_info->si_signo = signo;                                       
    the_info->si_code = SI_USER;                                      
    the_info->si_value.sival_int = 0;                                 
400072c0:	c0 24 20 08 	clr  [ %l0 + 8 ]                               
  if ( *set & _POSIX_signals_Pending ) {                              
    signo = _POSIX_signals_Get_highest( _POSIX_signals_Pending );     
    _POSIX_signals_Clear_signals( api, signo, the_info, true, false );
    _ISR_Enable( level );                                             
                                                                      
    the_info->si_signo = signo;                                       
400072c4:	f0 24 00 00 	st  %i0, [ %l0 ]                               
    the_info->si_code = SI_USER;                                      
400072c8:	82 10 20 01 	mov  1, %g1                                    
400072cc:	c2 24 20 04 	st  %g1, [ %l0 + 4 ]                           
    the_info->si_value.sival_int = 0;                                 
    return signo;                                                     
400072d0:	81 c7 e0 08 	ret                                            
400072d4:	81 e8 00 00 	restore                                        
400072d8:	c4 00 60 40 	ld  [ %g1 + 0x40 ], %g2                        
400072dc:	84 00 a0 01 	inc  %g2                                       
400072e0:	c4 20 60 40 	st  %g2, [ %g1 + 0x40 ]                        
  }                                                                   
                                                                      
  the_info->si_signo = -1;                                            
400072e4:	82 10 3f ff 	mov  -1, %g1                                   
400072e8:	c2 24 00 00 	st  %g1, [ %l0 ]                               
                                                                      
  _Thread_Disable_dispatch();                                         
    the_thread->Wait.queue           = &_POSIX_signals_Wait_queue;    
    the_thread->Wait.return_code     = EINTR;                         
400072ec:	82 10 20 04 	mov  4, %g1                                    
400072f0:	c2 26 60 34 	st  %g1, [ %i1 + 0x34 ]                        
    the_thread->Wait.option          = *set;                          
400072f4:	c2 06 00 00 	ld  [ %i0 ], %g1                               
    the_thread->Wait.return_argument = the_info;                      
400072f8:	e0 26 60 28 	st  %l0, [ %i1 + 0x28 ]                        
  the_info->si_signo = -1;                                            
                                                                      
  _Thread_Disable_dispatch();                                         
    the_thread->Wait.queue           = &_POSIX_signals_Wait_queue;    
    the_thread->Wait.return_code     = EINTR;                         
    the_thread->Wait.option          = *set;                          
400072fc:	c2 26 60 30 	st  %g1, [ %i1 + 0x30 ]                        
  }                                                                   
                                                                      
  the_info->si_signo = -1;                                            
                                                                      
  _Thread_Disable_dispatch();                                         
    the_thread->Wait.queue           = &_POSIX_signals_Wait_queue;    
40007300:	25 10 00 81 	sethi  %hi(0x40020400), %l2                    
                                                                      
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;
40007304:	82 10 20 01 	mov  1, %g1                                    
40007308:	a4 14 a3 60 	or  %l2, 0x360, %l2                            
4000730c:	e4 26 60 44 	st  %l2, [ %i1 + 0x44 ]                        
40007310:	c2 24 a0 30 	st  %g1, [ %l2 + 0x30 ]                        
    the_thread->Wait.return_code     = EINTR;                         
    the_thread->Wait.option          = *set;                          
    the_thread->Wait.return_argument = the_info;                      
    _Thread_queue_Enter_critical_section( &_POSIX_signals_Wait_queue );
    _ISR_Enable( level );                                             
40007314:	7f ff ec fd 	call  40002708 <sparc_enable_interrupts>       
40007318:	01 00 00 00 	nop                                            
    _Thread_queue_Enqueue( &_POSIX_signals_Wait_queue, interval );    
4000731c:	90 10 00 12 	mov  %l2, %o0                                  
40007320:	92 10 00 14 	mov  %l4, %o1                                  
40007324:	15 10 00 29 	sethi  %hi(0x4000a400), %o2                    
40007328:	40 00 0b 67 	call  4000a0c4 <_Thread_queue_Enqueue_with_handler>
4000732c:	94 12 a0 24 	or  %o2, 0x24, %o2	! 4000a424 <_Thread_queue_Timeout>
  _Thread_Enable_dispatch();                                          
40007330:	40 00 0a 12 	call  40009b78 <_Thread_Enable_dispatch>       
40007334:	01 00 00 00 	nop                                            
  /*                                                                  
   * When the thread is set free by a signal, it is need to eliminate 
   * the signal.                                                      
   */                                                                 
                                                                      
  _POSIX_signals_Clear_signals( api, the_info->si_signo, the_info, false, false );
40007338:	d2 04 00 00 	ld  [ %l0 ], %o1                               
4000733c:	94 10 00 10 	mov  %l0, %o2                                  
40007340:	96 10 20 00 	clr  %o3                                       
40007344:	98 10 20 00 	clr  %o4                                       
40007348:	40 00 18 6f 	call  4000d504 <_POSIX_signals_Clear_signals>  
4000734c:	90 10 00 13 	mov  %l3, %o0                                  
  errno = _Thread_Executing->Wait.return_code;                        
40007350:	40 00 25 54 	call  400108a0 <__errno>                       
40007354:	01 00 00 00 	nop                                            
40007358:	c2 04 60 fc 	ld  [ %l1 + 0xfc ], %g1                        
4000735c:	c2 00 60 34 	ld  [ %g1 + 0x34 ], %g1                        
40007360:	c2 22 00 00 	st  %g1, [ %o0 ]                               
  return the_info->si_signo;                                          
40007364:	f0 04 00 00 	ld  [ %l0 ], %i0                               
}                                                                     
40007368:	81 c7 e0 08 	ret                                            
4000736c:	81 e8 00 00 	restore                                        
                                                                      

40009200 <sigwait>: int sigwait( const sigset_t *set, int *sig ) {
40009200:	9d e3 bf a0 	save  %sp, -96, %sp                            
  int status;                                                         
                                                                      
  status = sigtimedwait( set, NULL, NULL );                           
40009204:	92 10 20 00 	clr  %o1                                       
40009208:	90 10 00 18 	mov  %i0, %o0                                  
4000920c:	7f ff ff 8b 	call  40009038 <sigtimedwait>                  
40009210:	94 10 20 00 	clr  %o2                                       
                                                                      
  if ( status != -1 ) {                                               
40009214:	80 a2 3f ff 	cmp  %o0, -1                                   
40009218:	02 80 00 07 	be  40009234 <sigwait+0x34>                    
4000921c:	80 a6 60 00 	cmp  %i1, 0                                    
    if ( sig )                                                        
40009220:	02 80 00 03 	be  4000922c <sigwait+0x2c>                    <== NEVER TAKEN
40009224:	b0 10 20 00 	clr  %i0                                       
      *sig = status;                                                  
40009228:	d0 26 40 00 	st  %o0, [ %i1 ]                               
4000922c:	81 c7 e0 08 	ret                                            
40009230:	81 e8 00 00 	restore                                        
    return 0;                                                         
  }                                                                   
                                                                      
  return errno;                                                       
40009234:	40 00 24 9b 	call  400124a0 <__errno>                       
40009238:	01 00 00 00 	nop                                            
4000923c:	f0 02 00 00 	ld  [ %o0 ], %i0                               
}                                                                     
40009240:	81 c7 e0 08 	ret                                            
40009244:	81 e8 00 00 	restore                                        
                                                                      

40004a28 <siproc>: /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) {
40004a28:	9d e3 bf a0 	save  %sp, -96, %sp                            <== NOT EXECUTED
	int i;                                                               
                                                                      
	/*                                                                   
	 * Obtain output semaphore if character will be echoed               
	 */                                                                  
	if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
40004a2c:	c2 06 60 3c 	ld  [ %i1 + 0x3c ], %g1                        <== NOT EXECUTED
40004a30:	80 88 6e 78 	btst  0xe78, %g1                               <== NOT EXECUTED
40004a34:	02 80 00 0e 	be  40004a6c <siproc+0x44>                     <== NOT EXECUTED
40004a38:	b0 0e 20 ff 	and  %i0, 0xff, %i0                            <== NOT EXECUTED
		rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);   
40004a3c:	d0 06 60 18 	ld  [ %i1 + 0x18 ], %o0                        <== NOT EXECUTED
40004a40:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
40004a44:	40 00 06 aa 	call  400064ec <rtems_semaphore_obtain>        <== NOT EXECUTED
40004a48:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
		i = iproc (c, tty);                                                 
40004a4c:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
40004a50:	7f ff ff 7f 	call  4000484c <iproc>                         <== NOT EXECUTED
40004a54:	92 10 00 19 	mov  %i1, %o1                                  <== NOT EXECUTED
40004a58:	b0 10 00 08 	mov  %o0, %i0                                  <== NOT EXECUTED
		rtems_semaphore_release (tty->osem);                                
40004a5c:	40 00 06 eb 	call  40006608 <rtems_semaphore_release>       <== NOT EXECUTED
40004a60:	d0 06 60 18 	ld  [ %i1 + 0x18 ], %o0                        <== NOT EXECUTED
	}                                                                    
	else {                                                               
		i = iproc (c, tty);                                                 
	}                                                                    
	return i;                                                            
}                                                                     
40004a64:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40004a68:	81 e8 00 00 	restore                                        <== NOT EXECUTED
		rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);   
		i = iproc (c, tty);                                                 
		rtems_semaphore_release (tty->osem);                                
	}                                                                    
	else {                                                               
		i = iproc (c, tty);                                                 
40004a6c:	7f ff ff 78 	call  4000484c <iproc>                         <== NOT EXECUTED
40004a70:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

400059b8 <stat>: int _STAT_NAME( const char *path, struct stat *buf ) {
400059b8:	9d e3 bf 88 	save  %sp, -120, %sp                           
                                                                      
  /*                                                                  
   *  Check to see if we were passed a valid pointer.                 
   */                                                                 
                                                                      
  if ( !buf )                                                         
400059bc:	80 a6 60 00 	cmp  %i1, 0                                    
400059c0:	12 80 00 06 	bne  400059d8 <stat+0x20>                      
400059c4:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EFAULT );                   
400059c8:	40 00 31 75 	call  40011f9c <__errno>                       
400059cc:	b0 10 3f ff 	mov  -1, %i0	! ffffffff <LEON_REG+0x7fffffff>  
400059d0:	10 80 00 20 	b  40005a50 <stat+0x98>                        
400059d4:	82 10 20 0e 	mov  0xe, %g1                                  
                                                                      
  status = rtems_filesystem_evaluate_path( path, strlen( path ),      
400059d8:	40 00 38 59 	call  40013b3c <strlen>                        
400059dc:	90 10 00 18 	mov  %i0, %o0                                  
400059e0:	a0 07 bf ec 	add  %fp, -20, %l0                             
400059e4:	92 10 00 08 	mov  %o0, %o1                                  
400059e8:	94 10 20 00 	clr  %o2                                       
400059ec:	90 10 00 18 	mov  %i0, %o0                                  
400059f0:	96 10 00 10 	mov  %l0, %o3                                  
400059f4:	98 10 20 01 	mov  1, %o4                                    
400059f8:	7f ff f9 96 	call  40004050 <rtems_filesystem_evaluate_path>
400059fc:	b0 10 3f ff 	mov  -1, %i0                                   
                                           0, &loc, _STAT_FOLLOW_LINKS );
  if ( status != 0 )                                                  
40005a00:	80 a2 20 00 	cmp  %o0, 0                                    
40005a04:	12 80 00 14 	bne  40005a54 <stat+0x9c>                      
40005a08:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
    return -1;                                                        
                                                                      
  if ( !loc.handlers->fstat_h ){                                      
40005a0c:	c2 00 60 18 	ld  [ %g1 + 0x18 ], %g1                        
40005a10:	80 a0 60 00 	cmp  %g1, 0                                    
40005a14:	12 80 00 12 	bne  40005a5c <stat+0xa4>                      <== ALWAYS TAKEN
40005a18:	92 10 20 00 	clr  %o1                                       
    rtems_filesystem_freenode( &loc );                                
40005a1c:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          <== NOT EXECUTED
40005a20:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40005a24:	02 80 00 08 	be  40005a44 <stat+0x8c>                       <== NOT EXECUTED
40005a28:	01 00 00 00 	nop                                            <== NOT EXECUTED
40005a2c:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        <== NOT EXECUTED
40005a30:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40005a34:	02 80 00 04 	be  40005a44 <stat+0x8c>                       <== NOT EXECUTED
40005a38:	01 00 00 00 	nop                                            <== NOT EXECUTED
40005a3c:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40005a40:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
40005a44:	40 00 31 56 	call  40011f9c <__errno>                       <== NOT EXECUTED
40005a48:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
40005a4c:	82 10 20 86 	mov  0x86, %g1                                 <== NOT EXECUTED
40005a50:	c2 22 00 00 	st  %g1, [ %o0 ]                               
40005a54:	81 c7 e0 08 	ret                                            
40005a58:	81 e8 00 00 	restore                                        
  /*                                                                  
   *  Zero out the stat structure so the various support              
   *  versions of stat don't have to.                                 
   */                                                                 
                                                                      
  memset( buf, 0, sizeof(struct stat) );                              
40005a5c:	94 10 20 48 	mov  0x48, %o2                                 
40005a60:	40 00 36 37 	call  4001333c <memset>                        
40005a64:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
  status =  (*loc.handlers->fstat_h)( &loc, buf );                    
40005a68:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
40005a6c:	92 10 00 19 	mov  %i1, %o1                                  
40005a70:	c2 00 60 18 	ld  [ %g1 + 0x18 ], %g1                        
40005a74:	9f c0 40 00 	call  %g1                                      
40005a78:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
  rtems_filesystem_freenode( &loc );                                  
40005a7c:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
40005a80:	80 a0 60 00 	cmp  %g1, 0                                    
40005a84:	02 bf ff f4 	be  40005a54 <stat+0x9c>                       <== NEVER TAKEN
40005a88:	b0 10 00 08 	mov  %o0, %i0                                  
40005a8c:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
40005a90:	80 a0 60 00 	cmp  %g1, 0                                    
40005a94:	02 80 00 04 	be  40005aa4 <stat+0xec>                       <== NEVER TAKEN
40005a98:	01 00 00 00 	nop                                            
40005a9c:	9f c0 40 00 	call  %g1                                      
40005aa0:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
  return status;                                                      
}                                                                     
40005aa4:	81 c7 e0 08 	ret                                            
40005aa8:	81 e8 00 00 	restore                                        
                                                                      

4000d69c <symlink>: int symlink( const char *actualpath, const char *sympath ) {
4000d69c:	9d e3 bf 88 	save  %sp, -120, %sp                           
  rtems_filesystem_location_info_t    loc;                            
  int                                 i;                              
  const char                         *name_start;                     
  int                                 result;                         
                                                                      
  rtems_filesystem_get_start_loc( sympath, &i, &loc );                
4000d6a0:	c2 4e 40 00 	ldsb  [ %i1 ], %g1                             
4000d6a4:	80 a0 60 5c 	cmp  %g1, 0x5c                                 
4000d6a8:	02 80 00 08 	be  4000d6c8 <symlink+0x2c>                    <== NEVER TAKEN
4000d6ac:	a0 10 00 18 	mov  %i0, %l0                                  
4000d6b0:	80 a0 60 2f 	cmp  %g1, 0x2f                                 
4000d6b4:	22 80 00 06 	be,a   4000d6cc <symlink+0x30>                 
4000d6b8:	03 10 00 9a 	sethi  %hi(0x40026800), %g1                    
4000d6bc:	80 a0 60 00 	cmp  %g1, 0                                    
4000d6c0:	12 80 00 0a 	bne  4000d6e8 <symlink+0x4c>                   <== ALWAYS TAKEN
4000d6c4:	03 10 00 9a 	sethi  %hi(0x40026800), %g1                    
4000d6c8:	03 10 00 9a 	sethi  %hi(0x40026800), %g1                    <== NOT EXECUTED
4000d6cc:	d2 00 61 90 	ld  [ %g1 + 0x190 ], %o1	! 40026990 <rtems_current_user_env>
4000d6d0:	90 07 bf e8 	add  %fp, -24, %o0                             
4000d6d4:	92 02 60 18 	add  %o1, 0x18, %o1                            
4000d6d8:	40 00 15 ad 	call  40012d8c <memcpy>                        
4000d6dc:	94 10 20 14 	mov  0x14, %o2                                 
4000d6e0:	10 80 00 08 	b  4000d700 <symlink+0x64>                     
4000d6e4:	90 10 20 01 	mov  1, %o0                                    
4000d6e8:	d2 00 61 90 	ld  [ %g1 + 0x190 ], %o1                       
4000d6ec:	90 07 bf e8 	add  %fp, -24, %o0                             
4000d6f0:	92 02 60 04 	add  %o1, 4, %o1                               
4000d6f4:	40 00 15 a6 	call  40012d8c <memcpy>                        
4000d6f8:	94 10 20 14 	mov  0x14, %o2                                 
4000d6fc:	90 10 20 00 	clr  %o0                                       
                                                                      
  if ( !loc.ops->evalformake_h ) {                                    
4000d700:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
4000d704:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
4000d708:	80 a0 60 00 	cmp  %g1, 0                                    
4000d70c:	02 80 00 14 	be  4000d75c <symlink+0xc0>                    <== NEVER TAKEN
4000d710:	90 06 40 08 	add  %i1, %o0, %o0                             
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
  }                                                                   
                                                                      
  result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start );
4000d714:	94 07 bf fc 	add  %fp, -4, %o2                              
4000d718:	b2 07 bf e8 	add  %fp, -24, %i1                             
  if ( result != 0 )                                                  
4000d71c:	b0 10 3f ff 	mov  -1, %i0                                   
                                                                      
  if ( !loc.ops->evalformake_h ) {                                    
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
  }                                                                   
                                                                      
  result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start );
4000d720:	9f c0 40 00 	call  %g1                                      
4000d724:	92 10 00 19 	mov  %i1, %o1                                  
  if ( result != 0 )                                                  
4000d728:	80 a2 20 00 	cmp  %o0, 0                                    
4000d72c:	12 80 00 10 	bne  4000d76c <symlink+0xd0>                   
4000d730:	c4 07 bf f4 	ld  [ %fp + -12 ], %g2                         
    return -1;                                                        
                                                                      
  if ( !loc.ops->symlink_h ) {                                        
4000d734:	c2 00 a0 38 	ld  [ %g2 + 0x38 ], %g1                        
4000d738:	80 a0 60 00 	cmp  %g1, 0                                    
4000d73c:	12 80 00 0e 	bne  4000d774 <symlink+0xd8>                   <== ALWAYS TAKEN
4000d740:	d4 07 bf fc 	ld  [ %fp + -4 ], %o2                          
    rtems_filesystem_freenode( &loc );                                
4000d744:	c2 00 a0 1c 	ld  [ %g2 + 0x1c ], %g1                        <== NOT EXECUTED
4000d748:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000d74c:	02 80 00 04 	be  4000d75c <symlink+0xc0>                    <== NOT EXECUTED
4000d750:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000d754:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
4000d758:	90 10 00 19 	mov  %i1, %o0                                  <== NOT EXECUTED
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
4000d75c:	40 00 10 e9 	call  40011b00 <__errno>                       <== NOT EXECUTED
4000d760:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
4000d764:	82 10 20 86 	mov  0x86, %g1                                 <== NOT EXECUTED
4000d768:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
4000d76c:	81 c7 e0 08 	ret                                            
4000d770:	81 e8 00 00 	restore                                        
  }                                                                   
                                                                      
  result = (*loc.ops->symlink_h)( &loc, actualpath, name_start);      
4000d774:	92 10 00 10 	mov  %l0, %o1                                  
4000d778:	9f c0 40 00 	call  %g1                                      
4000d77c:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
  rtems_filesystem_freenode( &loc );                                  
4000d780:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
4000d784:	80 a0 60 00 	cmp  %g1, 0                                    
4000d788:	02 bf ff f9 	be  4000d76c <symlink+0xd0>                    <== NEVER TAKEN
4000d78c:	b0 10 00 08 	mov  %o0, %i0                                  
4000d790:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
4000d794:	80 a0 60 00 	cmp  %g1, 0                                    
4000d798:	02 80 00 04 	be  4000d7a8 <symlink+0x10c>                   <== NEVER TAKEN
4000d79c:	01 00 00 00 	nop                                            
4000d7a0:	9f c0 40 00 	call  %g1                                      
4000d7a4:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
  return result;                                                      
}                                                                     
4000d7a8:	81 c7 e0 08 	ret                                            
4000d7ac:	81 e8 00 00 	restore                                        
                                                                      

40005ac4 <sync_per_thread>: fdatasync(fn); } /* iterate over all FILE *'s for this thread */ static void sync_per_thread(Thread_Control *t) {
40005ac4:	9d e3 bf a0 	save  %sp, -96, %sp                            
                                                                      
   /*                                                                 
    *  The sync_wrapper() function will operate on the current thread's
    *  reent structure so we will temporarily use that.               
    */                                                                
   this_reent = t->libc_reent;                                        
40005ac8:	c4 06 21 58 	ld  [ %i0 + 0x158 ], %g2                       
   if ( this_reent ) {                                                
40005acc:	80 a0 a0 00 	cmp  %g2, 0                                    
40005ad0:	02 80 00 0b 	be  40005afc <sync_per_thread+0x38>            <== NEVER TAKEN
40005ad4:	21 10 00 86 	sethi  %hi(0x40021800), %l0                    
     current_reent = _Thread_Executing->libc_reent;                   
40005ad8:	c2 04 22 ac 	ld  [ %l0 + 0x2ac ], %g1	! 40021aac <_Thread_Executing>
     _Thread_Executing->libc_reent = this_reent;                      
     _fwalk (t->libc_reent, sync_wrapper);                            
40005adc:	13 10 00 16 	sethi  %hi(0x40005800), %o1                    
    *  The sync_wrapper() function will operate on the current thread's
    *  reent structure so we will temporarily use that.               
    */                                                                
   this_reent = t->libc_reent;                                        
   if ( this_reent ) {                                                
     current_reent = _Thread_Executing->libc_reent;                   
40005ae0:	e2 00 61 58 	ld  [ %g1 + 0x158 ], %l1                       
     _Thread_Executing->libc_reent = this_reent;                      
40005ae4:	c4 20 61 58 	st  %g2, [ %g1 + 0x158 ]                       
     _fwalk (t->libc_reent, sync_wrapper);                            
40005ae8:	d0 06 21 58 	ld  [ %i0 + 0x158 ], %o0                       
40005aec:	40 00 35 1d 	call  40012f60 <_fwalk>                        
40005af0:	92 12 63 2c 	or  %o1, 0x32c, %o1                            
     _Thread_Executing->libc_reent = current_reent;                   
40005af4:	c2 04 22 ac 	ld  [ %l0 + 0x2ac ], %g1                       
40005af8:	e2 20 61 58 	st  %l1, [ %g1 + 0x158 ]                       
40005afc:	81 c7 e0 08 	ret                                            
40005b00:	81 e8 00 00 	restore                                        
                                                                      

40006064 <sysconf>: */ long sysconf( int name ) {
40006064:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if ( name == _SC_CLK_TCK )                                          
40006068:	80 a6 20 02 	cmp  %i0, 2                                    
4000606c:	12 80 00 09 	bne  40006090 <sysconf+0x2c>                   
40006070:	80 a6 20 04 	cmp  %i0, 4                                    
    return (TOD_MICROSECONDS_PER_SECOND /                             
40006074:	03 10 00 78 	sethi  %hi(0x4001e000), %g1                    
40006078:	d2 00 62 08 	ld  [ %g1 + 0x208 ], %o1	! 4001e208 <Configuration+0xc>
4000607c:	11 00 03 d0 	sethi  %hi(0xf4000), %o0                       
40006080:	40 00 4d 65 	call  40019614 <.udiv>                         
40006084:	90 12 22 40 	or  %o0, 0x240, %o0	! f4240 <PROM_START+0xf4240>
40006088:	81 c7 e0 08 	ret                                            
4000608c:	91 e8 00 08 	restore  %g0, %o0, %o0                         
      rtems_configuration_get_microseconds_per_tick());               
                                                                      
  if ( name == _SC_OPEN_MAX )                                         
40006090:	12 80 00 05 	bne  400060a4 <sysconf+0x40>                   
40006094:	80 a6 20 33 	cmp  %i0, 0x33                                 
    return rtems_libio_number_iops;                                   
40006098:	03 10 00 78 	sethi  %hi(0x4001e000), %g1                    
4000609c:	10 80 00 0f 	b  400060d8 <sysconf+0x74>                     
400060a0:	d0 00 61 24 	ld  [ %g1 + 0x124 ], %o0	! 4001e124 <rtems_libio_number_iops>
                                                                      
  if ( name == _SC_GETPW_R_SIZE_MAX )                                 
400060a4:	02 80 00 0d 	be  400060d8 <sysconf+0x74>                    
400060a8:	90 10 24 00 	mov  0x400, %o0                                
    return 1024;                                                      
                                                                      
  if ( name == _SC_PAGESIZE )                                         
400060ac:	80 a6 20 08 	cmp  %i0, 8                                    
400060b0:	02 80 00 0a 	be  400060d8 <sysconf+0x74>                    
400060b4:	90 02 2c 00 	add  %o0, 0xc00, %o0                           
    return PAGE_SIZE;                                                 
                                                                      
#if defined(__sparc__)                                                
  if ( name == 515 ) /* Solaris _SC_STACK_PROT */                     
400060b8:	80 a6 22 03 	cmp  %i0, 0x203                                
400060bc:	02 80 00 07 	be  400060d8 <sysconf+0x74>                    <== NEVER TAKEN
400060c0:	90 10 20 00 	clr  %o0                                       
   return 0;                                                          
#endif                                                                
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
400060c4:	40 00 26 6c 	call  4000fa74 <__errno>                       
400060c8:	01 00 00 00 	nop                                            
400060cc:	82 10 20 16 	mov  0x16, %g1	! 16 <PROM_START+0x16>          
400060d0:	c2 22 00 00 	st  %g1, [ %o0 ]                               
400060d4:	90 10 3f ff 	mov  -1, %o0                                   
}                                                                     
400060d8:	b0 10 00 08 	mov  %o0, %i0                                  
400060dc:	81 c7 e0 08 	ret                                            
400060e0:	81 e8 00 00 	restore                                        
                                                                      

4000519c <tcsetattr>: int tcsetattr( int fd, int opt, struct termios *tp ) {
4000519c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  switch (opt) {                                                      
400051a0:	80 a6 60 00 	cmp  %i1, 0                                    
400051a4:	02 80 00 10 	be  400051e4 <tcsetattr+0x48>                  <== ALWAYS TAKEN
400051a8:	80 a6 60 01 	cmp  %i1, 1                                    
400051ac:	02 80 00 08 	be  400051cc <tcsetattr+0x30>                  <== NOT EXECUTED
400051b0:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
  default:                                                            
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
400051b4:	40 00 2e cf 	call  40010cf0 <__errno>                       <== NOT EXECUTED
400051b8:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
400051bc:	82 10 20 86 	mov  0x86, %g1                                 <== NOT EXECUTED
400051c0:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
400051c4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
400051c8:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      
  case TCSADRAIN:                                                     
    if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0)                      
400051cc:	92 10 20 03 	mov  3, %o1                                    <== NOT EXECUTED
400051d0:	40 00 1f 44 	call  4000cee0 <ioctl>                         <== NOT EXECUTED
400051d4:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
400051d8:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
400051dc:	26 80 00 04 	bl,a   400051ec <tcsetattr+0x50>               <== NOT EXECUTED
400051e0:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
    	return -1;                                                       
    /*                                                                
     * Fall through to....                                            
     */                                                               
  case TCSANOW:                                                       
    return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );                  
400051e4:	40 00 1f 3f 	call  4000cee0 <ioctl>                         
400051e8:	93 e8 20 02 	restore  %g0, 2, %o1                           
  }                                                                   
}                                                                     
400051ec:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
400051f0:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

400063d0 <timer_create>: int timer_create( clockid_t clock_id, struct sigevent *evp, timer_t *timerid ) {
400063d0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  POSIX_Timer_Control *ptimer;                                        
                                                                      
  if ( clock_id != CLOCK_REALTIME )                                   
400063d4:	80 a6 20 01 	cmp  %i0, 1                                    
400063d8:	12 80 00 13 	bne  40006424 <timer_create+0x54>              
400063dc:	80 a6 a0 00 	cmp  %i2, 0                                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !timerid )                                                     
400063e0:	02 80 00 11 	be  40006424 <timer_create+0x54>               
400063e4:	80 a6 60 00 	cmp  %i1, 0                                    
 /*                                                                   
  *  The data of the structure evp are checked in order to verify if they
  *  are coherent.                                                    
  */                                                                  
                                                                      
  if (evp != NULL) {                                                  
400063e8:	02 80 00 13 	be  40006434 <timer_create+0x64>               
400063ec:	03 10 00 88 	sethi  %hi(0x40022000), %g1                    
    /* The structure has data */                                      
    if ( ( evp->sigev_notify != SIGEV_NONE ) &&                       
400063f0:	c2 06 40 00 	ld  [ %i1 ], %g1                               
400063f4:	82 00 7f ff 	add  %g1, -1, %g1                              
400063f8:	80 a0 60 01 	cmp  %g1, 1                                    
400063fc:	18 80 00 0a 	bgu  40006424 <timer_create+0x54>              <== NEVER TAKEN
40006400:	01 00 00 00 	nop                                            
         ( evp->sigev_notify != SIGEV_SIGNAL ) ) {                    
       /* The value of the field sigev_notify is not valid */         
       rtems_set_errno_and_return_minus_one( EINVAL );                
     }                                                                
                                                                      
     if ( !evp->sigev_signo )                                         
40006404:	c2 06 60 04 	ld  [ %i1 + 4 ], %g1                           
40006408:	80 a0 60 00 	cmp  %g1, 0                                    
4000640c:	02 80 00 06 	be  40006424 <timer_create+0x54>               <== NEVER TAKEN
40006410:	01 00 00 00 	nop                                            
       rtems_set_errno_and_return_minus_one( EINVAL );                
                                                                      
     if ( !is_valid_signo(evp->sigev_signo) )                         
40006414:	82 00 7f ff 	add  %g1, -1, %g1                              
40006418:	80 a0 60 1f 	cmp  %g1, 0x1f                                 
4000641c:	28 80 00 06 	bleu,a   40006434 <timer_create+0x64>          <== ALWAYS TAKEN
40006420:	03 10 00 88 	sethi  %hi(0x40022000), %g1                    
       rtems_set_errno_and_return_minus_one( EINVAL );                
40006424:	40 00 26 ef 	call  4000ffe0 <__errno>                       
40006428:	01 00 00 00 	nop                                            
4000642c:	10 80 00 10 	b  4000646c <timer_create+0x9c>                
40006430:	82 10 20 16 	mov  0x16, %g1	! 16 <PROM_START+0x16>          
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
40006434:	c4 00 60 70 	ld  [ %g1 + 0x70 ], %g2                        
40006438:	84 00 a0 01 	inc  %g2                                       
4000643c:	c4 20 60 70 	st  %g2, [ %g1 + 0x70 ]                        
 *  the inactive chain of free timer control blocks.                  
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE POSIX_Timer_Control *_POSIX_Timer_Allocate( void )
{                                                                     
  return (POSIX_Timer_Control *) _Objects_Allocate( &_POSIX_Timer_Information );
40006440:	11 10 00 88 	sethi  %hi(0x40022000), %o0                    
40006444:	40 00 07 c1 	call  40008348 <_Objects_Allocate>             
40006448:	90 12 23 c0 	or  %o0, 0x3c0, %o0	! 400223c0 <_POSIX_Timer_Information>
                                                                      
  /*                                                                  
   *  Allocate a timer                                                
   */                                                                 
  ptimer = _POSIX_Timer_Allocate();                                   
  if ( !ptimer ) {                                                    
4000644c:	80 a2 20 00 	cmp  %o0, 0                                    
40006450:	12 80 00 0a 	bne  40006478 <timer_create+0xa8>              
40006454:	82 10 20 02 	mov  2, %g1                                    
    _Thread_Enable_dispatch();                                        
40006458:	40 00 0b 1b 	call  400090c4 <_Thread_Enable_dispatch>       
4000645c:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EAGAIN );                   
40006460:	40 00 26 e0 	call  4000ffe0 <__errno>                       
40006464:	01 00 00 00 	nop                                            
40006468:	82 10 20 0b 	mov  0xb, %g1	! b <PROM_START+0xb>             
4000646c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
40006470:	81 c7 e0 08 	ret                                            
40006474:	91 e8 3f ff 	restore  %g0, -1, %o0                          
  }                                                                   
                                                                      
  /* The data of the created timer are stored to use them later */    
                                                                      
  ptimer->state     = POSIX_TIMER_STATE_CREATE_NEW;                   
40006478:	c2 2a 20 3c 	stb  %g1, [ %o0 + 0x3c ]                       
  ptimer->thread_id = _Thread_Executing->Object.id;                   
4000647c:	03 10 00 88 	sethi  %hi(0x40022000), %g1                    
40006480:	c2 00 61 2c 	ld  [ %g1 + 0x12c ], %g1	! 4002212c <_Thread_Executing>
                                                                      
  if ( evp != NULL ) {                                                
40006484:	80 a6 60 00 	cmp  %i1, 0                                    
  }                                                                   
                                                                      
  /* The data of the created timer are stored to use them later */    
                                                                      
  ptimer->state     = POSIX_TIMER_STATE_CREATE_NEW;                   
  ptimer->thread_id = _Thread_Executing->Object.id;                   
40006488:	c2 00 60 08 	ld  [ %g1 + 8 ], %g1                           
                                                                      
  if ( evp != NULL ) {                                                
4000648c:	02 80 00 08 	be  400064ac <timer_create+0xdc>               
40006490:	c2 22 20 38 	st  %g1, [ %o0 + 0x38 ]                        
    ptimer->inf.sigev_notify = evp->sigev_notify;                     
    ptimer->inf.sigev_signo  = evp->sigev_signo;                      
    ptimer->inf.sigev_value  = evp->sigev_value;                      
40006494:	c2 06 60 08 	ld  [ %i1 + 8 ], %g1                           
                                                                      
  ptimer->state     = POSIX_TIMER_STATE_CREATE_NEW;                   
  ptimer->thread_id = _Thread_Executing->Object.id;                   
                                                                      
  if ( evp != NULL ) {                                                
    ptimer->inf.sigev_notify = evp->sigev_notify;                     
40006498:	c6 06 40 00 	ld  [ %i1 ], %g3                               
    ptimer->inf.sigev_signo  = evp->sigev_signo;                      
4000649c:	c4 06 60 04 	ld  [ %i1 + 4 ], %g2                           
                                                                      
  ptimer->state     = POSIX_TIMER_STATE_CREATE_NEW;                   
  ptimer->thread_id = _Thread_Executing->Object.id;                   
                                                                      
  if ( evp != NULL ) {                                                
    ptimer->inf.sigev_notify = evp->sigev_notify;                     
400064a0:	c6 22 20 40 	st  %g3, [ %o0 + 0x40 ]                        
    ptimer->inf.sigev_signo  = evp->sigev_signo;                      
400064a4:	c4 22 20 44 	st  %g2, [ %o0 + 0x44 ]                        
    ptimer->inf.sigev_value  = evp->sigev_value;                      
400064a8:	c2 22 20 48 	st  %g1, [ %o0 + 0x48 ]                        
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
400064ac:	c2 12 20 0a 	lduh  [ %o0 + 0xa ], %g1                       
400064b0:	05 10 00 88 	sethi  %hi(0x40022000), %g2                    
400064b4:	c4 00 a3 dc 	ld  [ %g2 + 0x3dc ], %g2	! 400223dc <_POSIX_Timer_Information+0x1c>
400064b8:	83 28 60 02 	sll  %g1, 2, %g1                               
400064bc:	d0 20 80 01 	st  %o0, [ %g2 + %g1 ]                         
400064c0:	c2 02 20 08 	ld  [ %o0 + 8 ], %g1                           
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  /* ASSERT: information->is_string == false */                       
  the_object->name.name_u32 = name;                                   
400064c4:	c0 22 20 0c 	clr  [ %o0 + 0xc ]                             
  }                                                                   
                                                                      
  ptimer->overrun  = 0;                                               
400064c8:	c0 22 20 68 	clr  [ %o0 + 0x68 ]                            
  ptimer->timer_data.it_value.tv_sec     = 0;                         
400064cc:	c0 22 20 5c 	clr  [ %o0 + 0x5c ]                            
  ptimer->timer_data.it_value.tv_nsec    = 0;                         
400064d0:	c0 22 20 60 	clr  [ %o0 + 0x60 ]                            
  ptimer->timer_data.it_interval.tv_sec  = 0;                         
400064d4:	c0 22 20 54 	clr  [ %o0 + 0x54 ]                            
  ptimer->timer_data.it_interval.tv_nsec = 0;                         
400064d8:	c0 22 20 58 	clr  [ %o0 + 0x58 ]                            
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
  the_watchdog->id        = id;                                       
400064dc:	c0 22 20 30 	clr  [ %o0 + 0x30 ]                            
                                                                      
  _Watchdog_Initialize( &ptimer->Timer, NULL, 0, NULL );              
  _Objects_Open_u32(&_POSIX_Timer_Information, &ptimer->Object, 0);   
                                                                      
  *timerid  = ptimer->Object.id;                                      
400064e0:	c2 26 80 00 	st  %g1, [ %i2 ]                               
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
400064e4:	c0 22 20 18 	clr  [ %o0 + 0x18 ]                            
  the_watchdog->routine   = routine;                                  
400064e8:	c0 22 20 2c 	clr  [ %o0 + 0x2c ]                            
  the_watchdog->id        = id;                                       
  the_watchdog->user_data = user_data;                                
400064ec:	c0 22 20 34 	clr  [ %o0 + 0x34 ]                            
  _Thread_Enable_dispatch();                                          
400064f0:	40 00 0a f5 	call  400090c4 <_Thread_Enable_dispatch>       
400064f4:	b0 10 20 00 	clr  %i0                                       
  return 0;                                                           
}                                                                     
400064f8:	81 c7 e0 08 	ret                                            
400064fc:	81 e8 00 00 	restore                                        
                                                                      

40006500 <timer_settime>: timer_t timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue ) {
40006500:	9d e3 bf 80 	save  %sp, -128, %sp                           
  Objects_Locations    location;                                      
  bool                 activated;                                     
  uint32_t             initial_period;                                
  struct itimerspec    normalize;                                     
                                                                      
  if ( !value )                                                       
40006504:	80 a6 a0 00 	cmp  %i2, 0                                    
40006508:	02 80 00 20 	be  40006588 <timer_settime+0x88>              <== NEVER TAKEN
4000650c:	03 0e e6 b2 	sethi  %hi(0x3b9ac800), %g1                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  /* First, it verifies if the structure "value" is correct */        
  if ( ( value->it_value.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) ||   
40006510:	c4 06 a0 0c 	ld  [ %i2 + 0xc ], %g2                         
40006514:	82 10 61 ff 	or  %g1, 0x1ff, %g1                            
40006518:	80 a0 80 01 	cmp  %g2, %g1                                  
4000651c:	18 80 00 1b 	bgu  40006588 <timer_settime+0x88>             
40006520:	01 00 00 00 	nop                                            
       ( value->it_value.tv_nsec < 0 ) ||                             
       ( value->it_interval.tv_nsec >= TOD_NANOSECONDS_PER_SECOND) || 
40006524:	c4 06 a0 04 	ld  [ %i2 + 4 ], %g2                           
40006528:	80 a0 80 01 	cmp  %g2, %g1                                  
4000652c:	18 80 00 17 	bgu  40006588 <timer_settime+0x88>             <== NEVER TAKEN
40006530:	80 a6 60 00 	cmp  %i1, 0                                    
       ( value->it_interval.tv_nsec < 0 )) {                          
    /* The number of nanoseconds is not correct */                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  }                                                                   
                                                                      
  if ( flags != TIMER_ABSTIME && flags != POSIX_TIMER_RELATIVE ) {    
40006534:	02 80 00 05 	be  40006548 <timer_settime+0x48>              
40006538:	90 07 bf e4 	add  %fp, -28, %o0                             
4000653c:	80 a6 60 04 	cmp  %i1, 4                                    
40006540:	12 80 00 12 	bne  40006588 <timer_settime+0x88>             
40006544:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  }                                                                   
                                                                      
  normalize = *value;                                                 
40006548:	92 10 00 1a 	mov  %i2, %o1                                  
4000654c:	40 00 28 fb 	call  40010938 <memcpy>                        
40006550:	94 10 20 10 	mov  0x10, %o2                                 
                                                                      
  /* Convert absolute to relative time */                             
  if (flags == TIMER_ABSTIME) {                                       
40006554:	80 a6 60 04 	cmp  %i1, 4                                    
40006558:	12 80 00 16 	bne  400065b0 <timer_settime+0xb0>             
4000655c:	92 10 00 18 	mov  %i0, %o1                                  
    struct timespec now;                                              
    _TOD_Get( &now );                                                 
40006560:	a0 07 bf f4 	add  %fp, -12, %l0                             
40006564:	40 00 06 18 	call  40007dc4 <_TOD_Get>                      
40006568:	90 10 00 10 	mov  %l0, %o0                                  
    /* Check for seconds in the past */                               
    if ( _Timespec_Greater_than( &now, &normalize.it_value ) )        
4000656c:	b2 07 bf ec 	add  %fp, -20, %i1                             
40006570:	90 10 00 10 	mov  %l0, %o0                                  
40006574:	40 00 0e 68 	call  40009f14 <_Timespec_Greater_than>        
40006578:	92 10 00 19 	mov  %i1, %o1                                  
4000657c:	80 8a 20 ff 	btst  0xff, %o0                                
40006580:	02 80 00 08 	be  400065a0 <timer_settime+0xa0>              
40006584:	92 10 00 19 	mov  %i1, %o1                                  
      rtems_set_errno_and_return_minus_one( EINVAL );                 
40006588:	40 00 26 96 	call  4000ffe0 <__errno>                       
4000658c:	b0 10 3f ff 	mov  -1, %i0                                   
40006590:	82 10 20 16 	mov  0x16, %g1                                 
40006594:	c2 22 00 00 	st  %g1, [ %o0 ]                               
40006598:	81 c7 e0 08 	ret                                            
4000659c:	81 e8 00 00 	restore                                        
    _Timespec_Subtract( &now, &normalize.it_value, &normalize.it_value );
400065a0:	90 10 00 10 	mov  %l0, %o0                                  
400065a4:	40 00 0e 6d 	call  40009f58 <_Timespec_Subtract>            
400065a8:	94 10 00 19 	mov  %i1, %o2                                  
RTEMS_INLINE_ROUTINE POSIX_Timer_Control *_POSIX_Timer_Get (          
  timer_t            id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (POSIX_Timer_Control *)                                      
400065ac:	92 10 00 18 	mov  %i0, %o1                                  
400065b0:	11 10 00 88 	sethi  %hi(0x40022000), %o0                    
400065b4:	94 07 bf fc 	add  %fp, -4, %o2                              
400065b8:	40 00 08 a3 	call  40008844 <_Objects_Get>                  
400065bc:	90 12 23 c0 	or  %o0, 0x3c0, %o0                            
   * something with the structure of times of the timer: to stop, start
   * or start it again                                                
   */                                                                 
                                                                      
  ptimer = _POSIX_Timer_Get( timerid, &location );                    
  switch ( location ) {                                               
400065c0:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
400065c4:	80 a0 60 00 	cmp  %g1, 0                                    
400065c8:	12 80 00 38 	bne  400066a8 <timer_settime+0x1a8>            
400065cc:	a0 10 00 08 	mov  %o0, %l0                                  
                                                                      
    case OBJECTS_LOCAL:                                               
      /* First, it verifies if the timer must be stopped */           
      if ( normalize.it_value.tv_sec == 0 && normalize.it_value.tv_nsec == 0 ) {
400065d0:	c2 07 bf ec 	ld  [ %fp + -20 ], %g1                         
400065d4:	80 a0 60 00 	cmp  %g1, 0                                    
400065d8:	12 80 00 14 	bne  40006628 <timer_settime+0x128>            
400065dc:	c2 07 bf f0 	ld  [ %fp + -16 ], %g1                         
400065e0:	80 a0 60 00 	cmp  %g1, 0                                    
400065e4:	12 80 00 11 	bne  40006628 <timer_settime+0x128>            
400065e8:	01 00 00 00 	nop                                            
         /* Stop the timer */                                         
         (void) _Watchdog_Remove( &ptimer->Timer );                   
400065ec:	40 00 0f 99 	call  4000a450 <_Watchdog_Remove>              
400065f0:	90 02 20 10 	add  %o0, 0x10, %o0                            
         /* The old data of the timer are returned */                 
         if ( ovalue )                                                
400065f4:	80 a6 e0 00 	cmp  %i3, 0                                    
400065f8:	02 80 00 05 	be  4000660c <timer_settime+0x10c>             
400065fc:	90 10 00 1b 	mov  %i3, %o0                                  
           *ovalue = ptimer->timer_data;                              
40006600:	92 04 20 54 	add  %l0, 0x54, %o1                            
40006604:	40 00 28 cd 	call  40010938 <memcpy>                        
40006608:	94 10 20 10 	mov  0x10, %o2                                 
         /* The new data are set */                                   
         ptimer->timer_data = normalize;                              
4000660c:	92 07 bf e4 	add  %fp, -28, %o1                             
40006610:	94 10 20 10 	mov  0x10, %o2                                 
40006614:	40 00 28 c9 	call  40010938 <memcpy>                        
40006618:	90 04 20 54 	add  %l0, 0x54, %o0                            
         /* Indicates that the timer is created and stopped */        
         ptimer->state = POSIX_TIMER_STATE_CREATE_STOP;               
4000661c:	82 10 20 04 	mov  4, %g1                                    
40006620:	10 80 00 1e 	b  40006698 <timer_settime+0x198>              
40006624:	c2 2c 20 3c 	stb  %g1, [ %l0 + 0x3c ]                       
        _Thread_Enable_dispatch();                                    
        return 0;                                                     
       }                                                              
                                                                      
       /* Convert from seconds and nanoseconds to ticks */            
       ptimer->ticks  = _Timespec_To_ticks( &value->it_interval );    
40006628:	40 00 0e 60 	call  40009fa8 <_Timespec_To_ticks>            
4000662c:	90 10 00 1a 	mov  %i2, %o0                                  
40006630:	d0 24 20 64 	st  %o0, [ %l0 + 0x64 ]                        
       initial_period = _Timespec_To_ticks( &normalize.it_value );    
40006634:	40 00 0e 5d 	call  40009fa8 <_Timespec_To_ticks>            
40006638:	90 07 bf ec 	add  %fp, -20, %o0                             
                                                                      
                                                                      
       activated = _POSIX_Timer_Insert_helper(                        
4000663c:	d4 04 20 08 	ld  [ %l0 + 8 ], %o2                           
        return 0;                                                     
       }                                                              
                                                                      
       /* Convert from seconds and nanoseconds to ticks */            
       ptimer->ticks  = _Timespec_To_ticks( &value->it_interval );    
       initial_period = _Timespec_To_ticks( &normalize.it_value );    
40006640:	92 10 00 08 	mov  %o0, %o1                                  
                                                                      
                                                                      
       activated = _POSIX_Timer_Insert_helper(                        
40006644:	17 10 00 19 	sethi  %hi(0x40006400), %o3                    
40006648:	90 04 20 10 	add  %l0, 0x10, %o0                            
4000664c:	96 12 e2 c0 	or  %o3, 0x2c0, %o3                            
40006650:	40 00 19 5c 	call  4000cbc0 <_POSIX_Timer_Insert_helper>    
40006654:	98 10 00 10 	mov  %l0, %o4                                  
         initial_period,                                              
         ptimer->Object.id,                                           
         _POSIX_Timer_TSR,                                            
         ptimer                                                       
       );                                                             
       if ( !activated ) {                                            
40006658:	80 8a 20 ff 	btst  0xff, %o0                                
4000665c:	02 80 00 0f 	be  40006698 <timer_settime+0x198>             
40006660:	80 a6 e0 00 	cmp  %i3, 0                                    
                                                                      
       /*                                                             
        * The timer has been started and is running.  So we return the
        * old ones in "ovalue"                                        
        */                                                            
       if ( ovalue )                                                  
40006664:	02 80 00 05 	be  40006678 <timer_settime+0x178>             
40006668:	90 10 00 1b 	mov  %i3, %o0                                  
         *ovalue = ptimer->timer_data;                                
4000666c:	92 04 20 54 	add  %l0, 0x54, %o1                            
40006670:	40 00 28 b2 	call  40010938 <memcpy>                        
40006674:	94 10 20 10 	mov  0x10, %o2                                 
       ptimer->timer_data = normalize;                                
40006678:	92 07 bf e4 	add  %fp, -28, %o1                             
4000667c:	94 10 20 10 	mov  0x10, %o2                                 
40006680:	40 00 28 ae 	call  40010938 <memcpy>                        
40006684:	90 04 20 54 	add  %l0, 0x54, %o0                            
                                                                      
       /* Indicate that the time is running */                        
       ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;                  
40006688:	82 10 20 03 	mov  3, %g1                                    
       _TOD_Get( &ptimer->time );                                     
4000668c:	90 04 20 6c 	add  %l0, 0x6c, %o0                            
40006690:	40 00 05 cd 	call  40007dc4 <_TOD_Get>                      
40006694:	c2 2c 20 3c 	stb  %g1, [ %l0 + 0x3c ]                       
       _Thread_Enable_dispatch();                                     
40006698:	40 00 0a 8b 	call  400090c4 <_Thread_Enable_dispatch>       
4000669c:	b0 10 20 00 	clr  %i0                                       
       return 0;                                                      
400066a0:	81 c7 e0 08 	ret                                            
400066a4:	81 e8 00 00 	restore                                        
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
400066a8:	40 00 26 4e 	call  4000ffe0 <__errno>                       
400066ac:	b0 10 3f ff 	mov  -1, %i0                                   
400066b0:	82 10 20 16 	mov  0x16, %g1                                 
400066b4:	c2 22 00 00 	st  %g1, [ %o0 ]                               
}                                                                     
400066b8:	81 c7 e0 08 	ret                                            
400066bc:	81 e8 00 00 	restore                                        
                                                                      

400062d4 <ualarm>: useconds_t ualarm( useconds_t useconds, useconds_t interval ) {
400062d4:	9d e3 bf 98 	save  %sp, -104, %sp                           
                                                                      
  /*                                                                  
   *  Initialize the timer used to implement alarm().                 
   */                                                                 
                                                                      
  if ( !the_timer->routine ) {                                        
400062d8:	21 10 00 7f 	sethi  %hi(0x4001fc00), %l0                    
400062dc:	a0 14 22 dc 	or  %l0, 0x2dc, %l0	! 4001fedc <_POSIX_signals_Ualarm_timer>
400062e0:	c2 04 20 1c 	ld  [ %l0 + 0x1c ], %g1                        
400062e4:	80 a0 60 00 	cmp  %g1, 0                                    
400062e8:	12 80 00 0a 	bne  40006310 <ualarm+0x3c>                    
400062ec:	a2 10 00 18 	mov  %i0, %l1                                  
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
400062f0:	03 10 00 18 	sethi  %hi(0x40006000), %g1                    
  the_watchdog->id        = id;                                       
  the_watchdog->user_data = user_data;                                
400062f4:	c0 24 20 24 	clr  [ %l0 + 0x24 ]                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
400062f8:	82 10 63 e8 	or  %g1, 0x3e8, %g1                            
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
400062fc:	c0 24 20 08 	clr  [ %l0 + 8 ]                               
  the_watchdog->routine   = routine;                                  
  the_watchdog->id        = id;                                       
40006300:	c0 24 20 20 	clr  [ %l0 + 0x20 ]                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
40006304:	c2 24 20 1c 	st  %g1, [ %l0 + 0x1c ]                        
  the_watchdog->id        = id;                                       
  the_watchdog->user_data = user_data;                                
40006308:	10 80 00 1b 	b  40006374 <ualarm+0xa0>                      
4000630c:	b0 10 20 00 	clr  %i0                                       
    _Watchdog_Initialize( the_timer, _POSIX_signals_Ualarm_TSR, 0, NULL );
  } else {                                                            
    Watchdog_States state;                                            
                                                                      
    state = _Watchdog_Remove( the_timer );                            
40006310:	40 00 0f 2a 	call  40009fb8 <_Watchdog_Remove>              
40006314:	90 10 00 10 	mov  %l0, %o0                                  
    if ( (state == WATCHDOG_ACTIVE) || (state == WATCHDOG_REMOVE_IT) ) {
40006318:	90 02 3f fe 	add  %o0, -2, %o0                              
4000631c:	80 a2 20 01 	cmp  %o0, 1                                    
40006320:	18 80 00 15 	bgu  40006374 <ualarm+0xa0>                    <== NEVER TAKEN
40006324:	b0 10 20 00 	clr  %i0                                       
                                                                      
      ticks = the_timer->initial;                                     
      ticks -= (the_timer->stop_time - the_timer->start_time);        
      /* remaining is now in ticks */                                 
                                                                      
      _Timespec_From_ticks( ticks, &tp );                             
40006328:	c2 04 20 18 	ld  [ %l0 + 0x18 ], %g1                        
       *  boot.  Since alarm() is dealing in seconds, we must account for
       *  this.                                                       
       */                                                             
                                                                      
      ticks = the_timer->initial;                                     
      ticks -= (the_timer->stop_time - the_timer->start_time);        
4000632c:	c4 04 20 0c 	ld  [ %l0 + 0xc ], %g2                         
40006330:	d0 04 20 14 	ld  [ %l0 + 0x14 ], %o0                        
      /* remaining is now in ticks */                                 
                                                                      
      _Timespec_From_ticks( ticks, &tp );                             
40006334:	92 07 bf f8 	add  %fp, -8, %o1                              
       *  boot.  Since alarm() is dealing in seconds, we must account for
       *  this.                                                       
       */                                                             
                                                                      
      ticks = the_timer->initial;                                     
      ticks -= (the_timer->stop_time - the_timer->start_time);        
40006338:	90 02 00 02 	add  %o0, %g2, %o0                             
      /* remaining is now in ticks */                                 
                                                                      
      _Timespec_From_ticks( ticks, &tp );                             
4000633c:	40 00 0d a5 	call  400099d0 <_Timespec_From_ticks>          
40006340:	90 22 00 01 	sub  %o0, %g1, %o0                             
      remaining  = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND;           
40006344:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
      remaining += tp.tv_nsec / 1000;                                 
40006348:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          
      ticks = the_timer->initial;                                     
      ticks -= (the_timer->stop_time - the_timer->start_time);        
      /* remaining is now in ticks */                                 
                                                                      
      _Timespec_From_ticks( ticks, &tp );                             
      remaining  = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND;           
4000634c:	b1 28 60 08 	sll  %g1, 8, %i0                               
40006350:	85 28 60 03 	sll  %g1, 3, %g2                               
40006354:	84 26 00 02 	sub  %i0, %g2, %g2                             
      remaining += tp.tv_nsec / 1000;                                 
40006358:	92 10 23 e8 	mov  0x3e8, %o1                                
      ticks = the_timer->initial;                                     
      ticks -= (the_timer->stop_time - the_timer->start_time);        
      /* remaining is now in ticks */                                 
                                                                      
      _Timespec_From_ticks( ticks, &tp );                             
      remaining  = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND;           
4000635c:	b1 28 a0 06 	sll  %g2, 6, %i0                               
40006360:	b0 26 00 02 	sub  %i0, %g2, %i0                             
      remaining += tp.tv_nsec / 1000;                                 
40006364:	40 00 50 45 	call  4001a478 <.div>                          
40006368:	b0 06 00 01 	add  %i0, %g1, %i0                             
      ticks = the_timer->initial;                                     
      ticks -= (the_timer->stop_time - the_timer->start_time);        
      /* remaining is now in ticks */                                 
                                                                      
      _Timespec_From_ticks( ticks, &tp );                             
      remaining  = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND;           
4000636c:	b1 2e 20 06 	sll  %i0, 6, %i0                               
      remaining += tp.tv_nsec / 1000;                                 
40006370:	b0 02 00 18 	add  %o0, %i0, %i0                             
  /*                                                                  
   *  If useconds is non-zero, then the caller wants to schedule      
   *  the alarm repeatedly at that interval.  If the interval is      
   *  less than a single clock tick, then fudge it to a clock tick.   
   */                                                                 
  if ( useconds ) {                                                   
40006374:	80 a4 60 00 	cmp  %l1, 0                                    
40006378:	02 80 00 1a 	be  400063e0 <ualarm+0x10c>                    
4000637c:	21 00 03 d0 	sethi  %hi(0xf4000), %l0                       
    Watchdog_Interval ticks;                                          
                                                                      
    tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND;               
40006380:	90 10 00 11 	mov  %l1, %o0                                  
40006384:	40 00 50 3b 	call  4001a470 <.udiv>                         
40006388:	92 14 22 40 	or  %l0, 0x240, %o1                            
    tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000;     
4000638c:	92 14 22 40 	or  %l0, 0x240, %o1                            
   *  less than a single clock tick, then fudge it to a clock tick.   
   */                                                                 
  if ( useconds ) {                                                   
    Watchdog_Interval ticks;                                          
                                                                      
    tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND;               
40006390:	d0 27 bf f8 	st  %o0, [ %fp + -8 ]                          
    tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000;     
40006394:	40 00 50 e3 	call  4001a720 <.urem>                         
40006398:	90 10 00 11 	mov  %l1, %o0                                  
4000639c:	85 2a 20 07 	sll  %o0, 7, %g2                               
400063a0:	83 2a 20 02 	sll  %o0, 2, %g1                               
400063a4:	82 20 80 01 	sub  %g2, %g1, %g1                             
400063a8:	90 00 40 08 	add  %g1, %o0, %o0                             
400063ac:	91 2a 20 03 	sll  %o0, 3, %o0                               
    ticks = _Timespec_To_ticks( &tp );                                
400063b0:	a0 07 bf f8 	add  %fp, -8, %l0                              
   */                                                                 
  if ( useconds ) {                                                   
    Watchdog_Interval ticks;                                          
                                                                      
    tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND;               
    tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000;     
400063b4:	d0 27 bf fc 	st  %o0, [ %fp + -4 ]                          
    ticks = _Timespec_To_ticks( &tp );                                
400063b8:	40 00 0d af 	call  40009a74 <_Timespec_To_ticks>            
400063bc:	90 10 00 10 	mov  %l0, %o0                                  
    if ( ticks == 0 )                                                 
      ticks = 1;                                                      
                                                                      
    _Watchdog_Insert_ticks( the_timer, _Timespec_To_ticks( &tp ) );   
400063c0:	40 00 0d ad 	call  40009a74 <_Timespec_To_ticks>            
400063c4:	90 10 00 10 	mov  %l0, %o0                                  
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
400063c8:	13 10 00 7f 	sethi  %hi(0x4001fc00), %o1                    
400063cc:	92 12 62 dc 	or  %o1, 0x2dc, %o1	! 4001fedc <_POSIX_signals_Ualarm_timer>
400063d0:	d0 22 60 0c 	st  %o0, [ %o1 + 0xc ]                         
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
400063d4:	11 10 00 7d 	sethi  %hi(0x4001f400), %o0                    
400063d8:	40 00 0e 9b 	call  40009e44 <_Watchdog_Insert>              
400063dc:	90 12 22 ac 	or  %o0, 0x2ac, %o0	! 4001f6ac <_Watchdog_Ticks_chain>
  }                                                                   
                                                                      
  return remaining;                                                   
}                                                                     
400063e0:	81 c7 e0 08 	ret                                            
400063e4:	81 e8 00 00 	restore                                        
                                                                      

4000ebb8 <unlink>: #include <rtems/seterr.h> int unlink( const char *path ) {
4000ebb8:	9d e3 bf 78 	save  %sp, -136, %sp                           
                                                                      
  /*                                                                  
   * Get the node to be unlinked. Find the parent path first.         
   */                                                                 
                                                                      
  parentpathlen = rtems_filesystem_dirname ( path );                  
4000ebbc:	7f ff d0 d9 	call  40002f20 <rtems_filesystem_dirname>      
4000ebc0:	90 10 00 18 	mov  %i0, %o0                                  
                                                                      
  if ( parentpathlen == 0 )                                           
4000ebc4:	a6 92 20 00 	orcc  %o0, 0, %l3                              
4000ebc8:	32 80 00 18 	bne,a   4000ec28 <unlink+0x70>                 
4000ebcc:	90 10 00 18 	mov  %i0, %o0                                  
    rtems_filesystem_get_start_loc( path, &i, &parentloc );           
4000ebd0:	c2 4e 00 00 	ldsb  [ %i0 ], %g1                             
4000ebd4:	80 a0 60 5c 	cmp  %g1, 0x5c                                 
4000ebd8:	22 80 00 08 	be,a   4000ebf8 <unlink+0x40>                  <== NEVER TAKEN
4000ebdc:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    <== NOT EXECUTED
4000ebe0:	80 a0 60 2f 	cmp  %g1, 0x2f                                 
4000ebe4:	22 80 00 05 	be,a   4000ebf8 <unlink+0x40>                  
4000ebe8:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
4000ebec:	80 a0 60 00 	cmp  %g1, 0                                    
4000ebf0:	12 80 00 06 	bne  4000ec08 <unlink+0x50>                    <== ALWAYS TAKEN
4000ebf4:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
4000ebf8:	d2 00 63 18 	ld  [ %g1 + 0x318 ], %o1	! 4001cf18 <rtems_current_user_env>
4000ebfc:	90 07 bf ec 	add  %fp, -20, %o0                             
4000ec00:	10 80 00 05 	b  4000ec14 <unlink+0x5c>                      
4000ec04:	92 02 60 18 	add  %o1, 0x18, %o1                            
4000ec08:	d2 00 63 18 	ld  [ %g1 + 0x318 ], %o1                       
4000ec0c:	90 07 bf ec 	add  %fp, -20, %o0                             
4000ec10:	92 02 60 04 	add  %o1, 4, %o1                               
4000ec14:	94 10 20 14 	mov  0x14, %o2                                 
4000ec18:	40 00 04 6d 	call  4000fdcc <memcpy>                        
4000ec1c:	a2 10 20 00 	clr  %l1                                       
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
4000ec20:	10 80 00 0b 	b  4000ec4c <unlink+0x94>                      
4000ec24:	94 10 20 14 	mov  0x14, %o2                                 
  parentpathlen = rtems_filesystem_dirname ( path );                  
                                                                      
  if ( parentpathlen == 0 )                                           
    rtems_filesystem_get_start_loc( path, &i, &parentloc );           
  else {                                                              
    result = rtems_filesystem_evaluate_path( path, parentpathlen,     
4000ec28:	92 10 00 13 	mov  %l3, %o1                                  
4000ec2c:	94 10 20 02 	mov  2, %o2                                    
4000ec30:	96 07 bf ec 	add  %fp, -20, %o3                             
4000ec34:	7f ff d1 09 	call  40003058 <rtems_filesystem_evaluate_path>
4000ec38:	98 10 20 00 	clr  %o4                                       
                                             RTEMS_LIBIO_PERMS_WRITE, 
                                             &parentloc,              
                                             false );                 
    if ( result != 0 )                                                
4000ec3c:	80 a2 20 00 	cmp  %o0, 0                                    
4000ec40:	12 80 00 82 	bne  4000ee48 <unlink+0x290>                   <== NEVER TAKEN
4000ec44:	a2 10 20 01 	mov  1, %l1                                    
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
4000ec48:	94 10 20 14 	mov  0x14, %o2                                 
4000ec4c:	a0 07 bf d8 	add  %fp, -40, %l0                             
4000ec50:	a4 07 bf ec 	add  %fp, -20, %l2                             
4000ec54:	90 10 00 10 	mov  %l0, %o0                                  
4000ec58:	40 00 04 5d 	call  4000fdcc <memcpy>                        
4000ec5c:	92 10 00 12 	mov  %l2, %o1                                  
  name = path + parentpathlen;                                        
4000ec60:	b0 06 00 13 	add  %i0, %l3, %i0                             
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
4000ec64:	40 00 05 d6 	call  400103bc <strlen>                        
4000ec68:	90 10 00 18 	mov  %i0, %o0                                  
4000ec6c:	92 10 00 08 	mov  %o0, %o1                                  
4000ec70:	7f ff d0 9b 	call  40002edc <rtems_filesystem_prefix_separators>
4000ec74:	90 10 00 18 	mov  %i0, %o0                                  
4000ec78:	b0 06 00 08 	add  %i0, %o0, %i0                             
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
4000ec7c:	40 00 05 d0 	call  400103bc <strlen>                        
4000ec80:	90 10 00 18 	mov  %i0, %o0                                  
4000ec84:	94 10 20 00 	clr  %o2                                       
4000ec88:	92 10 00 08 	mov  %o0, %o1                                  
4000ec8c:	96 10 00 10 	mov  %l0, %o3                                  
4000ec90:	90 10 00 18 	mov  %i0, %o0                                  
4000ec94:	7f ff d0 b5 	call  40002f68 <rtems_filesystem_evaluate_relative_path>
4000ec98:	98 10 20 00 	clr  %o4                                       
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
4000ec9c:	80 a2 20 00 	cmp  %o0, 0                                    
4000eca0:	02 80 00 11 	be  4000ece4 <unlink+0x12c>                    
4000eca4:	c4 07 bf e4 	ld  [ %fp + -28 ], %g2                         
    if ( free_parentloc )                                             
4000eca8:	80 8c 60 ff 	btst  0xff, %l1                                
4000ecac:	02 80 00 0c 	be  4000ecdc <unlink+0x124>                    <== NEVER TAKEN
4000ecb0:	b0 10 3f ff 	mov  -1, %i0                                   
      rtems_filesystem_freenode( &parentloc );                        
4000ecb4:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
4000ecb8:	80 a0 60 00 	cmp  %g1, 0                                    
4000ecbc:	02 80 00 64 	be  4000ee4c <unlink+0x294>                    <== NEVER TAKEN
4000ecc0:	01 00 00 00 	nop                                            
4000ecc4:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
4000ecc8:	80 a0 60 00 	cmp  %g1, 0                                    
4000eccc:	02 80 00 04 	be  4000ecdc <unlink+0x124>                    <== NEVER TAKEN
4000ecd0:	90 10 00 12 	mov  %l2, %o0                                  
4000ecd4:	9f c0 40 00 	call  %g1                                      
4000ecd8:	01 00 00 00 	nop                                            
4000ecdc:	81 c7 e0 08 	ret                                            
4000ece0:	81 e8 00 00 	restore                                        
    return -1;                                                        
  }                                                                   
                                                                      
  if ( !loc.ops->node_type_h ) {                                      
4000ece4:	c2 00 a0 10 	ld  [ %g2 + 0x10 ], %g1                        
4000ece8:	80 a0 60 00 	cmp  %g1, 0                                    
4000ecec:	22 80 00 26 	be,a   4000ed84 <unlink+0x1cc>                 <== NEVER TAKEN
4000ecf0:	c2 00 a0 1c 	ld  [ %g2 + 0x1c ], %g1                        <== NOT EXECUTED
    if ( free_parentloc )                                             
      rtems_filesystem_freenode( &parentloc );                        
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
  }                                                                   
                                                                      
  if (  (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) {
4000ecf4:	9f c0 40 00 	call  %g1                                      
4000ecf8:	90 10 00 10 	mov  %l0, %o0                                  
4000ecfc:	80 a2 20 01 	cmp  %o0, 1                                    
4000ed00:	12 80 00 1c 	bne  4000ed70 <unlink+0x1b8>                   
4000ed04:	c4 07 bf e4 	ld  [ %fp + -28 ], %g2                         
    rtems_filesystem_freenode( &loc );                                
4000ed08:	80 a0 a0 00 	cmp  %g2, 0                                    
4000ed0c:	02 80 00 09 	be  4000ed30 <unlink+0x178>                    <== NEVER TAKEN
4000ed10:	80 8c 60 ff 	btst  0xff, %l1                                
4000ed14:	c2 00 a0 1c 	ld  [ %g2 + 0x1c ], %g1                        
4000ed18:	80 a0 60 00 	cmp  %g1, 0                                    
4000ed1c:	02 80 00 05 	be  4000ed30 <unlink+0x178>                    <== NEVER TAKEN
4000ed20:	80 8c 60 ff 	btst  0xff, %l1                                
4000ed24:	9f c0 40 00 	call  %g1                                      
4000ed28:	90 10 00 10 	mov  %l0, %o0                                  
    if ( free_parentloc )                                             
4000ed2c:	80 8c 60 ff 	btst  0xff, %l1                                
4000ed30:	02 80 00 0c 	be  4000ed60 <unlink+0x1a8>                    <== ALWAYS TAKEN
4000ed34:	01 00 00 00 	nop                                            
      rtems_filesystem_freenode( &parentloc );                        
4000ed38:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          <== NOT EXECUTED
4000ed3c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000ed40:	02 80 00 08 	be  4000ed60 <unlink+0x1a8>                    <== NOT EXECUTED
4000ed44:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000ed48:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        <== NOT EXECUTED
4000ed4c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000ed50:	02 80 00 04 	be  4000ed60 <unlink+0x1a8>                    <== NOT EXECUTED
4000ed54:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000ed58:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
4000ed5c:	90 07 bf ec 	add  %fp, -20, %o0                             <== NOT EXECUTED
    rtems_set_errno_and_return_minus_one( EISDIR );                   
4000ed60:	40 00 01 df 	call  4000f4dc <__errno>                       
4000ed64:	b0 10 3f ff 	mov  -1, %i0                                   
4000ed68:	10 80 00 1b 	b  4000edd4 <unlink+0x21c>                     
4000ed6c:	82 10 20 15 	mov  0x15, %g1                                 
  }                                                                   
                                                                      
  if ( !loc.ops->unlink_h ) {                                         
4000ed70:	c2 00 a0 0c 	ld  [ %g2 + 0xc ], %g1                         
4000ed74:	80 a0 60 00 	cmp  %g1, 0                                    
4000ed78:	12 80 00 1a 	bne  4000ede0 <unlink+0x228>                   <== ALWAYS TAKEN
4000ed7c:	90 10 00 12 	mov  %l2, %o0                                  
    rtems_filesystem_freenode( &loc );                                
4000ed80:	c2 00 a0 1c 	ld  [ %g2 + 0x1c ], %g1                        <== NOT EXECUTED
4000ed84:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000ed88:	02 80 00 05 	be  4000ed9c <unlink+0x1e4>                    <== NOT EXECUTED
4000ed8c:	80 8c 60 ff 	btst  0xff, %l1                                <== NOT EXECUTED
4000ed90:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
4000ed94:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
    if ( free_parentloc )                                             
4000ed98:	80 8c 60 ff 	btst  0xff, %l1                                <== NOT EXECUTED
4000ed9c:	02 80 00 0b 	be  4000edc8 <unlink+0x210>                    <== NOT EXECUTED
4000eda0:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          <== NOT EXECUTED
      rtems_filesystem_freenode( &parentloc );                        
4000eda4:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000eda8:	02 80 00 08 	be  4000edc8 <unlink+0x210>                    <== NOT EXECUTED
4000edac:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000edb0:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        <== NOT EXECUTED
4000edb4:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
4000edb8:	02 80 00 04 	be  4000edc8 <unlink+0x210>                    <== NOT EXECUTED
4000edbc:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000edc0:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
4000edc4:	90 07 bf ec 	add  %fp, -20, %o0                             <== NOT EXECUTED
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
4000edc8:	40 00 01 c5 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4000edcc:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
4000edd0:	82 10 20 86 	mov  0x86, %g1                                 <== NOT EXECUTED
4000edd4:	c2 22 00 00 	st  %g1, [ %o0 ]                               
4000edd8:	81 c7 e0 08 	ret                                            
4000eddc:	81 e8 00 00 	restore                                        
  }                                                                   
                                                                      
  result = (*loc.ops->unlink_h)( &parentloc, &loc );                  
4000ede0:	9f c0 40 00 	call  %g1                                      
4000ede4:	92 10 00 10 	mov  %l0, %o1                                  
                                                                      
  rtems_filesystem_freenode( &loc );                                  
4000ede8:	c2 07 bf e4 	ld  [ %fp + -28 ], %g1                         
4000edec:	80 a0 60 00 	cmp  %g1, 0                                    
4000edf0:	02 80 00 08 	be  4000ee10 <unlink+0x258>                    <== NEVER TAKEN
4000edf4:	b0 10 00 08 	mov  %o0, %i0                                  
4000edf8:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
4000edfc:	80 a0 60 00 	cmp  %g1, 0                                    
4000ee00:	02 80 00 05 	be  4000ee14 <unlink+0x25c>                    <== NEVER TAKEN
4000ee04:	80 8c 60 ff 	btst  0xff, %l1                                
4000ee08:	9f c0 40 00 	call  %g1                                      
4000ee0c:	90 10 00 10 	mov  %l0, %o0                                  
  if ( free_parentloc )                                               
4000ee10:	80 8c 60 ff 	btst  0xff, %l1                                
4000ee14:	02 bf ff b2 	be  4000ecdc <unlink+0x124>                    
4000ee18:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
    rtems_filesystem_freenode( &parentloc );                          
4000ee1c:	80 a0 60 00 	cmp  %g1, 0                                    
4000ee20:	02 80 00 0b 	be  4000ee4c <unlink+0x294>                    <== NEVER TAKEN
4000ee24:	01 00 00 00 	nop                                            
4000ee28:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
4000ee2c:	80 a0 60 00 	cmp  %g1, 0                                    
4000ee30:	02 80 00 07 	be  4000ee4c <unlink+0x294>                    <== NEVER TAKEN
4000ee34:	01 00 00 00 	nop                                            
4000ee38:	9f c0 40 00 	call  %g1                                      
4000ee3c:	90 07 bf ec 	add  %fp, -20, %o0                             
4000ee40:	81 c7 e0 08 	ret                                            
4000ee44:	81 e8 00 00 	restore                                        
4000ee48:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
                                                                      
  return result;                                                      
}                                                                     
4000ee4c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
4000ee50:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

40009ff8 <unmount>: */ int unmount( const char *path ) {
40009ff8:	9d e3 bf 88 	save  %sp, -120, %sp                           
   *    The root node of the mounted filesytem.                       
   *    The node for the directory that the fileystem is mounted on.  
   *    The mount entry that is being refered to.                     
   */                                                                 
                                                                      
  if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) )
40009ffc:	40 00 36 ea 	call  40017ba4 <strlen>                        
4000a000:	90 10 00 18 	mov  %i0, %o0                                  
4000a004:	a0 07 bf ec 	add  %fp, -20, %l0                             
4000a008:	92 10 00 08 	mov  %o0, %o1                                  
4000a00c:	94 10 20 00 	clr  %o2                                       
4000a010:	90 10 00 18 	mov  %i0, %o0                                  
4000a014:	96 10 00 10 	mov  %l0, %o3                                  
4000a018:	7f ff f0 a9 	call  400062bc <rtems_filesystem_evaluate_path>
4000a01c:	98 10 20 01 	mov  1, %o4                                    
4000a020:	80 a2 20 00 	cmp  %o0, 0                                    
4000a024:	12 80 00 6a 	bne  4000a1cc <unmount+0x1d4>                  
4000a028:	e2 07 bf fc 	ld  [ %fp + -4 ], %l1                          
    return -1;                                                        
                                                                      
  mt_entry     = loc.mt_entry;                                        
  fs_mount_loc = &mt_entry->mt_point_node;                            
  fs_root_loc  = &mt_entry->mt_fs_root;                               
4000a02c:	c4 07 bf ec 	ld  [ %fp + -20 ], %g2                         
4000a030:	c6 04 60 1c 	ld  [ %l1 + 0x1c ], %g3                        
4000a034:	80 a0 c0 02 	cmp  %g3, %g2                                  
4000a038:	02 80 00 0f 	be  4000a074 <unmount+0x7c>                    
4000a03c:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
  /*                                                                  
   * Verify this is the root node for the file system to be unmounted.
   */                                                                 
                                                                      
  if ( !rtems_filesystem_nodes_equal( fs_root_loc, &loc) ){           
    rtems_filesystem_freenode( &loc );                                
4000a040:	80 a0 60 00 	cmp  %g1, 0                                    
4000a044:	02 80 00 08 	be  4000a064 <unmount+0x6c>                    <== NEVER TAKEN
4000a048:	01 00 00 00 	nop                                            
4000a04c:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
4000a050:	80 a0 60 00 	cmp  %g1, 0                                    
4000a054:	02 80 00 04 	be  4000a064 <unmount+0x6c>                    <== NEVER TAKEN
4000a058:	01 00 00 00 	nop                                            
4000a05c:	9f c0 40 00 	call  %g1                                      
4000a060:	90 10 00 10 	mov  %l0, %o0                                  
    rtems_set_errno_and_return_minus_one( EACCES );                   
4000a064:	40 00 29 fd 	call  40014858 <__errno>                       
4000a068:	01 00 00 00 	nop                                            
4000a06c:	10 80 00 21 	b  4000a0f0 <unmount+0xf8>                     
4000a070:	82 10 20 0d 	mov  0xd, %g1	! d <PROM_START+0xd>             
                                                                      
  /*                                                                  
   * Free the loc node and just use the nodes from the mt_entry .     
   */                                                                 
                                                                      
  rtems_filesystem_freenode( &loc );                                  
4000a074:	80 a0 60 00 	cmp  %g1, 0                                    
4000a078:	22 80 00 09 	be,a   4000a09c <unmount+0xa4>                 <== NEVER TAKEN
4000a07c:	c2 04 60 14 	ld  [ %l1 + 0x14 ], %g1                        <== NOT EXECUTED
4000a080:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
4000a084:	80 a0 60 00 	cmp  %g1, 0                                    
4000a088:	22 80 00 05 	be,a   4000a09c <unmount+0xa4>                 <== NEVER TAKEN
4000a08c:	c2 04 60 14 	ld  [ %l1 + 0x14 ], %g1                        <== NOT EXECUTED
4000a090:	9f c0 40 00 	call  %g1                                      
4000a094:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
  if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) )
    return -1;                                                        
                                                                      
  mt_entry     = loc.mt_entry;                                        
  fs_mount_loc = &mt_entry->mt_point_node;                            
4000a098:	c2 04 60 14 	ld  [ %l1 + 0x14 ], %g1                        
4000a09c:	c2 00 60 28 	ld  [ %g1 + 0x28 ], %g1                        
4000a0a0:	80 a0 60 00 	cmp  %g1, 0                                    
4000a0a4:	02 80 00 07 	be  4000a0c0 <unmount+0xc8>                    <== NEVER TAKEN
4000a0a8:	01 00 00 00 	nop                                            
  fs_root_loc  = &mt_entry->mt_fs_root;                               
4000a0ac:	c2 04 60 28 	ld  [ %l1 + 0x28 ], %g1                        
4000a0b0:	c2 00 60 2c 	ld  [ %g1 + 0x2c ], %g1                        
4000a0b4:	80 a0 60 00 	cmp  %g1, 0                                    
4000a0b8:	32 80 00 06 	bne,a   4000a0d0 <unmount+0xd8>                <== ALWAYS TAKEN
4000a0bc:	03 10 00 a2 	sethi  %hi(0x40028800), %g1                    
                                                                      
  if ( !fs_mount_loc->ops->unmount_h )                                
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
                                                                      
  if ( !fs_root_loc->ops->fsunmount_me_h )                            
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
4000a0c0:	40 00 29 e6 	call  40014858 <__errno>                       <== NOT EXECUTED
4000a0c4:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000a0c8:	10 80 00 0a 	b  4000a0f0 <unmount+0xf8>                     <== NOT EXECUTED
4000a0cc:	82 10 20 86 	mov  0x86, %g1	! 86 <PROM_START+0x86>          <== NOT EXECUTED
   *        that made the current node thread based instead           
   *        of system based?  I thought it was but it doesn't         
   *        look like it in this version.                             
   */                                                                 
                                                                      
  if ( rtems_filesystem_current.mt_entry == mt_entry )                
4000a0d0:	c2 00 60 08 	ld  [ %g1 + 8 ], %g1                           
4000a0d4:	c2 00 60 14 	ld  [ %g1 + 0x14 ], %g1                        
4000a0d8:	80 a0 40 11 	cmp  %g1, %l1                                  
4000a0dc:	12 80 00 08 	bne  4000a0fc <unmount+0x104>                  
4000a0e0:	03 10 00 a6 	sethi  %hi(0x40029800), %g1                    
    rtems_set_errno_and_return_minus_one( EBUSY );                    
4000a0e4:	40 00 29 dd 	call  40014858 <__errno>                       
4000a0e8:	01 00 00 00 	nop                                            
4000a0ec:	82 10 20 10 	mov  0x10, %g1	! 10 <PROM_START+0x10>          
4000a0f0:	c2 22 00 00 	st  %g1, [ %o0 ]                               
4000a0f4:	81 c7 e0 08 	ret                                            
4000a0f8:	91 e8 3f ff 	restore  %g0, -1, %o0                          
4000a0fc:	05 10 00 a6 	sethi  %hi(0x40029800), %g2                    
  /*                                                                  
   * Search the mount table for any mount entries referencing this    
   * mount entry.                                                     
   */                                                                 
                                                                      
  for ( the_node = rtems_filesystem_mount_table_control.first;        
4000a100:	c2 00 61 c8 	ld  [ %g1 + 0x1c8 ], %g1                       
4000a104:	10 80 00 07 	b  4000a120 <unmount+0x128>                    
4000a108:	84 10 a1 cc 	or  %g2, 0x1cc, %g2                            
  if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) )
    return -1;                                                        
                                                                      
  mt_entry     = loc.mt_entry;                                        
  fs_mount_loc = &mt_entry->mt_point_node;                            
  fs_root_loc  = &mt_entry->mt_fs_root;                               
4000a10c:	c6 04 60 2c 	ld  [ %l1 + 0x2c ], %g3                        
4000a110:	80 a1 00 03 	cmp  %g4, %g3                                  
4000a114:	02 bf ff f4 	be  4000a0e4 <unmount+0xec>                    
4000a118:	01 00 00 00 	nop                                            
   * mount entry.                                                     
   */                                                                 
                                                                      
  for ( the_node = rtems_filesystem_mount_table_control.first;        
        !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node );
        the_node = the_node->next ) {                                 
4000a11c:	c2 00 40 00 	ld  [ %g1 ], %g1                               
4000a120:	80 a0 40 02 	cmp  %g1, %g2                                  
4000a124:	32 bf ff fa 	bne,a   4000a10c <unmount+0x114>               
4000a128:	c8 00 60 18 	ld  [ %g1 + 0x18 ], %g4                        
4000a12c:	30 80 00 2a 	b,a   4000a1d4 <unmount+0x1dc>                 
   * Allow the file system being unmounted on to do its cleanup.      
   * If it fails it will set the errno to the approprate value        
   * and the fileystem will not be modified.                          
   */                                                                 
                                                                      
  if (( fs_mount_loc->ops->unmount_h )( mt_entry ) != 0 )             
4000a130:	c2 00 60 28 	ld  [ %g1 + 0x28 ], %g1                        
4000a134:	9f c0 40 00 	call  %g1                                      
4000a138:	90 10 00 11 	mov  %l1, %o0                                  
4000a13c:	80 a2 20 00 	cmp  %o0, 0                                    
4000a140:	12 80 00 23 	bne  4000a1cc <unmount+0x1d4>                  <== NEVER TAKEN
4000a144:	01 00 00 00 	nop                                            
   *  NOTE:  Fatal error is called in a case which should never happen
   *         This was response was questionable but the best we could 
   *         come up with.                                            
   */                                                                 
                                                                      
  if ((fs_root_loc->ops->fsunmount_me_h )( mt_entry ) != 0){          
4000a148:	c2 04 60 28 	ld  [ %l1 + 0x28 ], %g1                        
4000a14c:	c2 00 60 2c 	ld  [ %g1 + 0x2c ], %g1                        
4000a150:	9f c0 40 00 	call  %g1                                      
4000a154:	90 10 00 11 	mov  %l1, %o0                                  
4000a158:	80 a2 20 00 	cmp  %o0, 0                                    
4000a15c:	02 80 00 0b 	be  4000a188 <unmount+0x190>                   <== ALWAYS TAKEN
4000a160:	01 00 00 00 	nop                                            
    if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 )             
4000a164:	c2 04 60 14 	ld  [ %l1 + 0x14 ], %g1                        <== NOT EXECUTED
4000a168:	c2 00 60 20 	ld  [ %g1 + 0x20 ], %g1                        <== NOT EXECUTED
4000a16c:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
4000a170:	90 10 00 11 	mov  %l1, %o0                                  <== NOT EXECUTED
4000a174:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
4000a178:	02 80 00 15 	be  4000a1cc <unmount+0x1d4>                   <== NOT EXECUTED
4000a17c:	01 00 00 00 	nop                                            <== NOT EXECUTED
      rtems_fatal_error_occurred( 0 );                                
4000a180:	40 00 05 04 	call  4000b590 <rtems_fatal_error_occurred>    <== NOT EXECUTED
4000a184:	90 10 20 00 	clr  %o0	! 0 <PROM_START>                      <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
4000a188:	40 00 05 e9 	call  4000b92c <_Chain_Extract>                
4000a18c:	90 10 00 11 	mov  %l1, %o0                                  
  /*                                                                  
   *  Free the memory node that was allocated in mount                
   *  Free the memory associated with the extracted mount table entry.
   */                                                                 
                                                                      
  rtems_filesystem_freenode( fs_mount_loc );                          
4000a190:	c2 04 60 14 	ld  [ %l1 + 0x14 ], %g1                        
4000a194:	80 a0 60 00 	cmp  %g1, 0                                    
4000a198:	02 80 00 09 	be  4000a1bc <unmount+0x1c4>                   <== NEVER TAKEN
4000a19c:	90 10 00 11 	mov  %l1, %o0                                  
4000a1a0:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
4000a1a4:	80 a0 60 00 	cmp  %g1, 0                                    
4000a1a8:	02 80 00 05 	be  4000a1bc <unmount+0x1c4>                   <== NEVER TAKEN
4000a1ac:	01 00 00 00 	nop                                            
4000a1b0:	9f c0 40 00 	call  %g1                                      
4000a1b4:	90 04 60 08 	add  %l1, 8, %o0                               
  free( mt_entry );                                                   
4000a1b8:	90 10 00 11 	mov  %l1, %o0                                  
4000a1bc:	7f ff f0 6a 	call  40006364 <free>                          
4000a1c0:	b0 10 20 00 	clr  %i0                                       
                                                                      
  return 0;                                                           
4000a1c4:	81 c7 e0 08 	ret                                            
4000a1c8:	81 e8 00 00 	restore                                        
}                                                                     
4000a1cc:	81 c7 e0 08 	ret                                            
4000a1d0:	91 e8 3f ff 	restore  %g0, -1, %o0                          
   *  Run the file descriptor table to determine if there are any file
   *  descriptors that are currently active and reference nodes in the
   *  file system that we are trying to unmount                       
   */                                                                 
                                                                      
  if ( rtems_libio_is_open_files_in_fs( mt_entry ) == 1 )             
4000a1d4:	7f ff f1 15 	call  40006628 <rtems_libio_is_open_files_in_fs>
4000a1d8:	90 10 00 11 	mov  %l1, %o0                                  
4000a1dc:	80 a2 20 01 	cmp  %o0, 1                                    
4000a1e0:	32 bf ff d4 	bne,a   4000a130 <unmount+0x138>               
4000a1e4:	c2 04 60 14 	ld  [ %l1 + 0x14 ], %g1                        
4000a1e8:	30 bf ff bf 	b,a   4000a0e4 <unmount+0xec>                  
                                                                      

40007914 <utime>: int utime( const char *path, const struct utimbuf *times ) {
40007914:	9d e3 bf 88 	save  %sp, -120, %sp                           
  rtems_filesystem_location_info_t   temp_loc;                        
  int                                result;                          
                                                                      
  if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &temp_loc, true ) )
40007918:	40 00 30 89 	call  40013b3c <strlen>                        
4000791c:	90 10 00 18 	mov  %i0, %o0                                  
40007920:	a0 07 bf ec 	add  %fp, -20, %l0                             
40007924:	92 10 00 08 	mov  %o0, %o1                                  
40007928:	94 10 20 00 	clr  %o2                                       
4000792c:	90 10 00 18 	mov  %i0, %o0                                  
40007930:	96 10 00 10 	mov  %l0, %o3                                  
40007934:	98 10 20 01 	mov  1, %o4                                    
40007938:	7f ff f1 c6 	call  40004050 <rtems_filesystem_evaluate_path>
4000793c:	b0 10 3f ff 	mov  -1, %i0                                   
40007940:	80 a2 20 00 	cmp  %o0, 0                                    
40007944:	12 80 00 10 	bne  40007984 <utime+0x70>                     
40007948:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          
    return -1;                                                        
                                                                      
  if ( !temp_loc.ops->utime_h ){                                      
4000794c:	c2 00 a0 30 	ld  [ %g2 + 0x30 ], %g1                        
40007950:	80 a0 60 00 	cmp  %g1, 0                                    
40007954:	32 80 00 0e 	bne,a   4000798c <utime+0x78>                  <== ALWAYS TAKEN
40007958:	d4 06 60 04 	ld  [ %i1 + 4 ], %o2                           
    rtems_filesystem_freenode( &temp_loc );                           
4000795c:	c2 00 a0 1c 	ld  [ %g2 + 0x1c ], %g1                        <== NOT EXECUTED
40007960:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
40007964:	02 80 00 04 	be  40007974 <utime+0x60>                      <== NOT EXECUTED
40007968:	01 00 00 00 	nop                                            <== NOT EXECUTED
4000796c:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
40007970:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
40007974:	40 00 29 8a 	call  40011f9c <__errno>                       <== NOT EXECUTED
40007978:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
4000797c:	82 10 20 86 	mov  0x86, %g1                                 <== NOT EXECUTED
40007980:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
40007984:	81 c7 e0 08 	ret                                            
40007988:	81 e8 00 00 	restore                                        
  }                                                                   
                                                                      
  result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime );
4000798c:	d2 06 40 00 	ld  [ %i1 ], %o1                               
40007990:	9f c0 40 00 	call  %g1                                      
40007994:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
  rtems_filesystem_freenode( &temp_loc );                             
40007998:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
4000799c:	80 a0 60 00 	cmp  %g1, 0                                    
400079a0:	02 bf ff f9 	be  40007984 <utime+0x70>                      <== NEVER TAKEN
400079a4:	b0 10 00 08 	mov  %o0, %i0                                  
400079a8:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
400079ac:	80 a0 60 00 	cmp  %g1, 0                                    
400079b0:	02 80 00 04 	be  400079c0 <utime+0xac>                      <== NEVER TAKEN
400079b4:	01 00 00 00 	nop                                            
400079b8:	9f c0 40 00 	call  %g1                                      
400079bc:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
  return result;                                                      
}                                                                     
400079c0:	81 c7 e0 08 	ret                                            
400079c4:	81 e8 00 00 	restore                                        
                                                                      

40005a80 <vprintk>: */ void vprintk( const char *fmt, va_list ap ) {
40005a80:	9d e3 bf 88 	save  %sp, -120, %sp                           
    unsigned_num = n;                                                 
  }                                                                   
  toPrint[count++] = (char) unsigned_num;                             
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
    BSP_output_char(lead);                                            
40005a84:	23 10 00 73 	sethi  %hi(0x4001cc00), %l1                    
                                                                      
  for (n = 0; n < count; n++) {                                       
    BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 
40005a88:	39 10 00 6f 	sethi  %hi(0x4001bc00), %i4                    
      unsigned i, len;                                                
      char *s, *str;                                                  
                                                                      
      str = va_arg(ap, char *);                                       
                                                                      
      if ( str == NULL ) {                                            
40005a8c:	3b 10 00 6f 	sethi  %hi(0x4001bc00), %i5                    
    unsigned_num = n;                                                 
  }                                                                   
  toPrint[count++] = (char) unsigned_num;                             
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
    BSP_output_char(lead);                                            
40005a90:	a2 14 62 fc 	or  %l1, 0x2fc, %l1                            
                                                                      
  for (n = 0; n < count; n++) {                                       
    BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 
40005a94:	b8 17 22 48 	or  %i4, 0x248, %i4                            
      unsigned i, len;                                                
      char *s, *str;                                                  
                                                                      
      str = va_arg(ap, char *);                                       
                                                                      
      if ( str == NULL ) {                                            
40005a98:	ba 17 62 40 	or  %i5, 0x240, %i5                            
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
40005a9c:	10 80 00 c4 	b  40005dac <vprintk+0x32c>                    
40005aa0:	ac 07 bf e8 	add  %fp, -24, %l6                             
    bool minus = false;                                               
    bool sign = false;                                                
    char lead = ' ';                                                  
    char c;                                                           
                                                                      
    if (*fmt != '%') {                                                
40005aa4:	32 80 00 88 	bne,a   40005cc4 <vprintk+0x244>               
40005aa8:	c2 04 40 00 	ld  [ %l1 ], %g1                               
      BSP_output_char(*fmt);                                          
      continue;                                                       
    }                                                                 
    fmt++;                                                            
40005aac:	b0 06 20 01 	inc  %i0                                       
    if (*fmt == '0' ) {                                               
40005ab0:	c2 4e 00 00 	ldsb  [ %i0 ], %g1                             
40005ab4:	80 a0 60 30 	cmp  %g1, 0x30                                 
40005ab8:	12 80 00 05 	bne  40005acc <vprintk+0x4c>                   
40005abc:	b6 10 20 20 	mov  0x20, %i3                                 
      lead = '0';                                                     
      fmt++;                                                          
40005ac0:	b0 06 20 01 	inc  %i0                                       
40005ac4:	b6 10 20 30 	mov  0x30, %i3                                 
    }                                                                 
    if (*fmt == '-' ) {                                               
40005ac8:	c2 4e 00 00 	ldsb  [ %i0 ], %g1                             
40005acc:	80 a0 60 2d 	cmp  %g1, 0x2d                                 
40005ad0:	12 80 00 04 	bne  40005ae0 <vprintk+0x60>                   
40005ad4:	a8 10 20 00 	clr  %l4                                       
      minus = true;                                                   
      fmt++;                                                          
40005ad8:	b0 06 20 01 	inc  %i0                                       
40005adc:	a8 10 20 01 	mov  1, %l4                                    
40005ae0:	10 80 00 08 	b  40005b00 <vprintk+0x80>                     
40005ae4:	a0 10 20 00 	clr  %l0                                       
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
      width *= 10;                                                    
      width += ((unsigned) *fmt - '0');                               
40005ae8:	83 38 60 18 	sra  %g1, 0x18, %g1                            
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
      width *= 10;                                                    
40005aec:	a1 2c 20 01 	sll  %l0, 1, %l0                               
      width += ((unsigned) *fmt - '0');                               
40005af0:	82 00 7f d0 	add  %g1, -48, %g1                             
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
      width *= 10;                                                    
40005af4:	a0 04 00 02 	add  %l0, %g2, %l0                             
      width += ((unsigned) *fmt - '0');                               
      fmt++;                                                          
40005af8:	b0 06 20 01 	inc  %i0                                       
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
      width *= 10;                                                    
      width += ((unsigned) *fmt - '0');                               
40005afc:	a0 00 40 10 	add  %g1, %l0, %l0                             
    }                                                                 
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
40005b00:	d0 0e 00 00 	ldub  [ %i0 ], %o0                             
      width *= 10;                                                    
40005b04:	85 2c 20 03 	sll  %l0, 3, %g2                               
    }                                                                 
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
40005b08:	82 02 3f d0 	add  %o0, -48, %g1                             
40005b0c:	82 08 60 ff 	and  %g1, 0xff, %g1                            
40005b10:	80 a0 60 09 	cmp  %g1, 9                                    
40005b14:	08 bf ff f5 	bleu  40005ae8 <vprintk+0x68>                  
40005b18:	83 2a 20 18 	sll  %o0, 0x18, %g1                            
      width *= 10;                                                    
      width += ((unsigned) *fmt - '0');                               
      fmt++;                                                          
    }                                                                 
                                                                      
    if ((c = *fmt) == 'l') {                                          
40005b1c:	83 38 60 18 	sra  %g1, 0x18, %g1                            
40005b20:	80 a0 60 6c 	cmp  %g1, 0x6c                                 
40005b24:	12 80 00 05 	bne  40005b38 <vprintk+0xb8>                   
40005b28:	83 2a 20 18 	sll  %o0, 0x18, %g1                            
      lflag = true;                                                   
      c = *++fmt;                                                     
40005b2c:	b0 06 20 01 	inc  %i0                                       
40005b30:	d0 0e 00 00 	ldub  [ %i0 ], %o0                             
    }                                                                 
    if ( c == 'c' ) {                                                 
40005b34:	83 2a 20 18 	sll  %o0, 0x18, %g1                            
40005b38:	83 38 60 18 	sra  %g1, 0x18, %g1                            
40005b3c:	80 a0 60 63 	cmp  %g1, 0x63                                 
40005b40:	12 80 00 08 	bne  40005b60 <vprintk+0xe0>                   
40005b44:	80 a0 60 73 	cmp  %g1, 0x73                                 
      /* need a cast here since va_arg() only takes fully promoted types */
      char chr = (char) va_arg(ap, int);                              
40005b48:	d0 06 40 00 	ld  [ %i1 ], %o0                               
      BSP_output_char(chr);                                           
40005b4c:	c2 04 40 00 	ld  [ %l1 ], %g1                               
40005b50:	91 2a 20 18 	sll  %o0, 0x18, %o0                            
      lflag = true;                                                   
      c = *++fmt;                                                     
    }                                                                 
    if ( c == 'c' ) {                                                 
      /* need a cast here since va_arg() only takes fully promoted types */
      char chr = (char) va_arg(ap, int);                              
40005b54:	b2 06 60 04 	add  %i1, 4, %i1                               
      BSP_output_char(chr);                                           
40005b58:	10 80 00 5b 	b  40005cc4 <vprintk+0x244>                    
40005b5c:	91 3a 20 18 	sra  %o0, 0x18, %o0                            
      continue;                                                       
    }                                                                 
    if ( c == 's' ) {                                                 
40005b60:	12 80 00 33 	bne  40005c2c <vprintk+0x1ac>                  
40005b64:	80 a0 60 4f 	cmp  %g1, 0x4f                                 
      unsigned i, len;                                                
      char *s, *str;                                                  
                                                                      
      str = va_arg(ap, char *);                                       
40005b68:	e6 06 40 00 	ld  [ %i1 ], %l3                               
                                                                      
      if ( str == NULL ) {                                            
40005b6c:	80 a4 e0 00 	cmp  %l3, 0                                    
40005b70:	12 80 00 03 	bne  40005b7c <vprintk+0xfc>                   
40005b74:	b2 06 60 04 	add  %i1, 4, %i1                               
40005b78:	a6 10 00 1d 	mov  %i5, %l3                                  
40005b7c:	a4 10 20 00 	clr  %l2                                       
        str = "";                                                     
      }                                                               
                                                                      
      /* calculate length of string */                                
      for ( len=0, s=str ; *s ; len++, s++ )                          
40005b80:	c2 4c c0 12 	ldsb  [ %l3 + %l2 ], %g1                       
40005b84:	80 a0 60 00 	cmp  %g1, 0                                    
40005b88:	32 bf ff fe 	bne,a   40005b80 <vprintk+0x100>               
40005b8c:	a4 04 a0 01 	inc  %l2                                       
        ;                                                             
                                                                      
      /* leading spaces */                                            
      if ( !minus )                                                   
40005b90:	80 8d 20 ff 	btst  0xff, %l4                                
40005b94:	02 80 00 07 	be  40005bb0 <vprintk+0x130>                   
40005b98:	aa 10 00 12 	mov  %l2, %l5                                  
        for ( i=len ; i<width ; i++ )                                 
          BSP_output_char(' ');                                       
                                                                      
      /* no width option */                                           
      if (width == 0) {                                               
40005b9c:	10 80 00 09 	b  40005bc0 <vprintk+0x140>                    
40005ba0:	80 a4 20 00 	cmp  %l0, 0                                    
      for ( len=0, s=str ; *s ; len++, s++ )                          
        ;                                                             
                                                                      
      /* leading spaces */                                            
      if ( !minus )                                                   
        for ( i=len ; i<width ; i++ )                                 
40005ba4:	aa 05 60 01 	inc  %l5                                       
          BSP_output_char(' ');                                       
40005ba8:	9f c0 40 00 	call  %g1                                      
40005bac:	90 10 20 20 	mov  0x20, %o0                                 
      for ( len=0, s=str ; *s ; len++, s++ )                          
        ;                                                             
                                                                      
      /* leading spaces */                                            
      if ( !minus )                                                   
        for ( i=len ; i<width ; i++ )                                 
40005bb0:	80 a5 40 10 	cmp  %l5, %l0                                  
40005bb4:	2a bf ff fc 	bcs,a   40005ba4 <vprintk+0x124>               
40005bb8:	c2 04 40 00 	ld  [ %l1 ], %g1                               
          BSP_output_char(' ');                                       
                                                                      
      /* no width option */                                           
      if (width == 0) {                                               
40005bbc:	80 a4 20 00 	cmp  %l0, 0                                    
40005bc0:	22 80 00 02 	be,a   40005bc8 <vprintk+0x148>                
40005bc4:	a0 10 00 12 	mov  %l2, %l0                                  
          width = len;                                                
      }                                                               
                                                                      
      /* output the string */                                         
      for ( i=0 ; i<width && *str ; str++ )                           
40005bc8:	80 a4 20 00 	cmp  %l0, 0                                    
40005bcc:	02 80 00 0c 	be  40005bfc <vprintk+0x17c>                   
40005bd0:	80 8d 20 ff 	btst  0xff, %l4                                
40005bd4:	10 80 00 06 	b  40005bec <vprintk+0x16c>                    
40005bd8:	d0 4c c0 00 	ldsb  [ %l3 ], %o0                             
        BSP_output_char(*str);                                        
40005bdc:	c2 04 40 00 	ld  [ %l1 ], %g1                               
40005be0:	9f c0 40 00 	call  %g1                                      
40005be4:	01 00 00 00 	nop                                            
      if (width == 0) {                                               
          width = len;                                                
      }                                                               
                                                                      
      /* output the string */                                         
      for ( i=0 ; i<width && *str ; str++ )                           
40005be8:	d0 4c c0 00 	ldsb  [ %l3 ], %o0                             
40005bec:	80 a2 20 00 	cmp  %o0, 0                                    
40005bf0:	12 bf ff fb 	bne  40005bdc <vprintk+0x15c>                  
40005bf4:	a6 04 e0 01 	inc  %l3                                       
        BSP_output_char(*str);                                        
                                                                      
      /* trailing spaces */                                           
      if ( minus )                                                    
40005bf8:	80 8d 20 ff 	btst  0xff, %l4                                
40005bfc:	12 80 00 08 	bne  40005c1c <vprintk+0x19c>                  
40005c00:	80 a4 80 10 	cmp  %l2, %l0                                  
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
40005c04:	10 80 00 6a 	b  40005dac <vprintk+0x32c>                    
40005c08:	b0 06 20 01 	inc  %i0                                       
      for ( i=0 ; i<width && *str ; str++ )                           
        BSP_output_char(*str);                                        
                                                                      
      /* trailing spaces */                                           
      if ( minus )                                                    
        for ( i=len ; i<width ; i++ )                                 
40005c0c:	a4 04 a0 01 	inc  %l2                                       
          BSP_output_char(' ');                                       
40005c10:	9f c0 40 00 	call  %g1                                      
40005c14:	90 10 20 20 	mov  0x20, %o0                                 
      for ( i=0 ; i<width && *str ; str++ )                           
        BSP_output_char(*str);                                        
                                                                      
      /* trailing spaces */                                           
      if ( minus )                                                    
        for ( i=len ; i<width ; i++ )                                 
40005c18:	80 a4 80 10 	cmp  %l2, %l0                                  
40005c1c:	2a bf ff fc 	bcs,a   40005c0c <vprintk+0x18c>               
40005c20:	c2 04 40 00 	ld  [ %l1 ], %g1                               
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
40005c24:	10 80 00 62 	b  40005dac <vprintk+0x32c>                    
40005c28:	b0 06 20 01 	inc  %i0                                       
                                                                      
      continue;                                                       
    }                                                                 
                                                                      
    /* must be a numeric format or something unsupported */           
    if ( c == 'o' || c == 'O' ) {                                     
40005c2c:	22 80 00 2a 	be,a   40005cd4 <vprintk+0x254>                
40005c30:	82 10 20 00 	clr  %g1                                       
40005c34:	80 a0 60 6f 	cmp  %g1, 0x6f                                 
40005c38:	22 80 00 27 	be,a   40005cd4 <vprintk+0x254>                <== NEVER TAKEN
40005c3c:	82 10 20 00 	clr  %g1                                       <== NOT EXECUTED
      base = 8; sign = false;                                         
    } else if ( c == 'i' || c == 'I' ||                               
40005c40:	80 a0 60 49 	cmp  %g1, 0x49                                 
40005c44:	22 80 00 26 	be,a   40005cdc <vprintk+0x25c>                
40005c48:	82 10 20 01 	mov  1, %g1                                    
40005c4c:	80 a0 60 69 	cmp  %g1, 0x69                                 
40005c50:	22 80 00 23 	be,a   40005cdc <vprintk+0x25c>                
40005c54:	82 10 20 01 	mov  1, %g1                                    
40005c58:	80 a0 60 44 	cmp  %g1, 0x44                                 
40005c5c:	22 80 00 20 	be,a   40005cdc <vprintk+0x25c>                
40005c60:	82 10 20 01 	mov  1, %g1                                    
40005c64:	80 a0 60 64 	cmp  %g1, 0x64                                 
40005c68:	22 80 00 1d 	be,a   40005cdc <vprintk+0x25c>                
40005c6c:	82 10 20 01 	mov  1, %g1                                    
                c == 'd' || c == 'D' ) {                              
      base = 10; sign = true;                                         
    } else if ( c == 'u' || c == 'U' ) {                              
40005c70:	80 a0 60 55 	cmp  %g1, 0x55                                 
40005c74:	22 80 00 1a 	be,a   40005cdc <vprintk+0x25c>                
40005c78:	82 10 20 00 	clr  %g1                                       
40005c7c:	80 a0 60 75 	cmp  %g1, 0x75                                 
40005c80:	32 80 00 04 	bne,a   40005c90 <vprintk+0x210>               
40005c84:	91 2a 20 18 	sll  %o0, 0x18, %o0                            
40005c88:	10 80 00 15 	b  40005cdc <vprintk+0x25c>                    
40005c8c:	82 10 20 00 	clr  %g1                                       
      base = 10; sign = false;                                        
    } else if ( c == 'x' || c == 'X' ) {                              
40005c90:	91 3a 20 18 	sra  %o0, 0x18, %o0                            
40005c94:	80 a2 20 58 	cmp  %o0, 0x58                                 
40005c98:	02 80 00 06 	be  40005cb0 <vprintk+0x230>                   
40005c9c:	82 10 20 00 	clr  %g1                                       
40005ca0:	80 a2 20 78 	cmp  %o0, 0x78                                 
40005ca4:	12 80 00 05 	bne  40005cb8 <vprintk+0x238>                  
40005ca8:	80 a2 20 70 	cmp  %o0, 0x70                                 
40005cac:	82 10 20 00 	clr  %g1                                       
40005cb0:	10 80 00 0c 	b  40005ce0 <vprintk+0x260>                    
40005cb4:	a4 10 20 10 	mov  0x10, %l2                                 
      base = 16; sign = false;                                        
    } else if ( c == 'p' ) {                                          
40005cb8:	02 80 00 0a 	be  40005ce0 <vprintk+0x260>                   
40005cbc:	a4 10 20 10 	mov  0x10, %l2                                 
      base = 16; sign = false; lflag = true;                          
    } else {                                                          
      BSP_output_char(c);                                             
40005cc0:	c2 04 40 00 	ld  [ %l1 ], %g1                               
40005cc4:	9f c0 40 00 	call  %g1                                      
40005cc8:	b0 06 20 01 	inc  %i0                                       
      continue;                                                       
40005ccc:	10 80 00 39 	b  40005db0 <vprintk+0x330>                    
40005cd0:	d0 4e 00 00 	ldsb  [ %i0 ], %o0                             
40005cd4:	10 80 00 03 	b  40005ce0 <vprintk+0x260>                    
40005cd8:	a4 10 20 08 	mov  8, %l2                                    
40005cdc:	a4 10 20 0a 	mov  0xa, %l2                                  
    }                                                                 
                                                                      
    printNum(                                                         
40005ce0:	e8 06 40 00 	ld  [ %i1 ], %l4                               
  unsigned long unsigned_num;                                         
  unsigned long n;                                                    
  unsigned count;                                                     
  char toPrint[20];                                                   
                                                                      
  if ( sign && (num <  0) ) {                                         
40005ce4:	80 88 60 ff 	btst  0xff, %g1                                
      BSP_output_char(c);                                             
      continue;                                                       
    }                                                                 
                                                                      
    printNum(                                                         
      lflag ? va_arg(ap, long) : (long) va_arg(ap, int),              
40005ce8:	b2 06 60 04 	add  %i1, 4, %i1                               
  unsigned long unsigned_num;                                         
  unsigned long n;                                                    
  unsigned count;                                                     
  char toPrint[20];                                                   
                                                                      
  if ( sign && (num <  0) ) {                                         
40005cec:	02 80 00 0d 	be  40005d20 <vprintk+0x2a0>                   
40005cf0:	b6 0e e0 30 	and  %i3, 0x30, %i3                            
40005cf4:	80 a5 20 00 	cmp  %l4, 0                                    
40005cf8:	36 80 00 12 	bge,a   40005d40 <vprintk+0x2c0>               
40005cfc:	a6 10 20 00 	clr  %l3                                       
    BSP_output_char('-');                                             
40005d00:	c2 04 40 00 	ld  [ %l1 ], %g1                               
40005d04:	9f c0 40 00 	call  %g1                                      
40005d08:	90 10 20 2d 	mov  0x2d, %o0                                 
    unsigned_num = (unsigned long) -num;                              
    if (maxwidth) maxwidth--;                                         
40005d0c:	82 1c 20 00 	xor  %l0, 0, %g1                               
  unsigned count;                                                     
  char toPrint[20];                                                   
                                                                      
  if ( sign && (num <  0) ) {                                         
    BSP_output_char('-');                                             
    unsigned_num = (unsigned long) -num;                              
40005d10:	a8 20 00 14 	neg  %l4                                       
    if (maxwidth) maxwidth--;                                         
40005d14:	80 a0 00 01 	cmp  %g0, %g1                                  
40005d18:	82 40 20 00 	addx  %g0, 0, %g1                              
40005d1c:	a0 24 00 01 	sub  %l0, %g1, %l0                             
  } else {                                                            
    unsigned_num = (unsigned long) num;                               
40005d20:	10 80 00 08 	b  40005d40 <vprintk+0x2c0>                    
40005d24:	a6 10 20 00 	clr  %l3                                       
  }                                                                   
                                                                      
  count = 0;                                                          
  while ((n = unsigned_num / base) > 0) {                             
    toPrint[count++] = (char) (unsigned_num - (n * base));            
40005d28:	40 00 4b 4b 	call  40018a54 <.umul>                         
40005d2c:	92 10 00 12 	mov  %l2, %o1                                  
40005d30:	90 25 00 08 	sub  %l4, %o0, %o0                             
40005d34:	a8 10 00 17 	mov  %l7, %l4                                  
40005d38:	d0 2d 80 13 	stb  %o0, [ %l6 + %l3 ]                        
40005d3c:	a6 10 00 15 	mov  %l5, %l3                                  
  } else {                                                            
    unsigned_num = (unsigned long) num;                               
  }                                                                   
                                                                      
  count = 0;                                                          
  while ((n = unsigned_num / base) > 0) {                             
40005d40:	90 10 00 14 	mov  %l4, %o0                                  
40005d44:	92 10 00 12 	mov  %l2, %o1                                  
40005d48:	40 00 4b 7d 	call  40018b3c <.udiv>                         
40005d4c:	aa 04 e0 01 	add  %l3, 1, %l5                               
40005d50:	ae 92 20 00 	orcc  %o0, 0, %l7                              
40005d54:	12 bf ff f5 	bne  40005d28 <vprintk+0x2a8>                  
40005d58:	82 07 80 13 	add  %fp, %l3, %g1                             
    toPrint[count++] = (char) (unsigned_num - (n * base));            
    unsigned_num = n;                                                 
  }                                                                   
  toPrint[count++] = (char) unsigned_num;                             
40005d5c:	10 80 00 05 	b  40005d70 <vprintk+0x2f0>                    
40005d60:	e8 28 7f e8 	stb  %l4, [ %g1 + -24 ]                        
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
40005d64:	a0 04 3f ff 	add  %l0, -1, %l0                              
    BSP_output_char(lead);                                            
40005d68:	9f c0 40 00 	call  %g1                                      
40005d6c:	90 10 00 1b 	mov  %i3, %o0                                  
    toPrint[count++] = (char) (unsigned_num - (n * base));            
    unsigned_num = n;                                                 
  }                                                                   
  toPrint[count++] = (char) unsigned_num;                             
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
40005d70:	80 a4 00 15 	cmp  %l0, %l5                                  
40005d74:	38 bf ff fc 	bgu,a   40005d64 <vprintk+0x2e4>               
40005d78:	c2 04 40 00 	ld  [ %l1 ], %g1                               
40005d7c:	a6 05 80 13 	add  %l6, %l3, %l3                             
40005d80:	10 80 00 07 	b  40005d9c <vprintk+0x31c>                    
40005d84:	a0 10 20 00 	clr  %l0                                       
    BSP_output_char(lead);                                            
                                                                      
  for (n = 0; n < count; n++) {                                       
    BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 
40005d88:	c2 04 40 00 	ld  [ %l1 ], %g1                               
40005d8c:	d0 4f 00 02 	ldsb  [ %i4 + %g2 ], %o0                       
40005d90:	9f c0 40 00 	call  %g1                                      
40005d94:	a0 04 20 01 	inc  %l0                                       
  toPrint[count++] = (char) unsigned_num;                             
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
    BSP_output_char(lead);                                            
                                                                      
  for (n = 0; n < count; n++) {                                       
40005d98:	a6 04 ff ff 	add  %l3, -1, %l3                              
40005d9c:	80 a4 00 15 	cmp  %l0, %l5                                  
40005da0:	2a bf ff fa 	bcs,a   40005d88 <vprintk+0x308>               
40005da4:	c4 4c c0 00 	ldsb  [ %l3 ], %g2                             
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
40005da8:	b0 06 20 01 	inc  %i0                                       
40005dac:	d0 4e 00 00 	ldsb  [ %i0 ], %o0                             
40005db0:	80 a2 20 00 	cmp  %o0, 0                                    
40005db4:	12 bf ff 3c 	bne  40005aa4 <vprintk+0x24>                   
40005db8:	80 a2 20 25 	cmp  %o0, 0x25                                 
      sign,                                                           
      width,                                                          
      lead                                                            
    );                                                                
  }                                                                   
}                                                                     
40005dbc:	81 c7 e0 08 	ret                                            
40005dc0:	81 e8 00 00 	restore                                        
                                                                      

4001b378 <write>: ssize_t write( int fd, const void *buffer, size_t count ) {
4001b378:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ssize_t  rc;                                                        
  rtems_libio_t     *iop;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
4001b37c:	03 10 00 73 	sethi  %hi(0x4001cc00), %g1                    
4001b380:	c2 00 62 04 	ld  [ %g1 + 0x204 ], %g1	! 4001ce04 <rtems_libio_number_iops>
ssize_t write(                                                        
  int         fd,                                                     
  const void *buffer,                                                 
  size_t      count                                                   
)                                                                     
{                                                                     
4001b384:	92 10 00 19 	mov  %i1, %o1                                  
  ssize_t  rc;                                                        
  rtems_libio_t     *iop;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
4001b388:	80 a6 00 01 	cmp  %i0, %g1                                  
4001b38c:	1a 80 00 0c 	bcc  4001b3bc <write+0x44>                     <== NEVER TAKEN
4001b390:	94 10 00 1a 	mov  %i2, %o2                                  
  iop = rtems_libio_iop( fd );                                        
4001b394:	03 10 00 75 	sethi  %hi(0x4001d400), %g1                    
4001b398:	e0 00 63 9c 	ld  [ %g1 + 0x39c ], %l0	! 4001d79c <rtems_libio_iops>
4001b39c:	83 2e 20 06 	sll  %i0, 6, %g1                               
4001b3a0:	b1 2e 20 03 	sll  %i0, 3, %i0                               
4001b3a4:	b0 06 00 01 	add  %i0, %g1, %i0                             
4001b3a8:	a0 04 00 18 	add  %l0, %i0, %l0                             
  rtems_libio_check_is_open( iop );                                   
4001b3ac:	c2 04 20 18 	ld  [ %l0 + 0x18 ], %g1                        
4001b3b0:	80 88 61 00 	btst  0x100, %g1                               
4001b3b4:	12 80 00 06 	bne  4001b3cc <write+0x54>                     <== ALWAYS TAKEN
4001b3b8:	80 a6 60 00 	cmp  %i1, 0                                    
4001b3bc:	7f ff d0 48 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4001b3c0:	01 00 00 00 	nop                                            <== NOT EXECUTED
4001b3c4:	10 80 00 14 	b  4001b414 <write+0x9c>                       <== NOT EXECUTED
4001b3c8:	82 10 20 09 	mov  9, %g1	! 9 <PROM_START+0x9>               <== NOT EXECUTED
  rtems_libio_check_buffer( buffer );                                 
4001b3cc:	02 80 00 07 	be  4001b3e8 <write+0x70>                      <== NEVER TAKEN
4001b3d0:	80 a6 a0 00 	cmp  %i2, 0                                    
  rtems_libio_check_count( count );                                   
4001b3d4:	02 80 00 1c 	be  4001b444 <write+0xcc>                      
4001b3d8:	90 10 20 00 	clr  %o0                                       
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );            
4001b3dc:	80 88 60 04 	btst  4, %g1                                   
4001b3e0:	32 80 00 06 	bne,a   4001b3f8 <write+0x80>                  <== ALWAYS TAKEN
4001b3e4:	c2 04 20 40 	ld  [ %l0 + 0x40 ], %g1                        
4001b3e8:	7f ff d0 3d 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4001b3ec:	01 00 00 00 	nop                                            <== NOT EXECUTED
4001b3f0:	10 80 00 09 	b  4001b414 <write+0x9c>                       <== NOT EXECUTED
4001b3f4:	82 10 20 16 	mov  0x16, %g1	! 16 <PROM_START+0x16>          <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Now process the write() request.                                
   */                                                                 
                                                                      
  if ( !iop->handlers->write_h )                                      
4001b3f8:	c2 00 60 0c 	ld  [ %g1 + 0xc ], %g1                         
4001b3fc:	80 a0 60 00 	cmp  %g1, 0                                    
4001b400:	12 80 00 08 	bne  4001b420 <write+0xa8>                     <== ALWAYS TAKEN
4001b404:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
4001b408:	7f ff d0 35 	call  4000f4dc <__errno>                       <== NOT EXECUTED
4001b40c:	01 00 00 00 	nop                                            <== NOT EXECUTED
4001b410:	82 10 20 86 	mov  0x86, %g1	! 86 <PROM_START+0x86>          <== NOT EXECUTED
4001b414:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
4001b418:	10 80 00 0b 	b  4001b444 <write+0xcc>                       <== NOT EXECUTED
4001b41c:	90 10 3f ff 	mov  -1, %o0                                   <== NOT EXECUTED
                                                                      
  rc = (*iop->handlers->write_h)( iop, buffer, count );               
4001b420:	9f c0 40 00 	call  %g1                                      
4001b424:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
  if ( rc > 0 )                                                       
4001b428:	80 a2 20 00 	cmp  %o0, 0                                    
4001b42c:	04 80 00 06 	ble  4001b444 <write+0xcc>                     <== NEVER TAKEN
4001b430:	85 3a 20 1f 	sra  %o0, 0x1f, %g2                            
    iop->offset += rc;                                                
4001b434:	d8 1c 20 10 	ldd  [ %l0 + 0x10 ], %o4                       
4001b438:	86 83 40 08 	addcc  %o5, %o0, %g3                           
4001b43c:	84 43 00 02 	addx  %o4, %g2, %g2                            
4001b440:	c4 3c 20 10 	std  %g2, [ %l0 + 0x10 ]                       
                                                                      
  return rc;                                                          
}                                                                     
4001b444:	81 c7 e0 08 	ret                                            
4001b448:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      

400077dc <writev>: ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) {
400077dc:	9d e3 bf a0 	save  %sp, -96, %sp                            
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  ssize_t        old;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
400077e0:	03 10 00 86 	sethi  %hi(0x40021800), %g1                    
400077e4:	c2 00 61 d4 	ld  [ %g1 + 0x1d4 ], %g1	! 400219d4 <rtems_libio_number_iops>
400077e8:	80 a6 00 01 	cmp  %i0, %g1                                  
400077ec:	1a 80 00 0c 	bcc  4000781c <writev+0x40>                    <== NEVER TAKEN
400077f0:	01 00 00 00 	nop                                            
  iop = rtems_libio_iop( fd );                                        
400077f4:	03 10 00 8a 	sethi  %hi(0x40022800), %g1                    
400077f8:	e4 00 63 44 	ld  [ %g1 + 0x344 ], %l2	! 40022b44 <rtems_libio_iops>
400077fc:	83 2e 20 06 	sll  %i0, 6, %g1                               
40007800:	b1 2e 20 03 	sll  %i0, 3, %i0                               
40007804:	b0 06 00 01 	add  %i0, %g1, %i0                             
40007808:	a4 04 80 18 	add  %l2, %i0, %l2                             
  rtems_libio_check_is_open( iop );                                   
4000780c:	c2 04 a0 18 	ld  [ %l2 + 0x18 ], %g1                        
40007810:	80 88 61 00 	btst  0x100, %g1                               
40007814:	12 80 00 06 	bne  4000782c <writev+0x50>                    
40007818:	80 88 60 04 	btst  4, %g1                                   
4000781c:	40 00 29 05 	call  40011c30 <__errno>                       
40007820:	b0 10 3f ff 	mov  -1, %i0                                   
40007824:	10 80 00 1f 	b  400078a0 <writev+0xc4>                      
40007828:	82 10 20 09 	mov  9, %g1                                    
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );            
4000782c:	02 80 00 1a 	be  40007894 <writev+0xb8>                     <== NEVER TAKEN
40007830:	80 a6 60 00 	cmp  %i1, 0                                    
                                                                      
  /*                                                                  
   *  Argument validation on IO vector                                
   */                                                                 
  if ( !iov )                                                         
40007834:	02 80 00 18 	be  40007894 <writev+0xb8>                     
40007838:	80 a6 a0 00 	cmp  %i2, 0                                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt <= 0 )                                                  
4000783c:	04 80 00 16 	ble  40007894 <writev+0xb8>                    
40007840:	80 a6 a4 00 	cmp  %i2, 0x400                                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt > IOV_MAX )                                             
40007844:	14 80 00 14 	bg  40007894 <writev+0xb8>                     <== NEVER TAKEN
40007848:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !iop->handlers->write_h )                                      
4000784c:	c2 04 a0 40 	ld  [ %l2 + 0x40 ], %g1                        
40007850:	c2 00 60 0c 	ld  [ %g1 + 0xc ], %g1                         
40007854:	80 a0 60 00 	cmp  %g1, 0                                    
40007858:	12 80 00 06 	bne  40007870 <writev+0x94>                    <== ALWAYS TAKEN
4000785c:	19 00 00 1f 	sethi  %hi(0x7c00), %o4                        
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
40007860:	40 00 28 f4 	call  40011c30 <__errno>                       <== NOT EXECUTED
40007864:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
40007868:	10 80 00 0e 	b  400078a0 <writev+0xc4>                      <== NOT EXECUTED
4000786c:	82 10 20 86 	mov  0x86, %g1                                 <== NOT EXECUTED
40007870:	82 10 00 19 	mov  %i1, %g1                                  
      all_zeros = false;                                              
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
    if ( total < old || total > SSIZE_MAX )                           
40007874:	98 13 23 ff 	or  %o4, 0x3ff, %o4                            
                                                                      
  if ( iovcnt > IOV_MAX )                                             
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !iop->handlers->write_h )                                      
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
40007878:	84 10 20 01 	mov  1, %g2                                    
4000787c:	88 10 20 00 	clr  %g4                                       
40007880:	86 10 20 00 	clr  %g3                                       
   *  entering the write loop.                                        
   */                                                                 
  all_zeros = true;                                                   
  for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) {                    
                                                                      
    if ( !iov[v].iov_base )                                           
40007884:	da 00 40 00 	ld  [ %g1 ], %o5                               
40007888:	80 a3 60 00 	cmp  %o5, 0                                    
4000788c:	12 80 00 08 	bne  400078ac <writev+0xd0>                    
40007890:	88 01 20 01 	inc  %g4                                       
      rtems_set_errno_and_return_minus_one( EINVAL );                 
40007894:	40 00 28 e7 	call  40011c30 <__errno>                       
40007898:	b0 10 3f ff 	mov  -1, %i0                                   
4000789c:	82 10 20 16 	mov  0x16, %g1                                 
400078a0:	c2 22 00 00 	st  %g1, [ %o0 ]                               
400078a4:	81 c7 e0 08 	ret                                            
400078a8:	81 e8 00 00 	restore                                        
                                                                      
    if ( iov[v].iov_len < 0 )                                         
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
400078ac:	da 00 60 04 	ld  [ %g1 + 4 ], %o5                           
   *  this loop does that check as well and sets "all-zero" appropriately.
   *  The variable "all_zero" is used as an early exit point before   
   *  entering the write loop.                                        
   */                                                                 
  all_zeros = true;                                                   
  for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) {                    
400078b0:	82 00 60 08 	add  %g1, 8, %g1                               
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len < 0 )                                         
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
400078b4:	80 a0 00 0d 	cmp  %g0, %o5                                  
      all_zeros = false;                                              
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
400078b8:	9a 00 c0 0d 	add  %g3, %o5, %o5                             
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len < 0 )                                         
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
400078bc:	96 40 3f ff 	addx  %g0, -1, %o3                             
      all_zeros = false;                                              
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
    if ( total < old || total > SSIZE_MAX )                           
400078c0:	80 a3 40 0c 	cmp  %o5, %o4                                  
400078c4:	14 bf ff f4 	bg  40007894 <writev+0xb8>                     <== NEVER TAKEN
400078c8:	84 08 80 0b 	and  %g2, %o3, %g2                             
400078cc:	80 a3 40 03 	cmp  %o5, %g3                                  
400078d0:	06 bf ff f1 	bl  40007894 <writev+0xb8>                     
400078d4:	80 a1 00 1a 	cmp  %g4, %i2                                  
   *  this loop does that check as well and sets "all-zero" appropriately.
   *  The variable "all_zero" is used as an early exit point before   
   *  entering the write loop.                                        
   */                                                                 
  all_zeros = true;                                                   
  for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) {                    
400078d8:	06 bf ff eb 	bl  40007884 <writev+0xa8>                     
400078dc:	86 10 00 0d 	mov  %o5, %g3                                  
  }                                                                   
                                                                      
  /*                                                                  
   * A writev with all zeros is supposed to have no effect per OpenGroup.
   */                                                                 
  if ( all_zeros == true ) {                                          
400078e0:	80 88 a0 ff 	btst  0xff, %g2                                
400078e4:	a6 10 20 00 	clr  %l3                                       
400078e8:	12 bf ff ef 	bne  400078a4 <writev+0xc8>                    
400078ec:	b0 10 20 00 	clr  %i0                                       
  /*                                                                  
   *  Now process the writev().                                       
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
    /* all zero lengths has no effect */                              
    if ( iov[v].iov_len == 0 )                                        
400078f0:	d4 06 60 04 	ld  [ %i1 + 4 ], %o2                           
400078f4:	80 a2 a0 00 	cmp  %o2, 0                                    
400078f8:	02 80 00 17 	be  40007954 <writev+0x178>                    <== NEVER TAKEN
400078fc:	a6 04 e0 01 	inc  %l3                                       
      continue;                                                       
                                                                      
    bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len );
40007900:	c2 04 a0 40 	ld  [ %l2 + 0x40 ], %g1                        
40007904:	d2 06 40 00 	ld  [ %i1 ], %o1                               
40007908:	c2 00 60 0c 	ld  [ %g1 + 0xc ], %g1                         
4000790c:	9f c0 40 00 	call  %g1                                      
40007910:	90 10 00 12 	mov  %l2, %o0                                  
                                                                      
    if ( bytes < 0 )                                                  
40007914:	80 a2 20 00 	cmp  %o0, 0                                    
40007918:	16 80 00 04 	bge  40007928 <writev+0x14c>                   <== ALWAYS TAKEN
4000791c:	01 00 00 00 	nop                                            
40007920:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
40007924:	91 e8 3f ff 	restore  %g0, -1, %o0                          <== NOT EXECUTED
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
40007928:	02 80 00 07 	be  40007944 <writev+0x168>                    <== NEVER TAKEN
4000792c:	a1 3a 20 1f 	sra  %o0, 0x1f, %l0                            
      iop->offset += bytes;                                           
40007930:	c4 1c a0 10 	ldd  [ %l2 + 0x10 ], %g2                       
40007934:	86 80 c0 08 	addcc  %g3, %o0, %g3                           
      total       += bytes;                                           
40007938:	b0 06 00 08 	add  %i0, %o0, %i0                             
                                                                      
    if ( bytes < 0 )                                                  
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
      iop->offset += bytes;                                           
4000793c:	84 40 80 10 	addx  %g2, %l0, %g2                            
40007940:	c4 3c a0 10 	std  %g2, [ %l2 + 0x10 ]                       
      total       += bytes;                                           
    }                                                                 
                                                                      
    if (bytes != iov[ v ].iov_len)                                    
40007944:	c2 06 60 04 	ld  [ %i1 + 4 ], %g1                           
40007948:	80 a2 00 01 	cmp  %o0, %g1                                  
4000794c:	12 80 00 05 	bne  40007960 <writev+0x184>                   <== NEVER TAKEN
40007950:	01 00 00 00 	nop                                            
  }                                                                   
                                                                      
  /*                                                                  
   *  Now process the writev().                                       
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
40007954:	80 a4 c0 1a 	cmp  %l3, %i2                                  
40007958:	06 bf ff e6 	bl  400078f0 <writev+0x114>                    
4000795c:	b2 06 60 08 	add  %i1, 8, %i1                               
    if (bytes != iov[ v ].iov_len)                                    
      break;                                                          
  }                                                                   
                                                                      
  return total;                                                       
}                                                                     
40007960:	81 c7 e0 08 	ret                                            
40007964:	81 e8 00 00 	restore